/* ═══════════════════════════════════════════════════════════════════
   PMS Hezotech — app.css v0.1.0
   Mobile-first dark UI
   ═══════════════════════════════════════════════════════════════════ */

/* ── Reset ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* ── Tipografie ──────────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--text);
    line-height: 1.2;
}
h1 { font-size: 1.75rem; }
h2 { font-size: 1.375rem; }
h3 { font-size: 1.125rem; }

small, .text-sm   { font-size: 0.8125rem; }
.text-muted       { color: var(--text-muted); }
.text-accent      { color: var(--accent); }
.text-success     { color: var(--success); }
.text-danger      { color: var(--danger); }
.text-warning     { color: var(--warning); }

/* ── Layout principal — mobile ───────────────────────────────────── */
.layout {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.header-logo img {
    height: 28px;
    width: auto;
}
.header-logo-text {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.02em;
}
.header-logo-badge {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-muted);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-xs);
    padding: 1px 5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.header-spacer { flex: 1; }

.header-user {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--text-muted);
}
.header-user strong {
    color: var(--text-2);
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Conținut principal */
.main {
    flex: 1;
    padding: 20px 16px calc(var(--bottom-nav-h) + 16px);
    max-width: var(--content-max);
    width: 100%;
    margin: 0 auto;
}

/* Bottom nav — mobil */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-h);
    background: var(--header-bg);
    border-top: 1px solid var(--header-border);
    display: flex;
    z-index: 100;
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: var(--nav-text);
    font-size: 0.6875rem;
    font-weight: 500;
    transition: color var(--transition);
    padding: 8px 4px;
    border: none;
    background: none;
    cursor: pointer;
}
.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: var(--nav-active-text);
}
.bottom-nav-item svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* FIX v0.2.1 (bug mobil): sidebar-ul desktop NU trebuie randat pe mobil.
   Fără această regulă, <aside class="sidebar"> apărea nestilizat deasupra paginii
   (logo uriaș, link-uri și „Owner / Deconectare" ca text plutitor). */
.sidebar { display: none; }

/* ── Desktop: sidebar în loc de bottom nav ────────────────────────── */
@media (min-width: 768px) {
    .layout { flex-direction: row; }

    .header {
        display: none; /* header-ul mobil se ascunde */
    }

    .sidebar {
        width: var(--sidebar-w);
        min-height: 100dvh;
        background: var(--header-bg);
        border-right: 1px solid var(--header-border);
        display: flex;
        flex-direction: column;
        position: sticky;
        top: 0;
        height: 100dvh;
        flex-shrink: 0;
    }

    .sidebar-logo {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 20px 16px 16px;
        border-bottom: 1px solid var(--header-border);
        text-decoration: none;
    }
    .sidebar-logo img { height: 26px; }
    .sidebar-logo-text {
        font-family: var(--font-display);
        font-size: 1.0625rem;
        font-weight: 700;
        color: var(--text);
    }

    .sidebar-nav {
        flex: 1;
        padding: 12px 8px;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .sidebar-link {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 9px 12px;
        border-radius: var(--radius-sm);
        color: var(--nav-text);
        text-decoration: none;
        font-size: 0.875rem;
        font-weight: 500;
        transition: background var(--transition), color var(--transition);
    }
    .sidebar-link:hover { background: var(--surface-2); color: var(--text); }
    .sidebar-link.active { background: var(--nav-active-bg); color: var(--nav-active-text); }
    .sidebar-link svg {
        width: 18px; height: 18px;
        stroke: currentColor; fill: none;
        stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
        flex-shrink: 0;
    }

    .sidebar-footer {
        padding: 12px 8px;
        border-top: 1px solid var(--header-border);
    }

    .sidebar-user {
        padding: 8px 12px;
        font-size: 0.8125rem;
        color: var(--text-muted);
    }
    .sidebar-user strong { display: block; color: var(--text-2); font-weight: 500; }

    .main {
        flex: 1;
        padding: 28px 28px;
        overflow-y: auto;
    }

    .bottom-nav { display: none; }
    .header-mobile { display: none; }
}

/* Header mobil (vizibil doar pe mobil) */
.header-mobile {
    display: flex;
}

@media (min-width: 768px) {
    .header-mobile { display: none; }
    .sidebar { display: flex; }
}

/* ── Componente ──────────────────────────────────────────────────── */

/* Carduri */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}
.card + .card { margin-top: 16px; }
.card-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
}

/* Grid statistici */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
}
.stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 4px;
}
.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

/* Butoane */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    border: 1px solid transparent;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.btn-primary {
    background: var(--accent);
    color: #0f0f0f;
    border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #0f0f0f; text-decoration: none; }

.btn-secondary {
    background: var(--surface-2);
    color: var(--text-2);
    border-color: var(--border-strong);
}
.btn-secondary:hover { background: var(--surface-3); color: var(--text); text-decoration: none; }

.btn-danger {
    background: var(--danger-muted);
    color: var(--danger);
    border-color: var(--danger-border);
}
.btn-danger:hover { background: var(--danger); color: #fff; text-decoration: none; }

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border-color: transparent;
}
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }

.btn-sm { padding: 6px 12px; font-size: 0.8125rem; }
.btn-full { width: 100%; justify-content: center; }

/* Formulare */
.form-group { margin-bottom: 16px; }
.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.9375rem;
    font-family: var(--font);
    padding: 10px 12px;
    transition: border-color var(--transition);
    -webkit-appearance: none;
}
.form-control::placeholder { color: var(--text-disabled); }
.form-control:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--surface);
}
.form-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 0.8125rem; color: var(--danger); margin-top: 4px; }

/* Toggle switch */
.toggle-wrap { display: flex; align-items: center; gap: 10px; }
.toggle {
    display: inline-block;      /* fix UI-FIX-01: fără asta, ca <label> inline înălțimea e ignorată
                                   → track invizibil și bulina iese din container */
    position: relative;
    width: 44px; height: 24px;
    flex-shrink: 0;
    vertical-align: middle;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--surface-3);
    border-radius: 12px;
    cursor: pointer;
    transition: background var(--transition);
}
.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    left: 3px; top: 3px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: transform var(--transition), background var(--transition);
}
.toggle input:checked + .toggle-slider { background: var(--accent-muted); border: 1px solid var(--accent-border); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); background: var(--accent); }

/* Alertă */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    margin-bottom: 16px;
    border: 1px solid;
}
.alert-success { background: var(--success-muted); border-color: var(--success-border); color: var(--success); }
.alert-danger   { background: var(--danger-muted);  border-color: var(--danger-border);  color: var(--danger); }
.alert-warning  { background: var(--warning-muted); border-color: var(--warning-border); color: var(--warning); }
.alert-info     { background: var(--info-muted);    border-color: var(--info-border);    color: var(--info); }

/* Tabel */
.table-wrap { overflow-x: auto; }
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
thead th {
    padding: 10px 12px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--border);
    background: var(--bg-alt);
}
tbody td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text-2);
    vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--surface-2); }

/* Badge status */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: var(--radius-xs);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.badge-success { background: var(--success-muted); color: var(--success); }
.badge-danger  { background: var(--danger-muted);  color: var(--danger); }
.badge-warning { background: var(--warning-muted); color: var(--warning); }
.badge-muted   { background: var(--surface-2);     color: var(--text-muted); }
.badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* Page header */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
    flex-wrap: wrap;
}
.page-title {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text);
}
.page-subtitle { font-size: 0.8125rem; color: var(--text-muted); margin-top: 2px; }

/* Separator */
.divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

