/* ============================================================
   Sistema de tickets intranet — Teltan Telecomunicaciones
   Estilos globales (dark mode)
   ============================================================ */

:root {
    --bg: #0f1117;
    --bg2: #181c26;
    --bg3: #1e2330;
    --bg4: #252a38;
    --bg5: #2c3244;

    --bd: #ffffff18;
    --bd2: #ffffff28;
    --bd3: #ffffff40;

    --tx: #e2e4ed;
    --tx2: #9095a8;
    --tx3: #555c72;

    --acc: #7f77dd;
    --acc2: #534ab7;

    --teal: #1d9e75;
    --coral: #d85a30;
    --amber: #ba7517;
    --red: #e24b4a;
    --blue: #378add;
    --green: #639922;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
    background: var(--bg);
    color: var(--tx);
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.5;
}

a {
    color: var(--acc);
    text-decoration: none;
}

/* ============================================================
   Componentes reutilizables
   ============================================================ */

.input-field {
    background: var(--bg4);
    border: 1px solid var(--bd);
    border-radius: 6px;
    padding: 9px 12px;
    font-size: 13px;
    color: var(--tx);
    width: 100%;
    margin-bottom: 12px;
    transition: border-color .15s;
}

.input-field:focus {
    outline: none;
    border-color: var(--acc);
}

.input-field::placeholder {
    color: var(--tx3);
}

.label-field {
    font-size: 12px;
    color: var(--tx2);
    margin-bottom: 5px;
    display: block;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: opacity .15s, transform .1s;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--acc2);
    color: #fff;
}

.btn-primary:hover {
    opacity: .9;
}

.btn-secondary {
    background: var(--bg4);
    color: var(--tx2);
    border-color: var(--bd);
}

.btn-secondary:hover {
    color: var(--tx);
}

.btn-block {
    width: 100%;
}

.error-msg {
    background: #e24b4a18;
    border: 1px solid #e24b4a44;
    color: var(--red);
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 12px;
    margin-bottom: 14px;
}

/* ============================================================
   Avatar / iniciales de usuario
   ============================================================ */

.avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
}

.area-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 500;
}

.area-soporte      { background: #7f77dd22; color: var(--acc); }
.area-ingenieria    { background: #378add22; color: var(--blue); }
.area-programacion  { background: #d85a3022; color: var(--coral); }

/* ============================================================
   Layout principal del dashboard
   ============================================================ */

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 220px;
    background: var(--bg3);
    border-right: 1px solid var(--bd);
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    flex-shrink: 0;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px 20px;
    border-bottom: 1px solid var(--bd);
    margin-bottom: 16px;
}

.sidebar-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--acc2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
}

.sidebar-logo-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--tx);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 12px;
    flex: 1;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 6px;
    color: var(--tx2);
    font-size: 13px;
    transition: background .15s, color .15s;
}

.sidebar-link:hover {
    background: var(--bg4);
    color: var(--tx);
}

.sidebar-link.active {
    background: var(--acc2);
    color: #fff;
}

.sidebar-link i {
    font-size: 16px;
    width: 18px;
    text-align: center;
}

.sidebar-footer {
    padding: 12px 20px 0;
    border-top: 1px solid var(--bd);
    margin-top: 12px;
}

.main-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar {
    background: var(--bg3);
    border-bottom: 1px solid var(--bd);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--tx);
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.notif-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tx2);
    position: relative;
    cursor: pointer;
}

.notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--red);
    border-radius: 50%;
    width: 9px;
    height: 9px;
    border: 2px solid var(--bg3);
}

.notif-dropdown {
    display: none;
    position: absolute;
    top: 42px;
    right: 0;
    width: 300px;
    max-height: 360px;
    overflow-y: auto;
    background: var(--bg3);
    border: 1px solid var(--bd2);
    border-radius: 10px;
    box-shadow: 0 12px 28px #00000055;
    z-index: 50;
    cursor: default;
}

.notif-dropdown.open {
    display: block;
}

.notif-dropdown-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--tx2);
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 12px 14px 8px;
}

.notif-empty {
    padding: 18px 14px;
    font-size: 12px;
    color: var(--tx3);
    text-align: center;
}

.notif-item {
    display: block;
    padding: 10px 14px;
    text-decoration: none;
    border-top: 1px solid var(--bd);
}

.notif-item:hover {
    background: var(--bg4);
}

.notif-item-nueva {
    background: #7f77dd0c;
}

.notif-item-msg {
    font-size: 12.5px;
    color: var(--tx);
    line-height: 1.4;
}

