/* Custom variables & layout tokens */
:root {
    /* Color Palette - Premium Slate Dark Mode */
    --bg-app: #090d16;
    --bg-card: #131a26;
    --bg-card-hover: #1b2434;
    --bg-header: #101622;
    --border-color: #242f41;
    --border-focus: #10b981;
    
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Status Colors - HSL Custom tailored */
    --clr-available: #10b981; /* Emerald */
    --clr-available-rgb: 16, 185, 129;
    --clr-reserved: #f59e0b;  /* Amber */
    --clr-reserved-rgb: 245, 158, 11;
    --clr-occupied: #ef4444;  /* Rose Red */
    --clr-occupied-rgb: 239, 68, 68;
    
    --clr-primary: #10b981;   /* Royal Blue */
    --clr-primary-hover: #059669;
    --clr-primary-rgb: 16, 185, 129;

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Shadow effects */
    --glow-available: 0 0 15px rgba(var(--clr-available-rgb), 0.35);
    --glow-reserved: 0 0 15px rgba(var(--clr-reserved-rgb), 0.35);
    --glow-occupied: 0 0 15px rgba(var(--clr-occupied-rgb), 0.35);
    --glow-primary: 0 0 15px rgba(var(--clr-primary-rgb), 0.25);
    --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Premium Light Theme overrides */
[data-theme="light"] {
    /* Color Palette - Premium Slate Light Mode */
    --bg-app: #f1f5f9;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --bg-header: #ffffff;
    --border-color: #cbd5e1;
    --border-focus: #059669;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    /* HSL Custom tailored for Light Theme */
    --clr-available: #059669;
    --clr-available-rgb: 5, 150, 105;
    --clr-reserved: #d97706;
    --clr-reserved-rgb: 217, 119, 6;
    --clr-occupied: #dc2626;
    --clr-occupied-rgb: 220, 38, 38;
    
    --clr-primary: #059669;
    --clr-primary-hover: #047857;
    --clr-primary-rgb: 5, 150, 105;

    /* Glows and shadows */
    --glow-available: 0 0 12px rgba(var(--clr-available-rgb), 0.2);
    --glow-reserved: 0 0 12px rgba(var(--clr-reserved-rgb), 0.2);
    --glow-occupied: 0 0 12px rgba(var(--clr-occupied-rgb), 0.2);
    --glow-primary: 0 0 12px rgba(var(--clr-primary-rgb), 0.15);
    --shadow-premium: 0 10px 30px -10px rgba(15, 23, 42, 0.06);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

body {
    background-color: var(--bg-app);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-app);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Layout Container */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 1.5rem;
    max-width: 1600px;
    margin: 0 auto;
    gap: 1.5rem;
}

/* Header Area */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-header);
    padding: 1.25rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-premium);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.app-logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
    transition: transform var(--transition-fast);
}

.app-logo-img:hover {
    transform: scale(1.02);
}

.premium-badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    background: rgba(var(--clr-primary-rgb), 0.15);
    color: var(--clr-primary);
    border: 1px solid rgba(var(--clr-primary-rgb), 0.3);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.time-stamp {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.time-stamp i {
    width: 16px;
    height: 16px;
}

/* KPI Cards Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: var(--shadow-premium);
    transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.kpi-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.08);
}

.kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.kpi-card[data-kpi="total"] .kpi-icon { color: var(--clr-primary); background: rgba(var(--clr-primary-rgb), 0.1); border-color: rgba(var(--clr-primary-rgb), 0.2); }
.kpi-card[data-kpi="available"] .kpi-icon { color: var(--clr-available); background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.2); }
.kpi-card[data-kpi="reserved"] .kpi-icon { color: var(--clr-reserved); background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.2); }
.kpi-card[data-kpi="occupied"] .kpi-icon { color: var(--clr-occupied); background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.2); }
.kpi-card[data-kpi="revenue"] .kpi-icon { color: #f43f5e; background: rgba(244, 63, 94, 0.1); border-color: rgba(244, 63, 94, 0.2); }

.kpi-info {
    display: flex;
    flex-direction: column;
}

.kpi-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.kpi-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

/* Status specific text colors */
.text-available { color: var(--clr-available); }
.text-reserved { color: var(--clr-reserved); }
.text-occupied { color: var(--clr-occupied); }
.text-revenue { color: #38bdf8; } /* bright light blue for money */

/* Main Layout: Split View */
.main-layout {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 1100px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
}

/* Card General Styling */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-title i {
    color: var(--clr-primary);
    width: 20px;
    height: 20px;
}

.card-title h2 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
}

/* Toolbar: Filters & Search */
.toolbar {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.15);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 260px;
}

