.nav-toggle { display: none; }
.unified-filters { border-radius: 10px; margin-bottom: 16px; }
.search-line { display: flex; gap: 12px; align-items: end; }
.search-line label { flex: 1; margin: 0; }
.table-options { margin-top: 12px; }
.table-options summary { cursor: pointer; min-height: 32px; }
.filter-options-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin-top: 14px; }
.filter-options-grid > .form-section, .filter-options-grid > .form-grid, .filter-options-grid > .error-summary { grid-column: 1/-1; }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-chips a { background: #e4f3eb; color: #104f48; padding: 6px 12px; border-radius: 8px; font-size: .85rem; overflow-wrap: anywhere; }
@media (max-width:760px) { .filter-options-grid { grid-template-columns: 1fr; } .table-controls label { min-width: 0; } }
.inquiry-readable-result { display: flex; flex-direction: column-reverse; gap: 20px; }
.current-file { font-size: .875rem; margin-top: 10px; color: #17665d; }
.mobile-records { display: none; }
@media (max-width: 760px) {
  .table-responsive.cards-ready { display: none; }
  .mobile-records { display: grid; gap: 12px; }
  .mobile-record { padding: 16px; }
  .record-summary, .record-details { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; font-size: .9rem; }
  .record-summary > div, .record-details > div { min-width: 0; }
  .record-summary dt, .record-details dt { color: #506373; font-size: .8rem; font-weight: 400; margin-bottom: 6px; }
  .mobile-record details { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 10px; }
  .mobile-record summary { min-height: 40px; }
  .mobile-record small { display: block; }
  .mobile-record .identifier { min-width: 0; }
}
.empty-result { padding: 24px; background: white; text-align: center; border-radius: 12px; }
.password-toggle { margin-block: 6px; }
.page-footer { color: #506373; font-size: .8rem; }
.table { font-size: .875rem; }
.table small, time, .form-text { font-size: .8rem; }
/* Keep all panel cells aligned to the RTL column, including LTR dates and IDs. */
.table th, .table td { text-align: start; vertical-align: top; }
.table-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.table-cell > * { max-width: 100%; }
.table .table-cell small { margin: 0; }
.table .table-cell time { width: fit-content; margin: 0; white-space: nowrap; text-align: right; line-height: inherit; }
.table .table-cell .identifier { min-width: 0; margin: 0; text-align: right; }
.table .table-cell .badge-demo { margin: 0; }
.table .table-cell .status { line-height: 1.8; }
.table-cell .strong-link { overflow-wrap: anywhere; }
.source-overview-table th:first-child { width: 28%; }
.source-overview-table th:not(:first-child) { width: 18%; }
.source-overview-table, .service-list-table { table-layout: fixed; min-width: 900px; }
.service-list-table th:first-child { width: 28%; }
.service-list-table th:not(:first-child) { width: 18%; }
.mobile-record .table-cell { gap: 6px; }
.mobile-record .table-cell time { width: fit-content; white-space: nowrap; }
.btn-outline-danger { color: #ad2340; border-color: #ad2340; }
.btn-danger { background: #ad2340; --mdb-btn-bg: #ad2340; --mdb-btn-hover-bg: #8c1830; }
.btn-light { color: #374553; }
.field-error, .text-danger { color: #a12626 !important; }
.form-actions .btn, .actions .btn { min-height: 44px; }
.breadcrumbs { margin-bottom: 16px; font-size: .875rem; }
.breadcrumbs a { text-decoration: underline; text-underline-offset: 4px; }
.source-tabs a[aria-current] { background: #e4f3eb; color: #104f48; }
@media (min-width: 761px) {
  .sidebar { position: sticky; top: 0; height: 100dvh; min-height: 0; overflow-y: auto; }
}
.form-dirty-status { color: #79500f; font-weight: 600; margin: 0 0 12px; }
.form-dirty-status:empty { display: none; }
.draft-notice .btn { margin: 8px; }
.error-summary a { text-decoration: underline; color: inherit; }
[data-focus-result]:focus { outline: 3px solid #17665d; outline-offset: 3px; }
@media (max-width: 760px) {
  .nav-toggle { display: block; margin-top: 14px; width: 100%; text-align: right; min-height: 44px; }
  .sidebar nav { flex-wrap: wrap; overflow: visible; }
  .sidebar[data-nav-ready] nav { display: none; }
  .sidebar[data-nav-ready][data-nav-open] nav { display: flex; flex-direction: column; }
  .sidebar nav a { min-height: 44px; font-size: .9rem; }
}
.calendar-dialog { border:1px solid #b4c8c2;border-radius:16px;padding:24px;max-width:min(360px,95vw);color:#173b32; }
.calendar-dialog::backdrop {background:#123c3280;}
.calendar-heading {display:flex;justify-content:space-between;align-items:center;gap:8px;}
.calendar-days {display:grid;grid-template-columns:repeat(7,1fr);gap:4px;margin:16px 0;text-align:center;}
.calendar-dialog button {min-width:36px;min-height:44px;border:1px solid #d5e1dd;border-radius:8px;background:#f4f8f6;color:#173b32;}
.calendar-dialog button[aria-current] {background:#145b48;color:#fff;}
.calendar-open {margin-top:4px;}
.date-presets {grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap;}
.request-record {padding:20px 0;border-bottom:1px solid #dbe6e1;}
.request-record h3 {font-size:1rem;}
.request-timeline li {padding:12px 8px;border-right:3px solid #bfd8cb;}
.request-timeline time {display:block;margin-top:6px;}

.technical-overview > summary {padding:20px;border:1px solid #c9ded5;border-radius:12px;font-weight:700;background:#f0f6f3;}
.schedule-row {border:1px solid #c9ded5;padding:14px;margin-bottom:12px;border-radius:8px;}
.schedule-row legend {font-size:.9rem;}
.schedule-days {display:flex;gap:12px;flex-wrap:wrap;margin-bottom:12px;}
.schedule-days label {display:flex;align-items:center;gap:6px;min-height:44px;}
.schedule-row > label {display:inline-grid;gap:6px;margin-left:12px;}
.duration-editor {display:grid;grid-template-columns:1fr 90px;gap:8px;}
.duration-editor span {grid-column:1/-1;font-size:.8rem;color:#465c53;}
.setup-steps {display:flex;gap:8px;list-style:none;padding:0;flex-wrap:wrap;}
.setup-steps button {padding:10px;border:1px solid #b9d2c7;border-radius:8px;background:#f4f8f6;color:#204b3c;}
.setup-steps [aria-current=step] {background:#145b48;color:white;}
.setup-steps button:disabled {color:#56665f;background:#f1f3f2;}
.setup-page > details > summary {padding:18px;background:#f0f6f3;border-radius:10px;}
.setup-checklist li {padding:12px 0;}
.activation-confirm {display:flex;gap:10px;align-items:center;margin:20px 0;}
.revision-change {display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:16px 0;border-bottom:1px solid #dbe6e1;}
.revision-change h3 {grid-column:1/-1;font-size:1rem;}
.revision-change pre {white-space:pre-wrap;overflow-wrap:anywhere;padding:12px;background:#f0f6f3;font:inherit;}
@media(max-width:760px){.revision-change {grid-template-columns:1fr;}}

.setup-checklist a {text-decoration:underline;text-underline-offset:4px;}

/* Polish: calmer states, aligned forms, clearer related links. */
.notice.notice-success { border-color: #bcd9c9; border-inline-start-color: #2f7d58; background: #f0f9f4; color: #1f5a40; }
.form-grid { align-items: start; }
.related-links { justify-content: flex-start; gap: 10px; }
.login-card .password-toggle { margin-top: 8px; }

/* Setup forms: one guide per step and compact, aligned controls. */
.field-block { min-width: 0; }
.field-block .field-choice { display: flex; align-items: center; gap: 12px; min-height: 48px; margin: 0; cursor: pointer; }
.field-choice .form-check-input { float: none; flex: 0 0 auto; margin: 0; width: 20px; height: 20px; }
.field-checkbox { padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: #f8faf9; }
.field-checkbox:focus-within { border-color: #17665d; }
.field-choice input:focus-visible { outline: 3px solid #c99e58; outline-offset: 3px; }
.setup-steps { margin: 0 0 20px; }
.setup-steps li { flex: 1; min-width: 0; }
.setup-steps button { width: 100%; min-height: 48px; font-weight: 600; }
.setup-guide { padding: 16px 20px; margin-bottom: 24px; border: 1px solid #c9ded5; border-radius: 10px; background: #f4f8f6; color: #204b3c; font-size: .85rem; }
.setup-guide h2 { margin: 0 0 6px; font-size: .9rem; }
.setup-guide p { margin: 0; }
.setup-guide p + p, .setup-guide details { margin-top: 8px; }
.setup-guide summary { cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.setup-page > details { border: 1px solid var(--line); border-radius: 10px; padding: 0 18px; }
.setup-page > details > summary { margin-inline: -18px; cursor: pointer; }
.setup-page > details[open] > summary { margin-bottom: 24px; }
.setup-page > .field-checkbox { margin-top: 20px; }
.setup-review { margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.setup-review > div { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(0, 2fr); gap: 16px; padding: 14px 18px; }
.setup-review > div + div { border-top: 1px solid var(--line); }
.setup-review dt { font-weight: 400; color: var(--muted); }
.setup-review dd { font-weight: 600; }
@media (max-width: 760px) {
  .setup-steps { gap: 6px; }
  .setup-steps button { padding: 10px 6px; font-size: .78rem; }
  .setup-guide { padding: 14px; }
  .setup-review > div { grid-template-columns: 1fr; gap: 4px; padding: 12px 14px; }
}
