:root {
    /* Pure Real Food — identidad organizacional (purerealfood.com) */
    --prf-amber: #fbab2a;
    --prf-amber-dark: #e09520;
    --prf-amber-darker: #c47f12;
    --prf-amber-light: #fef4e0;
    --prf-amber-border: #f5d08a;
    --prf-cream: #faf7f0;
    --prf-cream-dark: #f1ebe4;
    --prf-brown: #7e4c2b;
    --prf-brown-dark: #5c3820;
    --prf-text: #020101;
    --prf-text-muted: #6b5f54;
    --prf-bg: #f7f7f7;
    --prf-surface: #ffffff;
    --prf-border: #ebebeb;

    /* Alias legacy IQKlient → PRF */
    --iq-green: var(--prf-amber);
    --iq-green-dark: var(--prf-amber-dark);
    --iq-green-light: var(--prf-amber-light);
    --iq-green-border: var(--prf-amber-border);
    --iq-bg: var(--prf-bg);
    --iq-surface: var(--prf-surface);
    --iq-border: var(--prf-border);
    --iq-text: var(--prf-text);
    --iq-text-muted: var(--prf-text-muted);
    --iq-sidebar-width: 240px;
    --iq-radius: 12px;
    --iq-shadow: 0 2px 8px rgba(2, 1, 1, 0.06);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Lexend", -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--prf-cream);
    color: var(--iq-text);
    font-size: 0.9375rem;
}

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

.iq-sidebar {
    width: var(--iq-sidebar-width);
    background: var(--iq-surface);
    border-right: 1px solid var(--iq-border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.iq-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--iq-border);
}

.iq-brand-logo {
    width: 44px;
    height: 44px;
    background: var(--prf-cream);
    border: 1px solid var(--prf-amber-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    overflow: hidden;
    flex-shrink: 0;
}

.iq-brand-logo-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
    background: #fff;
}

.iq-brand-title {
    font-weight: 700;
    line-height: 1.2;
    color: var(--prf-brown-dark);
    letter-spacing: -0.01em;
}
.iq-brand-sub { font-size: 0.65rem; letter-spacing: 0.08em; color: var(--iq-text-muted); text-transform: uppercase; }

.iq-nav { flex: 1; padding: 0.75rem 0.5rem; overflow-y: auto; }

.iq-nav-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.85rem;
    margin-bottom: 0.15rem;
    border-radius: var(--iq-radius);
    color: var(--iq-text);
    text-decoration: none;
    font-weight: 500;
    border: 1px solid transparent;
    transition: background 0.15s, border-color 0.15s;
}

.iq-nav-link i { font-size: 1.1rem; color: var(--iq-text-muted); }

.iq-nav-link:hover {
    background: var(--prf-cream);
    color: var(--iq-text);
}

.iq-nav-link.active {
    background: var(--prf-amber-light);
    border-color: var(--prf-amber-border);
    color: var(--prf-brown-dark);
}

.iq-nav-link.active i { color: var(--prf-amber-dark); }

.iq-nav-group { margin-bottom: 0.15rem; }

.iq-nav-group-toggle {
    width: 100%;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.iq-nav-chevron {
    margin-left: auto;
    font-size: 0.75rem !important;
    transition: transform 0.15s;
}

.iq-nav-group.open .iq-nav-chevron { transform: rotate(180deg); }

.iq-nav-sub {
    display: none;
    padding: 0.15rem 0 0.35rem 0.35rem;
}

.iq-nav-group.open .iq-nav-sub { display: block; }

.iq-nav-sub-link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.75rem 0.45rem 1.5rem;
    margin-bottom: 0.1rem;
    border-radius: var(--iq-radius);
    color: var(--iq-text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
}

.iq-nav-sub-link:hover {
    background: var(--prf-cream);
    color: var(--iq-text);
}

.iq-nav-sub-link.active {
    background: var(--prf-amber-light);
    color: var(--prf-brown-dark);
}

.iq-nav-sub-link i { font-size: 0.95rem; }

.iq-sidebar-footer {
    border-top: 1px solid var(--iq-border);
    padding: 1rem;
}

.iq-user { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.75rem; }

.iq-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--prf-amber);
    color: var(--prf-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.iq-user-name { font-weight: 600; font-size: 0.8125rem; line-height: 1.2; }
.iq-user-role { font-size: 0.75rem; color: var(--iq-text-muted); }

.iq-logout {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #dc2626;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
}

.iq-main { flex: 1; min-width: 0; padding: 1.75rem 2rem; }

.iq-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.iq-page-title { font-size: 1.5rem; font-weight: 700; margin: 0 0 0.25rem; }
.iq-page-subtitle { margin: 0; color: var(--iq-text-muted); font-size: 0.875rem; }

.iq-card {
    background: var(--iq-surface);
    border: 1px solid var(--iq-border);
    border-radius: var(--iq-radius);
    box-shadow: var(--iq-shadow);
}

.iq-card-body { padding: 1.25rem; }

.iq-chart-wrap {
    position: relative;
    width: 100%;
    height: 260px;
    max-height: 260px;
    overflow: hidden;
}

.iq-chart-wrap--compact {
    height: 220px;
    max-height: 220px;
}

.iq-chart-wrap canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-height: 100%;
}

