/* assets/css/style.css - ULTRA PRO REDESIGN (GamaTech edition) */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    /* Radii & Transitions (Common) */
    --radius-xl: 1rem;
    --radius-md: 0.6rem;
    --radius-sm: 0.3rem;
    --transition-pro: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

[data-theme="dark"], :root:not([data-theme="light"]) {
    --background: #0c1324;
    --surface: #0c1324;
    --surface-container: #191f31;
    --surface-container-low: #151b2d;
    --surface-container-high: #1e293b;
    --surface-container-highest: #253247;
    --surface-glass: rgba(30, 41, 59, 0.6);
    
    --primary: #ff6f77;
    --primary-container: #b33243;
    --on-primary: #ffffff;
    
    --secondary: #d6ad49;
    --secondary-container: #8f6512;
    
    --danger: #ff9aa1;
    --danger-container: #7a1e29;
    --accent-blue: #7f98ff;
    --accent-blue-strong: #3f62cf;
    
    --text-main: #e7ecff;
    --text-muted: #9ba7c5;
    --on-surface-variant: #cfd8ee;
    
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-ghost: rgba(144, 143, 160, 0.15);
    
    --shadow-ambient: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-glow-primary: 0 0 18px rgba(255, 111, 119, 0.28);
    --primary-soft: rgba(255, 111, 119, 0.14);
    --secondary-soft: rgba(214, 173, 73, 0.12);
    --danger-soft: rgba(255, 154, 161, 0.12);
    --accent-blue-soft: rgba(127, 152, 255, 0.15);
    
    --pro-gradient: linear-gradient(135deg, #7f98ff, #ff6f77);
}

[data-theme="light"] {
    --background: #f6f5f0;
    --surface: #ffffff;
    --surface-container: #eef2f7;
    --surface-container-low: #fbfbf9;
    --surface-container-high: #e7ecf2;
    --surface-container-highest: #ffffff;
    --surface-glass: rgba(255, 255, 255, 0.78);
    
    --primary: #aa2534;
    --primary-container: #d6505f;
    --on-primary: #ffffff;
    
    --secondary: #c08b18;
    --secondary-container: #8d6410;
    
    --danger: #8d1d29;
    --danger-container: #f6d5d7;
    --accent-blue: #2047b3;
    --accent-blue-strong: #3d63d3;
    
    --text-main: #0f172a;
    --text-muted: #5f6d82;
    --on-surface-variant: #4d5c73;
    
    --border-glass: rgba(0, 0, 0, 0.06);
    --border-ghost: rgba(0, 0, 0, 0.1);
    
    --shadow-ambient: 0 16px 36px rgba(22, 31, 52, 0.07);
    --shadow-glow-primary: 0 0 18px rgba(170, 37, 52, 0.18);
    --primary-soft: rgba(170, 37, 52, 0.10);
    --secondary-soft: rgba(192, 139, 24, 0.10);
    --danger-soft: rgba(141, 29, 41, 0.08);
    --accent-blue-soft: rgba(32, 71, 179, 0.10);
    
    --pro-gradient: linear-gradient(135deg, #2047b3, #aa2534);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.5;
    font-size: 0.9rem;
    overflow-x: hidden;
    position: relative;
    isolation: isolate;
}

html.mobile-menu-open,
body.mobile-menu-open {
    overflow: hidden;
    overscroll-behavior: none;
}

body.mobile-menu-open {
    position: fixed;
    inset: 0;
    width: 100%;
    top: calc(var(--mobile-lock-scroll, 0px) * -1);
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
    font-weight: 600;
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Sidebar - Floating Glass Dock Style for Desktop */
.sidebar {
    width: 240px;
    background: var(--surface-glass);
    backdrop-filter: blur(16px);
    border-right: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem;
    position: fixed;
    height: 100vh;
    overflow-x: hidden;
    z-index: 1000;
    transition: var(--transition-pro);
}

.sidebar-header {
    display: flex;
    justify-content: center;
    margin-bottom: 1.8rem;
}

.brand-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.brand-logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.brand-logo {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.12));
}

.sidebar-logo-badge {
    width: min(100%, 196px);
}

.sidebar-logo {
    width: 100%;
    max-width: 182px;
}

[data-theme="dark"] .brand-logo,
:root:not([data-theme="light"]) .brand-logo {
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.30));
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
    padding: 0.75rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-md);
    margin-bottom: 0.25rem;
    font-weight: 500;
    font-size: 0.85rem;
    transition: var(--transition-pro);
}

