.button { display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-height: 45px; padding: 12px 20px; border: 1px solid transparent; border-radius: 8px; text-decoration: none; font-size: 13px; font-weight: 650; line-height: 1.3; transition: background .15s, border-color .15s; text-align: center; }
.button-primary { background: var(--yellow); color: #252618; }
.button-primary:hover { background: var(--yellow-hover); }
.button-dark { background: var(--dark); color: #fff; }
.button-dark:hover { background: #354132; }
.button-quiet { border-color: var(--line); color: var(--ink); background: var(--surface); }
.button-quiet:hover { background: #f4f5ed; border-color: #aeb79c; }
.button-danger { background: #fff1ed; color: #963523; border-color: #eccbc3; }
.button-danger:hover { background: #ffdfd6; }
.button-small { padding: 9px 15px; min-height: 38px; font-size: 12px; }
.button-large { min-height: 52px; padding: 16px 25px; }
.button-block { width: 100%; justify-content: space-between; }
.icon-button { width: 36px; height: 36px; border: 0; border-radius: 8px; display: inline-flex; justify-content: center; align-items: center; background: transparent; font-size: 23px; color: inherit; flex-shrink: 0; }
.icon-button:hover { background: #00000009; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.stack-form { display: grid; gap: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 21px 24px; }
.form-grid > .full-width { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label, .field-label { font-weight: 600; font-size: 13px; }
.field input, .field select, .field textarea, .filter-control { border: 1px solid #d7dccd; background: #fff; border-radius: 8px; padding: 11px 13px; width: 100%; min-width: 0; color: var(--ink); }
.field textarea { resize: vertical; min-height: 100px; }
.field small { font-size: 12px; color: var(--muted); }
.field input:read-only { background: var(--canvas); }
.checkbox-label { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; }
.checkbox-label input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: #7a6419; flex-shrink: 0; }
.form-section { border: 0; padding: 0; margin: 0 0 30px; min-width: 0; }
.form-section legend { font-size: 18px; font-weight: 650; padding: 0; margin-bottom: 20px; }
.form-section + .form-section { border-top: 1px solid var(--line); padding-top: 26px; }
.flash-stack { display: grid; gap: 10px; margin-bottom: 24px; }
.public-main > .flash-stack, .public-main > .flash { max-width: 1240px; margin: 18px auto; width: calc(100% - 40px); }
.flash { padding: 12px 15px; border: 1px solid #d4debc; background: #f0f5e5; color: #355129; border-radius: 9px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 13px; }
.flash-error, .flash-danger { border-color: #e8c4bc; background: #fff0ec; color: #8a3023; }
.flash-warning { border-color: #e5d395; background: #fff8e1; color: #6f581c; }
.flash ul { margin: 8px 0 0; padding-left: 22px; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; font-size: 10px; font-weight: 650; border-radius: 5px; line-height: 1.5; background: #edf0e6; color: #59604d; white-space: normal; }
.status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.status-new, .status-scheduled, .status-planned { background: #e9edf8; color: #3e5883; }
.status-in_progress, .status-late, .status-running, .status-paused { background: #fff0c0; color: #74590b; }
.status-contacted, .status-trial_lesson, .status-rescheduled { background: #f0eaf8; color: #73528c; }
.status-approved, .status-present, .status-active, .status-verified, .status-completed { background: #e8f1df; color: #41602c; }
.status-rejected, .status-absent, .status-failed, .status-cancelled { background: #f9e8e3; color: #974935; }
.status-archived, .status-unknown { background: #edeee9; color: #646b5d; }
.empty-state { text-align: center; padding: 48px 22px; background: var(--surface); border: 1px dashed #d6dccb; border-radius: 12px; grid-column: 1 / -1; }
.empty-state img { object-fit: contain; width: 72px; height: 72px; opacity: .85; margin-bottom: 15px; }
.empty-state h3 { font-size: 20px; }
.empty-state p { color: var(--muted); max-width: 410px; margin: 12px auto 0; }
.empty-state .button { margin-top: 23px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); padding: 25px; min-width: 0; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.panel-heading h2, .panel-heading h3 { font-size: 19px; }
.panel + .panel { margin-top: 24px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; max-width: 100%; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
th { padding: 13px 18px; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; font-weight: 650; color: #57604c; background: #f1f2e6; white-space: nowrap; }
td { padding: 17px 18px; border-top: 1px solid #e9ebdf; vertical-align: middle; overflow-wrap: anywhere; }
tbody tr:hover { background: #fafbf6; }
td strong { font-weight: 650; }
td small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
td a { text-decoration: none; }
td a:hover { text-decoration: underline; }
.table-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 18px; padding-top: 24px; font-size: 12px; flex-wrap: wrap; }
.confirm-dialog { width: min(460px, calc(100% - 40px)); border: 1px solid var(--line); border-radius: 14px; padding: 30px; box-shadow: 0 20px 100px #0004; }
.confirm-dialog::backdrop { background: #10180dad; }
.confirm-dialog h2 { font-size: 25px; margin-bottom: 15px; }
.confirm-dialog .form-actions { justify-content: flex-end; }
.detail-list { margin: 0; }
.detail-list > div { display: grid; grid-template-columns: minmax(100px, 1fr) minmax(0, 1.8fr); gap: 20px; border-bottom: 1px solid var(--line); padding: 13px 0; }
.detail-list dt { color: var(--muted); font-size: 13px; }
.detail-list dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.notice { padding: 17px 20px; border-left: 3px solid var(--yellow); background: #fcf7e5; font-size: 13px; border-radius: 0 8px 8px 0; }
.notice p + p { margin-top: 8px; }
@media (max-width: 540px) { .form-grid { grid-template-columns: 1fr; gap: 19px; } .panel { padding: 20px; } .panel-heading { align-items: flex-start; flex-wrap: wrap; } .form-actions > .button { flex-grow: 1; } .detail-list > div { grid-template-columns: 1fr; gap: 5px; } th, td { padding: 12px 14px; } .button { gap: 14px; } }
