/* ================= GLOBAL STYLES ================= */
:root {
    --base-font-size: 16px;
}

html {
    font-size: var(--base-font-size);
    transition: font-size 0.2s;
}

:root {
    --bg-base: #131722;
    --bg-panel: #1e222d;
    --bg-panel-hover: #2a2e39;
    --text-main: #d1d4dc;
    --text-highlight: #ffffff;
    --text-muted: #787b86;
    --accent-blue: #2962ff;
    --accent-blue-hover: #1e4bd8;
    --accent-green: #089981;
    --accent-red: #f23645;
    --border-color: #2a2e39;
    --base-font-size: 16px;
    --border-radius: 8px;
    --color-req: #FF9F43;
    --color-act: #7CA19F;
    --color-desc: #D3D3D3;
    --color-muted-text: #A0A0A0;
    color-scheme: dark;
}

body.light-mode {
    --bg-base: #d2dbe5;
    --bg-panel: #e1e8f0;
    --bg-panel-hover: #d7dfe8;
    --text-main: #131722;
    --text-highlight: #000000;
    --text-muted: #5d6371;
    --border-color: #ced5e0;
    --color-req: #d35400;
    --color-act: #2874a6;
    --color-desc: #555555;
    --color-muted-text: #707070;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    font-size: var(--base-font-size);
    transition: background-color 0.3s, color 0.3s, font-size 0.2s;
    overflow-x: hidden;
    direction: rtl;
}

/* Utility classes */
.hidden {
    display: none !important;
}

/* Dropdown Menu */
#lang-dropdown-menu:not(.hidden) {
    display: flex;
}

/* Global Clock */
.global-clock {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-highlight);
    margin-right: 30px;
    font-variant-numeric: tabular-nums;
}

html[dir="ltr"] .global-clock {
    margin-right: 0;
    margin-left: 30px;
}

.date-text {
    font-size: 0.85em;
    font-weight: 500;
    color: #ffffff !important;
}

.light-mode .global-clock {
    color: var(--text-main);
}

/* Screens */
.screen {
    display: none;
    min-height: 100vh;
    width: 100%;
}

.screen.active {
    display: flex;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Login Screen */
#login-screen {
    flex-direction: row;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.login-right {
    flex: 1;
    position: relative;
    background: #000;
    overflow: hidden;
}

.login-right .bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    filter: brightness(0.95) contrast(0.95) saturate(1.1);
}

.top-left-logo {
    position: absolute;
    top: 30px;
    left: 30px;
    height: 80px;
    z-index: 1000;
}

.login-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000000;
    position: relative;
    padding: 20px;
}

.login-box, .two-fa-box {
    background-color: var(--bg-panel);
    padding: 40px;
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
}

.login-box h1, .two-fa-box h2 {
    color: var(--text-highlight);
    margin-bottom: 24px;
    font-size: 1.8rem;
    text-align: center;
}

.input-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.input-group label {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.input-group input {
    padding: 12px 16px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background-color: var(--bg-base);
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.input-group input:focus {
    border-color: var(--accent-blue);
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    gap: 8px;
}

.btn-primary, .btn-secondary {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

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

.btn-primary:hover {
    background-color: var(--accent-blue-hover);
}

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

.btn-secondary {
    background-color: var(--bg-panel-hover);
    color: var(--text-highlight);
    border: 1px solid var(--border-color);
}

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

.error-msg {
    color: var(--accent-red);
    margin-top: 16px;
    font-size: 0.9rem;
    text-align: center;
    min-height: 20px;
}

/* 2FA Screen */
#two-fa-screen {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(18, 18, 18, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    height: 100vh;
    overflow: hidden;
}

body.light-mode #two-fa-screen {
    background-color: rgba(255, 255, 255, 0.4);
}

.two-fa-box p {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.two-fa-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    direction: ltr; /* Ensure numbers go left to right */
}

.code-input {
    width: 45px;
    height: 55px;
    text-align: center;
    font-size: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background-color: var(--bg-base);
    color: var(--text-highlight);
    outline: none;
}

.code-input:focus {
    border-color: var(--accent-blue);
}

/* Dashboard */
#dashboard-screen {
    flex-direction: column;
}

.dashboard-content {
    flex: 1;
    padding: 0 20px 20px 20px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px 30px;
    background-color: var(--bg-panel);
    border-bottom: 1px solid var(--border-color);
    direction: rtl;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-left {
    margin-left: 80px;
}

.header-right {
    margin-right: 0;
}

.font-controls button, #theme-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 8px 12px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: bold;
}

.font-controls button:hover, #theme-toggle:hover {
    background: var(--bg-panel-hover);
}

#logout-btn {
    width: auto;
    padding: 8px 16px;
}

select {
    padding: 8px 16px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background-color: var(--bg-base);
    color: var(--text-main);
    outline: none;
}

/* Dashboard Stats Controls */
.stats-controls {
    margin-bottom: 20px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.sub-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background-color: var(--bg-panel);
    padding: 24px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-card h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-highlight) !important;
}