.nav-link-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.9;
}

.nav-link-label {
    min-width: 0;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    transform: translateX(5px);
}

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

[data-theme="light"] .sidebar {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(249, 248, 242, 0.94)),
        radial-gradient(circle at top left, rgba(170, 37, 52, 0.10), transparent 44%),
        radial-gradient(circle at bottom left, rgba(32, 71, 179, 0.08), transparent 34%);
    border-right: 1px solid rgba(170, 37, 52, 0.08);
    box-shadow: 14px 0 34px rgba(22, 31, 52, 0.07);
}

[data-theme="light"] .brand-logo {
    filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.10));
}

[data-theme="light"] .nav-link {
    color: #334155;
    font-weight: 600;
}

[data-theme="light"] .nav-link-icon {
    opacity: 0.95;
}

[data-theme="light"] .nav-link:hover {
    background: linear-gradient(135deg, rgba(170, 37, 52, 0.10), rgba(192, 139, 24, 0.10));
    color: #8f1e2b;
    transform: translateX(4px);
}

[data-theme="light"] .nav-link.active {
    background: linear-gradient(135deg, #aa2534, #d6505f);
    color: #ffffff;
    box-shadow: 0 14px 26px rgba(170, 37, 52, 0.22);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 240px;
    padding: 1.5rem 2rem;
    background-image: 
        radial-gradient(at 0% 0%, rgba(255, 111, 119, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(214, 173, 73, 0.08) 0px, transparent 50%);
}

[data-theme="light"] .main-content {
    background-color: #f6f5f0;
    background-image:
        radial-gradient(at 0% 0%, rgba(170, 37, 52, 0.10) 0px, transparent 42%),
        radial-gradient(at 100% 12%, rgba(192, 139, 24, 0.10) 0px, transparent 35%),
        radial-gradient(at 96% 100%, rgba(32, 71, 179, 0.07) 0px, transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.93), rgba(248, 247, 241, 0.98));
}

.header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.header-title-container h1 {
    font-size: 1.5rem;
    margin: 0;
    color: white;
}

[data-theme="light"] .header-title-container h1 {
    color: #0f172a;
}

/* Cards - Glassmorphism */
.card {
    background: var(--surface-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-ambient);
    transition: var(--transition-pro);
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .card {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(148, 163, 184, 0.16);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .card:hover {
    border-color: rgba(32, 71, 179, 0.18);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.10);
}

/* Tables - Professional Atelier Style */
.table-responsive {
    margin-top: 1.5rem;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.75rem;
}

th {
    text-align: left;
    padding: 1rem 1.5rem;
    color: var(--on-surface-variant);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

td {
    padding: 0.75rem 1rem;
    background: var(--surface-container-low);
    border: none;
    transition: var(--transition-pro);
    font-size: 0.85rem;
}

tr td:first-child {
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

tr td:last-child {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

tr:hover td {
    background: var(--surface-container);
    color: white;
}

[data-theme="light"] tr:hover td {
    background: #f7f9fc;
    color: #1e293b;
}

[data-theme="light"] tr:hover td::before {
    color: #64748b;
}

/* Buttons - High End */
.btn {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    cursor: pointer;
    transition: var(--transition-pro);
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-container));
    color: var(--on-primary);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow-primary);
}

.btn-success {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-strong));
    color: white;
}

.btn-success:hover {
    transform: scale(1.05);
    box-shadow: 0 14px 28px rgba(32, 71, 179, 0.22);
}

