/* Selected design 06: soft surfaces, circular chevrons, compact progress. */
html[data-company="heuer"]{--company-accent:#df293c;--company-tint:#fff3f5;--company-accent-ink:#fff;}
html[data-company="hhd"]{--company-accent:#f18700;--company-tint:#fff5e8;--company-accent-ink:#18263b;}
html[data-theme] body :is(#homeApp,#workApp,#reportsApp,#wageApp) :is(.modern-card,.report-editor,.wage-panel,.entry-panel,.company-picker){border:1px solid #e4e8ec!important;border-radius:22px!important;box-shadow:0 8px 24px rgba(24,38,59,.045)!important;}
html[data-theme] body :is(#reportsApp,#wageApp) details.compact-archive{border:1px solid #e4e8ec!important;border-radius:20px!important;box-shadow:0 6px 20px rgba(24,38,59,.045)!important;}
html[data-theme] body :is(#reportsApp,#wageApp) details.compact-archive>summary{min-height:60px!important;padding:10px 16px!important;gap:12px!important;border:0!important;border-radius:20px!important;background:#fff!important;font-size:16px!important;line-height:1.3!important;}
html[data-theme] body :is(#homeApp,#workApp,#reportsApp,#wageApp) details>summary::after,
html[data-theme] body dialog details>summary::after{content:''!important;display:block!important;box-sizing:border-box!important;width:36px!important;height:36px!important;min-width:36px!important;flex:0 0 36px!important;margin:0 0 0 auto!important;padding:0!important;border:1px solid #edf0f3!important;border-radius:50%!important;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5' fill='none' stroke='%23243242' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/22px 22px no-repeat!important;box-shadow:0 3px 10px rgba(24,38,59,.10)!important;transform:rotate(0)!important;transition:transform .2s ease,box-shadow .2s ease!important;}
html[data-theme] body :is(#homeApp,#workApp,#reportsApp,#wageApp) details[open]>summary::after,
html[data-theme] body dialog details[open]>summary::after{transform:rotate(180deg)!important;}
html[data-theme] body #workApp :is(.history-month,.history-day)>summary::before{content:none!important;}
html[data-theme] body :is(#workApp,#reportsApp,#wageApp) .guided-heading{padding:14px 16px!important;border:1px solid #e4e8ec!important;border-top:1px solid #e4e8ec!important;border-radius:20px!important;box-shadow:0 6px 20px rgba(24,38,59,.06)!important;margin-bottom:16px!important;}
html[data-theme] body :is(#workApp,#reportsApp,#wageApp) .guided-status-row{margin-bottom:8px!important;gap:8px!important;}
html[data-theme] body :is(#workApp,#reportsApp,#wageApp) .guided-counter{font-size:13px!important;}
html[data-theme] body :is(#workApp,#reportsApp,#wageApp) .guided-remaining{font-size:12px!important;padding:4px 8px!important;background:var(--company-tint)!important;}
html[data-theme] body :is(#workApp,#reportsApp,#wageApp) .guided-heading>strong{font-size:18px!important;}
html[data-theme] body :is(#workApp,#reportsApp,#wageApp) .guided-progress{gap:5px!important;margin-top:12px!important;}
html[data-theme] body :is(#workApp,#reportsApp,#wageApp) .guided-progress span{height:5px!important;min-height:5px!important;padding:0!important;border:0!important;border-radius:20px!important;font-size:0!important;line-height:0!important;color:transparent!important;background:#e5e9ed!important;outline:none!important;box-shadow:none!important;}
html[data-theme] body :is(#workApp,#reportsApp,#wageApp) .guided-progress :is(.current,.done){background:var(--company-accent)!important;}
html[data-theme] body #reportsApp #reportSaveStatus.guided-save-status{font-size:12px!important;margin-top:10px!important;padding-top:9px!important;line-height:1.4!important;}
html[data-theme] body :is(#homeApp,#workApp,#reportsApp,#wageApp) summary:focus-visible{outline:2px solid var(--company-accent)!important;outline-offset:3px!important;}
@media(prefers-reduced-motion:reduce){html[data-theme] body details>summary::after{transition:none!important;}}

html[data-theme] body #homeApp>.welcome-logo{display:block;width:min(330px,85%);height:110px;object-fit:contain;margin:12px auto 24px;}
html[data-theme] body :is(#profileForm,#cloudBackupDialog)>.welcome-logo{display:block;width:min(320px,90%);height:110px;object-fit:contain;margin:8px auto 22px;}
html[data-theme] body .welcome-greeting{text-align:center;font-size:26px!important;font-weight:750!important;margin:0 0 18px!important;color:#18263b!important;}
html[data-theme] body #homeApp .home-intro{text-align:center!important;margin-bottom:22px!important;}
html[data-theme] body #homeApp #homeGreeting{font-size:clamp(24px,6vw,32px)!important;line-height:1.2!important;}

.hours-day-selection{margin-bottom:20px}.hours-day-nav{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:8px}.hours-day-nav strong{text-align:center;font-size:15px}.hours-day-nav button{min-height:44px;border:1px solid #e4e8ec;border-radius:50%;background:white;color:#18263b;font-size:26px}.hours-day-records p{font-size:13px;color:#657080}.hours-day-records article{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px 0;border-bottom:1px solid #e4e8ec}.hours-day-records article>span{grid-column:1/-1;font-size:14px;font-weight:650}.hours-day-records button{font-size:13px!important;min-height:40px!important;padding:8px!important;}

html[data-theme] body #photoUploadProgress{margin:14px 0;padding:14px;border:1px solid #e4e8ec;border-radius:16px;background:var(--company-tint,#fff5e8);}#photoUploadProgress[hidden]{display:none!important}#photoUploadText{margin:0 0 10px;font-size:14px;font-weight:700}#photoUploadBar{display:block;width:100%;height:10px;border:0;border-radius:10px;overflow:hidden;accent-color:var(--company-accent,#f18700)}#photoUploadBar::-webkit-progress-bar{background:#e5e9ed}#photoUploadBar::-webkit-progress-value{background:var(--company-accent,#f18700);border-radius:10px}#photoUploadBar::-moz-progress-bar{background:var(--company-accent,#f18700)}#photoUploadDetail{display:block;margin-top:10px;font-size:12px;line-height:1.4}#photoUploadProgress[data-state=failed]{border-color:#c9344c;}
html[data-theme] body dialog#backupDialog{width:min(560px,calc(100% - 24px))!important;max-height:88dvh!important;padding:18px!important;border:1px solid #e1e6eb!important;border-radius:24px!important;background:#f7f9fb!important;box-shadow:0 18px 60px #17233426!important;}
html[data-theme] body #backupDialog .backup-header h2{font-size:22px!important;margin:0 0 6px!important;}
html[data-theme] body #backupDialog p{font-size:14px!important;line-height:1.45!important;margin:10px 0!important;}
html[data-theme] body #backupDialog .backup-close{width:38px;height:38px;border:1px solid #e1e6eb!important;border-radius:50%!important;background:white!important;}
html[data-theme] body #backupDialog :is(.backup-zip,.backup-option){padding:16px!important;border:1px solid #e1e6eb!important;border-radius:18px!important;background:white!important;margin:10px 0!important;box-shadow:0 4px 14px #17233406!important;}
html[data-theme] body #backupDialog .backup-option{padding:0!important;}
html[data-theme] body #backupDialog .backup-option>summary{padding:12px 14px!important;min-height:48px!important;font-size:15px!important;}
html[data-theme] body #backupDialog .backup-option-body{padding:0 14px 14px!important;border-top:1px solid #edf0f3!important;}
html[data-theme] body #backupDialog h3{font-size:19px!important;margin:6px 0!important;}
html[data-theme] body #backupDialog .backup-kicker{font-size:11px!important;letter-spacing:.08em;color:var(--company-accent)!important;}
html[data-theme] body #backupDialog :is(button:not(.backup-close),a.backup-download-link){width:100%!important;min-height:44px!important;margin:8px 0 0!important;padding:10px 12px!important;border-radius:13px!important;font-size:14px!important;line-height:1.25!important;text-align:center!important;box-shadow:none!important;}
html[data-theme] body #backupDialog :is(button,a)::after{content:none!important;}
html[data-theme] body #backupDialog #createBackup{background:var(--company-accent)!important;border-color:var(--company-accent)!important;color:#172334!important;}
html[data-theme] body #backupDialog #backupMessage{background:#fff!important;border-radius:13px!important;padding:12px!important;margin-top:14px!important;overflow-wrap:anywhere;}
html[data-theme] body #backupDialog .backup-hint{color:#63717b!important;font-size:12px!important;}
html[data-theme] body #backupDialog [hidden]{display:none!important;}

html[data-theme] body #backupDialog #backupStartStatus{margin:12px 0!important;padding:12px!important;border:1px solid #f4dbb9;border-radius:12px;background:#fff5e8;font-size:14px!important;font-weight:650;line-height:1.4!important;}html[data-theme] body #backupDialog #backupStartStatus[hidden]{display:none!important;}

/* Expense selection stays explicit in every theme and after draft restore. */
html[data-theme] body #expenseFieldset .choice input + span{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;}
html[data-theme] body #expenseFieldset .choice input + span::after{content:'✓'!important;display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 24px;width:24px;height:24px;border-radius:50%;background:#fff;color:#176548;font-weight:900;font-size:20px;visibility:hidden;}
html[data-theme] body #expenseFieldset .choice input:checked + span::after{visibility:visible!important;}
html[data-theme] body #expenseFieldset .choice input:checked + span{border:2px solid #176548!important;}
/* Dedicated receipts area */
html[data-theme] body #receiptsArea{width:min(94vw,720px)!important;max-height:90dvh!important;overflow:auto!important;padding:22px!important;border-radius:20px!important;box-sizing:border-box!important;}
#receiptsArea .receipts-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}#receiptsArea h2{font-size:1.35rem}#receiptsArea label{display:flex;flex-direction:column;gap:6px;margin:14px 0}#receiptsArea input:not([type=file]):not([type=checkbox]){width:100%;min-width:0;box-sizing:border-box;min-height:46px}#receiptsArea .receipt-all-weeks{flex-direction:row;align-items:center}#receiptsArea .receipt-card{border:1px solid #d8e1df;border-radius:14px;padding:14px;margin:12px 0;overflow-wrap:anywhere}#receiptsArea .receipt-card-actions{display:flex;flex-wrap:wrap;gap:8px}#receiptsArea .receipt-card-actions button{flex:1;min-width:105px}#receiptsArea .receipt-actions{display:flex;flex-wrap:wrap;gap:10px}#receiptsArea .receipt-actions label{flex:1;min-width:135px}#receiptsArea #areaReceiptStatus{white-space:pre-wrap;overflow-wrap:anywhere}.open-receipts-area{margin:14px 0!important;width:100%}

html[data-theme] body.overview-active #workApp>section.receipts-week-open[aria-labelledby="weeklyTitle"]{display:block!important;}
html[data-theme] body #receiptsArea .receipt-all-weeks{justify-content:flex-start!important;gap:10px!important}html[data-theme] body #receiptsArea #receiptAllWeeks{width:22px!important;height:22px!important;min-height:22px!important;flex:0 0 22px!important;margin:0!important}html[data-theme] body #receiptsArea .receipt-card-actions{display:grid!important;grid-template-columns:1fr 1fr!important}html[data-theme] body #receiptsArea .receipt-card-actions button{min-width:0!important;font-size:14px!important;padding:10px 6px!important;white-space:nowrap!important}html[data-theme] body #receiptsArea .receipt-card-actions button:last-child{grid-column:1/-1}html[data-theme] body #receiptsArea .receipt-actions label{border:1px solid #cbd8d3!important;border-radius:12px!important;padding:14px 8px!important;background:#f0f6f3!important;color:#173f30!important;text-align:center!important;cursor:pointer}html[data-theme="dark"] body #receiptsArea .receipt-actions label{background:#14251e!important;color:#fff!important}
/* Compact receipts workspace, v244 */
html[data-theme] body #receiptsArea{padding:16px!important;font-size:14px!important;line-height:1.45!important;max-height:92dvh!important;}
html[data-theme] body #receiptsArea [hidden]{display:none!important;}
html[data-theme] body #receiptsArea .receipts-heading{margin-bottom:14px!important;}
html[data-theme] body #receiptsArea h2{font-size:20px!important;line-height:1.2!important;margin:0!important;}
html[data-theme] body #receiptsArea #closeReceipts{width:40px!important;min-width:40px!important;min-height:40px!important;height:40px!important;padding:0!important;font-size:25px!important;}
html[data-theme] body #receiptsArea label{margin:10px 0!important;font-size:13px!important;gap:5px!important;}
html[data-theme] body #receiptsArea input:not([type=file]):not([type=checkbox]){height:44px!important;min-height:44px!important;font-size:16px!important;padding:8px 10px!important;border-radius:10px!important;}
html[data-theme] body #receiptsArea .receipt-week-field{display:grid!important;grid-template-columns:auto 1fr!important;align-items:center!important;gap:14px!important;}
html[data-theme] body #receiptsArea #receiptWeekRange{font-size:13px!important;margin:6px 0 14px!important;color:#52675f!important;}
html[data-theme] body #receiptsArea .receipt-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;background:#edf2f0;border-radius:12px;padding:4px;margin-bottom:14px;}
html[data-theme] body #receiptsArea .receipt-tabs button{min-height:42px!important;font-size:14px!important;padding:8px!important;border:0!important;border-radius:9px!important;background:transparent!important;box-shadow:none!important;color:#294439!important;}
html[data-theme] body #receiptsArea .receipt-tabs button[aria-selected=true]{background:#fff!important;box-shadow:0 1px 5px #18352a18!important;font-weight:800!important;}
html[data-theme] body #receiptsArea #receiptCount{font-size:12px;margin-left:4px;}
html[data-theme] body #receiptsArea #receiptOptional{padding:10px 12px!important;border:1px solid #d8e2dd!important;border-radius:12px!important;margin:12px 0!important;}
html[data-theme] body #receiptsArea #receiptOptional summary{padding:0!important;font-size:13px!important;min-height:34px!important;}
html[data-theme] body #receiptsArea .receipt-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;}
html[data-theme] body #receiptsArea .receipt-actions label{min-width:0!important;margin:0 0 10px!important;padding:14px 6px!important;min-height:64px!important;justify-content:center!important;font-size:13px!important;}
html[data-theme] body #receiptsArea .receipt-card{padding:12px!important;margin:10px 0!important;}
html[data-theme] body #receiptsArea .receipt-card strong{font-size:14px!important;}html[data-theme] body #receiptsArea .receipt-card p{font-size:12px!important;margin:6px 0 10px!important;}
html[data-theme] body #receiptsArea .receipt-card-actions button:last-child{grid-column:auto!important;}
html[data-theme] body #receiptsArea .receipt-card-actions button{font-size:12px!important;min-height:40px!important;}
html[data-theme] body #receiptsArea :is(#prepareReceiptsPdf,#receiptsToWeek){width:100%!important;padding:10px!important;font-size:14px!important;min-height:44px!important;}
html[data-theme] body #receiptsArea #receiptPdfReady{border:1px solid #b9d5c8;background:#f0f7f3;padding:12px;border-radius:12px;margin:12px 0;}
html[data-theme] body #receiptsArea .receipt-pdf-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;}
html[data-theme] body #receiptsArea .receipt-pdf-actions button{font-size:12px!important;padding:10px 5px!important;min-height:44px!important;}
html[data-theme] body #receiptsArea #areaReceiptStatus:empty{display:none!important;}
html[data-theme] body #receiptsArea small{font-size:12px!important;}
html[data-theme="dark"] body #receiptsArea :is(.receipt-tabs,#receiptPdfReady){background:#15251e!important;color:#fff!important;}
html[data-theme="dark"] body #receiptsArea .receipt-tabs button{color:#fff!important;}html[data-theme="dark"] body #receiptsArea .receipt-tabs button[aria-selected=true]{background:#285340!important;}html[data-theme="dark"] body #receiptsArea #receiptWeekRange{color:#c6d8cf!important;}
