:root {
  --navy: #082f3d;
  --navy-2: #0b3e50;
  --petrol: #0e6670;
  --teal: #149b9b;
  --aqua: #62d2d1;
  --ink: #12252d;
  --muted: #63737a;
  --line: #dce6e7;
  --canvas: #f4f7f7;
  --surface: #ffffff;
  --success: #12845b;
  --success-bg: #e4f5ed;
  --warning: #a86308;
  --warning-bg: #fff3dc;
  --danger: #be3f46;
  --danger-bg: #fdebed;
  --info: #236b9b;
  --info-bg: #e7f2f8;
  --radius: 14px;
  --shadow: 0 5px 20px rgba(15, 56, 67, .07);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; min-height: 100vh; font-size: 14px; line-height: 1.45; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--aqua); outline-offset: 2px; }
a { color: inherit; text-decoration: none; }
.skip-link { position: fixed; left: 12px; top: -48px; z-index: 100; padding: 10px 14px; color: #fff; background: var(--navy); border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 12px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 244px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; color: #dbe7e9; background: linear-gradient(180deg, #082f3d, #062731); padding: 24px 13px 16px; overflow-y: auto; z-index: 20; }
.brand { display: grid; place-items: center; margin: 0 7px 24px; padding: 0; }
.brand-logo { display: block; width: min(100%, 180px); height: auto; }
.main-nav { display: grid; gap: 3px; }
.nav-link { display: flex; align-items: center; gap: 12px; min-height: 43px; padding: 0 12px; border: 0; border-radius: 9px; color: #bed3d6; background: transparent; text-align: left; transition: .18s ease; }
.nav-link:hover { color: #fff; background: rgba(145, 215, 213, .1); }
.nav-link.active { color: #fff; background: var(--petrol); box-shadow: inset 3px 0 0 var(--aqua); }
.nav-icon { width: 20px; color: var(--aqua); font-size: 17px; text-align: center; }
.nav-link span:last-child { font-weight: 550; }
.sidebar-footer { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 18px 9px 0; font-size: 10px; color: #83a8ae; }
.help-link { width: 19px; height: 19px; border: 1px solid #739ca3; border-radius: 50%; color: #c9dbde; background: transparent; font-weight: 700; }

.app-area { min-width: 0; }
.topbar { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 34px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .94); }
.breadcrumbs { font-size: 13px; color: var(--muted); }
.breadcrumbs strong { color: var(--ink); }
.timer-root { min-width: 0; margin-left: auto; }
.timer-widget { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 3px 4px 3px 10px; border: 1px solid #cbdcde; border-radius: 9px; color: var(--navy); background: #fff; box-shadow: 0 2px 6px rgba(8, 47, 61, .05); }
.timer-widget.is-running { border-color: #80d3c8; background: #f1fbf7; }
.timer-widget.is-pending { border-color: #efd79e; background: #fffaf0; }
.timer-status { display: grid; min-width: 0; line-height: 1.15; }
.timer-status small { overflow: hidden; max-width: 145px; color: var(--muted); font-size: 10px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.timer-status strong { display: block; overflow: hidden; max-width: 310px; color: var(--navy); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.timer-clock { min-width: 65px; color: var(--petrol); font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 850; letter-spacing: .015em; }
.timer-control { min-height: 30px; padding: 0 9px; border: 0; border-radius: 6px; color: #fff; background: var(--petrol); font-size: 11px; font-weight: 800; }
.timer-control:hover { background: var(--navy); }
.timer-control.stop { background: var(--danger); }
.timer-control.stop:hover { background: #963139; }
.timer-control.pending { color: #805110; background: #fff0cf; }
.timer-control.pending:hover { background: #ffe3a6; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.search-trigger { display: flex; align-items: center; gap: 9px; min-height: 36px; padding: 0 10px 0 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: #fff; }
.shortcut { padding: 2px 6px; border-radius: 4px; color: #72848a; background: #edf2f2; font-size: 11px; }
.icon-button { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 8px; color: var(--navy-2); background: transparent; font-size: 19px; }
.icon-button:hover { background: #edf4f4; }
.has-alert::after { content: ""; position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border: 2px solid #fff; border-radius: 50%; background: var(--danger); }
.notification-button { text-decoration: none; font-size: 17px; }
.notification-badge { position: absolute; top: -4px; right: -5px; min-width: 17px; padding: 1px 4px; border: 2px solid #fff; border-radius: 999px; color: #765208; background: #fff0cf; font-size: 9px; font-weight: 850; line-height: 13px; text-align: center; }
.notification-badge.has-unread { color: #fff; background: var(--danger); }
.user-menu { display: flex; align-items: center; gap: 8px; padding: 3px 5px; border: 0; border-radius: 9px; color: var(--ink); background: transparent; text-align: left; }
.user-menu:hover { background: #edf4f4; }
.avatar { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; color: #fff; background: linear-gradient(135deg, var(--petrol), var(--navy)); font-size: 11px; font-weight: 800; }
.user-name strong, .user-name small { display: block; }
.user-name strong { font-size: 12px; }
.user-name small { font-size: 10px; color: var(--muted); }
.mobile-nav { display: none; }

.content { max-width: 1640px; margin: 0 auto; padding: 31px 34px 48px; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.page-header h1 { margin: 0; font-size: clamp(24px, 2.2vw, 30px); letter-spacing: -.035em; line-height: 1.15; }
.page-header p { margin: 7px 0 0; color: var(--muted); }
.header-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 13px; border: 1px solid transparent; border-radius: 8px; color: #fff; background: var(--petrol); font-weight: 700; font-size: 13px; box-shadow: 0 2px 5px rgba(8, 47, 61, .12); transition: .18s ease; }
.button:hover { background: var(--navy-2); transform: translateY(-1px); }
.button.secondary { color: var(--navy-2); background: #fff; border-color: #cbdcde; box-shadow: none; }
.button.secondary:hover { background: #eff6f6; }
.button.ghost { color: var(--petrol); background: transparent; box-shadow: none; }
.button.ghost:hover { background: var(--info-bg); }
.button.danger { color: #fff; background: var(--danger); }
.button.small { min-height: 31px; padding: 0 10px; font-size: 12px; }
.button:disabled { opacity: .48; cursor: not-allowed; transform: none; }
.review-actions, .task-state-group { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.task-deletion-review { margin-top: 19px; border-left: 4px solid var(--warning); }
.task-deletion-status { margin-top: 5px; }
.task-deletion-control { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.task-deletion-control > strong { display: block; color: var(--navy); font-size: 13px; }
.task-deletion-control > p { margin: 5px 0 12px; }

.dashboard-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 15px; }
.metric-card { position: relative; min-height: 132px; padding: 18px; overflow: hidden; border: 1px solid #e0eaeb; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; }
.metric-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(15, 56, 67, .1); }
.metric-link { display: block; cursor: pointer; }
.metric-link:hover .metric-note, .metric-link:focus-visible .metric-note { text-decoration: underline; text-underline-offset: 3px; }
.metric-link .metric-note::after { content: " →"; }
.metric-card::after { content: ""; position: absolute; width: 76px; height: 76px; right: -27px; bottom: -33px; border: 16px solid var(--metric, var(--aqua)); border-radius: 50%; opacity: .14; }
.metric-label { display: block; color: var(--muted); font-size: 12px; font-weight: 650; }
.metric-value { display: block; margin-top: 10px; color: var(--navy); font-size: 27px; font-weight: 780; letter-spacing: -.05em; }
.metric-note { display: inline-block; margin-top: 7px; color: var(--metric, var(--petrol)); font-size: 11px; font-weight: 700; }
.metric-card.compact { min-height: 106px; }

.layout-two { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(290px, .85fr); gap: 18px; margin-top: 19px; }
.layout-uneven { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; }
.panel { border: 1px solid #e0eaeb; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 15px 18px; border-bottom: 1px solid #e8efef; }
.panel-header h2, .panel-header h3 { margin: 0; color: var(--navy); font-size: 15px; letter-spacing: -.012em; }
.panel-header small { color: var(--muted); }
.panel-body { padding: 18px; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 25px 0 13px; }
.section-title h2 { margin: 0; font-size: 16px; color: var(--navy); }

.status { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 4px 8px; border-radius: 999px; font-size: 11px; font-weight: 750; line-height: 1.2; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%; background: currentColor; }
.status.success { color: var(--success); background: var(--success-bg); }
.status.warning { color: var(--warning); background: var(--warning-bg); }
.status.danger { color: var(--danger); background: var(--danger-bg); }
.status.info { color: var(--info); background: var(--info-bg); }
.status.neutral { color: #62747a; background: #eef2f2; }
.status.purple { color: #7657a5; background: #f0eafa; }
.status.navy { color: var(--navy-2); background: #e4f0f1; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th { padding: 11px 15px; color: #667a80; background: #f7fafa; border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 800; letter-spacing: .055em; text-align: left; text-transform: uppercase; }
.table-sort { display: inline-flex; align-items: center; gap: 6px; color: inherit; white-space: nowrap; transition: color .14s; }
.table-sort:hover, .table-sort.is-active { color: var(--petrol); }
.sort-arrow { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 4px; color: #829399; background: #edf3f3; font-size: 11px; line-height: 1; }
.table-sort.is-active .sort-arrow { color: #fff; background: var(--petrol); }
.table-column-filter { margin-top: 7px; min-width: 190px; }
.table-column-search { width: 100%; min-height: 29px; padding: 4px 7px; border: 1px solid #d7e1e2; border-radius: 6px; color: #52656b; background: #fff; font-size: 12px; font-weight: 600; letter-spacing: normal; text-transform: none; }
.table-column-search:focus { border-color: var(--petrol); outline: 2px solid rgba(11, 62, 80, .14); outline-offset: 1px; }
.table-column-filter small { display: block; min-height: 13px; margin-top: 4px; color: #667a80; font-size: 10px; font-weight: 700; letter-spacing: normal; text-transform: none; }
td { padding: 13px 15px; border-bottom: 1px solid #edf1f1; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .14s; }
tbody tr:hover { background: #f8fbfb; }
.row-title { display: block; color: var(--navy); font-weight: 760; }
.subtle { color: var(--muted); font-size: 12px; }
.table-action { border: 0; color: var(--petrol); background: transparent; font-weight: 700; }

.activity-list { margin: 0; padding: 3px 0; list-style: none; }
.activity-item { position: relative; display: grid; grid-template-columns: 10px 1fr auto; gap: 11px; align-items: start; padding: 12px 0; border-bottom: 1px solid #edf1f1; }
.activity-item:last-child { border-bottom: 0; }
.activity-dot { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 4px #e9f7f6; }
.activity-item strong { color: var(--navy); font-size: 12px; }
.activity-item p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.activity-time { color: #839399; font-size: 11px; }
.notification-panel + .notification-panel { margin-top: 18px; }
.notification-item.is-unread { margin-inline: -10px; padding-inline: 10px; border-radius: 8px; background: #f3fbfb; }
.notification-item.is-unread strong { color: var(--petrol); }
.notification-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.notification-actions .inline-form { margin: 0; }
.planning-period { margin: -12px 0 16px; color: var(--muted); font-size: 13px; }
.weekly-planner { display: grid; gap: 18px; }
.weekly-grid { display: grid; grid-template-columns: repeat(7, minmax(170px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 3px; }
.weekly-day { min-height: 230px; border: 1px solid var(--line); border-radius: 10px; background: #fff; transition: border-color .16s ease, background .16s ease; }
.weekly-day.is-drag-over { border-color: var(--teal); background: #f0fbfa; }
.weekly-day > header { display: grid; gap: 2px; padding: 11px 11px 9px; border-bottom: 1px solid #e7eeee; color: var(--navy); }
.weekly-day > header strong { font-size: 12px; }
.weekly-day > header small { color: var(--muted); font-size: 11px; }
.weekly-task-list { display: grid; gap: 7px; min-height: 150px; margin: 0; padding: 9px; list-style: none; }
.weekly-task { display: grid; gap: 3px; padding: 9px; border: 1px solid #d9e7e7; border-radius: 8px; color: var(--ink); background: #fff; box-shadow: 0 2px 5px rgba(8, 47, 61, .04); cursor: grab; }
.weekly-task:hover { border-color: #a6ccca; }
.weekly-task.is-dragging { opacity: .5; }
.weekly-task strong { color: var(--navy); font-size: 12px; }
.weekly-task small, .weekly-task span { color: var(--muted); font-size: 10px; }
.weekly-empty { align-self: start; padding: 8px 3px; color: #839399; font-size: 11px; font-style: italic; }
.weekly-unplanned { padding: 14px; border: 1px dashed #b9cdcf; border-radius: 10px; background: #fbfdfd; transition: border-color .16s ease, background .16s ease; }
.weekly-unplanned.is-drag-over { border-color: var(--teal); background: #f0fbfa; }
.weekly-unplanned header { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 14px; }
.weekly-unplanned h2 { margin: 0; color: var(--navy); font-size: 15px; }
.weekly-unplanned header small { color: var(--muted); }
.weekly-unplanned .weekly-task-list { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); min-height: 0; padding: 10px 0 0; }
.report-structure-card { margin: 18px 0; }
.report-structure-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.report-structure-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 10px; border: 1px solid #e0eaea; border-radius: 8px; background: #fbfdfd; color: var(--muted); font-size: 12px; }
.report-structure-list strong { color: var(--navy); font-size: 18px; }

.dashboard-processes { display: grid; gap: 8px; }
.dashboard-process-entry { overflow: hidden; border: 1px solid #e0eaea; border-radius: 9px; background: #fbfdfd; }
.dashboard-process-toggle { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; width: 100%; gap: 9px; padding: 9px 12px; }
.dashboard-process-expand { display: grid; place-items: center; width: 24px; height: 28px; padding: 0; border: 0; border-radius: 5px; color: var(--petrol); background: transparent; }
.dashboard-process-expand:hover { background: #e7f3f2; }
.dashboard-process-expand:focus-visible { outline-offset: 1px; }
.dashboard-process-link { min-width: 0; padding: 3px 0; color: inherit; text-decoration: none; }
.dashboard-process-link:hover .dashboard-process-summary strong { color: var(--petrol); text-decoration: underline; text-underline-offset: 2px; }
.dashboard-process-chevron { color: var(--petrol); font-size: 16px; font-weight: 800; line-height: 1; transition: transform .16s ease; }
.dashboard-process-expand[aria-expanded="true"] .dashboard-process-chevron { transform: rotate(180deg); }
.dashboard-process-summary { display: flex; flex-wrap: wrap; min-width: 0; gap: 3px; color: var(--muted); font-size: 11px; }
.dashboard-process-summary strong { overflow: hidden; max-width: 100%; color: var(--navy); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-process-toggle .status { flex: none; }
.dashboard-process-tasks { display: grid; gap: 2px; margin: 0; padding: 7px 9px 9px; border-top: 1px solid #e4eeee; list-style: none; background: #fff; }
.dashboard-process-task { display: grid; grid-template-columns: minmax(0, 1fr) auto 16px; align-items: center; gap: 8px; min-height: 32px; padding: 5px 6px; border: 1px solid transparent; border-radius: 6px; color: var(--ink); font-size: 12px; cursor: grab; }
.dashboard-process-task:hover { border-color: #dbe9e9; background: #f8fbfb; }
.dashboard-process-task:active { cursor: grabbing; }
.dashboard-task-link { display: grid; grid-template-columns: 16px minmax(0, 1fr); align-items: center; min-width: 0; gap: 8px; color: inherit; text-decoration: none; }
.dashboard-task-link:hover .dashboard-task-title { color: var(--petrol); text-decoration: underline; text-underline-offset: 2px; }
.dashboard-process-task.is-completed .dashboard-task-title { color: var(--muted); text-decoration: line-through; }
.dashboard-task-state { color: var(--petrol); font-size: 15px; line-height: 1; }
.dashboard-process-task.is-completed .dashboard-task-state { color: var(--success); font-weight: 900; }
.dashboard-task-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-task-actions { display: inline-flex; gap: 2px; opacity: 0; transition: opacity .14s ease; }
.dashboard-process-task:hover .dashboard-task-actions, .dashboard-process-task:focus-within .dashboard-task-actions { opacity: 1; }
.dashboard-task-move { display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 4px; color: var(--petrol); background: #eaf5f4; font-size: 12px; font-weight: 800; }
.dashboard-task-move:hover { background: #d7eeec; }
.dashboard-task-drag-handle { color: #9aaeb2; font-size: 15px; letter-spacing: -3px; transform: rotate(90deg); }
.dashboard-process-task.is-dragging { border-color: var(--aqua); opacity: .45; }
.dashboard-process-tasks[aria-busy="true"] { cursor: progress; opacity: .7; }
.dashboard-checklist-panel .panel-body { display: grid; gap: 12px; }
.dashboard-checklist-create { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
.dashboard-checklist-create input { min-width: 0; }
.dashboard-checklist-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.dashboard-checklist-item { display: grid; grid-template-columns: 25px minmax(0, 1fr) auto 18px; align-items: center; gap: 7px; min-height: 36px; padding: 5px 0; border-bottom: 1px solid #e7eeee; cursor: grab; }
.dashboard-checklist-item:last-child { border-bottom: 0; }
.dashboard-checklist-toggle-form, .dashboard-checklist-delete-form { margin: 0; }
.dashboard-checklist-actions { display: flex; justify-content: flex-end; min-width: 0; }
.dashboard-checklist-toggle { display: grid; place-items: center; width: 25px; height: 25px; padding: 0; border: 0; border-radius: 5px; color: var(--petrol); background: transparent; font-size: 17px; line-height: 1; }
.dashboard-checklist-toggle:hover { background: #e7f3f2; }
.dashboard-checklist-toggle:focus-visible { outline-offset: 1px; }
.dashboard-checklist-text { overflow-wrap: anywhere; color: var(--ink); font-size: 13px; }
.dashboard-checklist-item.is-completed .dashboard-checklist-text { color: var(--muted); text-decoration: line-through; }
.dashboard-checklist-item.is-completed .dashboard-checklist-toggle { color: var(--success); font-weight: 900; }
.dashboard-checklist-delete { padding: 3px 4px; border: 0; border-radius: 4px; color: var(--danger); background: transparent; font-size: 11px; font-weight: 700; }
.dashboard-checklist-delete:hover { background: #fff0f1; }
.dashboard-checklist-empty { padding: 10px 0; }
.dashboard-checklist-drag-handle { color: #9aaeb2; font-size: 15px; letter-spacing: -3px; transform: rotate(90deg); cursor: grab; }
.dashboard-checklist-item.is-dragging { border-color: var(--aqua); opacity: .45; cursor: grabbing; }
.dashboard-checklist-list[aria-busy="true"] { cursor: progress; opacity: .7; }

.progress-bar { height: 8px; overflow: hidden; border-radius: 99px; background: #e9efef; }
.progress-bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--petrol), var(--aqua)); }
.chart { height: 220px; display: flex; align-items: flex-end; gap: 10px; padding: 17px 5px 5px; border-bottom: 1px solid var(--line); }
.chart-col { position: relative; display: grid; grid-template-rows: 1fr auto; width: 100%; height: 100%; gap: 7px; text-align: center; color: #7a8c91; font-size: 10px; }
.chart-bar-wrap { display: flex; align-items: flex-end; height: 100%; }
.chart-bar { width: 100%; min-height: 12px; border-radius: 5px 5px 1px 1px; background: linear-gradient(180deg, var(--aqua), var(--petrol)); opacity: .94; }
.chart-col:hover .chart-bar { background: var(--navy); }
.chart-col b { position: absolute; top: calc(100% - var(--h) - 26px); left: 50%; transform: translateX(-50%); padding: 2px 4px; border-radius: 4px; color: #fff; background: var(--navy); font-size: 10px; opacity: 0; pointer-events: none; }
.chart-col:hover b { opacity: 1; }

.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 15px; padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.filter-control { min-height: 34px; padding: 0 9px; border: 1px solid #d7e1e2; border-radius: 6px; color: #52656b; background: #fff; font-size: 12px; }
.filter-search { min-width: 190px; flex: 1; }
.filter-spacer { flex: 1; }
.filter-button { min-height: 34px; padding: 0 9px; border: 0; border-radius: 6px; color: var(--petrol); background: #eef6f6; font-size: 12px; font-weight: 700; }
.filter-button.active { color: #fff; background: var(--petrol); }

.tabs { display: flex; gap: 4px; overflow-x: auto; margin-bottom: 17px; padding-bottom: 1px; border-bottom: 1px solid var(--line); }
.tab { flex: none; padding: 10px 13px; border: 0; border-bottom: 2px solid transparent; color: var(--muted); background: transparent; font-size: 12px; font-weight: 750; }
.tab:hover { color: var(--petrol); }
.tab.active { color: var(--petrol); border-bottom-color: var(--teal); }
.empty-state { padding: 34px 16px; text-align: center; color: var(--muted); }
.empty-icon { display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto 9px; border-radius: 12px; color: var(--petrol); background: #e8f5f4; font-size: 20px; }

.process-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; padding: 23px; border-radius: var(--radius); color: #effafa; background: linear-gradient(118deg, var(--navy), #0c5661); box-shadow: var(--shadow); }
.eyebrow { margin: 0 0 7px; color: #93d9d6; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.process-hero h1 { margin: 0; color: #fff; font-size: clamp(23px, 2.1vw, 29px); letter-spacing: -.035em; }
.process-hero .hero-meta { display: flex; flex-wrap: wrap; gap: 17px; margin-top: 15px; color: #c9e5e4; font-size: 13px; }
.process-hero .hero-meta strong { display: block; color: #fff; font-size: 12px; }
.process-hero-actions { display: flex; align-items: flex-start; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.process-hero .button.secondary { border-color: rgba(255,255,255,.3); color: #fff; background: rgba(255,255,255,.1); }
.process-hero .button.secondary:hover { background: rgba(255,255,255,.2); }
.process-hero .status { align-self: flex-start; }
.details-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.detail-stat { padding: 14px; border: 1px solid #e1ebeb; border-radius: 10px; background: #fff; }
.detail-stat span { display: block; color: var(--muted); font-size: 11px; }
.detail-stat strong { display: block; margin-top: 4px; color: var(--navy); font-size: 15px; }
.specialty-list { display: grid; gap: 9px; }
.specialty-row { display: grid; grid-template-columns: 30px minmax(120px, 1fr) minmax(105px, auto) 95px 28px; align-items: center; gap: 11px; padding: 12px; border: 1px solid #e6eeee; border-radius: 9px; background: #fff; }
.specialty-number { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 7px; color: var(--petrol); background: #e6f4f3; font-size: 11px; font-weight: 800; }
.specialty-row strong { color: var(--navy); font-size: 13px; }
.specialty-row small { display: block; color: var(--muted); font-size: 11px; }
.row-menu { width: 26px; height: 26px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; }
.row-menu:hover { color: var(--petrol); background: #edf4f4; }
.vertical-timeline { position: relative; display: grid; gap: 0; padding-left: 24px; }
.vertical-timeline::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: 12px; width: 2px; background: #dce9e9; }
.timeline-event { position: relative; padding: 0 0 17px; }
.timeline-event::before { content: ""; position: absolute; left: -23px; top: 4px; width: 9px; height: 9px; border: 3px solid #fff; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 2px var(--aqua); }
.timeline-event p { margin: 0; color: var(--ink); font-size: 12px; }
.timeline-event time { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }

.kanban { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 13px; overflow-x: auto; }
.kanban-column { min-height: 390px; padding: 11px; border-radius: 11px; background: #ecf2f2; }
.kanban-title { display: flex; align-items: center; justify-content: space-between; margin: 3px 2px 10px; color: var(--navy); font-size: 12px; font-weight: 800; }
.kanban-title span { display: grid; place-items: center; min-width: 20px; height: 20px; border-radius: 50%; color: var(--muted); background: #fff; font-size: 10px; }
.task-card { margin-bottom: 9px; padding: 12px; border: 1px solid #e1eaea; border-radius: 9px; background: #fff; box-shadow: 0 2px 4px rgba(14, 59, 65, .04); }
.task-card h3 { margin: 0 0 6px; color: var(--navy); font-size: 12px; }
.task-card p { margin: 0 0 9px; color: var(--muted); font-size: 11px; }
.task-footer { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; }
.priority { width: 7px; height: 7px; border-radius: 50%; background: var(--warning); }
.priority.high { background: var(--danger); }
.priority.low { background: var(--teal); }

.mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.info-list { display: grid; margin: 0; }
.info-list div { display: grid; grid-template-columns: 135px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid #edf1f1; }
.info-list div:last-child { border-bottom: 0; }
.info-list dt { color: var(--muted); font-size: 12px; }
.info-list dd { margin: 0; font-weight: 650; }
.checklist { display: grid; gap: 10px; }
.check-item { display: flex; align-items: center; gap: 9px; color: var(--ink); font-size: 13px; }
.check-item input { width: 17px; height: 17px; accent-color: var(--teal); }
.check-item.is-ready { color: var(--success); }
.check-item.is-missing { color: var(--muted); }

.report-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.report-tile { min-height: 141px; padding: 17px; border: 1px solid #deeaeb; border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.report-tile .report-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 9px; color: var(--petrol); background: #e5f3f2; font-size: 17px; }
.report-tile h2 { margin: 13px 0 4px; color: var(--navy); font-size: 14px; }
.report-tile p { margin: 0; color: var(--muted); font-size: 12px; }
.report-tile:hover { border-color: var(--aqua); }
.report-year-filter label { color: var(--navy); font-size: 12px; font-weight: 750; }
.report-year-filter .subtle { margin-left: auto; }
.report-accounting-note { margin: -7px 0 18px; padding: 11px 13px; border: 1px solid #c9e2e3; border-left: 4px solid var(--teal); border-radius: 9px; color: #49646b; background: #f3f9f9; font-size: 11px; }
.report-accounting-note strong { color: var(--navy); }
.flow-health { display: grid; grid-template-columns: 150px minmax(0, 1.5fr) minmax(270px, .8fr); gap: 22px; margin-bottom: 18px; padding: 22px; border: 1px solid #cfe3e3; border-left: 5px solid var(--info); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.flow-health--success { border-left-color: var(--success); }
.flow-health--warning { border-left-color: var(--warning); }
.flow-health--danger { border-left-color: var(--danger); }
.flow-score { display: grid; align-content: center; justify-items: center; min-height: 150px; padding: 17px 10px; border-radius: 12px; background: #f1f7f7; text-align: center; }
.flow-score > span { color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .055em; }
.flow-score strong { margin: 5px 0 0; color: var(--navy); font-size: 38px; line-height: 1; letter-spacing: -.055em; }
.flow-score strong small { color: var(--muted); font-size: 13px; letter-spacing: 0; }
.flow-score em { margin-top: 8px; color: var(--muted); font-size: 10px; font-style: normal; }
.flow-health-main .eyebrow, .report-section-heading .eyebrow { color: var(--petrol); }
.flow-health-main h2 { margin: 0; color: var(--navy); font-size: 20px; letter-spacing: -.025em; }
.flow-health-main > p:not(.eyebrow) { margin: 5px 0 14px; color: var(--muted); font-size: 12px; }
.flow-signals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 0; padding: 0; list-style: none; }
.flow-signals li { display: grid; grid-template-columns: 24px 1fr; align-items: start; gap: 8px; min-width: 0; padding: 8px; border: 1px solid #e3ecec; border-radius: 8px; background: #fbfdfd; }
.flow-signals li > span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-size: 11px; font-weight: 900; }
.flow-signals li.is-good > span { color: var(--success); background: var(--success-bg); }
.flow-signals li.is-alert > span { color: var(--danger); background: var(--danger-bg); }
.flow-signals strong, .flow-signals small { display: block; }
.flow-signals strong { color: var(--navy); font-size: 11px; }
.flow-signals small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.flow-actions { padding: 15px; border-radius: 10px; background: #f7fafa; }
.flow-actions h3 { margin: 0 0 9px; color: var(--navy); font-size: 13px; }
.flow-actions ol { display: grid; gap: 8px; margin: 0; padding-left: 18px; color: #52676d; font-size: 11px; }
.report-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.report-summary-card { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 15px; border: 1px solid #deeaeb; border-radius: 11px; background: #fff; box-shadow: 0 3px 12px rgba(15, 56, 67, .05); }
.report-summary-card .report-icon { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 9px; color: var(--petrol); background: #e5f3f2; }
.report-summary-card > div { min-width: 0; }
.report-summary-label, .report-summary-card strong, .report-summary-card small { display: block; }
.report-summary-label { overflow: hidden; color: var(--muted); font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.report-summary-card strong { margin-top: 2px; color: var(--navy); font-size: 18px; line-height: 1.2; }
.report-change { display: inline-flex; align-items: center; padding: 3px 7px; border-radius: 99px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.report-summary-card .report-change { margin-top: 5px; padding: 0; background: transparent; }
.report-change.positive { color: var(--success); background: var(--success-bg); }
.report-change.negative { color: var(--danger); background: var(--danger-bg); }
.report-change.neutral { color: var(--muted); background: #eef2f2; }
.report-summary-card .report-change.positive, .report-summary-card .report-change.negative, .report-summary-card .report-change.neutral { background: transparent; }
.report-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 28px 0 12px; }
.report-section-heading .eyebrow { margin-bottom: 3px; }
.report-section-heading h2 { margin: 0; color: var(--navy); font-size: 18px; letter-spacing: -.02em; }
.report-section-heading > p { max-width: 430px; margin: 0; color: var(--muted); font-size: 11px; text-align: right; }
.report-chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.report-chart-card { min-width: 0; }
.report-chart-card .panel-header { min-height: 66px; }
.report-chart-card .panel-header h3 { font-size: 14px; }
.report-chart-card .panel-body { padding-bottom: 14px; }
.trend-chart-wrap { max-width: 100%; overflow-x: auto; padding: 5px 2px 0; }
.trend-chart { display: grid; grid-template-columns: repeat(12, minmax(29px, 1fr)); align-items: end; gap: 6px; min-width: 500px; height: 214px; padding-top: 8px; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to top, transparent 0, transparent 49px, #eef3f3 50px); }
.trend-chart--compact { grid-template-columns: repeat(5, minmax(62px, 1fr)); min-width: 390px; }
.trend-group { display: grid; grid-template-rows: 180px 24px; align-items: end; min-width: 0; }
.trend-bars { display: flex; align-items: end; justify-content: center; gap: 3px; height: 100%; }
.trend-bar { width: min(16px, 38%); height: var(--bar-height); min-height: 2px; border-radius: 5px 5px 1px 1px; transition: filter .16s ease, opacity .16s ease; }
.trend-bar.primary { background: linear-gradient(180deg, var(--aqua), var(--petrol)); }
.trend-bar.comparison { background: #bdcfd1; }
.trend-bar.is-zero { opacity: .28; }
.trend-bar:hover { filter: brightness(.82); }
.trend-axis-label { overflow: hidden; padding-top: 6px; color: #73858a; font-size: 9px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.trend-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; padding-top: 11px; color: var(--muted); font-size: 10px; }
.trend-legend span { display: inline-flex; align-items: center; gap: 5px; }
.trend-legend i { width: 9px; height: 9px; border-radius: 3px; }
.trend-legend i.primary { background: var(--petrol); }
.trend-legend i.comparison { background: #bdcfd1; }
.report-annual-table { margin-top: 15px; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.modal-root { position: fixed; z-index: 50; inset: 0; pointer-events: none; }
.modal-root.is-open { pointer-events: auto; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(6, 35, 43, .58); backdrop-filter: blur(2px); }
.modal { position: relative; width: min(580px, calc(100% - 28px)); max-height: min(730px, calc(100vh - 28px)); margin: 7vh auto; overflow: auto; border-radius: 15px; background: #fff; box-shadow: 0 20px 70px rgba(0,0,0,.28); }
.modal-header { display: flex; align-items: start; justify-content: space-between; gap: 15px; padding: 20px 21px 15px; border-bottom: 1px solid #e5eeee; }
.modal-header h2 { margin: 0; color: var(--navy); font-size: 18px; }
.modal-header p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.modal-close { width: 30px; height: 30px; border: 0; border-radius: 7px; color: var(--muted); background: #f0f5f5; font-size: 20px; }
.modal-content { padding: 19px 21px; }
.modal-footer { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding: 14px 21px; border-top: 1px solid #e5eeee; background: #fbfcfc; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.form-field { display: grid; gap: 5px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { color: #4e6268; font-size: 12px; font-weight: 700; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 37px; padding: 8px 9px; border: 1px solid #cbd9da; border-radius: 7px; color: var(--ink); background: #fff; }
.form-field textarea { min-height: 80px; resize: vertical; }
.field-note { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.document-select { display: grid; gap: 7px; }
.document-check { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px; border: 1px solid #e2ebeb; border-radius: 7px; }
.document-check label { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 12px; }
.document-check small { color: var(--muted); }
.timer-task-list { display: grid; gap: 8px; margin-top: 8px; }
.timer-task-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px; border: 1px solid #e0e9e9; border-radius: 8px; }
.timer-task-item label { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 12px; font-weight: 650; }
.timer-task-item small { color: var(--muted); }
.timer-task-message { margin: 7px 0 0; padding: 10px; border: 1px dashed #cbdcde; border-radius: 8px; background: #f8fbfb; }
[data-timer-process-search-result].is-empty { color: var(--danger); font-weight: 700; }
.time-allocation-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; padding: 11px; border: 1px solid #c9e5de; border-radius: 8px; background: #f2fbf7; }
.time-allocation-summary span { color: #47656a; font-size: 12px; }
.time-allocation-summary strong { color: var(--petrol); font-size: 16px; font-variant-numeric: tabular-nums; }
.allocation-options { display: grid; gap: 9px; }
.allocation-option { display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding: 12px; border: 1px solid #dbe7e7; border-radius: 9px; background: #fff; text-align: left; }
.allocation-option:hover { border-color: var(--teal); background: #f6fbfb; }
.allocation-option b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; color: var(--petrol); background: #e5f4f2; font-size: 15px; }
.allocation-option strong, .allocation-option small { display: block; }
.allocation-option strong { color: var(--navy); font-size: 13px; }
.allocation-option small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.allocation-total { margin: 9px 0 0; color: var(--muted); font-size: 11px; }
.toast-root { position: fixed; z-index: 80; right: 17px; bottom: 17px; display: grid; gap: 8px; max-width: min(370px, calc(100% - 34px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid #cce7df; border-radius: 10px; color: #155b45; background: #f1fbf7; box-shadow: 0 10px 30px rgba(6,44,50,.15); animation: enter .25s ease-out; }
.toast.error { color: #8e3238; border-color: #f0c5c8; background: #fff7f7; }
.toast-icon { font-weight: 900; }
.toast strong { display: block; font-size: 12px; }
.toast span { display: block; margin-top: 2px; font-size: 11px; }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } }

.login-screen { min-height: calc(100vh - 74px); display: grid; place-items: center; padding: 30px; }
.login-card { width: min(460px, 100%); padding: 30px; border: 1px solid #dce7e7; border-radius: 17px; background: #fff; box-shadow: 0 16px 45px rgba(7, 47, 56, .1); }
.login-card .brand { width: 170px; margin: 0 0 20px; }
.login-card .brand-logo { width: 170px; }
.login-card h1 { margin: 0; color: var(--navy); font-size: 25px; letter-spacing: -.04em; }
.login-card p { color: var(--muted); }
.role-chooser { display: grid; gap: 8px; margin: 20px 0; }
.role-choice { display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid #dbe6e6; border-radius: 10px; color: var(--ink); background: #fff; text-align: left; }
.role-choice:hover, .role-choice.selected { border-color: var(--teal); background: #f4fbfb; }
.role-choice .avatar { width: 37px; height: 37px; }
.role-choice strong, .role-choice small { display: block; }
.role-choice small { margin-top: 1px; color: var(--muted); }

@media (max-width: 1250px) {
  .dashboard-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .details-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-health { grid-template-columns: 130px minmax(0, 1fr); }
  .flow-actions { grid-column: 1 / -1; }
  .report-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-chart-grid { grid-template-columns: 1fr; }
}
@media (max-width: 940px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; transform: translateX(-102%); width: 255px; transition: transform .2s ease; box-shadow: 8px 0 25px rgba(0,0,0,.17); }
  .sidebar.is-open { transform: translateX(0); }
  .mobile-nav { display: inline-grid; }
  .topbar { padding: 11px 18px; }
  .content { padding: 25px 18px 45px; }
  .layout-two, .layout-uneven { grid-template-columns: 1fr; }
  .topbar-actions { margin-left: auto; }
  .timer-status small, .search-trigger span:not(.shortcut), .user-name { display: none; }
  .sidebar-footer { padding-bottom: 10px; }
  .weekly-grid { grid-template-columns: repeat(7, minmax(150px, 1fr)); }
}
@media (max-width: 660px) {
  .topbar { gap: 7px; }
  .breadcrumbs { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .timer-root { margin-left: 0; }
  .timer-widget { gap: 5px; padding-left: 6px; }
  .timer-status { display: none; }
  .timer-clock { min-width: 58px; font-size: 12px; }
  .page-header, .process-hero { grid-template-columns: 1fr; display: grid; }
  .header-actions, .process-hero-actions { justify-content: flex-start; }
  .dashboard-grid, .report-grid, .mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-card { min-height: 108px; padding: 14px; }
  .metric-value { font-size: 22px; }
  .details-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specialty-row { grid-template-columns: 27px minmax(95px, 1fr) 28px; }
  .specialty-row .status, .specialty-row > small { display: none; }
  .filter-search { min-width: 100%; flex-basis: 100%; }
  .filter-spacer { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .modal { margin: 14px auto; }
  .flow-health { grid-template-columns: 1fr; }
  .flow-score { min-height: 120px; }
  .flow-actions { grid-column: auto; }
  .flow-signals { grid-template-columns: 1fr; }
  .report-summary-grid { grid-template-columns: 1fr; }
  .report-section-heading { align-items: start; flex-direction: column; gap: 5px; }
  .report-section-heading > p { text-align: left; }
  .report-year-filter .subtle { width: 100%; margin-left: 0; }
}
@media (max-width: 390px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .details-grid { grid-template-columns: 1fr; }
  .header-actions .search-trigger { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Aplicação PHP persistente */
.inline-form { display: inline; margin: 0; }
.entity-request-update-form { display: grid; grid-template-columns: minmax(150px, 1.4fr) minmax(120px, .9fr) minmax(165px, 1.2fr) auto; gap: 7px; align-items: end; min-width: 520px; }
.entity-request-update-form label { display: grid; gap: 3px; color: #4e6268; font-size: 11px; font-weight: 700; }
.entity-request-update-form select, .entity-request-update-form input { min-width: 0; }
.form-stack { display: grid; gap: 13px; }
.form-panel { margin-top: 18px; }
.form-field fieldset, fieldset.form-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.form-field legend { margin-bottom: 7px; color: #4e6268; font-size: 12px; font-weight: 700; }
.form-field .button, .form-stack .button { justify-self: start; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.notice { margin: 0 0 18px; padding: 11px 13px; border: 1px solid; border-radius: 9px; font-size: 13px; }
.notice-success { color: #155b45; border-color: #bde5d4; background: #effaf5; }
.notice-error { color: #8e3238; border-color: #efc3c7; background: #fff5f5; }
.notice p { margin: 0; }
.check-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.check-item { min-height: 35px; padding: 8px; border: 1px solid #e0e9e9; border-radius: 7px; background: #fbfdfd; }
.check-item:hover { border-color: #92cecb; }
.specialties-fieldset { margin-top: 2px !important; }
.specialties-fieldset legend { margin-bottom: 9px; }
.specialties-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.specialty-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #dce7e7;
  border-radius: 9px;
  color: #40565d;
  background: #fbfdfd;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.specialty-option:hover { border-color: #8bc8c6; background: #f5fbfa; }
.specialty-option:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(20, 155, 155, .14); }
.specialty-option:has(input:checked) { border-color: #65bbb8; color: var(--navy); background: #eaf7f5; }
.specialty-option input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  border-radius: 4px;
  accent-color: var(--teal);
  cursor: pointer;
}
.specialty-option span { min-width: 0; }
.specialty-pricing-toolbar { display: grid; grid-template-columns: minmax(240px, 480px) 1fr; align-items: end; gap: 12px; margin-bottom: 7px; }
.specialty-search-result { margin: 0 0 9px; color: var(--muted); font-size: 11px; font-weight: 650; text-align: right; }
.specialty-search-result.is-empty, [data-task-specialty-result].is-empty { color: var(--danger); font-weight: 750; }
.specialty-pricing-note { margin-bottom: 12px; }
.specialties-pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.specialty-price-card { min-width: 0; overflow: hidden; border: 1px solid #dce7e7; border-radius: 10px; background: #fbfdfd; transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease; }
.specialty-price-card:hover { border-color: #8bc8c6; }
.specialty-price-card:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(20, 155, 155, .14); }
.specialty-price-card.is-selected { border-color: #65bbb8; background: #f1faf8; }
.specialty-price-card .specialty-option { min-height: 48px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.specialty-price-card .specialty-option:hover, .specialty-price-card .specialty-option:has(input:checked) { border: 0; background: transparent; box-shadow: none; }
.specialty-price-field { display: grid; gap: 5px; padding: 10px 12px 12px; border-top: 1px solid #d9e8e6; }
.specialty-price-field label { color: #4e6268; font-size: 11px; font-weight: 700; }
.money-input { position: relative; }
.money-input > span { position: absolute; left: 10px; top: 50%; z-index: 1; color: var(--petrol); font-size: 12px; font-weight: 800; transform: translateY(-50%); pointer-events: none; }
.form-field .money-input input { padding-left: 27px; font-variant-numeric: tabular-nums; }
.form-field input[aria-invalid="true"] { border-color: var(--danger); background: var(--danger-bg); }
.budget-total-field input { color: var(--navy) !important; font-size: 16px; font-weight: 850; font-variant-numeric: tabular-nums; background: #e8f5f3 !important; }
.budget-lines { display: grid; margin-top: 17px; overflow: hidden; border: 1px solid #dce7e7; border-radius: 9px; }
.budget-line { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, auto); gap: 14px; padding: 10px 12px; border-bottom: 1px solid #e5eded; font-size: 12px; }
.budget-line > :last-child { text-align: right; font-variant-numeric: tabular-nums; }
.budget-line-heading { color: var(--muted); background: #f5f9f9; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.budget-line-total { border-bottom: 0; color: var(--navy); background: #edf8f6; font-size: 13px; }
.task-specialty-picker { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: end; column-gap: 12px; }
.task-specialty-picker > label:first-child { grid-column: 1; }
.task-specialty-picker > input { grid-column: 1; }
.task-specialty-picker > label:nth-of-type(2) { grid-column: 2; grid-row: 1; }
.task-specialty-picker > select { grid-column: 2; grid-row: 2; }
.task-specialty-picker > small { grid-column: 1 / -1; }
.settings-admin-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.settings-admin-link { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px; border: 1px solid #dce7e7; border-radius: 11px; color: var(--navy); background: #fff; box-shadow: 0 6px 18px rgba(7, 47, 56, .04); transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease; }
.settings-admin-link:hover { border-color: #8bc8c6; box-shadow: 0 8px 22px rgba(7, 47, 56, .08); transform: translateY(-1px); }
.settings-admin-link:focus-visible { outline: 3px solid rgba(20, 155, 155, .2); outline-offset: 2px; }
.settings-admin-icon { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 9px; color: #fff; background: var(--petrol); font-size: 17px; }
.settings-admin-link span:last-child { min-width: 0; }
.settings-admin-link strong, .settings-admin-link small { display: block; }
.settings-admin-link strong { font-size: 13px; }
.settings-admin-link small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.settings-section { margin-bottom: 18px; scroll-margin-top: 86px; }
.settings-create-area { scroll-margin-top: 86px; border-top: 1px solid #e2ebeb; background: #fbfdfd; }
.settings-create-area h3 { margin: 0; color: var(--navy); font-size: 15px; }
.settings-create-area > p { margin: 4px 0 15px; }
.specialty-management-note { margin: 0 0 14px; }
.specialty-create-form { display: flex; align-items: end; gap: 10px; }
.specialty-name-field { flex: 1; max-width: 520px; }
.specialty-create-form .button { flex: none; }
.specialty-usage { display: flex; flex-wrap: wrap; gap: 5px 13px; color: var(--muted); font-size: 12px; }
.specialty-usage span { white-space: nowrap; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.tag { padding: 5px 8px; border-radius: 99px; color: var(--petrol); background: #e6f4f3; font-size: 11px; font-weight: 750; }
.metric-short { grid-template-columns: minmax(210px, 270px); margin-bottom: 18px; }
.compact-list, .result-list { display: grid; gap: 7px; margin: 12px 0 0; padding: 0; list-style: none; }
.compact-list li { display: flex; justify-content: space-between; gap: 9px; padding: 7px 0; border-bottom: 1px solid #eaf0f0; color: var(--muted); font-size: 12px; }
.compact-list strong { color: var(--navy); }
.search-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.result-list li { padding: 7px 0; border-bottom: 1px solid #eaf0f0; }
.result-list li:last-child { border-bottom: 0; }
.result-list a { display: grid; color: var(--petrol); font-weight: 650; }
.result-list small { margin-top: 2px; color: var(--muted); font-weight: 400; }
.manual-allocations { display: grid; gap: 10px; padding: 13px; border: 1px solid #dce7e7; border-radius: 9px; background: #fbfdfd; }
.status-update-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 14px 0; padding: 10px 12px; border: 1px solid #d9e7e7; border-radius: 9px; color: var(--navy); background: #fff; font-size: 12px; font-weight: 700; }
.status-update-bar .inline-form { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.process-detail-hero ~ .panel, .process-detail-hero ~ .details-grid, .process-detail-hero ~ .layout-two, .process-detail-hero ~ .status-update-bar { margin-top: 18px; }
.process-data-card { margin: 18px 0; }
.process-hours-card { margin-top: 18px; }
.process-collapsible-card > summary { cursor: pointer; list-style: none; }
.process-collapsible-card > summary::-webkit-details-marker { display: none; }
.process-collapsible-summary { user-select: none; }
.process-collapsible-heading { display: grid; min-width: 0; gap: 3px; }
.process-collapsible-title { color: var(--navy); font-size: 15px; font-weight: 700; letter-spacing: -.012em; }
.process-collapsible-heading small { color: var(--muted); }
.process-collapsible-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
.process-collapsible-indicator { display: inline-grid; place-items: center; width: 24px; height: 24px; flex: 0 0 24px; border-radius: 6px; color: var(--petrol); background: #edf5f5; font-size: 17px; font-weight: 800; line-height: 1; transition: transform .16s ease, background .16s ease; }
.process-collapsible-indicator::before { content: '⌄'; }
.process-collapsible-card[open] .process-collapsible-indicator { background: #dceeee; transform: rotate(180deg); }
.process-collapsible-card > summary:focus-visible { outline: 2px solid var(--petrol); outline-offset: -3px; }
.process-card-action { display: flex; justify-content: flex-end; padding: 12px 18px; }
.process-card-action + .panel-body { padding-top: 0; }
.process-data-form { display: grid; gap: 15px; }
.form-section { min-width: 0; margin: 0; padding: 16px; border: 1px solid #dfe9e9; border-radius: 10px; background: #fbfdfd; }
.form-section legend { padding: 0 7px; color: var(--navy); font-size: 12px; font-weight: 850; letter-spacing: .055em; text-transform: uppercase; }
.form-section .form-grid { align-items: start; }
.form-section .section-note { margin: -4px 0 12px; }
.form-field input[readonly] { color: #4f686e; background: #eef4f4; cursor: default; }
.allocation-total { font-weight: 700; }
.allocation-total.is-valid { color: var(--success); }
.allocation-total.is-invalid { color: var(--danger); }
.setup-screen { min-height: 100vh; display: grid; place-items: center; padding: 26px; background: linear-gradient(145deg, #edf6f6, #f8fafb); }
.setup-card { width: min(700px, 100%); padding: 30px; border: 1px solid #dbe8e8; border-radius: 18px; background: #fff; box-shadow: 0 16px 50px rgba(7, 47, 56, .12); }
.setup-logo, .login-logo { display: block; width: 150px; height: auto; margin-bottom: 14px; }
.setup-card h1 { margin: 0; color: var(--navy); font-size: 26px; letter-spacing: -.04em; }
.setup-card > .subtle { max-width: 600px; margin: 8px 0 20px; }
.login-form { display: grid; gap: 13px; margin-top: 19px; }
.login-card .login-logo { width: 145px; }

@media (max-width: 940px) {
  .settings-admin-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specialties-pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 660px) {
  .check-grid, .search-results { grid-template-columns: 1fr; }
  .settings-admin-nav { grid-template-columns: 1fr; }
  .specialties-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specialties-pricing-grid, .specialty-pricing-toolbar { grid-template-columns: 1fr; }
  .specialty-search-result { margin-top: -4px; text-align: left; }
  .task-specialty-picker { grid-template-columns: 1fr; }
  .task-specialty-picker > label:first-child, .task-specialty-picker > input, .task-specialty-picker > label:nth-of-type(2), .task-specialty-picker > select, .task-specialty-picker > small { grid-column: 1; grid-row: auto; }
  .metric-short { grid-template-columns: 1fr; }
  .setup-card { padding: 21px; }
}
@media (max-width: 440px) {
  .specialties-grid { grid-template-columns: 1fr; }
  .specialty-create-form { align-items: stretch; flex-direction: column; }
  .specialty-name-field { max-width: none; }
}