/* Recent Split */
.recent-split {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.recent-panel {
    background-color: var(--bg-panel);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 20px;
}

.operator-panel {
    flex: 2;
}

.ai-panel {
    flex: 1;
}

.recent-panel h2 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--text-highlight);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.call-list {
    list-style: none;
    max-height: 450px;
    overflow-y: auto;
    padding-right: 5px;
}

/* custom scrollbar for call-list to make it neat */
.call-list::-webkit-scrollbar {
    width: 6px;
}

.call-list::-webkit-scrollbar-track {
    background: transparent;
}

.call-list::-webkit-scrollbar-thumb {
    background: rgba(150, 150, 150, 0.3);
    border-radius: 3px;
}

.call-list::-webkit-scrollbar-thumb:hover {
    background: rgba(150, 150, 150, 0.5);
}

.call-item {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.call-item:last-child {
    border-bottom: none;
}

.call-item .time { color: var(--color-muted-text) !important; font-size: 0.85rem; }

.call-item .plate { font-weight: 600; color: var(--text-highlight); }

.call-item .reason { font-size: 0.9rem; }

.call-item.highlight {
    background-color: rgba(242, 54, 69, 0.1);
    border-right: 4px solid var(--accent-red);
}

.call-item.highlight .reason {
    color: var(--accent-red);
    font-weight: 600;
}

/* All Calls & Search */
.all-calls-section, .graph-section {
    background-color: var(--bg-panel);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 20px;
    margin-bottom: 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 15px;
}

.btn-text {
    background: transparent;
    border: none;
    color: var(--accent-blue);
    cursor: pointer;
    font-weight: 500;
}

.btn-text:hover {
    text-decoration: underline;
}

.all-calls-container {
    transition: max-height 0.3s ease;
    overflow: hidden;
}

.all-calls-container.collapsed {
    max-height: 0;
}

.search-bar {
    margin-bottom: 16px;
}

.search-bar input {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background-color: var(--bg-base);
    color: var(--text-main);
}

.table-wrapper {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 500px;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
}

th, td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

th {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    position: sticky;
    top: 0;
    background: var(--bg-panel);
    z-index: 10;
    white-space: nowrap;
}

tr:hover {
    background-color: var(--bg-panel-hover);
}

.chart-container {
    height: 300px;
    width: 100%;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding-top: 85px;
    padding-bottom: 5px;
    position: relative;
    border-bottom: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
    direction: ltr; /* Bars left to right */
    overflow-x: auto;
    overflow-y: visible;
}

/* Scrollbar for charts */
.chart-container::-webkit-scrollbar {
    height: 8px;
}

.chart-container::-webkit-scrollbar-track {
    background: transparent;
}

.chart-container::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 4px;
}

.chart-bar-wrapper {
    flex: 1 1 55px;
    min-width: 55px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
    position: relative;
    group-hover: show-tooltip;
}

.chart-bar {
    width: 80%;
    background-color: var(--accent-blue);
    border-radius: 4px 4px 0 0;
    transition: height 0.5s ease, background-color 0.2s;
}

.chart-bar:hover {
    background-color: var(--accent-blue-hover);
}

.chart-label {
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    white-space: nowrap;
}

.chart-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 10;
    color: var(--text-highlight);
    margin-bottom: 5px;
}

.chart-bar-wrapper:hover .chart-tooltip {
    opacity: 1;
}

.dashboard-top-left-logo {
    height: 40px;
    margin-right: 20px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    padding: 5px 15px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: var(--text-main);
    background: rgba(255,255,255,0.05);
}

.tab-btn.active {
    color: #ffffff;
    background: rgba(255,255,255,0.15);
}

.tab-btn[data-target="tab-recent-ai"].active {
    color: var(--accent-green);
    background: rgba(8, 153, 129, 0.1);
}

.tab-btn[data-target="tab-blocked"].active {
    color: var(--accent-red);
    background: rgba(255, 69, 58, 0.1);
}

.advanced-search-grid {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px;
    align-items: end;
}

.advanced-search-grid > * {
    flex: 1 1 120px;
}

.advanced-search-grid > #btn-date-toggle {
    flex: 0 0 auto;
    width: auto;
    min-width: 60px;
    padding: 0 15px;
}

.tab-btn[data-target="tab-authorized"].active {
    color: var(--accent-green);
    background: rgba(48, 209, 88, 0.1);
}

.adv-search-input {
    padding: 8px 10px;
    border-radius: var(--border-radius);
    background: var(--bg-panel);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    outline: none;
    width: 100%;
    font-size: 0.95rem;
    font-weight: 600;
}

#search-plate, .search-plate-input {
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.5px;
}

.adv-search-input:focus {
    border-color: var(--accent-blue);
}

select.adv-search-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%23999" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: left 8px center;
    padding-left: 28px !important;
}