.search-box i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.search-box input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.search-box input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(var(--clr-primary-rgb), 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.filter-group {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.filter-btn.active {
    background: rgba(var(--clr-primary-rgb), 0.1);
    color: var(--clr-primary);
    border-color: rgba(var(--clr-primary-rgb), 0.4);
}

/* Dots helper inside status indicators */
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.bg-available { background-color: var(--clr-available); box-shadow: 0 0 6px rgba(var(--clr-available-rgb), 0.5); }
.bg-reserved { background-color: var(--clr-reserved); box-shadow: 0 0 6px rgba(var(--clr-reserved-rgb), 0.5); }
.bg-occupied { background-color: var(--clr-occupied); box-shadow: 0 0 6px rgba(var(--clr-occupied-rgb), 0.5); }

/* Buttons General Styling */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: var(--radius-md);
    padding: 0.6rem 1.2rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--clr-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--clr-primary-hover);
    box-shadow: var(--glow-primary);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.btn-full {
    width: 100%;
}

.btn-icon {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.btn-icon:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.btn-icon-small {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast);
}

.btn-icon-small:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Map Viewport & Zoom Container */
.map-viewport-container {
    position: relative;
    height: 600px;
    background: #0b0f19;
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.map-pan-zoom-container {
    width: 100%;
    height: 100%;
    transform-origin: 0 0;
    cursor: grab;
    transition: transform 0.05s ease-out;
}

.map-pan-zoom-container:active {
    cursor: grabbing;
}

#interactive-map {
    display: block;
    width: 100%;
    height: 100%;
}

/* SVG Elements Styling */
.map-road {
    fill: #1a2233;
    stroke: #243049;
    stroke-width: 2px;
}

.map-green-area {
    fill: #0c2d24;
    stroke: #123e32;
    stroke-width: 1px;
}

.map-amenity {
    fill: #1e261f;
    stroke: #2e3c30;
    stroke-dasharray: 4,4;
    stroke-width: 1.5px;
}

.map-amenity-label {
    fill: #5ea862;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    text-anchor: middle;
    letter-spacing: 0.05em;
}

.map-water-area {
    fill: #0c213a;
    stroke: #16365a;
    stroke-width: 1px;
}

.map-grid-text {
    fill: var(--text-muted);
    font-family: monospace;
    font-size: 9px;
}

.lot-group {
    cursor: pointer;
}

.lot-polygon {
    stroke-width: 2;
    stroke-linejoin: round;
    transition: filter var(--transition-normal), stroke var(--transition-normal), fill var(--transition-normal);
}

/* Lote Statuses in SVG */
.lot-polygon[data-status="available"] {
    fill: rgba(var(--clr-available-rgb), 0.15);
    stroke: rgba(var(--clr-available-rgb), 0.7);
}

.lot-polygon[data-status="reserved"] {
    fill: rgba(var(--clr-reserved-rgb), 0.15);
    stroke: rgba(var(--clr-reserved-rgb), 0.7);
}

.lot-polygon[data-status="occupied"] {
    fill: rgba(var(--clr-occupied-rgb), 0.15);
    stroke: rgba(var(--clr-occupied-rgb), 0.7);
}

/* Map states/animations on hover and active selection */
.lot-group:hover .lot-polygon {
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.15));
}
.lot-group:hover .lot-polygon[data-status="available"] { fill: rgba(var(--clr-available-rgb), 0.35); stroke: #ffffff; }
.lot-group:hover .lot-polygon[data-status="reserved"] { fill: rgba(var(--clr-reserved-rgb), 0.35); stroke: #ffffff; }
.lot-group:hover .lot-polygon[data-status="occupied"] { fill: rgba(var(--clr-occupied-rgb), 0.35); stroke: #ffffff; }

.lot-polygon.selected {
    stroke: #ffffff !important;
    stroke-width: 3.5 !important;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5)) !important;
    animation: stroke-pulse 2s infinite ease-in-out;
}

@keyframes stroke-pulse {
    0% { filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.3)); }
    50% { filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.7)); }
    100% { filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.3)); }
}

.lot-label {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    text-anchor: middle;
    pointer-events: none;
    user-select: none;
    transition: fill var(--transition-fast);
}