/* Utility */
.flex          { display: flex; }
.items-center  { align-items: center; }
.items-end     { align-items: flex-end; } /* DEF-CSET-01 (UI): lipsea → fallback stretch → butonul „Salvează comisionul" întins pe înălțimea coloanei label+input */
.justify-between { justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.mt-8   { margin-top: 8px; }
.mt-16  { margin-top: 16px; }
.mt-24  { margin-top: 24px; }
.mb-0   { margin-bottom: 0; }
.mb-8   { margin-bottom: 8px; }
.mb-16  { margin-bottom: 16px; }
.w-full { width: 100%; }

/* ── Layout pagini de autentificare (bare layout) ────────────────── */
.auth-wrap {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: var(--bg);
}
.auth-card {
    width: 100%;
    max-width: 380px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-lg);
}
.auth-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 28px;
    gap: 10px;
}
.auth-logo img { height: 40px; }
.auth-logo-title {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text);
    text-align: center;
}
.auth-logo-sub {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-align: center;
}

/* Module list pe pagina de edit client */
.module-list { display: flex; flex-direction: column; gap: 12px; }
.module-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.module-info { }
.module-name { font-weight: 600; font-size: 0.9375rem; color: var(--text); }
.module-desc { font-size: 0.8125rem; color: var(--text-muted); margin-top: 2px; }

/* ═══════════════════════════════════════════════════════════════════
   Toast (UI-FIX-02) — mesaje post-redirect, position:fixed, fără layout shift
   ═══════════════════════════════════════════════════════════════════ */
.toast-container {
    position: fixed;
    top: 16px;
    right: 16px;
    left: 16px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    pointer-events: none;
}
.toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 380px;
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--border-strong);
    background: var(--surface-2);
    box-shadow: var(--shadow-lg);
    color: var(--text);
    font-size: 0.875rem;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.hide { opacity: 0; transform: translateY(-8px); }
.toast-icon {
    width: 8px; height: 8px; border-radius: 50%;
    flex-shrink: 0;
}
.toast-success { border-color: var(--success-border); }
.toast-success .toast-icon { background: var(--success); box-shadow: 0 0 8px var(--success); }
.toast-danger  { border-color: var(--danger-border); }
.toast-danger .toast-icon  { background: var(--danger); box-shadow: 0 0 8px var(--danger); }
.toast-msg { flex: 1; line-height: 1.4; }
.toast-close {
    background: none; border: none; color: var(--text-muted);
    font-size: 1.25rem; line-height: 1; cursor: pointer; padding: 0 2px;
}
.toast-close:hover { color: var(--text); }

@media (min-width: 520px) {
    .toast-container { left: auto; }
}

/* ═══════════════════════════════════════════════════════════════════
   Eroare inline de formular — persistentă, server-rendered (fără layout shift)
   ═══════════════════════════════════════════════════════════════════ */
.form-error-inline {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 11px 14px;
    margin-bottom: 16px;
    border-radius: var(--radius-sm);
    background: var(--danger-muted);
    border: 1px solid var(--danger-border);
    color: var(--danger);
    font-size: 0.875rem;
    line-height: 1.45;
}
.form-error-inline svg {
    width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px;
    stroke: currentColor; fill: none; stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
}

/* ═══════════════════════════════════════════════════════════════════
   Badge status rezervări
   ═══════════════════════════════════════════════════════════════════ */
.badge-status { color: #0f0f0f; }
.badge-pending      { background: var(--status-pending); }
.badge-confirmed    { background: var(--status-confirmed); }
.badge-checked_in   { background: var(--status-checked-in); color: #fff; }
.badge-checked_out  { background: var(--status-checked-out); }
.badge-cancelled    { background: var(--status-cancelled); color: #fff; }
.badge-no_show      { background: var(--status-no-show); color: #fff; }
.badge-status::before { display: none; }

/* ═══════════════════════════════════════════════════════════════════
   Proprietăți + unități
   ═══════════════════════════════════════════════════════════════════ */
.property-card { margin-bottom: 16px; }
.property-card-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 12px; margin-bottom: 12px;
}
.property-name { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; color: var(--text); }
.property-loc { font-size: 0.8125rem; color: var(--text-muted); margin-top: 2px; }
.unit-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm);
    background: var(--surface-2); border: 1px solid var(--border);
}
.unit-row + .unit-row { margin-top: 8px; }
.unit-meta { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.unit-type-badge {
    font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--accent); background: var(--accent-muted); border: 1px solid var(--accent-border);
    border-radius: var(--radius-xs); padding: 2px 7px;
}
.empty-state {
    text-align: center; padding: 40px 20px; color: var(--text-muted);
}
.empty-state svg { width: 40px; height: 40px; stroke: var(--text-disabled); fill: none; stroke-width: 1.5; margin-bottom: 12px; }

/* ═══════════════════════════════════════════════════════════════════
   Calendar lunar
   ═══════════════════════════════════════════════════════════════════ */
.calendar-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 16px; flex-wrap: wrap;
}
.calendar-nav { display: flex; align-items: center; gap: 8px; }
.calendar-month { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; color: var(--text); min-width: 150px; text-align: center; }
.calendar-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); -webkit-overflow-scrolling: touch; }

/* Restilizare v0.3.0 — inspirat de referința CRM, adaptat dark:
   aerisit, borduri interne estompate (doar linii de rând subtile), numere de zi
   mai mari, „azi" ca inel-contur orange, weekend discret, blocuri rezervare roomy. */
table.calendar { border-collapse: collapse; }
/* Fără grilă grea: doar separator subtil de rând; verticalele dispar */
table.calendar td, table.calendar th { border: none; }
table.calendar tbody tr { border-bottom: 1px solid var(--border); }
table.calendar thead tr { border-bottom: 1px solid var(--border-strong); }

.cal-unit-head, .cal-unit-cell {
    position: sticky; left: 0; z-index: 3;
    width: 116px; min-width: 116px; max-width: 116px;
    text-align: left; padding: 12px 14px;
    font-size: 0.8125rem; color: var(--text); font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    border-right: 1px solid var(--border);
}
.cal-unit-head { background: var(--bg-alt); }
.cal-unit-cell { background: var(--surface); z-index: 2; font-weight: 500; }

.cal-day-head {
    width: 30px; min-width: 30px; text-align: center; padding: 8px 0;
    background: var(--bg-alt); line-height: 1.35;
}
.cal-day-head small {
    display: block; font-size: 0.5625rem; font-weight: 600; letter-spacing: 0.02em;
    color: var(--text-muted); text-transform: uppercase; margin-bottom: 3px;
}
.cal-day-head .cal-daynum {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; border-radius: 50%;
    font-size: 0.8125rem; font-weight: 500; color: var(--text-2);
}
.cal-day-head.weekend small { color: var(--accent); }
.cal-day-head.weekend .cal-daynum { color: var(--text-muted); }
/* „azi" = inel-contur orange (nu disc plin) */
.cal-day-head.today .cal-daynum {
    border: 1.5px solid var(--accent); color: var(--accent); font-weight: 700;
}

.cal-cell { width: 30px; min-width: 30px; height: 52px; padding: 0; position: relative; }
.cal-cell.weekend { background: rgba(255,255,255,0.015); }
.cal-cell.today { background: var(--accent-muted); }

/* UX-04: ghidaje verticale pe timeline-ul de rezervări (consecvent cu D1 de pe grila de prețuri).
   Separator subtil per coloană + accent la granița de săptămână (luni). */
.calendar:not(.rate-grid) .cal-day-head,
.calendar:not(.rate-grid) .cal-free { border-right: 1px solid rgba(255,255,255,0.05); }
.calendar .cal-day-head.week-start,
.calendar .cal-cell.week-start,
.calendar .cal-free.week-start { border-left: 1px solid var(--border-strong); }

/* Zi liberă — selectabilă */
.cal-free { cursor: pointer; transition: background var(--transition); }
.cal-free:hover { background: var(--accent-muted); }
.cal-free.sel-start, .cal-free.sel-end { background: var(--accent); }
.cal-free.sel-range { background: var(--accent-muted); }