@keyframes pulse-green {
    0% { background-color: rgba(40, 167, 69, 0.4); box-shadow: inset 0 0 10px rgba(40, 167, 69, 0.5); }
    50% { background-color: rgba(40, 167, 69, 0.1); box-shadow: inset 0 0 5px rgba(40, 167, 69, 0.2); }
    100% { background-color: transparent; box-shadow: none; }
}

@keyframes pulse-red {
    0% { background-color: rgba(242, 54, 69, 0.5); box-shadow: inset 0 0 10px rgba(242, 54, 69, 0.6); }
    50% { background-color: rgba(242, 54, 69, 0.2); box-shadow: inset 0 0 5px rgba(242, 54, 69, 0.3); }
    100% { background-color: rgba(242, 54, 69, 0.1); box-shadow: none; }
}

.pulse-green-anim {
    animation: pulse-green 3s ease-out forwards;
}

.pulse-red-anim {
    animation: pulse-red 3s ease-out forwards;
}

/* Responsive */
@media (max-width: 1024px) {
    /* stats-grid handles mobile now */
    

.sub-stats-grid { grid-template-columns: 1fr; }
    .recent-split, .lists-split { flex-direction: column; display: flex !important; }
}

@keyframes pulse-green {
    0% { background-color: rgba(40, 167, 69, 0.4); box-shadow: inset 0 0 10px rgba(40, 167, 69, 0.5); }
    50% { background-color: rgba(40, 167, 69, 0.1); box-shadow: inset 0 0 5px rgba(40, 167, 69, 0.2); }
    100% { background-color: transparent; box-shadow: none; }
}

@keyframes pulse-red {
    0% { background-color: rgba(242, 54, 69, 0.5); box-shadow: inset 0 0 10px rgba(242, 54, 69, 0.6); }
    50% { background-color: rgba(242, 54, 69, 0.2); box-shadow: inset 0 0 5px rgba(242, 54, 69, 0.3); }
    100% { background-color: rgba(242, 54, 69, 0.1); box-shadow: none; }
}

.pulse-green-anim {
    animation: pulse-green 3s ease-out forwards;
}

.pulse-red-anim {
    animation: pulse-red 3s ease-out forwards;
}

/* LTR Mode Overrides */
html[dir="ltr"] body {
    direction: ltr;
}

html[dir="ltr"] .header-right {
    margin-left: 120px;
    margin-right: 0;
}

html[dir="ltr"] .chart-legend {
    margin-right: auto !important;
    margin-left: 20px !important;
}

html[dir="ltr"] .action-list li {
    border-left: 4px solid var(--accent-red);
    border-right: none;
}

html[dir="ltr"] .recent-split .operator-panel {
    border-right: 1px solid var(--border-color);
    border-left: none;
}

/* Popular Times Graph */
.popular-times-section {
    background-color: var(--bg-panel);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 20px;
    margin-bottom: 24px;
}

.pt-days-nav {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.pt-day-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 5px 0;
    position: relative;
    text-transform: uppercase;
}

.pt-day-btn.active {
    color: var(--text-main);
}

.pt-day-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--accent-blue);
    border-radius: 3px 3px 0 0;
}

.pt-info-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pt-chart-container {
    display: flex;
    align-items: flex-end;
    height: 100px;
    gap: 4px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
    position: relative;
    margin-bottom: 25px; /* space for x-axis labels */
}

/* Horizontal guide lines */
.pt-guide-line {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    z-index: 1;
}

.pt-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
    position: relative;
    z-index: 2;
    cursor: pointer;
}

.pt-bar-fill {
    width: 100%;
    max-width: 12px;
    background-color: var(--text-muted);
    border-radius: 4px 4px 0 0;
    transition: height 0.3s ease, background-color 0.2s ease;
    opacity: 0.7;
}

.pt-bar-col:hover .pt-bar-fill {
    opacity: 1;
}

.pt-bar-fill.active-hour {
    background-color: var(--accent-blue);
    opacity: 1;
}

.pt-x-axis-label {
    position: absolute;
    bottom: -22px;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
    white-space: nowrap;
}

/* Average Stay Info */
.pt-avg-stay {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

@keyframes pulse-logo {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* Mobile adjustments for Login Screen */
@media (max-width: 768px) {
    #login-screen.active {
        display: block;
    }
    .login-right {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
    }
    .login-right .bg-img {
        object-fit: cover;
    }
    .login-left {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 10;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: rgba(0, 0, 0, 0.75);
        padding: 20px;
    }
    .login-box {
        margin: auto;
        width: 100%;
        max-width: 400px;
    }
}

/* Role Navigation Buttons */
.nav-role-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    padding: 6px 12px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-role-btn:hover {
    background: rgba(128, 128, 128, 0.2);
}

.nav-role-btn.active {
    background: #b8860b; /* brown-gold */
    color: white;
}

/* Legal Modal Styles */
.legal-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.legal-modal-container {
    background: var(--bg-panel);
    width: 90%;
    max-width: 900px;
    height: 80vh;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.legal-modal-header {
    background: var(--bg-card);
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.legal-modal-header h2 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--text-main);
}

.legal-modal-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.2s;
}