.lot-label[data-status="available"] { fill: #a7f3d0; }
.lot-label[data-status="reserved"] { fill: #fde68a; }
.lot-label[data-status="occupied"] { fill: #fecaca; }
.lot-group:hover .lot-label { fill: #ffffff; }

/* Inactive/filtered out opacity styling */
.lot-group.muted {
    opacity: 0.15;
    pointer-events: none;
}

.lot-group.highlight-match .lot-polygon {
    stroke-width: 3;
    stroke: #38bdf8 !important;
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.8)) !important;
}

/* Map Controls Header elements */
.map-controls {
    display: flex;
    gap: 0.4rem;
}

/* Legend Styling Overlay */
.map-legend {
    position: absolute;
    bottom: 1.25rem;
    left: 1.25rem;
    background: rgba(19, 26, 38, 0.85);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.legend-color {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    border: 1px solid transparent;
}

.legend-available { background: rgba(var(--clr-available-rgb), 0.2); border-color: var(--clr-available); }
.legend-reserved { background: rgba(var(--clr-reserved-rgb), 0.2); border-color: var(--clr-reserved); }
.legend-occupied { background: rgba(var(--clr-occupied-rgb), 0.2); border-color: var(--clr-occupied); }

/* Tooltip on SVG hover */
.map-tooltip {
    position: absolute;
    background: #0f1622;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    pointer-events: none;
    z-index: 100;
    transition: opacity var(--transition-fast) ease;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 140px;
}

.map-tooltip.hidden {
    opacity: 0;
    pointer-events: none;
}

.tooltip-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.25rem;
    margin-bottom: 0.25rem;
}

.tooltip-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    color: var(--text-secondary);
}

.tooltip-body div {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.tooltip-body i {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
}

.tooltip-status {
    margin-top: 0.25rem;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Right Details Panel styling */
.details-card {
    height: 698px; /* sync height approximately with map card + toolbar */
    overflow-y: auto;
}

/* Empty State Detail Card view */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    padding: 3rem;
    color: var(--text-secondary);
}

.empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(var(--clr-primary-rgb), 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-primary);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(var(--clr-primary-rgb), 0.15);
}

.empty-icon i {
    width: 28px;
    height: 28px;
}

.empty-state h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.empty-state p {
    font-size: 0.875rem;
    max-width: 320px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Pulsing effect for Empty State icon */
.pulse {
    animation: icon-pulse 2s infinite;
}

@keyframes icon-pulse {
    0% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 10px rgba(59,130,246,0.2); }
    100% { transform: scale(1); opacity: 0.9; }
}

/* Selected Detail Content Panel */
.details-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.block-tag {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.detail-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    margin-top: -0.25rem;
}

.status-badge {
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid transparent;
}

.status-badge[data-status="available"] {
    background: rgba(16, 185, 129, 0.1);
    color: var(--clr-available);
    border-color: rgba(16, 185, 129, 0.2);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
}

.status-badge[data-status="reserved"] {
    background: rgba(245, 158, 11, 0.1);
    color: var(--clr-reserved);
    border-color: rgba(245, 158, 11, 0.2);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.1);
}

.status-badge[data-status="occupied"] {
    background: rgba(239, 68, 68, 0.1);
    color: var(--clr-occupied);
    border-color: rgba(239, 68, 68, 0.2);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.1);
}

.detail-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.info-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
}

.info-item.full-width {
    grid-column: span 2;
}

.info-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.info-value {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
}

.price-highlight {
    color: #38bdf8;
    font-size: 1.5rem;
    font-weight: 700;
}

.divider {
    height: 1px;
    background: var(--border-color);
}

/* Client Section Details */
.client-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-title-wrapper h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.section-title-wrapper i {
    width: 18px;
    height: 18px;
    color: var(--clr-primary);
}

.client-data-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.client-field {
    display: flex;
    flex-direction: column;
}

.client-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.15rem;
}

.client-value {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.font-semibold {
    font-weight: 600;
    color: #f8fafc;
}

.client-contact-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.client-notes {
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.2);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--border-color);
    margin-top: 0.25rem;
    white-space: pre-line;
}

/* Action Prompt Area */
.action-prompt {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.15);
    padding: 1rem;
    border-radius: var(--radius-md);
}

.prompt-icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.prompt-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.prompt-text strong {
    color: var(--text-primary);
}

.detail-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.detail-actions button {
    flex: 1;
}

/* Administrative Edit Form details */
.details-edit-form {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.edit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.edit-header h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.edit-header i {
    color: var(--clr-primary);
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--border-color);
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0.5rem;
}

.form-section-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}

input, select, textarea {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    width: 100%;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(var(--clr-primary-rgb), 0.15);
    background: rgba(0, 0, 0, 0.3);
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px;
    padding-right: 2.25rem;
}

textarea {
    resize: vertical;
}

/* Smooth toggle height for optional client form */
.transition-height {
    transition: max-height 0.35s ease-out, opacity 0.2s ease-out;
    max-height: 500px;
    opacity: 1;
    overflow: hidden;
}

.transition-height.collapsed {
    max-height: 0;
    opacity: 0;
    padding: 0;
    margin: 0;
    border: none;
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

/* Toast Messages */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #0f172a;
    border: 1px solid var(--border-color);
    padding: 0.9rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1000;
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.toast.hidden {
    transform: translateY(100px);
    opacity: 0;
    pointer-events: none;
}

.toast i {
    width: 20px;
    height: 20px;
    color: var(--clr-available);
}

.toast span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Hidden elements utilities */
.hidden {
    display: none !important;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.details-content, .details-edit-form, .empty-state {
    animation: fadeIn 0.3s ease-out forwards;
}

/* ========================================== */
/* LOGIN PORTAL SPECIFIC STYLING            */
/* ========================================== */

.login-body {
    background-color: var(--bg-app);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background-image: radial-gradient(circle at top right, rgba(var(--clr-primary-rgb), 0.05), transparent 40%),
                      radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.03), transparent 30%);
}

