.preview-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.document-preview-frame{width:100%;height:68vh;min-height:460px;border:1px solid #d8e0e3;border-radius:10px;background:#fff}.muted{color:#60717e;line-height:1.45}
.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(86px,1fr));gap:8px;max-height:58vh;overflow:auto;padding:4px}.calendar-grid button{min-height:74px;text-align:left;display:flex;flex-direction:column;justify-content:space-between;gap:6px}.calendar-grid small{font-size:.78rem;line-height:1.2}
.calendar-head,.calendar-actions,.calendar-selection,.calendar-legend{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap}.calendar-head h2{margin:0}.calendar-head p{margin:7px 0 0}.calendar-selection{margin:14px 0;padding:12px;border-radius:10px;background:#fff3ea;border-left:4px solid var(--orange)}.calendar-legend{justify-content:flex-start;margin:10px 0}.calendar-legend span{padding:6px 9px;border-radius:999px;font-size:12px}.calendar-day{background:#f6f8f9;color:var(--ink);border:1px solid #e1e7e9}.calendar-day:hover{background:#fff0e5}.calendar-day.worked-day,.calendar-legend .worked-day{background:#e4f4e9;border-color:#78bd87}.calendar-day.absence-day,.calendar-legend .absence-day{background:#fff0ee;border-color:#e79b94}.calendar-day.empty-day,.calendar-legend .empty-day{background:#f2f4f5}.calendar-day.selected-day{outline:3px solid var(--orange-dark);background:#ffe0c9}
@media(max-width:650px){.document-preview-frame{height:60vh;min-height:380px}}
@media(max-width:650px){.calendar-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.calendar-head{align-items:flex-start;flex-direction:column}.calendar-actions{width:100%}.calendar-actions input,.calendar-actions button{flex:1}}
.chantier-search-results{display:grid;gap:5px;margin-top:6px;max-height:190px;overflow:auto}.chantier-search-results button{background:#fff7f2;color:var(--ink);border:1px solid #ffd2b8;text-align:left;padding:8px}.chantier-search-results button:hover{background:#ffe5d4}.chantier-search-results small{display:block;color:#65717a;margin-top:3px}.chantier-search-results span{color:#65717a;font-weight:normal;padding:5px}
.chantier-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:16px 0}.chantier-kpis article{background:#fff;border-left:4px solid var(--orange);padding:14px;border-radius:10px;box-shadow:0 2px 10px #00000010}.chantier-kpis small,.chantier-kpis b{display:block}.chantier-kpis b{font-size:20px;color:var(--orange-dark);margin-top:6px}.chantier-alerts{background:#fff2ea;border:1px solid #ffc092;color:#7b3711;border-radius:10px;padding:12px;margin:12px 0}.chantier-alerts p{margin:6px 0}.chantier-progress-list{display:grid;gap:8px;margin:12px 0}.chantier-progress{background:#fff;border:1px solid var(--line);padding:12px;border-radius:10px}.chantier-progress b,.chantier-progress span,.chantier-progress small{display:block}.chantier-progress span{color:#5f6e78;margin:5px 0}.chantier-progress div{height:9px;background:#e8edef;border-radius:9px;overflow:hidden}.chantier-progress i{display:block;height:100%;background:var(--orange)}@media(max-width:800px){.chantier-kpis{grid-template-columns:1fr 1fr}}
