:root { color-scheme: light; font-family: Inter, "Segoe UI", sans-serif; color: #17211b; background: #f1f5f9; --green: #0f766e; --green-dark: #0d655e; --nav: #162d42; --line: #cbd5e1; --muted: #64748b; --danger: #b91c1c; --warning: #b45309; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
header { color: white; background: linear-gradient(125deg, var(--nav), #203f5b); padding: 38px max(5vw, 24px); display: flex; align-items: end; justify-content: space-between; gap: 24px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(2rem, 5vw, 3.3rem); letter-spacing: -.04em; }
h2 { margin-bottom: 6px; }
.eyebrow { margin-bottom: 8px; letter-spacing: .18em; font-weight: 700; opacity: .75; }
.subtitle, section p, .meta { color: var(--muted); }
header .subtitle { color: #cbd5e1; margin-bottom: 0; }
main { width: min(1240px, 94vw); margin: 28px auto 80px; display: grid; gap: 20px; }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.metric { background: white; border: 1px solid var(--line); border-radius: 13px; padding: 18px; display: grid; gap: 4px; }
.metric strong { font-size: 1.8rem; }
.metric span { color: var(--muted); }
.metric.warning strong { color: var(--warning); }
.metric.danger-metric strong { color: var(--danger); }
.panel { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 24px; box-shadow: 0 10px 25px rgba(22,45,66,.06); }
.section-heading, .client-top, .client-status, .form-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.section-heading p { margin-bottom: 0; }
.search-label { width: min(380px, 45vw); }
.client-list { display: grid; gap: 15px; margin-top: 22px; }
.client-card { border: 1px solid var(--line); border-radius: 13px; padding: 18px; background: white; }
.client-card.needs-contact { border-left: 5px solid #f59e0b; }
.client-card h3 { margin: 0 0 5px; }
.meta { font-size: .88rem; }
.machine-meta { overflow-wrap: anywhere; margin: 10px 0 16px; }
.badge { border-radius: 999px; padding: 6px 10px; font-size: .78rem; font-weight: 750; background: #ccfbf1; color: #0f766e; }
.badge.blocked { background: #f5dedd; color: #8a2929; }
.badge.warning-badge { background: #fef3c7; color: #92400e; }
.client-form { border-top: 1px solid #e5e9e5; padding-top: 15px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: end; }
label { display: grid; gap: 6px; color: #435047; font-size: .82rem; font-weight: 650; }
input, select, button { font: inherit; }
input, select { min-width: 0; width: 100%; border: 1px solid #bbc6be; border-radius: 9px; padding: 10px 11px; background: white; color: #17211b; }
input:focus, select:focus { outline: 3px solid #ccfbf1; border-color: var(--green); }
button { border: 0; border-radius: 9px; padding: 11px 16px; cursor: pointer; font-weight: 700; }
button:disabled { opacity: .55; cursor: wait; }
.primary { color: white; background: var(--green); }
.primary:hover { background: var(--green-dark); }
.secondary { color: #1e293b; background: #f8fafc; border: 1px solid #cbd5e1; }
header .secondary { background: rgba(255,255,255,.13); color: white; border-color: rgba(255,255,255,.3); }
.danger { color: var(--danger); background: #f8e7e5; }
.form-actions { justify-content: flex-start; grid-column: span 2; }
.empty { color: var(--muted); text-align: center; padding: 34px; border: 1px dashed #bbc6be; border-radius: 12px; }
@media (max-width: 950px) { .client-form { grid-template-columns: 1fr 1fr; } .summary-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { header, .section-heading, .client-top { align-items: stretch; flex-direction: column; } .search-label { width: 100%; } .client-form, .summary-grid { grid-template-columns: 1fr; } .form-actions { grid-column: 1; } }