.notif-item-time {
    font-size: 11px;
    color: var(--tx3);
    margin-top: 3px;
}

.content-padding {
    padding: 24px;
}

/* ============================================================
   Tarjetas de estadísticas
   ============================================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg3);
    border: 1px solid var(--bd);
    border-radius: 10px;
    padding: 16px 18px;
    display: block;
    text-decoration: none;
    transition: border-color .15s, transform .1s;
}

.stat-card[href]:hover {
    border-color: var(--acc2);
    transform: translateY(-1px);
    cursor: pointer;
}

.stat-number {
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
    color: var(--tx);
}

.stat-label {
    font-size: 12px;
    color: var(--tx2);
    margin-top: 6px;
}

.stat-purple { color: var(--acc); }
.stat-blue   { color: var(--blue); }
.stat-teal   { color: var(--teal); }
.stat-amber  { color: var(--amber); }
.stat-red    { color: var(--red); }
.stat-coral  { color: var(--coral); }

/* ============================================================
   Lista de tickets
   ============================================================ */

.section-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--tx2);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 12px;
}

.ticket-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ticket-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    background: var(--bg3);
    border: 1px solid var(--bd);
    border-radius: 8px;
    transition: border-color .15s;
}

.ticket-row:hover {
    border-color: var(--bd2);
}

.ticket-folio {
    font-size: 12px;
    color: var(--tx2);
    min-width: 70px;
    font-weight: 500;
}

