* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f4f6fb;
  color: #182a43;
  font:
    15px/1.5 system-ui,
    sans-serif;
}
.shell {
  max-width: 1080px;
  margin: auto;
  padding: 28px 22px 70px;
}
header a {
  color: #2552bf;
  text-decoration: none;
  font-weight: 700;
}
.eyebrow {
  color: #6b7f9f;
  font-weight: 750;
  letter-spacing: 0.14em;
  font-size: 11px;
  margin: 28px 0 6px;
}
h1 {
  font-size: 32px;
  margin: 0;
}
h2 {
  font-size: 22px;
  margin: 0 0 8px;
}
p {
  color: #5d6d84;
}
.card {
  background: white;
  border: 1px solid #dce4f0;
  border-radius: 14px;
  padding: 24px;
  margin-top: 24px;
  box-shadow: 0 6px 22px #1a356408;
}
.login {
  max-width: 480px;
}
label {
  display: block;
  font-weight: 650;
  font-size: 13px;
  color: #314762;
}
input {
  display: block;
  width: 100%;
  border: 1px solid #cbd6e6;
  border-radius: 8px;
  padding: 12px;
  margin-top: 6px;
  font: inherit;
  color: #172b48;
  background: white;
}
input:focus {
  outline: 2px solid #7fa2f0;
  outline-offset: 1px;
}
button {
  border: 0;
  border-radius: 8px;
  padding: 12px 16px;
  background: #2652cb;
  color: white;
  font-weight: 700;
  cursor: pointer;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.secondary {
  background: #edf3ff;
  color: #274984;
  border: 1px solid #cbd9f1;
}
.login label {
  margin: 15px 0;
}
.bar,
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.bar .eyebrow {
  margin-top: 0;
}
.date {
  max-width: 220px;
  margin: 20px 0;
}
.totals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 20px 0;
}
.totals div {
  background: #f2f6ff;
  border-radius: 8px;
  padding: 12px;
  color: #536884;
}
.totals strong {
  display: block;
  color: #193767;
  font-size: 22px;
}
.entry {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr) auto;
  align-items: end;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid #e4eaf2;
}
.remove {
  color: #a73939;
  background: #fff3f3;
  border: 1px solid #f0d6d6;
}
.actions {
  margin-top: 20px;
}
#message {
  padding: 8px 0;
  color: #a13535;
  font-weight: 600;
}
#message[data-success='true'] {
  color: #23744b;
}
[hidden] {
  display: none !important;
}
@media (max-width: 650px) {
  .shell {
    padding: 20px 14px 50px;
  }
  .card {
    padding: 18px;
  }
  .entry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 18px 0;
  }
  .entry label:first-child {
    grid-column: 1/-1;
  }
  .entry button {
    align-self: end;
  }
  .totals {
    gap: 6px;
  }
  .totals div {
    font-size: 12px;
    padding: 9px;
  }
  .totals strong {
    font-size: 19px;
  }
}
/* Employee login */
body:has(#login-section:not([hidden])) { background:#edf2f9; }
.shell:has(#login-section:not([hidden])) { max-width:1120px; min-height:100vh; display:flex; align-items:center; padding:40px 24px; }
.shell:has(#login-section:not([hidden])) > header, .shell:has(#login-section:not([hidden])) > #message { display:none; }
#login-section:not([hidden]) { display:grid; grid-template-columns:1fr 1fr; width:100%; max-width:none; min-height:600px; padding:0; margin:0; overflow:hidden; border:1px solid #dce5f2; border-radius:22px; background:#fff; box-shadow:0 24px 70px rgba(29,55,99,.12); }
.employee-login-brand { position:relative; display:flex; flex-direction:column; justify-content:space-between; padding:34px 44px; color:#fff; background:radial-gradient(circle at 100% 100%,#2855a8 0,transparent 42%),linear-gradient(145deg,#102b5c,#193f85); }
.employee-login-brand:after { content:""; position:absolute; width:240px; height:240px; border:1px solid rgba(255,255,255,.10); border-radius:50%; right:-100px; bottom:-100px; pointer-events:none; }
.employee-login-back { color:#c9dcff; font-size:13px; font-weight:650; text-decoration:none; align-self:flex-start; }
.employee-login-back:hover { color:white; }
.employee-login-intro { padding:42px 0 36px; }
.employee-login-identity { display:flex; align-items:center; gap:12px; font-size:12px; font-weight:750; letter-spacing:.1em; }
.employee-login-identity img { width:48px; height:48px; padding:4px; object-fit:contain; border-radius:12px; background:white; }
.employee-login-identity small { display:block; margin-top:3px; color:#b6caeb; font-size:10px; letter-spacing:.18em; }
#login-section .employee-login-kicker { color:#a7c6ff; font-size:10px; font-weight:750; letter-spacing:.16em; margin:40px 0 13px; }
.employee-login-intro h2 { color:white; font:700 clamp(29px,3vw,39px)/1.15 system-ui,sans-serif; letter-spacing:-.035em; margin:0; }
#login-section .employee-login-intro > p:not(.employee-login-kicker) { max-width:315px; color:#c4d4ef; font-size:14px; line-height:1.7; margin:17px 0 25px; }
.employee-login-features { display:flex; gap:8px; flex-wrap:wrap; }
.employee-login-features span { border:1px solid rgba(221,234,255,.22); border-radius:100px; padding:6px 11px; color:#d9e8ff; font-size:11px; font-weight:650; }
#login-section .employee-login-footer { color:#a8bee2; font-size:11px; margin:0; }
.employee-login-form-side { align-self:center; padding:50px clamp(28px,5vw,72px); }
.employee-login-icon { display:grid; place-items:center; width:44px; height:44px; border-radius:13px; background:#edf3ff; color:#2859c6; }
#login-section .employee-login-eyebrow { color:#5472aa; font-size:10px; font-weight:750; letter-spacing:.15em; margin:24px 0 6px; }
.employee-login-form-side h2 { color:#132844; font:700 32px/1.2 system-ui,sans-serif; letter-spacing:-.03em; margin:0; }
#login-section .employee-login-help { color:#687c96; line-height:1.6; margin:9px 0 28px; font-size:14px; }
#login-form label { color:#334c6c; font-size:12px; margin:0 0 18px; }
#login-form input { height:48px; border-color:#d5dfed; border-radius:9px; padding:12px 14px; font-size:14px; margin-top:8px; }
#login-form input::placeholder { color:#9aaabd; }
.employee-password-field { display:flex; position:relative; }
.employee-password-field input { padding-right:65px !important; }
.employee-password-field button { position:absolute; right:5px; top:13px; bottom:5px; border:0; background:transparent; color:#315ec0; font-size:12px; }
#login-form .employee-login-submit { display:flex; justify-content:center; align-items:center; gap:12px; width:100%; min-height:48px; margin-top:24px; border-radius:9px; box-shadow:0 5px 14px rgba(35,85,203,.2); font-size:14px; }
#login-form .employee-login-submit:hover { background:#1745b6; }
#login-section #login-message { margin:2px 0 0; padding:10px 12px; border:1px solid #f0caca; border-radius:8px; background:#fff4f4; color:#a42c35; font-size:12px; line-height:1.45; }
#login-section #login-message[data-success="true"] { border-color:#cce7d7; background:#f0faf3; color:#23744b; }
#login-section .employee-login-note { margin:24px 0 0; color:#8a9ab0; font-size:11px; text-align:center; }
@media (max-width:720px) {
 .shell:has(#login-section:not([hidden])) { min-height:100vh; padding:18px 14px; align-items:center; }
 #login-section:not([hidden]) { grid-template-columns:1fr; min-height:0; border-radius:16px; }
 .employee-login-brand { padding:22px 24px 24px; }
 .employee-login-intro { padding:26px 0 8px; }
 .employee-login-identity img { width:42px; height:42px; }
 #login-section .employee-login-kicker { margin:24px 0 10px; }
 .employee-login-intro h2 { font-size:28px; }
 #login-section .employee-login-intro > p:not(.employee-login-kicker) { margin:10px 0 15px; }
 #login-section .employee-login-footer { display:none; }
 .employee-login-form-side { padding:28px 24px 32px; }
 #login-section .employee-login-eyebrow { margin-top:15px; }
 .employee-login-form-side h2 { font-size:27px; }
 #login-section .employee-login-help { margin-bottom:20px; }
}
/* Daily report workspace */
body:has(#report-section:not([hidden])) { background:#f2f5fa; }
.shell:has(#report-section:not([hidden])) { max-width:1200px; padding:0 26px 70px; }
.report-header { min-height:88px; display:flex; align-items:center; justify-content:space-between; gap:20px; border-bottom:1px solid #dfe7f1; }
.report-brand { display:flex; gap:12px; align-items:center; color:#193152; text-decoration:none; font-size:15px; font-weight:750; }
.report-brand img { width:45px; height:45px; object-fit:contain; background:white; border:1px solid #e2e9f2; border-radius:12px; padding:4px; }
.report-brand small { display:block; margin-top:2px; color:#8191a8; font-size:9px; letter-spacing:.13em; }
.report-header .report-back { color:#365b9d; font-size:12px; font-weight:650; text-decoration:none; }
.report-titlebar { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:36px 0 29px; }
.report-titlebar .eyebrow { margin:0 0 9px; color:#5c79a6; font-size:10px; }
.report-titlebar h1 { color:#152c4b; font-size:32px; line-height:1.2; letter-spacing:-.035em; }
.report-titlebar > div:first-child > p:last-child { margin:8px 0 0; color:#74869d; font-size:14px; }
.report-user { display:flex; gap:12px; align-items:center; padding:10px 12px; border:1px solid #e0e7f1; border-radius:12px; background:#fff; }
.report-user-icon { display:grid; place-items:center; width:36px; height:36px; flex:none; border-radius:10px; background:#e9f0ff; color:#547bd7; font-size:15px; }
.report-user small { display:block; color:#90a0b5; font-size:9px; font-weight:750; letter-spacing:.1em; }
.report-user strong { display:block; color:#2b4160; font-size:13px; }
.report-user #logout { padding:9px 12px; margin-left:9px; font-size:12px; }
.report-date-row { display:flex; align-items:end; justify-content:space-between; gap:15px; }
.report-date-row h2 { margin:0; color:#1a3456; font-size:17px; letter-spacing:-.01em; }
.report-date-row p { color:#8393a8; font-size:12px; margin:3px 0 2px; }
.report-date-row .date { margin:0; width:190px; color:#607592; font-size:11px; }
.report-date-row input { height:42px; padding:8px 10px; font-size:13px; }
#report-section .totals { gap:14px; margin:14px 0 27px; }
#report-section .totals > button { display:flex; align-items:center; gap:14px; min-height:92px; padding:16px; border:1px solid #dfe7f2; border-radius:12px; background:#fff; box-shadow:0 4px 18px rgba(35,59,95,.035); color:#72849b; font-size:12px; }
#report-section .totals strong { color:#1b3457; font-size:25px; line-height:1.25; margin-top:4px; }
.summary-icon { display:grid; place-items:center; width:42px; height:42px; flex:none; border-radius:11px; font-size:21px; font-weight:700; }
.summary-blue { color:#426ad0; background:#edf3ff; }.summary-amber { color:#be8a28; background:#fff6e3; }.summary-green { color:#358864; background:#e9f8f0; }
#report-section .report-form-card { margin:0; padding:25px 27px; border-radius:14px; border-color:#dfe7f2; box-shadow:0 8px 25px rgba(35,59,95,.045); }
.report-form-heading { display:flex; justify-content:space-between; gap:20px; align-items:center; padding-bottom:19px; border-bottom:1px solid #e8edf5; }
.report-form-heading .eyebrow { margin:0 0 4px; color:#6b87b1; font-size:10px; }
.report-form-heading h2 { margin:0; color:#1b3455; font-size:20px; letter-spacing:-.02em; }
.report-form-heading p:last-child { margin:5px 0 0; color:#8191a5; font-size:12px; }
.report-entry-label { padding:7px 10px; border-radius:7px; background:#eff4fd; color:#597ab1; font-size:10px; font-weight:750; letter-spacing:.08em; }
#report-section .entry { padding:20px 0; gap:12px; border-top:0; border-bottom:1px solid #edf1f6; }
#report-section .entry label { color:#506581; font-size:12px; }
#report-section .entry input { height:45px; margin-top:8px; border-color:#d6e0ed; border-radius:8px; font-size:14px; font-weight:500; }
#report-section .remove { height:45px; background:#fff; color:#b45e65; border-color:#eedee0; font-size:12px; }
#report-section .remove:hover { background:#fff5f5; }
#report-section .actions { margin-top:20px; }
#report-section .actions button { min-height:43px; font-size:13px; }
#report-section #save-report { background:#2554cb; padding:12px 22px; box-shadow:0 4px 12px rgba(37,84,203,.17); }
#report-section #save-report:hover { background:#1745b6; }
body:has(#report-section:not([hidden])) #message:not(:empty) { margin:16px 0 0; padding:11px 14px; border:1px solid #efcaca; background:#fff4f4; border-radius:9px; font-size:13px; }
body:has(#report-section:not([hidden])) #message[data-success="true"]:not(:empty) { border-color:#cce7d7; background:#effaf3; }
@media(max-width:650px) {
 .shell:has(#report-section:not([hidden])) { padding:0 14px 48px; }
 .report-header { min-height:72px; }
 .report-brand { font-size:13px; gap:8px; }
 .report-brand img { width:39px; height:39px; }
 .report-header .report-back { font-size:11px; }
 .report-titlebar { align-items:flex-start; flex-direction:column; gap:16px; padding:25px 0; }
 .report-titlebar h1 { font-size:27px; }
 .report-user { width:100%; }
 .report-user #logout { margin-left:auto; }
 .report-date-row { align-items:end; }
 .report-date-row .date { width:155px; }
 #report-section .totals { grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; margin-bottom:20px; }
 #report-section .totals > button { min-height:105px; padding:10px; align-items:flex-start; flex-direction:column; gap:6px; font-size:10px; }
 #report-section .totals strong { font-size:20px; margin-top:2px; }
 .summary-icon { width:32px; height:32px; border-radius:9px; font-size:17px; }
 #report-section .report-form-card { padding:20px 16px; }
 .report-entry-label { display:none; }
 #report-section .entry { grid-template-columns:repeat(2,minmax(0,1fr)); padding:18px 0; }
 #report-section .entry label:first-child { grid-column:1/-1; }
 #report-section .entry .remove { align-self:end; }
 #report-section .actions { gap:10px; }
 #report-section .actions button { flex:1 1 auto; }
}

#report-section .totals > button { width:100%; text-align:left; cursor:pointer; font-family:inherit; font-weight:400; position:relative; transition:border-color .15s,box-shadow .15s; }
#report-section .totals > button:hover { border-color:#a9bfea; box-shadow:0 5px 18px rgba(35,85,170,.1); }
#report-section .totals > button[aria-expanded="true"] { border-color:#5b81d7; box-shadow:0 0 0 2px rgba(67,112,210,.12); }
#report-section .totals > button:focus-visible,#summary-close:focus-visible { outline:3px solid #8aacec; outline-offset:2px; }
.summary-arrow { margin-left:auto; align-self:flex-start; color:#8ca0bd; font-size:15px; }
.summary-details { border:1px solid #dce6f4; border-radius:12px; padding:20px 24px; margin:-12px 0 24px; background:#fff; box-shadow:0 6px 22px rgba(35,59,95,.04); }
.summary-details-header { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; border-bottom:1px solid #edf1f6; padding-bottom:12px; }
.summary-details-header h2 { margin:0; color:#1b3455; font-size:16px; }
.summary-details-header p { color:#7a8da6; font-size:12px; margin:5px 0 0; }
#summary-close { background:#f0f4fc; color:#4d6891; font-size:20px; line-height:1; padding:5px 9px; }
#summary-details-list { color:#7a8da6; font-size:13px; padding-top:12px; }
.summary-detail-row { display:flex; justify-content:space-between; gap:15px; padding:9px 0; border-bottom:1px solid #eff3f8; color:#3c5574; }
.summary-detail-row:last-child { border-bottom:0; }
.summary-detail-row strong { color:#244a95; }
@media(max-width:650px) { .summary-arrow { position:absolute; right:9px; top:7px; font-size:12px; }.summary-details { padding:16px; margin:-8px 0 18px; }.summary-details-header h2 { font-size:14px; } }
/* Keep count fields clean while retaining numeric validation. */
#report-section .entry input[type="number"] { appearance:textfield; -moz-appearance:textfield; }
#report-section .entry input[type="number"]::-webkit-inner-spin-button,
#report-section .entry input[type="number"]::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
#report-section .entry input::placeholder { color:#9aaabd; font-size:12px; font-weight:400; }

/* Entry to an employee’s assigned sections */
.assigned-sections-link { display:flex; align-items:center; gap:14px; margin:0 0 28px; padding:15px 18px; border:1px solid #d8e5f8; border-radius:12px; background:linear-gradient(110deg,#f7faff,#edf4ff); color:#1d3d6e; text-decoration:none; box-shadow:0 4px 16px rgba(37,78,140,.04); transition:border-color .15s,box-shadow .15s,transform .15s; }
.assigned-sections-link:hover { border-color:#a7c2ed; box-shadow:0 6px 20px rgba(37,78,140,.10); transform:translateY(-1px); }
.assigned-sections-link:focus-visible { outline:3px solid #86aff0; outline-offset:3px; }
.assigned-sections-icon { display:grid; place-items:center; width:40px; height:40px; flex:0 0 40px; border-radius:10px; background:#dfeaff; color:#285ac4; font-size:20px; }
.assigned-sections-copy { display:grid; gap:3px; min-width:0; }
.assigned-sections-copy strong { color:#1d3f72; font-size:14px; }
.assigned-sections-copy small { color:#667e9f; font-size:12px; line-height:1.4; }
.assigned-sections-arrow { display:grid; place-items:center; width:32px; height:32px; margin-left:auto; flex:0 0 32px; border:1px solid #d3e1f7; border-radius:9px; background:#fff; color:#285ac4; font-size:18px; }
@media (max-width:600px) { .assigned-sections-link { gap:10px; margin-bottom:24px; padding:12px; } .assigned-sections-copy small { font-size:11px; } }