.login-wrapper {
    width: 100%;
    max-width: 440px;
    animation: fadeIn 0.5s ease-out forwards;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-premium), 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--clr-primary), var(--clr-available));
}

.login-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.login-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.login-logo-img {
    height: 64px;
    width: auto;
    object-fit: contain;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Form margins & input wrapper with icons */
.margin-bottom-md { margin-bottom: 1.25rem; }
.margin-bottom-lg { margin-bottom: 1.75rem; }

.input-icon-wrapper {
    position: relative;
    width: 100%;
}

.input-icon-wrapper input {
    padding-left: 2.75rem;
    padding-right: 2.75rem;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 18px;
    height: 18px;
    pointer-events: none;
    transition: color var(--transition-fast);
}

.input-icon-wrapper input:focus ~ .input-icon {
    color: var(--clr-primary);
}

/* Password Toggle Button */
.btn-password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.btn-password-toggle:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.btn-password-toggle i {
    width: 18px;
    height: 18px;
}

/* Submit Button & Spinners */
.btn-login {
    height: 48px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
}

.btn-login:hover i {
    transform: translateX(3px);
}

.btn-login i {
    transition: transform var(--transition-fast);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Shake Animation */
.shake {
    animation: card-shake 0.4s ease-in-out;
}

@keyframes card-shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

/* Demo Credentials Info block */
.demo-credentials-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.demo-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.demo-title i {
    width: 15px;
    height: 15px;
    color: var(--clr-primary);
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
    color: var(--clr-occupied) !important;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.15);
}

/* Demo Credentials Grid (Phase 3) */
.demo-details-grid {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.775rem;
    color: var(--text-muted);
}

.demo-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.demo-row span {
    font-weight: 500;
}

.demo-row code {
    background: rgba(0, 0, 0, 0.25);
    color: #e2e8f0;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-family: monospace;
}

/* User Profile Badge in Header */
.user-profile-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.825rem;
    color: var(--text-secondary);
}

.user-profile-badge i {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
}

/* Role Indicators */
.role-indicator {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: 4px;
    border: 1px solid transparent;
}

/* Role Specific Glow Colors */
.role-admin {
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
    border-color: rgba(139, 92, 246, 0.2);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.1);
}

.role-coord {
    background: rgba(var(--clr-primary-rgb), 0.1);
    color: #60a5fa;
    border-color: rgba(var(--clr-primary-rgb), 0.2);
    box-shadow: 0 0 10px rgba(var(--clr-primary-rgb), 0.1);
}

.role-seller {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.2);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.1);
}

.role-super {
    background: rgba(6, 182, 212, 0.1);
    color: #22d3ee;
    border-color: rgba(6, 182, 212, 0.2);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.1);
}

.role-adviser {
    background: rgba(100, 116, 139, 0.1);
    color: #94a3b8;
    border-color: rgba(100, 116, 139, 0.2);
}

.role-default {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

/* User Management Layout */
.user-management-layout {
    grid-template-columns: 350px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.user-form-wrapper {
    position: sticky;
    top: 0;
}

.user-list-wrapper {
    height: 100%;
}

.user-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.user-search-wrapper {
    position: relative;
    width: 280px;
}

.user-search-wrapper .search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    pointer-events: none;
}

.user-search-wrapper input {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    padding: 0.5rem 0.75rem 0.5rem 2.25rem;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.user-search-wrapper input:focus {
    outline: none;
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 2px rgba(var(--clr-primary-rgb), 0.15);
}

/* Users Table */
.users-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.users-table th,
.users-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.users-table th {
    background: rgba(255, 255, 255, 0.01);
    color: var(--text-secondary);
    font-weight: 600;
}

.users-table tbody tr {
    transition: background 0.2s ease;
}

.users-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.015);
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-table-name {
    font-weight: 500;
    color: var(--text-primary);
}

.self-indicator {
    background: rgba(var(--clr-primary-rgb), 0.15);
    color: #a7f3d0;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.table-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.btn-table-action {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-table-action i {
    width: 16px;
    height: 16px;
}

.btn-table-action.btn-edit:hover {
    background: rgba(var(--clr-primary-rgb), 0.1);
    color: #60a5fa;
}

.btn-table-action.btn-delete:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
}

.btn-table-action[disabled] {
    opacity: 0.3;
    cursor: not-allowed;
    color: var(--text-muted) !important;
    background: none !important;
}

/* Restricted client info message (Asesores) */
.restricted-info-card {
    background: rgba(239, 68, 68, 0.03);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-top: 0.5rem;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.02);
}

