/* Shared JZ Portal / Service visual language. Timesheets keeps its navy accent.
   This presentation layer does not change permissions, forms or authentication. */
:root {
  --navy: #0b1c2a;
  --navy-soft: #193748;
  --gold: #d7b269;
  --gold-bright: #e3c48c;
  --bg: #fafbf9;
  --panel: #fff;
  --panel-soft: #f5f7f8;
  --text: #122837;
  --muted: #60707a;
  --line: #dce1e2;
  --control-line: #ccd7df;
  --accent: #0b1c2a;
  --accent-hover: #193748;
  --accent-soft: #edf2f5;
  --accent-contrast: #fff;
  --focus: #718eaa;
  --eyebrow: #8b6c36;
  --info: #193748;
  --shadow: 0 5px 18px rgb(18 40 55 / 4%);
  --radius: 12px;
  --header-height: 94px;
  --panel-padding: 24px;
}

/* Follow the device immediately; light is the fallback and print palette. */
@media screen and (prefers-color-scheme: dark) {
  :root {
    --bg: #101b24; --panel: #182732; --panel-soft: #20323f;
    --text: #edf3f6; --muted: #afbdc7; --line: #354854; --control-line: #526775;
    --accent: #b3ccdf; --accent-hover: #d1e2ef; --accent-soft: #263d4d;
    --accent-contrast: #102330; --focus: #a8c8df; --info: #b3ccdf;
    --eyebrow: #d7b269;
    --shadow: 0 5px 18px rgb(0 0 0 / 12%);
  }
}

