/* ==============================================================================
   CRM-GREU — Components: Drawer
   Extraído de components.css — ver ese archivo para las reglas realmente
   comunes/transversales que no encajan en ninguna estructura concreta.
   ============================================================================== */

/* --- Drawer ---------------------------------------------------------------- */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 20, 38, 0.4);
    backdrop-filter: blur(4px);
    z-index: 500;
}

.drawer-overlay.hidden {
    display: none;
}

.drawer-container {
    position: fixed;
    top: 0;
    right: 0;
    width: 520px;
    max-width: 90vw;
    height: 100vh;
    background: var(--color-surface-strong);
    box-shadow: var(--shadow-sheet);
    display: flex;
    flex-direction: column;
    animation: drawerSlideIn 0.2s ease;
}

@keyframes drawerSlideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--color-border-soft);
}

.drawer-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.drawer-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--color-muted);
    cursor: pointer;
    padding: 4px;
}

.drawer-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}