.restricted-info-card .restricted-icon {
    width: 20px;
    height: 20px;
    color: var(--clr-occupied);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.restricted-info-card div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.restricted-info-card strong {
    font-size: 0.85rem;
    color: var(--text-primary);
}

.restricted-info-card p {
    font-size: 0.775rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

/* Multi-View Tab Content */
.tab-view.hidden {
    display: none !important;
}

.tab-view {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: fade-in-tab 0.35s ease;
}

@keyframes fade-in-tab {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* App Header Navigation Tabs (Phase 4) */
.app-nav {
    margin: 0 1.5rem;
}

.app-nav ul {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    padding: 0.35rem;
    border-radius: var(--radius-lg);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.nav-link i {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.nav-link:hover i {
    transform: translateY(-1px);
}

.nav-link.active {
    color: white;
    background: var(--clr-primary);
    box-shadow: var(--glow-primary);
}

/* User Info Layout Shift in Header */
.user-info-split {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
}

.user-info-split #header-username {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.user-info-split .role-indicator {
    font-size: 0.625rem;
    padding: 0.05rem 0.35rem;
}

/* Notifications Bell & Dropdown Card */
.notification-container {
    position: relative;
}

.notification-bell-btn {
    position: relative;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.notification-bell-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.15);
}

.notification-bell-btn i {
    width: 18px;
    height: 18px;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-body);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.notifications-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 340px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 30px rgba(var(--clr-primary-rgb), 0.05);
    z-index: 100;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(12px);
    animation: scale-up 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: top right;
}

@keyframes scale-up {
    from { opacity: 0; transform: scale(0.95) translateY(-5px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-header h3 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.btn-text {
    background: none;
    border: none;
    color: var(--clr-primary);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.btn-text:hover {
    color: var(--clr-primary-hover);
    text-decoration: underline;
}

.dropdown-content {
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.notification-item {
    display: flex;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    transition: background 0.2s ease;
    align-items: flex-start;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.015);
}

.notification-item.unread {
    background: rgba(var(--clr-primary-rgb), 0.02);
}

.notification-item.unread .noti-text p {
    color: var(--text-primary);
    font-weight: 500;
}

.noti-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.noti-icon i {
    width: 15px;
    height: 15px;
}

.bg-available-soft { background: rgba(16, 185, 129, 0.1); color: var(--clr-available); }
.bg-reserved-soft { background: rgba(245, 158, 11, 0.1); color: var(--clr-reserved); }
.bg-occupied-soft { background: rgba(239, 68, 68, 0.1); color: var(--clr-occupied); }

.noti-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.noti-text p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
}

.noti-time {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Welcome Panel (Inicio Tab) */
.welcome-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.4), rgba(15, 23, 42, 0.4));
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
}

.welcome-text h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.welcome-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.welcome-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.welcome-date i {
    width: 16px;
    height: 16px;
    color: var(--clr-primary);
}

/* Welcome Stats Grid */
.welcome-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.welcome-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
}

.welcome-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--text-muted);
}

.welcome-stat-card[data-stat="total"]::before { background: var(--clr-primary); }
.welcome-stat-card[data-stat="available"]::before { background: var(--clr-available); }
.welcome-stat-card[data-stat="reserved"]::before { background: var(--clr-reserved); }
.welcome-stat-card[data-stat="occupied"]::before { background: var(--clr-occupied); }

.welcome-stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 0.775rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.welcome-stat-card h3 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin: 0.2rem 0;
}

.stat-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Welcome Split Grid */
.welcome-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Quick Actions buttons */
.quick-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1.5rem;
}

.quick-link-btn {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    transition: all 0.2s ease;
    color: var(--text-secondary);
}

.quick-link-btn i {
    width: 24px;
    height: 24px;
    color: var(--clr-primary);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.quick-link-btn:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.quick-link-btn:hover i {
    transform: scale(1.1);
}

.quick-link-btn strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.quick-link-btn p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

/* Activity Feed */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.5rem;
}

.activity-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 0.4rem;
    flex-shrink: 0;
}

.bg-available { background-color: var(--clr-available); }
.bg-reserved { background-color: var(--clr-reserved); }
.bg-occupied { background-color: var(--clr-occupied); }

.activity-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.activity-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

.activity-info strong {
    color: var(--text-primary);
}

.activity-time {
    font-size: 0.725rem;
    color: var(--text-muted);
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.scrollable-y {
    overflow-y: auto;
}

.no-padding {
    padding: 0 !important;
}

/* CRM Table */
.crm-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.crm-table th,
.crm-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.crm-table th {
    background: rgba(255, 255, 255, 0.015);
    color: var(--text-secondary);
    font-weight: 600;
}

.crm-table tbody tr {
    transition: background 0.2s ease;
}

.crm-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.01);
}

/* FAQ Accordion */
.ayuda-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.01);
    overflow: hidden;
    transition: all 0.25s ease;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.2s ease;
    user-select: none;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.02);
}

.faq-question i {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(0, 0, 0, 0.15);
}