.iq-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.iq-kpi {
    padding: 1rem 1.15rem;
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.iq-kpi-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.iq-kpi-icon.green { background: var(--prf-amber-light); color: var(--prf-amber-dark); }
.iq-kpi-icon.blue { background: #dbeafe; color: #2563eb; }
.iq-kpi-icon.orange { background: #ffedd5; color: #ea580c; }
.iq-kpi-icon.red { background: #fee2e2; color: #dc2626; }

.iq-kpi-label { font-size: 0.8125rem; color: var(--iq-text-muted); margin-bottom: 0.15rem; }
.iq-kpi-value { font-size: 1.75rem; font-weight: 700; line-height: 1; }
.iq-kpi-meta { font-size: 0.75rem; color: var(--iq-text-muted); margin-top: 0.35rem; }

.iq-btn-primary {
    background: var(--prf-amber);
    border: none;
    color: var(--prf-text);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    box-shadow: 0 2px 0 rgba(196, 127, 18, 0.25);
}

.iq-btn-primary:hover {
    background: var(--prf-amber-dark);
    color: var(--prf-text);
}

.iq-btn-outline {
    background: #fff;
    border: 1px solid var(--iq-border);
    color: var(--iq-text);
    font-weight: 500;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
}

.iq-table-wrap { overflow-x: auto; }

.iq-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.iq-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--prf-brown);
    border-bottom: 1px solid var(--iq-border);
    background: var(--prf-cream);
}

.iq-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--iq-border);
    vertical-align: middle;
}

.iq-table tbody tr:hover { background: var(--prf-cream); }

.iq-badge, .iq-badge-neutral, .iq-badge-success, .iq-badge-warning, .iq-badge-muted, .iq-badge-info, .iq-badge-danger {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.iq-badge-success { background: var(--prf-amber-light); color: var(--prf-brown-dark); }
.iq-badge-neutral { background: var(--prf-cream-dark); color: var(--prf-brown); }
.iq-badge-info { background: #dbeafe; color: #1d4ed8; }
.iq-badge-warning { background: #fef3c7; color: #b45309; }
.iq-badge-muted { background: #f3f4f6; color: #4b5563; }
.iq-badge-danger { background: #fee2e2; color: #991b1b; }

.iq-filter-bar {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    align-items: center;
}

.iq-search {
    flex: 1;
    min-width: 200px;
    max-width: 420px;
    position: relative;
}

.iq-search input {
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 2.25rem;
    border: 1px solid var(--iq-border);
    border-radius: 8px;
}

.iq-search i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--iq-text-muted);
}

.iq-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--iq-text-muted);
}

.iq-alert-api {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.iq-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, var(--prf-cream) 0%, var(--prf-cream-dark) 45%, var(--prf-bg) 100%);
}

.iq-login-card {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--prf-amber-border);
    box-shadow: 0 12px 40px rgba(2, 1, 1, 0.08);
    padding: 2rem;
}

.iq-login-brand { text-align: center; margin-bottom: 1.5rem; }

.iq-login-logo {
    display: block;
    max-width: 220px;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

.iq-tabs { display: flex; gap: 0.5rem; border-bottom: 1px solid var(--iq-border); margin-bottom: 1rem; }

.iq-tab {
    padding: 0.5rem 1rem;
    border: none;
    background: none;
    color: var(--iq-text-muted);
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    text-decoration: none;
    display: inline-block;
}

.iq-tab.active { color: var(--prf-brown-dark); border-bottom-color: var(--prf-amber); }

.iq-split { display: grid; grid-template-columns: 220px 1fr; gap: 1.25rem; }

.iq-chat-readonly {
    overflow-y: auto;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
}
.iq-chat-readonly::-webkit-scrollbar { width: 10px; }
.iq-chat-readonly::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 8px; }
.iq-chat-readonly::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 8px; }
.iq-chat-readonly::-webkit-scrollbar-thumb:hover { background: #64748b; }

.iq-conv-messages-panel {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 10.5rem);
    min-height: 28rem;
}
.iq-conv-messages-panel .iq-chat-readonly {
    flex: 1 1 auto;
    min-height: 9rem;
    max-height: none;
}
.iq-conv-compose {
    flex: 0 0 auto;
}