.ticket-desc {
    flex: 1;
    font-size: 13px;
    color: var(--tx);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.status-badge {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 5px;
    font-weight: 500;
    white-space: nowrap;
}

.status-abierto      { background: #7f77dd22; color: var(--acc); }
.status-proceso       { background: #ba751722; color: var(--amber); }
.status-pendiente     { background: #1d9e7522; color: var(--teal); }
.status-cerrado       { background: #55555522; color: var(--tx2); }
.status-escalado      { background: #e24b4a22; color: var(--red); }
.status-validacion     { background: #378add22; color: var(--blue); }
.status-resuelto       { background: #1d9e7522; color: var(--teal); }

/* ============================================================
   Tarjeta de solicitud — cola de Ingeniería
   Tickets recién llegados y sin tomar se muestran como una
   "solicitud" estilo app de transporte (referencia visual dada
   por Carlos), con Aceptar/Rechazar en vez de un renglón plano.
   ============================================================ */

.solicitud-card {
    background: var(--bg3);
    border: 1px solid var(--bd2);
    border-radius: 14px;
    overflow: hidden;
    max-width: 340px;
}

.solicitud-mapa {
    height: 64px;
    background:
        linear-gradient(135deg, #7f77dd33, #378add22),
        repeating-linear-gradient(45deg, #ffffff08 0 2px, transparent 2px 14px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--acc);
    font-size: 22px;
    position: relative;
}

.solicitud-mapa .ti-map-pin-filled {
    filter: drop-shadow(0 2px 4px #00000055);
}

.solicitud-body {
    padding: 14px 16px 16px;
}

.solicitud-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--tx3);
    margin-bottom: 8px;
}

.solicitud-precio {
    font-size: 22px;
    font-weight: 700;
    color: var(--tx);
    margin-bottom: 10px;
}

.solicitud-fila {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--tx2);
    margin-bottom: 7px;
}

.solicitud-fila i {
    color: var(--tx3);
    font-size: 15px;
    width: 16px;
    text-align: center;
}

.solicitud-acciones {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.solicitud-acciones .btn {
    flex: 1;
    justify-content: center;
    padding: 9px 0;
}

#overlaySolicitudes {
    position: fixed;
    top: 76px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

#overlaySolicitudes .solicitud-card {
    pointer-events: auto;
    box-shadow: 0 20px 44px #000000aa, 0 0 0 1px var(--acc2);
    animation: solicitud-entrada .25s ease-out;
}

@keyframes solicitud-entrada {
    from { opacity: 0; transform: translateY(-16px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.pill-filtro {
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--tx2);
    background: var(--bg3);
    border: 1px solid var(--bd2);
    text-decoration: none;
    transition: background .15s, color .15s, border-color .15s;
    white-space: nowrap;
}

.pill-filtro:hover {
    background: var(--bg4);
}

.pill-filtro.activo {
    background: var(--acc);
    color: #fff;
    border-color: var(--acc);
}

.attachments-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.attachment-thumb {
    display: block;
    width: 150px;
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--bd2);
    cursor: pointer;
    transition: transform .12s, border-color .12s;
    position: relative;
    background: var(--bg4);
}

.attachment-thumb:hover {
    transform: scale(1.03);
    border-color: var(--acc2);
}

.attachment-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.attachment-thumb.attachment-rota::after {
    content: 'No se pudo cargar la imagen';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    font-size: 11px;
    color: var(--red);
    background: #e24b4a14;
}

.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: #000000d8;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 14px;
    cursor: zoom-out;
}

.lightbox-overlay.open {
    display: flex;
}

.lightbox-overlay img {
    max-width: 90vw;
    max-height: 82vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px #000000aa;
}

.lightbox-nombre {
    color: var(--tx2);
    font-size: 13px;
}

.lightbox-cerrar {
    position: absolute;
    top: 20px;
    right: 28px;
    color: var(--tx2);
    font-size: 22px;
    cursor: pointer;
}

/* ============================================================
   Zonas / barras de progreso
   ============================================================ */

.zone-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    background: var(--bg3);
    border-radius: 6px;
    margin-bottom: 6px;
    border: 1px solid var(--bd);
}

.zone-name {
    font-size: 12px;
    color: var(--tx);
    min-width: 90px;
}

.zone-bar-wrap {
    flex: 1;
    height: 8px;
    background: var(--bg4);
    border-radius: 4px;
    overflow: hidden;
}

.zone-bar-fill {
    height: 100%;
    border-radius: 4px;
}

.zone-count {
    font-size: 12px;
    color: var(--tx2);
    min-width: 28px;
    text-align: right;
}

/* ============================================================
   Login
   ============================================================ */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: var(--bg3);
    border: 1px solid var(--bd);
    border-radius: 12px;
    padding: 36px 32px;
    width: 100%;
    max-width: 360px;
}

.login-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--acc2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    margin: 0 auto 20px;
}

.login-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--tx);
    text-align: center;
    margin-bottom: 4px;
}

.login-subtitle {
    font-size: 12px;
    color: var(--tx2);
    text-align: center;
    margin-bottom: 24px;
}

.login-hint {
    text-align: center;
    margin-top: 16px;
    font-size: 11px;
    color: var(--tx3);
    line-height: 1.6;
}

/* ============================================================
   Responsive básico
   ============================================================ */

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .sidebar {
        width: 64px;
    }
    .sidebar-logo-text,
    .sidebar-link span {
        display: none;
    }
}

/* ============================================================
   Formularios — nuevo ticket / escalamiento
   ============================================================ */

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-grid-full {
    grid-column: 1 / -1;
}

.textarea-field {
    background: var(--bg4);
    border: 1px solid var(--bd);
    border-radius: 6px;
    padding: 9px 12px;
    font-size: 13px;
    color: var(--tx);
    width: 100%;
    margin-bottom: 12px;
    resize: vertical;
    min-height: 80px;
    font-family: var(--font-sans);
}

.textarea-field:focus {
    outline: none;
    border-color: var(--acc);
}

.select-field {
    background: var(--bg4);
    border: 1px solid var(--bd);
    border-radius: 6px;
    padding: 9px 12px;
    font-size: 13px;
    color: var(--tx);
    width: 100%;
    margin-bottom: 12px;
    cursor: pointer;
}

.select-field:focus {
    outline: none;
    border-color: var(--acc);
}

.card {
    background: var(--bg3);
    border: 1px solid var(--bd);
    border-radius: 10px;
    padding: 20px;
}

.card-narrow {
    max-width: 560px;
}

.btn-danger {
    background: #e24b4a18;
    color: var(--red);
    border-color: #e24b4a44;
}

.btn-danger:hover {
    background: #e24b4a28;
}

.btn-success {
    background: #1d9e7518;
    color: var(--teal);
    border-color: #1d9e7544;
}

.btn-success:hover {
    background: #1d9e7528;
}

/* ============================================================
   Detalle de ticket
   ============================================================ */

.detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.detail-folio {
    font-size: 20px;
    font-weight: 600;
    color: var(--tx);
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-meta {
    font-size: 12px;
    color: var(--tx2);
    margin-top: 4px;
}

.priority-badge {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 5px;
    font-weight: 500;
}

.priority-alta  { background: #e24b4a22; color: var(--red); }
.priority-media { background: #ba751722; color: var(--amber); }
.priority-baja  { background: #1d9e7522; color: var(--teal); }

.detail-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 20px;
}

@media (max-width: 900px) {
    .detail-layout { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
}

.detail-side-block {
    margin-bottom: 16px;
}

.detail-side-label {
    font-size: 11px;
    color: var(--tx3);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 4px;
}

.detail-side-value {
    font-size: 13px;
    color: var(--tx);
}

/* ============================================================
   Timeline / historial
   ============================================================ */

.timeline {
    display: flex;
    flex-direction: column;
}

.timeline-item {
    display: flex;
    gap: 12px;
    padding-bottom: 18px;
    position: relative;
}

.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 16px;
    bottom: 0;
    width: 1px;
    background: var(--bd2);
}

.tl-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 3px;
    border: 2px solid var(--bg3);
    box-shadow: 0 0 0 1px var(--bd2);
}

.tl-dot.creado   { background: var(--acc); }
.tl-dot.escalado { background: var(--red); }
.tl-dot.proceso  { background: var(--amber); }
.tl-dot.pendiente{ background: var(--teal); }
.tl-dot.cerrado  { background: var(--tx3); }

.tl-content { flex: 1; }

.tl-time {
    font-size: 11px;
    color: var(--tx3);
}

.tl-title {
    font-size: 13px;
    color: var(--tx);
    font-weight: 500;
    margin-top: 1px;
}

.tl-detail {
    font-size: 12px;
    color: var(--tx2);
    margin-top: 2px;
}

.attachment-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--bg4);
    border: 1px solid var(--bd);
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 12px;
    color: var(--tx2);
    margin-right: 6px;
    margin-bottom: 6px;
    text-decoration: none;
    transition: border-color .12s;
}

.attachment-chip:hover {
    border-color: var(--acc2);
}

/* ============================================================
   Validación / confirmación
   ============================================================ */

.validation-card {
    background: var(--bg3);
    border: 1px solid var(--bd);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
}

.validation-note {
    font-size: 12px;
    color: var(--tx2);
    background: var(--bg4);
    border-radius: 6px;
    padding: 8px 10px;
    margin: 10px 0 12px;
    font-style: italic;
}

.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--tx3);
}