.faq-item.active {
    border-color: rgba(var(--clr-primary-rgb), 0.25);
    box-shadow: 0 0 15px rgba(var(--clr-primary-rgb), 0.05);
}

.faq-item.active .faq-question {
    border-bottom: 1px solid var(--border-color);
}

.faq-item.active .faq-answer {
    padding: 1.25rem 1.5rem;
    max-height: 350px;
    opacity: 1;
}

.faq-answer p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 0.75rem 0;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul {
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.faq-answer li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Responsive adjustment for top navbar */
@media (max-width: 1250px) {
    .app-header {
        flex-direction: column;
        gap: 1.25rem;
        align-items: stretch;
    }
    
    .app-nav {
        margin: 0;
        order: 3;
    }
    
    .app-nav ul {
        justify-content: space-around;
    }
    
    .logo-area {
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .welcome-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    .welcome-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .welcome-split-grid {
        grid-template-columns: 1fr;
    }
    .app-nav ul {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    .nav-link span {
        display: none; /* Icon-only navbar on mobile */
    }
    .nav-link {
        padding: 0.6rem;
    }
}

/* Light mode specific element adjustments */
[data-theme="light"] body {
    background-color: var(--bg-app);
    color: var(--text-primary);
}
[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea {
    background: #ffffff;
    color: #0f172a;
}
[data-theme="light"] input:focus,
[data-theme="light"] select:focus,
[data-theme="light"] textarea:focus {
    background: #ffffff;
}
[data-theme="light"] .quick-link-btn {
    background: #ffffff;
}
[data-theme="light"] .quick-link-btn:hover {
    background: #f8fafc;
}
[data-theme="light"] .faq-item {
    background: #ffffff;
}
[data-theme="light"] .faq-question:hover {
    background: #f8fafc;
}
[data-theme="light"] .faq-answer {
    background: #f8fafc;
}
[data-theme="light"] .time-stamp {
    background: #e2e8f0;
    color: #475569;
}
[data-theme="light"] .notifications-dropdown {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
[data-theme="light"] .notification-item.unread {
    background: #f8fafc;
}
[data-theme="light"] .demo-credentials-card {
    background: #f8fafc;
}
[data-theme="light"] .map-viewport-container {
    background: #f8fafc;
    border: 1px solid var(--border-color);
}
[data-theme="light"] .map-tooltip {
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1);
    color: #0f172a;
}
[data-theme="light"] .tooltip-title {
    color: #0f172a;
    border-bottom-color: var(--border-color);
}
[data-theme="light"] .tooltip-body {
    color: #475569;
}
[data-theme="light"] .role-admin {
    background: rgba(139, 92, 246, 0.08);
    color: #6d28d9;
    border-color: rgba(139, 92, 246, 0.15);
}
[data-theme="light"] .role-coord {
    background: rgba(var(--clr-primary-rgb), 0.08);
    color: #047857;
    border-color: rgba(var(--clr-primary-rgb), 0.15);
}
[data-theme="light"] .role-seller {
    background: rgba(245, 158, 11, 0.08);
    color: #b45309;
    border-color: rgba(245, 158, 11, 0.15);
}
[data-theme="light"] .role-super {
    background: rgba(6, 182, 212, 0.08);
    color: #0369a1;
    border-color: rgba(6, 182, 212, 0.15);
}
[data-theme="light"] .role-adviser {
    background: rgba(100, 116, 139, 0.08);
    color: #475569;
    border-color: rgba(100, 116, 139, 0.15);
}
[data-theme="light"] .toast {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .toast span {
    color: var(--text-primary);
}
[data-theme="light"] .notification-item {
    border-bottom-color: var(--border-color);
}
[data-theme="light"] .notification-item:hover {
    background: var(--bg-card-hover);
}
[data-theme="light"] .notification-bell-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--text-muted);
}
[data-theme="light"] .notification-badge {
    border-color: var(--bg-header);
}
[data-theme="light"] .btn-password-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}
[data-theme="light"] .self-indicator {
    background: rgba(5, 150, 105, 0.12);
    color: #047857;
}

/* Light mode specific map layout adjustments */
[data-theme="light"] .map-bg {
    fill: #f8fafc;
}
[data-theme="light"] .map-grid {
    stroke: rgba(15, 23, 42, 0.04);
}
[data-theme="light"] .street {
    fill: #e2e8f0;
}
[data-theme="light"] .street-label {
    fill: #64748b;
}
[data-theme="light"] .decor-title {
    fill: #94a3b8;
}
[data-theme="light"] .amenity-lake {
    fill: #bfdbfe;
}
[data-theme="light"] .amenity-club {
    fill: #bbf7d0;
}

/* Map label texts readability in light mode */
[data-theme="light"] .lot-label[data-status="available"] { fill: #047857; }
[data-theme="light"] .lot-label[data-status="reserved"] { fill: #b45309; }
[data-theme="light"] .lot-label[data-status="occupied"] { fill: #b91c1c; }
[data-theme="light"] .lot-group:hover .lot-label { fill: #ffffff; }

[data-theme="light"] .lot-polygon[data-status="available"] {
    fill: rgba(5, 150, 105, 0.1);
    stroke: rgba(5, 150, 105, 0.6);
}
[data-theme="light"] .lot-polygon[data-status="reserved"] {
    fill: rgba(217, 119, 6, 0.1);
    stroke: rgba(217, 119, 6, 0.6);
}
[data-theme="light"] .lot-polygon[data-status="occupied"] {
    fill: rgba(220, 38, 38, 0.1);
    stroke: rgba(220, 38, 38, 0.6);
}

[data-theme="light"] .lot-group:hover .lot-polygon {
    filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.15));
}
[data-theme="light"] .lot-polygon.selected {
    stroke: #0f172a !important;
    filter: drop-shadow(0 0 10px rgba(15, 23, 42, 0.4)) !important;
}

[data-theme="light"] .btn-outline {
    background: transparent;
    border-color: #cbd5e1;
    color: #475569;
}
[data-theme="light"] .btn-outline:hover {
    background: #f1f5f9;
    color: #0f172a;
}

/* Logo image drop shadow filter for dark background readability */
.app-logo-img,
.login-logo-img {
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.45));
}

[data-theme="light"] .app-logo-img,
[data-theme="light"] .login-logo-img {
    filter: none;
}

/* File Uploader and Document Verification styling */
.file-uploader-box {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.005);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    width: 100%;
    min-height: 140px;
}

.file-uploader-box:hover {
    border-color: var(--clr-primary);
    background: rgba(var(--clr-primary-rgb), 0.02);
}

.file-uploader-box.dragover {
    border-color: var(--clr-primary);
    background: rgba(var(--clr-primary-rgb), 0.05);
    transform: scale(1.01);
}

.file-uploader-box.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.1) !important;
    border-color: var(--border-color) !important;
}