.legal-modal-close-btn:hover {
    color: var(--accent-red);
}

.legal-modal-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.legal-sidebar {
    width: 250px;
    background: var(--bg-card);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

.legal-nav-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 15px 25px;
    text-align: right;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
    border-right: 4px solid transparent;
}

.legal-nav-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.legal-nav-btn.active {
    color: var(--accent-blue);
    border-right-color: var(--accent-blue);
    background: rgba(10, 132, 255, 0.1);
    font-weight: bold;
}

.legal-content-area {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    background: var(--bg-panel);
}

.legal-section {
    display: none;
    animation: fadeIn 0.4s ease;
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1.05rem;
}

.legal-section.active {
    display: block;
}

.legal-section h3 {
    color: var(--text-main);
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.legal-section p {
    margin-bottom: 15px;
}

.legal-section ul {
    margin-bottom: 15px;
    padding-right: 20px;
}

.legal-section li {
    margin-bottom: 8px;
}

@keyframes flashRed {
    0% { background-color: rgba(255, 50, 50, 0.4); }
    100% { background-color: transparent; }
}

.new-row-flash {
    animation: flashRed 3s ease-out forwards;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
    background-color: transparent;
}

::-webkit-scrollbar-track,
::-webkit-scrollbar-track-piece,
::-webkit-scrollbar-corner,
::-webkit-resizer {
    background-color: transparent;
    border: none;
}

::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(150, 150, 150, 0.4);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

:hover::-webkit-scrollbar-thumb {
    background-color: rgba(150, 150, 150, 0.6);
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(150, 150, 150, 0.8) !important;
}

/* Firefox Support */
@-moz-document url-prefix() {
    * {
        scrollbar-width: thin;
        scrollbar-color: rgba(150,150,150,0.4) transparent;
    }
}

.square-btn {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-color) !important;
    width: 65px;
    height: 65px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem !important;
    line-height: 1.2;
    padding: 5px !important;
    transition: all 0.2s ease;
    box-sizing: border-box;
    border-radius: var(--border-radius) !important;
}

.square-btn:hover {
    background: var(--bg-panel) !important;
}

/* Hide mobile-specific elements by default on desktop */
.mobile-only {
    display: none !important;
}

/* ========================================================
   TradingView-Style Mobile Layout (Owner Dashboard)
   ======================================================== */
@media (max-width: 768px) {
    /* General Dashboard Mobile Resets */
    body {
        padding-bottom: 70px !important; /* Space for bottom nav */
    }
    
    .mobile-only {
        display: flex !important;
    }
    
    .top-left-logo {
        content: url("logo_nb.png") !important;
    }
    
    /* Fix header overlaps on mobile */
    #dashboard-screen {
        position: relative;
    }
    #dashboard-screen > img[src*="logo"] {
        position: absolute !important;
        top: 20px !important;
        left: 20px !important;
        height: 40px !important;
    }

    .dashboard-header {
        flex-direction: column;
        padding: 120px 15px 15px 15px !important; /* give space for fixed top elements */
        gap: 15px;
        align-items: center;
        position: relative;
    }

    .header-right {
        position: absolute !important;
        top: 20px !important;
        right: 20px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        width: auto !important;
        margin: 0 !important;
        justify-content: flex-start !important;
        z-index: 99999 !important; /* Fix dropdown overlap */
    }

    .font-controls {
        display: flex !important;
        flex-direction: row !important;
        width: auto !important;
        margin: 0 !important;
        gap: 5px !important;
    }

    .header-center {
        position: relative !important;
        transform: none !important;
        left: 0 !important;
        width: 100%;
    }

    .header-left {
        position: static !important;
        margin: 0 !important;
        width: 100%;
        display: flex !important;
        justify-content: center;
        flex-wrap: wrap;
    }
    #role-nav-buttons {
        display: none !important;
    }
    
    #greeting-container {
        display: none !important;
    }

    .nav-role-btn {
        background: rgba(41, 98, 255, 0.1);
        border: 1px solid var(--border-color);
        color: var(--text-main);
        padding: 8px 16px;
        font-size: 1rem;
        font-weight: bold;
        cursor: pointer;
        border-radius: 8px;
        transition: all 0.2s;
        flex: 1;
        text-align: center;
    }

    .nav-role-btn.active {
        background: #b8860b;
        color: white;
        border-color: #b8860b;
    }
    
    /* Position Clock, Date, Connection Light absolutely within the header */
    .global-clock {
        display: block !important;
        position: absolute !important;
        top: 70px !important;
        left: 20px !important;
        right: auto !important;
        font-size: 1.1rem !important;
        margin: 0 !important;
        z-index: 10;
    }
    .global-date {
        position: absolute !important;
        top: 90px !important;
        left: 20px !important;
        font-size: 1.55rem !important;
        right: auto !important;
        margin: 0 !important;
        z-index: 10;
    }
    #connection-status-icon {
        position: absolute !important;
        top: 25px !important;
        left: 70px !important; /* right of logo */
        margin: 0 !important;
        z-index: 10;
    }

    .copyright-footer {
        width: 100% !important;
        justify-content: center !important;
        padding: 10px;
        margin-bottom: 0 !important;
        text-align: center;
        flex-wrap: wrap;
        z-index: 1000;
    }

    /* Bottom Navigation Bar */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 65px;
        background: var(--bg-card);
        border-top: 1px solid var(--border-color);
        z-index: 10000;
        display: flex;
        justify-content: space-around;
        align-items: center;
        box-shadow: 0 -4px 10px rgba(0,0,0,0.3);
    }
    
    .mobile-nav-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        color: var(--text-muted);
        font-size: 0.75rem;
        font-weight: 600;
        height: 100%;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .mobile-nav-btn.active {
        color: var(--accent-blue);
    }
    
    .mobile-nav-btn svg {
        transition: transform 0.2s;
    }
    
    .mobile-nav-btn.active svg {
        transform: scale(1.15);
        color: var(--accent-blue);
        filter: drop-shadow(0 0 5px rgba(0, 210, 255, 0.5));
    }
    
    /* Increase button/input sizes for touch */
    .adv-search-input {
        padding: 12px;
        font-size: 1rem;
    }
    
    .btn-primary {
        padding: 12px !important;
        font-size: 1.1rem !important;
        width: 100%;
        text-align: center;
    }
    
    body:not(.show-print) .action-buttons-left {
        display: none !important;
    }

    body.show-print .action-buttons-left {
        display: flex !important;
        flex-direction: column;
        width: 100%;
        margin-top: 20px;
        gap: 15px;
    }

    body.show-print .action-buttons-left button {
        width: 100% !important;
        height: 60px !important;
        font-size: 1.2rem !important;
        flex-direction: row;
        gap: 10px;
        border-radius: 8px;
    }

}