.iq-chat-day-separator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0 0.75rem;
    color: var(--prf-text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.02em;
}

.iq-chat-day-separator::before,
.iq-chat-day-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--iq-border);
}

.iq-chat-day-separator span {
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: var(--prf-cream-dark);
    border: 1px solid var(--iq-border);
    white-space: nowrap;
}

.iq-chat-timeline-entry {
    display: contents;
}

.iq-chat-bubble {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: var(--prf-cream);
    border: 1px solid var(--iq-border);
}

.iq-chat-bubble-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.iq-chat-sender {
    font-weight: 600;
    letter-spacing: 0.01em;
}

.iq-chat-time {
    color: var(--prf-text-muted);
    white-space: nowrap;
}

.iq-chat-sender-client { color: #475569; }
.iq-chat-sender-ai { color: var(--prf-amber-darker); }
.iq-chat-sender-operator { color: #1d5f9a; }

.iq-chat-bubble.bubble-client {
    background: #fff;
    border-color: #e2e8f0;
}

.iq-chat-bubble.bubble-ai {
    background: var(--prf-amber-light);
    border-color: var(--prf-amber-border);
    border-left: 4px solid var(--prf-amber);
}

.iq-chat-bubble.bubble-operator {
    background: #e8f4fc;
    border-color: #9ecae8;
    border-left: 4px solid #2b8fd4;
}

.iq-chat-bubble.bubble-operator .iq-chat-content {
    color: #0f3d5c;
}

.iq-chat-bubble.bubble-ai .iq-chat-content {
    color: var(--prf-brown-dark);
}

.iq-chat-bubble.bubble-system {
    background: #f3f4f6;
    border-color: #d1d5db;
    border-left: 4px solid #9ca3af;
}

.iq-chat-bubble.bubble-system .iq-chat-content {
    color: #4b5563;
    font-size: 0.9rem;
}

/* Legacy aliases (HITL chat u otras vistas) */
.iq-chat-bubble.user { background: #fff; border-color: #e2e8f0; }
.iq-chat-bubble.agent { background: var(--prf-amber-light); border-color: var(--prf-amber-border); border-left: 4px solid var(--prf-amber); }
.iq-chat-bubble.agent.human { background: #e8f4fc; border-color: #9ecae8; border-left: 4px solid #2b8fd4; }

.iq-pagination {
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid var(--iq-border);
}

.iq-pagination .page-link {
    color: var(--prf-brown-dark);
}

.iq-pagination .page-item.active .page-link {
    background-color: var(--prf-amber);
    border-color: var(--prf-amber);
    color: var(--prf-text);
}

.iq-sync-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.45);
}

.iq-sync-overlay-box {
    background: #fff;
    border-radius: 12px;
    padding: 2rem 2.5rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
    max-width: 24rem;
}

/* —— Hub multi-agente —— */
.iq-hub-page {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    background: linear-gradient(160deg, var(--prf-cream) 0%, var(--prf-cream-dark) 45%, var(--prf-bg) 100%);
}

.iq-hub-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--iq-border);
    box-shadow: 0 1px 8px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(8px);
}

.iq-hub-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.iq-hub-account {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.35rem 0.85rem 0.35rem 0.35rem;
    border-radius: 999px;
    background: #f9fafb;
    border: 1px solid var(--iq-border);
}

.iq-hub-account-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--prf-amber);
    color: var(--prf-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.iq-hub-account-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
}

.iq-hub-account-text strong {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--iq-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.iq-hub-account-text span {
    font-size: 0.75rem;
    color: var(--iq-text-muted);
}

.iq-hub-logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.95rem;
    border-radius: 8px;
    border: 1px solid #fecaca;
    background: #fff;
    color: #dc2626;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.iq-hub-logout-btn:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #b91c1c;
}

.iq-hub-shell {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5.25rem 1.5rem 1.5rem;
    flex: 1;
    box-sizing: border-box;
}

.iq-hub-brand {
    margin-bottom: 1.75rem;
}

.iq-hub-footer {
    margin-top: 2rem;
}

.iq-agent-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 1.25rem;
    width: 100%;
}

.iq-hub-card,
a.iq-hub-card.iq-login-card {
    flex: 0 0 320px;
    width: 320px;
    max-width: 320px;
    min-height: 320px;
    box-sizing: border-box;
    border: none;
    display: flex;
    flex-direction: column;
    position: relative;
    isolation: isolate;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none;
    color: inherit;
}