/* Bloc rezervare (celulă colspan) — pill roomy cu nume */
.cal-cell.cal-res-cell { padding: 8px 3px; }
.cal-res {
    display: flex; align-items: center; gap: 4px; height: 34px; border-radius: 9px;
    padding: 0 10px; cursor: pointer; overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.cal-res-label {
    font-size: 0.75rem; font-weight: 600; line-height: 1;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #0f0f0f;
}
.cal-res-warn { font-size: 0.75rem; flex-shrink: 0; }
.cal-res.st-pending     { background: var(--status-pending); }
.cal-res.st-confirmed   { background: var(--status-confirmed); }
.cal-res.st-checked_in  { background: var(--status-checked-in); }
.cal-res.st-checked_in .cal-res-label { color: #fff; }
.cal-res.st-checked_out { background: var(--status-checked-out); }
/* Conflict (suprapunere import channel) — vizibil, NU tăcut */
.cal-res.has-conflict { box-shadow: 0 0 0 2px var(--danger), var(--shadow-sm); }

/* Desktop: încadrează toată luna fără scroll orizontal intern */
@media (min-width: 768px) {
    table.calendar { width: 100%; table-layout: fixed; }
    .cal-unit-head, .cal-unit-cell { width: 108px; min-width: 108px; max-width: 108px; }
    .cal-day-head, .cal-cell { width: auto; min-width: 0; }
}

.calendar-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; font-size: 0.75rem; color: var(--text-muted); }
.calendar-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 10px; height: 10px; border-radius: 3px; }

/* Bară plutitoare de selecție interval */
.cal-selection-bar {
    position: fixed; left: 50%; transform: translateX(-50%) translateY(20px);
    bottom: calc(var(--bottom-nav-h) + 14px); z-index: 900;
    display: flex; align-items: center; gap: 12px;
    background: var(--surface-2); border: 1px solid var(--accent-border);
    border-radius: var(--radius-xl); padding: 10px 12px 10px 18px;
    box-shadow: var(--shadow-lg);
    opacity: 0; pointer-events: none; transition: opacity var(--transition), transform var(--transition);
}
.cal-selection-bar.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.cal-selection-info { font-size: 0.8125rem; color: var(--text-2); }
.cal-selection-info strong { color: var(--text); }
.cal-selection-bar .btn { white-space: nowrap; }
@media (min-width: 768px) {
    .cal-selection-bar { bottom: 20px; }
}