/* Hide connection status icon on mobile */
@media (max-width: 768px) {
    #connection-status-icon {
        display: none !important;
    }
    .desktop-only {
        display: none !important;
    }
}

/* =========================================
   MOBILE SPA DROPDOWN MENU & LAYOUT
   ========================================= */
/* Hide the mobile home background image on desktop by default */
.mobile-home-bg {
    display: none !important;
}

/* Combined Stats Styles */
.combined-stat {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 15px 20px !important;
    flex-direction: row !important;
}

.combined-stat .stat-main {
    flex: 1;
    text-align: right;
    display: flex;
    flex-direction: column;
}

.combined-stat .stat-secondary {
    text-align: left;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    min-width: 100px;
}

.combined-stat h3 {
    margin-bottom: 5px !important;
    font-size: 0.85rem !important;
}

.combined-stat .stat-value {
    font-size: 1.5rem !important;
}

.combined-stat .stat-secondary .stat-value {
    font-size: 1.2rem !important;
    color: var(--text-muted);
}

/* Stats Layouts (Mobile vs Desktop) */
.stats-mobile { display: none !important; }

.stats-desktop { display: grid !important; }

/* ================= DESKTOP STYLES ================= */
@media (min-width: 769px) {
}

/* ================= MOBILE STYLES ================= */
@media (max-width: 768px) {
    .global-clock {
            font-size: 1rem;
        }

    #login-screen { flex-direction: column; }
        .stats-grid { grid-template-columns: 1fr; }
        .global-clock { position: static; text-align: center; margin-bottom: 10px; background: transparent; color: var(--text-main); }
        .dashboard-header { flex-direction: column; align-items: stretch; gap: 10px; }
        .header-left, .header-right { justify-content: space-between; }

    .legal-modal-body {
            flex-direction: column;
        }
        .legal-sidebar {
            width: 100%;
            border-left: none;
            border-bottom: 1px solid var(--border-color);
            flex-direction: row;
            overflow-x: auto;
            padding: 0;
        }
        .legal-nav-btn {
            flex: 1;
            text-align: center;
            border-right: none;
            border-bottom: 4px solid transparent;
            white-space: nowrap;
        }
        .legal-nav-btn.active {
            border-right-color: transparent;
            border-bottom-color: var(--accent-blue);
        }
        .legal-content-area {
            padding: 20px;
        }

    /* Default Dashboard background is solid dark gray */
        body {
            background: #181c25 !important;
        }
    
        /* Ensure the screen takes exactly full height to stretch the background */
        body:not(.admin-page):not(.show-stats):not(.show-ai-cost):not(.show-live-calls):not(.show-rules-white):not(.show-rules-black):not(.show-all-calls):not(.show-load-graph):not(.show-print):not(.show-ai-calls):not(.show-recent-calls) #dashboard-screen {
            height: 100vh !important;
            overflow: hidden !important;
        }
    
        body:not(.admin-page):not(.show-stats):not(.show-ai-cost):not(.show-live-calls):not(.show-rules-white):not(.show-rules-black):not(.show-all-calls):not(.show-load-graph):not(.show-print):not(.show-ai-calls):not(.show-recent-calls) .mobile-home-bg {
            display: block !important;
            position: absolute !important;
            top: -20px !important; /* Pull up further to ensure no gap */
            left: 0 !important;
            width: 100% !important;
            height: calc(100% + 20px) !important;
            object-fit: cover !important;
            object-position: center 85% !important; /* Move image up to clear footer and bring logo closer to top */
            margin: 0 !important;
            padding: 0 !important;
            z-index: 0;
        }
        
        body:not(.show-stats):not(.show-ai-cost):not(.show-live-calls):not(.show-rules-white):not(.show-rules-black):not(.show-all-calls):not(.show-load-graph):not(.show-print):not(.show-ai-calls):not(.show-recent-calls) .dashboard-content {
            padding: 0 !important;
            margin: 0 !important;
            position: relative !important;
            flex: 1 !important;
            min-height: 0 !important;
        }

        /* Hide stats-controls when on the mobile home screen to avoid duplications */
        body:not(.admin-page):not(.show-stats):not(.show-ai-cost):not(.show-live-calls):not(.show-rules-white):not(.show-rules-black):not(.show-all-calls):not(.show-load-graph):not(.show-print):not(.show-ai-calls):not(.show-recent-calls) .dashboard-content > .stats-controls {
            display: none !important;
        }
        
        /* Removed dark overlay so the background image is clearly visible */
    
        /* Hide all main sections by default except stats-controls */
        .dashboard-content > .stats-grid,
        .dashboard-content > hr,
        .dashboard-content > .graph-section,
        .dashboard-content > .all-calls-section,
        .dashboard-content > .sub-stats-grid,
        .dashboard-content > .recent-split {
            display: none !important;
        }
        
        /* Hide specific sub-components depending on view */
        #mobile-ai-cost-section > div[style*="display: grid"] > div:nth-child(1), /* Graph */
        #mobile-ai-cost-section > div[style*="display: grid"] > div:nth-child(2), /* List */
        #mobile-rules-section > div[style*="display: grid"] > div:nth-child(1), /* Whitelist */
        #mobile-rules-section > div[style*="display: grid"] > div:nth-child(2) /* Blacklist */ {
            display: none !important;
        }
    
        
        /* Operator Dashboard Mobile Views for .recent-split */
        
        /* hide .recent-split panels by default */
        .dashboard-content > .recent-split > .operator-panel,
        .dashboard-content > .recent-split > .ai-panel {
            display: none !important;
        }
    
        /* .show-recent-calls : show operator-panel */
        body.show-recent-calls .dashboard-content > .recent-split { display: flex !important; margin-top: 0 !important; }
        body.show-recent-calls .dashboard-content > .recent-split > .operator-panel { display: flex !important; flex-direction: column; height: calc(100vh - 120px); border: none !important; }
    
        /* .show-ai-calls : show ai-panel */
        body.show-ai-calls .dashboard-content > .recent-split { display: flex !important; margin-top: 0 !important; }
        body.show-ai-calls .dashboard-content > .recent-split > .ai-panel { display: flex !important; flex-direction: column; height: calc(100vh - 120px); border: none !important; }
        body.show-ai-calls .dashboard-content > .recent-split > .ai-panel > .tab-content { display: none !important; }
        body.show-ai-calls .dashboard-content > .recent-split > .ai-panel > #tab-recent-ai { display: block !important; }
    
        /* .show-rules-black : show ai-panel -> tab-blocked */
        body.show-rules-black .dashboard-content > .recent-split { display: flex !important; margin-top: 0 !important; }
        body.show-rules-black .dashboard-content > .recent-split > .ai-panel { display: flex !important; flex-direction: column; height: calc(100vh - 120px); border: none !important; }
        body.show-rules-black .dashboard-content > .recent-split > .ai-panel > .tab-content { display: none !important; }
        body.show-rules-black .dashboard-content > .recent-split > .ai-panel > #tab-blocked { display: flex !important; }
    
        /* .show-rules-white : show ai-panel -> tab-authorized */
        body.show-rules-white .dashboard-content > .recent-split { display: flex !important; margin-top: 0 !important; }
        body.show-rules-white .dashboard-content > .recent-split > .ai-panel { display: flex !important; flex-direction: column; height: calc(100vh - 120px); border: none !important; }
        body.show-rules-white .dashboard-content > .recent-split > .ai-panel > .tab-content { display: none !important; }
        body.show-rules-white .dashboard-content > .recent-split > .ai-panel > #tab-authorized { display: flex !important; }
        
        /* Hide the tab-buttons in mobile when using the dropdown */
        body.show-ai-calls .dashboard-content > .recent-split > .ai-panel > .tab-buttons,
        body.show-rules-black .dashboard-content > .recent-split > .ai-panel > .tab-buttons,
        body.show-rules-white .dashboard-content > .recent-split > .ai-panel > .tab-buttons {
            display: none !important;
        }
    
        /* Show mobile-view-title in dropdown views */
        body.show-ai-calls .mobile-view-title,
        body.show-rules-black .mobile-view-title,
        body.show-rules-white .mobile-view-title {
            display: block !important;
        }
    /* -----------------------------------------
           VIEW DISPLAY CLASSES
           ----------------------------------------- */
           
        .dashboard-content > .stats-controls {
            display: flex !important;
            flex-direction: column;
            gap: 10px;
        }
    
        body.show-stats .dashboard-content > .stats-grid,
        body.show-stats .dashboard-content > .sub-stats-grid {
            display: grid !important;
        }
        
        body.show-ai-cost .dashboard-content > #mobile-ai-cost-section { display: block !important; }
        body.show-ai-cost #mobile-ai-cost-section > div[style*="display: grid"] { display: flex !important; flex-direction: column; }
        body.show-ai-cost #mobile-ai-cost-section > div[style*="display: grid"] > div:nth-child(1) { display: flex !important; width: 100%; min-height: 350px; }
        
        body.show-live-calls .dashboard-content > #mobile-ai-cost-section { display: block !important; margin-top: 0 !important; }
        body.show-live-calls #mobile-ai-cost-section > .section-header { display: none !important; } /* Hide the title "עלויות וצריכת AI" when viewing just calls */
        body.show-live-calls #mobile-ai-cost-section > div[style*="display: grid"] { display: flex !important; flex-direction: column; height: calc(100vh - 200px) !important; }
        body.show-live-calls #mobile-ai-cost-section > div[style*="display: grid"] > div:nth-child(2) { display: flex !important; flex: 1; border: none; padding: 5px; background: transparent; }
        
        body.show-rules-white .dashboard-content > #mobile-rules-section { display: block !important; margin-top: 0 !important; }
        body.show-rules-white #mobile-rules-section > div[style*="display: grid"] { display: flex !important; flex-direction: column; }
        body.show-rules-white #mobile-rules-section > div[style*="display: grid"] > div:nth-child(2) { display: flex !important; }
        body.show-rules-white #mobile-rules-section > .section-header { display: none !important; }
    
        body.show-rules-black .dashboard-content > #mobile-rules-section { display: block !important; margin-top: 0 !important; }
        body.show-rules-black #mobile-rules-section > div[style*="display: grid"] { display: flex !important; flex-direction: column; }
        body.show-rules-black #mobile-rules-section > div[style*="display: grid"] > div:nth-child(1) { display: flex !important; }
        body.show-rules-black #mobile-rules-section > .section-header { display: none !important; }
    
        body.show-all-calls .dashboard-content > .all-calls-section { display: block !important; margin-top: 0 !important; }
        
        body.show-load-graph .dashboard-content > #mobile-load-graph-section { display: block !important; margin-top: 0 !important; }
    
        body.show-print .dashboard-content > .stats-controls {
            display: flex !important;
            flex-direction: column;
            align-items: stretch;
        }
    
        /* -----------------------------------------
           DROPDOWN MENU UI (TradingView Style)
           ----------------------------------------- */
           
        .mobile-dropdown-container {
            position: relative;
            width: calc(100% + 30px);
            margin-top: 0 !important;
            margin-left: -15px !important;
            margin-right: -15px !important;
            margin-bottom: -15px !important;
            padding: 0 !important;
            z-index: 1000;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .mobile-dropdown-btn {
            background: #181c25 !important;
            border: none !important;
            border-radius: 0 !important;
            border-bottom: 1px solid rgba(255,255,255,0.05) !important;
            padding: 15px 20px;
            color: #fff;
            font-size: 1.1rem;
            font-weight: 600;
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            cursor: pointer;
            backdrop-filter: blur(10px);
            transition: all 0.2s ease;
        }
        
        .mobile-dropdown-btn:active {
            background: rgba(42, 46, 57, 1);
        }
        
        .mobile-dropdown-btn svg {
            transition: transform 0.2s ease;
        }
        
        .mobile-dropdown-container.open .mobile-dropdown-btn svg {
            transform: rotate(180deg);
        }
        
        .mobile-dropdown-menu {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            margin-top: 8px;
            background: #1e222d;
            border: 1px solid #2a2e39;
            border-radius: 8px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.5);
            display: none;
            flex-direction: column;
            overflow-y: auto;
            overflow-x: hidden;
            max-height: 55vh;
        }
        
        .mobile-dropdown-container.open .mobile-dropdown-menu {
            display: flex;
        }
        
        .mobile-dropdown-item {
            padding: 15px 20px;
            display: flex;
            align-items: center;
            gap: 15px;
            color: #d1d4dc;
            text-decoration: none;
            border-bottom: 1px solid #2a2e39;
            cursor: pointer;
            transition: background 0.2s ease;
        }
        
        .mobile-dropdown-item:last-child {
            border-bottom: none;
        }
        
        .mobile-dropdown-item:active {
            background: #2a2e39;
        }
        
        .mobile-dropdown-item svg {
            color: #787b86;
            width: 20px;
            height: 20px;
        }
        
        .mobile-dropdown-item-content {
            display: flex;
            flex-direction: column;
        }
        
        .mobile-dropdown-item-title {
            font-size: 1rem;
            font-weight: 500;
            color: #fff;
        }
        
        .mobile-dropdown-item-desc {
            font-size: 0.8rem;
            color: #787b86;
            margin-top: 2px;
        }

    .stats-mobile { display: flex !important; flex-direction: column; gap: 16px; margin-bottom: 20px; }
        body.show-stats .dashboard-content > .stats-grid.stats-mobile,
        body.show-ai-calls .dashboard-content > .stats-grid.stats-mobile,
        body.show-recent-calls .dashboard-content > .stats-grid.stats-mobile { 
            display: flex !important; 
        }
        body.show-stats .dashboard-content > .stats-grid.stats-desktop { display: none !important; }
    
        /* Hide irrelevant stats on mobile tabs */
        body.show-ai-calls .dashboard-content > .stats-grid.stats-mobile > .operator-stat { display: none !important; }
        body.show-recent-calls .dashboard-content > .stats-grid.stats-mobile > .ai-stat { display: none !important; }

    #owner-timeframe-tabs, #operator-timeframe-tabs {
            display: none !important;
        }

    

}