.iq-hub-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
}

.iq-hub-card.is-selected {
    box-shadow: 0 8px 30px rgba(2, 1, 1, 0.08), 0 0 0 2px var(--prf-amber);
}

.iq-hub-card.is-inactive {
    opacity: 0.72;
}

.iq-hub-card-wide {
    flex: 0 0 auto;
    width: 100%;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

.iq-hub-card-icon {
    width: 40px;
    height: 40px;
    background: var(--prf-amber);
    color: var(--prf-text);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.iq-hub-card-icon.is-new {
    background: #fff;
    border: 1px solid var(--prf-amber-border);
    color: var(--prf-amber-dark);
}

.iq-hub-card-desc {
    text-align: center;
    line-height: 1.55;
    margin-bottom: 0;
    flex: 1;
}

.iq-hub-card-meta {
    margin-bottom: 1rem !important;
}

.iq-hub-card-meta li {
    text-align: center;
    margin-bottom: 0.2rem;
}

.iq-hub-card form,
.iq-hub-card > .btn {
    margin-top: auto;
}

.iq-hub-slug {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.iq-hub-card-new,
a.iq-hub-card-new.iq-login-card {
    text-decoration: none !important;
    color: var(--iq-text) !important;
    border: 1px dashed #d1d5db !important;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    justify-content: center;
    min-height: 320px;
}

.iq-hub-card-new h2,
.iq-hub-card-new p,
.iq-hub-card-new:hover,
.iq-hub-card-new:focus {
    text-decoration: none;
    color: inherit;
}

.iq-hub-card-new-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
    width: 100%;
    padding: 0.5rem 0;
}

.iq-hub-card-new:hover {
    border-color: var(--prf-amber) !important;
    color: var(--iq-text) !important;
    box-shadow: 0 12px 36px rgba(2, 1, 1, 0.1);
}

.iq-hub-card-new-copy {
    max-width: 240px;
}

.iq-agent-context {
    margin: 0.75rem 0.75rem 0;
    padding: 0.85rem;
    border: 1px solid var(--prf-amber-border);
    border-radius: var(--iq-radius);
    background: var(--prf-amber-light);
}

.iq-agent-context-label {
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--prf-brown);
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.iq-agent-context-name {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.iq-agent-context-close .btn {
    border: 1px solid var(--prf-amber-border);
    background: #fff;
    color: var(--prf-brown-dark);
    font-weight: 600;
    font-size: 0.8125rem;
    border-radius: 999px;
}

.iq-agent-context-close .btn:hover {
    background: #fff;
    border-color: var(--prf-amber-dark);
    color: var(--prf-brown-dark);
}

@media (max-width: 768px) {
    .iq-hub-header-inner {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .iq-hub-account-text strong {
        max-width: 140px;
    }

    .iq-hub-shell {
        padding: 5rem 1rem 1rem;
    }

    .iq-agent-grid {
        flex-direction: column;
        align-items: center;
    }

    .iq-hub-card {
        flex: 0 0 auto;
        width: 100%;
        max-width: 400px;
    }

    .iq-hub-card-new {
        min-height: 220px;
    }
}

@media (max-width: 992px) {
    .iq-app { flex-direction: column; }
    .iq-sidebar { width: 100%; height: auto; position: relative; }
    .iq-split { grid-template-columns: 1fr; }
}

.iq-table tbody tr.iq-row-hitl {
    background: #fff7ed;
    box-shadow: inset 3px 0 0 #f59e0b;
}

.iq-table tbody tr.iq-row-hitl:hover {
    background: #ffedd5;
}

.iq-hitl-row-flag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #b45309;
    background: #fef3c7;
    border-radius: 999px;
    padding: 0.1rem 0.45rem;
    vertical-align: middle;
}

.iq-nav-hitl-badge {
    margin-left: auto;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.25rem;
    text-align: center;
}

.iq-nav-link {
    position: relative;
}

.iq-hitl-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.45);
    z-index: 1080;
}

.iq-hitl-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1090;
    width: min(420px, calc(100vw - 2rem));
    border: 1px solid var(--iq-border);
}

.iq-hitl-modal-icon {
    color: #d97706;
    font-size: 1.25rem;
    line-height: 1;
}

[x-cloak] {
    display: none !important;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--prf-amber);
    box-shadow: 0 0 0 0.2rem rgba(251, 171, 42, 0.2);
}

.form-check-input:checked {
    background-color: var(--prf-amber);
    border-color: var(--prf-amber);
}

.text-success {
    color: var(--prf-brown-dark) !important;
}
