/* ============================================
   MODUL 4 — REGISTRU AVANSURI (Evidență Zilnică)
   ============================================ */

.ra { max-width: 1200px; margin: 0 auto; padding: 12px 24px; }

/* ── Header ── */
.ra-head {
    margin-bottom: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    position: relative;
}

.ra-head-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0d9488 0%, #14b8a6 40%, #99f6e4 100%);
}

.ra-head-content {
    display: flex; justify-content: space-between; align-items: center;
    gap: 16px; flex-wrap: wrap;
    padding: 16px 24px;
}

.ra-brand {
    display: flex; align-items: center; gap: 16px;
    min-width: 0;
}

.ra-brand-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    border: 1.5px solid #99f6e4;
    display: flex; align-items: center; justify-content: center;
    color: #0d9488; flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.12);
}

.ra-brand-text {
    display: flex; flex-direction: column; gap: 6px; min-width: 0;
}

.ra-head-row {
    display: flex; justify-content: space-between; align-items: center;
    gap: 16px; flex-wrap: wrap;
}
.ra-head-left {
    display: flex; align-items: center; gap: 20px;
    min-width: 0; flex-wrap: wrap;
}
.ra-title { font-size: 17px; font-weight: 800; color: #0f172a; margin: 0; letter-spacing: -0.02em; white-space: nowrap; }
.ra-sub { display: none; }

.ra-head-right {
    display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}

.ra-head-btn {
    width: 36px; height: 36px; border-radius: 10px;
    border: 1.5px solid #e2e8f0; background: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #64748b; transition: all 0.15s;
}
.ra-head-btn:hover { background: #f8fafc; border-color: #cbd5e1; color: #0f172a; transform: translateY(-1px); }
.ra-head-btn--print:hover { border-color: #fcd34d; color: #b45309; background: #fffbeb; }

.ra-add {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; font-size: 12px; font-weight: 600;
    border: 1.5px solid #99f6e4; border-radius: 8px;
    background: #f0fdfa; color: #0f766e; cursor: pointer;
    transition: all 0.15s; font-family: inherit;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.ra-add:hover { background: #ccfbf1; border-color: #5eead4; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

/* ── Tabs (inline with title) ── */
.ra-bar { display: none; }

.ra-tabs {
    display: flex; align-items: center; gap: 2px;
    padding: 3px; background: #f1f5f9; border-radius: 8px;
}

.ra-tab {
    padding: 6px 14px; font-size: 12px; font-weight: 600;
    border: none; border-radius: 6px; background: transparent;
    color: #94a3b8; cursor: pointer; transition: all 0.2s;
    font-family: inherit; display: inline-flex; align-items: center; gap: 6px;
    position: relative;
}
.ra-tab:hover { color: #475569; }
.ra-tab--on {
    background: white; color: #0f172a;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
}

.ra-tab-badge {
    font-size: 10px; font-weight: 700; padding: 2px 8px;
    border-radius: 20px; background: #e2e8f0; color: #475569;
    min-width: 12px; text-align: center;
}
.ra-tab--on .ra-tab-badge { background: #0f766e; color: white; }
.ra-tab-badge--warn { background: #fef3c7; color: #b45309; }
.ra-tab--on .ra-tab-badge--warn { background: #f59e0b; color: white; }

.ra-bar-total {
    display: flex; align-items: baseline; gap: 6px;
}
.ra-bar-total-label { font-size: 10px; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.ra-bar-total-sum { font-size: 14px; font-weight: 800; color: #b45309; font-family: 'JetBrains Mono', monospace; }

/* ── Day Navigation ── */
.ra-nav-btn {
    width: 32px; height: 32px; border-radius: 8px;
    border: 1.5px solid #e2e8f0; background: white;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #94a3b8; transition: all 0.15s;
}
.ra-nav-btn:hover { background: #f8fafc; color: #0f172a; border-color: #cbd5e1; }

.ra-nav-today {
    padding: 5px 12px; font-size: 11px; font-weight: 700;
    border: 1.5px solid #bfdbfe; border-radius: 8px;
    background: white; color: #1d4ed8; cursor: pointer;
    font-family: inherit; transition: all 0.15s;
}
.ra-nav-today:hover { background: #eff6ff; border-color: #93c5fd; }

/* ── Zilnic compact bar ── */
.ra-zilnic-bar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; margin-bottom: 16px; flex-wrap: wrap;
    padding: 10px 16px;
    background: #fff; border: 1.5px solid #e2e8f0; border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.ra-zilnic-nav {
    display: flex; align-items: center; gap: 6px;
}
.ra-zilnic-date {
    display: flex; align-items: center; gap: 8px;
    padding: 4px 14px; cursor: pointer;
    border-radius: 8px; transition: background .15s;
}
.ra-zilnic-date:hover { background: #f8fafc; }
.ra-zilnic-day { font-size: 11px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.04em; }
.ra-zilnic-num { font-size: 17px; font-weight: 800; color: #0f172a; letter-spacing: -0.01em; }
.ra-zilnic-azi { font-size: 9px; font-weight: 800; padding: 2px 7px; border-radius: 5px; background: #dcfce7; color: #15803d; }

.ra-zilnic-chips {
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.ra-chip {
    display: inline-flex; align-items: baseline; gap: 4px;
    padding: 5px 12px; border-radius: 8px;
    font-size: 13px; font-weight: 800; color: #334155;
    background: #f8fafc; border: 1px solid #e2e8f0;
    font-variant-numeric: tabular-nums; white-space: nowrap;
}
.ra-chip small { font-size: 10px; font-weight: 600; color: #94a3b8; }
.ra-chip--warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.ra-chip--warn small { color: #b45309; }
.ra-chip--ok { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.ra-chip--ok small { color: #16a34a; }
.ra-chip--teal { background: #f0fdfa; border-color: #99f6e4; color: #0f766e; }
.ra-chip--teal small { color: #0d9488; }
.ra-chip--click { cursor: pointer; transition: all 150ms ease; user-select: none; }
.ra-chip--click:hover { transform: translateY(-1px); box-shadow: 0 2px 6px rgba(0,0,0,0.1); }
.ra-chip--click.ra-chip--active { outline: 2px solid currentColor; outline-offset: 1px; font-weight: 800; }

/* ── Day Group Header ── */
.ra-day {
    margin-bottom: 16px;
    animation: raFade 0.3s ease-out both;
}

.ra-day-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 16px; background: #f8fafc;
    border: 1px solid #e2e8f0; border-radius: 10px 10px 0 0;
}
.ra-day-head--toggle:hover { background: #f1f5f9; }
.ra-day--collapsed .ra-day-head { border-radius: 10px; }

.ra-day-date { display: flex; align-items: center; gap: 8px; }
.ra-day-name { font-size: 11px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.04em; }
.ra-day-num { font-size: 15px; font-weight: 800; color: #0f172a; }
.ra-day-ago { font-size: 10px; color: #94a3b8; }

.ra-day-stats { display: flex; align-items: center; gap: 10px; }
.ra-day-count { font-size: 11px; color: #64748b; }
.ra-day-active { font-size: 11px; font-weight: 700; color: #b45309; background: #fef3c7; padding: 2px 8px; border-radius: 20px; }
.ra-day-sum { font-size: 14px; font-weight: 800; color: #0f766e; text-shadow: 0 1px 2px rgba(0,0,0,0.06); }

.ra-day-cards {
    border: 1px solid #e2e8f0; border-top: none;
    border-radius: 0 0 10px 10px; overflow: hidden;
}

/* ── Cards ── */
.ra-c {
    display: flex; align-items: center; gap: 10px;
    padding: 5px 14px;
    background: white; border-bottom: 1px solid #f1f5f9;
    transition: all 0.15s;
    animation: raSlide 0.25s ease-out both;
}
.ra-c:last-child { border-bottom: none; }
.ra-c:hover { background: #fafbfc; }
.ra-c + .ra-c { border-top: 1px solid #e2e8f0; }

.ra-c--mild { border-left: 3px solid #fbbf24; }
.ra-c--medium { border-left: 3px solid #f97316; }
.ra-c--urgent { border-left: 3px solid #ef4444; background: #fef8f8; }
.ra-c--done { opacity: 0.6; }
.ra-c--done:hover { opacity: 1; }

.ra-c-ini {
    width: 30px; height: 30px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 800; color: white;
    background: linear-gradient(135deg, #0d9488, #0f766e);
    flex-shrink: 0; text-transform: uppercase;
}
.ra-c-ini--done { background: linear-gradient(135deg, #86efac, #22c55e); font-size: 13px; }

.ra-c-body { flex: 1; min-width: 0; }
.ra-c-row1 { display: flex; align-items: center; gap: 8px; }
.ra-c-inline { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ra-c-name { font-size: 13px; font-weight: 700; color: #0f172a; white-space: nowrap; }
.ra-c-scop-inline { font-size: 12px; color: #64748b; white-space: nowrap; }
.ra-c-doc-inline { font-size: 11px; color: #475569; font-weight: 600; white-space: nowrap; }
.ra-c-scop { font-size: 12px; color: #64748b; max-width: 400px; margin-top: 1px; white-space: normal; line-height: 1.4; }
.ra-c-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 3px; }

.ra-c-zile { font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 20px; }
.ra-c-zile--ok { background: #dcfce7; color: #15803d; }
.ra-c-zile--mild { background: #fef3c7; color: #b45309; }
.ra-c-zile--medium { background: #ffedd5; color: #c2410c; }
.ra-c-zile--urgent { background: #fee2e2; color: #dc2626; animation: raPulse 2s infinite; }

.ra-c-doc { font-size: 10px; padding: 1px 6px; border-radius: 4px; background: #f1f5f9; color: #475569; font-weight: 600; }
.ra-c-rest { font-size: 10px; padding: 1px 6px; border-radius: 4px; background: #dbeafe; color: #1d4ed8; font-weight: 600; }
.ra-c-decdate { font-size: 10px; color: #94a3b8; }

.ra-c--auto { border-left: 3px solid #8b5cf6; }
.ra-c-auto-badge { font-size: 9px; font-weight: 700; padding: 1px 6px; border-radius: 20px; background: #f5f3ff; color: #7c3aed; text-transform: uppercase; letter-spacing: 0.03em; }

.ra-c--depunere { border-left: 3px solid #0284c7; }
.ra-c-depunere-badge { font-size: 9px; font-weight: 700; padding: 1px 6px; border-radius: 20px; background: #e0f2fe; color: #0369a1; text-transform: uppercase; letter-spacing: 0.03em; }

.ra-c-end { text-align: right; flex-shrink: 0; }
.ra-c-end-row { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.ra-c-sum { font-size: 14px; font-weight: 800; color: #b45309; }
.ra-c-sum--done { color: #0f172a; font-size: 12px; }
.ra-c-ch { font-size: 10px; color: #94a3b8; }
.ra-c-acts { display: flex; gap: 4px; justify-content: flex-end; }

.ra-act {
    width: 26px; height: 26px; border-radius: 7px;
    border: 1.5px solid; display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; background: white; transition: all 0.15s;
    font-size: 13px; font-weight: 700;
}
.ra-act--green { color: #15803d; border-color: #bbf7d0; }
.ra-act--green:hover { background: #dcfce7; }
.ra-act--red { color: #dc2626; border-color: #fecaca; }
.ra-act--red:hover { background: #fee2e2; }
.ra-act--amber { color: #b45309; border-color: #fed7aa; }
.ra-act--blue { color: #2563eb; border-color: #bfdbfe; }
.ra-act--blue:hover { background: #eff6ff; }
.ra-act--amber:hover { background: #fef3c7; }

/* ── Empty ── */
.ra-empty { text-align: center; padding: 64px 20px; }
.ra-empty-ico { font-size: 44px; margin-bottom: 10px; opacity: 0.5; }
.ra-empty p { font-size: 14px; color: #94a3b8; margin: 0; }

/* ── Dialog ── */
.ra-ov {
    position: fixed; inset: 0;
    background: rgba(15,23,42,0.4); backdrop-filter: blur(4px);
    z-index: 10001; display: flex; align-items: center; justify-content: center; padding: 20px;
}

.ra-dlg {
    background: white; border-radius: 16px; width: 460px; max-width: 95vw;
    box-shadow: 0 25px 60px rgba(0,0,0,0.18); animation: raFade 0.2s ease-out;
    overflow: visible;
}

.ra-dlg-head { padding: 18px 22px; border-bottom: 1px solid #f1f5f9; display: flex; justify-content: space-between; align-items: center; }
.ra-dlg-head h3 { margin: 0; font-size: 17px; font-weight: 700; color: #0f172a; }

.ra-dlg-x {
    width: 32px; height: 32px; border: 1px solid #e2e8f0; border-radius: 8px;
    background: white; cursor: pointer; font-size: 15px; color: #94a3b8;
    display: flex; align-items: center; justify-content: center; transition: all 0.15s;
}
.ra-dlg-x:hover { background: #f1f5f9; color: #475569; }

.ra-dlg-body { padding: 22px; overflow: visible; }
.ra-dlg-foot { padding: 14px 22px; border-top: 1px solid #f1f5f9; display: flex; gap: 8px; justify-content: flex-end; }

.ra-g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.ra-fi { margin-bottom: 14px; }
.ra-fi label { display: block; font-size: 11px; font-weight: 600; color: #94a3b8; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.04em; }
.ra-fi input, .ra-fi select {
    width: 100%; padding: 10px 14px; border: 1.5px solid #e2e8f0; border-radius: 10px;
    font-size: 13px; font-weight: 500; color: #0f172a; background: #fafbfc;
    outline: none; transition: all 0.15s; box-sizing: border-box; font-family: inherit;
}
.ra-fi input:focus, .ra-fi select:focus { border-color: #0d9488; box-shadow: 0 0 0 3px rgba(13,148,136,0.1); background: white; }

.ra-db {
    padding: 9px 20px; font-size: 13px; font-weight: 600; border-radius: 10px;
    border: 1.5px solid transparent; cursor: pointer; transition: all 0.15s; font-family: inherit;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.ra-db--primary { background: #f0fdfa; color: #0f766e; border-color: #99f6e4; }
.ra-db--primary:hover { background: #ccfbf1; }
.ra-db--green { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.ra-db--green:hover { background: #dcfce7; }
.ra-db--ghost { background: #f8fafc; color: #64748b; border-color: #e2e8f0; }
.ra-db--ghost:hover { background: #e2e8f0; }

.ra-dec-box {
    padding: 16px; background: #f8fafc; border: 1px solid #e2e8f0;
    border-radius: 12px; margin-bottom: 18px; text-align: center;
}
.ra-dec-who { font-size: 16px; font-weight: 800; color: #0f172a; }
.ra-dec-what { font-size: 12px; color: #64748b; margin: 4px 0 8px; }
.ra-dec-amt { font-size: 24px; font-weight: 800; color: #b45309; }
.ra-dec-amt small { font-size: 12px; font-weight: 600; color: #94a3b8; }

/* ── Calendar Popup ── */
.ra-cal-overlay {
    position: fixed; inset: 0;
    background: rgba(15,23,42,0.3); backdrop-filter: blur(2px);
    z-index: 10002; display: flex; align-items: center; justify-content: center;
}

.ra-cal {
    background: white; border-radius: 16px; padding: 20px;
    width: 320px; box-shadow: 0 25px 60px rgba(0,0,0,0.2);
    animation: raFade 0.2s ease-out;
}

.ra-cal-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px;
}

.ra-cal-month { font-size: 15px; font-weight: 700; color: #0f172a; }

.ra-cal-nav {
    width: 32px; height: 32px; border-radius: 8px;
    border: 1.5px solid #e2e8f0; background: white;
    font-size: 18px; color: #64748b; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s;
}
.ra-cal-nav:hover { background: #f1f5f9; color: #0f172a; }

.ra-cal-days {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 0;
    margin-bottom: 4px;
}

.ra-cal-day-name {
    text-align: center; font-size: 10px; font-weight: 700;
    color: #94a3b8; text-transform: uppercase; padding: 4px 0;
    letter-spacing: 0.05em;
}

.ra-cal-grid {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
}

.ra-cal-cell {
    position: relative; text-align: center; padding: 8px 4px;
    border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 500;
    color: #334155; transition: all 0.15s;
}
.ra-cal-cell:hover { background: #f1f5f9; }
.ra-cal-empty { cursor: default; }
.ra-cal--sel { background: #0f766e; color: white; font-weight: 700; }
.ra-cal--sel:hover { background: #0d9488; }
.ra-cal--azi { border: 2px solid #0f766e; font-weight: 700; }
.ra-cal--sel.ra-cal--azi { border-color: transparent; }

.ra-cal-dot {
    position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%);
    width: 5px; height: 5px; border-radius: 50%;
}
.ra-cal-dot--red { background: #ef4444; }
.ra-cal-dot--green { background: #22c55e; }

.ra-cal-legend {
    display: flex; gap: 16px; justify-content: center;
    margin-top: 12px; padding-top: 12px; border-top: 1px solid #f1f5f9;
    font-size: 10px; color: #94a3b8;
}
.ra-cal-legend .ra-cal-dot { width: 6px; height: 6px; margin-right: 4px; vertical-align: middle; }

/* ── Animations ── */
@keyframes raFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes raSlide { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }
@keyframes raPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ── Responsive ── */
@media (max-width: 768px) {
    .ra { padding: 16px; }
    .ra-head-row { flex-direction: column; gap: 12px; align-items: flex-start; }
    .ra-head-left { flex-direction: column; align-items: flex-start; gap: 10px; }
    .ra-head-right { flex-wrap: wrap; }
    .ra-tabs { flex-wrap: wrap; }
    .ra-zilnic-bar { flex-direction: column; align-items: stretch; }
    .ra-zilnic-chips { justify-content: center; }
    .ra-c { flex-wrap: wrap; gap: 10px; }
    .ra-c-inline { flex-wrap: wrap; }
    .ra-g2 { grid-template-columns: 1fr; }
    .ra-c-end { width: 100%; }
    .ra-c-end-row { justify-content: flex-end; }
}

/* ═══ Filter bar — tab Toate ═══ */
.ra-filter-bar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 14px; flex-wrap: wrap;
}
.ra-filter-left {
    display: flex; align-items: center; gap: 14px; min-width: 0;
}

/* Custom month dropdown */
.ra-month-select { position: relative; }
.ra-month-trigger {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 14px; border: 1.5px solid #e2e8f0; border-radius: 10px;
    background: #fff; cursor: pointer; font-family: inherit;
    transition: all .15s ease; white-space: nowrap;
}
.ra-month-trigger:hover { border-color: #cbd5e1; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.ra-month-select--open .ra-month-trigger {
    border-color: #0d9488; box-shadow: 0 0 0 3px rgba(13,148,136,0.1);
}
.ra-month-icon { color: #0d9488; flex-shrink: 0; }
.ra-month-label { font-size: 13px; font-weight: 700; color: #0f172a; }
.ra-month-count {
    font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 5px;
    background: #f0fdfa; color: #0d9488; border: 1px solid #ccfbf1;
}
.ra-month-chevron {
    color: #94a3b8; flex-shrink: 0;
    transition: transform .2s ease;
}
.ra-month-select--open .ra-month-chevron { transform: rotate(180deg); }

/* Dropdown panel */
.ra-month-dropdown {
    display: none; position: absolute; top: calc(100% + 6px); left: 0;
    min-width: 280px; max-height: 320px; overflow-y: auto;
    background: #fff; border: 1.5px solid #e2e8f0; border-radius: 12px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
    z-index: 50; padding: 4px;
}
.ra-month-select--open .ra-month-dropdown { display: block; }
.ra-month-dropdown::-webkit-scrollbar { width: 5px; }
.ra-month-dropdown::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

.ra-month-option {
    display: flex; align-items: center; justify-content: space-between;
    padding: 9px 12px; border-radius: 8px; cursor: pointer;
    transition: background .1s;
}
.ra-month-option:hover { background: #f8fafc; }
.ra-month-option--on {
    background: #f0fdfa;
}
.ra-month-option--on .ra-month-opt-name { color: #0d9488; font-weight: 700; }
.ra-month-opt-name { font-size: 13px; font-weight: 600; color: #334155; }
.ra-month-opt-stats { display: flex; align-items: center; gap: 10px; }
.ra-month-opt-count {
    font-size: 11px; font-weight: 700; color: #94a3b8;
    font-variant-numeric: tabular-nums;
}
.ra-month-opt-total {
    font-size: 12px; font-weight: 800; color: #0f766e;
    font-variant-numeric: tabular-nums;
}
.ra-month-divider { height: 1px; background: #f1f5f9; margin: 2px 8px; }

/* Filter summary */
.ra-filter-summary {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: #64748b;
}
.ra-filter-stat { font-weight: 700; font-variant-numeric: tabular-nums; }
.ra-filter-stat small { font-weight: 500; color: #94a3b8; }
.ra-filter-sep { color: #cbd5e1; }
.ra-filter-right {
    display: flex; align-items: center; gap: 8px;
}
.ra-filter-total {
    font-size: 14px; font-weight: 800; color: #0f766e;
    font-variant-numeric: tabular-nums;
}
.ra-toate-toggle {
    font-size: 11px; font-weight: 600; color: #64748b;
    background: #f1f5f9; border: 1px solid #e2e8f0;
    border-radius: 6px; padding: 4px 10px;
    cursor: pointer; font-family: inherit;
    transition: all .15s;
}
.ra-toate-toggle:hover { background: #e2e8f0; }

@media (max-width: 600px) {
    .ra-filter-bar { flex-direction: column; align-items: stretch; }
    .ra-filter-left { flex-direction: column; align-items: stretch; }
    .ra-filter-right { justify-content: flex-end; }
    .ra-month-dropdown { min-width: 100%; }
}

/* Print button */
.ra-print {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 150ms ease;
}
.ra-print:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #1e293b;
}
.ra-print svg { flex-shrink: 0; }

@media print {
    .ra-add, .ra-print, .m2-tool-icon, .ra-c-acts, .ra-tabs, .ra-nav-btn, .ra-nav-today { display: none !important; }
    .ra-c { box-shadow: none !important; border: 1px solid #ccc !important; }
    .ra-c--done { opacity: 1 !important; }
    .ra-day-head { background: #f0f0f0 !important; }
}

/* ── Date Picker ── */
.ra-dp-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
}
.ra-dp-wrap .ra-dp-input {
    flex: 1;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-right: none !important;
    margin-bottom: 0;
}
.ra-dp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    border: 1.5px solid #e2e8f0;
    border-left: none;
    border-radius: 0 8px 8px 0;
    background: #f0fdfa;
    color: #0d9488;
    cursor: pointer;
    transition: all 150ms ease;
    flex-shrink: 0;
}
.ra-dp-btn:hover {
    background: #ccfbf1;
    color: #0f766e;
}
.ra-dp-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 1000;
    width: 280px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
    padding: 12px;
    animation: ra-dp-in 150ms ease;
}
@keyframes ra-dp-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.ra-dp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2px 10px;
}
.ra-dp-month {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
}
.ra-dp-nav {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #475569;
    font-size: 16px;
    cursor: pointer;
    transition: all 120ms ease;
    font-family: inherit;
}
.ra-dp-nav:hover {
    background: #f0fdfa;
    border-color: #99f6e4;
    color: #0d9488;
}
.ra-dp-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    margin-bottom: 4px;
}
.ra-dp-dayname {
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 0;
}
.ra-dp-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.ra-dp-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    border-radius: 8px;
    cursor: pointer;
    transition: all 120ms ease;
    position: relative;
}
.ra-dp-cell:hover {
    background: #f0fdfa;
    color: #0d9488;
    font-weight: 600;
}
.ra-dp-empty { cursor: default; }
.ra-dp-today {
    font-weight: 700;
    color: #0d9488;
    background: #f0fdfa;
}
.ra-dp-today::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #0d9488;
}
.ra-dp-sel {
    background: #0d9488 !important;
    color: #fff !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3);
}
.ra-dp-sel::after { display: none; }
.ra-dp-foot {
    display: flex;
    justify-content: center;
    padding-top: 8px;
    margin-top: 4px;
    border-top: 1px solid #f1f5f9;
}
.ra-dp-today-btn {
    font-size: 12px;
    font-weight: 600;
    color: #0d9488;
    background: none;
    border: 1px solid #99f6e4;
    border-radius: 6px;
    padding: 4px 14px;
    cursor: pointer;
    transition: all 120ms ease;
    font-family: inherit;
}
.ra-dp-today-btn:hover {
    background: #f0fdfa;
}

/* Fix: input in ra-dp-wrap should not have extra bottom margin from ra-fi */
.ra-fi .ra-dp-wrap { margin-bottom: 0; }
.ra-fi .ra-dp-wrap input { margin-bottom: 0; }