@charset "UTF-8";
:root {
  color-scheme: light;
  --navy:#102638; --navy-light:#1b3c52; --orange:#f36b0b; --orange-dark:#ca4800;
  --orange-soft:#fff1e5; --paper:#f4f6f9; --surface:#fff; --text:#192e40;
  --muted:#607487; --line:#dce4ec; --green:#237449; --green-soft:#eaf6ee;
  --danger:#b83439; --danger-soft:#fff0f0; --amber:#8d5700; --amber-soft:#fff7e2;
  --radius:20px; --shadow:0 6px 24px rgba(20,40,60,.045);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:16px; font-synthesis:none;
}
* { box-sizing:border-box; }
body { margin:0; color:var(--text); background:var(--paper); line-height:1.5; -webkit-font-smoothing:antialiased; }
button,input,select,textarea { font:inherit; }
button,a,input,select,textarea { -webkit-tap-highlight-color:transparent; }
button,a { touch-action:manipulation; }
button { cursor:pointer; }
button:disabled { cursor:wait; opacity:.58; }
button:focus-visible,a:focus-visible { outline:3px solid #2286ce; outline-offset:3px; }
input:focus,select:focus,textarea:focus { outline:3px solid #ff8e3b33; border-color:var(--orange); }
a { color:var(--orange-dark); }
svg { width:22px; height:22px; stroke:currentColor; stroke-width:1.8; fill:none; stroke-linecap:round; stroke-linejoin:round; flex:none; }
h1,h2,h3,p { margin:0; }
h1 { font-size:clamp(1.6rem,3vw,2rem); line-height:1.2; letter-spacing:-.04em; font-weight:750; }
h2 { font-size:1.13rem; letter-spacing:-.02em; line-height:1.3; }
h3 { font-size:1rem; line-height:1.35; }
small,.small { font-size:.875rem; }
.muted { color:var(--muted); }
.mt-6 { margin-top:6px; }
.mt-14 { margin-top:14px; }
.mt-16 { margin-top:16px; }
.mt-18 { margin-top:18px; }
.mb-20 { margin-bottom:20px; }
.push-left { align-self:center; margin-right:auto; }
.eyebrow { font-size:.75rem; text-transform:uppercase; font-weight:750; letter-spacing:.12em; }
.skip-link { position:fixed; top:-80px; left:16px; padding:12px 20px; background:white; z-index:200; }
.skip-link:focus { top:12px; }
.initial-loading { min-height:100vh; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:18px; background:var(--navy); color:white; }
.initial-loading img { object-fit:contain; }
.spinner { width:22px; height:22px; border:2px solid currentColor; border-right-color:transparent; border-radius:50%; display:inline-block; animation:spin .7s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
.app-header { background:var(--navy); color:white; padding:env(safe-area-inset-top) 20px 0; }
.header-inner { max-width:1100px; margin:auto; min-height:90px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.brand { display:flex; align-items:center; gap:16px; }
.brand img { width:97px; height:56px; object-fit:contain; }
.brand-divider { width:1px; height:36px; background:#ffffff25; }
.brand-title { font-size:1.17rem; font-weight:700; letter-spacing:-.025em; }
.brand-note { color:#b0c1cf; font-size:.8rem; }
.header-actions { display:flex; align-items:center; gap:12px; }
.profile-button { display:flex; align-items:center; gap:10px; border:0; background:transparent; color:white; min-height:48px; padding:0 4px; }
.avatar { width:38px; height:38px; border-radius:13px; background:#ffffff14; border:1px solid #ffffff20; display:grid; place-items:center; font-size:.875rem; font-weight:700; color:#ffb57d; }
.profile-name { font-size:.875rem; font-weight:600; }
.icon-button { min-width:48px; min-height:48px; border-radius:14px; border:1px solid var(--line); display:inline-flex; justify-content:center; align-items:center; background:white; color:var(--text); padding:10px; }
.app-header .icon-button { color:#d5e0e8; background:transparent; border-color:#ffffff20; }
.page-shell { max-width:1100px; margin:auto; padding:26px 20px 112px; }
.page-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:22px; }
.page-heading p { margin-top:6px; font-size:.9375rem; color:var(--muted); }
.page-heading .eyebrow { margin-bottom:7px; color:var(--orange-dark); }
.date-nav { display:flex; align-items:center; gap:8px; }
.date-nav .icon-button { min-width:42px; min-height:42px; border-radius:12px; }
.date-nav .day-label { padding:0 5px; font-weight:650; font-size:.875rem; white-space:nowrap; }
.grid { display:grid; gap:18px; }
.grid-main { grid-template-columns:minmax(0,1.55fr) minmax(0,1fr); align-items:start; }
.stack { display:flex; flex-direction:column; gap:18px; }
.card { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); overflow:hidden; }
.card-pad { padding:22px; }
.card-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:20px 22px 14px; }
.card-title { display:flex; gap:10px; align-items:center; }
.card-title svg { color:var(--orange); }
.card-subtitle { color:var(--muted); font-size:.875rem; margin-top:5px; }
.card-footer { padding:14px 22px; border-top:1px solid var(--line); background:#fafbfd; }
.hero { background:linear-gradient(125deg,#102638,#1b3e55); color:white; border:0; padding:23px; position:relative; }
.hero-top { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.hero .eyebrow { color:#bdd0df; font-size:.75rem; }
.hero-value { margin-top:8px; font-size:2.55rem; font-weight:750; line-height:1.15; letter-spacing:-.06em; }
.hero-value span { font-size:1rem; letter-spacing:0; color:#bbccda; font-weight:500; margin-left:5px; }
.hero-icon { height:54px; width:54px; display:grid; place-items:center; border-radius:17px; background:#ffffff0b; border:1px solid #ffffff1a; color:#ffa24f; }
.hero-icon svg { width:28px; height:28px; }
.hero-foot { display:flex; justify-content:space-between; align-items:center; gap:12px; border-top:1px solid #ffffff1a; margin-top:19px; padding-top:14px; font-size:.875rem; color:#d0dde7; }
.hero-foot strong { color:white; font-weight:600; }
.button { min-height:48px; padding:11px 17px; display:inline-flex; align-items:center; justify-content:center; gap:9px; border:1px solid var(--line); border-radius:14px; background:white; color:var(--text); font-weight:650; font-size:.9375rem; text-decoration:none; line-height:1.3; transition:background .15s,transform .15s; }
.button:hover { background:#f7f9fc; }
.button:active { transform:translateY(1px); }
.button.primary { border-color:var(--orange); background:var(--orange); color:white; box-shadow:0 3px 8px #f36b0b18; }
.button.primary:hover { background:#df5c04; }
.button.soft { border-color:#ffdcc1; background:var(--orange-soft); color:var(--orange-dark); }
.button.danger { background:var(--danger-soft); border-color:#f2cdd0; color:var(--danger); }
.button.dark { background:var(--navy); color:white; border-color:var(--navy); }
.button.full { width:100%; }
.button.small { min-height:44px; padding:9px 13px; font-size:.875rem; border-radius:12px; }
.button-row { display:flex; gap:10px; flex-wrap:wrap; }
.button-row > .button { flex:1; }
.button-row.nowrap { flex-wrap:nowrap; }
.text-button { border:0; background:none; color:var(--orange-dark); font-size:.875rem; font-weight:650; min-height:44px; padding:8px 10px; border-radius:10px; }
.text-button:hover { background:var(--orange-soft); }
.status { display:inline-flex; align-items:center; gap:5px; padding:5px 9px; border-radius:8px; font-size:.75rem; line-height:1.3; font-weight:650; flex:none; }
.status.neutral { background:#eff3f7; color:#52697d; }
.status.amber { background:var(--amber-soft); color:var(--amber); }
.status.green { background:var(--green-soft); color:var(--green); }
.status.danger { background:var(--danger-soft); color:var(--danger); }
.status.outline { background:#ffffff0b; border:1px solid #ffffff25; color:#e4edf4; }
.notice { border-radius:14px; padding:13px 15px; display:flex; gap:10px; align-items:flex-start; background:#edf3f8; color:#3e5b72; font-size:.875rem; }
.notice svg { width:19px; height:19px; margin-top:1px; }
.notice.amber { background:var(--amber-soft); color:var(--amber); }
.notice.green { background:var(--green-soft); color:var(--green); }
.notice.danger { background:var(--danger-soft); color:var(--danger); }
.notice + .button-row { margin-top:14px; }
.entry { padding:17px 22px; border-top:1px solid #e8edf2; }
.entry:first-child { border-top:0; }
.entry-head { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
.entry-title { display:flex; gap:11px; min-width:0; }
.entry-icon { width:37px; height:37px; border-radius:12px; background:var(--orange-soft); color:var(--orange); display:grid; place-items:center; flex:none; }
.entry-icon svg { width:20px; height:20px; }
.entry h3 { overflow-wrap:anywhere; }
.entry p { color:var(--muted); font-size:.8125rem; margin-top:3px; }
.entry-time { display:flex; align-items:center; gap:9px; margin:13px 0 0 48px; font-size:.875rem; color:#4d6275; flex-wrap:wrap; }
.entry-time strong { color:var(--text); font-weight:650; }
.entry-time .dot { color:#a0aebb; }
.entry-actions { display:flex; gap:8px; justify-content:flex-end; margin-top:13px; flex-wrap:wrap; }
.entry-actions .button { min-height:42px; padding:8px 13px; font-size:.8125rem; border-radius:11px; }
.entry-note { margin:12px 0 0; font-size:.875rem; color:var(--muted); white-space:pre-wrap; overflow-wrap:anywhere; }
.entry .notice { margin-top:12px; }
.empty { display:flex; flex-direction:column; align-items:center; padding:28px 20px 32px; text-align:center; gap:9px; }
.empty .empty-icon { width:54px; height:54px; display:grid; place-items:center; border-radius:18px; background:#f0f4f8; color:#71899c; margin-bottom:4px; }
.empty p { max-width:340px; font-size:.875rem; color:var(--muted); }
.quick-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:16px; }
.quick-button { min-height:90px; padding:14px; display:flex; flex-direction:column; gap:7px; align-items:flex-start; justify-content:center; text-align:left; border:1px solid var(--line); background:white; color:var(--text); border-radius:15px; font-size:.875rem; font-weight:600; }
.quick-button svg { color:var(--orange); }
.quick-button:hover { border-color:#f6bf94; background:#fffbf7; }
.reminder-row { display:grid; grid-template-columns:38px minmax(0,1fr) auto; gap:10px; align-items:center; padding:12px 0; border-top:1px solid #edf1f5; font-size:.875rem; }
.reminder-row:first-of-type { border:0; }
.reminder-symbol { width:38px; height:38px; border-radius:12px; display:grid; place-items:center; background:#f0f4f8; color:#5f778a; }
.reminder-row p { font-size:.8125rem; color:var(--muted); margin-top:2px; }
.reminder-time { font-variant-numeric:tabular-nums; font-weight:700; color:var(--text); max-width:110px; text-align:right; }
.bottom-nav { position:fixed; bottom:0; left:0; right:0; z-index:30; border-top:1px solid #dfe6ed; background:#ffffffef; backdrop-filter:blur(16px); padding:7px 12px calc(7px + env(safe-area-inset-bottom)); }
.nav-inner { max-width:550px; margin:auto; display:flex; gap:5px; }
.nav-item { flex:1; min-height:57px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; border:0; background:transparent; color:#708397; border-radius:14px; font-size:.75rem; font-weight:550; }
.nav-item svg { width:22px; height:22px; }
.nav-item.active { background:var(--orange-soft); color:var(--orange-dark); }
.nav-item span { position:relative; }
.nav-count { position:absolute; top:-9px; right:-15px; border-radius:8px; padding:1px 5px; background:var(--orange); color:white; font-size:.625rem; min-width:16px; }
.section-label { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:22px 2px 10px; font-size:.875rem; font-weight:650; }
.section-label small { color:var(--muted); font-weight:500; }
.stats-strip { display:grid; grid-template-columns:1fr 1fr 1fr; gap:12px; }
.stat { padding:18px; background:white; border:1px solid var(--line); border-radius:17px; }
.stat p { font-size:.8125rem; color:var(--muted); }
.stat strong { display:block; font-size:1.35rem; letter-spacing:-.035em; margin-top:3px; }
.filter-row { display:flex; align-items:flex-end; gap:12px; margin:18px 0; flex-wrap:wrap; }
.filter-row .field { flex:1; min-width:140px; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px 14px; }
.form-grid .wide { grid-column:1/-1; }
.field { display:flex; flex-direction:column; gap:7px; min-width:0; }
.field label,.field-label { font-size:.875rem; font-weight:650; color:#385064; }
.field input,.field select,.field textarea { min-height:48px; width:100%; min-width:0; padding:11px 13px; border:1px solid #cedae5; border-radius:12px; background:white; color:var(--text); }
.field input[readonly] { background:#f3f6fa; color:var(--muted); }
.field textarea { resize:vertical; min-height:90px; }
.field select { appearance:none; padding-right:38px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23536b7f' stroke-width='1.8' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 12px center; }
.field input::placeholder,.field textarea::placeholder { color:#8b9baa; }
.field .hint { font-size:.8125rem; color:var(--muted); }
.field-error { color:var(--danger); font-size:.875rem; }
.checkbox-row { display:flex; gap:10px; align-items:flex-start; padding:12px 0; font-size:.875rem; cursor:pointer; }
.checkbox-row input { margin-top:3px; width:18px; height:18px; accent-color:var(--orange); flex:none; }
.checkbox-row .muted { font-size:.8125rem; margin-top:3px; }
.day-picker { display:flex; gap:7px; flex-wrap:wrap; }
.day-choice { display:flex; flex-direction:column; align-items:center; justify-content:center; min-width:43px; min-height:48px; border:1px solid var(--line); border-radius:12px; font-size:.8125rem; cursor:pointer; }
.day-choice:has(input:checked) { border-color:var(--orange); background:var(--orange-soft); color:var(--orange-dark); }
.day-choice input { accent-color:var(--orange); }
.modal-backdrop { position:fixed; inset:0; background:#06152385; backdrop-filter:blur(3px); z-index:80; display:flex; align-items:center; justify-content:center; padding:24px; }
.modal { width:min(600px,100%); background:white; border-radius:24px; box-shadow:0 25px 90px #00000030; max-height:calc(100dvh - 48px); overflow:auto; overscroll-behavior:contain; }
.modal.large { width:min(720px,100%); }
.modal-head { padding:19px 22px 15px; display:flex; align-items:center; justify-content:space-between; gap:14px; border-bottom:1px solid var(--line); position:sticky; top:0; background:white; z-index:3; border-radius:24px 24px 0 0; }
.modal-head .icon-button { min-height:40px; min-width:40px; width:40px; height:40px; border:0; background:#f2f5f8; padding:8px; border-radius:13px; }
.modal-body { padding:22px; }
.modal-actions { margin-top:22px; display:flex; gap:10px; }
.modal-actions .button { flex:1; }
.modal .notice { margin-bottom:18px; }
.modal-form-error { margin-top:14px; }
.computed-total { border-radius:14px; padding:14px 16px; background:var(--orange-soft); display:flex; align-items:center; justify-content:space-between; gap:10px; color:var(--orange-dark); font-size:.875rem; }
.computed-total strong { font-size:1.15rem; }
.receipt-preview { width:100%; height:240px; background:#edf2f7; border-radius:15px; object-fit:contain; display:block; margin-bottom:18px; }
.receipt-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:15px; }
.receipt-tile { overflow:hidden; background:white; border:1px solid var(--line); border-radius:18px; }
.receipt-image-button { padding:0; width:100%; border:0; background:#e9eef4; display:block; height:180px; }
.receipt-image-button img { width:100%; height:100%; object-fit:contain; }
.receipt-tile-body { padding:15px; }
.receipt-tile-body strong { font-size:1.2rem; letter-spacing:-.025em; }
.receipt-tile-body p { font-size:.8125rem; color:var(--muted); margin-top:5px; }
.receipt-tile-body .status { margin-top:11px; }
.receipt-tile-body .button { margin-top:12px; width:100%; }
.upload-area { padding:24px; display:flex; align-items:center; gap:20px; }
.upload-icon { flex:none; width:66px; height:66px; border-radius:21px; display:grid; place-items:center; background:var(--orange-soft); color:var(--orange); }
.upload-icon svg { width:30px; height:30px; }
.upload-area p { margin-top:5px; font-size:.875rem; color:var(--muted); max-width:440px; }
.upload-actions { padding:0 24px 24px; }
.file-input { display:none; }
.ocr-text { background:#f4f6f9; border-radius:12px; padding:14px; font-size:.8125rem; white-space:pre-wrap; max-height:180px; overflow:auto; overflow-wrap:anywhere; margin-top:9px; }
details { margin-top:16px; font-size:.875rem; color:var(--muted); }
summary { cursor:pointer; min-height:32px; }
.segmented { display:flex; background:#e9eef4; border-radius:14px; padding:4px; gap:3px; margin-bottom:20px; overflow:auto; }
.segmented button { flex:1; min-height:43px; padding:8px 14px; border:0; background:transparent; border-radius:10px; color:#5d7185; font-weight:650; font-size:.875rem; white-space:nowrap; }
.segmented button.active { background:white; color:var(--navy); box-shadow:0 2px 4px #1026380a; }
.admin-title { display:flex; justify-content:space-between; gap:12px; align-items:center; margin-bottom:14px; }
.user-avatar { width:42px; height:42px; background:#edf2f7; color:#45617b; border:1px solid #dde5ee; border-radius:14px; display:grid; place-items:center; font-size:.875rem; font-weight:700; flex:none; }
.project-select-list { max-height:220px; overflow:auto; border:1px solid var(--line); border-radius:13px; padding:0 12px; }
.project-select-list .checkbox-row + .checkbox-row { border-top:1px solid #edf1f5; }
.notifications { position:fixed; z-index:110; right:20px; bottom:100px; width:min(380px,calc(100vw - 40px)); display:flex; flex-direction:column; gap:10px; pointer-events:none; }
.toast { background:var(--navy); color:white; padding:14px 17px; border-radius:14px; box-shadow:0 8px 26px #10263830; font-size:.875rem; display:flex; gap:10px; align-items:flex-start; }
.toast.error { background:#8b2c31; }
.login-screen { min-height:100dvh; display:grid; grid-template-columns:1fr 1fr; background:white; }
.login-brand { background:linear-gradient(145deg,#102638,#1d415a); color:white; padding:70px clamp(36px,6vw,95px); display:flex; flex-direction:column; justify-content:center; position:relative; overflow:hidden; }
.login-brand::before,.login-brand::after { content:""; position:absolute; border:1px solid #ffffff0b; border-radius:50%; width:500px; height:500px; right:-330px; bottom:-150px; pointer-events:none; }
.login-brand::after { width:650px; height:650px; right:-405px; bottom:-225px; }
.login-logo { width:180px; height:102px; object-fit:contain; object-position:left; margin-bottom:50px; }
.login-brand .eyebrow { color:#ffa24f; margin-bottom:14px; }
.login-brand h1 { font-size:clamp(2rem,4vw,3.2rem); max-width:500px; line-height:1.12; }
.login-brand p { margin-top:20px; color:#bed0de; max-width:400px; line-height:1.7; }
.login-feature { display:flex; align-items:center; gap:12px; margin-top:25px; color:#dfebf4; font-size:.9375rem; }
.login-feature svg { color:#ff9a4e; }
.login-main { display:flex; align-items:center; justify-content:center; padding:50px 35px; }
.login-card { width:100%; max-width:380px; }
.login-card h2 { font-size:1.6rem; letter-spacing:-.04em; }
.login-card > p { color:var(--muted); margin-top:9px; font-size:.9375rem; }
.login-card form { margin-top:28px; display:flex; flex-direction:column; gap:19px; }
.login-card .button { margin-top:5px; }
.login-help { margin-top:25px; border-top:1px solid var(--line); padding-top:20px; font-size:.8125rem; color:var(--muted); }
.inline-meta { font-size:.8125rem; color:var(--muted); margin-top:12px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media(min-width:1000px) {
  .bottom-nav { left:50%; right:auto; transform:translateX(-50%); bottom:20px; border:1px solid var(--line); width:520px; border-radius:22px; box-shadow:0 8px 35px #10263812; padding:6px; }
}
@media(max-width:700px) {
  .header-inner { min-height:78px; }
  .app-header { padding-left:16px; padding-right:16px; }
  .brand { gap:11px; } .brand img { width:80px; height:47px; }
  .brand-title { font-size:1rem; } .brand-note { font-size:.75rem; }
  .profile-name { display:none; } .header-actions { gap:5px; }
  .app-header .icon-button { min-width:40px; min-height:40px; border:0; padding:7px; }
  .page-shell { padding:22px 16px 112px; }
  .page-heading { align-items:flex-start; gap:8px; flex-wrap:wrap; }
  .page-heading h1 { font-size:1.65rem; }
  .page-heading p { font-size:.875rem; }
  .date-nav { gap:4px; }
  .grid-main { grid-template-columns:1fr; }
  .grid,.stack { gap:15px; }
  .card-pad { padding:18px; }
  .card-heading { padding:18px 18px 13px; }
  .card-footer { padding:13px 18px; }
  .entry { padding:16px 18px; }
  .hero { padding:20px; }
  .hero-value { font-size:2.3rem; }
  .stats-strip { gap:8px; }
  .stat { padding:14px 12px; border-radius:14px; }
  .stat p { font-size:.75rem; }
  .stat strong { font-size:1.1rem; }
  .receipt-grid { grid-template-columns:1fr 1fr; gap:12px; }
  .receipt-image-button { height:160px; }
  .receipt-tile-body { padding:13px; }
  .upload-area { padding:20px; gap:15px; }
  .upload-icon { width:54px; height:54px; border-radius:17px; }
  .upload-actions { padding:0 20px 20px; }
  .modal-backdrop { padding:14px; align-items:flex-end; }
  .modal { max-height:calc(100dvh - 28px); border-radius:24px; }
  .modal-body { padding:19px; }
  .modal-head { padding:16px 19px 13px; }
  .modal-actions { flex-wrap:wrap; }
  .modal-actions .button { min-width:130px; }
  .login-screen { display:block; background:var(--paper); }
  .login-brand { padding:28px 25px 36px; border-radius:0 0 28px 28px; }
  .login-logo { width:135px; height:76px; margin-bottom:20px; }
  .login-brand h1 { font-size:2.1rem; max-width:290px; }
  .login-brand p { font-size:.9375rem; margin-top:12px; }
  .login-feature { display:none; }
  .login-main { padding:30px 25px 45px; }
  .login-card h2 { font-size:1.3rem; }
  .login-card form { margin-top:24px; }
  .login-help { margin-top:22px; }
}
@media(max-width:380px) {
  .brand-divider,.brand-note { display:none; }
  .brand img { width:74px; }
  .header-actions .avatar { width:32px; height:32px; font-size:.75rem; }
  .form-grid { gap:14px 10px; }
  .field input,.field select { padding:11px 9px; }
  .entry-head { flex-wrap:wrap; }
  .entry-head > .status { margin-left:48px; }
  .entry-time { margin-left:0; }
  .button-row.nowrap { flex-wrap:wrap; }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior:auto !important; transition:none !important; animation-duration:.01ms !important; }
}

/* Worker calendar: accessible status indicated by color and text. */
.calendar-top,.calendar-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.calendar-controls{flex-wrap:wrap}.calendar-country{min-height:44px;border:1px solid var(--line);border-radius:12px;background:white;padding:7px}
.month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}.calendar-weekday{text-align:center;font-size:.78rem;color:var(--muted);font-weight:750;padding:9px 0}
.calendar-day{min-width:0;min-height:72px;border:1px solid var(--line);border-radius:13px;background:#fff;display:flex;flex-direction:column;justify-content:space-between;align-items:center;padding:9px 1px;color:var(--text);position:relative}
.calendar-day strong{font-size:1.04rem}.calendar-day small{font-size:.72rem}.calendar-day.worked{background:#e5f7ea;border-color:#65b788;color:#116333}.calendar-day.off{background:#fce8e7;border-color:#e8a29e;color:#a52c31}
.calendar-day.leave{background:#edf0f3;border-color:#adb6c2;color:#435362}.calendar-day.pending{background:#fff4db;border-color:#e6be66;color:#875900}.calendar-day.weekend,.calendar-day.holiday{background:#fff0e3;border-color:#ffbb85;color:#9e3f00}
.calendar-day.selected-day{outline:2px solid #163b53;outline-offset:1px}.calendar-day.today-mark strong{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px}
.country-marker{display:flex;gap:2px;font-size:.52rem}.country-marker b{border-radius:3px;background:var(--orange);color:white;padding:1px 2px}
.calendar-legend{display:flex;flex-wrap:wrap;gap:10px 15px;padding:13px 4px 20px;font-size:.8rem;color:var(--muted)}.calendar-legend span{display:flex;gap:6px;align-items:center}.calendar-legend i{width:12px;height:12px;border-radius:4px;display:inline-block}
.legend-worked{background:#65b788}.legend-off{background:#e8a29e}.legend-leave{background:#adb6c2}.legend-pending{background:#e6be66}.legend-holiday,.legend-weekend{background:#ffbb85}
.signature-pad{width:100%;height:auto;max-height:210px;border:2px dashed #b6c3ce;border-radius:16px;touch-action:none;background:#fff}
@media(max-width:390px){.month-grid{gap:4px}.calendar-day{min-height:58px}.calendar-day strong{font-size:.93rem}.calendar-day small{font-size:.65rem}.calendar-controls>.button{font-size:.83rem}}

/* Unified employee shell: navigation and header never participate in page scrolling. */
.staff-layout {
  --staff-control:44px; --staff-gap:10px; --staff-gutter:16px;
  --staff-radius:12px; --staff-stat-height:66px;
  display:grid; grid-template-rows:auto minmax(0,1fr) auto;
  height:100vh; height:100dvh; overflow:hidden;
}
.staff-layout .app-header { padding-inline:var(--staff-gutter); }
.staff-layout .header-inner { min-height:64px; height:64px; gap:8px; }
.staff-layout .brand { min-width:0; gap:9px; }
.staff-layout .brand img { width:76px; height:44px; }
.staff-layout .header-actions { gap:3px; flex:none; }
.staff-layout .header-actions .icon-button,
.staff-layout .profile-button { width:44px; height:44px; min-width:44px; min-height:44px; padding:0; justify-content:center; border:0; }
.staff-layout .avatar { width:34px; height:34px; border-radius:11px; }
.staff-layout .profile-name { display:none; }
.staff-layout .staff-page { width:100%; min-height:0; overflow-y:auto; overscroll-behavior:contain; scrollbar-gutter:stable; padding:12px var(--staff-gutter) 16px; }
.staff-layout .bottom-nav { position:relative; inset:auto; transform:none; width:100%; border:0; border-top:1px solid var(--line); border-radius:0; box-shadow:none; padding:5px var(--staff-gutter) calc(5px + env(safe-area-inset-bottom)); background:white; }
.staff-layout .nav-inner { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:4px; max-width:550px; }
.staff-layout .nav-item { width:100%; height:52px; min-height:52px; min-width:0; padding:4px 1px; gap:3px; border-radius:12px; font-size:.72rem; line-height:1.15; font-weight:600; }
.staff-layout .nav-item svg { width:21px; height:21px; }
.staff-layout .nav-item span { max-width:100%; overflow-wrap:anywhere; text-align:center; }
.staff-layout .nav-item.active { font-weight:600; }
.staff-heading { display:grid; grid-template-rows:14px 30px 18px; gap:2px; margin-bottom:var(--staff-gap); }
.staff-heading .eyebrow { font-size:.67rem; line-height:14px; color:var(--orange-dark); }
.staff-heading h1 { font-size:1.5rem; line-height:30px; }
.staff-period-label { font-size:.78rem; line-height:18px; color:var(--muted); }
.staff-period { height:64px; display:grid; align-items:center; gap:8px; margin-bottom:var(--staff-gap); border:1px solid var(--line); border-radius:var(--staff-radius); background:white; padding:5px; }
.staff-period-nav { grid-template-columns:44px minmax(0,1fr) 44px; }
.staff-period-nav .icon-button { min-width:44px; min-height:44px; width:44px; height:44px; padding:8px; border-radius:var(--staff-radius); }
.staff-period-center { display:flex; align-items:center; justify-content:center; gap:7px; min-width:0; text-align:center; font-size:.88rem; line-height:1.2; }
.staff-period-center svg { width:17px; height:17px; color:var(--orange-dark); }
.staff-date-range { grid-template-columns:repeat(2,minmax(0,1fr)); }
.staff-date-range .field { gap:2px; }
.staff-date-range .field label { font-size:.67rem; line-height:12px; }
.staff-date-range input { height:40px; min-height:40px; padding:4px 8px; font-size:.8rem; border-radius:9px; }
.staff-stats { grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--staff-gap); margin-bottom:var(--staff-gap); }
.staff-stat { display:flex; align-items:center; gap:7px; min-width:0; min-height:var(--staff-stat-height); padding:7px; border-radius:var(--staff-radius); background:#fff8f1; }
.staff-stat-icon { flex:none; display:grid; place-items:center; width:32px; height:32px; background:var(--orange-soft); color:var(--orange-dark); border-radius:9px; }
.staff-stat-icon svg { width:18px; height:18px; }
.staff-stat-text { min-width:0; }
.staff-stat p { font-size:.7rem; line-height:1.15; overflow-wrap:anywhere; }
.staff-stat strong { font-size:1.05rem; line-height:1.25; margin-top:3px; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.staff-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:stretch; gap:var(--staff-gap); margin:0 0 var(--staff-gap); }
.staff-actions > .button,.staff-actions > select { height:var(--staff-control); min-height:var(--staff-control); width:100%; min-width:0; padding:4px 8px; border-radius:var(--staff-radius); font-size:.8rem; line-height:1.15; }
.staff-actions > .button { gap:5px; }
.staff-actions svg { width:18px; height:18px; }
.staff-calendar-card,.staff-project { padding:10px; border-radius:var(--staff-radius); margin-bottom:var(--staff-gap); }
.staff-calendar-card .month-grid { gap:3px; }
.staff-calendar-card .calendar-weekday { padding:3px 0; font-size:.69rem; }
.staff-calendar-card .calendar-day { min-height:44px; height:44px; border-radius:8px; padding:2px 0; justify-content:center; gap:0; line-height:1.05; }
.staff-calendar-card .calendar-day strong { font-size:.88rem; }
.staff-calendar-card .calendar-day small { font-size:.65rem; }
.staff-calendar-card .country-marker { font-size:.49rem; line-height:1; }
.staff-calendar-card .calendar-legend { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px 6px; padding:8px 0 0; margin-top:6px; border-top:1px solid var(--line); font-size:.62rem; line-height:1.15; }
.staff-calendar-card .calendar-legend span { gap:3px; }
.staff-calendar-card .calendar-legend i { width:9px; height:9px; flex:none; }
.staff-project-heading { display:flex; gap:8px; align-items:center; margin-bottom:10px; }
.staff-project-heading > div { min-width:0; }
.staff-project-heading h2 { font-size:.98rem; overflow-wrap:anywhere; }
.staff-project-heading .card-subtitle { margin-top:2px; font-size:.75rem; }
.staff-project .staff-stats { margin-bottom:8px; }
.staff-project .staff-stat { min-height:var(--staff-stat-height); }
.staff-work,.staff-report-work { padding:10px; }
.staff-work .entry-head { flex-wrap:nowrap; gap:6px; }
.staff-work .entry-title { gap:7px; }
.staff-work .entry-head > .status { margin-left:0; }
.staff-work .entry-title h3 { font-size:.88rem; }
.staff-work .entry-icon,.staff-project .entry-icon { width:30px; height:30px; border-radius:9px; }
.staff-work-details { display:flex; align-items:center; justify-content:space-between; gap:5px; margin-top:8px; padding-top:8px; border-top:1px solid var(--line); font-size:.72rem; font-variant-numeric:tabular-nums; }
.staff-work-details span { display:flex; gap:4px; align-items:center; }
.staff-work-details svg { width:15px; height:15px; color:var(--muted); }
.staff-duration { color:var(--orange-dark); }
.staff-report-day { display:flex; justify-content:space-between; gap:6px; align-items:center; font-size:.82rem; }
.staff-page .section-label { margin:12px 0 6px; }
.staff-project > .button { margin-top:8px; }
@media(max-width:380px) {
  .staff-layout { --staff-gutter:12px; --staff-gap:8px; }
  .staff-layout .brand-note { display:none; }
  .staff-layout .staff-stat-icon { width:26px; height:26px; }
  .staff-layout .nav-item { font-size:.68rem; }
  .staff-calendar-card { padding:7px; }
  .staff-calendar-card .month-grid { gap:2px; }
  .staff-calendar-card .calendar-legend { font-size:.59rem; }
}
@media(min-width:701px) {
  .staff-layout .header-inner { height:72px; }
  .staff-layout .staff-page { max-width:760px; }
}


/* Stable viewport slots: automatic block margins must never center short pages. */
.staff-layout .staff-page { min-width:0; height:100%; align-self:stretch; margin:0 auto; }
.staff-layout .nav-item { display:grid; grid-template-rows:21px minmax(0,1fr); justify-items:center; align-items:center; align-content:center; }
.staff-layout .nav-item span { align-self:center; }
.staff-layout .staff-period { padding:2px 5px; }
.staff-layout .staff-date-range .field input { height:44px;min-height:44px; }
.staff-layout .staff-actions > .button { overflow-wrap:anywhere; }
.staff-layout .staff-actions > .calendar-country { font-weight:600; color:var(--text); }
.staff-layout .staff-work .entry-head > .status { max-width:42%;white-space:normal;overflow-wrap:anywhere;text-align:center; }
.staff-layout .staff-work-details { flex-wrap:wrap; }
.staff-layout .calendar-day.selected-day,.staff-layout .calendar-day:focus-visible { outline-offset:-2px; }
/* Compact common heading for all mobile tabs; preserve 44px main touch controls. */
@media(max-width:700px) {
  .staff-layout { --staff-gap:7px; --staff-stat-height:56px; }
  .staff-layout .staff-page { padding-top:8px;padding-bottom:8px; }
  .staff-layout .staff-heading { grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:12px 28px;column-gap:6px; }
  .staff-layout .staff-heading .eyebrow { grid-column:1/-1;line-height:12px; }
  .staff-layout .staff-heading h1 { font-size:1.35rem;line-height:28px; }
  .staff-layout .staff-period-label { text-align:right;align-self:center;line-height:1.15; }
  .staff-layout .staff-period { height:58px; }
  .staff-layout .staff-date-range .field input { height:38px;min-height:38px; }
  .staff-layout .staff-stat { padding:5px 7px; }
  .staff-layout .staff-calendar-card { padding:7px; }
  .staff-layout .staff-calendar-card .calendar-legend { padding-top:5px;margin-top:5px; }
}
@media(max-height:700px) and (max-width:700px) {
  .staff-layout { --staff-gap:5px;--staff-stat-height:48px; }
  .staff-layout .header-inner { height:56px;min-height:56px; }
  .staff-layout .staff-page { padding-top:6px;padding-bottom:6px; }
  .staff-layout .staff-heading { grid-template-rows:12px 24px; }
  .staff-layout .staff-heading h1 { font-size:1.25rem;line-height:24px; }
  .staff-layout .staff-period { height:52px; }
  .staff-layout .staff-date-range .field input { height:34px;min-height:34px; }
  .staff-layout .staff-calendar-card { padding:5px; }
  .staff-layout .staff-calendar-card .calendar-day { height:36px;min-height:36px; }
  .staff-layout .staff-calendar-card .calendar-weekday { padding:2px 0; }
  .staff-layout .staff-calendar-card .month-grid { gap:2px; }
  .staff-layout .staff-calendar-card .calendar-legend { gap:3px 4px; }
}
@media(max-width:350px) {
  .staff-layout .staff-stat-icon { display:none; }
  .staff-layout .staff-stat { padding:6px 9px; }
  .staff-layout .brand img { width:64px; }
}

/* Public legal notices stay accessible before sign-in and before WhatsApp consent. */
.legal-links{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;margin:10px 0;font-size:.8rem}.legal-links a{color:inherit;text-decoration:underline;text-underline-offset:3px;padding:8px 0;overflow-wrap:anywhere}.legal-links a:focus-visible{outline:2px solid #e56910;outline-offset:3px}