/* Mobile List Redesign (image_7.png style) */
.call-item-container {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: right;
    background: var(--bg-card, transparent);
    transition: background 0.2s;
    cursor: default;
    margin-bottom: 10px;
}
#recent-op-list .call-item-container {
    cursor: pointer;
}
.call-item-title {
    font-weight: bold; 
    font-size: 1rem; 
    color: var(--text-color); 
    margin-bottom: 4px;
}
.call-item-subtitle {
    font-size: 0.8rem; 
    color: var(--color-muted-text) !important; 
    margin-bottom: 4px;
}
.call-item-reason {
    font-weight: normal; 
    font-size: 0.81em; 
    margin-top: 5px;
}

@media screen and (max-width: 1024px) {
    /* Moked and AI Lists (Revert compressed layout to multi-line card) */
    .call-item-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        width: 100% !important;
        padding: 12px !important;
        gap: 6px !important;
    }
    .call-item-title {
        margin-bottom: 4px !important;
        font-size: 1.1rem !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }
    .call-item-subtitle {
        margin-bottom: 4px !important;
        font-size: 0.85rem !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        text-align: right !important;
    }
    .call-item-reason {
        margin-top: 4px !important;
        font-size: 0.9rem !important;
        text-align: right !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }
    .call-item-reason br {
        display: block !important;
    }
    .call-item-reason > div {
        display: block !important;
        margin-bottom: 6px !important;
        margin-left: 0 !important;
    }

    /* Hide Desktop Table and Show Mobile List */
    .desktop-calls-table {
        display: none !important;
    }
    #mobile-calls-list {
        display: block !important;
        margin: 0;
        padding: 0;
        list-style-type: none;
    }
    
    #calls-table-body td {
        border: none !important;
        padding: 0 !important;
        text-align: right !important;
        font-size: 0.9rem;
    }

    /* 4: Plate Display -> title */
    #calls-table-body td:nth-child(4) {
        order: 1;
        font-weight: bold;
        font-size: 1.1rem;
        color: var(--text-color);
        margin-bottom: 2px;
    }
    
    /* 5: Driver */
    #calls-table-body td:nth-child(5) {
        order: 2;
        font-size: 0.9rem;
        color: var(--color-muted-text);
        margin-bottom: 4px;
    }
    
    /* 1: Date/Time */
    #calls-table-body td:nth-child(1) {
        order: 3;
        font-size: 0.85rem;
        color: var(--color-muted-text);
    }
    
    /* 2: Parking */
    #calls-table-body td:nth-child(2) {
        order: 4;
        font-size: 0.85rem;
        color: var(--color-muted-text);
        margin-bottom: 6px;
    }
    
    /* 7: Request */
    #calls-table-body td:nth-child(7) {
        order: 5;
        font-size: 0.9rem;
        margin-top: 2px;
    }
    #calls-table-body td:nth-child(7)::before {
        content: "בקשה: ";
        font-weight: bold;
        color: var(--color-req);
    }
    
    /* 8: Actions */
    #calls-table-body td:nth-child(8) {
        order: 6;
        font-size: 0.9rem;
        margin-top: 2px;
    }
    #calls-table-body td:nth-child(8)::before {
        content: "פעולה: ";
        font-weight: bold;
        color: var(--color-act);
    }
    
    /* 9: Status */
    #calls-table-body td:nth-child(9) {
        order: 7;
        margin-top: 6px;
    }
    
    /* Hide Lane and Duration */
    #calls-table-body td:nth-child(3),
    #calls-table-body td:nth-child(6) {
        display: none !important;
    }
}
