:root{--bg:#f5f5f5;--surface:#fff;--text:#111;--muted:#6b6b6b;--line:#e5e5e5;--black:#111;--green:#138a4b;--green-bg:#e9f8ef;--red:#c62828;--red-bg:#fff0f0;--orange:#a55b00;--orange-bg:#fff4df;--blue:#2457d6;--radius:16px;--shadow:0 8px 30px rgba(0,0,0,.05)}*{box-sizing:border-box}html{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text)}body{margin:0;background:var(--bg)}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}.app-shell{min-height:100vh}.sidebar{position:fixed;top:0;left:0;right:auto;width:270px;height:100vh;background:#111;color:#fff;padding:22px 18px;display:flex;flex-direction:column;z-index:50;border-right:1px solid #222}.sidebar-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.brand{display:block}.brand-logo{max-width:180px;max-height:62px;object-fit:contain;filter:brightness(0) invert(1)}.brand-fallback{font-weight:900;letter-spacing:.08em}.sidebar-close{display:none;background:none;border:0;color:#fff;font-size:30px}.nav{margin-top:34px;display:grid;gap:7px}.nav-link{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:11px;color:#cfcfcf;transition:.15s}.nav-link:hover,.nav-link.active{background:#fff;color:#111}.nav-form{margin:0}.nav-form .nav-link{width:100%;border:0;font:inherit;text-align:left;background:transparent;cursor:pointer}.nav-form .nav-link:hover{background:#fff;color:#111}.nav-cache{appearance:none}.nav-icon{width:22px;text-align:center;font-size:17px}.sidebar-bottom{margin-top:auto;display:grid;gap:7px}.nav-logout:hover{background:#2b1111;color:#ffdede}.user-chip{margin-top:12px;padding:13px;border:1px solid #2b2b2b;border-radius:13px;display:flex;align-items:center;gap:10px}.avatar{width:36px;height:36px;border-radius:50%;background:#fff;color:#111;display:grid;place-items:center;font-weight:800}.user-chip strong,.user-chip small{display:block}.user-chip small{color:#8f8f8f;margin-top:2px}.main-content{margin-left:270px;margin-right:0;padding:34px;min-height:100vh}.mobile-menu-btn{display:none}.mobile-overlay{display:none}.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:24px}.page-head h1{font-size:31px;line-height:1.08;margin:3px 0 7px;letter-spacing:-.03em}.eyebrow{text-transform:uppercase;font-size:11px;letter-spacing:.14em;color:#777;font-weight:800}.muted{color:var(--muted);margin:0}.page-actions,.form-actions,.modal-actions{display:flex;gap:9px;flex-wrap:wrap}.btn{appearance:none;border:1px solid transparent;border-radius:10px;padding:10px 14px;font-weight:750;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:6px;line-height:1.1}.btn-sm{padding:7px 10px;font-size:13px}.btn-block{width:100%}.btn-primary{background:#111;color:#fff}.btn-primary:hover{background:#2a2a2a}.btn-secondary{background:#fff;color:#111;border-color:#d8d8d8}.btn-light{background:#f5f5f5;border-color:#e3e3e3;color:#111}.btn-success{background:var(--green);color:#fff}.btn-danger-soft{background:var(--red-bg);color:var(--red);border-color:#f1caca}.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);margin-bottom:22px;overflow:hidden}.panel-head{padding:20px 22px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:18px}.panel-head-wrap{flex-wrap:wrap}.panel-head h2,.form-section h2,.narrow-panel h2{margin:0 0 4px;font-size:19px}.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:22px}.kpi-card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:18px 19px;box-shadow:var(--shadow)}.kpi-card strong{display:block;font-size:30px;letter-spacing:-.03em;margin:6px 0 4px}.kpi-card small{color:var(--muted)}.kpi-label{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:#555}.kpi-danger{border-color:#efc7c7;background:#fffafa}.kpi-danger strong{color:var(--red)}.table-wrap{width:100%;overflow:auto}.data-table{border-collapse:collapse;width:100%;min-width:900px}.data-table th,.data-table td{padding:14px 16px;border-bottom:1px solid #eee;text-align:left;vertical-align:middle}.data-table th{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#777;background:#fafafa;white-space:nowrap}.data-table tbody tr:last-child td{border-bottom:0}.data-table tbody tr:hover{background:#fcfcfc}.row-overdue{background:#fffafa!important}.actions-col{width:240px}.actions-cell{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.inline-form{display:inline}.table-link{font-weight:750;text-decoration:underline;text-decoration-color:#ccc;text-underline-offset:3px}.cell-sub,.tiny-muted{display:block;color:#888;font-size:12px;margin-top:3px}.category-pill,.status-badge{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:800;white-space:nowrap}.category-pill.assistenza{background:#eef1ff;color:#384fba}.category-pill.hosting_dominio{background:#f2f2f2;color:#333}.status-badge.danger{background:var(--red-bg);color:var(--red)}.status-badge.warning{background:var(--orange-bg);color:var(--orange)}.status-badge.success{background:var(--green-bg);color:var(--green)}.status-badge.neutral{background:#f1f1f1;color:#555}.filter-bar,.toolbar{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.custom-days{display:flex;align-items:center;gap:7px}.custom-days input{width:94px!important}.custom-days-label{font-size:12px;font-weight:800;color:#555;white-space:nowrap}.toolbar{padding:18px 20px;border-bottom:1px solid var(--line)}.segmented{display:flex;border:1px solid #ddd;border-radius:10px;padding:3px;background:#fafafa;overflow:auto}.seg{padding:7px 9px;border-radius:7px;font-size:12px;font-weight:800;white-space:nowrap;color:#666}.seg.active{background:#111;color:#fff}.search-input{min-width:280px;flex:1}.field{display:grid;gap:7px}.field>span{font-size:13px;font-weight:800}.field small{color:#777}.field input,.field select,.field textarea,.toolbar input,.toolbar select,.filter-bar select{width:100%;border:1px solid #d8d8d8;background:#fff;border-radius:10px;padding:11px 12px;color:#111;outline:none}.field input:focus,.field select:focus,.field textarea:focus,.toolbar input:focus,.toolbar select:focus{border-color:#777;box-shadow:0 0 0 3px rgba(0,0,0,.05)}.form-panel{padding:22px}.narrow-panel{max-width:650px}.stack-lg{display:grid;gap:18px}.form-grid{display:grid;gap:16px}.form-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.form-section{display:grid;gap:14px;padding-bottom:18px;border-bottom:1px solid #eee}.check-card{border:1px solid #ddd;border-radius:12px;padding:13px;display:flex;gap:10px;align-items:flex-start;background:#fafafa;cursor:pointer}.check-card input{margin-top:3px}.check-card span{display:grid;gap:3px}.check-card small{color:#777}.empty-state{padding:40px 24px;text-align:center;display:grid;gap:7px;color:#666}.empty-state strong{color:#111}.alert{border-radius:12px;padding:12px 14px;margin-bottom:16px;border:1px solid}.alert-success{background:var(--green-bg);color:#0b6d3a;border-color:#ccebd8}.alert-danger{background:var(--red-bg);color:var(--red);border-color:#f0caca}.modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;padding:20px;z-index:100}.modal.open{display:flex}.modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.48)}.modal-card{position:relative;z-index:1;width:min(620px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:18px;padding:24px;box-shadow:0 20px 70px rgba(0,0,0,.25)}.modal-card h2{margin:5px 0 7px}.modal-x{position:absolute;right:14px;top:12px;border:0;background:#f2f2f2;border-radius:50%;width:34px;height:34px;font-size:20px;cursor:pointer}.modal-actions{justify-content:flex-end}.login-page{min-height:100vh;background:#f3f3f3;display:grid;place-items:center;padding:22px}.login-shell{width:min(460px,100%)}.login-card{background:#fff;border:1px solid #e2e2e2;border-radius:20px;box-shadow:0 20px 60px rgba(0,0,0,.07);padding:30px}.login-logo-wrap{min-height:62px;display:flex;align-items:center}.login-logo{max-width:210px;max-height:72px;object-fit:contain}.logo-fallback{font-weight:900;letter-spacing:.07em}.login-card h1{font-size:28px;margin:18px 0 6px}.login-security{font-size:11px;color:#8a8a8a;text-align:center;margin:18px 0 0}.password-wrap{display:flex;gap:7px}.password-wrap input{flex:1}.password-toggle{border:1px solid #ddd;background:#f5f5f5;border-radius:10px;padding:0 12px;cursor:pointer}
@media(max-width:1150px){.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.sidebar{left:0;right:auto;transform:translateX(-105%);transition:.2s;width:min(310px,88vw);border-left:0;border-right:1px solid #222}.sidebar.open{transform:translateX(0)}.sidebar-close{display:block}.mobile-menu-btn{display:block;position:fixed;left:14px;top:14px;z-index:45;width:42px;height:42px;border:1px solid #ddd;border-radius:10px;background:#fff;box-shadow:var(--shadow);font-size:21px}.mobile-overlay{position:fixed;inset:0;background:rgba(0,0,0,.35);z-index:40}.mobile-overlay.open{display:block}.main-content{margin-left:0;margin-right:0;padding:70px 14px 24px}.page-head{align-items:stretch;flex-direction:column}.page-actions>*{flex:1}.form-grid.two{grid-template-columns:1fr}.panel{border-radius:13px}.kpi-grid{grid-template-columns:1fr 1fr}.data-table{min-width:0}.data-table thead{display:none}.data-table,.data-table tbody,.data-table tr,.data-table td{display:block;width:100%}.data-table tr{padding:12px 14px;border-bottom:1px solid #e7e7e7}.data-table td{border:0;padding:7px 0;display:grid;grid-template-columns:120px minmax(0,1fr);gap:10px;align-items:start}.data-table td:before{content:attr(data-label);font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:#888;font-weight:800}.data-table td.actions-cell{display:flex;padding-top:12px}.data-table td.actions-cell:before{display:none}.toolbar{align-items:stretch}.search-input{min-width:100%;}.toolbar select,.toolbar .btn{flex:1}.panel-head{align-items:flex-start}.filter-bar{width:100%}.custom-days{width:100%}.custom-days input{flex:1;width:auto!important}.segmented{max-width:100%}}
@media(max-width:560px){.kpi-grid{grid-template-columns:1fr}.login-card{padding:22px}.page-head h1{font-size:27px}.main-content{padding-left:10px;padding-right:10px}.form-panel{padding:16px}.data-table td{grid-template-columns:105px minmax(0,1fr)}}

/* V4 · Timesheet / Rapportini */
.nav-group{display:grid;gap:3px}.nav-group>.nav-link{margin-bottom:0}.nav-sub{display:grid;gap:3px;margin:0 0 4px 42px;padding-left:9px;border-left:1px solid #333}.nav-sublink{color:#9d9d9d;font-size:13px;padding:7px 9px;border-radius:8px}.nav-sublink:hover,.nav-sublink.active{background:#252525;color:#fff}.switch-card{display:flex;align-items:flex-start;gap:12px;padding:15px 16px;border:1px solid #dcdcdc;border-radius:13px;background:#fafafa;cursor:pointer}.switch-card input{margin-top:4px;accent-color:#111}.switch-card span{display:grid;gap:4px}.switch-card small{color:#777}.timesheet-config{display:grid;gap:15px;transition:.18s}.timesheet-config.is-disabled{opacity:.48}.mode-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.mode-card{position:relative;display:block;cursor:pointer}.mode-card input{position:absolute;opacity:0;pointer-events:none}.mode-card span{display:grid;gap:5px;height:100%;padding:15px;border:1px solid #ddd;border-radius:13px;background:#fff}.mode-card small{color:#777;line-height:1.35}.mode-card input:checked+span{border-color:#111;box-shadow:0 0 0 2px #111 inset;background:#fafafa}.month-nav{display:flex;align-items:center;justify-content:center;gap:14px;margin-bottom:18px}.month-nav>div{min-width:190px;text-align:center;background:#fff;border:1px solid var(--line);border-radius:13px;padding:9px 18px;box-shadow:var(--shadow)}.month-nav strong{display:block;margin-top:2px;font-size:18px}.excel-table{width:100%;border-collapse:collapse;min-width:840px}.excel-table th{background:#111;color:#fff;font-size:11px;text-transform:uppercase;letter-spacing:.05em;padding:10px;border:1px solid #2f2f2f}.excel-table td{border:1px solid #dedede;padding:0;background:#fff;vertical-align:middle}.excel-table tbody tr:hover td{background:#fcfcfc}.excel-table input{width:100%;min-width:0;border:0;border-radius:0;background:transparent;padding:11px 10px;outline:none}.excel-table input:focus{box-shadow:inset 0 0 0 2px #111;background:#fff}.excel-table input:disabled{color:#777;-webkit-text-fill-color:#777;opacity:1}.excel-table .hours-input,.excel-table .money-input{min-width:95px;text-align:right}.excel-table .excel-actions{padding:7px 8px;white-space:nowrap;display:flex;gap:6px;align-items:center}.excel-table tfoot th{background:#f3f3f3;color:#111;border:1px solid #d8d8d8;text-align:right;font-size:12px;padding:10px}.excel-new-row td{background:#f8fbf8}.inline-notice{margin:16px 20px 0;padding:11px 13px;border:1px solid #dedede;border-radius:10px;background:#f6f6f6;color:#555;font-size:13px}.row-muted{opacity:.62}.close-excess-box{padding:18px 20px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px;background:#fafafa}.close-excess-box p{margin-top:4px;max-width:760px}.ledger-table input[type=checkbox]{width:18px;height:18px;accent-color:#111}.ts-client-table .category-pill{margin-bottom:2px}.section-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.spot-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.reports-filter{display:flex;gap:8px;flex-wrap:wrap}.report-card-link{font-weight:800}.report-card-link:hover{text-decoration:underline}.ts-kpis .kpi-card strong{font-variant-numeric:tabular-nums}
@media(max-width:900px){.nav-sub{margin-left:41px}.mode-cards{grid-template-columns:1fr}.excel-table{min-width:720px}.close-excess-box{align-items:stretch;flex-direction:column}.close-excess-box form,.close-excess-box .btn{width:100%}.spot-kpis{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.spot-kpis{grid-template-columns:1fr}.month-nav{gap:8px}.month-nav>div{min-width:0;flex:1}.excel-table{min-width:680px}}

/* V4.2 · Timesheet: descrizioni sempre leggibili e colonne ottimizzate */
.excel-table.timesheet-hours-table,
.excel-table.timesheet-spot-table{table-layout:fixed;min-width:720px}
.timesheet-hours-table .col-date,.timesheet-spot-table .col-date{width:126px}
.timesheet-hours-table .col-hours{width:76px}
.timesheet-hours-table .col-actions{width:136px}
.timesheet-spot-table .col-money{width:96px}
.timesheet-spot-table .col-status{width:126px}
.timesheet-spot-table .col-actions{width:136px}
.excel-table .date-input{padding-left:7px;padding-right:5px;font-size:13px}
.excel-table .hours-input,.excel-table .money-input{min-width:0;padding-left:6px;padding-right:7px}
.excel-table .activity-input{display:block;width:100%;min-height:42px;height:auto;border:0;border-radius:0;background:transparent;padding:10px 11px;outline:none;resize:none;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;line-height:1.38;font:inherit;color:inherit}
.excel-table .activity-input:focus{box-shadow:inset 0 0 0 2px #111;background:#fff}
.excel-table .activity-input:disabled{color:#777;-webkit-text-fill-color:#777;opacity:1}
.excel-table .excel-actions{padding:5px 5px;gap:4px;align-items:center;justify-content:flex-start}
.excel-table .excel-actions .btn-sm{padding:6px 7px;font-size:12px;border-radius:8px}
.excel-table td:has(.activity-input){vertical-align:top}
@media(max-width:900px){
  .excel-table.timesheet-hours-table,.excel-table.timesheet-spot-table{min-width:650px}
  .timesheet-hours-table .col-date,.timesheet-spot-table .col-date{width:118px}
  .timesheet-hours-table .col-hours{width:70px}
  .timesheet-hours-table .col-actions,.timesheet-spot-table .col-actions{width:124px}
  .timesheet-spot-table .col-money{width:88px}
  .timesheet-spot-table .col-status{width:112px}
}

/* V4.3 · Timesheet mobile verticale + autogrow robusto */
.mobile-counter-details{display:none}
.excel-table .activity-input{
  field-sizing:content;
  height:auto !important;
  min-height:42px;
  max-height:none;
  overflow:visible;
}
.excel-table.timesheet-hours-table tbody tr,
.excel-table.timesheet-spot-table tbody tr{height:auto}
.excel-table.timesheet-hours-table tbody td,
.excel-table.timesheet-spot-table tbody td{height:auto;vertical-align:top}

@media(max-width:700px){
  .ts-kpis-desktop{display:none!important}
  .mobile-counter-details{display:block;margin:14px 0 18px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:var(--shadow);overflow:hidden}
  .mobile-counter-details summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 16px;cursor:pointer;font-weight:800;color:#111}
  .mobile-counter-details summary::-webkit-details-marker{display:none}
  .mobile-counter-details summary::after{content:'+';display:grid;place-items:center;width:26px;height:26px;border-radius:8px;background:#111;color:#fff;font-size:18px;line-height:1;flex:0 0 auto}
  .mobile-counter-details[open] summary::after{content:'−'}
  .mobile-counter-details summary strong{margin-left:auto;font-size:13px;color:#666;font-weight:700}
  .mobile-counter-details>.kpi-grid{padding:0 12px 12px;grid-template-columns:1fr!important;gap:9px;margin:0}
  .mobile-counter-details .kpi-card{box-shadow:none}

  .timesheet-activity-panel{margin-top:12px}
  .timesheet-activity-panel .panel-head{align-items:stretch;gap:12px}
  .timesheet-activity-panel .panel-head .page-actions{width:100%}
  .timesheet-activity-panel .panel-head .page-actions form,
  .timesheet-activity-panel .panel-head .page-actions .btn{width:100%}
  .timesheet-activity-panel .table-wrap{overflow:visible}

  .excel-table.timesheet-hours-table,
  .excel-table.timesheet-spot-table{display:block;width:100%;min-width:0!important;table-layout:auto;border-collapse:separate}
  .timesheet-hours-table colgroup,
  .timesheet-spot-table colgroup,
  .timesheet-hours-table thead,
  .timesheet-spot-table thead{display:none}
  .timesheet-hours-table tbody,
  .timesheet-spot-table tbody{display:flex;flex-direction:column;gap:12px;padding:12px;background:#f5f5f5}
  .timesheet-hours-table tbody tr,
  .timesheet-spot-table tbody tr{display:block;width:100%;height:auto!important;border:1px solid #dedede;border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.025)}
  .timesheet-hours-table tbody tr.excel-new-row,
  .timesheet-spot-table tbody tr.excel-new-row{order:-1;border-color:#bdbdbd;background:#fff;box-shadow:0 4px 14px rgba(0,0,0,.06)}
  .timesheet-hours-table tbody tr.excel-new-row::before,
  .timesheet-spot-table tbody tr.excel-new-row::before{content:'Nuova attività';display:block;padding:12px 13px;background:#111;color:#fff;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}

  .timesheet-hours-table tbody td,
  .timesheet-spot-table tbody td{display:grid!important;grid-template-columns:78px minmax(0,1fr);gap:10px;align-items:start;width:100%!important;height:auto!important;padding:10px 12px!important;border:0!important;border-bottom:1px solid #ececec!important;background:#fff!important;white-space:normal!important}
  .timesheet-hours-table tbody td:last-child,
  .timesheet-spot-table tbody td:last-child{border-bottom:0!important}
  .timesheet-hours-table tbody td::before,
  .timesheet-spot-table tbody td::before{content:attr(data-label);font-size:10px;line-height:1.35;text-transform:uppercase;letter-spacing:.055em;font-weight:800;color:#777;padding-top:10px}

  .timesheet-hours-table tbody td[data-label="Attività"],
  .timesheet-spot-table tbody td[data-label="Attività"]{display:block!important;padding-top:11px!important;padding-bottom:12px!important}
  .timesheet-hours-table tbody td[data-label="Attività"]::before,
  .timesheet-spot-table tbody td[data-label="Attività"]::before{display:block;padding:0 0 7px}

  .timesheet-hours-table .date-input,
  .timesheet-hours-table .hours-input,
  .timesheet-spot-table .date-input,
  .timesheet-spot-table .money-input,
  .timesheet-hours-table .activity-input,
  .timesheet-spot-table .activity-input{width:100%;min-width:0;border:1px solid #dedede!important;border-radius:9px!important;background:#fafafa!important;padding:10px 11px!important;font-size:16px!important;line-height:1.4}
  .timesheet-hours-table .activity-input,
  .timesheet-spot-table .activity-input{display:block;min-height:72px!important;field-sizing:content;height:auto!important;overflow:visible!important;resize:vertical}
  .timesheet-hours-table tr.excel-new-row .activity-input,
  .timesheet-spot-table tr.excel-new-row .activity-input{min-height:100px!important}
  .timesheet-hours-table .hours-input,
  .timesheet-spot-table .money-input{text-align:left}

  .timesheet-hours-table tbody td.excel-actions,
  .timesheet-spot-table tbody td.excel-actions{display:flex!important;align-items:center;flex-wrap:wrap;gap:8px;padding:10px 12px!important}
  .timesheet-hours-table tbody td.excel-actions::before,
  .timesheet-spot-table tbody td.excel-actions::before{content:attr(data-label);width:68px;flex:0 0 68px;padding:0;font-size:10px;text-transform:uppercase;letter-spacing:.055em;font-weight:800;color:#777}
  .timesheet-hours-table tbody td.excel-actions .btn,
  .timesheet-spot-table tbody td.excel-actions .btn{min-height:38px;padding:8px 11px}
  .timesheet-hours-table tbody tr.excel-new-row td.excel-actions .btn,
  .timesheet-spot-table tbody tr.excel-new-row td.excel-actions .btn{flex:1}

  .timesheet-hours-table tfoot{display:block;background:#fff;border-top:1px solid #ddd}
  .timesheet-hours-table tfoot tr{display:grid;grid-template-columns:1fr auto;padding:12px 14px;align-items:center}
  .timesheet-hours-table tfoot th{display:block;border:0!important;background:transparent!important;padding:0!important;text-align:left!important}
  .timesheet-hours-table tfoot th:nth-child(3){text-align:right!important;font-size:16px}
  .timesheet-hours-table tfoot th:last-child{display:none}

  .timesheet-ledger-panel{margin-top:14px}
}

/* V5 · periodi Timesheet + note sempre visibili */
.periods-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:18px 0 10px;padding-top:4px}
.periods-head>div{display:flex;flex-direction:column;gap:4px}.periods-head small{color:var(--muted);max-width:820px;line-height:1.45}
.period-list{display:flex;flex-direction:column;gap:10px;margin-bottom:16px}
.period-row{display:grid;grid-template-columns:minmax(130px,.85fr) minmax(130px,.85fr) minmax(155px,1fr) minmax(105px,.7fr) minmax(120px,.75fr) minmax(145px,.9fr) minmax(120px,.75fr) auto;gap:10px;align-items:end;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fafafa}
.period-row .field{margin:0}.period-row .field small{min-height:14px}.period-saved{align-self:center;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:#777;padding:8px 4px}.period-remove{margin-bottom:1px}

.excel-table .ts-note-col{display:table-cell}
.excel-table col.col-note{visibility:visible;width:92px!important}
.timesheet-hours-table .col-note,.timesheet-spot-table .col-note{width:92px}
.excel-table .note-input{display:block;width:100%;min-width:0;max-width:11ch;border:0;background:transparent;padding:10px 6px;outline:none;font:inherit;font-size:12px;line-height:1.3;text-overflow:ellipsis}
.excel-table .note-input:focus{max-width:none;background:#fff;box-shadow:inset 0 0 0 2px #111}
.period-badge{display:inline-flex;align-items:center;border:1px solid #d8d8d8;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:800;background:#fff}
.period-badge.monthly{background:#eef7ee;border-color:#cfe7cf}.period-badge.consumption{background:#f5f5f5}

@media(max-width:900px){.period-row{grid-template-columns:1fr 1fr}.period-remove,.period-saved{justify-self:start}}
@media(max-width:700px){
  .periods-head{flex-direction:column}.periods-head .btn{width:100%}.period-row{grid-template-columns:1fr;padding:11px}.period-remove{width:100%}
  .timesheet-hours-table tbody td.ts-note-col,.timesheet-spot-table tbody td.ts-note-col{display:grid!important}
  .excel-table .note-input{max-width:none;width:100%;border:1px solid #dedede!important;border-radius:9px!important;background:#fafafa!important;padding:10px 11px!important;font-size:15px!important}
}
@media(max-width:700px){
  .timesheet-hours-table tfoot th:nth-child(2){text-align:right!important;font-size:16px}
  .timesheet-hours-table tfoot th:nth-child(3){display:none!important}
}

/* V5.1 · Timesheet desktop: più spazio all'attività, colonne ore/azioni compatte */
@media(min-width:701px){
  .excel-table.timesheet-hours-table{table-layout:fixed;width:100%}
  .timesheet-hours-table .col-date{width:126px}
  .timesheet-hours-table .col-note{width:92px!important}
  .timesheet-hours-table .col-hours{width:64px}
  .timesheet-hours-table .col-actions{width:112px}

  /* Il TD azioni deve restare una vera cella della tabella: il flex sul TD
     faceva allargare l'ultima colonna e sottraeva spazio ad Attività. */
  .timesheet-hours-table td.excel-actions{
    display:table-cell;
    width:112px;
    padding:4px 5px;
    white-space:nowrap;
    vertical-align:middle;
  }
  .timesheet-hours-table td.excel-actions form{display:inline-block;margin:0 0 0 3px}
  .timesheet-hours-table td.excel-actions form:empty{display:none}
  .timesheet-hours-table td.excel-actions .btn-sm{padding:5px 6px;font-size:11px;border-radius:7px}
  .timesheet-hours-table .hours-input{padding-left:4px;padding-right:5px}
}

/* V5.2 · Timesheet ore: Attività prende tutto lo spazio residuo; Note/Ore/Azioni compatte. */
@media (min-width:701px){
  .timesheet-activity-panel .timesheet-hours-table{
    width:100%!important;
    max-width:none!important;
    table-layout:fixed!important;
  }
  .timesheet-hours-table col.col-date{width:118px!important}
  .timesheet-hours-table col.col-activity{width:auto!important}
  .timesheet-hours-table col.col-note{width:86px!important}
  .timesheet-hours-table col.col-hours{width:68px!important}
  .timesheet-hours-table col.col-actions{width:108px!important}

  .timesheet-hours-table th.ts-note-col,
  .timesheet-hours-table td.ts-note-col{width:86px!important;max-width:86px!important}
  .timesheet-hours-table .col-hours{width:68px!important}
  .timesheet-hours-table td[data-label="Ore"]{width:68px!important;max-width:68px!important}
  .timesheet-hours-table .col-actions{width:108px!important}
  .timesheet-hours-table td.excel-actions{width:108px!important;min-width:108px!important;max-width:108px!important}

  .timesheet-hours-table td.excel-actions{
    display:table-cell!important;
    width:108px!important;
    min-width:108px!important;
    max-width:108px!important;
    padding:4px!important;
    white-space:nowrap!important;
    vertical-align:middle!important;
  }
  .timesheet-hours-table td.excel-actions form{display:inline!important;margin:0!important}
  .timesheet-hours-table td.excel-actions .btn-sm{padding:5px 5px!important;font-size:10px!important;border-radius:7px!important}
  .timesheet-hours-table .hours-input{min-width:0!important;width:100%!important;padding-left:4px!important;padding-right:4px!important}
  .timesheet-hours-table .note-input{min-width:0!important;width:100%!important;max-width:none!important;padding-left:5px!important;padding-right:5px!important}
}

/* V6 · Tipi attività Timesheet */
.activity-cell{display:flex;flex-direction:column;align-items:stretch;min-width:0}
.activity-type-picker{position:relative;display:inline-flex;align-self:flex-start;margin:0 8px 7px;max-width:100%}
.activity-type-chip{display:inline-flex;align-items:center;max-width:100%;min-height:25px;padding:5px 9px;border-radius:999px;background:var(--type-color,#e5e7eb);color:var(--type-text,#111);font-size:11px;font-weight:850;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-shadow:inset 0 0 0 1px rgba(0,0,0,.07)}
.activity-type-chip.static{margin:0;pointer-events:none}
.activity-type-select{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;border:0}
.activity-type-select:disabled{cursor:default}
.activity-type-picker:focus-within .activity-type-chip{outline:2px solid #111;outline-offset:2px}

.activity-type-report-panel{margin-top:18px}
.activity-type-chart{display:grid;gap:18px;padding:20px 22px 23px}
.activity-type-bar-row{display:grid;gap:7px}
.activity-type-bar-head,.activity-type-bar-meta{display:flex;align-items:center;justify-content:space-between;gap:12px}
.activity-type-bar-head strong{font-size:14px;font-variant-numeric:tabular-nums}
.activity-type-bar-track{height:15px;border-radius:999px;background:#f0f0f0;overflow:hidden;border:1px solid #e7e7e7}
.activity-type-bar-fill{display:block;height:100%;min-width:3px;border-radius:999px;background:var(--bar-color,#111)}
.activity-type-bar-meta{font-size:11px;color:#777}
.empty-state.compact{padding:24px 20px}

.settings-stack{display:grid;gap:0}
.settings-toggle-row{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:19px 22px}
.settings-toggle-row>div{display:grid;gap:4px}
.settings-toggle-row .muted{font-size:13px;line-height:1.4}
.switch-control{position:relative;display:inline-flex;flex:0 0 auto;cursor:pointer}
.switch-control input{position:absolute;opacity:0;pointer-events:none}
.switch-ui{width:48px;height:28px;border-radius:999px;background:#d5d5d5;position:relative;transition:.18s;box-shadow:inset 0 0 0 1px rgba(0,0,0,.06)}
.switch-ui::after{content:'';position:absolute;top:4px;left:4px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 5px rgba(0,0,0,.2);transition:.18s}
.switch-control input:checked+.switch-ui{background:#111}
.switch-control input:checked+.switch-ui::after{transform:translateX(20px)}
.switch-control input:focus-visible+.switch-ui{outline:3px solid rgba(0,0,0,.14);outline-offset:2px}

.activity-type-settings-list{display:grid;gap:10px;padding:18px 22px 8px}
.activity-type-settings-row{display:grid;grid-template-columns:minmax(130px,.7fr) minmax(220px,1.5fr) 100px 88px auto;gap:12px;align-items:end;padding:12px;border:1px solid var(--line);border-radius:13px;background:#fafafa}
.activity-type-preview{display:flex;align-items:center;min-height:43px}
.activity-type-preview span{display:inline-flex;align-items:center;max-width:100%;padding:7px 10px;border-radius:999px;background:var(--type-color,#e5e7eb);color:var(--type-text,#111);font-size:12px;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-shadow:inset 0 0 0 1px rgba(0,0,0,.07)}
.activity-type-settings-row .field{margin:0}
.activity-type-settings-row .color-field input[type=color]{height:43px;padding:4px;cursor:pointer}
.activity-type-active{height:43px;display:flex;align-items:center;gap:8px;padding:0 4px;font-size:12px;font-weight:800;cursor:pointer}
.activity-type-active input{width:17px;height:17px;accent-color:#111}
.activity-type-remove{margin-bottom:0;height:43px}
.settings-stack .form-actions{padding:18px 22px 22px;border-top:1px solid var(--line);margin-top:10px;justify-content:flex-end}

@media(max-width:900px){
  .activity-type-settings-row{grid-template-columns:1fr 1fr}
  .activity-type-preview{grid-column:1/-1}
  .activity-type-remove{width:100%}
}
@media(max-width:700px){
  .activity-type-picker{margin:7px 0 0}
  .activity-type-chip{font-size:12px;padding:6px 10px}
  .activity-type-report-panel .panel-head{align-items:stretch;flex-direction:column}
  .activity-type-report-panel .panel-head .btn{width:100%}
  .activity-type-chart{padding:16px 14px 18px;gap:17px}
  .activity-type-bar-track{height:18px}
  .settings-toggle-row{align-items:flex-start}
  .activity-type-settings-list{padding:14px}
  .activity-type-settings-row{grid-template-columns:1fr}
  .activity-type-preview{grid-column:auto}
  .activity-type-active{height:auto;padding:7px 2px}
  .activity-type-remove{height:auto}
}

/* V6.1 · Tipo attività in colonna dedicata dopo Attività */
@media(min-width:701px){
  .timesheet-hours-table.has-activity-types col.col-activity-type{width:150px!important}
  .timesheet-hours-table.has-activity-types th.ts-type-col,
  .timesheet-hours-table.has-activity-types td.ts-type-col{width:150px!important;max-width:150px!important}
  .timesheet-spot-table.has-activity-types col.col-activity-type{width:150px!important}
  .timesheet-spot-table.has-activity-types th.ts-type-col,
  .timesheet-spot-table.has-activity-types td.ts-type-col{width:150px!important;max-width:150px!important}
  .timesheet-spot-table.has-activity-types{min-width:870px}

  .timesheet-hours-table td.ts-type-col,
  .timesheet-spot-table td.ts-type-col{padding:6px 8px!important;vertical-align:middle!important}
  .timesheet-hours-table .ts-type-col .activity-type-picker,
  .timesheet-spot-table .ts-type-col .activity-type-picker{display:flex;width:100%;max-width:100%;margin:0;align-self:auto}
  .timesheet-hours-table .ts-type-col .activity-type-chip,
  .timesheet-spot-table .ts-type-col .activity-type-chip{max-width:100%}
}

@media(max-width:700px){
  .timesheet-hours-table tbody td.ts-type-col,
  .timesheet-spot-table tbody td.ts-type-col{display:grid!important}
  .timesheet-hours-table .ts-type-col .activity-type-picker,
  .timesheet-spot-table .ts-type-col .activity-type-picker{margin:0;align-self:start}
}


/* V7 · Impostazioni unificate, icone e grafico dashboard */
.icon{display:block;flex:0 0 auto}.icon-btn{width:38px;height:36px;padding:0;display:inline-flex;align-items:center;justify-content:center}.actions-cell .icon-btn{flex:0 0 38px}.settings-tabs{display:flex;gap:6px;margin:-4px 0 22px;padding:5px;background:#ececec;border-radius:13px;width:max-content;max-width:100%;overflow:auto}.settings-tab{padding:10px 14px;border-radius:9px;font-weight:800;font-size:13px;white-space:nowrap;color:#666}.settings-tab.active{background:#111;color:#fff}.settings-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(320px,.75fr);gap:22px;align-items:start}.settings-intro{margin:4px 0 20px}.branding-upload-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.branding-upload-card{border:1px solid #e3e3e3;border-radius:13px;padding:15px;display:grid;gap:12px;background:#fafafa}.branding-preview{height:90px;border:1px dashed #d4d4d4;border-radius:10px;background:#fff;display:flex;align-items:center;justify-content:center;padding:12px}.branding-preview img{max-width:100%;max-height:66px;object-fit:contain}.favicon-preview img{width:48px;height:48px;object-fit:contain}.deadline-category-settings-list{display:grid}.deadline-category-settings-row{display:grid;grid-template-columns:170px minmax(220px,1fr) 110px 210px;gap:14px;align-items:end;padding:16px 20px;border-bottom:1px solid #eee}.deadline-category-settings-row .category-pill{align-self:center;justify-self:start}.settings-save{padding:18px 20px}.dashboard-chart-panel .filter-bar input[type=month]{border:1px solid #d8d8d8;background:#fff;border-radius:10px;padding:9px 11px}.hours-category-chart{padding:22px;display:grid;gap:18px}.chart-row{display:grid;gap:8px}.chart-row-head{display:flex;justify-content:space-between;gap:20px;align-items:center}.chart-row-head strong{white-space:nowrap}.chart-row-head strong small{color:#777;font-weight:700;margin-left:4px}.chart-category{display:flex;align-items:center;gap:9px;font-weight:800}.chart-category i{width:12px;height:12px;border-radius:50%;display:block;flex:0 0 auto}.chart-track{height:13px;background:#eee;border-radius:999px;overflow:hidden}.chart-track span{display:block;height:100%;border-radius:999px;min-width:3px}.chart-total{display:flex;justify-content:space-between;align-items:center;padding-top:16px;border-top:1px solid #eee}.chart-total strong{font-size:20px}
@media(max-width:1000px){.settings-grid{grid-template-columns:1fr}.deadline-category-settings-row{grid-template-columns:1fr 1fr}.deadline-category-settings-row .check-card{grid-column:1/-1}.branding-upload-grid{grid-template-columns:1fr}}
@media(max-width:640px){.settings-tabs{width:100%}.settings-tab{flex:0 0 auto}.deadline-category-settings-row{grid-template-columns:1fr}.deadline-category-settings-row .check-card{grid-column:auto}.chart-row-head{align-items:flex-start}.hours-category-chart{padding:16px}}


/* V7.1 · Dashboard: grafico sotto le scadenze e filtri compatti */
.dashboard-chart-filters{flex-wrap:nowrap;align-items:center}
.dashboard-chart-filters select{width:260px;max-width:36vw;min-width:190px}
.dashboard-chart-filters input[type=month]{width:170px;flex:0 0 170px}
.dashboard-chart-filters .btn{flex:0 0 auto;white-space:nowrap}
@media(max-width:900px){
  .dashboard-chart-panel .panel-head{align-items:center}
  .dashboard-chart-filters{width:auto;max-width:100%;margin-left:auto}
}
@media(max-width:640px){
  .dashboard-chart-panel .panel-head{align-items:stretch}
  .dashboard-chart-filters{width:100%;margin-left:0;display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:8px}
  .dashboard-chart-filters select{width:100%;max-width:none;min-width:0}
  .dashboard-chart-filters input[type=month]{width:150px;min-width:0}
  .dashboard-chart-filters .btn{grid-column:1/-1;width:100%}
}


/* V8 · Situazione economica Timesheet senza monte ore */
.period-calculated{display:grid;gap:7px;align-content:end}.period-calculated>span{font-size:13px;font-weight:800}.period-calculated strong{display:flex;align-items:center;min-height:42px;border:1px solid #d8d8d8;background:#fff;border-radius:10px;padding:10px 12px;font-variant-numeric:tabular-nums}.period-calculated small{color:#777}.consumption-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.report-generation-form{display:flex;gap:9px;align-items:flex-end;flex-wrap:wrap}.report-paid-field{display:grid;gap:4px;min-width:180px}.report-paid-field span{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:#666}.report-paid-field input{width:180px;border:1px solid #d8d8d8;background:#fff;border-radius:9px;padding:8px 10px;outline:none}.report-paid-field input:focus{border-color:#777;box-shadow:0 0 0 3px rgba(0,0,0,.05)}
@media(max-width:1300px){.consumption-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.period-row{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:900px){.consumption-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.report-generation-form{width:100%}.report-paid-field{flex:1}.report-paid-field input{width:100%}}
@media(max-width:560px){.consumption-kpis{grid-template-columns:1fr}.report-generation-form{display:grid;grid-template-columns:1fr}.report-generation-form .btn{width:100%}}

/* V9 · Riepilogo economico annuale per i Timesheet senza monte ore */
.consumption-year-panel .annual-economic-kpis{padding:20px 22px 0;margin-bottom:16px}.consumption-year-table{min-width:720px}.consumption-year-table-wrap{border-top:1px solid var(--line)}.consumption-history-total{padding:15px 22px;border-top:1px solid var(--line);background:#fafafa;display:flex;align-items:center;justify-content:space-between;gap:18px;font-size:13px}.consumption-history-total span{text-align:right;color:#555}.consumption-history-total b{color:#111}.consumption-history-total b.text-danger{color:var(--red)}
@media(max-width:900px){.consumption-year-panel .annual-economic-kpis{padding:14px}.consumption-history-total{align-items:flex-start;flex-direction:column}.consumption-history-total span{text-align:left}}

/* V6.2 · Situazione economica annuale distinta */
.consumption-year-panel{background:#eef1f4;border-color:#d7dde3;box-shadow:none}
.consumption-year-panel .panel-head{background:#e7ebef;border-bottom-color:#d7dde3}
.consumption-year-panel .annual-economic-kpis{padding:20px 22px 0;margin-bottom:16px}
.consumption-year-panel .kpi-card{background:#fff}
.consumption-year-panel .consumption-year-table th{background:#e7ebef;color:#555}
.consumption-year-panel .consumption-history-total{background:#e7ebef;border-top-color:#d7dde3}
.report-delete-form{display:inline-flex;margin:0}

/* V6.4 · Dettaglio attività espandibile */
.activity-expand{margin-top:2px;border-top:1px solid #eee;padding-top:9px}
.activity-expand summary{list-style:none;display:flex;align-items:center;gap:7px;width:max-content;max-width:100%;cursor:pointer;color:#666;font-size:11px;font-weight:800;user-select:none}
.activity-expand summary::-webkit-details-marker{display:none}
.activity-expand summary::after{content:'+';display:grid;place-items:center;width:20px;height:20px;border-radius:6px;background:#f1f1f1;color:#111;font-size:14px;line-height:1;margin-left:2px}
.activity-expand[open] summary::after{content:'−'}
.activity-expand summary span{display:inline-flex;align-items:center;justify-content:center;min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:#f1f1f1;color:#666;font-size:10px}
.activity-expand-body{display:grid;gap:10px;padding-top:10px}
.activity-expand-compact{margin-top:0;padding-top:0;border-top:0}
.activity-expand-compact .activity-expand-body{padding-top:8px}
.activity-expand-dashboard{margin-top:1px;padding-top:5px;border-top:0}
.dashboard-activity-list{gap:5px;padding-top:7px}
.dashboard-activity-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;font-size:11px;color:#666}
.dashboard-activity-row span{min-width:0}
.dashboard-activity-row strong{white-space:nowrap;color:#111;font-size:11px}

/* V6.3 · Rendiconto giornaliero / settimanale */
.daily-report-head{margin-bottom:18px}
.daily-report-toolbar-panel{padding:0;margin-bottom:18px}
.daily-report-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 16px}
.daily-view-tabs{margin:0}
.daily-date-controls{display:flex;align-items:center;gap:8px}
.daily-date-form{margin:0}
.daily-date-form input[type=date]{height:38px;border:1px solid #d8d8d8;background:#fff;border-radius:9px;padding:7px 10px;font:inherit;font-size:13px;font-weight:750;outline:none}
.daily-date-form input[type=date]:focus{border-color:#888;box-shadow:0 0 0 3px rgba(0,0,0,.05)}
.daily-summary-kpis{grid-template-columns:repeat(3,minmax(0,1fr));padding:20px 22px}
.daily-client-cards{display:grid;gap:14px;padding:18px 22px 22px}
.daily-client-card{border:1px solid var(--line);border-radius:14px;background:#fff;padding:16px 17px;display:grid;gap:11px}
.daily-client-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.daily-client-head>div{display:grid;gap:3px;min-width:0}
.daily-client-name{font-size:16px;font-weight:850}
.daily-client-head>strong{font-size:17px;white-space:nowrap;font-variant-numeric:tabular-nums}
.daily-client-head>strong small{font-size:12px;color:#777;margin-left:5px}
.daily-progress{height:10px;border-radius:999px;background:#ececec;overflow:hidden}
.daily-progress span{display:block;height:100%;min-width:3px;border-radius:999px;background:#111}
.daily-progress.compact{height:7px}
.daily-category-line{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.daily-category-line .activity-type-chip{font-size:10px;min-height:22px;padding:4px 8px}
.daily-entry-list{display:grid;border-top:1px solid #eee;margin-top:1px}
.daily-entry-row{display:grid;grid-template-columns:minmax(0,1fr) 10px auto;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid #f0f0f0}
.daily-entry-row:last-child{border-bottom:0;padding-bottom:0}
.daily-entry-row>div{display:grid;gap:2px;min-width:0}
.daily-entry-row>div strong{font-size:13px;line-height:1.35}
.daily-entry-row>div small{font-size:11px;color:#777}
.daily-entry-row>b{font-size:13px;white-space:nowrap}
.daily-entry-type{width:9px;height:9px;border-radius:50%;background:var(--type-color,#ddd)}
.weekly-day-list{display:grid;gap:16px;padding:18px 22px 22px}
.weekly-day-card{border:1px solid var(--line);border-radius:15px;background:#fff;overflow:hidden}
.weekly-day-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding:16px 17px 11px;background:#fafafa}
.weekly-day-head h3{margin:2px 0 0;font-size:18px}
.weekly-day-total{display:grid;text-align:right;gap:2px}
.weekly-day-total strong{font-size:19px}
.weekly-day-total span{font-size:11px;color:#777;font-weight:750}
.weekly-day-progress{height:7px;background:#ececec;overflow:hidden}
.weekly-day-progress span{display:block;height:100%;background:#111;min-width:3px}
.weekly-client-list{display:grid}
.weekly-client-row{padding:14px 17px;border-top:1px solid #eee}
.weekly-client-row:first-child{border-top:0}
.weekly-client-main{display:grid;gap:8px}
.weekly-client-title{display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:13px}
.weekly-client-title strong{white-space:nowrap}
.weekly-entry-summary{display:flex;align-items:center;gap:7px 14px;flex-wrap:wrap;color:#555;font-size:11px;line-height:1.35}
.weekly-entry-summary span{display:inline-flex;align-items:center;gap:5px}
.weekly-entry-summary i{width:7px;height:7px;border-radius:50%;display:block;flex:0 0 auto}
.weekly-entry-summary b{color:#111;font-weight:800}
.dashboard-daily-panel .panel-head .btn{white-space:nowrap}
.dashboard-daily-summary{padding:18px 22px 22px;display:grid;grid-template-columns:180px minmax(0,1fr);gap:22px;align-items:start}
.dashboard-daily-total{border:1px solid var(--line);border-radius:13px;background:#fafafa;padding:16px;display:grid;gap:4px}
.dashboard-daily-total span{font-size:11px;text-transform:uppercase;letter-spacing:.05em;font-weight:800;color:#666}
.dashboard-daily-total strong{font-size:26px}
.dashboard-daily-clients{display:grid;gap:13px}
.dashboard-daily-client{display:grid;gap:6px}
.dashboard-daily-client-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.dashboard-daily-client-head>div{display:grid;gap:2px;min-width:0}
.dashboard-daily-client-head>div>a{font-weight:850}
.dashboard-daily-client-head>div>small{color:#777;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:760px}
.dashboard-daily-client-head>strong{white-space:nowrap;font-size:13px}
.dashboard-daily-client-head>strong small{color:#777;font-size:11px;margin-left:4px}
@media(max-width:900px){
  .daily-summary-kpis{grid-template-columns:1fr 1fr 1fr}
  .dashboard-daily-summary{grid-template-columns:1fr}
  .dashboard-daily-total{grid-template-columns:1fr auto;align-items:center}
}
@media(max-width:700px){
  .daily-report-toolbar{align-items:stretch;flex-direction:column}
  .daily-view-tabs{width:100%}
  .daily-view-tabs .settings-tab{flex:1;text-align:center}
  .daily-date-controls{width:100%;display:grid;grid-template-columns:auto minmax(0,1fr) auto}
  .daily-date-form{width:100%}.daily-date-form input[type=date]{width:100%}
  .daily-date-controls>.btn-secondary{grid-column:1/-1;width:100%}
  .daily-summary-kpis{grid-template-columns:1fr;padding:14px}
  .daily-client-cards,.weekly-day-list{padding:14px}
  .daily-client-head,.weekly-day-head,.weekly-client-title,.dashboard-daily-client-head{align-items:flex-start}
  .daily-client-head{flex-direction:column;gap:8px}
  .daily-client-head>strong{font-size:15px}
  .weekly-day-head{align-items:flex-start}
  .weekly-day-total{min-width:120px}
  .weekly-client-title{flex-direction:column;gap:4px}
  .daily-entry-row{grid-template-columns:minmax(0,1fr) auto}.daily-entry-type{display:none}
  .dashboard-daily-summary{padding:14px}.dashboard-daily-client-head{flex-direction:column;gap:4px}
  .dashboard-daily-client-head>div>small{white-space:normal;max-width:none}
}