body { font: 15px/1.5 Arial, Helvetica, sans-serif; }
.jz-directory { --jzd-bg:var(--panel); --jzd-text:var(--text); --jzd-muted:var(--muted); --jzd-line:var(--line); --jzd-accent:var(--accent); }
.jzd-dialog button[type=submit] { color:var(--accent-contrast); }
.srOnly { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
[hidden] { display:none !important; }
.timesheetDirectory .directoryHeading { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:24px; border-bottom:1px solid var(--line); }
.directoryHeading h2 { margin:0; }
.directoryHeading h2 span { font-size:.85em; margin-left:8px; font-weight:400; }
.directoryHeading input { width:260px; }
.employeeWeekRow { padding:24px; display:grid; grid-template-columns:minmax(200px,1fr) minmax(280px,1fr); gap:28px; align-items:center; border-bottom:1px solid var(--line); }
.employeeWeekRow:last-child { border-bottom:0; }
.employeeWeekIdentity { display:flex; align-items:center; gap:16px; min-width:0; }
.employeeWeekIdentity h2 { margin:0 0 3px; font-size:1.05rem; }
.employeeWeekIdentity p { margin:0; font-size:.85rem; color:var(--muted); overflow-wrap:anywhere; }
.employeeAvatar { display:grid; place-items:center; flex:0 0 44px; height:44px; background:var(--accent-soft); color:var(--accent); border-radius:50%; font-weight:600; }
.employeeWeekSelect { min-width:0; font-size:.8rem; }
.employeeWeekSelect select { margin-top:5px; width:100%; min-height:46px; font-size:.9rem; text-overflow:ellipsis; }
.calendarToolbar { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:20px; margin-bottom:20px; }
.calendarWeekControls { display:flex; align-items:end; gap:10px; min-width:0; }
.calendarWeekControls label { min-width:0; font-size:.8rem; }
.calendarWeekControls select { max-width:100%; margin-top:5px; min-height:44px; }
.calendarWeekTotal { display:flex; align-items:center; gap:16px; white-space:nowrap; }
.calendarWeekTotal strong { font-size:1.65rem; font-weight:600; }
.calendarWeekTotal small,.calendarDayTotal small { font-size:.8rem; font-weight:400; color:var(--muted); }
.weekCalendar { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:10px; margin-bottom:20px; }
button.calendarDay { display:flex; flex-direction:column; align-items:stretch; text-align:left; min-width:0; min-height:250px; padding:16px 12px; border:1px solid var(--line); background:var(--panel); color:var(--text); box-shadow:var(--shadow); border-radius:12px; font-weight:400; }
button.calendarDay:hover,button.calendarDay.selected { border-color:var(--accent); background:var(--accent-soft); }
button.calendarDay.selected { box-shadow:inset 0 0 0 1px var(--accent); }
.calendarDayDate { font-size:.8rem; color:var(--muted); font-weight:600; }
.calendarDay.isToday .calendarDayDate { color:var(--accent); text-decoration:underline; text-underline-offset:5px; }
.calendarDayTotal { font-size:1.7rem; font-weight:600; margin:14px 0 18px; letter-spacing:-.035em; }
.calendarProjects { display:flex; flex-direction:column; gap:12px; flex:1; font-size:.8rem; line-height:1.4; }
.calendarProject { display:flex; flex-direction:column; gap:4px; padding-left:8px; border-left:2px solid var(--gold); overflow-wrap:anywhere; }
.calendarProject strong { font-weight:500; }
.calendarProject>span { color:var(--muted); }
.calendarDayHint { display:block; font-size:.75rem; margin-top:24px; color:var(--muted); }
.calendarDetails,.calendarExpenses { margin-bottom:20px; }
.calendarActions { display:flex; justify-content:flex-end; gap:12px; margin:20px 0; }
.employeeAddCard { margin-bottom:24px; }
.employeeAddCard>summary { font-size:1.05rem; font-weight:600; cursor:pointer; }
.employeeAddCard form { margin-top:20px; max-width:760px; }
.employeeDirectory .inlineActions { gap:8px; }
.projectNumberControl { display:flex; align-items:center; gap:8px; margin-top:8px; }
.projectNumberControl input { min-width:0; flex:1; }
.projectNumberControl button { flex-shrink:0; white-space:nowrap; }
@media (max-width:1000px) { .weekCalendar { gap:6px; } button.calendarDay { padding:14px 8px; } .calendarToolbar { align-items:start; } .calendarWeekTotal { flex-direction:column; gap:4px; } }
@media (max-width:700px) {
  .timesheetDirectory .directoryHeading { align-items:stretch; flex-direction:column; padding:20px; gap:12px; }
  .directoryHeading input { width:100%; }
  .employeeWeekRow { grid-template-columns:1fr; gap:18px; padding:20px; }
  .calendarToolbar { flex-direction:column; padding:16px; gap:16px; }
  .calendarWeekControls { width:100%; gap:6px; }
  .calendarWeekControls label { flex:1; }
  .calendarWeekControls button { flex:0 0 36px; padding:8px; }
  .calendarWeekControls select { width:100%; font-size:.8rem; }
  .calendarWeekTotal { flex-direction:row; width:100%; justify-content:space-between; }
  .weekCalendar { grid-template-columns:1fr; gap:10px; }
  button.calendarDay { min-height:130px; display:grid; grid-template-columns:1fr auto; gap:12px 16px; padding:18px; }
  .calendarDayDate { align-self:center; }
  .calendarDayTotal { margin:0; font-size:1.5rem; }
  .calendarProjects { grid-column:1/-1; }
  .calendarDayHint { grid-column:1/-1; margin:0; }
  .calendarActions { flex-direction:column; }
  .employeeDirectory .mobileRow { overflow-wrap:anywhere; }
}
h1 { font-size: clamp(2rem, 3vw, 2.65rem); font-weight: 500; line-height: 1.15; letter-spacing: -.035em; }
h2 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.015em; }
h3 { font-weight: 600; }
button, input, select, textarea { border-radius: 8px; }
button { min-height: 44px; border-color: var(--control-line); font-weight: 600; }
button:hover { border-color: var(--accent); background: var(--accent-soft); }
button.primary, .portalContinue { color: var(--accent-contrast); background: var(--accent); border-color: var(--accent); box-shadow: none; }
button.primary:hover, .portalContinue:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
button.danger:hover { color: var(--bad); border-color: var(--bad); background: var(--bad-bg); }
button.quiet { min-height: 40px; }
input, select, textarea { min-height: 46px; border-color: var(--control-line); }
label, input, select, textarea { min-width: 0; }
input, select, textarea { max-width: 100%; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; min-height: 18px; flex: 0 0 18px; padding: 0; margin: 0; accent-color: var(--accent); }
.timeModeChoice .checkRow { flex: 1 1 160px; min-height: 44px; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 20%, transparent); }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
button:disabled:hover { border-color: var(--control-line); }
.iconButton svg, .navIcon svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.appShell { grid-template-columns: 236px minmax(0, 1fr); grid-template-rows: var(--header-height) minmax(0, 1fr); }
.topbar { height: var(--header-height); padding: 0 3%; gap: 12px; color: var(--text); background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: none; }
.brandInline { color: var(--accent); }
.brandFilters { position: absolute; pointer-events: none; }
.brandInline .brandName { overflow: visible; color: var(--accent); }
.brandName small { color: var(--accent); }
.clockHeader .brandInline .brandName, .authBrand .brandInline .brandName { display: block; }
.topActions { gap: 18px; margin-left: auto; }
.topActions button { color: var(--text); background: transparent; border-color: transparent; }
.topActions button:hover { color: var(--text); background: var(--accent-soft); }
.headerAccount { display: flex; align-items: center; gap: 18px; min-height: 44px; padding-left: 18px; border-left: 1px solid var(--line); min-width: 0; }
.accountButton { display: grid; align-content: center; justify-items: start; max-width: 220px; min-width: 0; padding: 0; font-size: 14px; font-weight: 600; }
.accountButton span, .accountButton small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.accountButton small { color: var(--muted); font-size: 12px; font-weight: 400; }
.headerSignout { min-height: 44px; padding: 10px; border: 0; font-size: 13px; font-weight: 700; white-space: nowrap; }
.headerAccountButton { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px; }
.headerAccountButton svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#syncBadge { display: inline-flex; flex-shrink: 0; min-height: 32px; padding: 6px 10px; gap: 6px; color: var(--muted); border: 1px solid var(--line); background: var(--panel); font-size: 12px; line-height: 18px; font-weight: 400; }
#syncBadge svg { flex-shrink: 0; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#syncBadge.good svg { color: #278166; }
#syncBadge.bad { color: #946018; background: #fff8e8; }
#syncBadge.good .connectionOffline, #syncBadge.bad .connectionOnline { display: none; }
.topbar .menuButton { color: var(--text); background: transparent; border-color: var(--control-line); }