.uploader-icon i {
    width: 32px;
    height: 32px;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.file-uploader-box:hover .uploader-icon i {
    color: var(--clr-primary);
}

.uploader-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

.uploaded-file-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    margin-top: 0.25rem;
}

[data-theme="light"] .uploaded-file-details {
    background: rgba(5, 150, 105, 0.05);
    border-color: rgba(5, 150, 105, 0.15);
}

/* Document Status Badges in CRM */
.doc-badge-pending {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(245, 158, 11, 0.08);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

[data-theme="dark"] .doc-badge-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.2);
}

.doc-badge-uploaded {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.08);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

[data-theme="dark"] .doc-badge-uploaded {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.2);
}

/* ========================================== */
/* SUBTABS & INVENTORY STYLING                */
/* ========================================== */

.subtabs-bar {
    display: flex;
    gap: 0.5rem;
    padding: 0.25rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    width: fit-content;
}

[data-theme="light"] .subtabs-bar {
    background: rgba(0, 0, 0, 0.03);
}

.subtab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.subtab-btn:hover {
    color: var(--text-primary);
}

.subtab-btn.active {
    background: var(--clr-primary);
    color: #ffffff;
}

[data-theme="light"] .subtab-btn.active {
    background: var(--clr-primary);
    color: #ffffff;
}

.subtab-btn i {
    width: 16px;
    height: 16px;
}

.plan-tag {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-transform: uppercase;
}

[data-theme="light"] .plan-tag {
    background: rgba(0, 0, 0, 0.02);
}

.animate-fade {
    animation: fadeIn 0.3s ease-out forwards;
}

/* ========================================== */
/* PRINTABLE SOLICITUD SHEET & MODAL STYLING  */
/* ========================================== */

/* Modal overlay to contain the printable sheet preview */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    z-index: 2000;
    overflow-y: auto;
    padding: 2rem 1rem;
    backdrop-filter: blur(10px);
}

.modal-overlay.hidden {
    display: none !important;
}

.printable-sheet-container {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-premium);
    width: 100%;
    max-width: 850px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
}

.modal-header-actions {
    display: flex;
    gap: 0.75rem;
}

/* Printable A4 paper simulation sheet styling */
.printable-sheet {
    background: #ffffff;
    color: #0f172a;
    font-family: 'Inter', sans-serif;
    padding: 2.5rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 100%;
    box-sizing: border-box;
    font-size: 12px;
    line-height: 1.4;
    border: 1px solid #e2e8f0;
}

.sheet-header {
    display: grid;
    grid-template-columns: 140px 1fr 220px;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #1a4d2e;
    padding-bottom: 1rem;
}

.sheet-logo-area {
    display: flex;
    justify-content: flex-start;
}

.sheet-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.sheet-title-area {
    text-align: center;
}

.sheet-title {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #1a4d2e;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.sheet-subtitle {
    font-size: 10px;
    color: #475569;
    font-weight: 600;
}