.empty-state i {
    font-size: 36px;
    margin-bottom: 10px;
    display: block;
}

/* ============================================================
   Alert banner (modo simulación)
   ============================================================ */

.sim-banner {
    background: #ba751718;
    border: 1px solid #ba751744;
    color: var(--amber);
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 12px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================================
   Panel de administración — tabs, tablas, toggles
   ============================================================ */

.admin-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--bd2);
    margin-bottom: 20px;
}

.admin-tab {
    padding: 9px 16px;
    font-size: 13px;
    color: var(--tx2);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-tab:hover {
    color: var(--tx);
}

.admin-tab.active {
    color: var(--acc);
    border-bottom-color: var(--acc);
    font-weight: 500;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg3);
    border: 1px solid var(--bd);
    border-radius: 10px;
    overflow: hidden;
}

.data-table th {
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--tx3);
    font-weight: 500;
    padding: 12px 16px;
    background: var(--bg4);
    border-bottom: 1px solid var(--bd);
}

.data-table td {
    padding: 12px 16px;
    font-size: 13px;
    color: var(--tx);
    border-bottom: 1px solid var(--bd2);
}

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

.data-table tr:hover td {
    background: var(--bg4);
}

.user-name-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-mini-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

.admin-badge {
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 4px;
    background: #7f77dd22;
    color: var(--acc);
    font-weight: 500;
    margin-left: 6px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 21px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--bd2);
    border-radius: 21px;
    transition: .2s;
}

.toggle-slider::before {
    position: absolute;
    content: "";
    height: 15px;
    width: 15px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: .2s;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--teal);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(17px);
}

.icon-btn {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid var(--bd);
    background: var(--bg4);
    color: var(--tx2);
    cursor: pointer;
    text-decoration: none;
}

.icon-btn:hover {
    color: var(--tx);
    border-color: var(--bd2);
}

.icon-btn.danger:hover {
    color: var(--red);
    border-color: #e24b4a44;
}

.table-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}

.config-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--bd2);
}

.config-row:last-child {
    border-bottom: none;
}

.config-row-label {
    font-size: 13px;
    color: var(--tx);
    font-weight: 500;
}

.config-row-desc {
    font-size: 12px;
    color: var(--tx3);
    margin-top: 2px;
}

.zone-edit-row {
    display: grid;
    grid-template-columns: 1fr 70px 60px 40px;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--bd2);
}

.zone-edit-row:last-child {
    border-bottom: none;
}