.sidebar { top: var(--header-height); height: calc(100dvh - var(--header-height)); padding: 22px 14px 12px; color: var(--text); background: var(--panel); border-right: 1px solid var(--line); }
.sidebar nav { gap: 22px; }
.navGroup { gap: 4px; }
.navGroupLabel { padding: 0 12px 7px; color: var(--muted); font-size: .64rem; font-weight: 600; letter-spacing: .16em; }
.sidebar nav button { grid-template-columns: 22px 1fr; gap: 12px; min-height: 46px; padding: 10px 12px; color: var(--muted); font-weight: 500; border-radius: 8px; }
.sidebar nav button:hover, .sidebar nav button.active { color: var(--accent); background: var(--accent-soft); box-shadow: none; }
.sidebar nav button.active { font-weight: 600; }
.navIcon { display: grid; place-items: center; }
.sidebarFoot { padding: 20px 12px 2px; margin-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .7rem; line-height: 1.8; }
.sidebar .companyNav { margin-top: auto; padding-top: 24px; }
.sidebar .companyNav[hidden] { display: none; }
.sidebar .companyNav .navIcon svg { width: 20px; height: 20px; stroke-width: 1.75; }
.sidebarCaption { display: block; font-weight: 600; }
.navMobileHead, .navAccount, #mobileLogoutButton { display: none; }
.content { padding: 24px clamp(24px, 3vw, 52px) 48px; overflow-x: clip; }
.workspaceToolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.workspaceCompany { color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; overflow-wrap: anywhere; }
.workspaceTools { display: flex; align-items: center; gap: 12px; }
.weekPicker { color: var(--muted); font-size: .78rem; font-weight: 500; }
.weekPicker input { width: 154px; min-height: 40px; padding: 7px 10px; color: var(--text); border-color: var(--control-line); background: var(--panel); color-scheme: inherit; }
.pageHeader { margin-bottom: 26px; gap: 24px; }
.pageHeader h1 { margin-bottom: 10px; }
.pageHeader p { font-size: .875rem; }
.pageActions { padding-top: 2px; }

