/* Daybook by STAAR UNIADVISE. 1.12 visual refresh; retained functional layouts remain. */
:root { --ink:#23334d; --ink-soft:#40516c; --paper:#fff; --canvas:#fff; --line:#dce3ee; --muted:#596980; --green:#287463; --green-soft:#eaf7f1; --coral:#f17469; --danger:#b92c49; --shadow:0 8px 24px #245bdd08; --radius:12px; --brand:#245bdd; }
body { background:var(--canvas); color:var(--ink); }
body[data-page="login"] { background:#fff; }
button,input,select,textarea { font-family:inherit; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible { outline:3px solid #456eaa; outline-offset:3px; }
button:disabled { cursor:wait; opacity:.65; }
.topbar { background:#fff; border-bottom:1px solid var(--line); padding-block:13px; }
.brand { gap:12px; font-family:"Avenir Next","Segoe UI",system-ui,sans-serif; font-weight:750; font-size:29px; letter-spacing:-1.6px; color:var(--brand); }
.brand-mark { background:transparent; border-radius:0; width:40px; height:40px; }
.brand-mark img { display:block; width:100%; height:100%; }
.brand .brand-copy:last-child { display:grid; gap:3px; line-height:1.05; text-transform:lowercase; }
.brand-copy small { color:#596980; font:600 8px/1.7 system-ui,sans-serif; letter-spacing:1.6px; text-transform:uppercase; }
.corporate-logo { display:block; background:transparent; border-radius:0; padding:0; width:185px; height:auto; }
.topbar .corporate-logo { margin-left:10px; }
.nav-link.active { background:#edf3ff; color:#245bdd; }
.nav-link:hover:not(.active) { background:#f4f6fb; }
.avatar { background:#f0edff; }
.primary-button { background:var(--brand); color:#fff; border-color:var(--brand); min-height:50px; border-radius:12px; box-shadow:0 5px 12px #147ab018; }
.primary-button:hover { background:#194ac0; }
.secondary-button { background:#fff; color:var(--ink); border-color:#ced3da; border-radius:10px; }
.stop-button { background:#b92c49; color:white; min-height:58px; border-radius:13px; }
.stop-button:hover { background:#9e2340; }
.eyebrow { color:#bd3a50; font-size:10px; letter-spacing:1.8px; }
.auth-layout { max-width:1140px; min-height:100svh; margin:auto; padding:64px 42px; gap:clamp(40px,8vw,110px); align-items:center; background:#fff; }
.auth-intro { position:relative; }
.auth-intro .auth-brand { font-size:51px; margin-bottom:40px; letter-spacing:-2.8px; }
.auth-brand .brand-mark { width:58px; height:58px; }
.auth-brand .brand-copy small { font-size:9px; letter-spacing:2px; }
.auth-intro h1 { font-size:clamp(44px,5.3vw,70px); line-height:1.04; letter-spacing:-3px; max-width:540px; margin-bottom:22px; }
.auth-intro > p:not(.eyebrow) { max-width:410px; color:#626c78; line-height:1.8; font-size:16px; }
.brand-credit { display:flex; flex-direction:column; align-items:flex-start; gap:10px; margin-top:42px; }
.brand-credit > span { font-size:9px; color:var(--muted); text-transform:uppercase; letter-spacing:1.9px; }
.brand-credit .corporate-logo { width:255px; padding:0; }
.auth-card { border:1px solid #e0e9ed; border-top:3px solid #61b4da; border-radius:24px; background:#ffffff; padding:34px; box-shadow:0 18px 55px #2c81ab0d; }
.auth-card h2 { font-family:system-ui,sans-serif; font-size:22px; font-weight:650; letter-spacing:-.5px; margin-bottom:26px; }
.auth-card input { background:#fff; border:1px solid #cdd1d5; border-radius:9px; min-height:48px; }
.auth-card label { font-size:12px; color:#34465e; font-weight:650; }
.auth-card .fine-print { font-size:12px; line-height:1.7; }
.auth-card .primary-button { margin-top:12px; }
.tracker-layout,.admin-layout,.personal-layout { max-width:1480px; }
.page-heading h1,.tracker-heading h1 { letter-spacing:-1.5px; }
.activity-card { background:#fff; border:1px solid #dadfdc; border-radius:16px; box-shadow:0 3px 9px #14264103; min-height:112px; transition:border-color .15s,transform .15s; }
.activity-card:hover { border-color:#70869d; transform:translateY(-2px); box-shadow:0 6px 18px #1426410b; }
.activity-mark { border-radius:10px; font-family:system-ui,sans-serif; font-weight:750; }
.running-card { background:#fff; color:var(--ink); border:1px solid #dbe9ef; border-top:4px solid #59add5; box-shadow:var(--shadow); border-radius:18px; }
.running-label,.running-label small,.time-note-area label,.time-note-area label small,.stage-area > span,.stage-area > span small,.gps-live-status,.gps-live-status strong { color:var(--ink-soft); }
.timer-warning { color:#a93c39; }
.time-note-area { border-color:var(--line); background:#f5f8ff; }
.time-note-area textarea { background:white; color:var(--ink); border-color:#c4d7e2; }
.time-note-area textarea::placeholder { color:var(--muted); }
.time-note-area textarea:focus { outline:2px solid #245bdd; }
.stage-chip { color:var(--ink); border-color:#c4d7e2; background:#f5f8ff; }
.recording-panel,.tagged-agents { color:var(--ink); background:#f5f8ff; border-color:var(--line); }
.recording-panel small { color:var(--ink-soft); }
.running-clock { color:#245bdd; font-variant-numeric:tabular-nums; letter-spacing:-2px; }
.running-since { color:var(--muted); }
.report-card,.kpi-card,.today-card { background:#fff; border:1px solid #dce3ee; box-shadow:none; border-radius:16px; }
.kpi-card.highlight { background:#edf3ff; color:#245bdd; border-color:#d5e2ff; }
.kpi-card.highlight small,.kpi-card.highlight span { color:#476f84; }
.report-activity-card { border-color:#dce3ee; background:#fff; }
.notice { border-radius:12px; }
.notice.warning,.recovery-panel { color:#714620; background:#fff7e9; border:1px solid #ead6b6; }
.recovery-panel { margin-bottom:18px; padding:18px; }
.recovery-panel p { font-size:12px; line-height:1.6; margin:7px 0 12px; }
.recovery-row { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:10px; font-size:12px; }
.recovery-row span { margin-right:auto; }
.mobile-nav { background:#fff; border-top:1px solid var(--line); }
.mobile-nav a.active { color:#a92435; background:#f9e9e9; }
.app-footer { max-width:1400px; margin:24px auto 0; padding:20px 28px 30px; display:flex; justify-content:space-between; gap:14px; color:#77808a; font-size:10px; letter-spacing:.4px; }
@media(max-width:1100px) { .topbar .corporate-logo { display:none; } }
@media(max-width:760px) {
  .auth-layout { min-height:auto; display:block; padding:32px 22px 48px; }
  .auth-intro .auth-brand { margin-bottom:28px; font-size:41px; }
  .auth-brand .brand-mark { width:45px; height:45px; }
  .auth-intro h1 { font-size:44px; letter-spacing:-2px; }
  .auth-intro > p:not(.eyebrow) { font-size:14px; line-height:1.65; }
  .brand-credit { margin:22px 0 30px; }
  .brand-credit .corporate-logo { width:218px; }
  .auth-card { padding:26px 22px; }
  .topbar { padding:12px 18px; min-height:68px; }
  .brand { font-size:25px; }
  .topbar .brand-mark { width:36px; height:36px; }
  .activity-card { min-height:108px; }
  .app-footer { padding-bottom:95px; flex-direction:column; font-size:10px; }
  .running-clock { font-size:clamp(42px,13vw,68px); }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; animation:none!important; transition:none!important; } }
/* Crisp white identity: colour is a cue, not a tint over the whole screen. */
h1,h2,h3 { font-family:inherit; }
h1,h2 { font-weight:750; }
input,select,textarea { accent-color:var(--brand); }
button:disabled { cursor:not-allowed; }
.topbar { backdrop-filter:none; }
.brand { gap:9px; font-weight:800; }
.brand-mark { width:48px; height:48px; }
.brand-copy small { font-weight:700; }
.topbar .corporate-logo { margin-left:16px; padding-left:20px; border-left:1px solid var(--line); width:195px; }
.nav-link { border-radius:8px; }
.sync-pill { background:#fff; }
.primary-button { min-height:48px; border-radius:8px; box-shadow:none; }
.secondary-button { border-radius:8px; border-color:#c9d3e3; }
.secondary-button:hover { background:#f3f6ff; border-color:#9db3df; }
.stop-button { border-radius:10px; }
.eyebrow { color:var(--muted); letter-spacing:1.5px; }
.auth-intro .auth-brand { font-size:49px; }
.auth-brand .brand-mark { width:78px; height:78px; }
.auth-intro h1 { font-weight:800; font-size:clamp(44px,5.4vw,68px); line-height:1.07; }
.auth-intro h1 span { color:var(--brand); }
.auth-intro > p:not(.eyebrow) { max-width:390px; color:var(--muted); }
.auth-colour-notes { display:flex; gap:10px; margin:28px 0 34px; }
.auth-colour-notes span { padding:9px 16px; font-weight:700; font-size:13px; border-radius:7px; color:#2553ac; background:#eaf1ff; transform:rotate(-4deg); }
.auth-colour-notes span:nth-child(2) { color:#9f3b50; background:#ffedf0; transform:rotate(3deg); }
.auth-colour-notes span:nth-child(3) { color:#61409a; background:#f0eaff; transform:rotate(-2deg); }
.brand-credit { margin-top:32px; }
.auth-card { position:relative; border:1px solid var(--line); border-radius:16px; padding:36px; box-shadow:10px 10px 0 #edf3ff; }
.auth-card::before { content:""; position:absolute; left:36px; top:-3px; width:54px; height:5px; background:#f17469; border-radius:2px; }
.auth-card h2 { font-size:27px; font-weight:750; letter-spacing:-.8px; margin-bottom:25px; }
.auth-card input { border-color:#c9d3e3; border-radius:7px; }
.auth-card label { font-size:13px; }
.auth-link { color:var(--brand); }
.activity-card { border-color:var(--line); border-radius:12px; box-shadow:none; min-height:104px; }
.activity-card:hover { border-color:#7e9ee8; box-shadow:0 5px 0 #edf3ff; }
.activity-mark { border-radius:9px; }
.manual-entry-button { border-radius:12px; }
.running-card { border-color:#c8d9fc; border-top-color:var(--brand); border-radius:12px; }
.report-card,.kpi-card,.today-card { border-radius:12px; }
.kpi-card.highlight { color:#194fc9; }
.kpi-card.highlight small,.kpi-card.highlight span { color:#405b8a; }
.scope-time-summary .kpi-card:first-child { background:#f5f1ff; border-color:#e8defc; }
.call-stats.structured .call-stat.primary { background:#edf3ff; }
.notice.warning,.recovery-panel { color:#773d28; background:#fff1ed; border-color:#f1c9bb; }
.mobile-nav a.active { color:var(--brand); background:#edf3ff; }
/* One task per tab. Keep form nodes mounted so drafts and selections survive. */
.admin-dashboard-intro { display:flex; flex-direction:row; align-items:center; gap:24px; margin-bottom:28px; }
.admin-dashboard-intro > div:first-child { flex:1; }
.admin-dashboard-intro h1 { font-size:clamp(28px,3.2vw,40px); line-height:1.15; letter-spacing:-1.5px; margin-bottom:10px; }
.admin-dashboard-intro .data-badge { white-space:normal; max-width:280px; line-height:1.5; text-align:right; }
.admin-tabs { display:flex; flex-wrap:wrap; gap:4px; padding:0 0 12px; margin-bottom:20px; border-bottom:1px solid var(--line); }
.admin-tabs button { min-height:44px; padding:10px 17px; border:1px solid transparent; border-radius:8px; background:#fff; color:var(--muted); font-size:13px; font-weight:700; cursor:pointer; }
.admin-tabs button:hover { background:#f4f7fc; color:var(--brand); }
.admin-tabs button[aria-selected=true] { background:var(--brand); color:#fff; border-color:var(--brand); }
[role=tabpanel]:focus-visible { outline:3px solid var(--brand); outline-offset:3px; }
.admin-data-tools,.report-context { border:1px solid var(--line); border-radius:10px; margin-bottom:22px; background:#fff; }
.admin-data-tools summary,.report-context summary { padding:14px 18px; cursor:pointer; font-weight:700; font-size:13px; }
.admin-data-tools summary span,.report-context summary span { font-weight:400; color:var(--muted); margin-left:12px; font-size:12px; }
.admin-data-tools > p,.report-context > p { margin:0 18px 14px; }
.admin-data-tools .dashboard-controls { border:0; border-top:1px solid var(--line); border-radius:0; flex-wrap:wrap; }
.admin-data-tools .dashboard-controls label { flex:1 1 170px; }
.admin-data-tools .dashboard-controls button { flex:0 1 auto; }
.admin-report-section { border:0; border-radius:0; background:#fff; padding:0; box-shadow:none; margin:0; }
.section-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:24px; margin-bottom:24px; }
.section-heading h2 { font-size:25px; font-weight:750; letter-spacing:-.7px; }
.section-heading p:not(.eyebrow) { font-size:13px; }
.section-heading > span { font-size:12px; }
.section-filter-grid { padding:18px; background:#f6f8fc; border:1px solid var(--line); border-radius:10px; gap:14px; }
.section-filter-grid label { font-size:12px; }
.individual-filter-grid { grid-template-columns:minmax(155px,1.3fr) repeat(2,minmax(135px,1fr)) auto minmax(135px,1fr) auto; }
.individual-filter-grid .section-clear-button { font-size:11px; }
.section-filter-grid input,.section-filter-grid select { min-height:44px; font-size:13px; border-radius:7px; background:#fff; }
.section-help { color:var(--muted); line-height:1.6; font-size:12px; }
.team-report-toolbar { background:#fff; border-color:var(--line); border-radius:12px; }
.team-report-user { border-radius:8px; }
.team-report-user:has(input:checked) { border-color:#8aabf4; background:#edf3ff; }
.report-context { margin-top:22px; }
.report-context > .report-card,.report-context > .kpi-grid,.report-context > .report-grid { margin:16px; }
.category-management-card,.team-access-card { margin-top:0; }
.card-heading h2 { font-size:20px; }
.method-note,.card-description { line-height:1.6; }
.analytics-detail-list { overflow-wrap:anywhere; }
@media(max-width:760px) {
  .auth-layout { padding:30px 24px 48px; }
  .auth-intro .auth-brand { margin-bottom:26px; font-size:39px; }
  .auth-brand .brand-mark { width:62px; height:62px; }
  .auth-intro h1 { font-size:45px; letter-spacing:-2px; }
  .auth-colour-notes { margin:22px 0; }
  .brand-credit { margin:22px 0 32px; }
  .auth-card { padding:28px 22px; box-shadow:6px 6px 0 #edf3ff; }
  .topbar { padding:10px 16px; }
  .topbar .brand-mark { width:42px; height:42px; }
  .activity-card { min-height:100px; }
  .admin-dashboard-intro { flex-direction:column; align-items:flex-start; gap:14px; }
  .admin-dashboard-intro > div:first-child { flex:auto; }
  .admin-dashboard-intro .data-badge { max-width:100%; text-align:left; }
  .admin-tabs { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; }
  .admin-tabs button { padding:10px 6px; font-size:12px; background:#f6f8fc; }
  .admin-data-tools summary span,.report-context summary span { display:block; margin:4px 0 0 16px; }
  .admin-report-section { padding:0; }
  .section-heading { flex-direction:column; gap:8px; }
  .section-heading h2 { font-size:24px; }
  .section-heading > span { white-space:normal; }
  .section-filter-grid { padding:14px; }
}
@media(min-width:761px) and (max-width:1100px) { .individual-filter-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:340px) { .admin-tabs { grid-template-columns:repeat(3,minmax(0,1fr)); } }
/* 1.12.1: a small STAAR-inspired colour lift. Logo and layouts are unchanged. */
:root { --ink:#292d38; --ink-soft:#464b58; --muted:#656977; --line:#e4e5eb; --action:#d81728; }
.brand { color:#b5223c; }
.primary-button { background:var(--action); border-color:var(--action); }
.primary-button:hover { background:#b91020; }
.nav-link.active,.mobile-nav a.active { color:#b91020; background:#fff0f2; }
.nav-link:hover:not(.active),.secondary-button:hover { background:#f7f7fa; }
.admin-tabs button[aria-selected=true] { color:#b91020; background:#fff0f2; border-color:#f5cbd1; box-shadow:inset 0 -3px 0 var(--action); }
.admin-tabs button:hover { color:#b91020; background:#fff5f6; }
.section-filter-grid,.time-note-area,.recording-panel,.tagged-agents { background:#fafafb; }
.stage-chip { background:#fff; }
.kpi-card.highlight { background:#f0faf5; color:#246b50; border-color:#d6ebdf; }
.kpi-card.highlight small,.kpi-card.highlight span { color:#3e6554; }
.scope-time-summary .kpi-card:first-child { background:#fff; border-color:var(--line); border-top:3px solid #f2b891; }
.call-stats.structured .call-stat.primary { background:#f0faf5; }
.running-card { border-color:var(--line); border-top-color:#40a884; }
.running-clock { color:var(--ink); }
.activity-card:hover { border-color:#e5a0aa; box-shadow:0 4px 0 #fff0f2; }
.auth-card { box-shadow:8px 8px 0 #f7f7fa; }
.auth-card::before { background:var(--action); }
.auth-intro h1 span { color:var(--ink); text-decoration:underline; text-decoration-color:#f3b2b8; text-decoration-thickness:5px; text-underline-offset:7px; }
.auth-link { color:#b91020; }
.auth-colour-notes span:first-child { color:#9d3241; background:#fff0f2; }
.auth-colour-notes span:nth-child(2) { color:#246b50; background:#eaf7ef; }
.admin-dashboard-intro h1,.auth-intro h1 { font-weight:650; }
/* Four main sections, with related report/access views grouped underneath. */
.admin-primary a { display:flex; align-items:center; justify-content:center; min-height:44px; padding:10px 22px; border:1px solid transparent; border-radius:8px; color:var(--muted); font-size:13px; font-weight:700; text-decoration:none; }
.admin-primary a[aria-current=page] { color:#b91020; background:#fff0f2; border-color:#f5cbd1; box-shadow:inset 0 -3px 0 var(--action); }
.admin-primary a:hover { color:#b91020; background:#fff5f6; }
.admin-subnav { display:flex; flex-wrap:wrap; width:fit-content; gap:5px; padding:4px; margin:-6px 0 22px; background:#f6f6f9; border-radius:9px; }
.admin-subnav a { display:block; padding:9px 16px; min-height:40px; border:1px solid transparent; border-radius:6px; color:var(--muted); font-size:12px; font-weight:650; text-decoration:none; }
.admin-subnav a[aria-current=page] { color:var(--ink); background:#fff; border-color:var(--line); box-shadow:0 1px 2px #292d3808; }
.admin-subnav a:hover { color:#b91020; }
[data-admin-panel]:focus-visible { outline:3px solid var(--action); outline-offset:3px; }
@media(max-width:760px) { .admin-primary { grid-template-columns:repeat(4,minmax(0,1fr)); } .admin-primary a { padding:10px 5px; font-size:12px; } .admin-subnav a { padding:9px 13px; } }