/* Câmpuri vârste copii (formular rezervare) */
.children-ages { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.children-ages .age-field { width: 84px; }
.children-ages .age-field label { font-size: 0.6875rem; color: var(--text-muted); display: block; margin-bottom: 3px; }

/* Dashboard — liste compacte */
.mini-list { list-style: none; padding: 0; margin: 0; }
.mini-list li {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 9px 0; border-bottom: 1px solid var(--border); cursor: pointer;
}
.mini-list li:last-child { border-bottom: none; }
.mini-list .ml-name { font-weight: 500; color: var(--text); font-size: 0.875rem; }
.mini-list .ml-sub { font-size: 0.75rem; color: var(--text-muted); }
.mini-list .ml-right { font-size: 0.75rem; color: var(--text-muted); text-align: right; white-space: nowrap; }

/* Detalii rezervare */
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.detail-item .detail-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.detail-item .detail-value { font-size: 0.9375rem; color: var(--text); margin-top: 3px; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 8px 0 8px 18px; position: relative; border-left: 2px solid var(--border); }
.timeline li::before { content: ''; position: absolute; left: -5px; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.timeline .tl-time { font-size: 0.75rem; color: var(--text-muted); }
.timeline .tl-text { font-size: 0.875rem; color: var(--text-2); }

/* ═══════════════════════════════════════════════════════════════════
   Channel Manager (Platform Admin — tehnic)
   ═══════════════════════════════════════════════════════════════════ */
.channel-subnav {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-bottom: 20px; border-bottom: 1px solid var(--border); padding-bottom: 12px;
}
.channel-subnav-item {
    padding: 6px 12px; border-radius: var(--radius-sm); font-size: 0.8125rem; font-weight: 600;
    color: var(--text-muted); text-decoration: none; transition: background var(--transition), color var(--transition);
}
.channel-subnav-item:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.channel-subnav-item.active { background: var(--nav-active-bg); color: var(--nav-active-text); }

.raw-output {
    background: #0a0a0a; border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 12px 14px; font-family: var(--font-mono); font-size: 0.75rem; line-height: 1.5;
    color: var(--text-2); white-space: pre-wrap; word-break: break-word;
    max-height: 340px; overflow: auto;
}

/* DEF-UI-01 — inline <code> (URL webhook, chei, ID-uri externe) trebuie să se RUPĂ, nu să depășească
   orizontal pe mobil. Fără regulă globală, URL-urile lungi ies din card. */
code {
    font-family: var(--font-mono); font-size: 0.85em;
    background: #0a0a0a; border: 1px solid var(--border); border-radius: 4px;
    padding: 1px 5px; color: var(--text-2);
    overflow-wrap: anywhere; word-break: break-word;
}

.channel-steps { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.channel-steps form { width: 100%; }
.channel-steps .btn { width: 100%; justify-content: flex-start; }

/* Card client — punct de status */
.channel-status-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.channel-status-dot.on  { background: var(--success); box-shadow: 0 0 10px var(--success); }
.channel-status-dot.off { background: var(--text-disabled); }

/* ═══════════════════════════════════════════════════════════════════
   Tarife (Rates Engine — setări)
   ═══════════════════════════════════════════════════════════════════ */
.wd-chip { position: relative; display: inline-block; }
.wd-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.wd-chip span {
    display: inline-block; padding: 6px 12px; border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm); font-size: 0.8125rem; color: var(--text-2); cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.wd-chip input:checked + span { background: var(--accent-muted); border-color: var(--accent-border); color: var(--accent); }
.wd-chip input:focus-visible + span { outline: 2px solid var(--accent); }
.live-example { color: var(--accent); font-weight: 500; min-height: 1em; }
.plan-row:hover td { background: var(--surface-2); }

/* Grila de prețuri (Rates) — BUG-01: aliniată la limbajul vizual al referinței,
   identic cu timeline-ul de rezervări (aerisit, fără grilă grea, „azi" = inel pe
   numărul zilei din header, nu contur pe toată celula). */
.rate-cell {
    text-align: center; vertical-align: middle; cursor: pointer;
    height: 48px; color: var(--text); transition: background var(--transition);
    padding: 0 2px;
}
.rate-cell:hover { background: var(--accent-muted); }
.rate-cell.is-closed { color: var(--text-disabled); background: rgba(255,255,255,0.02); }
.rate-cell .rate-closed { color: var(--text-disabled); font-size: 0.875rem; }
/* UX-02: numerele încap fără suprapunere (inclusiv brut cu comision = 4 cifre) */
.rate-cell .rate-price {
    display: inline-block; font-weight: 600; font-size: 0.6875rem; line-height: 1;
    white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
}
/* Override = accent pe număr + subliniere discretă (nu contur greu pe celulă) */
.rate-cell.is-override .rate-price {
    color: var(--accent);
    text-decoration: underline; text-decoration-color: var(--accent-border); text-underline-offset: 3px;
}
/* Doar separatoare verticale subtile — nu grila plină din starea istorică */
table.calendar.rate-grid td, table.calendar.rate-grid th { border-right: 1px solid var(--border); }
table.calendar.rate-grid .cal-unit-cell, table.calendar.rate-grid .cal-unit-head { border-right: 1px solid var(--border-strong); }
/* A1 (BUG-05): stare „selectată" pe grila de prețuri, consecventă cu selecția din
   calendarul de rezervări (UX-01: ținta e vizibilă înainte de acțiune). */
.rate-cell.sel-start, .rate-cell.sel-end { background: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.rate-cell.sel-start .rate-price, .rate-cell.sel-end .rate-price,
.rate-cell.sel-start .rate-closed, .rate-cell.sel-end .rate-closed { color: #0f0f0f; }
.rate-cell.sel-range { background: var(--accent-muted); }

/* Block-out în calendar (§2.9) — gri/hașurat, distinct de rezervare/override */
.cal-cell.cal-block-cell { padding: 3px 2px; }
.cal-block, .cal-block-btn {
    display: flex; align-items: center; justify-content: center; width: 100%; height: 26px;
    border: none; border-radius: 7px; cursor: pointer; overflow: hidden;
    background: repeating-linear-gradient(45deg, var(--surface-3), var(--surface-3) 5px, var(--surface-2) 5px, var(--surface-2) 10px);
    color: var(--text-muted);
}
.cal-block-static { cursor: default; }
.cal-block-label { font-size: 0.6875rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 6px; }
.cal-block-btn:hover { color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger-border); }

/* UX-01: stare „selectată" clar distinctă cât timp formularul e populat */
.cal-free.sel-start, .cal-free.sel-end { background: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.cal-free.sel-range { background: var(--accent-muted); }

/* Item 1 — Centralizator prețuri (matrice sezoane × unități) */
.price-matrix { width: 100%; border-collapse: collapse; }
.price-matrix th, .price-matrix td { padding: 10px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.price-matrix thead th {
    background: var(--bg-alt); font-size: 0.6875rem; text-transform: uppercase;
    letter-spacing: 0.03em; color: var(--text-muted); font-weight: 600; vertical-align: middle;
}
.price-matrix tbody tr:last-child td { border-bottom: none; }
.pm-cell { min-width: 118px; }
.pm-input {
    width: 96px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600;
    padding: 6px 8px;
}
.pm-derived { margin-top: 5px; display: flex; flex-wrap: wrap; gap: 3px 8px; }
.pm-derived span { font-size: 0.6875rem; color: var(--text-muted); white-space: nowrap; }

/* Item 2 — indicator stare sincronizare */
.sync-indicator { display: inline-flex; align-items: center; gap: 6px; }

/* A2 — date-picker propriu (temă dark, iconiță/accent Hezotech). RO, dd.mm.yyyy. */
.dp-wrap { position: relative; display: block; }
.dp-input { padding-right: 38px; }
.dp-icon {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; padding: 0; border: none; border-radius: var(--radius-sm);
    background: transparent; color: var(--accent); cursor: pointer;
}
.dp-icon:hover { background: var(--accent-muted); }
.dp-pop {
    position: absolute; z-index: 950; top: calc(100% + 6px); left: 0;
    width: 268px; padding: 12px; background: var(--surface);
    border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dp-title { font-family: var(--font-display); font-weight: 600; color: var(--text); }
.dp-nav {
    width: 28px; height: 28px; border: none; border-radius: var(--radius-sm);
    background: var(--surface-2); color: var(--text-2); cursor: pointer; font-size: 1.1rem; line-height: 1;
}
.dp-nav:hover { background: var(--surface-3); color: var(--accent); }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-dow { text-align: center; font-size: 0.625rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; padding: 4px 0; }
.dp-empty { height: 32px; }
.dp-day {
    height: 32px; border: none; border-radius: var(--radius-sm); background: transparent;
    color: var(--text-2); cursor: pointer; font-size: 0.8125rem; font-variant-numeric: tabular-nums;
}
.dp-day:hover { background: var(--accent-muted); color: var(--accent); }
.dp-day.dp-today { box-shadow: inset 0 0 0 1.5px var(--accent-border); color: var(--accent); }
.dp-day.dp-sel { background: var(--accent); color: #0f0f0f; font-weight: 700; }

/* ═══════════════════════════════════════════════════════════════════
   HK-01 — Fișă curățenie publică (mobile-first + print)
   ═══════════════════════════════════════════════════════════════════ */
.hk-public { background: var(--bg); color: var(--text); }
.hk-wrap { max-width: 920px; margin: 0 auto; padding: 18px 14px 40px; }
.hk-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.hk-title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; margin: 0; color: var(--text); }
.hk-sub { font-size: 0.8125rem; color: var(--text-muted); margin-top: 2px; }
.hk-actions { display: flex; gap: 8px; }
.hk-empty { padding: 40px 16px; text-align: center; color: var(--text-muted); border: 1px dashed var(--border); border-radius: var(--radius); }
.hk-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.hk-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.hk-table th { text-align: left; padding: 10px 12px; background: var(--bg-alt); color: var(--text-muted);
    font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.03em; border-bottom: 1px solid var(--border-strong); }
.hk-table td { padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.hk-table tbody tr:last-child td { border-bottom: none; }
.hk-unit { font-weight: 700; color: var(--text); white-space: nowrap; }
.hk-time { color: var(--accent); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.hk-num { text-align: center; }
.hk-notes { color: var(--text-2); font-size: 0.8125rem; }
.hk-check { color: var(--success); font-weight: 700; font-size: 1.1rem; }
.hk-past { opacity: 0.72; }
.hk-done { background: var(--success-muted); }
.hk-foot { margin-top: 16px; font-size: 0.75rem; color: var(--text-muted); }

/* Print: fundal alb, fără butoane, tabel lizibil pe hârtie */
@media print {
    .no-print { display: none !important; }
    .hk-public, body { background: #fff !important; color: #000 !important; }
    .hk-wrap { max-width: none; padding: 0; }
    .hk-title, .hk-unit { color: #000 !important; }
    .hk-table-wrap { border: none; }
    .hk-table th { background: #eee !important; color: #000 !important; }
    .hk-table td, .hk-table th { border-bottom: 1px solid #999 !important; }
    .hk-time { color: #000 !important; }
    .hk-done { background: #eef7ee !important; }
}

/* HK blocări (v0.4.8) — rând informativ/de lucru distinct de rezervări */
.hk-block .hk-blocklabel { font-size: 0.8125rem; color: var(--text-muted); font-style: italic; }
.hk-block td { background: rgba(255,255,255,0.015); }
@media print { .hk-block td { background: #f4f4f4 !important; } }

/* ── UX-13: dialog propriu (dialog.js) ──────────────────────────────────────── */
.pms-dialog-overlay {
    position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.62); opacity: 0; transition: opacity .18s ease; padding: 20px;
}
.pms-dialog-overlay.show { opacity: 1; }
.pms-dialog {
    background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
    max-width: 440px; width: 100%; padding: 22px; box-shadow: 0 18px 50px rgba(0,0,0,.5);
    transform: translateY(8px); transition: transform .18s ease;
}
.pms-dialog-overlay.show .pms-dialog { transform: translateY(0); }
.pms-dialog-title { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.pms-dialog-body { color: var(--text-2); font-size: .92rem; line-height: 1.5; white-space: pre-line; }
.pms-dialog-field { margin-top: 12px; }
.pms-dialog-input {
    width: 100%; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-sm);
    color: var(--text); padding: 9px 11px; font: inherit; resize: vertical;
}
/* DEF-UI-10 (inc68): butoanele cu texte explicite NU mai ies din ecran — wrap + full-width pe lățimi mici (320px = cazul care pică). */
.pms-dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 20px; }
/* QUAR-ADOPT-02: opțiunile lui PmsDialog.choice — pe coloană, textul opțiunii + mențiunea (hint) SUB el, niciodată tăiată. */
.pms-dialog-options { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.pms-dialog-option { width: 100%; white-space: normal; text-align: left; display: block; line-height: 1.35; }
.pms-dialog-option-hint { display: block; font-size: 0.75rem; font-weight: 400; opacity: .85; margin-top: 3px; white-space: normal; }
@media (max-width: 480px) {
    .pms-dialog-actions .btn { flex: 1 1 100%; white-space: normal; }
}

/* ── A2: select custom (select.js) ──────────────────────────────────────────── */
.pms-select { position: relative; }
.pms-select-hidden { position: absolute; opacity: 0; pointer-events: none; height: 0; width: 0; }
.pms-select-btn {
    width: 100%; text-align: left; background: var(--bg-alt); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text); padding: 9px 32px 9px 11px; font: inherit; cursor: pointer;
    position: relative;
}
.pms-select-btn::after {
    content: ''; position: absolute; right: 12px; top: 50%; width: 8px; height: 8px; margin-top: -5px;
    border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted); transform: rotate(45deg);
}
.pms-select.open .pms-select-btn { border-color: var(--accent); }
.pms-select-list {
    display: none; position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 4px);
    background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    max-height: 260px; overflow-y: auto; box-shadow: 0 10px 28px rgba(0,0,0,.45);
}
.pms-select.open .pms-select-list { display: block; }
.pms-select-item { padding: 9px 12px; cursor: pointer; color: var(--text-2); font-size: .9rem; }
.pms-select-item:hover { background: var(--surface-3); color: var(--text); }
.pms-select-item.selected { color: var(--accent); }
.pms-select-item.disabled { color: var(--text-disabled); cursor: default; }

/* ════════ HK-02: fișă v2 (DEF-HK-01) — rânduri stilizate, verde-azi, acordeon ════════ */
.hk-header { display: block; border-bottom: 2px solid var(--accent); padding-bottom: 10px; margin-bottom: 18px; }
.hk-header-addr { font-size: .82rem; color: var(--text-2); margin-top: 2px; }
.hk-header-sub { font-size: .78rem; color: var(--text-muted); margin-top: 3px; }
.hk-csv { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }
.hk-section { margin-top: 22px; }
.hk-section-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; letter-spacing: .02em; margin: 0 0 4px; }
.hk-section-title.is-accent { color: var(--accent); }
.hk-section-title.is-muted { color: var(--text-muted); }
.hk-week { font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin: 16px 2px 6px; }
.hk-empty-note { color: var(--text-muted); font-size: .9rem; padding: 8px 2px; }

/* Rânduri — listă, nu tabel. Ținte ≥44px, spațiere generoasă. */
.hk-list { display: flex; flex-direction: column; gap: 8px; }
.hk-row { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .12s ease; }
.hk-row-head { display: flex; flex-wrap: nowrap; align-items: center; gap: 10px; min-height: 56px; padding: 10px 12px; cursor: pointer; }
.hk-row-head--static { cursor: default; }
/* Coloană unitate cu lățime FIXĂ (~15-16 caractere) → pictogramele/datele se aliniază vertical pe TOATE rândurile.
   flex:0 0 → nu crește/scade; min-width egal cu baza → conținutul NU dictează lățimea; nume lung trunchiat cu … (+ tooltip). */
.hk-row-unit { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--text);
    flex: 0 0 150px; width: 150px; min-width: 150px; max-width: 150px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hk-row-dates { display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; min-width: 0; }
.hk-row-line { display: flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Regula responsive DECISĂ (arhitect): desktop/tabletă ≥768px = dată lungă „25 iulie 2026"; mobil <768px = „25.07.2026". */
.hk-d-short { display: none; }
@media (max-width: 767px) {
    .hk-row-unit { flex-basis: 112px; width: 112px; min-width: 112px; max-width: 112px; font-size: 1rem; }
    .hk-d-long { display: none; }
    .hk-d-short { display: inline; }
}
.hk-ico { width: 15px; height: 15px; stroke: var(--text-muted); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.hk-row-aff { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; color: var(--text-muted); }
/* Chevron — dimensiune FIXĂ mică peste tot (nu inerită, nu se umflă pe mobil). */
.hk-chev { flex: 0 0 auto; width: 16px; text-align: center; font-size: 1.25rem; line-height: 1; color: var(--text-muted); transition: transform .15s ease; }
.hk-row.is-open { border-color: var(--accent); }
.hk-row.is-open .hk-chev { transform: rotate(90deg); color: var(--accent); }

/* Verde = curățat AZI (rămâne sus, la locul lui). Se înțelege dintr-o privire. */
.hk-row.is-done { border-color: rgba(52,199,89,.55); background: rgba(52,199,89,.07); }
/* „✓ Curățat" + ora — stivuite (etichetă sus, ora dedesubt) când lățimea o cere. */
.hk-done-tag { color: #34C759; font-weight: 700; font-size: .82rem; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.hk-done-tag-time { font-variant-numeric: tabular-nums; }

/* Terminate — estompat. */
.hk-terminate .hk-row { opacity: .55; }
.hk-terminate .hk-row.is-open { opacity: 1; }

/* Informative (blocări fără curățenie) — rând mic, estompat, neexpandabil. */
.hk-info-list { margin-top: 8px; gap: 4px; }
.hk-row.is-info { background: transparent; border-style: dashed; border-color: var(--border); opacity: .6; }
.hk-row.is-info .hk-row-head { min-height: 0; padding: 7px 12px; }
.hk-info-text { font-size: .8rem; color: var(--text-muted); }

/* Detaliu — tabel etichete/valori, pastilă fereastră, formular. */
.hk-detail { border-top: 1px solid var(--border); background: var(--bg-alt); }
.hk-detail-inner { padding: 12px 14px; }
.hk-kv { width: 100%; border-collapse: collapse; }
.hk-kv td { padding: 4px 0; font-size: .86rem; vertical-align: top; }
.hk-k { color: var(--text-muted); white-space: nowrap; padding-right: 12px; }
.hk-v { color: var(--text-2); text-align: right; }
.hk-warn { color: var(--accent); font-size: .78rem; }
.hk-pill { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: .74rem; font-weight: 700; }
.hk-pill.is-soon { background: var(--danger-muted); color: var(--danger); }
.hk-pill.is-mid  { background: var(--surface-3); color: var(--text-2); }
.hk-pill.is-ok   { background: rgba(52,199,89,.14); color: #34C759; }
.hk-sep { height: 1px; background: var(--border); margin: 12px 0; }
.hk-done-line { font-weight: 700; color: var(--text); font-size: .9rem; }
.hk-sum-value { color: var(--accent); font-weight: 700; }
.hk-undo { background: none; border: none; color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; font-size: .84rem; padding: 0; }
.hk-undo-expired { color: var(--text-muted); font-size: .8rem; margin-top: 8px; font-style: italic; }
.hk-complete-title { font-weight: 700; color: var(--text); font-size: .9rem; margin-bottom: 8px; }
.hk-field { display: block; margin-bottom: 10px; }
.hk-field > span { display: block; font-size: .78rem; color: var(--text-muted); margin-bottom: 4px; }
.hk-input { width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); padding: 9px 11px; font: inherit; }
input.hk-sum { font-weight: 700; }
.hk-sum-calc { font-size: .78rem; color: var(--text-muted); margin: -4px 0 10px; }
.hk-save { flex: 1 1 auto; background: var(--accent); color: #0f0f0f; border: none; border-radius: var(--radius-sm); padding: 12px; font-weight: 700; font-size: .95rem; cursor: pointer; }
.hk-save:hover { background: var(--accent-hover); }

/* HK-04: două butoane (Salvează / Salvează și bifează). */
.hk-btns { display: flex; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.hk-save-alt { flex: 0 0 auto; background: transparent; color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 16px; font-weight: 600; font-size: .95rem; cursor: pointer; }
.hk-save-alt:hover { border-color: var(--accent); color: var(--accent); }

/* HK-03: buton de bifare rapidă pe rând (verde, compact) + chevron alături. */
.hk-row-aff { flex-direction: row; align-items: center; gap: 8px; }
.hk-quick-form { margin: 0; display: inline-flex; }
/* HK-08: butonul de bifare rapidă = ACȚIUNE (ghost cu contur + text „Curat"), NU disc plin (care se confunda cu starea „curățat"). */
.hk-quick { min-height: 34px; padding: 5px 12px; border-radius: 8px; background: transparent; color: var(--accent); border: 1px solid var(--accent); font-size: .8rem; font-weight: 700; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.hk-quick:hover { background: rgba(245, 166, 35, .12); }
/* UX-HK-09 — intervenție detectată (informativ) + buton evidențiat după detecție („am terminat"). */
.hk-detected { color: var(--info); font-size: .78rem; font-weight: 600; }
.hk-quick-detected { background: var(--accent); color: #1a1204; border-color: var(--accent); }
.hk-quick-detected:hover { background: var(--accent-hover); }

/* DEF-UI-05/05b: carduri hub Setări = rânduri de înălțime EGALĂ (grid stretch) + „Deschide" ancorat JOS (margin-top:auto). */
.settings-grid { align-items: stretch; }
.settings-card { display: flex; flex-direction: column; height: 100%; min-height: 120px; }
.settings-card .card-title { margin-bottom: 6px; }
.settings-card-desc { flex: 1 1 auto; margin: 0; }
.settings-card-state { margin-top: auto; padding-top: 12px; font-size: .78rem; color: var(--text-3); display: flex; align-items: center; gap: 5px; }

/* HK-03: bara de undo (5s) după bifare rapidă. */
.hk-undo-bar { position: sticky; top: 8px; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: #14361f; border: 1px solid #2b6b3f; color: #d6f5df; border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 14px; font-size: .9rem; transition: opacity .3s ease, transform .3s ease; }
.hk-undo-bar-msg { font-weight: 700; }
.hk-undo-bar-btn { background: transparent; border: none; color: #7fe0a0; font-weight: 700; text-decoration: underline; cursor: pointer; font-size: .9rem; padding: 0; }
.hk-undo-bar-hide { opacity: 0; transform: translateY(-6px); }

/* HK-06: secțiuni relative AZI/MÂINE — AZI cu accent mai puternic. */
.hk-relday { border-left: 3px solid transparent; padding-left: 12px; }
.hk-relday.is-azi { border-left-color: var(--accent); }
.hk-relday.is-maine { border-left-color: var(--border); }
.hk-section-title.is-strong { font-size: 1.15rem; }

/* RES-FLOW-01 (inc12b) — banner confirmări în așteptare + acțiuni inline în listă. */
.flow-banner { border: 1px solid var(--accent); background: rgba(245,166,35,.08); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 16px; }
.flow-banner-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.flow-banner-title { font-weight: 700; color: var(--accent); font-size: .95rem; }
.flow-banner-close { background: none; border: none; color: var(--text-muted); font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.flow-banner-close:hover { color: var(--text); }
.flow-banner-items { display: flex; flex-direction: column; gap: 8px; }
.flow-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 6px 0; border-top: 1px solid var(--border); }
.flow-item:first-child { border-top: none; }
.flow-item-info { font-size: .9rem; color: var(--text-2); }
.flow-item-kind { color: var(--text-muted); }
.flow-item-actions, .flow-row-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.flow-item-actions form, .flow-row-actions form { margin: 0; }
.flow-row-actions { margin-top: 6px; }
.flow-row-tag { font-size: .78rem; color: var(--accent); font-weight: 600; margin-right: 4px; }

/* Setări unitate — tabel paliere (rămâne). */
.hk-tiers-table td, .hk-tiers-table th { padding: 6px 8px; }
.hk-tiers-table input { width: 70px; }

@media print {
    .hk-row { break-inside: avoid; }
    .hk-public, body { background: #fff !important; color: #000 !important; }
    .hk-save, .hk-undo { display: none !important; }
}

/* Footer legitimare (Safe Browsing) — identitate operator + natura paginii. */
.hk-footer { max-width: 640px; margin: 28px auto 0; padding: 16px 14px 8px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: .78rem; text-align: center; }
.hk-footer-brand { font-family: var(--font-display); color: var(--text-2); font-weight: 600; }
.hk-footer-note { margin-top: 4px; }

/* ══ DASH-01 — dashboard „cameră de comandă" ════════════════════════════════ */
.dash-head { display:flex; justify-content:space-between; align-items:baseline; gap:12px; margin-bottom:18px; flex-wrap:wrap; }
.dash-head h1 { font-family:var(--font-display); font-size:1.7rem; margin:0; font-weight:700; }
.dash-when { color:var(--text-muted); font-size:.85rem; text-align:right; }

.dash-band { border:1px solid var(--accent-border); background:var(--accent-muted); border-radius:var(--radius); padding:6px 16px 10px; margin-bottom:22px; }
.dash-band-title { color:var(--accent); font-weight:700; font-size:.72rem; letter-spacing:.09em; text-transform:uppercase; padding:12px 0 6px; }
.dash-band-row { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:12px 0; flex-wrap:wrap; }
.dash-band-row + .dash-band-row { border-top:1px solid var(--accent-border); }
.dash-band-row .db-text { min-width:0; flex:1; }
.dash-conflict-unit { color:var(--danger); font-weight:600; }
.dash-band-actions { display:flex; gap:8px; flex-wrap:wrap; }
.dash-ok { color:var(--text-muted); font-size:.9rem; padding:4px 2px; }

.dash-sec-title { color:var(--text-muted); font-weight:700; font-size:.72rem; letter-spacing:.09em; text-transform:uppercase; margin:24px 0 10px; }

.dash-li { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; padding:14px 0; }
.dash-li + .dash-li { border-top:1px solid var(--border); }
.dash-li-main { min-width:0; flex:1; }
.dash-li-title { font-weight:600; }
.dash-li-sub { color:var(--text-muted); font-size:.85rem; margin-top:4px; }
.dash-li-clickable { cursor:pointer; }
.chk-ok { color:var(--success); } .chk-no { color:var(--danger); }
.dash-chev { color:var(--text-muted); align-self:center; font-size:1.1rem; }

.dash-cols { display:flex; gap:12px; flex-wrap:wrap; align-items:flex-start; }
.dash-cols > .card { flex:1; min-width:280px; }

.us-row { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:12px 0; }
.us-row + .us-row { border-top:1px solid var(--border); }
.us-name { font-weight:600; }
.us-badge { border-radius:999px; padding:5px 12px; font-size:.82rem; font-weight:600; white-space:nowrap; display:inline-block; }
.us-ready { color:var(--success); background:var(--success-muted); border:1px solid var(--success-border); }
.us-detected { color:var(--info); background:var(--info-muted); border:1px solid var(--info-border); }
.us-awaiting { color:var(--text-muted); font-size:.85rem; }
.us-awaiting.us-red { color:var(--danger); }
.us-confirm { margin-top:2px; }

.dash-health { display:flex; flex-wrap:wrap; gap:8px 26px; align-items:center; border:1px solid var(--border); border-radius:var(--radius); padding:14px 16px; margin:22px 0; font-size:.88rem; color:var(--text-muted); }
.dash-health strong { color:var(--text); font-weight:600; }

.dash-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:8px; }
.dash-stat { border:1px solid var(--border); border-radius:var(--radius); padding:22px 12px; text-align:center; background:var(--surface); }
.dash-stat-v { color:var(--accent); font-size:2rem; font-weight:700; font-family:var(--font-display); line-height:1; }
.dash-stat-l { color:var(--text-muted); font-size:.68rem; letter-spacing:.06em; text-transform:uppercase; margin-top:8px; }

@media (max-width:767px) {
  .dash-inhouse { order:2; } .dash-units { order:1; }
  .dash-stat { padding:16px 8px; }
  .dash-stat-v { font-size:1.6rem; }
}

/* ══ NAV-MOBILE-01 — bottom-sheet „Mai multe" ══════════════════════════════ */
.more-sheet-overlay { position:fixed; inset:0; background:rgba(0,0,0,.55); z-index:1000; opacity:0; pointer-events:none; transition:opacity .2s ease; }
.more-sheet-overlay.open { opacity:1; pointer-events:auto; }
.more-sheet { position:fixed; left:0; right:0; bottom:0; z-index:1001; background:var(--surface); border-top-left-radius:18px; border-top-right-radius:18px; border-top:1px solid var(--border); transform:translateY(100%); transition:transform .25s ease; padding:8px 12px calc(env(safe-area-inset-bottom, 0px) + 14px); }
.more-sheet.open { transform:translateY(0); }
.more-sheet-handle { width:40px; height:4px; border-radius:2px; background:var(--border-strong); margin:8px auto 10px; }
.more-sheet-title { color:var(--text-muted); font-size:.72rem; letter-spacing:.09em; text-transform:uppercase; font-weight:700; padding:2px 12px 8px; }
.more-sheet a { display:flex; align-items:center; gap:14px; padding:15px 12px; color:var(--text); text-decoration:none; border-radius:10px; font-size:1rem; }
.more-sheet a:active { background:var(--surface-2); }
.more-sheet a svg { width:22px; height:22px; stroke:currentColor; fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; }
.bottom-nav-more { background:none; border:none; font:inherit; cursor:pointer; }

@media (min-width:768px) {
  .more-sheet-overlay, .more-sheet { display:none; }
}

/* DEF-DASH-01 — starea „Ocupată" (neutru, pozitiv; nu roșu). */
.us-occupied { color: var(--text-2); border: 1px solid var(--border-strong); background: var(--surface-2); }

/* ══ UX-UI-07 — selector dată+oră propriu (înlocuiește nativul) ══════════════ */
.pdt-input { cursor: pointer; background: var(--surface-2); }
.pdt-overlay { position: fixed; inset: 0; z-index: 13000; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.pdt { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; width: 320px; max-width: 100%; max-height: 92vh; overflow: auto; padding: 14px; }
.pdt-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.pdt-title { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; text-transform: capitalize; }
.pdt-nav { background: var(--surface-2); border: 1px solid var(--border); color: var(--text); width: 36px; height: 36px; border-radius: 8px; font-size: 1.2rem; cursor: pointer; }
.pdt-nav:active { background: var(--surface-3); }
.pdt-dow { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; margin-bottom: 4px; }
.pdt-dow span { text-align: center; font-size: .7rem; color: var(--text-muted); font-weight: 600; padding: 4px 0; }
.pdt-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; }
.pdt-day { aspect-ratio: 1; border: none; background: transparent; color: var(--text); border-radius: 8px; cursor: pointer; font-size: .9rem; }
.pdt-day:not(.pdt-empty):active { background: var(--surface-2); }
.pdt-day.pdt-empty { visibility: hidden; }
.pdt-day.pdt-sel { background: var(--accent); color: #1a1204; font-weight: 700; }
.pdt-time { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 10px; }
.pdt-time-lbl { font-size: .72rem; color: var(--text-muted); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pdt-cols { display: flex; gap: 10px; margin-top: 6px; }
.pdt-col { flex: 1; height: 132px; overflow-y: auto; border: 1px solid var(--border); border-radius: 8px; position: relative; } /* DEF-UI-09: position:relative → offsetTop corect pentru centrare; fără scroll-behavior smooth */
.pdt-t { display: block; width: 100%; border: none; background: transparent; color: var(--text); padding: 8px 0; text-align: center; cursor: pointer; font-size: .95rem; font-variant-numeric: tabular-nums; }
.pdt-t:active { background: var(--surface-2); }
.pdt-t.pdt-sel { background: var(--accent); color: #1a1204; font-weight: 700; }
.pdt-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; }

/* DEF-LOCK-09 — control segmentat propriu (înlocuiește select-uri native binare). */
.pms-seg { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.pms-seg-btn { background: var(--surface-2); color: var(--text-2); border: none; padding: 9px 16px; cursor: pointer; font: inherit; font-size: .9rem; }
.pms-seg-btn + .pms-seg-btn { border-left: 1px solid var(--border); }
.pms-seg-btn.active { background: var(--accent); color: #1a1204; font-weight: 700; }

/* ── QUAR-UI-01 (inc67) — carantina VIZIBILĂ: dashboard (a0) roșu + rând roșu în listă + chenar roșu de GRUP.
   Chenarul = BORDURI pe rânduri (qg-first/mid/last/only), NU box-shadow (lecția DEF-CAL-06). ─────────────────── */
.dash-quar-row{ background:rgba(255,69,58,.08); border-radius:8px; padding:12px 10px; margin:6px -10px; }
.dash-quar-row + .dash-band-row{ border-top:0; }
.dash-quar-tag, .q-tag{ display:inline-block; font-size:.62rem; font-weight:700; letter-spacing:.06em; color:#fff;
  background:var(--danger); border-radius:4px; padding:2px 6px; margin-right:6px; vertical-align:2px; }
table tr.q-row td{ background:rgba(255,69,58,.09); }
table tr.qg-first td{ border-top:2px solid var(--danger); }
table tr.qg-last td, table tr.qg-only td{ border-bottom:2px solid var(--danger); }
table tr.qg-only td{ border-top:2px solid var(--danger); }
table tr.qg-first td:first-child, table tr.qg-mid td:first-child, table tr.qg-last td:first-child, table tr.qg-only td:first-child{ border-left:2px solid var(--danger); }
table tr.qg-first td:last-child, table tr.qg-mid td:last-child, table tr.qg-last td:last-child, table tr.qg-only td:last-child{ border-right:2px solid var(--danger); }
.q-actions{ display:flex; gap:6px; flex-wrap:wrap; align-items:center; }

/* ── UX-CAL-01/02 — PmsCalendar (calendar cu derulare orizontală continuă, o componentă pe ambele calendare) ──── */
.pmscal{ --pmscol:46px; --pmsg:3.5px; --pmsskew:26.57deg; --pmsrow:46px; --pmsband:30px; --pmslabel:120px; }
.pmscal-toolbar{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:10px; }
.pmscal-nav{ display:inline-flex; align-items:center; gap:2px; background:var(--surface); border:1px solid var(--border); border-radius:9px; padding:3px; }
.pmscal-nav button{ background:none; border:0; color:var(--text); cursor:pointer; width:30px; height:28px; border-radius:6px; display:grid; place-items:center; }
.pmscal-nav button:hover{ background:var(--surface-2); }
.pmscal-month{ min-width:126px; text-align:center; font-weight:600; padding:0 6px; font-variant-numeric:tabular-nums; }
.pmscal-cal{ background:var(--surface); border:1px solid var(--border); border-radius:12px; overflow:hidden; }
/* DEF-CAL-06: FĂRĂ -webkit-overflow-scrolling:touch — proprietatea legacy strică pictarea copiilor sticky pe iOS
   (eticheta rămâne în urmă / conținutul derulat se vede prin ea); iOS modern are momentum implicit. */
.pmscal-scroll{ overflow-x:auto; overflow-y:hidden; cursor:grab; scrollbar-width:thin; }
.pmscal-scroll.drag{ cursor:grabbing; user-select:none; }
.pmscal-scroll.selecting{ cursor:crosshair; user-select:none; }
.pmscal-scroll::-webkit-scrollbar{ height:8px; } .pmscal-scroll::-webkit-scrollbar-thumb{ background:var(--border-strong); border-radius:4px; }
/* DEF-CAL-03: grila se dimensionează la CONȚINUT (nu la viewport), altfel coloana de etichete `position:sticky`
   nu se poate ancora. inc63c2: `inline-block` (shrink-to-fit) în loc de `min-width:max-content` — iOS calculează
   greșit max-content pe un bloc cu copii flex (bug de intrinsic sizing) → sticky pica DOAR pe telefon. */
.pmscal-grid{ position:relative; display:inline-block; vertical-align:top; min-width:100%; }
.pmscal-days{ display:flex; height:38px; border-bottom:1px solid var(--border); position:sticky; top:0; z-index:6; background:var(--surface); }
.pmscal-corner{ position:sticky; left:0; z-index:2; width:var(--pmslabel); min-width:var(--pmslabel); background:var(--surface); border-right:1px solid var(--border); transform:translateZ(0); }
.pmscal-dcell{ width:var(--pmscol); min-width:var(--pmscol); border-right:1px solid var(--border); display:flex; flex-direction:column; align-items:center; justify-content:center; }
.pmscal-dcell.weekend{ background:var(--bg-alt); }
.pmscal-dcell.wkstart{ border-left:2px solid var(--border-strong); }
.pmscal-dcell small{ font-size:.6rem; color:var(--text-muted); text-transform:uppercase; letter-spacing:.03em; }
.pmscal-dcell b{ font-size:.8rem; font-weight:600; font-variant-numeric:tabular-nums; color:var(--text); }
.pmscal-dcell.today b{ color:#0f0f0f; background:var(--accent); border-radius:6px; width:20px; text-align:center; margin-top:1px; }
.pmscal-urow{ display:flex; height:var(--pmsrow); position:relative; border-bottom:1px solid var(--border); }
.pmscal-urow:last-child{ border-bottom:0; }
/* DEF-CAL-06 (inc63c2): coloana sticky acoperă COMPLET conținutul derulat — z-index peste benzi/selecție (2/3) +
   strat de compunere propriu pe iOS (translateZ), altfel WebKit lasă conținutul să treacă vizual prin ea la derulare. */
.pmscal-ulabel{ position:sticky; left:0; z-index:5; width:var(--pmslabel); min-width:var(--pmslabel); background:var(--surface); border-right:1px solid var(--border); display:flex; align-items:center; padding:0 10px; font-size:.82rem; font-weight:600; color:var(--text); transform:translateZ(0); }
/* DEF-CAL-05 (inc63c2): numele pe MAX 2 rânduri LA ORICE lățime (împărțire la spațiu natural; „…" doar dacă nici pe
   2 rânduri nu încape; max-height = plasă de siguranță dacă line-clamp nu taie pe vreun engine). Comportamentul de
   bază NU mai depinde de breakpoint (pe telefonul real clamp-ul condiționat de media nu s-a aplicat — WebKit).
   Desktop: numele scurte rămân natural pe UN rând; pe mobil se strâng doar fontul + coloana. */
.pmscal-uin{ min-width:0; white-space:normal; overflow:hidden; text-overflow:ellipsis; line-height:1.2; max-height:2.4em;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; line-clamp:2; overflow-wrap:anywhere; }
@media (max-width:767px){
  .pmscal{ --pmslabel:96px; }
  .pmscal-ulabel{ padding:0 8px; }
  .pmscal-uin{ font-size:.72rem; }
}
.pmscal-track{ position:relative; display:flex; }
/* DEF-CAL-06 (inc63c4, CAUZA REALĂ — văzută pe clona fidelă a paginii): rândul are 46px cu border-bottom 1px →
   content-box 45px; eticheta sticky (flex stretch) = 45px, dar celulele erau FORȚATE la 46px → debordau 1px SUB
   marginea etichetei, iar dunga de override (ultimii 2px ai celulei) rămânea vizibilă acolo pe ORICE platformă.
   Fix: celulele NU mai au înălțime forțată — flex stretch le aliniază exact la content-box-ul rândului (45px),
   deci dunga stă integral sub acoperirea etichetei. */
.pmscal-tcell{ width:var(--pmscol); min-width:var(--pmscol); border-right:1px solid var(--border); }
.pmscal-tcell.weekend{ background:var(--bg-alt); }
.pmscal-tcell.wkstart{ border-left:2px solid var(--border-strong); }
.pmscal-tcell.free{ cursor:pointer; }
.pmscal-tcell.free:hover{ background:var(--accent-muted); }
.pmscal-tcell.today-line{ border-left:2px solid var(--accent); } /* DEF-CAL-06: border, NU box-shadow (canal acoperit pe iOS) */
/* Ziua de schimb — parallelogram cu TEȘITURĂ SCURTĂ ȘI ABRUPTĂ (skewX, ~33% din celulă) + colțuri ROTUNJITE
   (border-radius se aplică înainte de skew). Banda citește orizontal cu capete tăiate scurt; labelul e counter-skew-uit
   (rămâne drept) + CENTRAT. Poziționarea benzii (JS) e mid-checkin → mid-checkout, cu gap de --pmsg între rezervări. */
.pmscal-band{ position:absolute; top:calc((var(--pmsrow) - var(--pmsband))/2); height:var(--pmsband); border-radius:7px; display:flex; align-items:center; justify-content:center; padding:0 8px; overflow:hidden; font-size:.76rem; font-weight:600; color:#0f0f0f; cursor:pointer; z-index:2; transform:skewX(calc(-1 * var(--pmsskew))); }
.pmscal-band .pmscal-in, .pmscal-block .pmscal-in{ display:block; max-width:100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; text-align:center; transform:skewX(var(--pmsskew)); }
.pmscal-band .pmscal-warn{ font-size:.72rem; margin-right:2px; }
.pmscal-band.st-confirmed{ background:var(--status-confirmed); }
.pmscal-band.st-pending{ background:var(--status-pending); }
.pmscal-band.st-checked_in{ background:var(--status-checked-in); color:#fff; }
.pmscal-band.st-checked_out{ background:var(--status-checked-out); color:#fff; }
.pmscal-band.conflict{ border:2px solid var(--danger); } /* DEF-CAL-06: border, NU box-shadow */
.pmscal-block{ position:absolute; top:calc((var(--pmsrow) - var(--pmsband))/2); height:var(--pmsband); border-radius:7px; z-index:1; overflow:hidden; display:flex; align-items:center; justify-content:center; padding:0 8px; font-size:.72rem; font-weight:600; color:var(--text);
  background:var(--surface-3); background-image:repeating-linear-gradient(45deg, rgba(160,160,160,.35) 0 5px, transparent 5px 10px); transform:skewX(calc(-1 * var(--pmsskew))); }
.pmscal-selband{ position:absolute; top:calc((var(--pmsrow) - var(--pmsband))/2); height:var(--pmsband); border-radius:7px; z-index:3; pointer-events:none;
  background:var(--accent-muted); border:2px solid var(--accent); transform:skewX(calc(-1 * var(--pmsskew))); } /* DEF-CAL-06: border, NU box-shadow */
/* Tarife (inc63c): celule de preț per zi. Selecția = evidențiere DREPTUNGHIULARĂ (interval inclusiv, fără jumătăți de zi). */
.pmscal-rcell{ display:flex; align-items:center; justify-content:center; cursor:pointer; font-variant-numeric:tabular-nums; }
.pmscal-rcell:hover{ background:var(--accent-muted); }
.pmscal-rp{ font-size:.72rem; font-weight:600; color:var(--text); }
.pmscal-rx{ font-size:.8rem; color:var(--text-muted); }
.pmscal-rcell.closed{ background:var(--surface-3); }
/* DEF-CAL-06 (inc63c3): dunga de override + chenarul de selecție NU se mai desenează cu box-shadow inset — pe iOS
   umbrele inset se pictează într-o trecere de decor care AJUNGE DEASUPRA stratului compus al coloanei sticky (dovada:
   pe telefon DOAR dunga sângera sub nume, fundalul și textul celulei erau acoperite corect). Fundalurile
   (background-image) sunt canalul DOVEDIT acoperit pe dispozitiv → dunga/chenarul devin gradienți de fundal. */
.pmscal-rcell.override{ background-image:linear-gradient(to top, var(--accent) 2px, rgba(0,0,0,0) 2px); }
.pmscal-rcell.override .pmscal-rp{ color:var(--accent); }
.pmscal-rcell.rsel{ background-color:var(--accent-muted);
  background-image:linear-gradient(to bottom, var(--accent) 2px, rgba(0,0,0,0) 2px), linear-gradient(to top, var(--accent) 2px, rgba(0,0,0,0) 2px); }
.pmscal-rcell.rsel-start{
  background-image:linear-gradient(to bottom, var(--accent) 2px, rgba(0,0,0,0) 2px), linear-gradient(to top, var(--accent) 2px, rgba(0,0,0,0) 2px), linear-gradient(to right, var(--accent) 2px, rgba(0,0,0,0) 2px); }
.pmscal-rcell.rsel-end{
  background-image:linear-gradient(to bottom, var(--accent) 2px, rgba(0,0,0,0) 2px), linear-gradient(to top, var(--accent) 2px, rgba(0,0,0,0) 2px), linear-gradient(to left, var(--accent) 2px, rgba(0,0,0,0) 2px); }
.pmscal-rcell.rsel-start.rsel-end{
  background-image:linear-gradient(to bottom, var(--accent) 2px, rgba(0,0,0,0) 2px), linear-gradient(to top, var(--accent) 2px, rgba(0,0,0,0) 2px), linear-gradient(to right, var(--accent) 2px, rgba(0,0,0,0) 2px), linear-gradient(to left, var(--accent) 2px, rgba(0,0,0,0) 2px); }
@media (prefers-reduced-motion: reduce){ .pmscal-scroll{ scroll-behavior:auto; } }