.metricGrid { gap: 18px; margin-bottom: 24px; }
.metric { padding: 22px; border-width: 1px; border-radius: 12px; box-shadow: var(--shadow); }
.metric.good, .metric.warn { border-left-width: 1px; border-left-color: var(--line); border-top: 3px solid var(--good); }
.metric.warn { border-top-color: var(--warn); }
.metric strong { margin-top: 14px; font-size: 2rem; font-weight: 500; line-height: 1.1; }
.metric span { font-size: .7rem; font-weight: 600; letter-spacing: .08em; }
.layoutGrid { gap: 22px; }
.card { border-radius: 12px; padding: var(--panel-padding); box-shadow: var(--shadow); }
.card.flush { padding: 0; }
.cardHead { margin-bottom: 20px; flex-wrap: wrap; }
.cardHead > div { min-width: 0; }
/* Flush cards retain edge-to-edge tables, with the same content inset as cards. */
.card.flush > .cardHead { padding: var(--panel-padding); margin: 0; }
.cardHead h2, .cardHead h3 { margin-top: 0; }
.cardHead p { margin-top: 6px; }
.card.flush > .tableWrap > table > :is(thead, tbody) > tr > :first-child { padding-left: var(--panel-padding); }
.card.flush > .tableWrap > table > :is(thead, tbody) > tr > :last-child { padding-right: var(--panel-padding); }
.card.flush > .mobileCards { padding: var(--panel-padding); }
.card.flush > .cardHead + .tableWrap + .mobileCards { padding-top: 0; }
.sheetCard { min-width: 0; }
.cardHead p { font-size: .85rem; line-height: 1.5; }
.subtlePanel { border-color: var(--line); border-radius: 10px; }
.tableWrap { max-width: 100%; overscroll-behavior-x: contain; }
#gustoReview { min-width: 0; overflow-wrap: anywhere; }
#gustoReview table { min-width: 1050px; overflow-wrap: normal; }
#gustoReview .checkRow { align-items: flex-start; margin: 16px 0; }
#gustoReview .checkRow input { flex: 0 0 auto; margin-top: 4px; }
#quickBooksReview { min-width: 0; overflow-wrap: anywhere; }
#quickBooksReview table { min-width: 950px; overflow-wrap: normal; }
#quickBooksReview .checkRow { align-items: flex-start; margin: 16px 0; }
#quickBooksReview .checkRow input { flex: 0 0 auto; margin-top: 4px; }
#quickBooksMatching input { min-width: 0; width: 100%; }
th { color: var(--muted); font-size: .7rem; font-weight: 600; letter-spacing: .035em; background: var(--panel-soft); }
th, td { padding: 13px 16px; }
.tag, .statusPill { font-weight: 600; }
.statusPill { display: inline-flex; }
.empty { color: var(--muted); font-size: .9rem; }
.jobGroupHead { font-weight: 600; }
.personChip { font-size: .82rem; }
.viewTabs { gap: 4px; padding: 5px; margin-bottom: 20px; box-shadow: none; }
.viewTabs button { font-size: .83rem; font-weight: 500; }
.viewTabs button.active { color: var(--accent-contrast); border-color: var(--accent); background: var(--accent); }
.timesheetNavigator { gap: 8px; padding: 12px; margin-bottom: 16px; box-shadow: none; }
.timesheetNavigator .weekRange { min-width: 200px; }
.timesheetNavigator .weekRange strong { font-weight: 600; font-size: .875rem; }
.timesheetNavigator .weekRange span { margin-top: 2px; font-size: .72rem; }
.employeeTimeHero { border-left: 1px solid var(--line); border-top: 3px solid var(--accent); }
.eyebrow { color: var(--eyebrow); font-size: .65rem; letter-spacing: .17em; font-weight: 600; }
.employeeWeekTotal strong { font-weight: 500; }
.employeeTimeHero h2 { margin-top: 7px; }
.timeWeekDays { gap: 12px; }
.timeDayCard { box-shadow: var(--shadow); }
.timeDayCard.hasTime { border-left-color: var(--accent); }
.timeDaySummary { min-height: 74px; padding: 16px 20px; font-weight: 600; }
.timeDaySummary:hover { background: var(--panel-soft); }
.timeDaySummary small { font-weight: 400; }
.dayHours { font-weight: 500; }
.timeDayDetails { padding: 0 20px 18px; }
.addDayTime { border-style: solid; }
.crewPerson:has(input[type="checkbox"]:checked) { border-color: var(--accent); box-shadow: inset 3px 0 var(--accent); }
.crewApplyPanel { border-color: var(--control-line); background: var(--panel-soft); }
.spinner { border-top-color: var(--accent); }
.modal { border-radius: 12px; box-shadow: 0 20px 70px rgb(11 28 42 / 20%); max-height: calc(100dvh - 32px); }
.modal::backdrop { background: rgb(11 28 42 / 38%); backdrop-filter: blur(2px); }
.modalHead, .modalBody { padding: var(--panel-padding); }
.modalHead h2 { font-size: 1.2rem; }
.modalActions { flex-wrap: wrap; padding: 16px var(--panel-padding); }
.toast { font-size: .9rem; }