.sheet-folio-area {
    display: flex;
    justify-content: flex-end;
}

.folio-table {
    border-collapse: collapse;
    width: 100%;
}

.folio-table td {
    border: 1px solid #1a4d2e;
    padding: 4px 8px;
    text-align: center;
}

.folio-hdr {
    background-color: #1a4d2e;
    color: #ffffff;
    font-weight: 700;
    font-size: 10px;
    width: 60px;
}

.folio-val {
    font-family: monospace;
    font-size: 13px;
    font-weight: 700;
    color: #dc2626;
}

.date-split-table {
    border-collapse: collapse;
    width: 100%;
}

.date-split-table td {
    border: none;
    border-right: 1px solid #1a4d2e;
    padding: 2px 4px;
    font-size: 11px;
    font-weight: 700;
}

.date-split-table td:last-child {
    border-right: none;
}

.date-split-table .lbl-row td {
    font-size: 7px;
    color: #64748b;
    font-weight: 600;
    padding-top: 1px;
}

/* Sections title header bar style */
.sheet-section-title {
    background-color: #1a4d2e;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 8px;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Grid systems inside the sheet */
.sheet-grid-container {
    display: grid;
    border: 1px solid #1a4d2e;
    border-top: none;
}

.grid-recibo {
    grid-template-columns: 2fr 1fr;
}

.cell-label {
    padding: 6px 10px;
    border-bottom: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    font-size: 10px;
    color: #334155;
}

.cell-label:last-child, .cell-label.cell-full-width {
    border-right: none;
}

.sheet-grid-container > .cell-label:nth-last-child(-n+2) {
    border-bottom: none;
}

.sheet-grid-container > .cell-label:last-child {
    border-bottom: none;
}

.val-highlight {
    font-size: 13px;
    color: #0f172a;
}

.checkbox-box {
    display: inline-block;
    margin-right: 12px;
    font-weight: 700;
    font-size: 9px;
}

.grid-inmueble-details {
    grid-template-columns: 1fr 1.2fr;
}

.nested-table {
    width: 100%;
    border-collapse: collapse;
}

.nested-table td {
    padding: 5px 10px;
    border-bottom: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    font-size: 10px;
}

.nested-table tr:last-child td {
    border-bottom: none;
}

.nested-table td:last-child {
    border-right: none;
}

.nested-table .lbl {
    color: #475569;
    font-weight: 600;
    width: 150px;
}

.nested-table .val {
    font-weight: 700;
    color: #0f172a;
}

.grid-cliente {
    grid-template-columns: repeat(3, 1fr);
}

.grid-beneficiario-ref {
    grid-template-columns: 2fr 1fr;
}

.grid-firma-contrato {
    grid-template-columns: 2fr 1fr;
}

.sheet-grid-container strong {
    color: #0f172a;
}

/* Signatures row styling */
.signatures-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.signature-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.signature-line {
    width: 85%;
    border-bottom: 1px solid #0f172a;
    height: 1px;
    margin-bottom: 6px;
}

.signature-lbl {
    font-size: 8.5px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
}

/* Print Sheet Footer */
.sheet-footer {
    border-top: 1px solid #1a4d2e;
    padding-top: 0.75rem;
    margin-top: 1rem;
}

.footer-warning {
    font-size: 8px;
    color: #dc2626;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    margin-bottom: 0.75rem;
}

.footer-bottom-row {
    display: grid;
    grid-template-columns: 1fr 75px;
    gap: 1rem;
    align-items: center;
}

.footer-disclaimer {
    font-size: 8px;
    color: #64748b;
    line-height: 1.4;
}

.footer-address {
    font-weight: 600;
    color: #475569;
    margin-top: 2px;
}

.footer-qr {
    display: flex;
    justify-content: flex-end;
}

.sheet-qr-code {
    width: 65px;
    height: 65px;
    color: #000000;
}

/* Drag and drop lot boxes styling */
#interactive-map.moving-lots-mode .lot-polygon {
    cursor: move !important;
}
#interactive-map.moving-lots-mode .lot-group:hover .lot-polygon {
    filter: brightness(1.2);
}
#interactive-map.moving-lots-mode .lot-label {
    pointer-events: none;
}

/* Print Mode overrides */
@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
    }
    
    /* Hide everything except the modal content wrapper */
    body > :not(#solicitud-modal) {
        display: none !important;
    }
    
    .modal-overlay {
        position: static !important;
        display: block !important;
        background: none !important;
        backdrop-filter: none !important;
        padding: 0 !important;
        overflow: visible !important;
    }
    
    .modal-container {
        border: none !important;
        box-shadow: none !important;
        background: none !important;
        padding: 0 !important;
        max-width: 100% !important;
    }
    
    .modal-header, .no-print {
        display: none !important;
    }
    
    .printable-sheet {
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        width: 100% !important;
    }
}
