:root {
  color-scheme: light;
  --color-primary: #00586e;
  --color-primary-hover: #004657;
  --color-accent: #00acbf;
  --color-accent-hover: #0095a6;
  --color-accent-light: #e6f8fa;
  --color-background: #f5f8fa;
  --color-surface: #fff;
  --color-surface-secondary: #f8fafc;
  --color-text-primary: #0f172a;
  --color-text-secondary: #64748b;
  --color-text-muted: #94a3b8;
  --color-border: #e5eaf0;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-info: #3b82f6;
  --sidebar-width: 240px;
  --header-height: 68px;
  --spacing-1: 4px;
  --spacing-2: 8px;
  --spacing-3: 12px;
  --spacing-4: 16px;
  --spacing-5: 20px;
  --spacing-6: 24px;
  --spacing-8: 32px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-card: 0 2px 8px rgb(15 23 42 / 4%);
  --shadow-dropdown: 0 12px 32px rgb(15 23 42 / 13%);
  --focus-ring: 0 0 0 3px rgb(0 172 191 / 20%);
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--color-background); scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100vh; margin: 0; color: var(--color-text-primary); background: var(--color-background); font-size: 16px; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
::selection { color: #fff; background: var(--color-primary); }
:focus-visible { outline: none; box-shadow: var(--focus-ring); }
[hidden] { display: none !important; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; display: flex; width: var(--sidebar-width); flex-direction: column; padding: 22px 14px 14px; overflow: auto; color: #fff; background: var(--color-primary); scrollbar-color: rgb(255 255 255 / 25%) transparent; scrollbar-width: thin; }
.brand { display: inline-flex; align-items: center; width: fit-content; margin: 0 0 34px 9px; color: #fff; }
.brand-logo { display: block; width: 176px; height: auto; }
.brand-logo--custom { max-height: 64px; object-fit: contain; }
.brand-name { font-size: 25px; font-weight: 700; letter-spacing: -.8px; }
.brand-period { color: var(--color-accent); }
.sidebar-label { padding: 0 12px; margin: 0 0 10px; color: rgb(255 255 255 / 56%); font-size: 12px; font-weight: 700; letter-spacing: 1.15px; }
.nav-list { display: grid; gap: 4px; }
.nav-link { position: relative; display: flex; min-height: 42px; align-items: center; gap: 12px; padding: 0 12px; border-radius: 8px; color: rgb(255 255 255 / 78%); font-size: 15px; font-weight: 500; transition: color .16s ease, background-color .16s ease; }
.nav-link > svg { width: 19px; height: 19px; flex: 0 0 auto; color: rgb(255 255 255 / 78%); }
.nav-link:hover { color: #fff; background: rgb(255 255 255 / 10%); }
.nav-link.is-active { color: #fff; background: var(--color-accent); font-weight: 600; box-shadow: 0 4px 10px rgb(0 30 40 / 12%); }
.nav-link.is-active > svg { color: #fff; }
.nav-pip { width: 6px; height: 6px; flex: 0 0 auto; margin-left: auto; border-radius: 50%; background: rgb(255 255 255 / 33%); }
.nav-link.is-active .nav-pip { background: #fff; }
.nav-todo-count { display: inline-grid; min-width: 20px; height: 20px; flex: 0 0 auto; place-items: center; margin-left: auto; padding: 0 5px; border-radius: 999px; color: #fff; background: #f28c28; font-size: 11px; font-weight: 700; line-height: 1; }
.nav-link[hidden] { display: none; }
.sidebar-bottom { display: grid; gap: 13px; margin-top: auto; padding-top: 20px; }
.nav-link--settings { border-top: 1px solid rgb(255 255 255 / 13%); border-radius: 0; padding-top: 13px; }
.workspace-card { display: flex; min-height: 58px; align-items: center; gap: 10px; padding: 9px; border: 1px solid rgb(255 255 255 / 12%); border-radius: 10px; background: rgb(0 43 56 / 18%); }
.workspace-avatar, .profile-avatar { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 10px; color: #fff; background: rgb(0 172 191 / 80%); font-size: 16px; font-weight: 700; }
.workspace-copy, .profile-copy { display: grid; min-width: 0; gap: 3px; }
.workspace-copy strong { font-size: 14px; font-weight: 600; }
.workspace-copy span { color: rgb(255 255 255 / 63%); font-size: 13px; }
.workspace-status { width: 7px; height: 7px; flex: 0 0 auto; margin-left: auto; border-radius: 50%; background: #45d6a2; box-shadow: 0 0 0 3px rgb(69 214 162 / 15%); }

.main-column { min-height: 100vh; margin-left: var(--sidebar-width); }
.topbar { position: sticky; z-index: 20; top: 0; display: flex; height: var(--header-height); align-items: center; justify-content: space-between; gap: 24px; padding: 0 34px; border-bottom: 1px solid var(--color-border); background: rgb(255 255 255 / 94%); backdrop-filter: blur(14px); }
.topbar-search-wrap { position: relative; display: flex; width: min(420px, 42vw); align-items: center; }
.search-icon { position: absolute; left: 13px; width: 17px; height: 17px; color: #94a3b8; pointer-events: none; }
.topbar-search { width: 100%; height: 38px; padding: 0 58px 0 39px; border: 1px solid transparent; border-radius: 8px; outline: none; color: var(--color-text-primary); background: #f4f7f9; font-size: 15px; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.topbar-search::placeholder { color: #94a3b8; }
.topbar-search:focus { border-color: rgb(0 172 191 / 50%); background: #fff; box-shadow: var(--focus-ring); }
.search-shortcut { position: absolute; right: 9px; padding: 3px 6px; border: 1px solid var(--color-border); border-radius: 5px; color: #94a3b8; background: #fff; font-family: inherit; font-size: 12px; }
.global-search-results { position: absolute; z-index: 60; top: calc(100% + 8px); left: 0; width: min(480px, calc(100vw - 24px)); max-height: min(480px, calc(100vh - 100px)); overflow-y: auto; padding: 6px; border: 1px solid var(--color-border); border-radius: 11px; background: #fff; box-shadow: 0 14px 35px rgb(15 36 55 / 16%); }
.global-search-results[hidden] { display: none; }
.global-search-category { padding: 9px 10px 5px; color: var(--color-text-muted); font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.global-search-result { display: flex; min-height: 45px; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 10px; border-radius: 7px; color: var(--color-text-primary); text-decoration: none; }
.global-search-result:hover, .global-search-result.is-active, .global-search-result:focus-visible { outline: none; background: #eef8fa; }
.global-search-result--view-all { margin-top: 3px; border-top: 1px solid var(--color-border); color: var(--color-accent-hover); }
.global-search-result--view-all .global-search-result-type { color: var(--color-accent-hover); font-weight: 600; }
.global-search-result-copy { display: grid; min-width: 0; gap: 2px; }
.global-search-result-copy strong, .global-search-result-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.global-search-result-copy strong { font-size: 13px; font-weight: 600; }
.global-search-result-copy small { color: var(--color-text-secondary); font-size: 11px; }
.global-search-result-type { flex: 0 0 auto; color: var(--color-text-muted); font-size: 11px; }
.global-search-message { margin: 0; padding: 13px 10px; color: var(--color-text-secondary); font-size: 13px; }
.topbar-actions { display: flex; align-items: center; gap: 17px; }
.icon-button { position: relative; display: inline-grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; padding: 0; border: 0; border-radius: 9px; color: #64748b; background: transparent; cursor: pointer; transition: color .16s ease, background .16s ease; }
.icon-button:hover { color: var(--color-primary); background: #f1f6f8; }
.icon-button svg { width: 19px; height: 19px; }
.notification-button::after { position: absolute; top: 7px; right: 7px; width: 6px; height: 6px; border: 1px solid #fff; border-radius: 50%; background: #d1d9e1; content: ''; }
.profile-button { display: flex; align-items: center; gap: 9px; padding: 4px 0 4px 4px; border: 0; border-radius: 9px; background: transparent; text-align: left; cursor: pointer; }
.profile-button:hover { background: #f7f9fa; }
.profile-avatar { width: 34px; height: 34px; border-radius: 50%; color: #00586e; background: #dff7f8; font-size: 15px; }
.profile-copy strong { font-size: 14px; font-weight: 600; }
.profile-copy small { color: var(--color-text-muted); font-size: 12px; }
.chevron-icon { width: 15px; height: 15px; margin-left: 3px; color: #94a3b8; }
.popover-anchor { position: relative; }
.popover { position: absolute; z-index: 40; top: calc(100% + 11px); right: 0; width: 300px; padding: 15px; border: 1px solid var(--color-border); border-radius: 12px; background: #fff; box-shadow: var(--shadow-dropdown); animation: pop-in .14s ease-out; }
.notification-popover { width: 310px; }
.popover-heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: 13px; border-bottom: 1px solid #eef1f4; }
.popover-heading strong { font-size: 15px; }
.popover-empty { display: grid; min-height: 125px; align-content: center; justify-items: center; gap: 9px; color: var(--color-text-secondary); font-size: 15px; }
.popover-empty-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; color: var(--color-primary); background: var(--color-surface-secondary); }
.popover-empty-icon svg { width: 20px; height: 20px; }
.profile-popover-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid #eef1f4; }
.profile-popover-head > div { display: grid; gap: 4px; }
.profile-popover-head strong { font-size: 14px; }
.profile-popover-head small { color: var(--color-text-secondary); font-size: 12px; }
.profile-notice { padding-top: 12px; color: var(--color-text-secondary); font-size: 15px; line-height: 1.55; }
.mobile-menu-button { display: none; }

.main-content { width: min(100%, 1480px); min-height: calc(100vh - var(--header-height)); margin: 0 auto; padding: 34px 36px 20px; }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 10px; color: #718096; font-size: 12px; font-weight: 700; letter-spacing: 1px; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 0 3px var(--color-accent-light); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 7px; color: var(--color-text-primary); font-size: clamp(28px, 2.7vw, 34px); font-weight: 700; letter-spacing: -.9px; line-height: 1.15; }
.title-period { color: var(--color-accent); }
.page-description { margin-bottom: 0; color: var(--color-text-secondary); font-size: 16px; line-height: 1.6; }
.page-header-meta { display: flex; align-items: center; gap: 13px; padding-bottom: 2px; }
.today-label { color: #64748b; font-size: 15px; font-weight: 500; text-transform: capitalize; }
.preview-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border: 1px solid #d7eff1; border-radius: 6px; color: #087888; background: #ecfafb; font-size: 13px; font-weight: 600; }
.preview-badge span { width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent); }
.preview-banner { position: relative; display: flex; align-items: center; gap: 12px; min-height: 53px; padding: 10px 42px 10px 13px; margin-bottom: 18px; border: 1px solid #d7eff1; border-radius: 10px; background: linear-gradient(90deg, #effbfc 0%, #f8fcfc 100%); }
.preview-banner-icon { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 8px; color: #078698; background: #d8f4f6; }
.preview-banner-icon svg { width: 16px; height: 16px; }
.preview-banner p { margin: 0; color: #526a72; font-size: 15px; line-height: 1.55; }
.preview-banner p strong { margin-right: 4px; color: #164958; font-weight: 600; }
.banner-dismiss { position: absolute; top: 50%; right: 10px; display: grid; width: 28px; height: 28px; place-items: center; padding: 0; transform: translateY(-50%); border: 0; border-radius: 6px; color: #73929a; background: transparent; cursor: pointer; }
.banner-dismiss:hover { color: #164958; background: rgb(0 86 106 / 7%); }
.banner-dismiss svg { width: 15px; height: 15px; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.contract-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.contract-kpi-card { display: grid; min-width: 0; min-height: 112px; grid-template-columns: 42px minmax(0, 1fr); align-content: start; align-items: start; gap: 2px 12px; padding: 16px; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-card); }
.contract-kpi-icon { display: grid; width: 40px; height: 40px; grid-row: 1; place-items: center; border-radius: 50%; color: #00a9bf; background: #e2f8fa; }
.contract-kpi-icon svg { width: 21px; height: 21px; }
.contract-kpi-content { display: grid; min-width: 0; gap: 2px; }
.contract-kpi-value { color: var(--color-text-primary); font-size: 27px; font-weight: 700; letter-spacing: -.4px; line-height: 1.15; overflow-wrap: anywhere; }
.contract-kpi-value--revenue { font-size: clamp(20px, 2vw, 27px); }
.contract-kpi-label { color: #344054; font-size: 15px; font-weight: 600; line-height: 1.4; }
.contract-kpi-caption { color: #8492a6; font-size: 13px; line-height: 1.45; }
.contract-kpi-meter-row { display: flex; grid-column: 1 / -1; align-items: center; gap: 9px; margin-top: 10px; }
.contract-kpi-meter { height: 9px; flex: 1; overflow: hidden; border-radius: 99px; background: #e3ebf0; }
.contract-kpi-meter span { display: block; height: 100%; border-radius: inherit; background: #00bfd0; }
.contract-kpi-meter span.is-overrun { background: #ec6a43; }
.contract-kpi-percent { color: #526a7b; font-size: 13px; font-weight: 600; white-space: nowrap; }
.contract-kpi-renewal { grid-column: 2; justify-self: start; margin-top: 8px; padding: 3px 7px; border-radius: 5px; color: #137a51; background: #e5f8ef; font-size: 12px; font-weight: 600; }
.contract-kpi-renewal.is-warning { color: #b42318; background: #fff0ed; }
.contract-charts-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .95fr); gap: 14px; margin-bottom: 18px; }
.contract-chart-card { min-width: 0; min-height: 235px; padding: 16px 18px 13px; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-card); }
.contract-chart-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.contract-chart-heading h2 { margin: 0; color: var(--color-text-primary); font-size: 16px; font-weight: 650; }
.contract-chart-year { color: #8492a6; font-size: 13px; }
.contract-hours-legend { display: flex; justify-content: flex-end; gap: 14px; margin-bottom: 5px; color: #64748b; font-size: 12px; }
.contract-hours-legend span { display: inline-flex; align-items: center; gap: 5px; }
.contract-hours-legend i, .contract-type-legend i { display: block; width: 9px; height: 9px; flex: 0 0 auto; border-radius: 2px; }
.contract-hours-legend .is-consumed, .contract-hours-stack .is-consumed { background: #00a9bf; }
.contract-hours-legend .is-remaining, .contract-hours-stack .is-remaining { background: #c5e0eb; }
.contract-hours-plot { position: relative; height: 164px; padding-bottom: 22px; background: repeating-linear-gradient(to bottom, #e8eef2 0, #e8eef2 1px, transparent 1px, transparent 25%); }
.contract-hours-axis { position: absolute; inset: 0 auto 22px 0; display: flex; width: 37px; flex-direction: column; justify-content: space-between; color: #718096; font-size: 11px; line-height: 1; text-align: right; }
.contract-hours-bars { position: absolute; inset: 0 0 22px 43px; display: flex; align-items: stretch; justify-content: space-between; gap: 5px; }
.contract-hours-column { position: relative; display: flex; min-width: 0; flex: 1 1 0; justify-content: center; align-items: flex-end; }
.contract-hours-stack { display: flex; width: min(18px, 75%); max-height: 100%; flex-direction: column; justify-content: flex-end; overflow: hidden; border-radius: 3px 3px 0 0; }
.contract-hours-stack .is-remaining, .contract-hours-stack .is-consumed { display: block; min-height: 0; }
.contract-hours-month { position: absolute; top: calc(100% + 5px); left: 50%; color: #64748b; font-size: 11px; white-space: nowrap; transform: translateX(-50%); }
.contract-chart-card--distribution { display: flex; flex-direction: column; }
.contract-type-chart { display: flex; min-height: 170px; flex: 1; align-items: center; justify-content: center; gap: clamp(14px, 2vw, 28px); }
.contract-donut { display: grid; width: 142px; height: 142px; flex: 0 0 auto; place-items: center; border-radius: 50%; }
.contract-donut > div { display: grid; width: 91px; height: 91px; align-content: center; justify-items: center; border-radius: 50%; background: var(--color-surface); }
.contract-donut strong { color: var(--color-text-primary); font-size: 24px; line-height: 1.15; }
.contract-donut span { color: #526a7b; font-size: 11px; }
.contract-type-legend { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.contract-type-legend li { display: grid; grid-template-columns: 10px 23px minmax(0, 1fr); align-items: center; gap: 7px; color: #526a7b; font-size: 14px; }
.contract-type-legend strong { color: var(--color-text-primary); font-size: 14px; font-weight: 600; }
.contract-chart-empty { margin: 0; color: var(--color-text-secondary); font-size: 14px; }
.stat-card, .panel { border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-card); }
.stat-card { min-height: 152px; padding: 16px 17px 14px; }
.stat-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.stat-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; }
.stat-icon svg { width: 18px; height: 18px; }
.stat-icon--teal, .quick-icon--teal { color: #0693a2; background: #e4f8f9; }
.stat-icon--blue, .quick-icon--blue { color: #3975cb; background: #eaf2ff; }
.stat-icon--violet, .quick-icon--violet { color: #7460c8; background: #f0edff; }
.stat-icon--amber, .quick-icon--amber { color: #cf8b17; background: #fff4df; }
.stat-more { color: #94a3b8; font-size: 22px; letter-spacing: 1px; line-height: 1; }
.stat-value { margin-bottom: 3px; color: var(--color-text-primary); font-size: 27px; font-weight: 700; letter-spacing: -.5px; line-height: 1.2; }
.stat-unit { color: #64748b; font-size: 16px; font-weight: 500; }
.stat-label { margin-bottom: 5px; color: #344054; font-size: 16px; font-weight: 600; }
.stat-footnote { color: #94a3b8; font-size: 13px; line-height: 1.45; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(290px, .9fr); gap: 16px; }
.panel { min-width: 0; min-height: 300px; padding: 19px 20px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.panel-heading h2 { margin: 0 0 5px; font-size: 18px; font-weight: 650; letter-spacing: -.15px; }
.panel-heading p { margin: 0; color: var(--color-text-secondary); font-size: 15px; }
.text-button { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; border: 0; color: var(--color-accent-hover); background: transparent; font-size: 14px; font-weight: 600; cursor: pointer; }
.text-button svg { width: 14px; height: 14px; }
.text-button:disabled { color: #aab4bd; cursor: default; }
.empty-state { display: grid; justify-items: center; text-align: center; }
.empty-state--compact { min-height: 213px; align-content: center; padding: 16px; }
.empty-state-art { display: grid; width: 62px; height: 62px; place-items: center; margin-bottom: 12px; border: 1px solid #edf1f4; border-radius: 19px; color: #8399a4; background: #f8fafb; }
.empty-state-art svg { width: 39px; height: 39px; stroke-width: 1.35; }
.empty-state-art .empty-art-accent { fill: #e4f8f5; stroke: #b9ece0; }
.empty-state-art .empty-art-check { stroke: #10a77b; stroke-width: 1.8; }
.empty-state h3 { margin: 0 0 5px; color: #344054; font-size: 16px; font-weight: 600; }
.empty-state p { max-width: 250px; margin: 0; color: #8492a6; font-size: 15px; line-height: 1.55; }
.quick-access-panel { padding-bottom: 10px; }
.quick-links { display: grid; margin-top: 12px; }
.quick-link { display: flex; min-height: 57px; align-items: center; gap: 10px; padding: 7px 2px; border-bottom: 1px solid #f0f2f5; border-radius: 4px; transition: padding .16s ease, background .16s ease; }
.quick-link:last-child { border-bottom: 0; }
.quick-link:hover { padding-right: 7px; padding-left: 7px; background: #f8fbfc; }
.quick-icon { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 9px; }
.quick-icon svg { width: 17px; height: 17px; }
.quick-link > span:nth-child(2) { display: grid; gap: 4px; }
.quick-link strong { color: #334155; font-size: 15px; font-weight: 600; }
.quick-link small { color: #94a3b8; font-size: 13px; }
.quick-arrow { width: 15px; height: 15px; margin-left: auto; color: #a9b4c0; transition: transform .16s ease, color .16s ease; }
.quick-link:hover .quick-arrow { transform: translateX(2px); color: var(--color-accent); }
.app-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 2px 5px; color: #98a4b3; font-size: 13px; }

/* Admin dashboard: contract pacing, recent work, personal To do and team activity. */
.dashboard-admin > .page-header,
.dashboard-admin > .preview-banner,
.dashboard-admin > .kpi-grid,
.dashboard-admin > .dashboard-grid { display: none; }
.dashboard-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.dashboard-page-heading h1 { margin: 4px 0 5px; color: var(--color-text-primary); font-size: 30px; letter-spacing: -.6px; }
.dashboard-page-heading p { margin: 0; color: var(--color-text-secondary); font-size: 15px; }
.dashboard-date { padding: 7px 11px; border: 1px solid var(--color-border); border-radius: 8px; color: var(--color-text-secondary); background: #fff; font-size: 13px; }
.admin-dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.admin-dashboard-panel { min-width: 0; min-height: 0; padding: 17px 18px 13px; border: 1px solid var(--color-border); border-radius: 11px; background: #fff; box-shadow: 0 3px 10px rgba(16, 40, 63, .04); }
.dashboard-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-height: 44px; padding-bottom: 10px; border-bottom: 1px solid #edf1f5; }
.dashboard-panel-heading h2 { margin: 0 0 4px; font-size: 16px; font-weight: 650; }
.dashboard-panel-heading p { margin: 0; color: var(--color-text-secondary); font-size: 12px; line-height: 1.4; }
.dashboard-panel-heading .text-button { flex: 0 0 auto; font-size: 12px; }
.dashboard-contract-panel { overflow: hidden; padding: 0 0 4px; }
.dashboard-contract-panel--ahead { border-top: 3px solid #17c99a; }
.dashboard-contract-panel--behind { border-top: 3px solid #ff5964; }
.dashboard-contract-heading { display: flex; min-height: 88px; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid #edf1f5; }
.dashboard-contract-panel--ahead .dashboard-contract-heading { background: linear-gradient(105deg, #f0fbf7, #f8fdfb); }
.dashboard-contract-panel--behind .dashboard-contract-heading { background: linear-gradient(105deg, #fff3f4, #fff9f9); }
.dashboard-contract-heading-icon { display: grid; width: 52px; height: 52px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #08ae7e; background: #d8f7e9; }
.dashboard-contract-panel--behind .dashboard-contract-heading-icon { color: #f14450; background: #ffe0e3; }
.dashboard-contract-heading-icon svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.dashboard-contract-heading-copy { min-width: 0; flex: 1 1 auto; }
.dashboard-contract-heading-copy h2 { margin: 0 0 4px; font-size: 17px; font-weight: 700; }
.dashboard-contract-heading-copy p { margin: 0; color: #8492a6; font-size: 11px; line-height: 1.35; }
.dashboard-contract-count { display: grid; min-width: 50px; justify-items: center; gap: 1px; color: #08ae7e; }
.dashboard-contract-panel--behind .dashboard-contract-count { color: #f14450; }
.dashboard-contract-count strong { font-size: 28px; line-height: 1; }
.dashboard-contract-count span { color: #7d8ba0; font-size: 10px; }
.dashboard-contract-all { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 5px; color: #08a878; font-size: 11px; font-weight: 650; white-space: nowrap; }
.dashboard-contract-panel--behind .dashboard-contract-all { color: #f14450; }
.dashboard-contract-overrun-total { display: grid; min-width: 115px; justify-items: center; padding: 7px 11px; border-left: 1px solid #f0d9dc; border-radius: 9px; color: #f14450; background: #fff0f2; }
.dashboard-contract-overrun-total strong { font-size: 18px; white-space: nowrap; }
.dashboard-contract-overrun-total span { color: #71839a; font-size: 10px; }
.dashboard-contract-list, .dashboard-activity-list, .dashboard-todo-list, .dashboard-team-list { padding: 0; margin: 0; list-style: none; }
.dashboard-contract-list li { display: grid; min-height: 92px; grid-template-columns: 48px minmax(115px, 1fr) minmax(105px, 1.12fr) 76px 54px; align-items: center; gap: 10px; padding: 11px 18px; border-bottom: 1px solid #f0f3f6; }
.dashboard-contract-list .dashboard-contract-row--overrun { grid-template-columns: 42px minmax(100px, 1.1fr) minmax(100px, .85fr) 68px 76px 54px; gap: 8px; }
.dashboard-contract-column-head { display: grid; grid-template-columns: 42px minmax(100px, 1.1fr) minmax(100px, .85fr) 68px 76px 54px; gap: 8px; padding: 9px 18px; border-bottom: 1px solid #edf1f5; color: #7d8da5; font-size: 10px; font-weight: 600; text-align: center; }
.dashboard-contract-row-overrun { color: #e25353; font-size: 13px; text-align: center; white-space: nowrap; }
.dashboard-contract-list li:last-child, .dashboard-activity-list li:last-child, .dashboard-todo-list li:last-child, .dashboard-team-list li:last-child { border-bottom: 0; }
.dashboard-contract-name, .dashboard-list-copy { display: grid; min-width: 0; gap: 4px; }
.dashboard-contract-name strong, .dashboard-list-copy strong { overflow: hidden; color: var(--color-text-primary); font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-contract-name small, .dashboard-list-copy small { overflow: hidden; color: #8492a6; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-contract-logo { display: grid; width: 44px; height: 44px; place-items: center; overflow: hidden; border: 1px solid #edf1f5; border-radius: 50%; background: #f5f8fa; color: #52677f; font-size: 15px; font-weight: 700; }
.dashboard-contract-logo img { width: 100%; height: 100%; object-fit: cover; }
.dashboard-contract-usage { display: grid; min-width: 0; gap: 8px; color: #273d5c; font-size: 12px; font-weight: 600; }
.dashboard-contract-progress { height: 8px; overflow: hidden; border-radius: 99px; background: #e9eef3; }
.dashboard-contract-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #00b985, #15d09c); }
.dashboard-contract-panel--behind .dashboard-contract-progress i { background: #ff4855; }
.dashboard-contract-delta { display: grid; min-height: 47px; align-content: center; justify-items: center; padding: 4px; border-radius: 12px; color: #07976b; background: #effbf6; font-size: 13px; font-weight: 700; white-space: nowrap; }
.dashboard-contract-panel--behind .dashboard-contract-delta { color: #e25353; background: #fff3f4; }
.dashboard-contract-delta small { display: block; margin-top: 3px; color: #8492a6; font-size: 10px; font-weight: 500; }
.dashboard-contract-ring { position: relative; display: grid; width: 46px; height: 46px; place-items: center; border-radius: 50%; background: conic-gradient(#13bf8c var(--dashboard-ring-progress), #e9eef3 0); color: #243a58; }
.dashboard-contract-panel--behind .dashboard-contract-ring { background: conic-gradient(#fb5560 var(--dashboard-ring-progress), #f7dfe1 0); }
.dashboard-contract-ring::before { position: absolute; inset: 5px; border-radius: 50%; background: #fff; content: ''; }
.dashboard-contract-ring strong { position: relative; z-index: 1; font-size: 10px; font-weight: 700; }
.dashboard-empty-message { display: grid; min-height: 116px; place-items: center; margin: 0; color: #8a98aa; font-size: 13px; text-align: center; }
.dashboard-task-panel, .dashboard-todo-panel { min-height: 0; }
.dashboard-scope-form { width: 145px; flex: 0 0 auto; }
.dashboard-scope-form .form-input { min-height: 34px; padding: 5px 28px 5px 9px; font-size: 12px; }
.dashboard-task-heading-actions { display: flex; align-items: center; gap: 12px; }
.dashboard-activity-list li { display: flex; min-height: 40px; align-items: center; gap: 9px; border-bottom: 1px solid #f0f3f6; }
.dashboard-activity-list time, .dashboard-team-list time { flex: 0 0 auto; color: #91a0b2; font-size: 10px; }
.dashboard-list-icon { display: grid; width: 23px; height: 23px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #0a9c74; background: #dcf8eb; font-size: 12px; font-weight: 700; }
.dashboard-list-icon--open { color: #8196b1; background: #f1f5f9; }
.dashboard-list-copy { flex: 1 1 auto; }
.dashboard-task-avatar { width: 25px; height: 25px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; }
.dashboard-task-avatar--initials { display: grid; place-items: center; color: #087d8f; background: #e6f4f6; font-size: 9px; font-weight: 700; }
.dashboard-status { flex: 0 0 auto; padding: 4px 7px; border-radius: 6px; font-size: 10px; font-weight: 600; }
.dashboard-status--todo { color: #bd7b12; background: #fff2d8; }
.dashboard-status--in_progress { color: #2872c6; background: #e7f2ff; }
.dashboard-status--done { color: #09835f; background: #def7ec; }
.dashboard-panel-footer-link { display: flex; justify-content: center; gap: 6px; padding-top: 11px; border-top: 1px solid #edf1f5; color: var(--color-accent-hover); font-size: 12px; font-weight: 600; }
.dashboard-todo-list li { display: flex; min-height: 45px; align-items: center; gap: 10px; border-bottom: 1px solid #f0f3f6; }
.dashboard-todo-checkbox { width: 16px; height: 16px; flex: 0 0 auto; border: 1px solid #a6b7c8; border-radius: 4px; }
.dashboard-todo-list a { display: grid; min-width: 0; flex: 1 1 auto; gap: 3px; }
.dashboard-todo-list strong { overflow: hidden; color: var(--color-text-primary); font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-todo-list small { overflow: hidden; color: #8492a6; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-todo-list > li > span:last-child { color: #8798ad; font-size: 16px; letter-spacing: 1px; }
.dashboard-team-panel { grid-column: 1 / -1; }
.dashboard-team-list li { display: flex; min-height: 53px; align-items: center; gap: 10px; border-bottom: 1px solid #f0f3f6; }
.dashboard-avatar { width: 31px; height: 31px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; }
.dashboard-avatar--initials { display: grid; place-items: center; color: #087d8f; background: #e6f4f6; font-size: 11px; font-weight: 700; }
.dashboard-team-list li > div { min-width: 0; flex: 1 1 auto; }
.dashboard-team-list p { overflow: hidden; margin: 0 0 3px; color: #526174; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-team-list p strong { color: var(--color-text-primary); font-weight: 600; }
.dashboard-team-list p a { color: var(--color-accent-hover); }
.dashboard-team-list small { color: #8492a6; font-size: 10px; }

/* Shared interface components for the upcoming modules. */
.button { display: inline-flex; min-height: 39px; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; border: 1px solid transparent; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease; }
.button:active { transform: translateY(1px); }
.button--primary { color: #fff; background: var(--color-accent); }
.button--primary:hover { background: var(--color-accent-hover); }
.button--secondary { border-color: var(--color-border); color: #334155; background: #fff; }
.button--secondary:hover { border-color: #cbd5df; background: #f8fafc; }
.button--danger { color: #fff; background: var(--color-danger); }
.button--danger:hover { background: #dc3838; }
.button--ghost { color: #516173; background: transparent; }
.button--ghost:hover { background: #f2f6f8; }
.button:disabled { opacity: .55; cursor: not-allowed; }
.button.is-loading { opacity: .8; cursor: progress; }
.button.is-loading::after { width: 13px; height: 13px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; content: ''; }
.icon-button--bordered { border: 1px solid var(--color-border); background: #fff; }
.field { display: grid; min-width: 0; gap: 6px; }
.field-label { color: #334155; font-size: 13px; font-weight: 600; }
.input, .select, .textarea { width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid #dbe2e9; border-radius: 8px; outline: none; color: var(--color-text-primary); background: #fff; font-size: 14px; transition: border-color .16s ease, box-shadow .16s ease; }
.textarea { min-height: 100px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: #a1adba; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--color-accent); box-shadow: var(--focus-ring); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--color-danger); }
.input[aria-invalid="true"]:focus, .select[aria-invalid="true"]:focus, .textarea[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgb(239 68 68 / 15%); }
.field-error { color: var(--color-danger); font-size: 12px; }
.filter-toolbar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; padding: 13px; border: 1px solid var(--color-border); border-bottom: 0; border-radius: 12px 12px 0 0; background: #fff; }
.filter-toolbar .input { width: min(260px, 100%); flex: 1 1 220px; }
.filter-toolbar .select { width: auto; min-width: 135px; flex: 0 1 170px; }
.data-table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--color-border); border-radius: 12px; background: #fff; }
.filter-toolbar + .data-table-wrap { border-top-left-radius: 0; border-top-right-radius: 0; }
.data-table { width: 100%; border-collapse: collapse; white-space: nowrap; text-align: left; }
.data-table th { height: 42px; padding: 0 15px; color: #64748b; background: #f8fafc; font-size: 13px; font-weight: 700; }
.data-table td { height: 49px; padding: 0 15px; border-top: 1px solid #eef1f4; color: #475569; font-size: 15px; }
.data-table tbody tr:hover { background: #f8fafc; }
.data-table .numeric { text-align: right; font-variant-numeric: tabular-nums; }
.table-empty-cell { height: 160px !important; text-align: center; white-space: normal; }
.badge { display: inline-flex; min-height: 22px; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.badge::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ''; }
.badge--success { color: #087c58; background: #ddf8ec; }
.badge--warning { color: #a96700; background: #fff1d6; }
.badge--danger { color: #bf3030; background: #fee2e2; }
.badge--info { color: #2f64b0; background: #dbeafe; }
.badge--neutral { color: #64748b; background: #eef2f6; }
.progress-track { width: 100%; height: 8px; overflow: hidden; border-radius: 999px; background: #e5eaf0; }
.progress-value { height: 100%; border-radius: inherit; background: var(--color-accent); }
.progress-value--warning { background: var(--color-warning); }
.progress-value--danger { background: var(--color-danger); }
.skeleton { position: relative; overflow: hidden; border-radius: 6px; background: #edf1f4; }
.skeleton::after { position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgb(255 255 255 / 70%), transparent); animation: shimmer 1.5s infinite; content: ''; }
.skeleton--text { width: 62%; height: 11px; }
.skeleton--value { width: 38%; height: 24px; }
.skeleton--row { width: 100%; height: 42px; margin-top: 8px; }
.modal { width: min(100%, 520px); max-height: min(80vh, 700px); padding: 0; overflow: auto; border: 1px solid rgb(255 255 255 / 30%); border-radius: 14px; color: var(--color-text-primary); background: #fff; box-shadow: 0 24px 64px rgb(15 23 42 / 24%); animation: modal-in .18s ease-out; }
.modal::backdrop { background: rgb(15 23 42 / 45%); animation: fade-in .16s ease; }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--color-border); }
.modal-header h2 { margin: 0; font-size: 17px; }
.modal-body { padding: 20px; color: #475569; font-size: 14px; line-height: 1.6; }
.modal-footer { display: flex; justify-content: flex-end; gap: 9px; padding: 14px 20px; border-top: 1px solid var(--color-border); background: #fbfcfd; }
.toast-region { position: fixed; z-index: 80; top: 82px; right: 22px; display: grid; width: min(360px, calc(100vw - 32px)); gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--color-border); border-left: 3px solid var(--color-info); border-radius: 9px; background: #fff; box-shadow: var(--shadow-dropdown); font-size: 14px; line-height: 1.5; pointer-events: auto; animation: toast-in .2s ease-out; }
.toast--success { border-left-color: var(--color-success); }
.toast--warning { border-left-color: var(--color-warning); }
.toast--error { border-left-color: var(--color-danger); }
.toast-message { flex: 1; }
.toast-close { display: grid; width: 24px; height: 24px; flex: 0 0 auto; place-items: center; border: 0; border-radius: 5px; color: #8391a1; background: transparent; cursor: pointer; }
.toast-close:hover { background: #f1f4f6; }
.toast-close svg { width: 14px; height: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); border: 0; }
.sidebar-backdrop { position: fixed; z-index: 25; inset: 0; background: rgb(15 23 42 / 45%); }
.no-results { padding: 14px 12px; color: rgb(255 255 255 / 65%); font-size: 13px; }
.module-view { animation: content-in .2s ease-out; }
.module-view .panel { min-height: 330px; }
.module-placeholder { display: grid; min-height: 255px; align-content: center; justify-items: center; padding: 28px 18px; text-align: center; }
.module-placeholder-icon { display: grid; width: 58px; height: 58px; place-items: center; margin-bottom: 13px; border: 1px solid #e6f2f3; border-radius: 17px; color: var(--color-primary); background: #effafb; }
.module-placeholder-icon svg { width: 25px; height: 25px; }
.module-placeholder h2 { margin: 0 0 6px; font-size: 18px; }
.module-placeholder p { max-width: 330px; margin: 0; color: var(--color-text-secondary); font-size: 15px; line-height: 1.65; }
.module-placeholder .badge { margin-top: 13px; }
.module-heading-action { display: flex; align-items: center; gap: 8px; }

@keyframes pop-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(7px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toast-in { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } }
@keyframes content-in { from { opacity: .6; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer { 100% { transform: translateX(100%); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1200px) {
  :root { --sidebar-width: 228px; }
  .main-content { padding-right: 26px; padding-left: 26px; }
  .topbar { padding-right: 26px; padding-left: 26px; }
  .kpi-grid { gap: 10px; }
  .contract-kpi-grid { gap: 10px; }
  .contract-kpi-card { grid-template-columns: 36px minmax(0, 1fr); gap: 2px 9px; padding: 14px 12px; }
  .contract-kpi-icon { width: 36px; height: 36px; }
  .stat-card { padding-right: 13px; padding-left: 13px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1.2fr) minmax(270px, .9fr); }
}
@media (max-width: 950px) {
  .management-shell-topbar { height: auto; min-height: var(--header-height); flex-wrap: wrap; gap: 8px 12px; padding-top: 8px; padding-bottom: 8px; }
  .management-shell-topbar .management-topbar-brand { order: 1; flex: 1 1 auto; }
  .management-shell-topbar .management-topbar-actions { order: 2; }
  .management-shell-topbar .topbar-search-wrap { order: 3; width: 100%; flex: 1 0 100%; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contract-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contract-charts-grid { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .panel { min-height: 280px; }
  .quick-access-panel { min-height: unset; }
  .quick-links { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
  .quick-link:nth-child(3) { border-bottom: 0; }
}
@media (max-width: 700px) {
  :root { --sidebar-width: 272px; --header-height: 60px; }
  .sidebar { transform: translateX(-105%); transition: transform .22s ease; box-shadow: 12px 0 40px rgb(15 23 42 / 18%); }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar-backdrop:not([hidden]) { display: block; }
  .main-column { margin-left: 0; }
  .topbar { gap: 10px; padding: 0 15px; }
  .dashboard-topbar { height: auto; min-height: var(--header-height); flex-wrap: wrap; gap: 8px 12px; padding: 8px 15px; }
  .dashboard-topbar-brand { order: 1; flex: 1 1 auto; }
  .dashboard-topbar-brand .management-topbar-title { font-size: 13px; }
  .dashboard-topbar-brand .management-topbar-subtitle { font-size: 12px; }
  .dashboard-topbar .topbar-actions { order: 2; }
  .dashboard-topbar .topbar-search-wrap { order: 3; width: 100%; flex: 1 0 100%; }
  .mobile-menu-button { display: inline-grid; width: 35px; height: 35px; }
  .topbar-search-wrap { width: auto; flex: 1 1 auto; }
  .topbar-search { height: 36px; padding-left: 35px; font-size: 13px; }
  .search-icon { left: 11px; }
  .search-shortcut { display: none; }
  .topbar-actions { gap: 6px; }
  .profile-button { padding-left: 0; }
  .profile-copy, .chevron-icon { display: none; }
  .notification-button { width: 34px; }
  .main-content { padding: 24px 16px 16px; }
  .page-header { align-items: flex-start; margin-bottom: 18px; }
  .page-header-meta { display: grid; justify-items: end; gap: 7px; }
  .today-label { font-size: 11px; text-align: right; }
  .preview-banner { align-items: flex-start; padding-top: 11px; }
  .preview-banner p { padding-top: 1px; }
  .kpi-grid { gap: 10px; margin-bottom: 12px; }
  .contract-kpi-grid { gap: 10px; margin-bottom: 12px; }
  .contract-kpi-card { min-height: 108px; padding: 12px 10px; }
  .contract-kpi-value { font-size: 22px; }
  .contract-kpi-label { font-size: 14px; }
  .contract-kpi-caption { font-size: 12px; }
  .contract-chart-card { padding: 14px; }
  .contract-type-chart { gap: 20px; }
  .stat-card { min-height: 143px; padding: 13px 12px; }
  .stat-card-top { margin-bottom: 10px; }
  .stat-value { font-size: 24px; }
  .stat-footnote { font-size: 11px; }
  .dashboard-grid { gap: 12px; }
  .panel { padding: 16px; }
  .quick-links { grid-template-columns: 1fr; }
  .quick-link:nth-child(3) { border-bottom: 1px solid #f0f2f5; }
  .app-footer { align-items: flex-start; flex-direction: column; gap: 5px; padding-top: 18px; }
  .popover { right: -2px; width: min(300px, calc(100vw - 26px)); }
  .notification-popover { width: min(310px, calc(100vw - 26px)); }
}
@media (max-width: 390px) {
  .topbar { padding: 0 10px; }
  .topbar-actions { gap: 2px; }
  .topbar-search { padding-right: 8px; font-size: 12px; }
  .main-content { padding-right: 12px; padding-left: 12px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .contract-kpi-grid { gap: 8px; }
  .contract-kpi-card { grid-template-columns: 30px minmax(0, 1fr); gap: 2px 7px; padding: 10px 8px; }
  .contract-kpi-icon { width: 30px; height: 30px; }
  .contract-kpi-icon svg { width: 17px; height: 17px; }
  .contract-kpi-value { font-size: 19px; }
  .contract-kpi-value--revenue { font-size: 17px; }
  .contract-kpi-label { font-size: 14px; }
  .contract-kpi-caption { font-size: 12px; }
  .contract-hours-legend { gap: 8px; font-size: 11px; }
  .contract-hours-bars { gap: 2px; }
  .contract-hours-stack { width: min(14px, 80%); }
  .contract-type-chart { gap: 13px; }
  .contract-donut { width: 120px; height: 120px; }
  .contract-donut > div { width: 76px; height: 76px; }
  .stat-card { min-height: 138px; padding: 11px 10px; }
  .stat-label { font-size: 13px; }
  .page-header-meta { max-width: 95px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Connexion et administration des comptes */
.auth-body { display: grid; min-height: 100vh; background: radial-gradient(circle at 12% 8%, #e3f7f8 0, transparent 34%), var(--color-background); }
.auth-body--login { background: #00586e; }
.auth-layout { display: grid; min-height: 100vh; align-content: center; justify-items: center; gap: 20px; padding: 36px 18px 22px; }
.auth-page-heading { display: grid; justify-items: center; gap: 4px; text-align: center; }
.auth-page-heading strong { color: var(--color-primary); font-size: 15px; font-weight: 700; letter-spacing: .7px; }
.auth-page-heading p { margin: 0; color: var(--color-text-secondary); font-size: 14px; line-height: 1.45; }
.auth-page-heading--login strong { color: #fff; }
.auth-page-heading--login p { color: rgb(255 255 255 / 82%); }
.auth-card { width: min(100%, 450px); padding: 38px; border: 1px solid var(--color-border); border-radius: 18px; background: var(--color-surface); box-shadow: 0 20px 60px rgb(15 23 42 / 8%); }
.auth-card--setup { width: min(100%, 560px); }
.auth-brand { display: inline-flex; align-items: center; margin-bottom: 28px; color: var(--color-primary); }
.auth-brand--login { margin: 0; }
.auth-brand-logo { display: block; width: min(380px, 86vw); height: auto; }
.auth-brand-logo--custom { max-height: 120px; object-fit: contain; }
.auth-eyebrow { margin-bottom: 8px; color: var(--color-accent-hover); font-size: 12px; font-weight: 700; letter-spacing: 1.05px; }
.auth-card h1, .management-heading h1 { margin: 0; color: var(--color-text-primary); font-size: clamp(28px, 4.5vw, 35px); letter-spacing: -.8px; }
.auth-intro, .management-heading p { margin: 9px 0 24px; color: var(--color-text-secondary); font-size: 15px; line-height: 1.6; }
.auth-form, .management-form { display: grid; gap: 10px; }
.auth-remember { display: inline-flex; align-items: center; gap: 9px; margin-top: 10px; color: #334155; font-size: 14px; font-weight: 600; cursor: pointer; }
.auth-remember input { width: 16px; height: 16px; margin: 0; accent-color: var(--color-accent); }
.auth-remember-help { margin: -4px 0 0 25px; color: var(--color-text-secondary); font-size: 12px; line-height: 1.4; }
.form-label { margin: 9px 0 0; color: #334155; font-size: 14px; font-weight: 600; }
.form-input { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid var(--color-border); border-radius: 8px; color: var(--color-text-primary); background: #fff; font-size: 15px; }
.form-input:focus { border-color: var(--color-accent); outline: none; box-shadow: var(--focus-ring); }
.searchable-select { position: relative; display: block; min-width: 0; width: 100%; }
.searchable-select-native { 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; clip-path: inset(50%) !important; border: 0 !important; }
.searchable-select-trigger { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; cursor: pointer; }
.searchable-select-trigger::after { flex: 0 0 auto; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; content: ""; transform: rotate(45deg) translateY(-2px); }
.searchable-select-trigger:disabled { cursor: not-allowed; opacity: .6; }
.searchable-select-trigger[aria-invalid="true"] { border-color: var(--color-danger); }
.searchable-select-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.searchable-select-popup { position: fixed; z-index: 2000; display: none; max-height: min(340px, 55vh); padding: 8px; overflow: hidden; border: 1px solid var(--color-border); border-radius: 10px; background: #fff; box-shadow: var(--shadow-dropdown); }
.searchable-select-popup.is-open { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 7px; }
.searchable-select-search { width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid var(--color-border); border-radius: 7px; color: var(--color-text-primary); background: #fff; font: inherit; font-size: 14px; }
.searchable-select-search:focus { border-color: var(--color-accent); outline: none; box-shadow: var(--focus-ring); }
.searchable-select-options { display: grid; align-content: start; gap: 2px; min-height: 0; overflow-y: auto; }
.searchable-select-option { width: 100%; padding: 9px 10px; border: 0; border-radius: 6px; color: var(--color-text-primary); background: transparent; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.searchable-select-option:hover, .searchable-select-option.is-active { background: var(--color-accent-light); }
.searchable-select-option[aria-selected="true"] { color: var(--color-primary); font-weight: 700; }
.searchable-select-option:disabled { color: var(--color-text-muted); cursor: not-allowed; }
.searchable-select-empty { padding: 10px; margin: 0; color: var(--color-text-muted); font-size: 13px; }
.form-input--file { padding: 8px; }
.form-optional { color: var(--color-text-muted); font-size: 13px; font-weight: 400; }
.form-help { display: block; margin-top: 4px; color: var(--color-text-secondary); font-size: 12px; line-height: 1.4; }
.auth-submit { min-height: 44px; margin-top: 12px; font-size: 15px; }
.form-alert, .success-alert { padding: 12px 14px; border: 1px solid #fecaca; border-radius: 9px; color: #991b1b; background: #fff1f2; font-size: 14px; line-height: 1.55; }
.success-alert { margin: 0 0 16px; border-color: #a7f3d0; color: #065f46; background: #ecfdf5; }
.form-alert code { color: #7f1d1d; }
.auth-footnote { margin: 22px 0 0; color: var(--color-text-secondary); font-size: 14px; text-align: center; }
.auth-footnote a, .user-detail-list a { color: var(--color-accent-hover); font-weight: 600; }
.auth-footer { color: var(--color-text-muted); font-size: 13px; }
.auth-footer span { color: var(--color-accent); }
.form-grid-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid-two > div { display: grid; gap: 10px; }
.task-form-select-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.task-form-select-grid > div { display: grid; gap: 10px; }
.management-body { min-height: 100vh; background: var(--color-background); }
.management-topbar { position: sticky; z-index: 10; top: 0; display: flex; min-height: 66px; align-items: center; justify-content: space-between; padding: 0 max(22px, calc((100vw - 1160px) / 2)); border-bottom: 1px solid var(--color-border); background: rgb(255 255 255 / 94%); backdrop-filter: blur(12px); }
.management-topbar .auth-brand { margin: 0; }
.management-shell-topbar { padding: 0 34px; }
.management-shell-topbar .auth-brand { margin: 0; }
.management-topbar-brand { display: flex; align-items: center; gap: 12px; }
.management-shell-topbar .management-topbar-brand { min-width: 0; flex: 1 1 220px; }
.management-shell-topbar .topbar-search-wrap { min-width: 180px; flex: 0 1 420px; }
.management-topbar-title { display: grid; gap: 3px; color: var(--color-primary); font-size: 15px; font-weight: 700; letter-spacing: .55px; }
.management-topbar-subtitle { color: var(--color-text-secondary); font-size: 14px; font-weight: 400; letter-spacing: 0; line-height: 1.4; }
.dashboard-topbar-brand { flex: 0 1 auto; min-width: 0; }
.management-topbar-actions { display: flex; align-items: center; gap: 16px; }
.management-shell-topbar .management-topbar-actions { flex: 0 0 auto; }
.notification-menu { position: relative; display: flex; align-items: center; }
.notification-toggle { position: relative; display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--color-border); border-radius: 10px; color: var(--color-text-secondary); background: #fff; cursor: pointer; transition: color .15s ease, border-color .15s ease, background .15s ease; }
.notification-toggle:hover, .notification-toggle[aria-expanded="true"] { border-color: #a9dce2; color: var(--color-accent-hover); background: #f2fbfc; }
.notification-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.notification-count { position: absolute; top: -6px; right: -7px; display: grid; min-width: 19px; height: 19px; padding: 0 4px; place-items: center; border: 2px solid #fff; border-radius: 20px; color: #fff; background: #e5484d; font-size: 10px; font-weight: 700; line-height: 1; }
.notification-panel { position: absolute; z-index: 40; top: calc(100% + 12px); right: -8px; width: min(390px, calc(100vw - 24px)); overflow: hidden; border: 1px solid var(--color-border); border-radius: 13px; background: #fff; box-shadow: 0 14px 42px rgb(15 36 55 / 18%); }
.notification-panel[hidden] { display: none; }
.notification-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 17px; border-bottom: 1px solid #edf0f4; }
.notification-panel-heading strong { color: var(--color-text-primary); font-size: 15px; }
.notification-panel-heading span { color: var(--color-text-muted); font-size: 12px; }
.notification-list { max-height: min(440px, calc(100vh - 150px)); overflow-y: auto; }
.notification-empty { margin: 0; padding: 24px 17px; color: var(--color-text-secondary); font-size: 13px; text-align: center; }
.notification-item { display: flex; align-items: flex-start; gap: 11px; padding: 13px 15px; border-bottom: 1px solid #f0f2f5; color: inherit; text-decoration: none; transition: background .15s ease; }
.notification-item:last-child { border-bottom: 0; }
.notification-item:hover { background: #f7fafb; }
.notification-item.is-unread { background: #f2fbfc; }
.notification-item-icon { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 10px; color: #00899b; background: #e6f8fa; }
.notification-item-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.notification-item-copy { display: grid; min-width: 0; flex: 1; gap: 4px; }
.notification-item-copy strong { color: var(--color-text-primary); font-size: 12px; font-weight: 650; line-height: 1.35; }
.notification-item-copy > span { overflow: hidden; color: var(--color-text-secondary); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.notification-item-copy time { color: var(--color-text-muted); font-size: 11px; }
.notification-unread-dot { width: 8px; height: 8px; flex: 0 0 8px; margin: 5px 2px 0 0; border-radius: 50%; background: #00a8b7; }
.management-topbar-actions form { margin: 0; }
.management-user { color: var(--color-text-secondary); font-size: 14px; }
.button--small { min-height: 34px; padding: 0 11px; font-size: 13px; }
.management-main { width: min(100% - 40px, 1160px); margin: 0 auto; padding: 32px 0 60px; }
.management-main--narrow { width: min(100% - 40px, 760px); }
.back-link { display: inline-flex; margin-bottom: 24px; color: var(--color-accent-hover); font-size: 14px; font-weight: 600; }
.management-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.management-heading--actions-only { justify-content: flex-end; }
.management-heading p { margin: 7px 0 0; }
.management-card { overflow: hidden; border: 1px solid var(--color-border); border-radius: 13px; background: #fff; box-shadow: var(--shadow-card); }
.management-card-heading { display: flex; align-items: baseline; gap: 10px; padding: 17px 20px; border-bottom: 1px solid #edf0f4; }
.management-card-heading strong { font-size: 18px; }
.management-card-heading span { color: var(--color-text-muted); font-size: 13px; }
.table-scroll { overflow-x: auto; }
.users-table { width: 100%; border-collapse: collapse; text-align: left; }
.users-table th { padding: 12px 16px; color: var(--color-text-muted); background: #fbfcfd; font-size: 13px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; white-space: nowrap; }
.users-table td { padding: 13px 16px; border-top: 1px solid #f0f2f5; color: #475569; font-size: 14px; white-space: nowrap; }
.user-cell { display: flex; align-items: center; gap: 10px; }
.user-cell > span:last-child { display: grid; gap: 4px; }
.user-cell strong { color: var(--color-text-primary); font-size: 14px; }
.user-cell small { color: var(--color-text-muted); font-size: 12px; }
.user-avatar { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 12px; object-fit: cover; }
.user-avatar--initials { display: inline-grid; place-items: center; color: #fff; background: var(--color-primary); font-size: 14px; font-weight: 700; }
.user-avatar--large { width: 58px; height: 58px; border-radius: 16px; }
.user-avatar--profile { width: 80px; height: 80px; border-radius: 22px; font-size: 24px; }
.user-email { color: var(--color-accent-hover); }
.role-badge { display: inline-flex; padding: 5px 8px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.role-badge--admin { color: #075985; background: #e0f2fe; }
.role-badge--employee { color: #475569; background: #f1f5f9; }
.contract-type-badge { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.25; white-space: nowrap; }
.contract-type-badge--business-manager { color: #fff; background: #00ACBF; }
.contract-type-badge--maintenant { color: #6d28d9; background: #ede9fe; }
.contract-type-badge--undefined { color: #475569; background: #f1f5f9; }
.contract-revenue-cell strong, .contract-revenue-cell small { display: block; white-space: nowrap; }
.contract-revenue-cell small { padding-top: 3px; color: var(--color-text-muted); font-size: 12px; }
.contract-heading-title { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 1px; }
.contract-heading-title h1 { margin: 0; }
.table-action { color: var(--color-accent-hover); font-size: 13px; font-weight: 600; }
.management-empty { padding: 44px 20px; color: var(--color-text-secondary); font-size: 14px; text-align: center; }
.form-card { padding: 24px; }
.management-form { gap: 12px; }
.company-autocomplete { min-width: 0; padding: 16px; border: 1px solid #ccecf2; border-radius: 11px; background: #f4fbfd; }
.company-autocomplete .form-label { display: block; margin: 0 0 8px; }
.company-autocomplete-results { display: grid; max-height: 250px; margin-top: 7px; overflow-y: auto; border: 1px solid var(--color-border); border-radius: 8px; background: #fff; box-shadow: var(--shadow-card); }
.company-autocomplete-results[hidden] { display: none; }
.company-autocomplete-option { display: grid; gap: 3px; width: 100%; padding: 10px 12px; border: 0; border-bottom: 1px solid #edf0f4; background: #fff; color: var(--color-text-primary); font: inherit; text-align: left; cursor: pointer; }
.company-autocomplete-option:last-child { border-bottom: 0; }
.company-autocomplete-option:hover, .company-autocomplete-option[aria-selected="true"] { background: #e7f8fb; }
.company-autocomplete-option strong { font-size: 14px; }
.company-autocomplete-option span { color: var(--color-text-secondary); font-size: 12px; }
.company-autocomplete .form-help { margin: 9px 0 0; }
.role-help { padding: 11px 13px; border-radius: 8px; color: var(--color-text-secondary); background: #f8fafc; font-size: 15px; line-height: 1.8; }
.user-delete-section { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 22px; margin-top: 22px; border-top: 1px solid var(--color-border); }
.user-delete-section p { margin: 5px 0 0; color: var(--color-text-muted); font-size: 13px; line-height: 1.5; }
.user-delete-section .button:disabled { opacity: .5; cursor: not-allowed; }
.avatar-field { display: grid; grid-template-columns: 60px minmax(0, 1fr); align-items: center; gap: 14px; margin: 8px 0; }
.avatar-field > div:last-child { display: grid; gap: 8px; }
.avatar-field small { color: var(--color-text-muted); font-size: 12px; }
.password-section { display: grid; gap: 8px; padding-top: 15px; margin-top: 7px; border-top: 1px solid #edf0f4; }
.password-section h2 { margin: 0; font-size: 18px; }
.password-section p { margin: 0; color: var(--color-text-secondary); font-size: 15px; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 12px; }
.settings-alert { margin-bottom: 16px; }
.settings-card { padding: 24px; }
.settings-card-heading { display: flex; align-items: flex-start; gap: 14px; padding-bottom: 22px; margin-bottom: 20px; border-bottom: 1px solid #edf0f4; }
.settings-card-heading h1 { margin: 0 0 5px; color: var(--color-text-primary); font-size: 20px; }
.settings-card-heading p, .settings-form-divider p { margin: 0; color: var(--color-text-secondary); font-size: 14px; line-height: 1.5; }
.settings-card-icon { display: inline-grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 10px; color: var(--color-accent-hover); background: var(--color-accent-light); }
.settings-card-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.settings-branding-card { margin-bottom: 18px; }
.settings-brand-logo-preview { display: block; width: 180px; max-width: 100%; height: 100px; padding: 8px; border: 1px solid var(--color-border); border-radius: 10px; background: #fff; object-fit: contain; object-position: left center; }
.settings-form { display: grid; gap: 18px; }
.settings-form .form-grid-two > div { gap: 7px; }
.settings-form .form-label { margin-top: 0; }
.settings-password-field { display: grid; gap: 7px; }
.settings-checkbox { display: inline-flex; align-items: center; gap: 8px; margin-top: 5px; color: var(--color-text-secondary); font-size: 13px; cursor: pointer; }
.settings-checkbox input { accent-color: var(--color-accent); }
.settings-form-divider { padding-top: 20px; border-top: 1px solid #edf0f4; }
.settings-form-divider h2 { margin: 0 0 5px; font-size: 16px; }
.settings-form .form-actions { padding-top: 5px; }
.settings-test { padding-top: 22px; margin-top: 24px; border-top: 1px solid #edf0f4; }
.settings-test h2 { margin: 0 0 5px; font-size: 16px; }
.settings-test > p { margin: 0 0 16px; color: var(--color-text-secondary); font-size: 14px; line-height: 1.5; }
.settings-test-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; }
.settings-test-form > div { display: grid; gap: 7px; }
.settings-test-form .form-label { margin: 0; }
.settings-test-form .button { min-height: 43px; }
.settings-test > .form-help { margin-top: 8px; }

/* Sauvegardes */
.backup-page { width: min(100% - 28px, 1500px); }
.backup-page > .form-alert, .backup-page > .success-alert { margin-bottom: 16px; }
.backup-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.backup-panel { padding: 24px; min-width: 0; }
.backup-panel h1, .backup-panel h2, .backup-history h2 { margin: 0; color: var(--color-text-primary); font-size: 21px; }
.backup-intro { margin: 7px 0 22px; color: var(--color-text-secondary); font-size: 13px; line-height: 1.5; }
.backup-form { display: grid; gap: 18px; }
.backup-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.backup-form-grid > div { display: grid; gap: 7px; min-width: 0; }
.backup-form-grid .form-label { margin: 0; color: var(--color-text-primary); }
.backup-form-grid .form-input { min-width: 0; }
.backup-ftp { min-width: 0; margin: 0; padding: 18px; border: 1px solid #cae8ee; border-radius: 10px; background: #f4fbfd; }
.backup-ftp[hidden] { display: none; }
.backup-ftp legend { padding: 0 5px; color: var(--color-text-primary); font-size: 15px; font-weight: 700; }
.backup-ftp > p { margin: 0 0 15px; color: var(--color-text-secondary); font-size: 12px; }
.backup-ftp-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.backup-content-options { display: grid; gap: 9px; }
.backup-checkbox { display: flex; align-items: flex-start; gap: 10px; min-width: 0; color: var(--color-text-primary); font-size: 13px; cursor: pointer; }
.backup-checkbox input { flex: 0 0 auto; margin: 3px 0 0; accent-color: var(--color-accent); }
.backup-checkbox span { display: grid; gap: 3px; min-width: 0; }
.backup-checkbox small { color: var(--color-text-secondary); font-size: 11px; line-height: 1.4; }
.backup-checkbox--card { padding: 12px 14px; border: 1px solid var(--color-border); border-radius: 9px; }
.backup-form-actions, .backup-run-form { display: flex; justify-content: flex-end; }
.backup-status-list { display: grid; gap: 12px; }
.backup-status-list > div { display: grid; gap: 5px; padding: 15px; border-radius: 9px; background: #f4f7fb; overflow-wrap: anywhere; }
.backup-status-list span { color: var(--color-text-secondary); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.backup-status-list strong { color: var(--color-text-primary); font-size: 15px; }
.backup-run-form { margin-top: 18px; }
.backup-cron { padding-top: 22px; margin-top: 20px; border-top: 1px solid var(--color-border); }
.backup-cron h3 { margin: 0 0 5px; font-size: 18px; }
.backup-cron p { margin: 0 0 14px; color: var(--color-text-secondary); font-size: 13px; line-height: 1.5; }
.backup-cron-link { display: flex; gap: 8px; margin-bottom: 10px; }
.backup-cron-link input { flex: 1; min-width: 0; font-size: 12px; }
.backup-cron-link button { flex: 0 0 auto; }
.backup-history { margin-top: 18px; min-width: 0; }
.backup-history h2 { padding: 19px 20px; }
.backup-history-head, .backup-history-row { display: grid; grid-template-columns: minmax(115px, 1.5fr) minmax(68px, .6fr) minmax(125px, 1.15fr) minmax(100px, 1.1fr) 65px 55px minmax(90px, .8fr) minmax(95px, .8fr); gap: 12px; align-items: center; padding: 14px 16px; }
.backup-history-head { color: var(--color-text-secondary); background: #f4f7fb; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.backup-history-row { min-width: 0; border-top: 1px solid var(--color-border); font-size: 12px; }
.backup-history-row > div { min-width: 0; overflow-wrap: anywhere; }
.backup-history-row strong { display: block; color: var(--color-text-primary); }
.backup-history-row small { display: block; margin-top: 3px; color: var(--color-text-secondary); font-size: 11px; }
.backup-badge { display: inline-block; padding: 5px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.backup-badge--success { color: #047857; background: #dcfce7; }
.backup-badge--failed { color: #b91c1c; background: #fee2e2; }
.backup-badge--running { color: #1d4ed8; background: #dbeafe; }
.backup-row-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.backup-row-actions .button { min-height: 32px; padding: 6px 8px; font-size: 11px; }
.backup-empty { padding: 5px 20px 24px; color: var(--color-text-secondary); }
@media (max-width: 1250px) {
  .backup-layout { grid-template-columns: 1fr; }
  .backup-history-head { display: none; }
  .backup-history-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .backup-history-date { grid-column: span 2; }
  .backup-row-actions { grid-column: span 2; }
}
@media (max-width: 650px) {
  .backup-page { width: min(100% - 24px, 1500px); }
  .backup-panel { padding: 18px 14px; }
  .backup-form-grid, .backup-ftp-options { grid-template-columns: 1fr; }
  .backup-history-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .backup-cron-link { flex-wrap: wrap; }
  .backup-cron-link input { flex-basis: 100%; }
}
.user-detail-card { display: grid; grid-template-columns: 100px 1fr; align-items: start; gap: 22px; padding: 25px; }
.user-detail-list { display: grid; gap: 0; margin: 0; }
.user-detail-list > div { display: grid; grid-template-columns: minmax(160px, .7fr) 1fr; gap: 15px; padding: 12px 0; border-bottom: 1px solid #f0f2f5; }
.user-detail-list > div:last-child { border-bottom: 0; }
.user-detail-list dt { color: var(--color-text-secondary); font-size: 13px; }
.user-detail-list dd { margin: 0; color: var(--color-text-primary); font-size: 14px; font-weight: 500; }
.access-denied { width: min(100% - 40px, 500px); margin: 12vh auto; padding: 32px; border: 1px solid var(--color-border); border-radius: 14px; background: #fff; text-align: center; }
.access-denied h1 { margin-top: 0; font-size: 25px; }
.profile-avatar--image { display: block; object-fit: cover; }
.profile-logout-form { padding-top: 10px; margin-top: 10px; border-top: 1px solid #eef1f4; }
.company-list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px; border-bottom: 1px solid #edf0f4; }
.company-list-toolbar > strong { color: var(--color-text-primary); font-size: 14px; white-space: nowrap; }
.company-search { display: flex; width: min(100%, 520px); align-items: center; gap: 8px; }
.contract-company-search { width: min(100%, 700px); }
.contract-add-button { flex: 0 0 auto; white-space: nowrap; }
.company-search .form-input { min-width: 0; min-height: 36px; }
.company-name-cell { display: grid; gap: 4px; color: var(--color-text-primary); }
.company-name-cell strong { font-size: 14px; }
.company-name-cell small { color: var(--color-text-muted); font-size: 12px; }
.company-relations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.company-relations span { display: grid; min-width: 0; justify-items: center; gap: 2px; padding: 6px 4px; border-radius: 10px; color: var(--color-text-secondary); background: #f3f6f8; line-height: 1.1; text-align: center; }
.company-relations strong { color: var(--color-text-primary); font-size: 13px; }
.company-relations small { font-size: 10px; white-space: nowrap; }
.form-section-title { padding-top: 8px; margin: 10px 0 2px; border-top: 1px solid #edf0f4; color: var(--color-text-primary); font-size: 15px; }
.form-section-title:first-of-type { padding-top: 0; border-top: 0; }
.form-textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
.company-detail-heading { margin-bottom: 22px; }
.company-overview { margin-bottom: 22px; }
.company-overview-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.company-overview-kpis--overrun { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.company-overview-kpis--values { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.company-overview-kpis--values-overrun { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.company-overview-kpi { display: flex; min-width: 0; min-height: 84px; align-items: stretch; gap: 12px; padding: 14px 16px; border: 1px solid var(--kpi-border); border-radius: 12px; background: linear-gradient(120deg, var(--kpi-background), #fff); box-shadow: 0 5px 18px rgba(30, 52, 86, .04); }
.company-overview-kpi--worked { --kpi-background: #eaf3ff; --kpi-border: #dceaff; --kpi-color: #338af3; --kpi-circle: #dcecff; }
.company-overview-kpi--planned { --kpi-background: #eafaf3; --kpi-border: #d8f4e8; --kpi-color: #239b70; --kpi-circle: #d4f4e5; }
.company-overview-kpi--consumed { --kpi-background: #fff0f5; --kpi-border: #ffe0e9; --kpi-color: #e85d89; --kpi-circle: #ffdeea; }
.company-overview-kpi--remaining { --kpi-background: #fff9e9; --kpi-border: #fff0c8; --kpi-color: #af7810; --kpi-circle: #ffefbf; }
.company-overview-kpi--overrun-cost { --kpi-background: #fff4ec; --kpi-border: #ffe4d1; --kpi-color: #c46624; --kpi-circle: #ffe7d5; }
.company-overview-kpi--planned-value { --kpi-background: #eef8fb; --kpi-border: #d9eef4; --kpi-color: #2185a1; --kpi-circle: #d9f1f8; }
.company-overview-kpi--consumed-value { --kpi-background: #f4f0ff; --kpi-border: #e9e0ff; --kpi-color: #7b5bc2; --kpi-circle: #e9e0ff; }
.company-overview-kpi--estimated-receipts { --kpi-background: #eef9f3; --kpi-border: #d9eee2; --kpi-color: #38845b; --kpi-circle: #d9f1e3; }
.company-overview-kpi--equivalent-months { --kpi-background: #fff7ed; --kpi-border: #f8e4c8; --kpi-color: #aa681f; --kpi-circle: #ffead0; }
.company-overview-kpi-icon { display: grid; width: 48px; height: 48px; flex: 0 0 48px; align-self: center; place-items: center; border-radius: 50%; color: var(--kpi-color); background: var(--kpi-circle); }
.company-overview-kpi-icon svg { width: 25px; height: 25px; stroke-width: 1.9; }
.company-overview-kpi > div { display: grid; min-width: 0; align-content: start; gap: 3px; }
.company-overview-kpi > div > span { display: flex; min-height: 32px; align-items: flex-end; color: #435a75; font-size: 12px; line-height: 1.3; }
.company-overview-kpi strong { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px; color: var(--kpi-color); font-size: 27px; line-height: 1.1; }
.company-overview-kpi strong small { color: #435a75; font-size: 11px; font-weight: 500; }
.company-overview-kpi > div > small { color: #5d7085; font-size: 11px; line-height: 1.3; }
.company-label-chart { padding: 18px 20px 14px; }
.company-label-chart-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.company-label-chart-heading h2 { margin: 0; color: var(--color-text-primary); font-size: 17px; }
.company-label-chart-heading p { margin: 5px 0 0; color: var(--color-text-secondary); font-size: 12px; }
.company-label-chart-body { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 30px; align-items: center; padding: 22px 0 8px; }
.company-label-chart-time { min-width: 0; }
.company-label-chart-time h3 { margin: 0 0 10px; color: var(--color-text-primary); font-size: 13px; }
.company-label-chart-summary { display: flex; align-items: center; gap: 20px; min-width: 0; }
.company-label-donut { display: grid; width: clamp(145px, 15vw, 210px); aspect-ratio: 1; flex: 0 0 auto; place-items: center; border-radius: 50%; background: conic-gradient(var(--chart-segments)); }
.company-label-donut > div { display: grid; width: 57%; aspect-ratio: 1; place-content: center; border-radius: 50%; background: #fff; text-align: center; }
.company-label-donut strong { color: #071e41; font-size: clamp(19px, 2vw, 28px); }
.company-label-donut span { color: var(--color-text-secondary); font-size: 11px; }
.company-label-legend { display: grid; min-width: 0; width: 100%; gap: 11px; }
.company-label-legend-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto; align-items: center; gap: 9px; color: #2e4263; font-size: 12px; }
.company-label-legend-row i { width: 10px; height: 10px; border-radius: 50%; }
.company-label-legend-row span { overflow-wrap: anywhere; }
.company-label-legend-row strong { white-space: nowrap; font-weight: 600; }
.company-label-legend-row small { min-width: 46px; color: var(--color-text-muted); text-align: right; }
.company-label-bars { min-width: 0; overflow-x: auto; }
.company-label-bars h3 { margin: 0 0 10px; color: var(--color-text-primary); font-size: 13px; }
.company-label-chart-unavailable { padding: 55px 12px; border: 1px dashed #d8e2ea; border-radius: 8px; color: var(--color-text-secondary); background: #f8fafc; font-size: 13px; text-align: center; }
.company-label-bars-grid { display: flex; min-height: 215px; gap: 0; border-bottom: 1px solid #d9e3eb; background: repeating-linear-gradient(to top, #e6edf2 0 1px, transparent 1px 25%); }
.company-label-bar-item { display: flex; min-width: 66px; flex: 1 1 0; flex-direction: column; align-items: center; justify-content: end; padding: 0 5px; border-right: 1px solid #edf1f5; text-align: center; }
.company-label-bar-value { min-height: 18px; margin-bottom: 4px; color: #293d5c; font-size: 11px; font-weight: 700; }
.company-label-bar-track { display: flex; width: min(100%, 58px); height: 145px; align-items: end; }
.company-label-bar { width: 100%; height: var(--bar-cost); border-radius: 5px 5px 0 0; background: linear-gradient(180deg, color-mix(in srgb, var(--bar-color) 70%, white), var(--bar-color)); }
.company-label-bar-name { display: block; width: 100%; min-height: 44px; padding-top: 7px; color: #435a75; font-size: 10px; line-height: 1.25; overflow-wrap: anywhere; }
.company-label-chart-note { margin: 5px 0 0; color: var(--color-text-muted); font-size: 11px; }
.company-heading-identity { display: flex; min-width: 0; align-items: center; gap: 15px; }
.company-heading-identity > div { min-width: 0; }
.company-risk-badge { display: inline-flex; align-items: center; width: fit-content; margin-top: 8px; padding: 5px 10px; border: 1px solid; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.2; }
.company-risk-badge--low { border-color: #b9eacb; color: #087443; background: #e3f8eb; }
.company-risk-badge--watch { border-color: #f2dc91; color: #8a6200; background: #fff4ce; }
.company-risk-badge--high { border-color: #f5bec1; color: #c62936; background: #ffeaec; }
.company-table .company-risk-badge { margin-top: 0; white-space: nowrap; }
.company-risk-select:has(option[value="low"]:checked) { border-color: #8dd8ab; color: #087443; background: #effbf3; }
.company-risk-select:has(option[value="watch"]:checked) { border-color: #ead073; color: #8a6200; background: #fff9df; }
.company-risk-select:has(option[value="high"]:checked) { border-color: #eda3a9; color: #c62936; background: #fff0f1; }
.company-heading-logo { display: block; width: 70px; height: 70px; flex: 0 0 70px; padding: 7px; border: 1px solid var(--color-border); border-radius: 13px; background: #fff; object-fit: contain; }
.company-logo-field { display: flex; align-items: center; gap: 14px; min-width: 0; }
.company-logo-field > div { min-width: 0; flex: 1; }
.company-logo-preview { display: block; width: 76px; height: 76px; flex: 0 0 76px; padding: 6px; border: 1px solid var(--color-border); border-radius: 12px; background: #fff; object-fit: contain; }
.company-logo-remove { display: inline-flex; align-items: center; gap: 6px; margin-top: 9px; color: var(--color-text-secondary); font-size: 13px; cursor: pointer; }
.company-logo-remove input { accent-color: var(--color-accent); }
.company-heading-actions, .company-contact-actions { display: flex; align-items: center; gap: 10px; }
.company-heading-actions form, .company-contact-actions form { margin: 0; }
.table-action--danger { padding: 0; border: 0; color: var(--color-danger); background: transparent; cursor: pointer; font: inherit; }
.company-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.company-info-card { min-width: 0; }
.company-info-list { display: grid; margin: 0; padding: 4px 18px 12px; }
.company-info-list > div { display: grid; grid-template-columns: minmax(130px, .7fr) minmax(0, 1fr); gap: 14px; padding: 12px 0; border-bottom: 1px solid #f0f2f5; }
.company-info-list > div:last-child { border-bottom: 0; }
.company-info-list dt { color: var(--color-text-secondary); font-size: 13px; }
.company-info-list dd { min-width: 0; margin: 0; overflow-wrap: anywhere; color: var(--color-text-primary); font-size: 14px; }
.company-info-list a { color: var(--color-accent-hover); }
.company-notes { line-height: 1.6; }
.company-contact-notes { margin-top: 6px; color: var(--color-text-secondary); font-size: 12px; }
.company-contact-notes summary { color: var(--color-accent-hover); cursor: pointer; }
.company-contact-notes div { max-width: 360px; padding-top: 5px; overflow-wrap: anywhere; line-height: 1.5; white-space: normal; }
.company-contacts-card { margin-top: 18px; }
.company-section-heading { align-items: center; justify-content: space-between; }
.company-section-heading > div { display: flex; align-items: baseline; gap: 10px; }
.company-section-heading .button { flex: 0 0 auto; }
.company-work-heading-actions { display: flex; min-width: 0; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.company-bulk-actions { display: flex; align-items: center; flex-wrap: nowrap; gap: 6px; margin: 0; }
.company-bulk-actions .form-input { width: auto; min-width: 145px; min-height: 34px; padding: 6px 28px 6px 9px; font-size: 12px; }
.company-export-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.company-export-actions .button { white-space: nowrap; }
.company-table td { white-space: normal; }
.company-table .user-email { overflow-wrap: anywhere; }
.company-table { width: 100%; min-width: 0; table-layout: fixed; }
.company-table th, .company-table td { padding-right: 10px; padding-left: 10px; }
.company-table th { font-size: 12px; letter-spacing: .15px; white-space: normal; }
.company-table th:nth-child(1), .company-table td:nth-child(1) { width: 17%; }
.company-table th:nth-child(2), .company-table td:nth-child(2) { width: 10%; }
.company-table th:nth-child(3), .company-table td:nth-child(3) { width: 10%; }
.company-table th:nth-child(4), .company-table td:nth-child(4) { width: 12%; }
.company-table th:nth-child(5), .company-table td:nth-child(5) { width: 16%; }
.company-table th:nth-child(6), .company-table td:nth-child(6) { width: 7%; }
.company-table th:nth-child(7), .company-table td:nth-child(7) { width: 13%; }
.company-table th:nth-child(8), .company-table td:nth-child(8) { width: 15%; }
.company-list-table-scroll { min-width: 0; overflow-x: hidden; }
.company-work-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin-top: 18px; padding: 16px 18px; }
.company-work-filters > div { flex: 1 1 230px; min-width: 0; }
.company-work-filters .form-label { display: block; margin-bottom: 6px; }
.company-work-filters .form-input { width: 100%; }
.company-work-filters .button { min-height: 42px; }
.company-work-card { margin-top: 18px; }
.company-work-table td { white-space: normal; }
.company-work-table th, .company-work-table td { padding-right: 10px; padding-left: 10px; }
.company-work-table td[data-label="Date"] { min-width: 145px; }
.company-work-table .company-work-select-heading, .company-work-table .company-work-select-cell { width: 38px; min-width: 38px; padding-right: 6px; padding-left: 6px; text-align: center; }
.company-task-select-cell { display: flex; align-items: center; gap: 8px; }
.company-task-select-cell .user-email { min-width: 0; }
.company-task-select { width: 16px; height: 16px; flex: 0 0 16px; accent-color: var(--color-accent); cursor: pointer; }
.company-work-table .task-table-labels { min-width: 90px; }
.company-work-table .user-email { overflow-wrap: anywhere; }
.company-maintenance-table form { margin: 0; }
.company-maintenance-table-wrap { width: 100%; min-width: 0; overflow: hidden; }
.company-maintenance-table { width: 100%; table-layout: fixed; }
.company-maintenance-table th, .company-maintenance-table td { padding: 10px 12px; white-space: normal; overflow-wrap: anywhere; vertical-align: middle; }
.company-maintenance-table th { font-size: 11px; line-height: 1.3; }
.company-maintenance-table td { font-size: 13px; }
.company-maintenance-table th:nth-child(1) { width: 14%; }
.company-maintenance-table th:nth-child(2) { width: 17%; }
.company-maintenance-table th:nth-child(3) { width: 12%; }
.company-maintenance-table th:nth-child(4) { width: 8%; }
.company-maintenance-table th:nth-child(5) { width: 13%; }
.company-maintenance-table th:nth-child(6) { width: 13%; }
.company-maintenance-table th:nth-child(7) { width: 9%; }
.company-maintenance-table th:nth-child(8) { width: 14%; }
.company-maintenance-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.company-maintenance-edit-action { padding: 0; border: 0; color: var(--color-accent-hover); background: transparent; cursor: pointer; font-size: 13px; font-weight: 600; }
.company-maintenance-create { padding: 0 18px 16px; }
.company-maintenance-create summary { width: fit-content; color: var(--color-accent-hover); font-size: 13px; font-weight: 650; cursor: pointer; }
.company-maintenance-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 18px 12px; padding-top: 16px; }
.company-maintenance-form > div { min-width: 0; }
.company-maintenance-form .form-label { display: block; margin-bottom: 6px; }
.company-maintenance-form .form-input { width: 100%; }
.company-maintenance-form .form-help { display: block; margin-top: 5px; }
.company-maintenance-template-save { display: grid; gap: 10px; align-content: start; }
.company-maintenance-template-save > label { display: flex; align-items: center; gap: 8px; color: var(--color-text); font-size: 13px; font-weight: 600; }
.company-maintenance-template-save input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--color-accent); }
.company-maintenance-template-save [hidden] { display: none; }
.company-maintenance-form-actions { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; align-self: end; }
.company-prestations-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--color-border); color: var(--color-text-secondary); font-size: 12px; }
.company-prestations-pagination-controls, .company-prestations-pagination-pages { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.company-page-size { display: flex; align-items: center; gap: 7px; margin-right: 6px; white-space: nowrap; }
.company-page-size .form-input { width: auto; min-width: 70px; min-height: 34px; padding: 5px 24px 5px 8px; font-size: 12px; }
.company-prestations-pagination .button { min-width: 32px; }
.company-prestations-pagination .button.is-current { border-color: var(--color-accent); color: #fff; background: var(--color-accent); }
.company-prestations-pagination .button:disabled { opacity: .45; cursor: default; }
.company-prestations-pagination-ellipsis { padding: 0 4px; }
.contract-work-link { margin: 16px 0 0; font-size: 14px; }
.management-main--contracts, .management-main--companies { width: min(100% - 28px, 1500px); }
.contract-table { width: 100%; min-width: 0; table-layout: fixed; }
.contract-table th, .contract-table td { padding: 10px 7px; }
.contract-table th { font-size: 12px; letter-spacing: .15px; line-height: 1.2; white-space: normal; overflow-wrap: normal; word-break: normal; vertical-align: bottom; }
.contract-table td { font-size: 14px; white-space: normal; overflow-wrap: anywhere; vertical-align: middle; }
.contract-table th:nth-child(1), .contract-table td:nth-child(1) { width: 15%; }
.contract-table th:nth-child(2), .contract-table td:nth-child(2) { width: 15%; }
.contract-table th:nth-child(3), .contract-table td:nth-child(3) { width: 8%; }
.contract-table th:nth-child(4), .contract-table td:nth-child(4) { width: 16%; }
.contract-table th:nth-child(5), .contract-table td:nth-child(5) { width: 9%; }
.contract-table th:nth-child(6), .contract-table td:nth-child(6) { width: 8%; }
.contract-table th:nth-child(7), .contract-table td:nth-child(7) { width: 8%; }
.contract-table th:nth-child(8), .contract-table td:nth-child(8) { width: 11%; }
.contract-table th:nth-child(9), .contract-table td:nth-child(9) { width: 10%; }
.contract-table--years th:nth-child(1), .contract-table--years td:nth-child(1) { width: 22%; }
.contract-table--years th:nth-child(2), .contract-table--years td:nth-child(2) { width: 15%; }
.contract-table--years th:nth-child(3), .contract-table--years td:nth-child(3) { width: 11%; }
.contract-table--years th:nth-child(4), .contract-table--years td:nth-child(4) { width: 8%; }
.contract-table--years th:nth-child(5), .contract-table--years td:nth-child(5) { width: 9%; }
.contract-table--years th:nth-child(6), .contract-table--years td:nth-child(6) { width: 10%; }
.contract-table--years th:nth-child(7), .contract-table--years td:nth-child(7) { width: 12%; }
.contract-table--years th:nth-child(8), .contract-table--years td:nth-child(8) { width: 13%; }
.contract-table .company-name-cell { white-space: normal; }
.contract-table .contract-type-badge { max-width: 100%; padding: 5px 7px; font-size: 13px; white-space: normal; text-align: center; }
.contract-table .role-badge { padding: 4px 6px; font-size: 13px; white-space: normal; }
.contract-table--years .company-contract-status { display: block; padding-top: 4px; color: var(--color-text-muted); font-size: 12px; }
.contract-consumption { display: grid; min-width: 0; gap: 5px; }
.contract-consumption > span { white-space: nowrap; }
.contract-table-scroll { min-width: 0; overflow-x: hidden; }
.contract-revenue-cell strong, .contract-revenue-cell small { display: block; }
.contract-revenue-cell small { padding-top: 3px; color: var(--color-text-muted); font-size: 13px; }
.contract-progress { height: 7px; overflow: hidden; border-radius: 99px; background: #e8eef1; }
.contract-progress span { display: block; height: 100%; border-radius: inherit; background: var(--color-accent); }
.contract-progress.is-overrun span { background: var(--color-danger); }
.contract-overrun { color: var(--color-danger) !important; font-weight: 700; }
.contract-calculation-note { padding: 0 18px 16px; margin: 0; color: var(--color-text-muted); font-size: 13px; line-height: 1.5; }
.contract-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.contract-summary-card { display: grid; min-width: 0; gap: 8px; padding: 18px; }
.contract-summary-card > span:first-child { color: var(--color-text-secondary); font-size: 14px; }
.contract-summary-card > strong { color: var(--color-text-primary); font-size: 18px; }
.contract-summary-card--overrun > strong { color: var(--color-danger); }
.contract-summary-card .contract-progress { margin-top: 4px; }
.contract-periods-card { margin-top: 18px; }
.contract-periods-scroll { width: 100%; overflow-x: hidden; }
.contract-periods-table { width: 100%; min-width: 0; table-layout: fixed; }
.contract-periods-table th, .contract-periods-table td { padding: 10px 8px; white-space: normal; overflow-wrap: anywhere; }
.contract-periods-table th { line-height: 1.35; }
.contract-periods-table th:nth-child(1), .contract-periods-table td:nth-child(1) { width: 18%; }
.contract-periods-table th:nth-child(2), .contract-periods-table td:nth-child(2) { width: 12%; }
.contract-periods-table th:nth-child(3), .contract-periods-table td:nth-child(3) { width: 12%; }
.contract-periods-table th:nth-child(4), .contract-periods-table td:nth-child(4) { width: 14%; }
.contract-periods-table th:nth-child(5), .contract-periods-table td:nth-child(5) { width: 10%; }
.contract-periods-table th:nth-child(6), .contract-periods-table td:nth-child(6) { width: 14%; }
.contract-periods-table th:nth-child(7), .contract-periods-table td:nth-child(7) { width: 20%; }
.contract-periods-table .contract-period-value { width: min(100%, 88px); }
.contract-periods-table td:last-child { white-space: normal; }
.contract-periods-table td:last-child form { display: inline-block; margin: 0 6px 0 0; }
.contract-periods-table td:last-child .user-email { display: inline-block; }
.contract-period-value { display: inline-block; width: 105px; min-width: 0; padding: 7px 8px; vertical-align: middle; }
.contract-periods-card td form { display: inline-block; margin: 0 8px 6px 0; }
.contract-company-name { margin: 0; color: var(--color-text-primary); font-size: 16px; font-weight: 600; }
.task-list-card { margin-top: 0; overflow: visible; }
.task-page-heading { align-items: center; margin-bottom: 20px; }
.task-page-heading p { margin: 7px 0 0; }
.task-page-heading .button { flex: 0 0 auto; }
.task-kpi-section { margin-bottom: 18px; }
.task-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 0; }
.task-kpi-card { display: grid; min-width: 0; min-height: 98px; grid-template-columns: 42px minmax(0, 1fr); align-content: start; align-items: start; gap: 0 12px; padding: 15px; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-card); }
.task-kpi-icon { display: grid; width: 40px; height: 40px; grid-row: 1 / span 4; place-items: center; border-radius: 50%; }
.task-kpi-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.task-kpi-icon--blue { color: #08a5c4; background: #e1f7fb; }
.task-kpi-icon--green { color: #0aaf4a; background: #e2f8e9; }
.task-kpi-icon--orange { color: #ff654e; background: #fff0ed; }
.task-kpi-icon--cyan { color: #089fba; background: #e1f7fb; }
.task-kpi-card > div { display: grid; min-width: 0; gap: 2px; }
.task-kpi-card strong { color: var(--color-text-primary); font-size: 25px; line-height: 1.1; }
.task-kpi-card b { color: #14243a; font-size: 13px; font-weight: 600; }
.task-kpi-card small { color: var(--color-text-secondary); font-size: 12px; line-height: 1.4; }
.task-filter-toolbar { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; gap: 7px; padding: 10px; border-bottom: 1px solid var(--color-border); background: #fff; }
.task-company-filter-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding: 8px 13px; border-bottom: 1px solid var(--color-border); color: var(--color-text-secondary); background: #f2fafb; font-size: 12px; }
.task-company-filter-banner strong { color: var(--color-text-primary); }
.task-company-filter-banner a { margin-left: auto; color: var(--color-accent-hover); font-weight: 600; }
.task-pin-notice { margin-bottom: 16px; }
.task-search-autocomplete { position: relative; width: auto; min-width: 180px; flex: 1 1 360px; }
.task-search-box { position: relative; display: flex; width: min(100%, 260px); min-width: 180px; height: 38px; flex: 0 1 260px; align-items: center; }
.task-search-autocomplete .task-search-box { width: 100%; min-width: 0; flex: 1 1 auto; }
.task-search-suggestions { position: absolute; z-index: 30; top: calc(100% + 5px); right: 0; left: 0; max-height: 280px; overflow-y: auto; padding: 5px; border: 1px solid var(--color-border); border-radius: 9px; background: #fff; box-shadow: 0 12px 28px rgb(15 35 55 / 16%); }
.task-search-suggestions[hidden] { display: none; }
.task-search-suggestion { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 10px; border: 0; border-radius: 6px; color: var(--color-text-primary); background: #fff; cursor: pointer; font: inherit; font-size: 13px; text-align: left; }
.task-search-suggestion:hover, .task-search-suggestion:focus-visible, .task-search-suggestion.is-active { outline: none; background: #e8f7f9; }
.task-search-suggestion-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-search-suggestion-type { flex: 0 0 auto; color: var(--color-text-muted); font-size: 11px; }
.task-search-box svg { position: absolute; left: 10px; width: 16px; height: 16px; fill: none; stroke: #8ca0b4; stroke-width: 1.8; pointer-events: none; }
.task-search-box input { width: 100%; height: 38px; padding: 0 10px 0 33px; border: 1px solid var(--color-border); border-radius: 7px; outline: none; color: var(--color-text-primary); background: #f8fafc; font: inherit; font-size: 13px; }
.task-search-box input:focus { border-color: var(--color-accent); box-shadow: var(--focus-ring); background: #fff; }
.task-filter-toolbar .task-filter-select { width: auto; min-width: 130px; min-height: 38px; flex: 0 1 150px; padding: 7px 28px 7px 10px; font-size: 13px; }
.task-label-filter { position: relative; min-width: 150px; flex: 0 1 150px; }
.task-label-filter[open] { z-index: 45; }
.task-label-filter summary.form-input { display: flex; width: 100%; min-height: 38px; box-sizing: border-box; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; margin: 0; cursor: pointer; font-size: 13px; list-style: none; }
.task-label-filter summary::-webkit-details-marker { display: none; }
.task-label-filter .task-label-picker-options { right: auto; width: 210px; min-width: 100%; max-width: calc(100vw - 32px); box-sizing: border-box; }
.task-label-filter-apply { width: 100%; min-height: 34px; margin-top: 4px; }
.task-filter-toolbar .searchable-select { min-width: 150px; flex: 0 1 160px; }
.task-filter-toolbar .searchable-select.task-responsible-filter { min-width: 190px; flex-basis: 190px; }
.task-filter-toolbar .searchable-select-trigger { min-height: 38px; padding: 7px 28px 7px 10px; font-size: 13px; }
.task-filter-toolbar > .button { min-height: 38px; padding: 0 11px; font-size: 13px; }
.task-table--polished { width: 100%; min-width: 0; table-layout: fixed; }
.task-table--polished th, .task-table--polished td { padding: 8px 9px; }
.task-table--polished th { height: 37px; color: #62748a; background: #f8fafc; font-size: 12px; }
.task-table--polished td { height: 42px; font-size: 13px; white-space: normal; overflow-wrap: anywhere; }
.task-table--polished tbody tr.task-row-clickable { cursor: pointer; }
.task-table--polished tbody tr.task-row-clickable:hover { background: #f8fbfc; }
.task-table--polished th:nth-child(1), .task-table--polished td:nth-child(1) { width: 16%; }
.task-table--polished th:nth-child(2), .task-table--polished td:nth-child(2) { width: 10%; }
.task-table--polished th:nth-child(3), .task-table--polished td:nth-child(3) { width: 10%; }
.task-table--polished th:nth-child(4), .task-table--polished td:nth-child(4) { width: 7%; }
.task-table--polished th:nth-child(5), .task-table--polished td:nth-child(5) { width: 7%; }
.task-table--polished th:nth-child(6), .task-table--polished td:nth-child(6) { width: 7%; }
.task-table--polished th:nth-child(7), .task-table--polished td:nth-child(7) { width: 9%; }
.task-table--polished th:nth-child(8), .task-table--polished td:nth-child(8) { width: 8%; }
.task-table--polished th:nth-child(9), .task-table--polished td:nth-child(9) { width: 11%; }
.task-table--polished th:nth-child(10), .task-table--polished td:nth-child(10) { width: 8%; }
.task-table--polished th:nth-child(11), .task-table--polished td:nth-child(11) { width: 7%; }
.task-title-cell { display: flex; min-width: 0; align-items: center; gap: 8px; color: var(--color-text-primary); font-size: 13px; font-weight: 400; line-height: 1.35; }
.task-title-cell > form { flex: 0 0 auto; margin: 0; }
.task-title-link { display: flex; min-width: 0; align-items: center; gap: 8px; color: inherit; }
.task-title-link > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.task-label-picker { display: grid; min-width: 0; align-content: start; gap: 5px; }
.task-label-picker > .form-label { margin: 0; }
.form-card:has([data-task-label-picker][open]), .task-details-card:has([data-task-label-picker][open]) { position: relative; z-index: 50; overflow: visible; }
.task-label-picker details { position: relative; min-width: 0; }
.task-label-picker details[open] { z-index: 42; }
.task-label-picker summary.form-input { display: flex; width: 100%; min-height: 38px; box-sizing: border-box; align-items: center; justify-content: space-between; gap: 8px; margin: 0; cursor: pointer; font-size: 13px; list-style: none; }
.task-label-picker summary::-webkit-details-marker { display: none; }
.task-label-picker summary [data-task-label-summary] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-label-chevron { color: var(--color-text-secondary); font-size: 17px; }
.task-label-picker-options { position: absolute; top: calc(100% + 4px); right: 0; left: 0; z-index: 43; display: grid; gap: 2px; max-height: 220px; overflow: auto; padding: 5px; border: 1px solid var(--color-border); border-radius: 7px; background: #fff; box-shadow: var(--shadow-dropdown); }
.task-label-option { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 6px; border-radius: 5px; cursor: pointer; }
.task-label-option:hover, .task-label-option:has(input:checked) { background: #eef7f8; }
.task-label-option input { width: 14px; height: 14px; flex: 0 0 14px; margin: 0; accent-color: var(--task-label-color); }
.task-table-labels { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.task-label-badge { display: inline-flex; align-items: center; width: fit-content; max-width: 100%; padding: 4px 8px; border-radius: 999px; color: var(--task-label-color); background: color-mix(in srgb, var(--task-label-color) 12%, white); font-size: 11px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.task-label-empty { color: var(--color-text-muted); }
.task-table-labels { align-items: flex-start; }
.task-priority-marker { width: 3px; height: 21px; flex: 0 0 auto; border-radius: 3px; }
.task-priority-marker--high { background: #ff594f; }
.task-priority-marker--medium { background: #f5b51b; }
.task-priority-marker--low { background: #22a5d5; }
.task-pinned-indicator { display: inline-grid; width: 24px; height: 24px; flex: 0 0 auto; place-items: center; margin: 0; padding: 0; border: 0; border-radius: 5px; background: transparent; cursor: pointer; }
.task-pinned-indicator.is-pinned { color: #10a36d; }
.task-pinned-indicator.is-unpinned { color: #94a3b8; }
.task-pinned-indicator:hover { background: #e8f7ef; color: #0b8f5d; }
.task-pinned-indicator:focus-visible { outline: 2px solid #10a36d; outline-offset: 2px; }
.task-pinned-indicator svg { width: 14px; height: 14px; fill: currentColor; }
.task-assignee { display: inline-flex; min-width: 0; align-items: center; gap: 7px; }
.task-assignee > span { display: inline-grid; width: 26px; height: 26px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #fff; background: #08758d; font-size: 10px; font-weight: 700; }
.task-assignee { font-size: 12px; }
.task-assignee-avatars { display: inline-flex; align-items: center; gap: 4px; min-width: 0; white-space: nowrap; }
.task-assignee-avatar, .task-assignee-option-avatar { display: inline-grid; width: 26px; height: 26px; flex: 0 0 26px; box-sizing: border-box; place-items: center; overflow: hidden; border: 2px solid #fff; border-radius: 50%; color: #fff; background: #08758d; font-size: 10px; font-weight: 700; line-height: 1; }
.task-assignee-photo { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.2); }
.task-assignee-option-avatar:is(img) { display: block; object-fit: cover; }
.task-assignee-more { display: grid; width: 27px; height: 27px; flex: 0 0 27px; place-items: center; margin: 0; padding: 0; border: 1px solid var(--color-border); border-radius: 50%; color: var(--color-text-secondary); background: #fff; cursor: pointer; font: inherit; font-size: 15px; font-weight: 700; line-height: 1; }
.task-assignee-more:hover, .task-assignee-more[aria-expanded="true"] { color: var(--color-accent-hover); background: #eef7f8; }
.task-assignee-expanded-row[hidden] { display: none !important; }
.task-table--polished .task-assignee-expanded-row td { width: auto; height: auto; padding: 9px 13px; background: #f8fbfc; }
.task-assignee-expanded { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 14px; font-size: 12px; }
.task-assignee-expanded > strong { color: var(--color-text-secondary); }
.task-assignee-expanded-person { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.task-assignee-expanded-person .task-assignee-avatar { width: 23px; height: 23px; flex-basis: 23px; font-size: 9px; }
.task-assignee-picker { display: grid; min-width: 0; gap: 5px; }
.form-card:has([data-task-assignee-picker][open]), .task-details-card:has([data-task-assignee-picker][open]) { position: relative; z-index: 50; overflow: visible; }
.task-assignee-picker > .form-label { margin: 0; }
.task-assignee-picker details { position: relative; min-width: 0; }
.task-assignee-picker details[open] { z-index: 42; }
.task-assignee-picker summary.form-input { display: flex; width: 100%; min-height: 38px; box-sizing: border-box; align-items: center; justify-content: space-between; gap: 8px; margin: 0; cursor: pointer; font-size: 13px; list-style: none; }
.task-assignee-picker summary::-webkit-details-marker { display: none; }
.task-assignee-picker summary [data-task-assignee-summary] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-assignee-chevron { color: var(--color-text-secondary); font-size: 17px; }
.task-assignee-options { position: absolute; top: calc(100% + 4px); right: 0; left: 0; z-index: 43; display: grid; gap: 2px; max-height: 220px; overflow: auto; padding: 5px; border: 1px solid var(--color-border); border-radius: 7px; background: #fff; box-shadow: var(--shadow-dropdown); }
.task-assignee-option { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 5px; border-radius: 5px; cursor: pointer; font-size: 12px; }
.task-assignee-option:hover, .task-assignee-option:has(input:checked) { background: #eef7f8; }
.task-assignee-option input { flex: 0 0 auto; margin: 0; accent-color: var(--color-accent-hover); }
.task-assignee-option-avatar { width: 23px; height: 23px; flex-basis: 23px; font-size: 9px; }
.task-assignee-error { color: var(--color-danger); font-size: 12px; }
.task-worked-time { font-weight: 400; white-space: nowrap; }
.task-progress-cell { display: flex; min-width: 0; align-items: center; gap: 7px; color: var(--color-text-secondary); font-size: 12px; white-space: nowrap; }
.task-progress-track { width: min(100%, 88px); height: 8px; flex: 1 1 auto; overflow: hidden; border-radius: 999px; background: #dfe8ed; }
.task-progress-track > span { display: block; height: 100%; border-radius: inherit; background: var(--color-accent); transition: width .2s ease; }
.task-progress-track > span.is-complete { background: #10b981; }
.task-follow-up-cell { display: grid; min-width: 0; justify-items: start; gap: 3px; }
.task-follow-up { display: inline-block; max-width: 100%; padding: 4px 7px; border-left: 3px solid var(--task-follow-up-color, #64748b); border-radius: 999px; color: #273750; background: color-mix(in srgb, var(--task-follow-up-color, #64748b) 18%, white); font-size: 11px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.task-options-link { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border: 1px solid var(--color-border); border-radius: 8px; color: var(--color-text-secondary); background: #fff; text-decoration: none; }
.task-options-link:hover, .task-options-link:focus-visible { border-color: #a7dbe3; color: var(--color-accent-hover); background: #f0fbfc; }
.task-options-link svg { width: 18px; height: 18px; }
.task-options-page { display: grid; gap: 18px; }
.task-options-page .back-link { justify-self: start; }
.task-options-card { min-width: 0; }
.task-options-card .management-card-heading p { margin: 4px 0 0; color: var(--color-text-secondary); font-size: 12px; font-weight: 400; }
.task-options-list { display: grid; gap: 0; padding: 4px 18px 18px; }
.task-options-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid #e9eff3; }
.task-options-row--fixed { justify-content: space-between; color: var(--color-text-secondary); }
.task-options-row--fixed small, .task-options-usage { color: var(--color-text-muted); font-size: 12px; white-space: nowrap; }
.task-options-edit { display: flex; min-width: 0; flex: 1; align-items: center; gap: 10px; }
.task-options-edit .form-input { min-width: 0; flex: 1; }
.task-options-edit .button { flex: 0 0 auto; }
.task-options-color { width: 40px; height: 37px; flex: 0 0 40px; padding: 3px; border: 1px solid var(--color-border); border-radius: 8px; background: #fff; cursor: pointer; }
.task-options-color-field { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; }
.task-options-edit .task-options-hex { width: 92px; min-width: 92px; flex: 0 0 92px; padding-right: 7px; padding-left: 7px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; text-transform: uppercase; }
.task-options-delete { padding: 5px 0; border: 0; color: var(--color-danger); background: transparent; cursor: pointer; font: inherit; font-size: 12px; }
.task-options-add { padding-top: 18px; }
@media (max-width: 600px) { .task-options-row { align-items: stretch; flex-direction: column; } .task-options-edit { flex-wrap: wrap; } .task-options-edit > .form-input { flex-basis: 100%; } .task-options-delete, .task-options-usage { align-self: flex-end; } }
.task-follow-up-none, .task-follow-up-date { color: var(--color-text-secondary); font-size: 11px; }
.task-menu-reminder { display: grid; gap: 5px; margin-top: 6px; padding-top: 8px; border-top: 1px solid #eef1f4; }
.task-menu-reminder label { color: #475569; font-size: 12px; font-weight: 700; }
.task-menu-reminder .form-input { min-height: 32px; padding: 5px 7px; font-size: 12px; }
.task-menu-reminder .button { min-height: 29px; justify-self: end; padding: 0 9px; font-size: 12px; }
.task-row-action { color: var(--color-accent-hover); font-size: 12px; font-weight: 700; white-space: nowrap; }
.task-table-scroll { overflow: visible; }
.task-actions-menu { position: relative; display: inline-block; }
.task-actions-menu[open] { z-index: 30; }
.task-actions-menu > summary { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 7px; color: #63809a; cursor: pointer; font-size: 23px; line-height: 1; list-style: none; }
.task-actions-menu > summary::-webkit-details-marker { display: none; }
.task-actions-menu > summary:hover, .task-actions-menu[open] > summary { color: var(--color-primary); background: #eef7f8; }
.task-actions-menu.is-pinned > summary { color: #10a36d; background: transparent; }
.task-actions-popover { position: absolute; z-index: 35; top: calc(100% + 5px); right: 0; display: grid; width: 235px; max-height: min(65vh, 420px); padding: 8px 12px; overflow: auto; border: 1px solid var(--color-border); border-radius: 10px; background: #fff; box-shadow: var(--shadow-dropdown); white-space: normal; }
.task-actions-popover > form, .task-actions-popover > .task-actions-submenu { padding: 7px 0; border-bottom: 1px solid #eef1f4; }
.task-actions-popover > :last-child { border-bottom: 0; }
.task-actions-popover > form { display: block; }
.task-actions-popover > .task-actions-submenu > summary { display: flex; min-height: 24px; align-items: center; justify-content: space-between; gap: 8px; color: #475569; cursor: pointer; font-size: 13px; font-weight: 700; list-style: none; }
.task-actions-popover > .task-actions-submenu > summary::-webkit-details-marker { display: none; }
.task-actions-popover > .task-actions-submenu > summary::after { content: "›"; margin-left: auto; color: #8293a5; font-size: 18px; font-weight: 400; }
.task-actions-popover > .task-actions-submenu[open] > summary { color: var(--color-primary); }
.task-actions-submenu-options { display: grid; gap: 2px; padding: 5px 0 0 8px; }
.task-actions-submenu-options form { display: block; margin: 0; }
.task-menu-labels-form .task-label-option { padding: 5px; }
.task-menu-labels-form .task-label-badge { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.task-menu-labels-apply { width: 100%; min-height: 32px; margin-top: 6px; }
.task-menu-option { display: block; width: 100%; padding: 5px 7px; border: 0; border-radius: 5px; color: var(--color-text-primary); background: transparent; cursor: pointer; font: inherit; font-size: 13px; text-align: left; }
.task-menu-option:hover { color: var(--color-primary); background: #eef7f8; }
.task-menu-option.is-current { color: var(--color-primary); background: #e6f8fa; font-weight: 700; }
.task-menu-delete { display: block; width: 100%; padding: 6px 7px; border: 0; border-radius: 5px; color: var(--color-danger); background: transparent; cursor: pointer; font: inherit; font-size: 13px; text-align: left; }
.task-menu-delete:hover { color: #b42318; background: #fff1f0; }
.task-actions-popover > .task-delete-menu-form { margin-top: 5px; padding-top: 8px; border-top: 1px solid #eef1f4; border-bottom: 0; }
.task-table-footer { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 12px; color: var(--color-text-secondary); font-size: 12px; }
.task-pagination { display: flex; align-items: center; gap: 4px; }
.task-pagination .button { min-width: 30px; min-height: 30px; padding: 0 8px; font-size: 12px; }
.task-pagination .is-disabled { opacity: .45; pointer-events: none; }
.task-list-toolbar { flex-wrap: wrap; }
.task-search { width: min(100%, 580px); }
.task-search .form-input { flex: 1 1 180px; }
.task-search .searchable-select { flex: 0 1 155px; width: auto; }
.task-filter-select { flex: 0 1 155px; }
.task-list-actions { display: flex; align-items: center; gap: 8px; }
.task-table:not(.task-table--polished) { min-width: 900px; }
.task-status, .task-priority { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.task-status--todo { color: #475569; background: #eef2f6; }
.task-status--progress { color: #075985; background: #e0f2fe; }
.task-status--done { color: #087c58; background: #ddf8ec; }
.task-priority--high { color: #b42318; background: #fee4e2; }
.task-priority--medium { color: #8a5200; background: #fff0c2; }
.task-priority--low { color: #1d5ca8; background: #dceeff; }
.task-due-date { white-space: nowrap; }
.task-due-date.is-overdue { color: #e11d48; font-weight: 700; }
.task-no-due-date { color: var(--color-text-muted); }
.task-status-form { display: flex; align-items: center; gap: 7px; }
.task-status-form .form-input { min-width: 0; min-height: 34px; padding: 6px 8px; font-size: 13px; }
.task-status-form .searchable-select { flex: 1 1 110px; }
.task-status-form .searchable-select-trigger { min-height: 34px; padding: 6px 8px; font-size: 13px; }
.task-detail-heading h1 { margin: 0; }
.task-detail-drawer[hidden] { display: none; }
.task-detail-drawer { position: fixed; z-index: 1200; inset: 0; overflow: hidden; overflow: clip; }
.task-detail-drawer-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgb(10 27 41 / 42%); cursor: default; opacity: 0; transition: opacity 260ms ease-out; }
.task-detail-drawer-panel { position: absolute; top: 0; right: 0; display: flex; width: 66.6667vw; height: 100%; flex-direction: column; background: #f4f7f9; box-shadow: -14px 0 42px rgb(15 35 55 / 18%); transform: translate3d(calc(100% + 48px), 0, 0); transition: transform 260ms ease-out; will-change: transform; }
.task-detail-drawer.is-open .task-detail-drawer-backdrop { opacity: 1; }
.task-detail-drawer.is-open .task-detail-drawer-panel { transform: translate3d(0, 0, 0); }
.task-detail-drawer-header { position: relative; z-index: 1; display: flex; min-height: 58px; flex: 0 0 auto; align-items: center; justify-content: space-between; padding: 0 22px; border-bottom: 1px solid var(--color-border); background: #fff; }
.task-detail-drawer-header-actions { display: flex; align-items: center; gap: 10px; }
.task-detail-drawer-title { color: var(--color-text-primary); font-size: 14px; font-weight: 700; }
.task-detail-drawer-client-logo[hidden] { display: none; }
.task-detail-company-logo { display: block; width: 44px; height: 44px; flex: 0 0 44px; padding: 4px; border: 1px solid var(--color-border); border-radius: 8px; background: #fff; object-fit: contain; }
.task-detail-drawer-close { display: grid; width: 36px; height: 36px; place-items: center; border: 0; border-radius: 8px; color: var(--color-text-secondary); background: transparent; cursor: pointer; font: inherit; font-size: 26px; line-height: 1; }
.task-detail-drawer-close:hover, .task-detail-drawer-close:focus-visible { outline: none; color: var(--color-text-primary); background: #eef2f5; }
.task-detail-drawer-body { min-height: 0; flex: 1 1 auto; overflow: auto; overscroll-behavior: contain; }
.task-detail-drawer-body > .management-main { width: 100%; max-width: none; margin: 0; padding: 22px; }
.task-detail-drawer-body > .management-main > .back-link { display: none; }
.task-detail-drawer-loading { padding: 24px; color: var(--color-text-secondary); }
.task-detail-drawer-error { display: grid; gap: 12px; justify-items: start; padding: 24px; color: var(--color-text-secondary); }
.task-detail-drawer-error p, .task-detail-drawer-error-message { margin: 0; }
.task-detail-drawer-error-message { padding: 12px 16px; color: var(--color-danger); }
body.task-drawer-open { overflow: hidden; padding-right: var(--task-drawer-scrollbar-width, 0px); }

.todo-main { width: min(100% - 28px, 1500px); display: grid; align-content: start; gap: 18px; }
.todo-heading h1 { margin: 0; color: #0c2444; font-size: 30px; letter-spacing: -.5px; }
.todo-heading p { margin: 3px 0 0; color: #60789d; font-size: 14px; }
.todo-filters { display: grid; grid-template-columns: minmax(130px, .8fr) minmax(180px, 1fr) minmax(220px, 1.6fr); gap: 12px; }
.todo-filters > .form-input, .todo-search { width: 100%; min-height: 40px; border: 1px solid #dfe8f1; border-radius: 8px; background: #fff; }
.todo-search { display: flex; align-items: center; gap: 10px; padding: 0 12px; }
.todo-search svg { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: #7390ad; stroke-width: 1.8; }
.todo-search input { min-width: 0; width: 100%; border: 0; outline: 0; color: #17345b; background: transparent; font: inherit; font-size: 13px; }
.todo-search input::placeholder { color: #91a2b7; }
.todo-search:focus-within { border-color: #4da8d1; box-shadow: 0 0 0 3px rgb(77 168 209 / 12%); }
.todo-card { min-width: 0; padding: 14px; border: 1px solid #e3eaf1; border-radius: 11px; background: #fff; box-shadow: 0 2px 10px rgb(18 49 81 / 4%); }
.todo-add-form { display: flex; min-height: 43px; align-items: center; gap: 0; margin-bottom: 9px; }
.todo-add-button, .todo-add-form > input[data-todo-title], .todo-enter-hint { height: 39px; border: 1px solid #e2eaf2; background: #fff; }
.todo-add-button { width: 43px; flex: 0 0 43px; border-radius: 7px 0 0 7px; color: #2785e5; cursor: pointer; font-size: 27px; font-weight: 300; line-height: 1; }
.todo-add-button:hover { background: #eef7ff; }
.todo-add-form > input[data-todo-title] { min-width: 150px; flex: 1 1 240px; border-right: 0; border-left: 0; outline: 0; padding: 0 12px; color: #18365c; font: inherit; font-size: 13px; }
.todo-add-form > input[data-todo-title]::placeholder, .todo-description-step > textarea::placeholder { color: #8ba1bd; }
.todo-add-form:focus-within > input[data-todo-title], .todo-add-form:focus-within .todo-add-button { border-color: #a7cfea; }
.todo-add-form.is-choosing-description > input[data-todo-title] { flex-basis: 34%; }
.todo-add-form.is-choosing-assignees > input[data-todo-title] { flex-basis: 26%; }
.todo-add-form.is-choosing-client > input[data-todo-title] { flex-basis: 28%; }
.todo-description-step { display: flex; min-width: 150px; min-height: 39px; flex: 1 1 230px; }
.todo-description-step[hidden] { display: none; }
.todo-description-step > textarea { width: 100%; min-width: 0; min-height: 39px; max-height: 130px; box-sizing: border-box; resize: vertical; border: 1px solid #e2eaf2; outline: 0; padding: 8px 11px; color: #18365c; background: #fff; font: inherit; font-size: 13px; line-height: 1.35; }
.todo-description-step > textarea:focus { border-color: #70b8df; box-shadow: inset 0 0 0 1px #70b8df; }
.todo-assignee-step { position: relative; display: grid; min-width: 160px; flex: 0 1 230px; gap: 5px; }
.todo-assignee-step[hidden] { display: none; }
.todo-assignee-step > input, .todo-row-assignee-edit > input { min-width: 0; width: 100%; min-height: 34px; box-sizing: border-box; padding: 6px 9px; border: 1px solid #e2eaf2; border-radius: 6px; color: #18365c; background: #fff; font: inherit; font-size: 12px; }
.todo-assignee-options { display: flex; max-height: 105px; flex-wrap: wrap; gap: 4px 6px; overflow-y: auto; }
.todo-assignee-options label { display: inline-flex; align-items: center; gap: 5px; padding: 3px 6px; border: 1px solid #e5edf4; border-radius: 5px; color: #536d8d; background: #f8fafc; cursor: pointer; font-size: 11px; }
.todo-assignee-options input { margin: 0; }
.todo-assignee-options label[hidden] { display: none; }
.todo-client-step { position: relative; display: flex; min-width: 160px; height: 39px; flex: 0 1 280px; }
.todo-client-step[hidden], .todo-client-suggestions[hidden] { display: none; }
.todo-client-step > input { min-width: 0; width: 100%; border: 1px solid #e2eaf2; outline: 0; padding: 0 11px; color: #18365c; background: #fff; font: inherit; font-size: 13px; }
.todo-client-step > input::placeholder { color: #8ba1bd; }
.todo-client-step > input:focus { border-color: #70b8df; box-shadow: inset 0 0 0 1px #70b8df; }
.todo-client-suggestions { position: absolute; z-index: 25; top: calc(100% + 4px); right: 0; left: 0; max-height: 230px; overflow-y: auto; padding: 4px; border: 1px solid #dce7f0; border-radius: 7px; background: #fff; box-shadow: 0 12px 28px rgb(18 49 81 / 14%); }
.todo-client-suggestions > button { display: block; width: 100%; overflow: hidden; padding: 9px 10px; border: 0; border-radius: 5px; color: #1c365c; background: transparent; cursor: pointer; font: inherit; font-size: 12px; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.todo-client-suggestions > button[hidden] { display: none; }
.todo-client-suggestions > button:hover, .todo-client-suggestions > button.is-active { background: #eaf5ff; color: #0b73b7; }
.todo-enter-hint { display: flex; flex: 0 0 auto; align-items: center; padding: 0 12px; border-radius: 0 7px 7px 0; color: #7b90ae; background: #f5f8fb; font-size: 11px; white-space: nowrap; }
.todo-rows { border-top: 1px solid #eaf0f5; }
.todo-row { position: relative; display: grid; grid-template-columns: 18px 24px 76px minmax(0, 1fr) minmax(80px, 150px) minmax(60px, auto) 31px; min-height: 43px; align-items: center; gap: 11px; padding: 3px 4px; border-bottom: 1px solid #edf1f5; color: #1c365c; font-size: 13px; }
.todo-row.is-dragging { opacity: .5; background: #eaf5ff; }
.todo-grip { color: #bdcbdc; font-size: 18px; text-align: center; user-select: none; }
.todo-grip[draggable="true"] { cursor: grab; }
.todo-convert-form { display: flex; align-items: center; margin: 0; }
.todo-checkbox { display: grid; width: 19px; height: 19px; box-sizing: border-box; place-items: center; padding: 0; border: 1.5px solid #9bb1ca; border-radius: 3px; background: #fff; color: #fff; cursor: pointer; font-size: 14px; line-height: 1; }
.todo-checkbox:not(.is-disabled):not(.is-checked):hover { border-color: #2785e5; background: #f2f9ff; }
.todo-checkbox.is-checked { border-color: #168ec5; background: #168ec5; cursor: default; }
.todo-checkbox.is-disabled { cursor: not-allowed; opacity: .55; }
.todo-row-date { color: #7b90ae; font-size: 11px; white-space: nowrap; }
.todo-row-copy { display: grid; min-width: 0; gap: 2px; }
.todo-row-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.todo-row-description { overflow-wrap: anywhere; color: #8292a8; font-size: 11px; line-height: 1.4; white-space: pre-line; }
.todo-row-description-button { display: block; width: fit-content; max-width: 100%; padding: 0; border: 0; background: transparent; cursor: text; font: inherit; text-align: left; }
.todo-row-description-button:empty::before { content: 'Ajouter une description…'; }
.todo-row-description-button:not(:empty) { width: 100%; }
.todo-row-description-edit { display: grid; min-width: 0; gap: 5px; }
.todo-row-description-input { width: 100%; min-width: 0; min-height: 54px; resize: vertical; font-size: 11px; }
.todo-row-description-actions { display: flex; justify-content: flex-end; gap: 4px; }
.todo-assignee-display { min-width: 0; overflow: hidden; color: #657d99; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.todo-assignee-display-button { justify-self: start; max-width: 100%; padding: 4px 7px; border: 1px solid #e3ebf3; border-radius: 5px; background: #f6f9fc; cursor: pointer; }
.todo-assignee-display-button:hover { border-color: #b8d5e7; color: #137ea8; background: #eef8fc; }
.todo-row-assignee-edit { position: absolute; z-index: 24; top: calc(100% - 2px); right: 150px; display: grid; width: min(320px, calc(100vw - 55px)); gap: 8px; padding: 12px; border: 1px solid #dfe8f1; border-radius: 9px; background: #fff; box-shadow: 0 14px 35px rgb(22 45 77 / 14%); }
.todo-row-assignee-edit .todo-assignee-options { max-height: 180px; }
.todo-row-title-button { width: 100%; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: text; }
.todo-row-title-button:hover { text-decoration: underline; text-decoration-color: #9bb1ca; text-underline-offset: 3px; }
.todo-row-title-button:focus-visible { border-radius: 3px; outline: 2px solid #168ec5; outline-offset: 3px; }
.todo-row-inline-edit { display: flex; min-width: 0; align-items: center; gap: 4px; margin: 0; }
.todo-row-inline-input { width: 100%; min-width: 0; min-height: 32px; padding: 5px 8px; }
.todo-row-inline-save, .todo-row-inline-cancel { display: grid; width: 27px; height: 27px; flex: 0 0 27px; place-items: center; padding: 0; border: 0; border-radius: 5px; background: #e8f7f2; color: #138564; cursor: pointer; font-size: 16px; }
.todo-row-inline-cancel { background: #f1f4f7; color: #62758c; font-size: 19px; }
.todo-row.is-converted .todo-row-title { color: #8b9bb1; text-decoration: line-through; }
.todo-company-tag { max-width: 180px; overflow: hidden; padding: 4px 9px; border-radius: 5px; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.todo-company-tag-button { border: 0; cursor: pointer; font: inherit; font-size: 11px; text-align: left; }
.todo-company-tag--0 { color: #60758d; background: #edf2f7; }
.todo-company-tag--1 { color: #267e61; background: #e2f7ec; }
.todo-company-tag--2 { color: #315bd7; background: #e7efff; }
.todo-company-tag--3 { color: #8150c9; background: #f0eaff; }
.todo-company-tag--4 { color: #be712e; background: #fff0df; }
.todo-company-tag--5 { color: #bf4e7d; background: #ffe9f1; }
.todo-company-tag--6 { color: #137c95; background: #e0f7fa; }
.todo-row-menu { justify-self: end; }
.todo-row-menu > summary { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 5px; color: #50729a; cursor: pointer; font-size: 19px; font-weight: 700; list-style: none; }
.todo-row-menu > summary::-webkit-details-marker { display: none; }
.todo-row-menu > summary:hover, .todo-row-menu[open] > summary { background: #eef5fc; }
.todo-row-menu-content { position: absolute; z-index: 20; top: calc(100% - 2px); right: 0; display: grid; width: min(300px, calc(100vw - 55px)); gap: 10px; padding: 14px; border: 1px solid #dfe8f1; border-radius: 9px; background: #fff; box-shadow: 0 14px 35px rgb(22 45 77 / 14%); }
.todo-row-menu-content form { display: grid; gap: 8px; margin: 0; }
.todo-row-client-edit { width: 100%; max-width: 180px; min-width: 0; box-sizing: border-box; margin: 0; }
.todo-row-client-edit select { width: 100%; min-width: 0; min-height: 31px; padding: 4px 23px 4px 7px; font-size: 11px; }
.todo-row-menu-content label { display: grid; gap: 4px; color: #536d8d; font-size: 11px; }
.todo-row-menu-content .form-input { width: 100%; min-width: 0; font-size: 12px; }
.todo-row-menu-content .button { justify-self: start; }
.todo-row-menu-content form + form { padding-top: 9px; border-top: 1px solid #edf1f5; }
.todo-delete { justify-self: start; padding: 3px 0; border: 0; color: #c04350; background: transparent; cursor: pointer; font: inherit; font-size: 12px; }
.todo-task-link { color: #137ea8; font-size: 12px; font-weight: 600; }
.todo-empty { margin: 18px 6px; color: #758aa3; font-size: 13px; }
@media (max-width: 720px) {
  .todo-main { width: calc(100% - 28px); }
  .todo-add-form { flex-wrap: wrap; }
  .todo-add-form > input[data-todo-title] { flex: 1 1 calc(100% - 43px); }
  .todo-description-step, .todo-assignee-step, .todo-client-step { min-width: 0; flex: 1 1 100%; }
  .todo-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .todo-search { grid-column: 1 / -1; }
  .todo-enter-hint { display: none; }
  .todo-add-form > input { border-right: 1px solid #e2eaf2; border-radius: 0 7px 7px 0; }
  .todo-add-form.is-choosing-client > input[data-todo-title] { border-radius: 0; }
  .todo-company-tag { max-width: 100px; }
}
@media (max-width: 480px) {
  .todo-row { grid-template-columns: 14px 22px 70px minmax(0, 1fr) minmax(0, 90px) 28px; gap: 7px; }
  .todo-row-date { font-size: 10px; }
  .todo-assignee-display { grid-column: 4; grid-row: 2; }
  .todo-company-tag { grid-column: 5; grid-row: 2; justify-self: start; max-width: 100%; }
  .todo-row-menu { grid-column: 6; grid-row: 1 / span 2; }
  .todo-row-assignee-edit { right: 32px; }
}
.task-detail-heading-actions { display: flex; align-items: center; gap: 10px; }
.task-detail-heading-actions form { margin: 0; }
.task-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.task-summary-card { display: grid; min-width: 0; align-content: start; gap: 8px; padding: 17px; }
.task-summary-card > span:first-child { color: var(--color-text-secondary); font-size: 14px; }
.task-summary-card > strong { color: var(--color-text-primary); font-size: 16px; overflow-wrap: anywhere; }
.task-detail-status-form { align-items: stretch; flex-wrap: wrap; }
.task-detail-status-form .form-input { flex: 1 1 110px; }
.task-detail-status-form .searchable-select { flex: 1 1 110px; width: auto; }
.task-description-card { padding: 18px 20px; margin-bottom: 18px; }
.task-description-card h2, .task-subtask-create h2 { margin: 0 0 10px; font-size: 16px; }
.task-description-card p { margin: 0; color: var(--color-text-secondary); font-size: 15px; line-height: 1.65; }
.task-subtasks-card { margin-bottom: 18px; }
.task-todo-card { margin-bottom: 18px; }
.task-todo-list { display: grid; }
.task-todo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 14px 18px; border-top: 1px solid #eef1f4; }
.task-todo-row.is-done { background: #f7faf9; }
.task-todo-row.is-heading { background: #f1f7fa; border-top-color: #dce8ef; }
.task-todo-section-title { flex: 1 1 220px; color: var(--color-text-primary); font-size: 15px; }
.task-todo-move-form { display: flex; flex: 0 0 auto; gap: 2px; }
.task-todo-move-form button { width: 24px; height: 28px; padding: 0; border: 0; border-radius: 5px; color: var(--color-text-secondary); background: transparent; cursor: pointer; }
.task-todo-move-form button:hover { color: var(--color-accent-hover); background: #e5f0f5; }
.task-todo-complete-form { display: flex; flex: 1 1 540px; flex-wrap: wrap; align-items: center; gap: 10px 16px; min-width: 0; }
.task-todo-check { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: 0 0 28px; }
.task-todo-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--color-accent-hover); cursor: pointer; }
.task-todo-check input:disabled { cursor: default; }
.task-todo-description { display: grid; flex: 1 1 220px; gap: 3px; min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
.task-todo-description small { color: var(--color-text-secondary); font-size: 11px; }
.task-todo-row.is-done .task-todo-description strong { color: var(--color-text-secondary); text-decoration: line-through; }
.task-todo-time { display: flex; align-items: center; gap: 7px; color: var(--color-text-secondary); font-size: 11px; white-space: nowrap; }
.task-todo-time .form-input { width: 75px; min-height: 34px; padding: 5px 7px; }
.task-todo-delete-form { margin-left: auto; }
.task-todo-delete-form button { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 5px; color: var(--color-text-secondary); background: transparent; cursor: pointer; font-size: 17px; }
.task-todo-delete-form button:hover { color: var(--color-danger); background: #fff1f0; }
.task-todo-add-form { display: flex; flex-wrap: wrap; align-items: end; gap: 8px 12px; padding: 18px; border-top: 1px solid #eef1f4; }
.task-todo-add-form .form-label { flex: 0 0 100%; margin: 0; }
.task-todo-add-form .form-input[name="title"] { flex: 1 1 250px; }
.task-todo-add-form .button { min-height: 38px; }
.task-todo-add-inline { display: grid; grid-template-columns: minmax(0, 1fr) 150px auto; align-items: end; gap: 10px; width: 100%; }
.task-todo-add-inline > div { min-width: 0; }
.task-todo-add-inline .form-label { display: block; margin-bottom: 5px; }
.task-todo-add-inline .form-input { width: 100%; min-width: 0; }
@media (max-width: 520px) { .task-todo-add-inline { grid-template-columns: minmax(0, 1fr) auto; } .task-todo-add-inline > div:first-child { grid-column: 1 / -1; } }
.task-todo-add-heading { padding-top: 0; border-top: 0; }
.task-template-preview { padding: 12px 16px; border: 1px solid var(--color-border); border-radius: 8px; background: #f8fbfc; font-size: 12px; }
.task-template-preview[hidden], .task-template-preview [hidden] { display: none !important; }
.task-template-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.task-template-preview-head strong { margin: 0; }
.task-template-edit-toggle { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border: 1px solid var(--color-border); border-radius: 6px; color: var(--color-accent-hover); background: #fff; cursor: pointer; }
.task-template-edit-toggle:hover { background: #f1f7f9; }
.task-template-edit-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.task-template-preview ul { display: grid; gap: 4px; margin: 0; padding-left: 18px; }
.task-template-preview li.is-heading { margin-top: 8px; margin-left: -18px; list-style: none; font-weight: 700; }
.task-template-inline-editor { display: grid; gap: 8px; margin-top: 10px; }
.task-template-save-status { margin: 10px 0 0; color: #087f5b; font-size: 12px; font-weight: 600; }
.task-template-save-status.is-error { color: var(--color-danger); }
.task-template-todo-editor { display: grid; gap: 12px; margin-top: 8px; }
.task-template-todo-heading { display: grid; gap: 3px; }
.task-template-todo-heading small { color: var(--color-text-secondary); }
.task-template-todo-columns { display: grid; grid-template-columns: minmax(0, 1fr) 115px 94px; gap: 10px; padding: 0 10px; color: var(--color-text-primary); font-size: 12px; font-weight: 600; }
.task-template-todo-rows { display: grid; gap: 8px; }
.task-template-todo-row { display: grid; grid-template-columns: minmax(0, 1fr) 115px 94px; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid var(--color-border); border-radius: 8px; background: #fff; }
.task-template-todo-row.is-heading { border-color: #cde3eb; background: #f1f7fa; }
.task-template-todo-row .form-input { min-width: 0; min-height: 34px; }
.task-template-todo-no-time { align-self: center; color: var(--color-text-secondary); font-size: 12px; }
.task-template-todo-actions { display: flex; justify-content: flex-end; gap: 3px; }
.task-template-todo-actions button { width: 28px; height: 34px; padding: 0; border: 1px solid var(--color-border); border-radius: 6px; color: var(--color-text-secondary); background: #fff; cursor: pointer; }
.task-template-todo-actions button:hover:not(:disabled) { color: var(--color-accent-hover); border-color: var(--color-accent-hover); }
.task-template-todo-actions button:disabled { opacity: .4; cursor: default; }
.task-template-todo-add { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 620px) { .task-template-todo-columns { display: none; } .task-template-todo-row { grid-template-columns: minmax(0, 1fr) 94px; } .task-template-todo-row [data-todo-title] { grid-column: 1 / -1; } }
.task-direct-work-form { max-width: 720px; margin: 0 20px 18px; padding: 16px; border: 1px solid var(--color-border); border-radius: 10px; background: #fbfcfd; }
.task-direct-work-form h2 { margin: 0; font-size: 16px; }
.task-direct-work-form > .form-help { margin: -5px 0 0; }
.task-direct-work-notice { margin: 0 20px 18px; color: var(--color-text-secondary); font-size: 14px; }
.task-subtask-list { display: grid; }
.task-subtask-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, .8fr) auto; align-items: start; gap: 12px; padding: 15px 20px; border-bottom: 1px solid #f0f2f5; }
.task-subtask-details { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 14px; }
.task-subtask-details strong { color: var(--color-text-primary); }
.task-subtask-details span { color: var(--color-text-secondary); font-size: 13px; }
.task-subtask-details b { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 15px; white-space: nowrap; }
.task-subtask-edit summary { color: var(--color-accent-hover); cursor: pointer; font-size: 13px; font-weight: 600; }
.task-subtask-edit[open] summary { margin-bottom: 10px; }
.task-subtask-edit .management-form { gap: 7px; }
.task-subtask-edit .form-label { margin-top: 4px; }
.task-subtask-item > form { padding-top: 2px; }
.task-subtask-create { display: grid; gap: 8px; max-width: 760px; padding: 20px; }
.task-subtask-create .management-form { gap: 8px; }
.task-subtask-create .form-label { margin-top: 4px; }
.task-subtask-create .button { justify-self: start; margin-top: 6px; }

.task-detail-drawer-panel { background: #fff; }
.task-detail-drawer-body > .management-main { padding: 22px 24px 32px; }
.task-detail-layout { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(230px, .95fr); align-items: start; gap: 18px; }
.task-detail-main-column, .task-detail-sidebar { min-width: 0; }
.task-detail-main-column { display: grid; align-content: start; gap: 12px; }
.task-detail-sidebar { display: grid; gap: 12px; padding-top: 40px; }
.task-detail-topline { display: flex; min-height: 34px; align-items: center; justify-content: space-between; gap: 12px; }
.task-detail-labels { display: flex; min-width: 0; align-items: center; flex-wrap: wrap; gap: 8px; }
.task-detail-labels .task-priority { font-size: 12px; }
.task-detail-labels .task-follow-up { font-size: 12px; }
.task-detail-fields-display .task-follow-up { font-size: 12px; }
.task-detail-heading { display: flex; align-items: center; gap: 8px; margin: -5px 0 0; }
.task-detail-heading h1 { color: var(--color-text-primary); font-size: clamp(22px, 2vw, 30px); line-height: 1.2; }
.task-title-edit-toggle { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border: 1px solid var(--color-border); border-radius: 6px; color: var(--color-accent-hover); background: #fff; cursor: pointer; font-size: 15px; }
.task-title-edit-toggle:hover { background: #f1f7f9; }
.task-title-edit-form { display: flex; min-width: 0; flex: 1 1 auto; align-items: center; flex-wrap: wrap; gap: 7px; }
.task-title-edit-form[hidden] { display: none; }
.task-title-edit-form .form-input { min-width: 160px; flex: 1 1 220px; min-height: 38px; font-size: 20px; font-weight: 700; }
.task-title-edit-form .button { white-space: nowrap; }
.task-detail-heading-actions .button { white-space: nowrap; }
.task-detail-actions-menu { position: relative; }
.task-detail-actions-menu > summary { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--color-border); border-radius: 6px; color: var(--color-text-secondary); background: #fff; cursor: pointer; font-size: 21px; line-height: 1; list-style: none; }
.task-detail-actions-menu > summary::-webkit-details-marker { display: none; }
.task-detail-actions-menu > div { position: absolute; z-index: 5; top: calc(100% + 5px); right: 0; width: 188px; padding: 5px; border: 1px solid var(--color-border); border-radius: 8px; background: #fff; box-shadow: 0 12px 28px rgb(10 27 41 / 13%); }
.task-detail-actions-menu a, .task-detail-actions-menu button { display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: 5px; background: transparent; color: var(--color-text-primary); cursor: pointer; font: inherit; font-size: 13px; text-align: left; text-decoration: none; }
.task-detail-actions-menu a:hover, .task-detail-actions-menu button:hover { background: #f2f6f8; }
.task-detail-actions-menu button { color: var(--color-danger); }
.task-detail-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; color: var(--color-text-secondary); font-size: 13px; }
.task-detail-meta strong { color: var(--color-accent-hover); font-weight: 600; }
.task-detail-tabs { display: flex; align-items: stretch; gap: 24px; margin-top: 9px; border-bottom: 1px solid var(--color-border); }
.task-detail-tabs button { position: relative; display: flex; align-items: center; gap: 5px; min-height: 38px; padding: 0; border: 0; color: var(--color-text-secondary); background: transparent; cursor: pointer; font: inherit; font-size: 13px; white-space: nowrap; }
.task-detail-tabs button:hover, .task-detail-tabs button[aria-selected="true"] { color: var(--color-accent-hover); }
.task-detail-tabs button[aria-selected="true"]::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; border-radius: 2px 2px 0 0; background: var(--color-accent); content: ''; }
.task-detail-tabs button span { padding: 1px 5px; border-radius: 99px; background: #e9eff4; color: var(--color-text-secondary); font-size: 11px; }
.task-detail-tabs button:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.task-detail-layout [role="tabpanel"][hidden] { display: none; }
.task-direct-work-notice [data-task-detail-tab-target] { padding: 0; border: 0; color: var(--color-accent-hover); background: transparent; cursor: pointer; font: inherit; text-decoration: underline; }
.task-detail-layout .management-card { border-radius: 7px; box-shadow: none; }
.task-detail-fields-panel { display: grid; align-content: start; gap: 12px; }
.task-detail-card-title { display: flex; min-width: 0; align-items: center; gap: 8px; }
.task-detail-card-title h2, .task-detail-card-title strong { margin: 0; color: var(--color-text-primary); font-size: 14px; font-weight: 700; }
.task-detail-icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.task-detail-card-title .task-detail-card-icon { display: inline-flex; width: 28px; height: 28px; flex: 0 0 28px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 9px; line-height: 1; transition: transform .16s ease, box-shadow .16s ease; }
.task-detail-card-title:hover .task-detail-card-icon { transform: translateY(-1px); box-shadow: 0 3px 8px rgb(15 23 42 / 9%); }
.task-detail-card-icon svg { display: block; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.task-detail-card-title .task-detail-card-icon--description { color: #07849b; border-color: #cceef2; background: linear-gradient(145deg, #f0fdff, #e0f7fa); }
.task-detail-card-title .task-detail-card-icon--details { color: #5563c1; border-color: #e0e7ff; background: linear-gradient(145deg, #f5f6ff, #e9edff); }
.task-detail-card-title .task-detail-card-icon--subtasks { color: #079669; border-color: #c9f3df; background: linear-gradient(145deg, #f0fdf7, #dcfce9); }
.task-detail-card-title .task-detail-card-icon--info { color: #2272c3; border-color: #d5e9ff; background: linear-gradient(145deg, #f4faff, #e3f1ff); }
.task-detail-card-title .task-detail-card-icon--contract { color: #7652bb; border-color: #e8ddff; background: linear-gradient(145deg, #faf7ff, #f0eaff); }
.task-detail-card-title .task-detail-card-icon--attachments { color: #c66a16; border-color: #ffe4c4; background: linear-gradient(145deg, #fffaf3, #fff0dc); }
.task-detail-card-title .task-detail-card-icon--history { color: #0b8b9a; border-color: #cceff1; background: linear-gradient(145deg, #f1fcfc, #dcf5f6); }
.task-title-edit-toggle svg, .task-section-edit-toggle svg { display: block; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.task-detail-card-title > .button { margin-left: auto; }
.task-detail-layout .task-description-card { padding: 14px 16px; margin: 0; }
.task-description-display { margin-top: 10px; color: var(--color-text-secondary); font-size: 13px; line-height: 1.55; }
.task-description-display p { margin: 0; }
.task-project-description-display { overflow-wrap: anywhere; }
.task-project-description-display p { line-height: 1.65; }
.task-project-description-display p + p, .task-project-description-display ul, .task-project-description-display ol, .task-project-description-display blockquote { margin: 10px 0 0; }
.task-project-description-display h1, .task-project-description-display h2, .task-project-description-display h3 { margin: 14px 0 6px; color: var(--color-text-primary); line-height: 1.3; }
.task-project-description-display h1 { font-size: 22px; }
.task-project-description-display h2 { font-size: 18px; }
.task-project-description-display h3 { font-size: 15px; }
.task-project-description-display ul, .task-project-description-display ol { padding-left: 24px; }
.task-project-description-display li + li { margin-top: 3px; }
.task-project-description-display img { display: block; max-width: 100%; height: auto; margin: 10px 0; border-radius: 6px; }
.task-project-description-display a { color: var(--color-accent-hover); text-decoration: underline; }
.task-project-add-button { margin-top: 3px; }
.task-project-description-input { min-height: 240px; resize: vertical; }
.task-rich-editor { overflow: hidden; border: 1px solid var(--color-border); border-radius: 7px; background: #fff; }
.task-rich-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; padding: 6px; border-bottom: 1px solid var(--color-border); background: #f8fafc; }
.task-rich-toolbar button { display: grid; min-width: 32px; height: 30px; place-items: center; padding: 0 7px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--color-text-primary); font: inherit; font-size: 13px; cursor: pointer; }
.task-rich-toolbar button:hover, .task-rich-toolbar button:focus-visible { border-color: var(--color-border); background: #fff; color: var(--color-accent-hover); }
.task-rich-toolbar button:disabled { opacity: .5; cursor: wait; }
.task-rich-toolbar button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.task-rich-toolbar-separator { width: 1px; height: 20px; margin: 0 4px; background: var(--color-border); }
.task-rich-editor-content { min-height: 240px; padding: 12px; outline: none; overflow-wrap: anywhere; line-height: 1.6; font-size: 13px; }
.task-rich-editor-content:focus { box-shadow: inset 0 0 0 2px rgba(0, 171, 190, .18); }
.task-rich-editor-content p { margin: 0 0 10px; }
.task-rich-editor-content h1, .task-rich-editor-content h2, .task-rich-editor-content h3 { margin: 12px 0 6px; }
.task-rich-editor-content h1 { font-size: 22px; }
.task-rich-editor-content h2 { font-size: 18px; }
.task-rich-editor-content h3 { font-size: 15px; }
.task-rich-editor-content img { display: block; max-width: 100%; height: auto; margin: 10px 0; }
.task-rich-editor-error { margin: 0; padding: 7px 12px; color: #b42318; font-size: 12px; }
.task-rich-editor-error[hidden] { display: none; }
.task-description-edit-form { display: grid; gap: 10px; margin-top: 10px; }
.task-description-ai { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 8px 0 4px; }
.task-description-ai-button { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 5px 10px; border: 1px solid #b7d8e1; border-radius: 7px; background: #f1fafc; color: #00677b; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.task-description-ai-button:hover { border-color: #66becd; background: #e4f6f9; }
.task-description-ai-button:disabled { opacity: .6; cursor: wait; }
.task-description-ai-button span { font-size: 16px; line-height: 1; }
.task-description-ai-undo { padding: 0; border: 0; background: transparent; color: var(--color-accent-hover); font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }
.task-description-ai-undo[hidden] { display: none; }
.task-description-ai-status { color: var(--color-text-secondary); font-size: 12px; }
.task-description-ai-status--error { color: #b42318; }
.task-description-edit-form[hidden], .task-detail-edit-form[hidden], [data-task-section-display][hidden], .task-section-edit-toggle[hidden] { display: none; }
.task-detail-edit-form { display: grid; gap: 12px; }
.task-detail-edit-form > .form-textarea, .task-description-readonly { min-height: 125px; font-size: 13px; line-height: 1.55; }
.task-details-card { display: grid; gap: 4px; }
.task-section-edit-toggle { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; padding: 0; margin-left: auto; border: 1px solid var(--color-border); border-radius: 6px; color: var(--color-accent-hover); background: #fff; cursor: pointer; font-size: 15px; line-height: 1; }
.task-section-edit-toggle:hover { background: #f1f7f9; }
.task-detail-fields-display { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin: 10px 0 0; }
.task-detail-fields-display > div { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: baseline; gap: 8px; font-size: 13px; }
.task-detail-fields-display dt { color: var(--color-text-secondary); }
.task-detail-fields-display dd { min-width: 0; margin: 0; color: var(--color-text-primary); overflow-wrap: anywhere; }
.task-detail-fields-display .task-detail-selected-labels { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.task-detail-edit-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; column-gap: 20px; row-gap: 12px; }
.task-detail-edit-fields > div { display: grid; min-width: 0; gap: 5px; align-content: start; }
.task-detail-edit-fields .form-label { min-height: 16px; margin: 0; font-size: 12px; line-height: 16px; }
.task-detail-edit-fields > div > .form-input { display: block; min-width: 0; min-height: 38px; width: 100%; max-width: 100%; margin: 0; justify-self: stretch; box-sizing: border-box; padding: 7px 9px; font-size: 13px; }
.task-detail-edit-fields > div > .searchable-select { display: block; min-width: 0; width: 100%; max-width: 100%; margin: 0; padding: 0; border: 0; background: transparent; }
.task-detail-edit-fields .searchable-select-trigger { display: flex; min-width: 0; min-height: 38px; width: 100%; max-width: 100%; margin: 0; box-sizing: border-box; padding: 7px 9px; font-size: 13px; }
.task-detail-edit-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 2px; }
.task-description-readonly { margin-top: 10px; }
.task-detail-layout .task-subtasks-card { margin: 0; }
.task-detail-layout .task-subtasks-card .management-card-heading { align-items: center; padding: 13px 16px; }
.task-subtasks-preview-card .task-subtasks-view-all { padding: 0; margin-left: auto; border: 0; color: var(--color-accent-hover); background: transparent; cursor: pointer; font: inherit; font-size: 12px; text-decoration: none; }
.task-subtasks-preview-card .task-subtasks-view-all:hover { text-decoration: underline; }
.task-subtask-preview-empty { padding: 12px 16px; margin: 0; color: var(--color-text-secondary); font-size: 13px; }
.task-detail-inline-progress { display: grid; width: 125px; gap: 3px; margin-left: auto; color: var(--color-text-secondary); font-size: 11px; }
.task-detail-inline-progress > span { color: var(--color-text-secondary); font-size: 11px; }
.task-detail-inline-progress .task-progress-track { width: 100%; height: 6px; }
.task-detail-layout .task-subtask-item { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 16px; }
.task-detail-layout .task-subtask-details { grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; }
.task-detail-layout .task-subtask-details strong { font-size: 13px; font-weight: 500; }
.task-detail-layout .task-subtask-details span { font-size: 12px; }
.task-detail-layout .task-subtask-details b { grid-column: 3; grid-row: 1; font-size: 12px; font-weight: 600; }
.task-detail-layout .task-subtask-edit[open] { grid-column: 1 / -1; }
.task-detail-layout .task-subtask-edit summary { white-space: nowrap; }
.task-subtask-grid { display: grid; overflow-x: auto; }
.task-subtask-grid-header, .task-subtask-grid-row { display: grid; grid-template-columns: minmax(145px, 1fr) minmax(90px, .6fr) minmax(180px, 2.4fr) minmax(105px, .7fr) 34px; align-items: center; gap: 8px; min-width: 650px; padding: 7px 16px; }
.task-subtask-grid-header { color: #62748a; background: #f8fafc; font-size: 12px; font-weight: 600; }
.task-subtask-grid-row { min-height: 48px; border-bottom: 1px solid #eef1f4; }
.task-subtask-grid-row:hover { background: #fbfdfe; }
.task-subtask-grid-row .form-input { min-width: 0; min-height: 34px; padding: 5px 7px; border-color: transparent; background: transparent; font-size: 12px; }
.task-subtask-grid-row input[type="date"] { width: 100%; min-width: 0; box-sizing: border-box; padding-right: 3px; padding-left: 3px; }
.task-subtask-grid-row .form-input:hover, .task-subtask-grid-row .form-input:focus { border-color: var(--color-border); background: #fff; }
.task-subtask-grid-row .button { min-height: 32px; padding: 0 8px; }
.task-subtask-delete-button { display: grid; width: 32px; height: 32px; place-items: center; padding: 0; border: 1px solid var(--color-border); border-radius: 8px; color: #64748b; background: #fff; cursor: pointer; }
.task-subtask-delete-button:hover { border-color: #fecaca; color: #dc2626; background: #fff5f5; }
.task-subtask-delete-button svg { width: 16px; height: 16px; }
.task-subtask-add-link { justify-self: start; padding: 8px 16px; border: 0; color: var(--color-accent-hover); background: transparent; cursor: pointer; font: inherit; font-size: 13px; text-align: left; }
.task-subtask-add-link:hover { text-decoration: underline; }
.task-subtask-employee { overflow: hidden; color: var(--color-text-primary); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.task-subtask-employee-avatar { display: grid; width: 24px; height: 24px; flex: 0 0 24px; place-items: center; overflow: hidden; border-radius: 50%; color: #fff; background: var(--color-accent-hover); font-size: 10px; font-weight: 700; line-height: 1; }
.task-subtask-employee-avatar img { display: block; width: 24px; height: 24px; max-width: 24px; max-height: 24px; border-radius: 50%; object-fit: cover; }
.task-subtask-employee-picker { min-width: 0; }
.task-subtask-employee-trigger { display: flex; width: 100%; min-height: 30px; align-items: center; padding: 2px; border: 1px solid transparent; border-radius: 6px; background: transparent; cursor: pointer; }
.task-subtask-employee-trigger:hover, .task-subtask-employee-trigger:focus-visible { border-color: var(--color-border); background: #fff; }
.task-subtask-employee-avatars { display: inline-flex; align-items: center; gap: 3px; min-width: 0; }
.task-subtask-employee-extra, .task-subtask-employee-empty { display: grid; min-width: 24px; height: 24px; place-items: center; border: 1px solid var(--color-border); border-radius: 50%; color: var(--color-accent-hover); background: #fff; font-size: 10px; font-weight: 700; }
.task-subtask-employee-popup { position: fixed; z-index: 2000; display: flex; width: 260px; box-sizing: border-box; flex-direction: column; gap: 5px; overflow: hidden; padding: 7px; border: 1px solid var(--color-border); border-radius: 8px; background: #fff; box-shadow: var(--shadow-dropdown); }
.task-subtask-employee-popup[hidden] { display: none; }
.task-subtask-employee-options { display: grid; gap: 2px; min-height: 0; overflow-y: auto; }
.task-subtask-employee-hint { color: var(--color-text-secondary); font-size: 11px; }
.task-subtask-employee-error { color: #dc2626; font-size: 11px; }
.task-subtask-employee-error[hidden] { display: none; }
.task-subtask-employee-option { display: flex; align-items: center; gap: 8px; padding: 5px; border-radius: 5px; cursor: pointer; font-size: 12px; }
.task-subtask-employee-option:hover, .task-subtask-employee-option:has(input:checked) { background: #eef7f8; }
.task-subtask-employee-option input { margin: 0; accent-color: var(--color-accent-hover); }
.task-subtask-employee-option .task-subtask-employee-avatar { flex-shrink: 0; }
.task-subtask-employee-apply { align-self: flex-end; }
.searchable-select-option--avatar { display: flex; align-items: center; gap: 9px; }
.searchable-select.task-subtask-employee-select { display: block; width: 30px; min-width: 30px; flex: 0 0 30px; }
.task-subtask-grid-row .searchable-select-trigger--avatar { display: grid; width: 30px; min-width: 30px; height: 30px; min-height: 30px; padding: 0; place-items: center; border-color: transparent; background: transparent; cursor: pointer; }
.task-subtask-grid-row .searchable-select-trigger--avatar::after { display: none; }
.task-subtask-grid-row .searchable-select-trigger--avatar:hover { border-color: var(--color-border); background: #fff; }
.searchable-select-popup--avatar-options { min-width: 220px; }
.task-detail-work-card { padding: 14px 16px; }
.task-detail-work-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.task-detail-work-values > div { display: grid; gap: 3px; }
.task-detail-work-values span { color: var(--color-text-secondary); font-size: 12px; }
.task-detail-work-values strong { font-size: 14px; }
.task-detail-work-note { margin: 12px 0 0; color: var(--color-text-secondary); font-size: 13px; }
.task-detail-info-card { padding: 14px 15px; }
.task-history-list { display: grid; gap: 0; max-height: 380px; overflow-y: auto; margin: 14px 0 0; padding: 0; list-style: none; }
.task-history-entry { position: relative; display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 9px; padding: 0 0 15px; color: var(--color-text-primary); font-size: 12px; }
.task-history-entry:last-child { padding-bottom: 0; }
.task-history-entry:not(:last-child)::before { position: absolute; top: 9px; bottom: 0; left: 4px; width: 1px; background: var(--color-border); content: ""; }
.task-history-marker { z-index: 1; width: 9px; height: 9px; margin-top: 3px; border: 2px solid #fff; border-radius: 50%; background: #00a98b; box-shadow: 0 0 0 1px #b8e8d9; }
.task-history-entry strong { display: block; line-height: 1.4; }
.task-history-entry p { margin: 2px 0 3px; color: var(--color-text-secondary); line-height: 1.45; overflow-wrap: anywhere; }
.task-history-entry time { color: var(--color-text-muted); font-size: 11px; }
.task-history-empty { margin: 14px 0 0; color: var(--color-text-secondary); font-size: 12px; }
.task-detail-info-list { display: grid; gap: 12px; margin: 15px 0 0; }
.task-detail-info-list > div { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); align-items: center; gap: 8px; font-size: 12px; }
.task-detail-info-list dt { color: var(--color-text-secondary); }
.task-detail-info-list dd { display: flex; min-width: 0; align-items: center; gap: 6px; margin: 0; color: var(--color-text-primary); overflow-wrap: anywhere; }
.task-detail-info-list dd a { color: var(--color-accent-hover); font-weight: 600; text-decoration: none; }
.task-detail-info-list dd a:hover { text-decoration: underline; }
.task-detail-info-list .task-detail-contract-start { padding-top: 12px; border-top: 1px solid var(--color-border); }
.task-detail-info-list .task-detail-contract-consumption { grid-template-columns: 1fr; gap: 5px; }
.task-detail-info-list .task-detail-contract-consumption dd { display: grid; gap: 6px; }
.task-detail-info-list .task-detail-contract-consumption .contract-progress { width: 100%; }
.task-detail-info-card .task-detail-status-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--color-border); }
.task-detail-info-card .task-detail-status-form .form-label { grid-column: 1 / -1; margin: 0; font-size: 12px; }
.task-detail-info-card .task-detail-status-form .form-input, .task-detail-info-card .task-detail-status-form .searchable-select { min-width: 0; width: 100%; }
.task-detail-assignee-list { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.task-detail-assignee-list li { display: flex; flex: 0 0 auto; }
.task-detail-assignee-list .task-assignee-avatar { width: 24px; height: 24px; flex-basis: 24px; }
.task-detail-info-progress { display: flex; width: 100%; align-items: center; gap: 5px; white-space: nowrap; }
.task-detail-info-progress .task-progress-track { min-width: 28px; height: 6px; }
.task-detail-follow-up, .task-detail-reminder { margin: 12px 0 0; color: var(--color-text-secondary); font-size: 13px; }
.task-attachments-heading { flex-wrap: wrap; }
.task-attachments-heading h2 { white-space: nowrap; }
.task-attachment-upload-form { margin-left: auto; }
.task-attachment-add { min-height: 29px; padding: 4px 8px; font-size: 12px; white-space: nowrap; }
.task-attachment-add span { color: var(--color-accent-hover); font-size: 15px; }
.task-attachment-list { display: grid; gap: 9px; margin: 13px 0 0; padding: 0; list-style: none; }
.task-attachment-item { display: grid; grid-template-columns: 21px minmax(0, 1fr) 25px 20px; align-items: center; gap: 6px; min-width: 0; }
.task-attachment-icon { display: grid; width: 20px; height: 23px; place-items: center; border-radius: 3px; color: #fff; background: #2580bb; font-size: 7px; font-weight: 700; letter-spacing: -.3px; }
.task-attachment-icon--image { background: #9257e8; }
.task-attachment-icon--archive { background: #f0a100; }
.task-attachment-icon--pdf { background: #f15b35; }
.task-attachment-meta { display: grid; min-width: 0; gap: 2px; }
.task-attachment-name { overflow: hidden; color: var(--color-text-primary); font-size: 11px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.task-attachment-meta small { overflow: hidden; color: var(--color-text-secondary); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.task-attachment-download { display: grid; width: 25px; height: 26px; place-items: center; border-radius: 5px; color: var(--color-text-secondary); }
.task-attachment-download:hover { color: var(--color-accent-hover); background: #f0f7f9; }
.task-attachment-download svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.task-attachment-actions { position: relative; }
.task-attachment-actions summary { display: grid; width: 20px; height: 26px; place-items: center; border-radius: 5px; color: var(--color-text-secondary); cursor: pointer; font-size: 18px; line-height: 1; list-style: none; }
.task-attachment-actions summary::-webkit-details-marker { display: none; }
.task-attachment-actions summary:hover { color: var(--color-accent-hover); background: #f0f7f9; }
.task-attachment-actions form { position: absolute; z-index: 10; top: 25px; right: 0; min-width: 110px; padding: 4px; border: 1px solid var(--color-border); border-radius: 6px; background: #fff; box-shadow: 0 8px 20px rgb(10 27 41 / 14%); }
.task-attachment-actions button { width: 100%; padding: 7px; border: 0; border-radius: 4px; color: var(--color-danger); background: transparent; cursor: pointer; font: inherit; font-size: 12px; text-align: left; }
.task-attachment-actions button:hover { background: #fff1f2; }
.task-attachments-empty { margin: 13px 0 0; color: var(--color-text-secondary); font-size: 12px; }
.task-attachments-usage { margin: 12px 0 0; padding-top: 9px; border-top: 1px solid var(--color-border); color: var(--color-text-secondary); font-size: 11px; }
.task-attachment-upload-error { margin: 9px 0 0; color: var(--color-danger); font-size: 12px; }
.task-attachment-upload-error[hidden] { display: none; }
@media (max-width: 1050px) {
  .task-detail-layout { grid-template-columns: 1fr; }
  .task-detail-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 0; }
}

@media (max-width: 640px) {
  .auth-card { padding: 28px 22px; }
  .management-topbar { min-height: 60px; padding: 0 16px; }
  .management-shell-topbar { gap: 10px; padding: 0 15px; }
  .management-main, .management-main--narrow, .management-main--contracts, .management-main--companies { width: min(100% - 28px, 1160px); padding-top: 22px; }
  .management-heading { align-items: flex-start; flex-direction: column; }
  .company-heading-actions { flex-wrap: wrap; }
  .contract-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-detail-drawer-panel { width: 100%; }
  .task-detail-drawer-header { padding: 0 15px; }
  .task-detail-drawer-body > .management-main { padding: 18px 14px; }
  .task-list-actions { flex-wrap: wrap; }
  .task-page-heading { align-items: flex-start; }
  .task-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-filter-toolbar { align-items: stretch; }
  .task-search-autocomplete, .task-search-box, .task-filter-toolbar .task-filter-select, .task-filter-toolbar .searchable-select, .task-label-filter { width: 100%; flex: 1 1 100%; }
  .task-label-filter .task-label-picker-options { width: 100%; }
  .task-filter-toolbar .searchable-select.task-responsible-filter { width: 100%; flex: 1 1 100%; }
  .task-filter-toolbar > .button { flex: 1 1 auto; }
  .task-table-footer { align-items: flex-start; flex-direction: column; }
  .task-subtask-item { grid-template-columns: 1fr auto; }
  .task-subtask-edit { grid-column: 1 / -1; }
  .task-detail-sidebar { grid-template-columns: 1fr; }
  .task-detail-topline { align-items: flex-start; flex-wrap: wrap; }
  .task-detail-edit-fields { grid-template-columns: 1fr; }
  .task-detail-fields-display { grid-template-columns: 1fr; }
  .task-detail-tabs { gap: 16px; overflow-x: auto; }
  .task-detail-layout .task-subtask-details { grid-template-columns: minmax(0, 1fr) auto; }
  .task-detail-layout .task-subtask-details span { grid-column: 1; grid-row: 2; }
  .task-detail-layout .task-subtask-details b { grid-column: 2; grid-row: 1 / span 2; }
}

@media (max-width: 760px) {
  .contract-periods-table, .contract-periods-table tbody, .contract-periods-table tr, .contract-periods-table td { display: block; width: 100%; }
  .contract-periods-table { table-layout: auto; }
  .contract-periods-table thead { display: none; }
  .contract-periods-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; margin: 10px 12px; padding: 7px 12px; border: 1px solid var(--color-border); border-radius: 9px; }
  .contract-periods-table td { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 8px 0; border: 0; }
  .contract-periods-table td::before { content: attr(data-label); color: var(--color-text-muted); font-size: 11px; font-weight: 700; }
  .contract-periods-table td:first-child { grid-column: 1 / -1; }
  .contract-periods-table td:last-child { grid-column: 1 / -1; }
  .contract-periods-table .contract-period-value { width: min(100%, 110px); }
  .contract-periods-scroll { overflow: hidden; }
  .company-maintenance-table,
  .company-maintenance-table tbody,
  .company-maintenance-table tr,
  .company-maintenance-table td { display: block; width: 100%; }
  .company-maintenance-table thead { display: none; }
  .company-maintenance-table tr { margin: 10px 12px; padding: 6px 12px; border: 1px solid var(--color-border); border-radius: 9px; }
  .company-maintenance-table td { display: grid; grid-template-columns: minmax(120px, .85fr) minmax(0, 1.15fr); align-items: center; gap: 10px; padding: 7px 0; border-top: 0; }
  .company-maintenance-table td::before { content: attr(data-label); color: var(--color-text-muted); font-size: 11px; font-weight: 700; }
  .company-maintenance-table-wrap { overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .task-detail-drawer-backdrop, .task-detail-drawer-panel { transition-duration: 1ms; }
}

@media (max-width: 700px) {
  .contract-table, .contract-table tbody, .contract-table tr, .contract-table td { display: block; width: 100%; }
  .contract-table { table-layout: auto; }
  .contract-table thead { display: none; }
  .contract-table tr { padding: 9px 14px; border-top: 1px solid #f0f2f5; }
  .contract-table td { display: grid; grid-template-columns: minmax(105px, .8fr) minmax(0, 1.2fr); align-items: center; gap: 12px; padding: 7px 0; border-top: 0; }
  .contract-table td::before { content: attr(data-label); color: var(--color-text-muted); font-size: 12px; font-weight: 700; letter-spacing: .2px; text-transform: uppercase; }
  .contract-table td:first-child { display: block; padding-top: 4px; }
  .contract-table td:first-child::before { display: none; }
  .contract-table .company-name-cell { display: grid; }
  .contract-table .contract-consumption { max-width: 160px; }
  .contract-table-scroll { overflow-x: visible; }
  .task-search { align-items: stretch; flex-direction: column; }
  .task-search .form-input, .task-search .searchable-select, .task-filter-select { flex-basis: auto; width: 100%; }
  .task-table, .task-table tbody, .task-table tr, .task-table td { display: block; width: 100%; }
  .task-table { min-width: 0; }
  .task-table thead { display: none; }
  .task-table tr { padding: 9px 14px; border-top: 1px solid #f0f2f5; }
  .task-table td { display: grid; grid-template-columns: minmax(105px, .8fr) minmax(0, 1.2fr); align-items: center; gap: 12px; padding: 7px 0; border-top: 0; white-space: normal; }
  .task-table td::before { content: attr(data-label); color: var(--color-text-muted); font-size: 12px; font-weight: 700; letter-spacing: .2px; text-transform: uppercase; }
  .task-table td:first-child { display: block; padding-top: 4px; }
  .task-table td:first-child::before { display: none; }
  .task-table--polished .task-assignee { justify-self: start; }
}

@media (max-width: 640px) {
  .management-heading > .button { width: 100%; }
  .management-user { display: none; }
  .form-card { padding: 18px 14px; }
  .settings-card { padding: 18px 14px; }
  .settings-test-form { grid-template-columns: 1fr; }
  .form-grid-two { grid-template-columns: 1fr; gap: 8px; }
  .task-form-select-grid { grid-template-columns: 1fr; gap: 8px; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .button { width: 100%; }
  .task-detail-heading-actions { width: 100%; flex-wrap: wrap; }
  .user-detail-card { grid-template-columns: 1fr; }
  .user-detail-list > div { grid-template-columns: 1fr; gap: 5px; }
  .company-list-toolbar { align-items: stretch; flex-direction: column; }
  .company-search { width: 100%; flex-wrap: wrap; }
  .company-search .form-input { flex: 1 1 100%; }
  .contract-company-search { width: 100%; }
  .company-detail-grid { grid-template-columns: 1fr; }
  .company-info-list > div { grid-template-columns: 1fr; gap: 5px; }
  .company-section-heading, .company-section-heading > div { align-items: flex-start; flex-direction: column; }
  .company-maintenance-form { grid-template-columns: 1fr; }
}
.task-detail-card-title .task-detail-card-icon--comments { color: #2861a5; border-color: #d8e6ff; background: linear-gradient(145deg, #f4f8ff, #e6efff); }
.task-comments-card { margin-bottom: 18px; }
.task-discussion-view-all { margin-left: auto; color: var(--color-accent-hover); font-size: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.task-discussion-view-all:hover { color: var(--color-accent); }
.task-comment-form--details { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--color-border); }
.task-comments-content { padding: 16px; }
.task-comment-form { display: grid; gap: 10px; }
.task-comment-form textarea.form-input { width: 100%; min-height: 80px; resize: vertical; line-height: 1.5; }
.task-comment-form > .button { justify-self: start; }
.task-comment-form-options { display: flex; flex-wrap: wrap; gap: 8px; }
.task-comment-form-options label { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid var(--color-border); border-radius: 8px; color: var(--color-text-primary); cursor: pointer; font-size: 13px; }
.task-comment-form-options label:has(input:checked) { border-color: #00a8b7; background: #e9f8fa; }
.task-comment-form-options input { accent-color: #009eb0; }
.task-comment-recipient { display: grid; gap: 7px; }
.task-comment-recipient[hidden] { display: none; }
.task-comment-help, .task-comments-empty { margin: 8px 0; color: var(--color-text-secondary); font-size: 13px; }
.task-comment-list { margin-top: 18px; }
.task-comment { display: flex; gap: 11px; padding: 15px 0; border-top: 1px solid var(--color-border); }
.task-comment-avatar { display: grid; width: 31px; height: 31px; flex: 0 0 31px; place-items: center; overflow: hidden; border-radius: 50%; background: #006b82; color: #fff; font-size: 11px; font-weight: 700; }
.task-comment-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.task-comment--client .task-comment-avatar { background: #dce9f4; color: #31536d; }
.task-comment-main { min-width: 0; flex: 1; }
.task-comment-delete-form { flex: 0 0 auto; align-self: flex-start; margin-left: auto; }
.task-comment-delete-link { display: grid; width: 32px; height: 32px; place-items: center; padding: 0; border: 1px solid var(--color-border); border-radius: 8px; color: #64748b; background: #fff; cursor: pointer; }
.task-comment-delete-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.task-comment-delete-link:hover { border-color: #fecaca; color: #dc2626; background: #fff5f5; }
.task-comment-delete-link:focus-visible { outline: 2px solid var(--color-danger); outline-offset: 3px; border-radius: 2px; }
.task-comment-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 9px; font-size: 12px; }
.task-comment-meta strong { color: var(--color-text-primary); }
.task-comment-meta time { color: var(--color-text-secondary); }
.task-comment-main p { margin: 6px 0 0; color: var(--color-text-secondary); font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap; }
.task-comment-attachment-picker { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.task-comment-attachment-picker .button { cursor: pointer; }
.task-comment-attachment-picker svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.task-comment-attachment-picker > span { color: var(--color-text-secondary); font-size: 12px; overflow-wrap: anywhere; }
.task-comment-attachment-picker > small { flex-basis: 100%; color: var(--color-text-muted); font-size: 11px; }
.task-comment-attachments { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0 0; padding: 0; list-style: none; }
.task-comment-attachments a { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 6px 9px; border: 1px solid var(--color-border); border-radius: 7px; color: var(--color-accent-hover); background: #f8fbfc; font-size: 12px; text-decoration: none; overflow-wrap: anywhere; }
.task-comment-attachments a:hover { border-color: #a9dce2; background: #effafb; }
.task-comment-attachments small { color: var(--color-text-muted); font-size: 10px; white-space: nowrap; }
.task-comment-attachments .task-comment-attachment-link--image { align-items: flex-start; padding: 5px; }
.task-comment-attachment-thumbnail { display: block; width: 112px; height: 76px; flex: 0 0 112px; border-radius: 4px; background: #edf3f6; object-fit: cover; }
.task-comment-attachments .task-comment-attachment-link--file { align-items: flex-start; padding: 5px; }
.task-comment-attachment-file-icon { display: flex; width: 112px; height: 76px; flex: 0 0 112px; align-items: center; justify-content: center; border-radius: 4px; background: #e9f7f9; color: #0796a8; }
.task-comment-attachment-file-sheet { position: relative; display: block; width: 44px; height: 54px; }
.task-comment-attachment-file-sheet svg { display: block; width: 44px; height: 54px; filter: drop-shadow(0 2px 2px rgba(29, 49, 62, .10)); }
.task-comment-attachment-file-sheet svg path:first-child { fill: #fff; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.task-comment-attachment-file-sheet svg path:not(:first-child) { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.task-comment-attachment-file-badge { position: absolute; bottom: 5px; left: -4px; display: block; min-width: 38px; padding: 3px 4px; border-radius: 3px; background: #0796a8; color: #fff; font-size: 9px; font-weight: 800; line-height: 1; text-align: center; letter-spacing: .03em; box-shadow: 0 1px 3px rgba(29, 49, 62, .14); }
.task-comment-attachment-file-icon--pdf { background: #fff0ed; color: #e34839; }
.task-comment-attachment-file-icon--pdf .task-comment-attachment-file-badge { background: #e34839; }
.task-comment-attachment-file-icon--office { background: #edf3ff; color: #4274c5; }
.task-comment-attachment-file-icon--office .task-comment-attachment-file-badge { background: #4274c5; }
.task-comment-attachment-file-icon--archive { background: #fff7e6; color: #c48716; }
.task-comment-attachment-file-icon--archive .task-comment-attachment-file-badge { background: #c48716; }
.task-comment-attachment-label { display: flex; min-width: 0; flex-direction: column; gap: 5px; align-self: center; overflow-wrap: anywhere; }
.task-comment-scope { padding: 3px 7px; border-radius: 50px; font-size: 11px; }
.task-comment-scope--internal { background: #f0f2f5; color: #526170; }
.task-comment-scope--client { background: #def7f3; color: #006a68; }
.task-client-body { min-height: 100vh; margin: 0; background: #f3f7fa; color: #0b2540; }
.task-client-page { width: min(100% - 32px, 820px); margin: 0 auto; padding: 28px 0 60px; }
.task-client-page--with-contract { width: min(100% - 32px, 1160px); }
.task-client-layout--with-contract { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 18px; }
.task-client-primary { min-width: 0; }
.task-client-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; color: #5c7188; font-size: 13px; }
.task-client-brand { color: #006b82; font-size: 20px; font-weight: 800; letter-spacing: -.04em; }
.task-client-brand-logo { display: block; width: 450px; max-width: 45%; height: 126px; object-fit: contain; object-position: left center; }
.task-client-summary, .task-client-conversation { margin-bottom: 16px; padding: 24px; border: 1px solid #dfe8ef; border-radius: 12px; background: #fff; }
.task-client-eyebrow { color: #007a91; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.task-client-summary h1 { margin: 9px 0 16px; font-size: clamp(22px, 4vw, 30px); line-height: 1.2; }
.task-client-facts { display: flex; flex-wrap: wrap; gap: 9px 24px; color: #586b80; font-size: 13px; }
.task-client-facts strong { color: #10283f; }
.task-client-description { margin: 18px 0 0; color: #50647b; line-height: 1.55; white-space: pre-wrap; }
.task-client-conversation h2 { margin: 0; font-size: 17px; }
.task-client-conversation .task-comment-list { margin: 15px 0 22px; }
.task-client-conversation .task-comment-form { padding-top: 18px; border-top: 1px solid #dfe8ef; }
.task-client-sidebar { position: sticky; top: 24px; display: grid; align-self: start; gap: 14px; }
.task-client-contract { padding: 23px; border: 1px solid #dfe8ef; border-radius: 12px; background: #fff; }
.task-client-attachments { padding: 17px; border: 1px solid #dfe8ef; border-radius: 12px; background: #fff; }
.task-client-attachments h2 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 15px; }
.task-client-attachments-icon { display: grid; width: 29px; height: 29px; flex: 0 0 29px; place-items: center; border: 1px solid #ffdfb9; border-radius: 8px; background: #fff6e8; color: #d87a22; }
.task-client-attachments-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.task-client-attachments .task-attachment-item { grid-template-columns: 21px minmax(0, 1fr) 25px; }
.task-client-contract-logo { display: block; width: 150px; max-width: 100%; height: 92px; margin: 0 auto 14px; object-fit: contain; object-position: center; }
.task-client-contract h2 { margin: 12px 0 5px; font-size: 17px; }
.task-client-contract-type { margin: 0 0 21px; color: #007d94; font-size: 13px; font-weight: 700; }
.task-client-contract-period { display: grid; gap: 5px; padding-bottom: 17px; border-bottom: 1px solid #e7edf2; font-size: 12px; }
.task-client-contract-period span { color: #5c7188; }
.task-client-contract-period strong { color: #10283f; font-weight: 600; }
.task-client-contract-figures { display: grid; gap: 15px; margin: 19px 0 21px; }
.task-client-contract-figures div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.task-client-contract-figures dt { color: #5c7188; }
.task-client-contract-figures dd { margin: 0; color: #10283f; font-weight: 700; white-space: nowrap; }
.task-client-contract-figures .is-overrun { color: #c53737; }
.task-client-contract-progress { display: grid; gap: 8px; padding-top: 17px; border-top: 1px solid #e7edf2; }
.task-client-contract-progress > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 12px; }
.task-client-contract-progress > div span { color: #5c7188; }
.task-client-contract-progress > div strong { color: #10283f; }
.task-client-contract-track { display: block; height: 7px; overflow: hidden; border-radius: 50px; background: #e8eef2; }
.task-client-contract-track > span { display: block; height: 100%; border-radius: inherit; background: #00a98b; }
.task-client-contract-track.is-overrun > span { background: #dc594f; }
.task-client-contract-note { margin: 15px 0 0; color: #5c7188; font-size: 13px; line-height: 1.5; }
@media (max-width: 900px) { .task-client-layout--with-contract { grid-template-columns: 1fr; } .task-client-sidebar { position: static; } }
@media (max-width: 600px) { .task-client-summary, .task-client-conversation, .task-client-contract, .task-client-attachments { padding: 18px; } }
@media (max-width: 1100px) {
  .company-overview-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .company-label-chart-body { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .company-overview-kpis { grid-template-columns: 1fr; }
  .company-label-chart { padding: 16px; }
  .company-label-chart-heading { flex-wrap: wrap; }
  .company-label-chart-summary { flex-wrap: wrap; justify-content: center; }
}

.timesheet-main { display: grid; width: calc(100% - 48px); max-width: none; gap: 16px; }
.timesheet-heading h1 { margin: 0 0 2px; color: #102744; font-size: 27px; line-height: 1.2; letter-spacing: -.55px; }
.timesheet-heading p { margin: 0; color: #4f6380; font-size: 14px; }
.timesheet-toolbar { display: grid; grid-template-columns: minmax(270px, 1fr) auto; align-items: center; gap: 24px; }
.timesheet-toolbar--employee { grid-template-columns: 1fr; justify-items: end; }
.timesheet-employee-navigation { display: grid; grid-template-columns: 42px minmax(150px, 1fr) 42px; width: min(100%, 330px); min-height: 40px; overflow: hidden; border: 1px solid #e0e8f1; border-radius: 9px; background: #fff; }
.timesheet-employee-name { display: grid; min-width: 0; place-items: center; padding: 0 12px; border-right: 1px solid #e9eef4; border-left: 1px solid #e9eef4; color: #263b5c; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.timesheet-week-navigation { display: grid; grid-template-columns: 42px minmax(235px, 1fr) 42px; width: min(100%, 382px); min-height: 40px; overflow: hidden; border: 1px solid #e0e8f1; border-radius: 9px; background: #fff; }
.timesheet-week-arrow { display: grid; place-items: center; color: #24416a; }
.timesheet-week-arrow:hover { background: #f3f7fb; }
.timesheet-week-arrow.is-disabled { color: #b8c3d0; cursor: default; }
.timesheet-week-arrow.is-disabled:hover { background: transparent; }
.timesheet-week-arrow svg { width: 19px; height: 19px; stroke-width: 2.4; }
.timesheet-week-label { display: flex; min-width: 0; align-items: center; gap: 11px; padding: 0 14px; border-right: 1px solid #e9eef4; border-left: 1px solid #e9eef4; color: #263b5c; font-size: 13px; white-space: nowrap; }
.timesheet-week-label svg { width: 19px; height: 19px; flex: 0 0 auto; color: #233f67; }
.timesheet-week-label span { overflow: hidden; text-overflow: ellipsis; }
.timesheet-export-panel { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 16px; border: 1px solid #e1e8f0; border-radius: 10px; background: #fff; }
.timesheet-export-panel > strong { color: #263b5c; font-size: 13px; }
.timesheet-export-form { display: flex; align-items: end; gap: 10px; }
.timesheet-export-form label { display: grid; gap: 4px; color: #60738d; font-size: 11px; font-weight: 600; }
.timesheet-export-form .form-input { width: 155px; min-height: 36px; padding: 6px 9px; font-size: 12px; }
.timesheet-export-form .button { min-height: 36px; }
.timesheet-table-card { overflow: hidden; border: 1px solid #e1e8f0; border-radius: 10px; background: #fff; box-shadow: 0 2px 7px rgb(20 42 70 / 4%); }
.timesheet-table-scroll { width: 100%; overflow-x: auto; }
.timesheet-table { width: 100%; min-width: 900px; table-layout: fixed; border-collapse: separate; border-spacing: 0; color: #162a49; font-size: 13px; }
.timesheet-table th, .timesheet-table td { height: 34px; padding: 6px 10px; border-right: 1px solid #edf1f5; border-bottom: 1px solid #edf1f5; }
.timesheet-table tr > :last-child { border-right: 0; }
.timesheet-table thead th { height: 50px; background: #fff; font-size: 13px; font-weight: 700; }
.timesheet-table .timesheet-first-column { width: 37%; min-width: 265px; padding-left: 17px; text-align: left; }
.timesheet-sort-mark { margin-left: 3px; color: #8797aa; font-size: 15px; }
.timesheet-day-column { width: 10.5%; text-align: center; }
.timesheet-day-column span, .timesheet-day-column small { display: block; }
.timesheet-day-column small { margin-top: 1px; color: #687d98; font-size: 11px; font-weight: 500; }
.timesheet-table .is-today { background: #e8f4ff; }
.timesheet-table thead .is-today { color: #1474dc; }
.timesheet-company-row > * { height: 36px; background: #f3f6f9; }
.timesheet-table .timesheet-project-name { padding-left: 12px; text-align: left; font-size: 14px; }
.timesheet-project-copy { display: flex; align-items: center; gap: 8px; }
.timesheet-collapse-button { display: grid; width: 15px; height: 22px; flex: 0 0 15px; place-items: center; padding: 0; border: 0; background: transparent; color: #344b69; cursor: pointer; }
.timesheet-collapse-button svg { width: 14px; height: 14px; transition: transform .15s ease; }
.timesheet-collapse-button[aria-expanded="false"] svg { transform: rotate(-90deg); }
.timesheet-project-dot { width: 14px; height: 14px; flex: 0 0 14px; border-radius: 50%; background: var(--timesheet-group-color); }
.timesheet-company-total { font-weight: 700; text-align: center; white-space: nowrap; }
.timesheet-task-row > * { height: 34px; text-align: center; white-space: nowrap; }
.timesheet-table .timesheet-task-name { padding-left: 33px; text-align: left; font-size: 12px; font-weight: 400; }
.timesheet-task-copy { display: flex; min-width: 0; align-items: center; gap: 7px; }
.timesheet-task-name a { overflow: hidden; color: #29405f; text-overflow: ellipsis; }
.timesheet-task-name a:hover { color: #007eae; text-decoration: underline; }
.timesheet-task-mark { width: 2px; height: 15px; flex: 0 0 2px; background: var(--timesheet-task-color); }
.timesheet-table tfoot th, .timesheet-table tfoot td { height: 43px; border-top: 1px solid #e0e7ef; border-bottom: 0; background: #f7f9fb; font-weight: 700; }
.timesheet-table tfoot th { padding-left: 17px; text-align: left; }
.timesheet-table tfoot td { text-align: center; white-space: nowrap; }
.timesheet-table tfoot .is-today { background: #e8f4ff; }
.timesheet-table .timesheet-empty { height: 110px; color: #72829a; text-align: center; }
.timesheet-table .timesheet-week-total { width: 10.5%; background: #f5f8fb; font-weight: 700; text-align: center; white-space: nowrap; }
.timesheet-table thead .timesheet-week-total { background: #fff; }
.timesheet-table tfoot .timesheet-week-total { background: #edf2f7; }
@media (max-width: 900px) {
  .timesheet-toolbar { grid-template-columns: 1fr; gap: 10px; }
  .timesheet-week-navigation { width: min(100%, 382px); }
  .timesheet-toolbar:not(.timesheet-toolbar--employee) { justify-items: end; }
  .timesheet-export-panel { align-items: flex-start; flex-direction: column; }
  .timesheet-export-form { width: 100%; flex-wrap: wrap; }
}
@media (max-width: 540px) {
  .timesheet-main { width: calc(100% - 28px); }
  .timesheet-heading h1 { font-size: 24px; }
  .timesheet-employee-navigation { width: min(100%, 330px); justify-self: start; }
  .timesheet-week-navigation { grid-template-columns: 38px minmax(0, 1fr) 38px; width: 100%; }
  .timesheet-week-label { gap: 7px; padding: 0 8px; font-size: 12px; }
  .timesheet-export-form label { flex: 1 1 135px; }
  .timesheet-export-form .form-input { width: 100%; }
}

.attendance-punch-form { display: inline-flex; margin: 0; }
.attendance-punch { display: inline-flex; min-height: 34px; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid #dbe4eb; border-radius: 8px; background: #fff; color: #263b5c; font-size: 12px; font-weight: 650; white-space: nowrap; cursor: pointer; }
.attendance-punch:hover { background: #f8fafc; }
.attendance-punch-dot { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: #e24848; box-shadow: 0 0 0 3px rgb(226 72 72 / 12%); }
.attendance-punch--working .attendance-punch-dot { background: #19a76f; box-shadow: 0 0 0 3px rgb(25 167 111 / 13%); }
.presence-main { display: grid; width: calc(100% - 48px); max-width: none; gap: 16px; }
.presence-export-copy { display: grid; gap: 3px; }
.presence-export-copy strong { color: #263b5c; font-size: 13px; }
.presence-export-copy small { color: #71819a; font-size: 11px; }
.presence-heading h1 { margin: 0 0 2px; color: #102744; font-size: 27px; line-height: 1.2; letter-spacing: -.55px; }
.presence-heading p { margin: 0; color: #4f6380; font-size: 14px; }
.presence-week-navigation { display: grid; grid-template-columns: 42px minmax(220px, 1fr) 42px; width: min(100%, 380px); min-height: 40px; justify-self: end; overflow: hidden; border: 1px solid #e0e8f1; border-radius: 9px; background: #fff; }
.presence-week-arrow { display: grid; place-items: center; color: #24416a; }
.presence-week-arrow:hover { background: #f3f7fb; }
.presence-week-arrow svg { width: 19px; height: 19px; stroke: currentColor; stroke-width: 2.4; }
.presence-week-label { display: flex; min-width: 0; align-items: center; gap: 10px; padding: 0 12px; border-right: 1px solid #e9eef4; border-left: 1px solid #e9eef4; color: #263b5c; font-size: 13px; white-space: nowrap; }
.presence-week-label svg { width: 19px; height: 19px; flex: 0 0 auto; stroke: currentColor; }
.presence-week-label span { overflow: hidden; text-overflow: ellipsis; }
.presence-table-card { overflow: hidden; border: 1px solid #e1e8f0; border-radius: 10px; background: #fff; box-shadow: 0 2px 7px rgb(20 42 70 / 4%); }
.presence-table-scroll { width: 100%; overflow-x: auto; }
.presence-table { width: 100%; min-width: 1050px; table-layout: fixed; border-collapse: separate; border-spacing: 0; color: #172d4d; font-size: 12px; }
.presence-table th, .presence-table td { padding: 0; border-right: 1px solid #e8edf2; border-bottom: 1px solid #e8edf2; }
.presence-table tr > :last-child { border-right: 0; }
.presence-table thead th { background: #fff; }
.presence-employee-heading { width: 195px; min-width: 195px; padding: 0 12px !important; text-align: left; vertical-align: middle; }
.presence-employee-heading > span { display: inline-block; }
.presence-employee-heading svg { display: inline-block; width: 16px; height: 16px; float: right; stroke: #183253; }
.presence-day-heading { height: 48px; text-align: center; vertical-align: middle; }
.presence-day-heading span, .presence-day-heading small { display: block; }
.presence-day-heading span { font-size: 12px; font-weight: 700; }
.presence-day-heading small { margin-top: 1px; color: #667d99; font-size: 11px; font-weight: 500; }
.presence-time-heading { height: 24px; padding: 0 8px !important; }
.presence-day-heading.is-today, .presence-time-heading.is-today { background: #eaf5ff; }
.presence-time-axis { display: grid; grid-template-columns: repeat(6, 1fr); align-items: center; color: #607590; font-size: 9px; font-weight: 500; }
.presence-time-axis span:last-child { text-align: right; }
.presence-employee-row { height: 54px; }
.presence-employee-cell { width: 195px; min-width: 195px; padding: 0 10px !important; background: #fff; text-align: left; }
.presence-employee-info { display: flex; align-items: center; gap: 9px; }
.presence-avatar { display: block; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; background: #e6eef5; object-fit: cover; }
.presence-avatar--initials { display: grid; place-items: center; color: #45617d; font-size: 11px; font-weight: 700; }
.presence-employee-copy { display: grid; min-width: 0; gap: 1px; }
.presence-employee-copy strong, .presence-employee-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.presence-employee-copy strong { color: #192f4e; font-size: 12px; font-weight: 700; }
.presence-employee-copy small { color: #73859c; font-size: 11px; }
.presence-day-cell { position: relative; height: 54px; padding: 0 7px !important; background: #fff; }
.presence-day-cell.is-today { background: #eef7ff; }
.presence-day-track { position: relative; height: 34px; overflow: hidden; background-image: linear-gradient(to right, transparent calc(100% - 1px), #e8eef4 calc(100% - 1px)); background-size: 20% 100%; }
.presence-interval { position: absolute; top: 4px; box-sizing: border-box; display: flex; height: 27px; align-items: center; justify-content: center; overflow: hidden; padding: 0 4px; border: 1px solid #92e5be; border-radius: 5px; background: #c9f5df; color: #315e4c; font-size: 9px; font-weight: 650; white-space: nowrap; }
.presence-interval.is-open { overflow: visible; padding: 0; border-color: #56d39a; background: #b2f0d0; box-shadow: 0 0 0 1px rgb(29 165 105 / 8%); }
.presence-interval.is-open .presence-interval-text { position: absolute; top: 2px; left: calc(100% + 4px); display: grid; height: 21px; place-items: center; padding: 0 5px; border: 1px solid #92e5be; border-radius: 4px; background: #f3fcf7; }
.presence-interval.is-open.is-label-before .presence-interval-text { right: calc(100% + 4px); left: auto; }
.presence-interval--editable { cursor: pointer; }
.presence-interval--editable:hover { background: #a8edcd; border-color: #4bc78e; }
.presence-edit-dialog { width: min(430px, calc(100% - 28px)); max-width: none; padding: 0; border: 1px solid #dce5ed; border-radius: 14px; color: #182c4a; background: #fff; box-shadow: 0 24px 60px rgb(17 37 58 / 22%); }
.presence-edit-dialog::backdrop { background: rgb(16 31 49 / 45%); }
.presence-edit-dialog form { display: grid; gap: 15px; padding: 25px; }
.presence-edit-dialog h2 { margin: 0; font-size: 19px; }
.presence-edit-dialog p { margin: -8px 0 3px; color: #5d708b; font-size: 13px; }
.presence-edit-dialog label { display: grid; gap: 6px; color: #273d5c; font-size: 13px; font-weight: 650; }
.presence-edit-dialog .form-input { width: 100%; }
.presence-edit-dialog small { color: #71839b; font-size: 12px; }
.presence-edit-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 6px; }
.presence-no-results[hidden] { display: none; }
@media (max-width: 900px) {
  .presence-main { width: calc(100% - 28px); }
  .management-shell-topbar .management-topbar-actions { gap: 7px; }
}
@media (max-width: 600px) {
  .presence-heading h1 { font-size: 24px; }
  .presence-week-navigation { width: min(100%, 380px); justify-self: start; }
  .attendance-punch { min-height: 32px; gap: 6px; padding: 0 8px; font-size: 11px; }
}
@media (max-width: 900px) {
  .admin-dashboard-grid { gap: 12px; }
  .dashboard-task-panel, .dashboard-todo-panel { min-height: 0; }
}
@media (max-width: 680px) {
  .admin-dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .dashboard-team-panel { grid-column: auto; }
  .dashboard-page-heading { align-items: flex-start; }
  .dashboard-page-heading h1 { font-size: 25px; }
  .dashboard-date { font-size: 11px; }
  .admin-dashboard-panel { padding: 14px 13px 11px; }
  .dashboard-contract-panel { padding: 0 0 4px; }
  .dashboard-contract-heading { min-height: 80px; flex-wrap: wrap; gap: 8px; padding: 11px 12px; }
  .dashboard-contract-heading-copy { flex-basis: 120px; }
  .dashboard-contract-heading-icon { width: 38px; height: 38px; }
  .dashboard-contract-heading-copy h2 { font-size: 14px; }
  .dashboard-contract-heading-copy p { font-size: 10px; }
  .dashboard-contract-count { min-width: 36px; }
  .dashboard-contract-count strong { font-size: 22px; }
  .dashboard-contract-all { gap: 3px; font-size: 10px; }
  .dashboard-contract-overrun-total { min-width: 95px; padding: 5px 7px; }
  .dashboard-contract-overrun-total strong { font-size: 14px; }
  .dashboard-contract-list li { grid-template-columns: 42px minmax(0, 1fr) 50px; grid-template-rows: auto auto; gap: 5px 8px; min-height: 0; padding: 10px 12px; }
  .dashboard-contract-list .dashboard-contract-row--overrun { grid-template-columns: 42px minmax(0, 1fr) 50px; grid-template-rows: auto auto auto; }
  .dashboard-contract-logo { grid-row: 1 / 3; width: 38px; height: 38px; }
  .dashboard-contract-row--overrun .dashboard-contract-logo { grid-row: 1 / 4; }
  .dashboard-contract-name { grid-column: 2; grid-row: 1; }
  .dashboard-contract-usage { grid-column: 2; grid-row: 2; grid-template-columns: auto minmax(50px, 1fr); align-items: center; gap: 6px; font-size: 10px; }
  .dashboard-contract-progress { height: 6px; }
  .dashboard-contract-delta { grid-column: 3; grid-row: 1; min-height: 34px; font-size: 10px; }
  .dashboard-contract-row-overrun { grid-column: 2; grid-row: 3; text-align: left; }
  .dashboard-contract-delta small { font-size: 8px; }
  .dashboard-contract-ring { grid-column: 3; grid-row: 2; width: 34px; height: 34px; justify-self: center; }
  .dashboard-contract-row--overrun .dashboard-contract-ring { grid-row: 2 / 4; }
  .dashboard-contract-ring::before { inset: 4px; }
  .dashboard-contract-ring strong { font-size: 8px; }
  .dashboard-contract-column-head { display: none; }
  .dashboard-activity-list li { gap: 7px; }
  .dashboard-status { padding: 4px 5px; }
  .dashboard-activity-list time { display: none; }
  .dashboard-task-heading-actions { gap: 7px; }
  .dashboard-scope-form { width: 120px; }
}