/* The launcher uses the same grid control as Portal, and only server-authorized links. */

/* Existing fallback/auth forms remain functional; no local sign-in is enabled by styling. */
.authPage { background: var(--bg); }
.authCard { border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
#passwordChangeView .authBrand { flex-direction: column; align-items: flex-start; }
.portalContinue { border-radius: 8px; }

@media (max-width: 1100px) {
  .topActions { gap: 12px; }
  .span4, .span5, .span6, .span7, .span8 { grid-column: 1 / -1; }
  .metric { padding: 18px; }
  .crewFilters { grid-template-columns: 1fr 1fr; }
  .employeeTimesheetSelector { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (max-width: 800px) {
  :root { --header-height: 76px; --panel-padding: 22px; }
  button, button.small, button.quiet, .viewTabs button { min-height: 44px; }
  .appShell { padding-top: var(--header-height); }
  .topbar { height: var(--header-height); padding: 0 12px; gap: 8px; }
  .brandInline { --jz-brand-gap: 7px; --jz-brand-width: 32px; --jz-brand-height: 42px; --jz-brand-name-size: 12px; --jz-brand-caption-size: 8px; --jz-brand-caption-gap: 5px; margin-right: auto; }
  .menuButton { width: 38px; min-width: 38px; height: 44px; }
  .topActions { gap: 8px; flex-shrink: 0; }
  .headerAccount { padding-left: 8px; gap: 0; }
  .headerAccountButton { display: flex; }
  .topActions .accountButton, .headerSignout { display: none; }
  #syncBadge { display: inline-flex; }
  .sidebar { top: 0; height: 100dvh; width: min(310px, 88vw); padding: 18px 16px; }
  .sidebar:not(.open) { visibility: hidden; }
  .sidebar.open { visibility: visible; }
  .navMobileHead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
  .navMobileHead strong { font-size: .8rem; color: var(--muted); letter-spacing: .07em; text-transform: uppercase; }
  .navAccount { display: grid; gap: 3px; padding: 0 12px 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
  .navAccount strong { font-size: .95rem; font-weight: 600; }
  .navAccount span { font-size: .8rem; color: var(--muted); }
  .sidebar nav button { min-height: 48px; }
  #mobileLogoutButton { display: block; width: 100%; min-height: 44px; margin-top: 12px; text-align: left; color: var(--text); }
  .navScrim { background: rgb(11 28 42 / 38%); }
  .content { padding: 20px 16px 40px; }
  .workspaceToolbar { margin-bottom: 26px; }
  .workspaceCompany { display: none; }
  .workspaceTools { width: 100%; justify-content: space-between; }
  .weekPicker span { display: inline; }
  .weekPicker input { min-height: 44px; }
  .pageHeader { margin-bottom: 22px; }
  .card.flush { padding: 0; }
  .metricGrid, .layoutGrid { gap: 16px; }
  .modal { width: calc(100vw - 24px); }
  .modalActions { padding: 14px var(--panel-padding); }
}
@media (max-width: 600px) {
  .topbar { padding-inline: 8px; gap: 4px; }
  .brandInline .brandName { display: none; }
  .topActions { gap: 4px; }
  .metric { padding: 16px 13px; }
  .metric strong { font-size: 1.8rem; }
  .metric span { font-size: .64rem; }
  .pageHeader h1 { font-size: 2rem; }
  .pageHeader p { font-size: .83rem; }
  .pageActions { gap: 8px; }
  :root { --panel-padding: 20px; }
  .card.flush { padding: 0; }
  .viewTabs { gap: 4px; }
  .viewTabs button { flex: 1 1 calc(50% - 4px); min-height: 44px; padding: 8px; }
  .timesheetNavigator .weekRange { min-width: 0; padding: 6px 0 10px; }
  .employeeTimesheetSelector, .crewFilters { grid-template-columns: 1fr; }
  .employeeTimeHero { gap: 10px; }
  .employeeTimeHero h2 { font-size: 1.15rem; overflow-wrap: anywhere; }
  .employeeTimeHero p { font-size: .78rem; }
  .employeeWeekTotal { min-width: 90px; }
  .timeDaySummary { padding: 14px 16px; }
  .timeDayDetails { padding: 0 16px 16px; }
  .modalActions button { min-height: 44px; }
  .modalActions .unsavedPrompt { width: 100%; }
  .mobileRowHead { overflow-wrap: anywhere; }
  .sheetCard .cardHead { flex-direction: column; align-items: stretch; }
  .sheetCard .cardHead .inlineActions { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .sidebar { transition: none; }
  .spinner { animation: none; }
}
@media screen and (prefers-color-scheme: dark) {
  /* Preserve the source artwork, gold and transparency; lift navy ink on dark surfaces. */
  .topbarLogo, .portalBrand img { filter: url("#timesheet-logo-dark"); }
  #syncBadge.good svg { color: #8ce0b6; }
  #syncBadge.bad { color: #f4c878; background: #3b3020; border-color: #aa874f; }
  .portalLogin { --navy: #b3ccdf; --text: #edf3f6; --muted: #afbdc7; --panel: #182732; --panel-soft: #20323f; --line: #354854; color-scheme: dark; background: var(--bg); }
  .portalAuthHeader, .portalLoginCard { background: var(--panel); }
  .portalLoginForm input { background: var(--bg); color: var(--text); border-color: var(--control-line); }
  .portalLogin button.primary { background: #315671; }
  .portalLogin button.primary:hover { background: #27475f; }
  .portalLogin .loginEyebrow { color: #d7b269; }
  .loginShield { color: #d7b269; background: #3b3020; }
}
@media print {
  .workspaceToolbar, .navMobileHead, .navAccount { display: none !important; }
  .appShell { padding-top: 0; }
  .content { padding: 0; overflow: visible; }
  .card { box-shadow: none; }
}
/* Separate provider attribution from original GPS evidence, including on mobile. */
[data-location-address] { margin-bottom: 16px; overflow-wrap: anywhere; }
.googleMapsAttribution { display: inline-block; font-family: Arial, sans-serif; font-style: normal; font-weight: 400; font-size: 13px; letter-spacing: normal; white-space: nowrap; color: #5e5e5e; background: #fff; padding: 3px 6px; border-radius: 3px; }

/* Shared employee calendar */
.teamCalendarToolbar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; padding:var(--panel-padding)!important; margin-bottom:16px; }
.teamCalendarNavigation,.teamCalendarOptions,.teamCalendarViews { display:flex; align-items:center; gap:8px; }
.teamCalendarNavigation h2 { margin:0 0 0 8px; font-size:22px; }
.teamCalendarOptions input { width:145px; }
.teamCalendarViews { padding:3px; border:1px solid var(--border,#dce2e5); border-radius:10px; }
.teamCalendarViews button { border:0; background:transparent; }
.teamCalendarViews button[aria-pressed="true"] { background:#173744; color:white; }
.teamCalendarLayout { display:grid; grid-template-columns:220px minmax(0,1fr); gap:16px; align-items:start; }
.teamCalendarSidebar { padding:var(--panel-padding)!important; min-width:0; }
.teamCalendarSidebar summary { font-size:17px; font-weight:700; cursor:pointer; }
.teamCalendarSidebar summary span { font-size:12px; font-weight:500; margin-left:6px; }
.teamEmployeeTools { display:flex; gap:8px; margin:16px 0 12px; }
.teamEmployeeTools button { padding:7px 9px; font-size:12px; }
.teamCalendarSidebar input[type="search"] { width:100%; min-width:0; font-size:13px; }
.teamEmployeeList { max-height:550px; overflow:auto; margin:14px 0; }
.teamEmployeeChoice { display:flex; align-items:center; gap:9px; padding:10px 0; font-size:14px; font-weight:500; cursor:pointer; }
.teamEmployeeChoice[hidden] { display:none; }
.teamEmployeeChoice input { width:16px; height:16px; margin:0; flex-shrink:0; accent-color:hsl(var(--employee-hue) 65% 36%); }
.teamEmployeeChoice small { display:block; font-size:11px; opacity:.7; }
.employeeColor { width:10px; height:10px; flex-shrink:0; border-radius:50%; background:hsl(var(--employee-hue) 65% 36%); }
.teamCalendarMain { padding:0!important; overflow:hidden; min-width:0; }
.teamCalendarSummary { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; padding:var(--panel-padding); font-size:13px; border-bottom:1px solid var(--border,#dce2e5); }
.teamCalendarGrid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); }
.teamWeekdays { display:contents; }
.teamWeekdays span { padding:12px 8px; text-align:center; font-size:12px; font-weight:700; border-bottom:1px solid var(--border,#dce2e5); }
.teamCalendarDay { min-height:150px; min-width:0; padding:6px; border-right:1px solid var(--border,#dce2e5); border-bottom:1px solid var(--border,#dce2e5); }
.teamCalendarDay.outsideMonth { background:rgba(110,130,140,.045); }
.teamCalendarDay.outsideMonth .teamDayHeading { opacity:.55; }
.teamCalendarDay.today { background:rgba(43,117,175,.065); }
.teamDayHeading { display:flex; justify-content:space-between; align-items:center; gap:2px; margin-bottom:6px; }
.teamDayHeading button { border:0; border-radius:50%; padding:4px; width:30px; height:30px; min-height:0; background:transparent; font-size:13px; }
.teamDayHeading [aria-current="date"] { background:#173744; color:#fff; }
.teamDayHeading small { font-size:10px; opacity:.75; }
.weekDayName { display:none; }
.teamCalendarEntry { display:block; width:100%; min-width:0; text-align:left; padding:6px!important; margin:0 0 5px; border:0!important; border-left:3px solid hsl(var(--employee-hue) 65% 36%)!important; border-radius:4px!important; background:hsl(var(--employee-hue) 60% 93%)!important; color:hsl(var(--employee-hue) 70% 20%)!important; box-shadow:none!important; }
.teamCalendarEntry:hover { filter:brightness(.96); }
.teamEntryHeading { display:block; font-size:12px; }
.teamEntryHeading strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }
.teamEntryHeading b { font-size:10px; white-space:nowrap; }
.teamEntryProjects { display:block; margin-top:3px; font-size:10px; font-weight:400; line-height:1.4; }
.teamEntryProjects span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.teamCalendarEntry.expanded .teamEntryHeading { flex-wrap:wrap; font-size:13px; }
.teamCalendarEntry.expanded .teamEntryHeading strong { white-space:normal; overflow-wrap:anywhere; }
.teamDayModal .teamEntryProjects span { white-space:normal; overflow-wrap:anywhere; }
.teamCalendarEntry.expanded .teamEntryProjects { font-size:12px; }
.teamCalendarMore { width:100%; text-align:left; border:0; background:transparent; font-size:11px; padding:4px; }
.teamCalendarFootnote { padding:12px var(--panel-padding); margin:0!important; font-size:12px; }
.teamCalendarMessage { padding:12px var(--panel-padding); margin:0!important; font-size:13px; }
.teamDayEmpty { font-size:12px; opacity:.65; }
.teamDayModal { display:grid; gap:10px; }
.teamDayModal .teamCalendarEntry { padding:12px!important; }
.teamCalendarGrid.week .teamCalendarDay { min-height:360px; }
@media (max-width:1100px) {
  .teamCalendarLayout { grid-template-columns:180px minmax(0,1fr); gap:10px; }
  .teamEntryHeading { display:block; }
  .teamEntryHeading strong { display:block; }
}
@media (max-width:760px) {
  .teamCalendarLayout { grid-template-columns:1fr; }
  .teamEmployeeList { max-height:180px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 12px; }
  .teamEmployeeChoice { font-size:12px; overflow-wrap:anywhere; }
  .teamCalendarToolbar { gap:12px; }
  .teamCalendarNavigation { flex-wrap:wrap; }
  .teamCalendarNavigation h2 { width:100%; margin:5px 0 0; font-size:20px; }
  .teamCalendarOptions { width:100%; justify-content:space-between; }
  .teamCalendarOptions input { width:134px; font-size:12px; }
  .teamCalendarViews button { font-size:12px; padding:8px 10px; }
  .teamCalendarDay { min-height:95px; padding:3px; }
  .teamWeekdays span { font-size:10px; padding:9px 0; }
  .teamDayHeading button { width:24px; height:24px; font-size:11px; }
  .month .teamDayHeading small,.month .teamEntryProjects { display:none; }
  .month .teamCalendarEntry { padding:3px!important; }
  .month .teamEntryHeading,.month .teamEntryHeading b { font-size:9px; }
  .teamCalendarMore { font-size:9px; padding:2px 0; }
  .teamCalendarGrid.week { grid-template-columns:1fr; }
  .teamCalendarGrid.week .teamWeekdays { display:none; }
  .teamCalendarGrid.week .teamCalendarDay { min-height:110px; padding:12px; }
  .week .weekDayName { display:inline; margin-right:6px; }
  .week .teamDayHeading button { width:auto; border-radius:6px; padding:4px 8px; }
  .week .teamDayHeading small { font-size:12px; }
  .week .teamEntryHeading { display:flex; justify-content:space-between; align-items:start; gap:8px; }
  .week .teamEntryProjects span { white-space:normal; overflow-wrap:anywhere; }
}

/* The live clock roster uses the shared outer card inset at every viewport. */
.clockDashboard .metricGrid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.clockDashboard .metric { padding: var(--panel-padding); }
.clockRoster { list-style: none; padding: 0; margin: 0; }
.clockRoster li { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.clockRoster li:first-child { padding-top: 0; border-top: 0; }
.clockRoster li:last-child { padding-bottom: 0; }
.clockRoster li > div { display: grid; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.clockRoster li > .tag { flex-shrink: 0; }
.clockRoster li > button { flex-shrink: 0; }
.clockRoster small, .clockRoster div > span { color: var(--muted); }
.clockDashboardUpdated { margin: 16px 0 0; }
@media (max-width: 600px) {
  .clockRoster li { flex-direction: column; gap: 10px; }
}

.clockRosterTime { flex-shrink: 0; text-align: right; }
.clockRosterTime strong { font-size: 1.05rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 600px) { .clockRosterTime { text-align: left; } }

.locationAddressHint { display: block; }

.stagedUpdates { margin-top: 14px; }

.mobileRowHead > button { flex-shrink: 0; }
.mobileRowHead > h3 { min-width: 0; }

.teamCalendarEntryWrap { position:relative; min-width:0; }
.teamCalendarEntryWrap .teamCalendarEntry { padding-right:34px!important; }
.teamEntryMenu { position:absolute; right:2px; top:2px; padding:0!important; width:30px; min-height:28px; border:0; background:transparent; color:var(--text); font-size:20px; }
.teamEntryMenu:hover,.teamEntryMenu:focus-visible { background:var(--panel); }
.customerAddressAttribution [translate=no] { white-space:nowrap; font-family:Arial,sans-serif; font-weight:500; }

.calendarActionButtons { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }

.timeProjectControl { position:relative; }
.timeProjectControl input { padding-right:48px; }
.timeProjectToggle { position:absolute; right:1px; top:1px; bottom:1px; width:44px; border:0; background:transparent; color:var(--text); padding:0; border-radius:0 8px 8px 0; }
.timeProjectToggle:hover { background:var(--accent-soft); }
.timeProjectPicker .customerAddressDropdown { z-index:10; }
.timeProjectPicker .timeProjectEmpty { padding:12px; margin:0; }

.projectDetailFields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px 24px; margin:24px 0; }
.projectDetailFields dt { color:var(--muted); font-size:.85rem; margin-bottom:6px; }
.projectDetailFields dd { margin:0; white-space:pre-line; overflow-wrap:anywhere; }
.projectDetailNotes { white-space:pre-wrap; overflow-wrap:anywhere; margin-bottom:24px; }
.projectDetailFiles { list-style:none; padding:0; margin:12px 0 0; }
.projectDetailFiles li { padding:12px; border:1px solid var(--line); border-radius:8px; margin-bottom:8px; overflow-wrap:anywhere; }
.projectDetailFiles span { display:block; margin-top:6px; color:var(--muted); font-size:.85rem; }
@media(max-width:600px) { .projectDetailFields { grid-template-columns:1fr; gap:16px; } }

.calendarContextMenu { position:fixed; z-index:1000; width:200px; max-width:calc(100vw - 16px); padding:6px; border:1px solid var(--line); border-radius:10px; background:var(--panel); box-shadow:0 8px 24px rgba(0,0,0,.18); }
.calendarContextMenu button { display:block; width:100%; text-align:left; border:0; background:transparent; padding:12px; border-radius:6px; }
.calendarContextMenu button:hover,.calendarContextMenu button:focus-visible { background:var(--accent-soft); }
jz-app-drawer { --jz-drawer-bg:var(--panel); --jz-drawer-ink:var(--text); --jz-drawer-line:var(--line); --jz-drawer-muted:var(--muted); --jz-drawer-hover:var(--accent-soft); }
.laborSyncIssue { overflow-wrap: anywhere; }

/* Shared Company API header theme adapter. */
jz-company-header{--jz-header-primary:var(--navy);--jz-header-text:var(--text);--jz-header-muted:var(--muted);--jz-header-line:var(--line);--jz-header-surface:var(--panel);--jz-header-hover:var(--panel-soft)}
@media(prefers-color-scheme:dark){jz-company-header{--jz-header-primary:#b3ccdf}}
