        :root {
            --primary: #5966eb;
            --primary-hover: #4050d4;
            --bg-main: #f8fafc;
            --bg-card: #ffffff;
            --text-dark: #0f172a;
            --text-muted: #64748b;
            --border: #e2e8f0;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Plus Jakarta Sans', sans-serif;
            background-color: var(--bg-main);
            color: var(--text-dark);
            min-height: 100vh;
        }

        .container {
            width: 100%;
            max-width: 800px;
            margin: 0 auto;
            padding: 40px 20px;
        }

        .card {
            background: var(--bg-card);
            border-radius: 16px;
            padding: 40px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
            border: 1px solid var(--border);
        }

        .company-header {
            text-align: center;
            margin-bottom: 30px;
        }

        .company-logo {
            max-height: 80px;
            max-width: 100%;
            margin-bottom: 15px;
            display: none;
        }

        .company-name {
            font-family: 'Outfit', sans-serif;
            font-size: 28px;
            font-weight: 800;
            color: var(--primary);
        }

        .form-group {
            margin-bottom: 20px;
            text-align: left;
        }

        .form-group label {
            display: block;
            font-size: 13px;
            font-weight: 600;
            margin-bottom: 8px;
            color: var(--text-dark);
        }

        .form-control {
            width: 100%;
            padding: 12px 16px;
            border: 1px solid var(--border);
            border-radius: 8px;
            font-family: inherit;
            font-size: 14px;
            transition: 0.3s;
        }

        .form-control:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(89, 102, 235, 0.1);
        }

        textarea.form-control {
            resize: vertical;
            min-height: 100px;
        }

        .btn {
            width: 100%;
            padding: 14px;
            border: none;
            border-radius: 8px;
            font-family: inherit;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: 0.3s;
            display: inline-flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
        }

        .btn-primary {
            background-color: var(--primary);
            color: white;
        }

        .btn-primary:hover {
            background-color: var(--primary-hover);
            transform: translateY(-2px);
        }

        .btn-outline {
            background: transparent;
            border: 1px solid var(--border);
            color: var(--text-dark);
        }

        .btn-outline:hover {
            background: var(--bg-main);
        }

        .alert {
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 20px;
            font-size: 14px;
            display: none;
        }

        .alert-success {
            background-color: #ecfdf5;
            color: #059669;
            border: 1px solid #a7f3d0;
        }

        .alert-error {
            background-color: #fef2f2;
            color: #dc2626;
            border: 1px solid #fecaca;
        }

        .loader {
            text-align: center;
            padding: 40px;
            display: none;
        }

        .loader i {
            font-size: 30px;
            color: var(--primary);
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            100% {
                transform: rotate(360deg);
            }
        }

        /* Vistas */
        .view {
            display: none;
        }

        .view.active {
            display: block;
        }

        /* Dashboard Tickets */
        .ticket-list {
            margin-top: 20px;
        }

        .ticket-item {
            padding: 20px;
            border: 1px solid var(--border);
            border-radius: 12px;
            margin-bottom: 15px;
            cursor: pointer;
            transition: 0.2s;
            background: white;
        }

        .ticket-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            border-color: var(--primary);
        }

        .ticket-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
        }

        .ticket-title {
            font-weight: 700;
            font-size: 16px;
        }

        .badge {
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 600;
        }

        .badge-open {
            background: #fef3c7;
            color: #d97706;
        }

        .badge-resolved {
            background: #dcfce7;
            color: #15803d;
        }

        .badge-high {
            background: #fee2e2;
            color: #b91c1c;
        }

        .nav-links {
            margin-top: 15px;
            text-align: center;
            font-size: 14px;
        }

        .nav-links a {
            color: var(--primary);
            font-weight: 600;
            text-decoration: none;
            cursor: pointer;
        }

        /* Ticket Details & Chat */
        .chat-box {
            background: var(--bg-main);
            padding: 20px;
            border-radius: 12px;
            margin: 20px 0;
            border: 1px solid var(--border);
        }

        .chat-msg {
            margin-bottom: 15px;
            padding: 15px;
            border-radius: 12px;
            background: white;
            border: 1px solid var(--border);
            max-width: 90%;
        }

        .chat-msg.client {
            margin-left: auto;
            background: #eff6ff;
            border-color: #bfdbfe;
        }

        .chat-msg.admin {
            margin-right: auto;
        }

        .msg-header {
            display: flex;
            justify-content: space-between;
            font-size: 12px;
            color: var(--text-muted);
            margin-bottom: 8px;
            border-bottom: 1px solid var(--border);
            padding-bottom: 5px;
        }

        .msg-body {
            font-size: 14px;
            line-height: 1.5;
        }

        .msg-body img {
            max-width: 100%;
            height: auto;
            border-radius: 6px;
            margin: 10px 0;
        }

        .att-img {
            max-width: 200px;
            border-radius: 6px;
            margin-top: 10px;
            border: 1px solid var(--border);
            display: block;
            cursor: zoom-in;
            transition: opacity .15s;
        }

        .att-img:hover {
            opacity: .85;
        }

        .att-link {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: var(--bg-main);
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 13px;
            margin-top: 8px;
            text-decoration: none;
            color: var(--text-dark);
            margin-right: 5px;
            border: 1px solid var(--border);
        }

        .att-link:hover {
            background: #e2e8f0;
        }

        .att-dl-btn {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            background: var(--primary);
            color: white;
            padding: 4px 10px;
            border-radius: 6px;
            font-size: 11px;
            font-weight: 600;
            text-decoration: none;
            margin-top: 4px;
            margin-right: 4px;
        }

        .att-dl-btn:hover {
            background: var(--primary-hover);
        }

        /* Lightbox */
        #lightbox-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.88);
            z-index: 99999;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            gap: 14px;
        }

        #lightbox-overlay.open {
            display: flex;
        }

        #lightbox-overlay img {
            max-width: 90vw;
            max-height: 80vh;
            border-radius: 10px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            object-fit: contain;
        }

        .lb-actions {
            display: flex;
            gap: 10px;
        }

        .lb-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 9px 18px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 700;
            cursor: pointer;
            border: none;
            transition: all .15s;
        }

        .lb-btn-close {
            background: rgba(255, 255, 255, 0.15);
            color: white;
        }

        .lb-btn-close:hover {
            background: rgba(255, 255, 255, 0.25);
        }

        .lb-btn-dl {
            background: #5966eb;
            color: white;
            text-decoration: none;
        }

        .lb-btn-dl:hover {
            background: #4050d4;
        }

        /* Quill Override */
        .ql-container {
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 14px;
            min-height: 150px;
            background: white;
            border-radius: 0 0 8px 8px;
        }

        .ql-toolbar {
            border-radius: 8px 8px 0 0;
            background: var(--bg-main);
        }

        /* Appointments */
        .appt-card {
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 16px 18px;
            margin-bottom: 12px;
            background: white;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
        }

        .appt-card.cancelada {
            background: #fff5f5;
            border-color: #fecaca;
            opacity: .8;
        }

        .appt-time {
            font-size: 18px;
            font-weight: 800;
            color: var(--primary);
            white-space: nowrap;
        }

        .appt-detail {
            flex: 1;
        }

        .appt-detail strong {
            display: block;
            font-size: 14px;
            margin-bottom: 4px;
        }

        .appt-detail span {
            font-size: 12px;
            color: var(--text-muted);
        }

        .appt-badge {
            padding: 3px 10px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 700;
        }

        .appt-badge.activa {
            background: #dcfce7;
            color: #059669;
        }

        .appt-badge.cancelada {
            background: #fee2e2;
            color: #dc2626;
        }

        .appt-cancel-btn {
            padding: 7px 14px;
            border: 1px solid #fecaca;
            border-radius: 8px;
            background: #fff5f5;
            color: #dc2626;
            font-size: 12px;
            font-weight: 700;
            cursor: pointer;
            transition: all .15s;
            white-space: nowrap;
        }

        .appt-cancel-btn:hover {
            background: #fee2e2;
        }

        /* Calendar grid (client) */
        .pub-cal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 16px;
        }

        .pub-cal-nav {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .pub-cal-nav-btn {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            border: 1px solid var(--border);
            background: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 13px;
            transition: all .15s;
            color: var(--text-dark);
        }

        .pub-cal-nav-btn:hover {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }

        .pub-cal-title {
            font-size: 16px;
            font-weight: 800;
            min-width: 150px;
            text-align: center;
        }

        .pub-view-toggle {
            display: flex;
            gap: 3px;
            background: var(--bg-main);
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 3px;
        }

        .pub-view-btn {
            padding: 5px 12px;
            border-radius: 6px;
            border: none;
            background: transparent;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            color: var(--text-muted);
            transition: all .15s;
        }

        .pub-view-btn.active {
            background: var(--primary);
            color: white;
        }

        .pub-cal-wrap {
            border: 1px solid var(--border);
            border-radius: 12px;
            overflow: hidden;
        }

        .pub-cal-weekdays {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            background: #f8fafc;
            border-bottom: 1px solid var(--border);
        }

        .pub-cal-wd {
            padding: 8px 0;
            text-align: center;
            font-size: 11px;
            font-weight: 700;
            color: var(--text-muted);
            text-transform: uppercase;
        }

        .pub-cal-wd.we {
            color: #cbd5e1;
        }

        .pub-cal-body {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
        }

        .pub-cal-cell {
            min-height: 80px;
            padding: 6px 5px;
            border-right: 1px solid var(--border);
            border-bottom: 1px solid var(--border);
            background: white;
            cursor: pointer;
            transition: background .1s;
        }

        .pub-cal-cell:nth-child(7n) {
            border-right: none;
        }

        .pub-cal-cell.other {
            background: #f8fafc;
            cursor: default;
        }

        .pub-cal-cell.pub-today {
            background: #f0f4ff;
        }

        .pub-cal-cell.pub-today .pub-day-num {
            background: var(--primary);
            color: white;
        }

        .pub-cal-cell.we-cell {
            background: #fafafa;
            cursor: default;
        }

        .pub-cal-cell.pub-blocked-cell {
            background: #ffebeb;
            cursor: not-allowed;
            border-color: #fecaca;
        }

        .pub-cal-cell.pub-blocked-cell:hover {
            background: #fee2e2;
        }

        .pub-cal-cell.pub-blocked-cell .pub-day-num {
            color: #dc2626;
        }

        .pub-cal-cell.clickable:hover {
            background: #eff1fe;
        }

        .pub-day-num {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            font-size: 12px;
            font-weight: 700;
            color: var(--text-dark);
            margin-bottom: 3px;
        }

        .pub-day-num.other {
            color: #cbd5e1;
        }

        .pub-chip {
            padding: 2px 6px;
            border-radius: 4px;
            font-size: 10px;
            font-weight: 600;
            margin-bottom: 2px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            cursor: pointer;
        }

        .pub-chip.activa {
            background: #dbeafe;
            color: #1d4ed8;
            border-left: 2px solid #2563eb;
        }

        .pub-chip.cancelada {
            background: #fee2e2;
            color: #b91c1c;
            border-left: 2px solid #dc2626;
            text-decoration: line-through;
        }

        /* Public modal */
        .pub-modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 9998;
            justify-content: center;
            align-items: center;
        }

        .pub-modal-overlay.open {
            display: flex;
        }

        .pub-modal {
            background: white;
            padding: 30px;
            border-radius: 16px;
            width: 90%;
            max-width: 440px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
            max-height: 90vh;
            overflow-y: auto;
        }

        .pub-modal h3 {
            margin-bottom: 6px;
        }

        /* Slot picker */
        .pub-slot-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
            gap: 8px;
            margin-top: 8px;
        }

        .pub-slot-btn {
            padding: 8px 4px;
            border: 1.5px solid var(--border);
            border-radius: 8px;
            font-size: 12px;
            font-weight: 700;
            cursor: pointer;
            background: white;
            text-align: center;
            transition: all .15s;
        }

        .pub-slot-btn:hover:not(:disabled) {
            border-color: var(--primary);
            color: var(--primary);
        }

        .pub-slot-btn.selected {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }

        .pub-slot-btn:disabled {
            opacity: .4;
            cursor: not-allowed;
            text-decoration: line-through;
        }

        /* ── File Picker ─────────────────────────────────────────────── */
        .file-drop-zone {
            border: 2px dashed var(--border);
            border-radius: 10px;
            padding: 18px 16px;
            text-align: center;
            cursor: pointer;
            transition: border-color .2s, background .2s;
            background: var(--bg-main);
            position: relative;
        }

        .file-drop-zone:hover,
        .file-drop-zone.drag-over {
            border-color: var(--primary);
            background: #eff1fe;
        }

        .file-drop-zone input[type=file] {
            position: absolute;
            inset: 0;
            opacity: 0;
            cursor: pointer;
            width: 100%;
            height: 100%;
        }

        .file-drop-icon {
            font-size: 26px;
            color: var(--primary);
            margin-bottom: 6px;
        }

        .file-drop-text {
            font-size: 13px;
            color: var(--text-muted);
        }

        .file-drop-text strong {
            color: var(--primary);
        }

        .file-drop-text small {
            display: block;
            font-size: 11px;
            margin-top: 3px;
        }

        .file-chips {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 10px;
        }

        .file-chip {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 10px;
            background: white;
            border: 1px solid var(--border);
            border-radius: 8px;
            font-size: 12px;
            font-weight: 600;
            color: var(--text-dark);
            max-width: 200px;
        }

        .file-chip svg {
            flex-shrink: 0;
            width: 20px;
            height: 20px;
        }

        .file-chip-name {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            flex: 1;
        }

        .file-chip-size {
            color: var(--text-muted);
            font-weight: 400;
            flex-shrink: 0;
        }

        .file-chip-remove {
            background: none;
            border: none;
            cursor: pointer;
            padding: 0;
            line-height: 1;
            color: #94a3b8;
            flex-shrink: 0;
            transition: color .15s;
        }

        .file-chip-remove:hover {
            color: #ef4444;
        }

        /* ── Password toggle (ojito) ─────────────────────────────────── */
        .pw-wrap {
            position: relative;
        }

        .pw-wrap .form-control {
            padding-right: 42px;
        }

        .pw-toggle {
            position: absolute;
            right: 4px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            cursor: pointer;
            padding: 8px 10px;
            color: var(--text-muted);
            font-size: 15px;
            display: flex;
            align-items: center;
        }

        .pw-toggle:hover {
            color: var(--primary);
        }

        /* En pantallas estrechas (iframe Odoo) los botones muestran solo ícono */
        @media (max-width: 520px) {
            .btn-label-full {
                display: none;
            }
        }

        /* ================= REDISEÑO DASHBOARD CLIENTE (STYLE MATCHING ADMIN) ================= */
        .container {
            width: 100%;
            max-width: 1380px;
            margin: 0 auto;
            padding: 24px 20px;
        }

        .pub-topbar {
            background: #ffffff;
            border-bottom: 1px solid #e2e8f0;
            padding: 14px 24px;
            margin-bottom: 24px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
            border-radius: 16px;
        }

        .pub-topbar-inner {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 16px;
        }

        .pub-brand-title {
            font-family: 'Outfit', sans-serif;
            font-size: 22px;
            font-weight: 800;
            color: var(--primary);
            margin: 0;
            line-height: 1.2;
        }

        /* TARJETAS DE ESTADÍSTICAS */
        .pub-stat-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 20px;
            margin-bottom: 24px;
        }

        .pub-stat-card {
            background: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: 16px;
            padding: 20px 24px;
            display: flex;
            align-items: center;
            gap: 18px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .pub-stat-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
        }

        .pub-stat-icon {
            width: 52px;
            height: 52px;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
            flex-shrink: 0;
        }

        .pub-stat-num {
            font-family: 'Outfit', sans-serif;
            font-size: 28px;
            font-weight: 800;
            color: var(--text-dark);
            line-height: 1;
        }

        .pub-stat-label {
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.6px;
            color: var(--text-muted);
            margin-top: 4px;
        }

        /* PESTAÑAS DE FILTRO */
        .pub-tabs-wrap {
            display: inline-flex;
            background: #f1f5f9;
            padding: 4px;
            border-radius: 10px;
            gap: 4px;
        }

        .pub-tab-btn {
            background: transparent;
            border: none;
            padding: 8px 16px;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 600;
            color: #64748b;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .pub-tab-btn.active {
            background: var(--primary);
            color: #ffffff;
            box-shadow: 0 2px 8px rgba(89, 102, 235, 0.3);
        }

        .pub-tab-badge {
            background: rgba(255, 255, 255, 0.2);
            color: inherit;
            padding: 2px 7px;
            border-radius: 6px;
            font-size: 11px;
            font-weight: 700;
        }

        .pub-tab-btn:not(.active) .pub-tab-badge {
            background: #e2e8f0;
            color: #475569;
        }

        /* TABLA Y FILAS */
        .pub-table {
            width: 100%;
            border-collapse: collapse;
            text-align: left;
        }

        .pub-table th {
            background: #f8fafc;
            color: #475569;
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-weight: 700;
            padding: 14px 16px;
            border-bottom: 1px solid #e2e8f0;
        }

        .pub-table td {
            padding: 14px 16px;
            border-bottom: 1px solid #f1f5f9;
            font-size: 13.5px;
            vertical-align: middle;
            color: var(--text-dark);
        }

        .pub-table tbody tr {
            transition: background 0.15s;
        }

        .pub-table tbody tr:hover {
            background: #f8fafc;
        }

        /* PILLS DE PRIORIDAD */
        .pub-prio-pill {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 700;
            text-transform: capitalize;
        }

        .prio-urgent {
            background: linear-gradient(135deg, #ef4444, #dc2626);
            color: #ffffff;
            box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
        }

        .prio-high {
            background: #fef2f2;
            color: #dc2626;
            border: 1px solid #fecaca;
        }

        .prio-medium {
            background: #f1f5f9;
            color: #475569;
            border: 1px solid #cbd5e1;
        }

        .prio-low {
            background: #f0fdf4;
            color: #16a34a;
            border: 1px solid #bbf7d0;
        }

        /* PILLS DE ESTADO */
        .pub-status-pill {
            display: inline-flex;
            align-items: center;
            padding: 4px 10px;
            border-radius: 6px;
            font-size: 11px;
            font-weight: 700;
        }

        .status-open {
            background: #fef3c7;
            color: #d97706;
            border: 1px solid #fde68a;
        }

        .status-progress {
            background: #e0f2fe;
            color: #0284c7;
            border: 1px solid #bae6fd;
        }

        .status-resolved {
            background: #dcfce7;
            color: #16a34a;
            border: 1px solid #bbf7d0;
        }

        .status-closed {
            background: #f1f5f9;
            color: #64748b;
            border: 1px solid #e2e8f0;
        }

        .auth-container {
            max-width: 440px;
            margin: 40px auto;
        }

        /* ===== BANDEJAS EN DOS COLUMNAS (Entrada | Salida) ===== */
        .pub-bandejas-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            align-items: start;
        }
        .pub-bandejas-grid.single {
            grid-template-columns: 1fr;
        }
        .pub-bandeja-col {
            border: 1px solid #e2e8f0;
            border-radius: 14px;
            padding: 16px;
            background: #fff;
            min-width: 0;
        }
        .pub-bandeja-col-head {
            display: flex;
            align-items: center;
            gap: 8px;
            font-family: 'Outfit', sans-serif;
            font-weight: 800;
            font-size: 16px;
            color: var(--text-dark);
            margin-bottom: 12px;
            padding-bottom: 10px;
            border-bottom: 2px solid #eef2ff;
        }
        .pub-bandeja-col-head .col-count {
            margin-left: auto;
            font-size: 12px;
            font-weight: 700;
            color: var(--primary);
            background: #eef2ff;
            padding: 2px 10px;
            border-radius: 20px;
        }
        .pub-col-filters {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
            margin-bottom: 12px;
        }
        .pub-col-filters .col-search-wrap {
            grid-column: 1 / -1;
            position: relative;
        }
        .pub-col-filters .form-control {
            width: 100%;
            font-size: 12.5px;
            padding: 8px 10px;
        }
        @media (max-width: 480px) {
            .pub-col-filters { grid-template-columns: 1fr 1fr; }
        }
        @media (max-width: 900px) {
            .pub-bandejas-grid { grid-template-columns: 1fr; }
        }

        /* ===== COLOR DISTINTIVO POR ÁREA DE ATENCIÓN ===== */
        .pub-table tbody tr.pub-area-row > td {
            background: rgba(var(--area-rgb, 99, 102, 241), 0.065);
            transition: background 0.16s ease;
        }
        .pub-table tbody tr.pub-area-row:hover > td {
            background: rgba(var(--area-rgb, 99, 102, 241), 0.135);
        }
        .pub-table tbody tr.pub-area-row > td:first-child {
            box-shadow: inset 4px 0 0 var(--area-hex, #6366f1);
        }
        .pub-area-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            background: rgba(var(--area-rgb, 99, 102, 241), 0.13);
            color: var(--area-text, #3730a3);
            border: 1px solid rgba(var(--area-rgb, 99, 102, 241), 0.34);
            border-radius: 4px;
            font-weight: 600;
        }