.btn-secondary {
    background: var(--surface-container-low);
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    transform: translateY(-1px);
    border-color: var(--primary);
    color: var(--primary);
    background: var(--surface-container);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

[data-theme="light"] .header-buttons .btn {
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 14px 30px rgba(22, 31, 52, 0.10);
}

[data-theme="light"] .btn-primary {
    background: linear-gradient(135deg, #aa2534, #d6505f);
    color: #ffffff;
}

[data-theme="light"] .btn-success {
    background: linear-gradient(135deg, #2047b3, #3d63d3);
    color: #ffffff;
}

[data-theme="light"] .btn-primary:hover {
    box-shadow: 0 18px 32px rgba(170, 37, 52, 0.24);
}

[data-theme="light"] .btn-success:hover {
    box-shadow: 0 18px 32px rgba(32, 71, 179, 0.22);
}

[data-theme="light"] .filter-btn:hover {
    color: #8f1e2b;
}

.filter-btn {
    background: transparent;
    color: var(--text-muted);
    border: none;
    padding: 0.5rem 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-pro);
    position: relative;
}

.filter-btn.active {
    color: var(--primary);
}

.filter-btn.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 20%;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    border-radius: 10px;
    box-shadow: var(--shadow-glow-primary);
}

/* Status Badges - Luminous Dot Style */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    vertical-align: middle;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-pendiente .status-dot { background: var(--secondary); box-shadow: 0 0 10px var(--secondary); }
.status-enviada .status-dot,
.status-aceptada .status-dot,
.status-pagada .status-dot { background: var(--accent-blue); box-shadow: 0 0 10px var(--accent-blue); }
.status-rechazada .status-dot, .status-vencida .status-dot { background: var(--danger); box-shadow: 0 0 10px var(--danger); }

/* Inputs */
input, select, textarea {
    background: var(--surface-container-high);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-main);
    padding: 0.8rem 1rem;
    width: 100%;
    transition: var(--transition-pro);
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[readonly] {
    cursor: default;
}

[data-theme="dark"] input[type="date"],
[data-theme="dark"] input[type="datetime-local"],
[data-theme="dark"] input[type="time"],
[data-theme="dark"] input[type="month"],
:root:not([data-theme="light"]) input[type="date"],
:root:not([data-theme="light"]) input[type="datetime-local"],
:root:not([data-theme="light"]) input[type="time"],
:root:not([data-theme="light"]) input[type="month"] {
    color-scheme: dark;
}

[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator,
[data-theme="dark"] input[type="datetime-local"]::-webkit-calendar-picker-indicator,
[data-theme="dark"] input[type="time"]::-webkit-calendar-picker-indicator,
[data-theme="dark"] input[type="month"]::-webkit-calendar-picker-indicator,
:root:not([data-theme="light"]) input[type="date"]::-webkit-calendar-picker-indicator,
:root:not([data-theme="light"]) input[type="datetime-local"]::-webkit-calendar-picker-indicator,
:root:not([data-theme="light"]) input[type="time"]::-webkit-calendar-picker-indicator,
:root:not([data-theme="light"]) input[type="month"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(1.35);
    opacity: 0.95;
    cursor: pointer;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-text-fill-color: var(--text-main);
    box-shadow: inset 0 0 0 1000px var(--surface-container-high);
    border: 1px solid var(--border);
    transition: background-color 9999s ease-in-out 0s;
}

[data-theme="dark"] input[readonly],
:root:not([data-theme="light"]) input[readonly] {
    background: var(--surface-container-high) !important;
    color: var(--text-main);
    border-color: var(--border);
    -webkit-text-fill-color: var(--text-main);
    box-shadow: inset 0 0 0 1000px var(--surface-container-high);
}

input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--surface-container-highest);
}

select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--surface-container-highest);
}

textarea {
    resize: vertical;
    min-height: 110px;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.8;
}

label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 1rem;
}

[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea {
    background: #eef2f7;
    border-color: #cbd5e1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] input:focus,
[data-theme="light"] select:focus,
[data-theme="light"] textarea:focus {
    background: #ffffff;
    border-color: #2047b3;
    box-shadow: 0 0 0 4px rgba(32, 71, 179, 0.10);
}

[data-theme="light"] input:-webkit-autofill,
[data-theme="light"] input:-webkit-autofill:hover,
[data-theme="light"] input:-webkit-autofill:focus,
[data-theme="light"] textarea:-webkit-autofill,
[data-theme="light"] select:-webkit-autofill {
    -webkit-text-fill-color: #0f172a;
    box-shadow: inset 0 0 0 1000px #eef2f7;
    border-color: #cbd5e1;
}

.error-message {
    color: #ffb4ab;
    font-size: 0.85rem;
    margin: 0.75rem 0;
}

.hidden {
    display: none !important;
}

/* Action Buttons & Responsive Visibility */
.desktop-actions {
    display: flex !important;
    gap: 0.5rem;
    align-items: center;
}

.mobile-actions {
    display: none !important;
}

.btn-action-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    transition: var(--transition-pro);
    color: var(--text-muted);
    text-decoration: none;
}

.btn-action-icon:hover {
    background: var(--surface-container);
    color: var(--primary);
    transform: translateY(-2px);
    border-color: var(--primary);
}

.btn-action-icon svg {
    width: 18px;
    height: 18px;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-footer::after {
    content: none;
}

.btn-sidebar-alt {
    width: 100%;
    justify-content: space-between !important;
    font-size: 0.8rem;
    padding: 0.7rem 1.25rem !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--border-glass) !important;
    color: var(--text-muted) !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center;
    font-weight: 500;
}

.btn-sidebar-alt:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--text-main) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.logout-btn {
    margin-top: 0.25rem;
}

