/* Inicio: compact working week; the full agenda retains its own scale. */
.home-overview .page-heading{margin-bottom:20px}
.home-week>.cal-toolbar{margin:0;border-bottom:1px solid var(--line)}
.home-calendar-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.home-week .cal-navigation h2{font-size:16px}
.home-calendar-scroll{overflow-x:auto;overscroll-behavior-x:contain}
.home-calendar-grid{min-width:728px;background:white}
.home-calendar-days,.home-calendar-extra,.home-calendar-body{display:grid;grid-template-columns:56px repeat(7,minmax(0,1fr))}
.home-calendar-days,.home-calendar-extra{margin-right:var(--home-calendar-gutter,0px)}
.home-calendar-days{background:#fafbfb;border-bottom:1px solid var(--line)}
.home-calendar-days>div{padding:8px 4px;display:flex;align-items:center;justify-content:center;gap:5px;border-left:1px solid var(--line);font-size:10px;color:var(--sub)}
.home-calendar-days>div>span{text-transform:uppercase;letter-spacing:.4px}
.home-calendar-days small{font-size:9px;color:var(--ink)}
.home-calendar-zone{align-self:center;text-align:center;font-size:9px;color:var(--sub)}
.home-calendar-extra{border-bottom:1px solid var(--line)}
.home-calendar-extra>span{align-self:center;font-size:9px;text-align:center;color:var(--sub);padding:4px;line-height:1.5}
.home-calendar-extra>div{min-width:0;border-left:1px solid var(--line);padding:2px 3px}
.home-calendar-hours{padding-bottom:12px;border-bottom:1px solid var(--line)}
.home-calendar-hours.home-full-day{max-height:452px;overflow-y:auto;scrollbar-width:thin;scrollbar-gutter:stable}
.home-calendar-body{height:440px}
.home-calendar-ruler,.home-calendar-day{position:relative;min-width:0}
.home-calendar-ruler>span{position:absolute;right:8px;color:var(--sub);font-size:10px;line-height:12px;transform:translateY(-50%);font-variant-numeric:tabular-nums}
.home-calendar-ruler>span:first-child{transform:translateY(2px)}
.home-calendar-ruler>.home-last-hour{transform:translateY(-1px)}
.home-calendar-day{border-left:1px solid var(--line);background:repeating-linear-gradient(to bottom,transparent 0,transparent 19px,#f0f3f4 19px,#f0f3f4 20px,transparent 20px,transparent 39px,var(--line) 39px,var(--line) 40px)}
.home-calendar-day.home-weekend{background-color:#fafbfc}
.home-calendar-days>.home-today,.home-calendar-day.home-today{background-color:#f0f6f5}
.home-hour-slot{position:absolute;left:0;right:0;height:40px;width:100%;background:transparent;border:0;padding:0}
.home-hour-slot:hover{background:#2d3a4209}
.home-hour-slot:focus-visible{outline-offset:-2px;z-index:4}
.home-timed-event{z-index:2;min-height:18px}
.home-timed-event .cal-event{padding:3px 5px;height:100%}
.home-timed-event .cal-event-time{font-size:9px;margin:0;line-height:12px}
.home-timed-event .cal-event strong{font-size:10px;line-height:14px}
.home-timed-event .cal-event small{font-size:9px;line-height:12px;margin-top:3px}
.home-timed-event .cal-short{display:flex;align-items:baseline;gap:4px;padding-top:1px;padding-bottom:1px;white-space:nowrap}
.home-timed-event .cal-short strong{overflow:hidden;text-overflow:ellipsis}
.home-timed-event .cal-short small{display:none}
.home-event-continued .cal-event{border-bottom:2px dotted var(--cal-color)}
.home-event-small .cal-event small{display:none}
.home-event-compact .cal-event strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-event-tight .cal-event{display:flex;align-items:baseline;gap:4px;white-space:nowrap;padding-top:1px;padding-bottom:1px}
.home-event-tight .cal-event-time{max-width:48%;flex-shrink:0;overflow:hidden;text-overflow:ellipsis}
.home-event-tight .cal-event strong{min-width:0}
.home-overview .home-event-tight .cal-event{flex-direction:row;padding:1px 5px;gap:4px}
.home-overview .home-event-tight .cal-event strong{flex:1 1 0;min-width:0}
.home-calendar-ruler{position:sticky;left:0;z-index:4;background:#fff}
.home-calendar-zone,.home-calendar-extra>span{position:sticky;left:0;z-index:4;background:#fafbfb}
.home-calendar-zone{align-self:stretch;display:flex;align-items:center;justify-content:center}
.home-timed-event .cal-event-time{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-now-line{position:absolute;left:0;right:0;border-top:1px solid #b64b54;z-index:3;pointer-events:none}
.home-now-line[hidden]{display:none}
.home-now-line>span{position:absolute;width:6px;height:6px;border-radius:50%;background:#b64b54;top:-3.5px;left:-3px}
.home-calendar-footer{padding:9px 14px;display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap;min-height:36px;font-size:10px;color:var(--sub);background:#fafbfb}
.home-outside-hours{color:var(--amber);background:var(--amber-bg);border-color:#e4d5b7}
.home-dashboard{margin-top:24px}
.home-dashboard-heading,.home-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
.home-dashboard h2{font-size:18px}
.home-dashboard-heading p,.home-panel-heading p{font-size:11px;line-height:1.6;color:var(--sub);margin-top:5px}
.home-overview .home-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 20px}
.home-metrics .metric{padding:17px;border:1px solid var(--line);background:#f8fafa;min-width:0}
.home-metrics .metric>span{display:block;font-size:11px;color:var(--sub)}
.home-metrics .metric strong{display:block;font-size:28px;margin:9px 0 6px;line-height:1.1}
.home-metrics .metric small{display:block;font-size:10px;line-height:1.5}
.home-metrics button:hover{border-color:#8a9ca4}
.home-metrics .home-metric-warning{background:#fbf6ea;border-color:#e9dcc1}
.home-metrics .home-metric-warning>span,.home-metrics .home-metric-warning strong,.home-metrics .home-metric-warning small{color:var(--amber)}
.home-dashboard .home-orders{margin:0 0 24px;padding:18px}
.home-count{display:inline-flex;align-items:center;justify-content:center;min-width:24px;padding:3px 7px;border-radius:5px;background:var(--selected);font-size:11px;vertical-align:middle;margin-left:5px}
.home-order{display:flex;align-items:center;gap:18px;padding:14px 0;border-top:1px solid var(--line)}
.home-order-main{flex:1;min-width:0}
.home-order-main strong{font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.home-order-main p{font-size:11px;color:var(--sub);margin-top:5px;line-height:1.5}
.home-order-main .home-overdue{color:var(--amber)}
.home-order-state{display:flex;gap:5px;flex-wrap:wrap;align-items:center;max-width:250px}
.home-order-state small{width:100%;font-size:10px;line-height:1.5}
.home-deposit-pending{color:var(--amber)}
.home-deposit-paid{color:var(--green)}
.home-overview .home-sent{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.home-overview .home-sent>.panel{margin:0;padding:18px;min-width:0}
.home-document{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding:15px 0}
.home-document-main{min-width:0;flex:1}
.home-document-main strong{font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.home-document-main p{font-size:11px;line-height:1.6;margin:4px 0;color:var(--sub);overflow-wrap:anywhere}
.home-document-main small{font-size:10px;line-height:1.5}
.home-document-side{display:flex;flex-direction:column;align-items:flex-end;gap:6px;max-width:45%}
.home-document-side .tag{align-self:flex-end}
.home-document-side .home-document-amount{font-size:13px;font-variant-numeric:tabular-nums;text-align:right;line-height:1.5}
.home-document-side .btn{font-size:10px}
.home-empty{padding:20px 4px;color:var(--sub);font-size:12px}
.home-empty strong{color:var(--ink)}
.home-empty p{margin-top:8px;font-size:11px;line-height:1.7;max-width:650px}
@media(max-width:1100px){.home-overview .home-sent{grid-template-columns:1fr}.home-week .cal-navigation h2{font-size:14px}.home-order{gap:12px}}
@media(max-width:900px){.home-overview .home-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.home-calendar-days small{display:none}.home-calendar-grid{min-width:728px}.home-order{flex-wrap:wrap}.home-order-main{flex-basis:100%}.home-order-state{margin-right:auto}}
@media(max-width:560px){.home-overview.essential-home{padding:20px 14px}.home-overview h1{font-size:22px}.home-week>.cal-toolbar{padding:12px}.home-week .cal-navigation{flex-wrap:wrap;gap:5px}.home-week .cal-navigation h2{margin-left:4px}.home-calendar-tools{width:100%;justify-content:space-between;gap:5px}.home-calendar-tools .cal-views button{padding:8px}.home-week .cal-arrow{min-width:34px;min-height:34px}.home-metrics .metric{padding:13px}.home-metrics .metric small{font-size:9px}.home-dashboard-heading,.home-panel-heading{align-items:flex-start;gap:10px}.home-dashboard-heading>.btn,.home-panel-heading>.btn{flex-shrink:0;max-width:110px}.home-dashboard .home-orders,.home-overview .home-sent>.panel{padding:14px}.home-dashboard h2{font-size:16px}.home-document{gap:8px}.home-calendar-footer>span{line-height:1.6}}
