/*
 * WORKHOUR
 * Fil: workhour-report.css
 * Version: 2.4.1
 * Senast ändrad: 2026-10-02
 * Beskrivning: Tidrapporteringens formulär, dialoger och responsiva layout.
 * Ändring 2.4.1: Projektsammanställning visar responsiv summering per tidskategori.
 * Ändring 2.4.0: Kompakt mobilväljare för uppgifter i tidrapporteringen.
 * VIKTIGT: Ändringar ska alltid göras med denna version eller en senare som utgångspunkt.
 */
/* Report components share the application's palette and upload control. */
.wh-report-panel { max-height:92dvh; overflow:hidden; display:flex; flex-direction:column; }
#timeDialog #report-create-host { min-height:0; display:flex; flex-direction:column; }
#timeDialog .wh-report-form { min-height:0; display:flex; flex-direction:column; overflow:hidden; }
#timeDialog .wh-report-fields { min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:12px 4px 18px; }
#timeDialog .wh-report-form > .dialog-actions { flex-shrink:0; margin:0; padding:14px 0 max(14px,env(safe-area-inset-bottom)); background:var(--card); border-top:1px solid var(--border); }
.wh-report-panel > header { flex-shrink:0; }
.wh-report-form { display:block; }
.wh-report-form .wh-report-for-person { flex-shrink:0; margin:8px 0; padding:10px 12px; border-radius:10px; background:var(--accent); font-weight:650; }
.wh-report-form .wh-report-select.select2-hidden-accessible { width:1px!important; padding:0!important; }
.wh-report-form .select2-selection__arrow { right:12px!important; }
.wh-report-form .wh-report-uploads .wh-upload-buttons { display:flex; flex-wrap:nowrap; width:100%; gap:7px; }
.wh-report-form .wh-report-uploads label.wh-upload-pick { display:flex; flex:1; justify-content:center; align-items:center; white-space:nowrap; min-width:0; padding:10px 6px; gap:6px; background:var(--card); color:var(--foreground); border-color:var(--border); }
.wh-report-form .wh-upload-pick i { color:var(--primary); }
.wh-report-form .wh-report-options,.wh-report-form .wh-report-clock-times { border:1px solid var(--border); border-radius:14px; background:var(--muted); }
.wh-report-form .wh-report-options > summary,.wh-report-form .wh-report-clock-times > summary { list-style:none; padding:14px 16px; display:flex; align-items:center; justify-content:space-between; gap:10px; }
.wh-report-form summary::-webkit-details-marker { display:none; }
.wh-report-options > summary::after,.wh-report-clock-times > summary::after { content:''; width:7px; height:7px; border-right:1.5px solid var(--muted-foreground); border-bottom:1.5px solid var(--muted-foreground); transform:rotate(45deg); margin-right:3px; flex-shrink:0; }
.wh-report-options[open] > summary::after,.wh-report-clock-times[open] > summary::after { transform:rotate(225deg); }
.wh-report-context-person { display:block; font-size:12px; color:var(--muted-foreground); margin-top:4px; font-weight:400; }
.wh-report-context-fields { padding:0 14px 14px; display:grid; gap:14px; }
.wh-report-context-fields p,.wh-report-clock-times p { font-size:12px; color:var(--muted-foreground); }
.wh-report-clock-times .wh-report-two { padding:0 12px; }
.wh-report-clock-times > p,.wh-report-clear-times { margin:10px 12px; }
.wh-report-clock-button { display:flex; align-items:center; gap:10px; padding:12px; border:1px solid var(--border); border-radius:13px; background:var(--card); color:var(--foreground); text-align:left; }
.wh-report-clock-button > span { flex:1; }
.wh-report-clock-button small { display:block; color:var(--muted-foreground); font-size:12px; }
.wh-report-clock-button strong { font-size:19px; }
.wh-report-clock-button .fa-clock { color:var(--primary); font-size:19px; }
.wh-report-clock-button .fa-chevron-down { font-size:10px; color:var(--muted-foreground); margin-right:3px; }
#reportClockDialog { padding-top:46px; }
.wh-report-clock-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.wh-report-clock-grid button { padding:14px 4px; border:1px solid var(--border); border-radius:12px; background:var(--card); color:var(--foreground); font-weight:650; }
.wh-report-clock-grid button[aria-pressed=true] { background:var(--primary); color:var(--primary-foreground); }
.wh-report-fields { display:grid; gap:18px; padding:20px 0; }
.wh-report-form label,.wh-report-popup label,.wh-report-filters label { display:grid; gap:7px; font-weight:600; }
.wh-report-form select,.wh-report-form input:not([type=checkbox]):not([type=file]),.wh-report-form textarea,.wh-report-popup input,.wh-report-popup select,.wh-report-popup textarea,.wh-report-filters input,.wh-report-filters select { width:100%; padding:12px; border:1px solid var(--border,#d9dfe2); border-radius:10px; background:var(--card,#fff); color:inherit; font:inherit; box-sizing:border-box; }
.wh-report-form textarea,.wh-report-popup textarea { resize:vertical; }
.wh-report-form summary { cursor:pointer; font-weight:650; padding:8px 0; }
.wh-report-form details[open] > label { margin-top:12px; }
.wh-report-stepper { display:flex; gap:12px; align-items:center; margin:10px 0; padding:5px; border:1px solid var(--border); border-radius:15px; background:var(--muted); }
.wh-report-stepper button { min-height:48px; min-width:48px; border-radius:12px; border:1px solid var(--border,#d9dfe2); background:var(--card,#fff); color:inherit; font-size:23px; }
.wh-report-stepper .wh-report-duration { flex:1; font-size:24px; font-weight:750; border:0; background:transparent; }
.wh-report-policy,.wh-report-translation-status { color:var(--muted-foreground,#66716f); display:block; font-size:12px; }
.wh-report-uploads h3 { font-size:16px; font-weight:700; margin:0 0 12px; }
.wh-report-two,.wh-report-filters { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.wh-report-actions { display:flex; gap:10px; flex-wrap:wrap; margin:18px 0; }
.wh-report-page { max-width:900px; margin-inline:auto; padding-bottom:24px; }
.wh-report-detail-summary { font-size:16px; font-weight:650; line-height:1.7; margin:16px 0; }
.wh-report-text { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.6; margin:8px 0; }
.wh-report-list,.wh-report-recent-list { display:grid; gap:10px; margin:14px 0; }
.wh-report-card { position:relative; display:grid; gap:5px; width:100%; padding:16px 35px 16px 16px; border:1px solid var(--border,#d9dfe2); border-radius:14px; background:var(--card,#fff); text-align:left; color:inherit; cursor:pointer; }
.wh-report-card > span,.wh-report-card > small { font-size:13px; }
.wh-report-card .wh-report-arrow { position:absolute; right:14px; top:calc(50% - 16px); font-size:28px; }
.wh-report-card .wh-report-text { font-size:14px; margin:3px 0; }
.wh-report-card:hover { border-color:var(--primary,#6b1524); }
.wh-report-file { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:8px 0; overflow-wrap:anywhere; }
.wh-report-file a { display:flex; align-items:center; gap:10px; color:inherit; min-width:0; }
.wh-report-file img { width:70px; height:70px; object-fit:cover; border-radius:8px; }
.wh-report-popup { box-sizing:border-box; width:min(480px,calc(100vw - 32px)); max-height:90dvh; overflow:auto; padding:26px; border:1px solid var(--border,#d9dfe2); border-radius:20px; background:var(--card,#fff); color:var(--text,#17202a); box-shadow:0 20px 80px #0005; margin:auto; }
.wh-report-popup::backdrop { background:#10182099; backdrop-filter:blur(3px); }
.wh-report-popup p { line-height:1.6; white-space:pre-wrap; }
.wh-report-popup h2 { margin-top:0; }
.wh-report-popup button,.wh-report-page button:not(.wh-report-card),.wh-report-geo button,.wh-report-original { cursor:pointer; }
.wh-report-popup .save-btn { min-height:44px; }
.wh-report-nearby { display:flex; flex-wrap:wrap; gap:8px; }
.wh-report-form .wh-report-location-consent { display:flex; align-items:center; font-size:14px; margin-top:12px; }
.wh-report-location-consent input { width:18px; height:18px; }
.wh-report-page [hidden],.wh-report-form [hidden],.wh-report-popup [hidden] { display:none !important; }
.wh-report-page button:disabled,.wh-report-form button:disabled { opacity:.55; cursor:wait; }
.wh-report-history { padding-left:20px; line-height:1.8; }
.dark .wh-report-popup,.dark .wh-report-card,.dark .wh-report-form select,.dark .wh-report-form textarea,.dark .wh-report-form input:not([type=checkbox]),.dark .wh-report-popup input,.dark .wh-report-popup textarea,.dark .wh-report-popup select,.dark .wh-report-filters input,.dark .wh-report-filters select,.dark .wh-report-stepper button { background:#192220; color:#edf3ef; border-color:#39453f; }
@media(min-width:700px) { .wh-report-filters { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:480px) { .wh-report-popup { padding:20px; } .wh-report-actions > button { flex:1; } }
#reportSettingsDialog .wh-report-admin {border:1px solid #e4e6ed;border-radius:14px;padding:14px;margin-bottom:20px;background:#fafbfe}
#reportSettingsDialog .wh-report-admin h3 {font-size:17px;margin:0 0 5px}
#reportSettingsDialog .wh-report-admin p {font-size:12px;color:#727a86}
#reportSettingsDialog .wh-report-admin label {display:block;font-size:12px;margin:10px 0}
#reportSettingsDialog .wh-report-admin select {display:block;width:100%;margin-top:4px;border:1px solid #dce0e8;border-radius:9px;padding:10px;background:white}
#reportSettingsDialog .wh-report-admin-save {background:#ad463f;color:white;border:0;border-radius:10px;padding:11px 15px}

/* Projektrapport: fristående sammanställning för valt projekt. */
.wh-project-summary-back{border:0;background:transparent;cursor:pointer;padding:10px 0;font:inherit}
.wh-project-summary-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}
.wh-project-summary-stats>div{padding:18px;border-radius:14px;background:var(--card-bg,#fff);border:1px solid rgba(120,130,140,.18)}
.wh-project-summary-stats small{display:block;opacity:.75;margin-bottom:8px}
.wh-project-summary-stats strong{font-size:1.35rem}
.wh-project-summary-table-wrap{overflow-x:auto}
.wh-project-summary-table{width:100%;border-collapse:collapse;text-align:left}
.wh-project-summary-table th,.wh-project-summary-table td{padding:12px 10px;border-bottom:1px solid rgba(120,130,140,.2);vertical-align:top}
.wh-project-summary-table td:last-child,.wh-project-summary-table th:last-child{text-align:right;white-space:nowrap}
.wh-project-summary-table td strong{display:block}
.wh-project-summary-table td div{white-space:pre-wrap;overflow-wrap:anywhere;margin-top:4px;opacity:.8}
.wh-project-summary-table tfoot th{font-weight:700}
@media(max-width:600px){.wh-project-summary-table{font-size:13px}.wh-project-summary-table th,.wh-project-summary-table td{padding:10px 6px}.wh-project-summary-stats>div{padding:14px}}

/* Projektrapport UX: responsiva kort, tabell och fritext-/taggsökning. */
.wh-project-summary-page{min-width:0}
.wh-project-summary-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.wh-project-summary-share{border:1px solid var(--border,#d9dfe2);background:var(--card,#fff);color:inherit;border-radius:12px;padding:11px 14px;white-space:nowrap;font:inherit;font-weight:650}
.wh-project-summary-status:empty,.wh-project-summary-filter-status:empty{display:none}
.wh-project-summary-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:16px 0 6px}
.wh-project-summary-search-wrap{display:flex;align-items:center;gap:10px;flex:1 1 220px;min-width:0;padding:0 13px;border:1px solid var(--border,#d9dfe2);background:var(--card,#fff);border-radius:12px}
.wh-project-summary-search{font-size:16px!important;min-width:0;width:100%;padding:13px 0;background:transparent;color:inherit;border:0;outline:0}
.wh-project-summary-search-wrap:focus-within{outline:2px solid var(--primary,#6b1524);outline-offset:1px}
.wh-project-summary-tags{display:flex;gap:7px;flex-wrap:wrap;order:3;flex-basis:100%}
.wh-project-summary-tag{border:1px solid var(--border,#d9dfe2);border-radius:100px;background:var(--card,#fff);color:inherit;padding:6px 11px;font:inherit;font-size:13px}
.wh-project-summary-view-toggle{display:flex;padding:4px;border:1px solid var(--border,#d9dfe2);border-radius:12px;background:var(--card,#fff)}
.wh-project-summary-view-toggle button{border:0;border-radius:9px;background:transparent;color:inherit;padding:8px 12px;font:inherit}
.wh-project-summary-view-toggle button[aria-pressed=true]{background:var(--primary,#6b1524);color:#fff}
.wh-project-summary-filter-status{color:var(--muted-foreground,#66716f);font-size:13px;margin:10px 0 14px}
.wh-project-summary-cards{display:none;gap:10px}
.wh-project-summary-card{border:1px solid var(--border,#d9dfe2);background:var(--card,#fff);border-radius:15px;padding:16px;min-width:0}
.wh-project-summary-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px;color:var(--muted-foreground,#66716f)}
.wh-project-summary-card-top strong{font-size:17px;color:var(--foreground,inherit)}
.wh-project-summary-card-person{margin-top:10px;font-size:13px}
.wh-project-summary-card-activity{display:block;margin-top:5px}
.wh-project-summary-card p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5;margin:9px 0 0}
.wh-project-summary-table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;border:1px solid var(--border,#d9dfe2);border-radius:14px}
.wh-project-summary-table{min-width:720px;width:100%;background:var(--card,#fff)}
.wh-project-summary-table th:nth-child(1),.wh-project-summary-table td:nth-child(1){min-width:100px;white-space:nowrap}
.wh-project-summary-table th:nth-child(2),.wh-project-summary-table td:nth-child(2){min-width:140px}
.wh-project-summary-table th:nth-child(3),.wh-project-summary-table td:nth-child(3){min-width:290px}
.wh-project-summary-table td div{overflow-wrap:break-word}
.wh-summary-mode-cards .wh-project-summary-cards{display:grid}
.wh-summary-mode-cards .wh-project-summary-table-wrap{display:none}
.wh-summary-mode-table .wh-project-summary-cards{display:none}
.wh-summary-mode-table .wh-project-summary-table-wrap{display:block}
@media(max-width:700px){.wh-project-summary-heading h1{font-size:clamp(23px,6vw,32px)}.wh-project-summary-share{padding:10px}.wh-project-summary-stats>div{padding:13px}.wh-project-summary-stats strong{font-size:1.2rem}.wh-project-summary-view-toggle{width:100%}.wh-project-summary-view-toggle button{flex:1}.wh-project-summary-tools{gap:9px}}
@media print{
 body *{visibility:hidden!important}
 .wh-project-summary-page,.wh-project-summary-page *{visibility:visible!important}
 .wh-project-summary-page{position:absolute!important;left:0;top:0;width:100%!important;max-width:none!important;padding:0!important;color:#111!important;background:#fff!important}
 .wh-project-summary-tools,.wh-project-summary-share,.wh-project-summary-status,.wh-project-summary-filter-status,.wh-project-summary-cards{display:none!important}
 .wh-project-summary-table-wrap{display:block!important;overflow:visible!important;border:0!important}
 .wh-project-summary-table{min-width:0!important;font-size:10pt!important}
 .wh-project-summary-table th,.wh-project-summary-table td{padding:7px!important}
 .wh-project-summary-table tr{break-inside:avoid}
}

/* Tidrapporter: kompakt sökfält och expanderbara Select2-filter. */
.wh-report-page[data-view="reports"] .page-heading { margin-bottom:18px; }
.wh-report-page[data-view="reports"] .page-heading .eyebrow { display:flex; flex-wrap:wrap; align-items:center; gap:5px; }
.wh-report-page[data-view="reports"] .wh-report-list-status { display:inline; margin:0; font-size:inherit; color:var(--muted-foreground,#687180); font-weight:650; letter-spacing:normal; text-transform:uppercase; }
.wh-report-page[data-view="reports"] .wh-report-filters { display:block; margin-bottom:14px; }
.wh-report-search-row { display:grid; grid-template-columns:minmax(0,1fr) 54px; gap:12px; align-items:stretch; }
.wh-report-search-wrap { position:relative; display:block !important; min-width:0; }
.wh-report-search-wrap > i { position:absolute; left:17px; top:50%; transform:translateY(-50%); color:var(--muted-foreground,#687180); z-index:1; }
.wh-report-page .wh-report-search-wrap .wh-report-search { min-width:0; height:54px; padding:12px 15px 12px 44px; border-radius:13px; }
.wh-report-filter-toggle { position:relative; display:grid; place-items:center; height:54px; width:54px; border:1px solid var(--border,#d9dfe2); border-radius:13px; background:var(--card,#fff); color:var(--foreground,#17202a); font-size:19px; }
.wh-report-filter-toggle.is-open { background:var(--primary,#bf5a4d); color:white; border-color:var(--primary,#bf5a4d); }
.wh-report-filter-badge { position:absolute; top:-9px; right:-8px; display:grid; place-items:center; width:23px; height:23px; min-width:23px; min-height:23px; box-sizing:border-box; aspect-ratio:1; padding:0; line-height:1; border-radius:50%; background:var(--primary,#bf5a4d); color:white; border:2px solid var(--card,#fff); font-size:11px; font-weight:750; }
.wh-report-filter-badge[hidden] { display:none !important; }
.wh-report-filter-toggle.is-open .wh-report-filter-badge { background:var(--primary,#bf5a4d); }
.wh-report-advanced { margin-top:12px; padding:15px; border:1px solid var(--border,#d9dfe2); border-radius:16px; background:var(--card,#fff); }
.wh-report-filter-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 12px; align-items:end; }
.wh-report-filter-grid > label { min-width:0; }
.wh-report-page .wh-report-filter-grid input, .wh-report-page .wh-report-filter-grid .select2-container .select2-selection--single { height:52px; min-height:52px; border:1px solid var(--border,#d9dfe2); border-radius:11px; background:var(--card,#fff); color:var(--foreground,#17202a); box-sizing:border-box; }
.wh-report-page .wh-report-filter-grid .select2-container { width:100% !important; min-width:0; }
.wh-report-page .wh-report-filter-grid .select2-selection__rendered { line-height:50px; padding-left:12px; padding-right:25px; color:var(--foreground,#17202a); }
.wh-report-page .wh-report-filter-grid .select2-selection__arrow { height:50px; }
.wh-report-filter-actions { display:grid; grid-template-columns:54px minmax(0,1fr); gap:10px; align-items:end; }
.wh-report-filter-actions button { height:52px; min-height:52px; border-radius:11px; font:inherit; font-weight:700; }
.wh-report-filter-reset { border:1px solid var(--border,#d9dfe2); background:var(--card,#fff); color:var(--foreground,#17202a); }
.wh-report-filter-submit { display:flex; align-items:center; justify-content:center; gap:9px; border:1px solid var(--primary,#bf5a4d); background:var(--primary,#bf5a4d); color:white; }
.wh-report-filter-hide { display:flex; align-items:center; justify-content:flex-end; gap:8px; width:100%; margin-top:14px; padding:13px 0 0; border:0; border-top:1px solid var(--border,#d9dfe2); background:transparent; color:var(--primary,#bf5a4d); font-weight:650; }
.wh-report-page .wh-report-list { margin-top:12px; }
.wh-report-page .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; }
.dark .wh-report-advanced,.dark .wh-report-filter-toggle,.dark .wh-report-filter-reset { background:var(--card,#192220); color:var(--foreground,#edf3ef); }
.dark .wh-report-filter-toggle.is-open { background:var(--primary,#bf5a4d); color:white; }
@media(max-width:370px) { .wh-report-advanced { padding:11px; } .wh-report-filter-grid { gap:12px 8px; } .wh-report-filter-actions { grid-template-columns:48px minmax(0,1fr); gap:7px; } }

/* Tidrapporter: samma kompakta etiketter som på övriga formulär. */
.wh-report-page[data-view="reports"] .wh-report-filter-grid > label {
  font-size:13px;
  font-weight:600;
  line-height:1.35;
}
/* Select2 ska inte skapa extra utrymme under sin kontroll. */
.wh-report-page[data-view="reports"] .wh-report-filter-grid > label > .select2-container {
  display:block !important;
  vertical-align:top;
}
/* Knapparna ska ligga i samma höjd som Status-fältet. */
.wh-report-page[data-view="reports"] .wh-report-filter-actions {
  align-self:end;
  margin-bottom:0;
}

/* Bevara den tidigare filterlayouten även med globala formulärstilar. */
.wh-report-page[data-view="reports"] .wh-report-search-row { align-items:stretch; }
.wh-report-page[data-view="reports"] .wh-report-search-wrap { height:54px; box-sizing:border-box; }
.wh-report-page[data-view="reports"] .wh-report-search-wrap .wh-report-search { display:block; width:100%; height:54px; box-sizing:border-box; }
.wh-report-page[data-view="reports"] .wh-report-filter-toggle { min-width:54px; min-height:54px; padding:0; box-sizing:border-box; }
.wh-report-page[data-view="reports"] .wh-report-filter-grid > label { align-content:start; gap:7px; }
.wh-report-page[data-view="reports"] .wh-report-filter-grid > label > input,
.wh-report-page[data-view="reports"] .wh-report-filter-grid > label > select,
.wh-report-page[data-view="reports"] .wh-report-filter-grid .select2-selection--single { height:52px; min-height:52px; box-sizing:border-box; }
.wh-report-page[data-view="reports"] .wh-report-filter-grid > label > .select2-container { width:100%!important; margin:0; }
.wh-report-page[data-view="reports"] .wh-report-filter-actions { align-self:end; margin:0; }
.wh-report-page[data-view="reports"] .wh-report-filter-hide { font-size:13px; }
.wh-report-page[data-view="reports"] .wh-report-filter-hide i { font-size:11px; }

/* Tidrapporter: rikta in Återställ/Sök mot Status-fältets synliga nederkant.
   Select2:s label har en extra intern höjd som annars sänker knappraden. */
.wh-report-page[data-view="reports"] .wh-report-filter-grid > .wh-report-filter-actions {
  align-self:end;
  margin:0 0 8px;
}

/* Tidrapportering 2.0 */
.wh-report-page .wh-report-search-wrap .wh-report-search{padding-right:45px!important;box-sizing:border-box;}
.wh-report-search::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none;width:15px;height:15px;cursor:pointer;background:currentColor;clip-path:polygon(0 15%,15% 0,50% 35%,85% 0,100% 15%,65% 50%,100% 85%,85% 100%,50% 65%,15% 100%,0 85%,35% 50%);}
.wh-report-edit-actions{display:flex;flex-wrap:wrap;gap:10px;padding:12px 0;}
.wh-report-edit-actions[hidden],.wh-report-edit-history[hidden]{display:none!important;}
.wh-report-edit-history{flex:1 0 100%;}
.wh-report-history-tab{border:1px solid var(--border,#ddd);border-radius:10px;padding:10px;background:var(--card,#fff);color:inherit;cursor:pointer;}

/* Tidrapportering 2.1 – flikar, mobilvänlig tidsinmatning och tydliga åtgärder. */
.wh-report-detail-heading{display:flex;align-items:center;gap:14px;padding:8px 0 14px}
.wh-report-detail-heading h1{font-size:20px;margin:0;font-weight:750}
.wh-report-detail-back{border:0;background:transparent;color:inherit;font-size:18px;min-width:44px;min-height:44px;cursor:pointer}
.wh-report-main-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-bottom:1px solid var(--border,#dfe2e7);margin-bottom:16px}
.wh-report-main-tab{border:0;border-bottom:3px solid transparent;padding:14px 6px;background:transparent;color:inherit;font:inherit;cursor:pointer}
.wh-report-main-tab.is-active{border-bottom-color:var(--primary,#9b182e);color:var(--primary,#9b182e);font-weight:750}
.wh-report-detail-page [data-report-panel=history][hidden],.wh-report-detail-page [data-report-panel=report][hidden]{display:none!important}
.wh-report-timeline{list-style:none;margin:16px 0;padding:0 0 0 20px;border-left:2px solid var(--border,#e0e3e8)}
.wh-report-timeline li{position:relative;padding:0 0 28px 20px;font-size:13px;line-height:1.6}
.wh-report-timeline li::before{content:'';position:absolute;left:-28px;top:4px;width:12px;height:12px;border-radius:50%;background:var(--primary,#9b182e);border:3px solid var(--card,#fff)}
.wh-report-timeline li strong{display:block;font-size:14px}
.wh-report-timeline li p{margin:4px 0;white-space:pre-wrap}
.wh-report-time-modes,.wh-report-person-mode{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:4px;background:var(--muted,#f0f2f5);border-radius:12px;margin:12px 0}
.wh-report-time-mode,.wh-report-person-mode button{min-height:44px;padding:9px 6px;border:1px solid transparent;border-radius:10px;background:transparent;color:inherit;font:inherit;font-size:13px;cursor:pointer}
.wh-report-time-mode.is-active,.wh-report-person-mode button.is-active{background:var(--card,#fff);border-color:var(--primary,#9b182e);color:var(--primary,#9b182e);font-weight:750}
.wh-report-hours-panel[hidden],.wh-report-clock-times[hidden],.wh-report-person-field[hidden]{display:none!important}
.wh-report-quick-times{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-top:10px}
.wh-report-quick-times button{min-height:40px;border:0;border-radius:11px;background:var(--muted,#f0f2f5);color:inherit;font:inherit;cursor:pointer}
.wh-report-clock-times{border:0!important;background:transparent!important;padding:6px 0}
.wh-report-clock-times .wh-report-two{padding:0!important}
.wh-report-clock-times .wh-report-clock-button{min-width:0}
.wh-report-clock-times .wh-report-clock-button strong{font-size:16px}
.wh-report-calculated{padding:13px;border-radius:12px;background:var(--accent,#edf7ed);font-weight:700}
.wh-report-edit-actions{justify-content:center}
.wh-report-edit-archive,.wh-report-archive{border:0!important;background:transparent!important;color:var(--primary,#a01a2e)!important;text-decoration:underline;text-underline-offset:3px;font:inherit;font-size:13px;padding:12px;cursor:pointer}
.wh-report-confirm-actions{display:grid;gap:9px;margin-top:20px}
.wh-report-confirm-actions button{min-height:45px}
.wh-report-detail-page #report-edit-host .wh-report-fields{padding-top:8px}
.wh-report-detail-page #report-edit-host .wh-report-options{order:-1}
.wh-report-detail-page #report-edit-host .wh-report-form>.dialog-actions{margin:14px 0}
.wh-report-file a:has(img){cursor:zoom-in}

/* 2.1 UX polish: full-width calculation, actionable reset and aligned upload icons. */
.wh-report-form .wh-report-clock-times .wh-report-calculated {
  display:flex;align-items:center;box-sizing:border-box;width:100%;min-height:52px;
  margin:12px 0 0;padding:13px 15px;border:1px solid var(--border);
  border-radius:13px;background:var(--card);color:var(--foreground);font-size:14px;font-weight:700;
}
.wh-report-form .wh-report-clear-times {
  display:block;width:max-content;max-width:100%;margin:12px 0 8px auto;padding:8px 0;
  border:0;background:transparent;color:var(--foreground);font:inherit;font-size:13px;
  font-weight:600;text-decoration:underline;text-underline-offset:3px;cursor:pointer;
}
.wh-report-form .wh-report-clear-times:focus-visible {outline:2px solid var(--primary);outline-offset:3px;border-radius:3px;}
.wh-report-form .wh-report-uploads .wh-upload-buttons {align-items:stretch;}
.wh-report-form .wh-report-uploads .wh-upload-buttons > *,
.wh-report-form .wh-report-uploads .wh-upload-buttons label.wh-upload-pick {
  box-sizing:border-box;min-height:42px;height:42px;margin:0;vertical-align:middle;
  display:inline-flex;align-items:center;justify-content:center;align-self:stretch;
}
.wh-report-form .wh-report-uploads .wh-upload-buttons i {line-height:1;vertical-align:middle;}


/* Tidrapportering 2.4 – uppgifter, mobil först. */
.wh-report-field-label{display:block;margin-bottom:7px;font-weight:600}
.wh-report-tasks-open{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:48px;padding:12px 14px;border:1px solid var(--border,#d9dfe2);border-radius:13px;background:var(--card,#fff);color:inherit;text-align:left;font:inherit;cursor:pointer}
.wh-report-tasks-value{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted-foreground,#66716f)}
.wh-report-tasks-open i{font-size:12px;color:var(--muted-foreground,#66716f)}
.wh-report-task-dialog{width:min(520px,calc(100vw - 24px))}
.wh-report-task-dialog>p{margin-top:-4px;color:var(--muted-foreground,#66716f);font-size:13px}
.wh-report-task-picker-list{display:grid;gap:8px;margin:16px 0;max-height:min(52dvh,480px);overflow:auto}
.wh-report-task-choice{border:1px solid var(--border,#d9dfe2);border-radius:13px;background:var(--card,#fff);overflow:hidden}
.wh-report-task-choice.is-selected{border-color:var(--primary,#bf5a4d)}
.wh-report-task-select{display:flex;align-items:center;gap:11px;width:100%;padding:13px;border:0;background:transparent;color:inherit;text-align:left;font:inherit;cursor:pointer}
.wh-report-task-select>span:nth-child(2){min-width:0;flex:1}
.wh-report-task-select strong,.wh-report-task-select small{display:block}
.wh-report-task-select strong{font-size:14px;line-height:1.35}
.wh-report-task-select small{margin-top:3px;color:var(--muted-foreground,#66716f);font-size:12px}
.wh-report-task-check{display:grid;place-items:center;width:24px;height:24px;flex:0 0 24px;border:1.5px solid var(--border,#cfd6dc);border-radius:7px;color:transparent}
.wh-report-task-choice.is-selected .wh-report-task-check{border-color:var(--primary,#bf5a4d);background:var(--primary,#bf5a4d);color:#fff}
.wh-report-task-done{display:flex!important;grid-template-columns:none!important;align-items:center;gap:9px!important;margin:0 13px 13px 48px;padding-top:10px;border-top:1px solid var(--border,#e3e6e9);font-size:13px!important;font-weight:600!important}
.wh-report-task-done input{width:18px;height:18px;margin:0;accent-color:var(--primary,#bf5a4d)}
.wh-report-task-empty{padding:18px;text-align:center;color:var(--muted-foreground,#66716f)}
@media(max-width:480px){.wh-report-task-dialog{width:calc(100vw - 16px);padding:18px}.wh-report-task-picker-list{max-height:55dvh}}

/* Normaliserad tidsfördelning i projektsammanställningen. */
.wh-project-summary-categories{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;margin:0 0 18px}
.wh-project-summary-categories[hidden]{display:none}
.wh-project-summary-category{min-width:0;padding:14px 16px;border-radius:14px;background:var(--card-bg,#fff);border:1px solid rgba(120,130,140,.18)}
.wh-project-summary-category small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;opacity:.75;margin-bottom:6px}
.wh-project-summary-category strong{display:block;font-size:1.05rem}
@media(max-width:600px){.wh-project-summary-categories{grid-template-columns:repeat(2,minmax(0,1fr))}.wh-project-summary-category{padding:12px 14px}}