.logout-btn:hover {
    border-color: rgba(255, 180, 171, 0.3) !important;
    color: #ffb4ab !important;
}

.theme-icon,
.sidebar-btn-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.mobile-toggle svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Mobile Adjustments */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.show {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
        padding: 1.5rem;
    }
    .header-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    .desktop-actions {
        display: none !important;
    }
    .mobile-actions {
        display: block !important;
    }
}

/* Dropdown Pro styling */
.dropdown-menu {
    background: var(--surface-container-high) !important;
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-ambient) !important;
    padding: 0.5rem !important;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem !important;
    color: var(--text-main) !important;
    border-radius: 8px !important;
    transition: var(--transition-pro) !important;
}

.dropdown-item:hover {
    background: var(--surface-container) !important;
    color: var(--primary) !important;
    transform: translateX(5px);
}

/* Login - Ultra Pro */
.login-body {
    background-color: var(--background);
    background-image: 
        radial-gradient(at 20% 30%, rgba(124, 149, 255, 0.15) 0px, transparent 50%),
        radial-gradient(at 80% 70%, rgba(214, 173, 73, 0.12) 0px, transparent 50%);
    min-height: 100vh;
    min-height: 100dvh;
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(0.85rem, env(safe-area-inset-top)) max(0.85rem, env(safe-area-inset-right)) max(0.85rem, env(safe-area-inset-bottom)) max(0.85rem, env(safe-area-inset-left));
    overflow: hidden;
    overscroll-behavior: none;
    position: fixed;
    inset: 0;
    width: 100%;
}

