.rem-page { padding: 1rem 1.5rem; max-width: 1200px; margin: 0 auto; }

.rem-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem; align-items: center;
    margin-bottom: 1rem;
}
.rem-head__title { color: #fff; font-size: 1.4rem; margin: 0; }
.rem-head__nav {
    display: flex; align-items: center; gap: 0.5rem;
    justify-content: center;
}
.rem-nav-btn {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    color: #cbd5e1; width: 32px; height: 32px;
    border-radius: 6px; cursor: pointer; font-size: 1.1rem;
}
.rem-month-label { color: #fff; font-weight: 600; min-width: 140px; text-align: center; }
.rem-head__controls { display: flex; gap: 0.5rem; }

.rem-filter {
    background: #0a1426; border: 1px solid rgba(255,255,255,0.1);
    color: #cbd5e1; padding: 0.4rem 0.7rem; border-radius: 6px;
    font-size: 0.85rem;
}
.rem-view-toggle { display: inline-flex; }
.rem-vt {
    background: transparent; border: 1px solid rgba(255,255,255,0.1);
    color: #94a3b8; padding: 0.4rem 0.85rem;
    cursor: pointer; font-size: 0.82rem;
}
.rem-vt:first-child { border-radius: 6px 0 0 6px; }
.rem-vt:last-child  { border-radius: 0 6px 6px 0; border-left: none; }
.rem-vt.is-active { background: #0e7390; color: #fff; border-color: #0e7390; }

.rem-loading { text-align: center; padding: 3rem; color: #64748b; }
.rem-error { text-align: center; padding: 3rem; color: #fca5a5; }
.rem-empty { text-align: center; padding: 3rem 1rem; color: #94a3b8; }
.rem-empty__hint { font-size: 0.85rem; color: #64748b; }

/* Month grid */
.rem-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    overflow: hidden;
}
.rem-dayhead {
    background: #0a1426; color: #94a3b8;
    padding: 0.5rem; font-size: 0.75rem;
    text-transform: uppercase; text-align: center; letter-spacing: 0.04em;
}
.rem-cell {
    background: #0e1b30; min-height: 96px; padding: 0.45rem;
    cursor: pointer; display: flex; flex-direction: column; gap: 0.3rem;
    transition: background 0.15s ease;
}
.rem-cell:hover { background: #142544; }
.rem-cell.is-other-month { opacity: 0.45; }
.rem-cell.is-today { background: #13334a; }
.rem-cell__num { color: #cbd5e1; font-size: 0.78rem; }
.rem-cell__chips { display: flex; flex-direction: column; gap: 0.15rem; }
.rem-chip {
    color: #fff; font-size: 0.7rem;
    padding: 1px 6px; border-radius: 6px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rem-overflow { color: #94a3b8; font-size: 0.7rem; }

/* Agenda */
.rem-bucket { margin-bottom: 1.5rem; }
.rem-bucket h3 { color: #fff; font-size: 0.9rem; margin: 0 0 0.5rem; }
.rem-bucket.is-overdue h3 { color: #fca5a5; }
.rem-arow {
    display: grid; grid-template-columns: 12px 1fr auto auto;
    gap: 0.75rem; align-items: center;
    background: #0e1b30; padding: 0.6rem 0.85rem;
    border-radius: 6px; margin-bottom: 0.3rem; cursor: pointer;
}
.rem-arow:hover { background: #142544; }
.rem-arow__dot { width: 10px; height: 10px; border-radius: 50%; }
.rem-arow__title { color: #fff; font-size: 0.88rem; }
.rem-arow__veh { color: #94a3b8; font-size: 0.78rem; }
.rem-arow__due { color: #cbd5e1; font-size: 0.78rem; }

/* This week list (below grid) */
.rem-week { margin-top: 1.5rem; }
.rem-week__title { color: #fff; font-size: 1rem; margin: 0 0 0.6rem; }
.rem-week__row {
    display: grid; grid-template-columns: 12px 1fr 1fr auto;
    gap: 0.6rem; align-items: center;
    background: #0e1b30; padding: 0.55rem 0.85rem;
    border-radius: 6px; margin-bottom: 0.3rem; cursor: pointer;
}
.rem-week__row:hover { background: #142544; }
.rem-week__dot { width: 10px; height: 10px; border-radius: 50%; }
.rem-week__label { color: #fff; font-size: 0.88rem; }
.rem-week__veh { color: #94a3b8; font-size: 0.82rem; }
.rem-week__due { color: #cbd5e1; font-size: 0.82rem; }

/* Drawer */
.rem-drawer {
    position: fixed; top: 0; right: 0; height: 100vh; width: 360px;
    background: #0a1426; border-left: 1px solid rgba(255,255,255,0.1);
    z-index: 100; overflow-y: auto;
    box-shadow: -8px 0 24px rgba(0,0,0,0.4);
    padding: 1rem;
}
.rem-drawer__head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1rem;
}
.rem-drawer__head h3 { color: #fff; margin: 0; font-size: 1rem; }
.rem-drawer__close {
    background: transparent; border: none; color: #94a3b8;
    font-size: 1.4rem; cursor: pointer;
}
.rem-drawer__row {
    background: #0e1b30; padding: 0.6rem; border-radius: 6px;
    margin-bottom: 0.4rem; cursor: pointer;
}
.rem-drawer__row:hover { background: #142544; }
.rem-drawer__title { color: #fff; font-size: 0.88rem; }
.rem-drawer__veh { color: #94a3b8; font-size: 0.78rem; }
.rem-drawer__empty { color: #64748b; }

@media (max-width: 768px) {
    .rem-head { grid-template-columns: 1fr; gap: 0.5rem; }
    .rem-head__nav, .rem-head__controls { justify-content: center; }
    .rem-cell { min-height: 64px; }
    .rem-chip { font-size: 0.65rem; }
    .rem-drawer { width: 100vw; }
}