.login-container {
    width: min(100%, 400px);
    max-width: 400px;
    height: 100%;
    padding: 0;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 100%;
    background: var(--surface-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-ambient);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.login-logo-badge {
    width: min(100%, 340px);
}

.login-logo {
    width: 100%;
    max-width: 320px;
}

.login-header p {
    margin: 0;
}

.login-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-meta {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    text-align: center;
}

@media (max-height: 780px) {
    .login-card {
        padding: 2rem 1.7rem;
    }

    .login-header {
        margin-bottom: 1.45rem;
        gap: 0.6rem;
    }

    .login-badge {
        margin-bottom: 0.85rem;
    }

    .login-logo {
        max-width: 280px;
    }

    .login-meta {
        margin-top: 0.85rem;
        font-size: 0.78rem;
    }
}

/* Kanban Board - Stitch v2 */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.kanban-column {
    min-width: 280px;
    background: rgba(12, 19, 36, 0.4);
    border-radius: var(--radius-xl);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: 1px solid var(--border-glass);
}

.column-header {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.col-pending { background: #c08b18; color: #fff; }
.col-sent { background: #9a6c0a; color: #fff; }
.col-accepted { background: #2047b3; color: #fff; }
.col-expired { background: #b32d33; color: #fff; }

.quote-card {
    background: var(--surface-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    transition: var(--transition-pro);
    position: relative;
    overflow: hidden;
}

.quote-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.card-folio {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.card-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.detail-label { color: var(--text-muted); }
.detail-value { color: var(--text-main); font-weight: 500; }

.card-actions {
    display: flex;
    gap: 0.75rem;
    border-top: 1px solid var(--border-glass);
    padding-top: 1rem;
    justify-content: center;
}

.action-icon-pro {
    color: var(--text-muted);
    transition: var(--transition-pro);
    cursor: pointer;
}

.action-icon-pro:hover {
    color: var(--primary);
    transform: scale(1.2);
}

.action-icon-pro.delete:hover { color: var(--danger); }

@media (max-width: 1200px) {
    .kanban-board {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .kanban-board {
        grid-template-columns: 1fr;
    }
}

/* Compatibility aliases for shared components */
:root {
    --primary-color: var(--primary);
    --secondary-color: var(--secondary);
    --danger-color: var(--danger);
    --card-bg: var(--surface-container);
    --hover-bg: var(--surface-container-low);
    --bg: var(--surface-container-low);
    --text: var(--text-main);
    --border: var(--border-ghost);
    --radius: var(--radius-md);
    --shadow-lg: var(--shadow-ambient);
}

/* Shared dashboard controls */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-width: 0;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-container-low);
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
    flex-shrink: 0;
}

.mobile-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(12, 19, 36, 0.6);
    backdrop-filter: blur(2px);
    z-index: 999;
}

.sidebar.show + .sidebar-overlay {
    display: block;
}

.controls-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.controls-row > div:last-child {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    flex: 1;
    justify-content: flex-end;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.35rem;
    background: var(--surface-container-low);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius-xl) - 0.2rem);
}

.search-container {
    width: min(100%, 320px);
    min-width: 220px;
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.pagination-btn {
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-container-low);
    color: var(--text-main);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-pro);
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.pagination-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.page-info {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.dropdown {
    position: relative;
    display: inline-flex;
    justify-content: center;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    right: auto;
    min-width: 220px;
    width: min(320px, calc(100vw - 2.5rem));
    max-width: calc(100vw - 2.5rem);
    transform: translateX(-50%);
    z-index: 3000;
}

.dropdown-menu.show {
    display: block;
    animation: dropdown-pop 0.18s ease-out;
}

@keyframes dropdown-pop {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.dropdown-item,
.dropdown-item:visited {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    width: 100%;
    padding: 0.8rem 0.95rem !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    color: var(--text-main) !important;
    text-align: left;
    text-decoration: none;
    font: inherit;
    line-height: 1.3;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
}

.dropdown-item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    flex-shrink: 0;
}

.dropdown-item:hover,
.dropdown-item:focus-visible {
    background: var(--surface-container) !important;
    color: var(--primary) !important;
    transform: none;
}

.dropdown-item.text-danger {
    color: #ffb4ab !important;
}

.dropdown-item.text-danger:hover,
.dropdown-item.text-danger:focus-visible {
    background: rgba(147, 0, 10, 0.18) !important;
    color: #ffb4ab !important;
}

.btn-actions {
    min-height: 38px;
    border: 1px solid var(--border);
    background: var(--surface-container-low);
    color: var(--text-main);
    border-radius: var(--radius-md);
}

.btn-actions:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

table {
    min-width: 760px;
}

.status-badge {
    flex-wrap: wrap;
}

@media (max-width: 992px) {
    .sidebar {
        left: 0;
        top: 0;
        bottom: 0;
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        width: min(84vw, 320px);
        padding: 1rem 0.85rem 1.1rem;
        transform: translateX(-100%);
        justify-content: flex-start;
        overflow-y: hidden;
        overflow-x: hidden;
        overscroll-behavior: none;
        -webkit-overflow-scrolling: auto;
    }

    .sidebar-header {
        margin-bottom: 1.25rem;
    }

    .sidebar-nav {
        flex: 0 0 auto;
        overflow: visible;
    }

    .sidebar-footer {
        margin-top: 1rem;
        padding-top: 1rem;
        gap: 0.6rem;
        min-width: 0;
    }

    .main-content {
        width: 100%;
        margin-left: 0;
        padding: 1.25rem;
    }

    .header-actions {
        align-items: stretch;
    }

    .header-title-container {
        width: 100%;
        gap: 0.75rem;
    }

    .mobile-toggle {
        display: inline-flex;
    }

    .header-buttons {
        width: 100%;
        justify-content: stretch;
    }

    .header-buttons .btn {
        flex: 1 1 220px;
        justify-content: center;
    }

    .controls-row > div:last-child {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 1rem 0.9rem;
    }

    .card {
        padding: 1rem;
    }

    .controls-row > div:last-child {
        flex-direction: column;
        align-items: stretch !important;
        justify-content: stretch !important;
    }

    .filter-group,
    .search-container {
        width: 100%;
    }

    .mobile-actions {
        width: auto;
        display: flex !important;
        justify-content: center;
    }

    .dropdown {
        width: auto;
    }

    .table-responsive {
        overflow: visible;
    }

    .table-responsive table,
    .table-responsive thead,
    .table-responsive tbody,
    .table-responsive tr,
    .table-responsive th,
    .table-responsive td {
        display: block;
    }

    .table-responsive table {
        min-width: 0;
    }

    .table-responsive thead {
        display: none;
    }

    .table-responsive tr {
        margin-bottom: 0.85rem;
        border: 1px solid var(--border);
        border-radius: var(--radius-xl);
        overflow: visible;
        background: var(--surface-container-low);
        box-shadow: var(--shadow-ambient);
    }

    .table-responsive td {
        position: relative;
        min-height: 2.9rem;
        padding: 0.72rem 0.8rem 0.72rem 39%;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 0.45rem;
        text-align: right;
        border-bottom: 1px solid var(--border);
        background: transparent;
        white-space: normal;
        line-height: 1.35;
        word-break: break-word;
    }

    .table-responsive td::before {
        content: attr(data-label);
        position: absolute;
        left: 0.8rem;
        width: calc(39% - 1rem);
        color: var(--text-muted);
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.07em;
        text-transform: uppercase;
        text-align: left;
    }

    .table-responsive td:last-child {
        border-bottom: 0;
        padding: 0.8rem;
        justify-content: center;
        text-align: center;
        flex-wrap: wrap;
        overflow: visible;
        z-index: 6;
    }

    .table-responsive td:last-child::before {
        content: none;
    }

    .table-responsive tr td:first-child,
    .table-responsive tr td:last-child {
        border-radius: 0;
    }

    .dropdown-menu {
        left: 50%;
        right: auto;
        min-width: 250px;
        padding: 0.55rem !important;
    }

    .pagination-container {
        justify-content: space-between;
    }

    .pagination-btn {
        flex: 1 1 0;
        justify-content: center;
    }

    .page-info {
        width: 100%;
        text-align: center;
        order: -1;
    }
}

@media (max-width: 520px) {
    .header-title-container h1 {
        font-size: 1.25rem;
    }

    .filter-btn {
        flex: 1 1 calc(50% - 0.35rem);
        text-align: center;
    }

    .table-responsive tr {
        margin-bottom: 0.8rem;
    }

    .table-responsive td {
        min-height: 2.65rem;
        padding: 0.68rem 0.75rem 0.68rem 37%;
        align-items: center;
        justify-content: flex-end;
        flex-direction: row;
        text-align: right;
    }

    .table-responsive td::before {
        position: absolute;
        left: 0.75rem;
        width: calc(37% - 0.95rem);
        margin-bottom: 0;
        font-size: 0.66rem;
    }

    .table-responsive td:last-child {
        padding: 0.8rem 0.75rem;
        align-items: center;
        justify-content: center;
    }

    .dropdown-menu {
        position: absolute;
        top: calc(100% + 0.55rem);
        left: 50%;
        right: auto;
        width: min(300px, calc(100vw - 2rem));
        max-width: calc(100vw - 2rem);
        margin-top: 0;
        transform: translateX(-50%);
    }

    .dropdown-item,
    .dropdown-item:visited {
        padding: 0.85rem 0.9rem !important;
    }
}

@media (max-width: 390px) {
    .table-responsive td {
        padding: 0.72rem;
        align-items: flex-start;
        justify-content: flex-start;
        flex-direction: column;
        text-align: left;
        gap: 0.15rem;
    }

    .table-responsive td::before {
        position: static;
        width: auto;
        margin-bottom: 0.15rem;
    }

    .table-responsive td:last-child {
        align-items: center;
    }
}

@media (max-width: 950px) and (orientation: landscape) {
    .table-responsive {
        overflow: visible;
    }

    .table-responsive table,
    .table-responsive thead,
    .table-responsive tbody,
    .table-responsive tr,
    .table-responsive th,
    .table-responsive td {
        display: block;
    }

    .table-responsive table {
        min-width: 0;
    }

    .table-responsive thead {
        display: none;
    }

    .table-responsive tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-bottom: 0.8rem;
        border: 1px solid var(--border);
        border-radius: var(--radius-xl);
        overflow: visible;
        background: var(--surface-container-low);
        box-shadow: var(--shadow-ambient);
    }

    .table-responsive td {
        min-height: auto;
        padding: 0.7rem 0.8rem;
        align-items: flex-start;
        justify-content: flex-start;
        flex-direction: column;
        text-align: left;
        gap: 0.15rem;
        border-bottom: 1px solid var(--border);
    }

    .table-responsive td::before {
        position: static;
        width: auto;
        margin-bottom: 0.1rem;
        font-size: 0.65rem;
    }

    .table-responsive td:nth-last-child(2),
    .table-responsive td:nth-last-child(3) {
        border-bottom: 0;
    }

    .table-responsive td:last-child {
        grid-column: 1 / -1;
        padding: 0.8rem;
        border-top: 1px solid var(--border);
        border-bottom: 0;
        justify-content: center;
        text-align: center;
        flex-wrap: wrap;
        align-items: center;
    }

    .table-responsive td:last-child::before {
        content: none;
    }
}
