/* ============================================================
   HAJISIM CRM - Main Stylesheet
   Professional admin panel with left sidebar
   ============================================================ */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #F5A623;
    --primary-dark: #1d4ed8;
    --sidebar-bg: #1e293b;
    --sidebar-hover: #334155;
    --sidebar-active: #F5A623;
    --topbar-bg: #0f172a;
    --content-bg: #0f172a;
    --card-bg: #1e293b;
    --border: #334155;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --success: #22c55e;
    --warning: #2563eb;
    --danger: #ef4444;
    --info: #3b82f6;
    --sidebar-width: 260px;
    --topbar-height: 60px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: var(--content-bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Layout */
.crm-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
}

.sidebar-logo {
    width: 80px;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
}

.nav-section {
    color: var(--text-dim);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 24px 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    color: var(--text-muted);
    transition: all 0.2s;
    border-left: 3px solid transparent;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--text);
    background: var(--sidebar-hover);
    text-decoration: none;
}

.nav-link.active {
    color: var(--text);
    background: rgba(37, 99, 235, 0.1);
    border-left-color: var(--primary);
}

.nav-link i {
    width: 20px;
    text-align: center;
    font-size: 15px;
}

.sidebar-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.sidebar-version {
    color: var(--text-dim);
    font-size: 11px;
}

/* Main Wrapper */
.main-wrapper {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Topbar */
.topbar {
    height: var(--topbar-height);
    background: var(--sidebar-bg);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}

.topbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
}

.form-control{
    padding: 7px;
}

.topbar-user i { font-size: 20px; color: #F5A623; }

.role-badge {
    background: var(--primary);
    color: white;
    padding: 3px 5px!important;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}
.form-select {
 
  -webkit-appearance: none!important;
  -moz-appearance: none!important;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23ffffff' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>")!important;
  
  background-repeat: no-repeat!important;
  background-position: right 10px center!important;
  background-size: 16px!important;
  padding-right: 35px!important; /* space for arrow */
}

.btn-logout {
    color: var(--text-muted);
    font-size: 18px;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-logout:hover {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
    text-decoration: none;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 20px;
    cursor: pointer;
    margin-right: 16px;
}

/* Content */
.content {
    flex: 1;
    padding: 24px;
}

/* Footer */
.main-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-dim);
    font-size: 12px;
}

/* Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-body {
    padding: 20px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.stat-info h3 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-info p {
    color: var(--text-muted);
    font-size: 13px;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table thead th {
    background: rgba(15, 23, 42, 0.5);
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.data-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
    vertical-align: middle;
}

.data-table tbody tr:hover {
    background: rgba(37, 99, 235, 0.05);
}

.data-table code {
    background: rgba(15, 23, 42, 0.5);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: #38bdf8;
}

.actions-cell {
    display: flex;
    gap: 6px;
    white-space: nowrap;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
    white-space: nowrap;
}

/* Role Tag */
.role-tag {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}
.role-tag.role-agent { background: #F5A62320; color: #3b82f6; }
.role-tag.role-supervisor { background: #8b5cf620; color: #a78bfa; }
.role-tag.role-admin { background: #f59e0b20; color: #f59e0b; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
    color: white;
}
.btn:hover { text-decoration: none; opacity: 0.9; }
.btn-sm { padding: 6px 6px; font-size: 12px; }
.btn-primary { background: var(--primary); }
.btn-primary:hover { 
    background: linear-gradient(rgb(122 90 0) 0%, rgb(255 181 0) 100%) !important;
    color: #ffffff;
    transition: 0.3s;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2), 0 0 25px rgba(0, 0, 0, 0.4) !important;
    filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.6)) !important;
}
.btn-success { background: var(--success); }
.btn-warning { background: var(--warning); color: #1e293b; }
.btn-danger { padding: 5px 5px!important; background: var(--danger); }
.btn-info { background: var(--info); }
.btn-secondary { background: var(--text-dim); }

/* Forms */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

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

.form-group label {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
}

.required { color: var(--danger); }

.form-input, .form-select {
    padding: 10px 14px;
    background: var(--content-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 14px;
    transition: border-color 0.2s;
    width: 100%;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input::placeholder { color: var(--text-dim); }

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='https://www.iconpacks.net/icons/2/free-arrow-down-icon-3101-thumb.png' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-select option {
    background: var(--sidebar-bg);
    color: var(--text);
}

.form-hint {
    color: var(--text-dim);
    font-size: 12px;
    margin-top: 4px;
}

.form-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 12px;
    padding-top: 8px;
}

textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

/* Filter Form */
.filter-form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 180px;
}

.filter-group .form-input,
.filter-group .form-select {
    width: 100%;
}

/* Info Bar */
.info-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 14px 16px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.info-bar strong { color: var(--text); }

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.alert-success {
    background: #14532d;
    color: #86efac;
    border: 1px solid #166534;
}

.alert-error {
    background: #7f1d1d;
    color: #fca5a5;
    border: 1px solid #991b1b;
}

.alert-info {
    background: #1e3a5f;
    color: #93c5fd;
    border: 1px solid #1e40af;
}

.alert-close {
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0 4px;
    opacity: 0.7;
}
.alert-close:hover { opacity: 1; }

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.page-link {
    padding: 6px 12px;
    border-radius: 6px;
    background: var(--sidebar-bg);
    color: var(--text-muted);
    border: 1px solid var(--border);
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}

.page-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    text-decoration: none;
}

.page-link.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.page-dots {
    color: var(--text-dim);
    padding: 0 4px;
}

/* Text utilities */
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }

/* Profile Grid */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Bulk Upload Info */
.bulk-info {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
}
.bulk-info h4 {
    margin-bottom: 8px;
    color: var(--text);
}
.bulk-info p {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
    .profile-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.mobile-open {
        transform: translateX(0);
        box-shadow: 4px 0 20px rgba(0,0,0,0.5);
    }
    .main-wrapper {
        margin-left: 0;
    }
    .mobile-toggle {
        display: block;
    }
    .sidebar-toggle {
        display: block;
    }
    .topbar-title {
        font-size: 15px;
    }
    .topbar-user span {
        display: none;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-group.full-width {
        grid-column: 1;
    }
    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-group {
        min-width: auto;
    }
    .content {
        padding: 16px;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .stat-card {
        padding: 14px;
    }
    .stat-info h3 {
        font-size: 22px;
    }
    .profile-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Sidebar collapsed state */
body.sidebar-collapsed .sidebar {
    width: 70px;
}
body.sidebar-collapsed .sidebar .nav-link span,
body.sidebar-collapsed .sidebar .nav-section,
body.sidebar-collapsed .sidebar .sidebar-logo,
body.sidebar-collapsed .sidebar .sidebar-version {
    display: none;
}
body.sidebar-collapsed .sidebar .nav-link {
    justify-content: center;
    padding: 12px 0;
}
body.sidebar-collapsed .sidebar .nav-link i {
    font-size: 18px;
}
body.sidebar-collapsed .main-wrapper {
    margin-left: 70px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--content-bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* File input */
input[type="file"] {
    padding: 8px;
    background: var(--content-bg);
    border: 1px dashed var(--border);
    border-radius: 6px;
    color: var(--text);
    cursor: pointer;
}
input[type="file"]::-webkit-file-upload-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 8px;
}



/* ============================================================
   KYC Upload & Management Styles
   ============================================================ */

/* Form Sections */
.form-section {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color, #e5e7eb30);
}
.form-section:last-of-type {
    border-bottom: none;
}
.form-section h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary, #f1f5f9);
    margin-bottom: 16px;
}
.form-section h4 i {
    margin-right: 8px;
    color: var(--primary-color, #F5A623);
}

/* Form Help Text */
.form-help {
    font-size: 0.85em;
    color: var(--text-muted, #94a3b8);
    margin-top: 4px;
}

/* Form Textarea */
.form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color, #334155);
    border-radius: 8px;
    background: var(--card-bg, #1e293b);
    color: var(--text-primary, #f1f5f9);
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    transition: border-color 0.2s;
}
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color, #F5A623);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color, #e5e7eb30);
}

/* Large Button Variant */
.btn-lg {
    padding: 12px 28px;
    font-size: 1.05rem;
}

/* Arrival Date Highlighted Field */
.kyc-arrival-date-group {
    position: relative;
}
.kyc-arrival-label {
    color: #ef4444 !important;
    font-weight: 700 !important;
}
.kyc-arrival-label i {
    color: #ef4444 !important;
    margin-right: 6px;
}
.kyc-arrival-input {
    border: 2px solid #ef4444 !important;
    background: rgba(239, 68, 68, 0.05) !important;
}
.kyc-arrival-input:focus {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

/* File Upload Wrapper */
.file-upload-wrapper {
    position: relative;
}
.file-upload-wrapper .form-file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}
.file-upload-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: var(--card-bg, #1e293b);
    border: 2px dashed var(--border-color, #475569);
    border-radius: 8px;
    color: var(--text-muted, #94a3b8);
    cursor: pointer;
    transition: all 0.2s;
}
.file-upload-label:hover {
    border-color: var(--primary-color, #F5A623);
    background: rgba(37, 99, 235, 0.05);
}
.file-upload-label i {
    font-size: 1.3em;
    color: var(--primary-color, #F5A623);
}
.file-upload-text {
    font-size: 0.9em;
}

/* File Preview */
.file-preview {
    margin-top: 8px;
}
.file-preview-img {
    max-width: 200px;
    max-height: 150px;
    border-radius: 6px;
    border: 1px solid var(--border-color, #334155);
}

/* Required indicator */
.required {
    color: #ef4444;
    font-weight: 700;
}

/* Stats Grid 4 columns */
.stats-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1024px) {
    .stats-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .stats-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Button Group */
.btn-group {
    display: flex;
    gap: 6px;
    align-items: center;
}

/* Extra Small Button */
.btn-xs {
    padding: 4px 10px;
    font-size: 0.8rem;
    border-radius: 4px;
}
.btn-info {
    background: #0ea5e9;
    color: #fff;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 6px;
    transition: background 0.2s;
}
.btn-info:hover {
    background: #0284c7;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-content {
    background: var(--sidebar-bg, #0f172a);
    border: 1px solid var(--border-color, #334155);
    border-radius: 12px;
    width: 100%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color, #334155);
}
.modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary, #f1f5f9);
}
.modal-close {
    background: none;
    border: none;
    color: var(--text-muted, #94a3b8);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}
.modal-close:hover {
    color: #ef4444;
}
.modal-body {
    padding: 24px;
}

/* KYC Detail Grid */
.kyc-detail-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.kyc-detail-section h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color, #F5A623);
    margin-bottom: 10px;
}
.kyc-detail-section h4 i {
    margin-right: 6px;
}
.detail-table {
    width: 100%;
}
.detail-table td {
    padding: 6px 12px 6px 0;
    color: var(--text-primary, #f1f5f9);
    font-size: 0.93em;
}
.detail-table td:first-child {
    width: 140px;
    color: var(--text-muted, #94a3b8);
}

/* Document Links in Modal */
.doc-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Status Badge in Modal */
.status-badge-modal {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
}
.badge-warning {
    background: #f59e0b20;
    color: #f59e0b;
}
.badge-success {
    background: #22c55e20;
    color: #22c55e;
}
.badge-danger {
    background: #ef444420;
    color: #ef4444;
}

/* Admin Comment */
.admin-comment {
    background: rgba(239, 68, 68, 0.1);
    border-left: 3px solid #ef4444;
    padding: 10px 14px;
    border-radius: 0 6px 6px 0;
    color: var(--text-primary, #f1f5f9);
    font-style: italic;
}

/* Loading spinner */
.loading {
    text-align: center;
    padding: 30px;
    color: var(--text-muted, #94a3b8);
}


/* ============================================================
   Phase 3: KYC Review, SIM Activation, History Pages
   ============================================================ */

/* Filter Grid */
.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
.filter-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #a0aec0;
}

/* Tab Navigation */
.tab-nav {
    display: flex;
    border-bottom: 2px solid #ffffff10;
}
.tab-link {
    padding: 14px 24px;
    text-decoration: none;
    color: #a0aec0;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}
.tab-link:hover {
    color: #f59e0b;
    background: #f59e0b10;
}
.tab-link.active {
    color: #f59e0b;
    border-bottom-color: #f59e0b;
}
.tab-link i {
    margin-right: 6px;
}

/* Arrival Date Badge */
.arrival-date-badge {
    display: inline-block;
    background: #f59e0b20;
    color: #f59e0b;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #f59e0b40;
}

/* Activation Row Coloring */
.activation-row-active { background: #22c55e08 !important; }
.activation-row-failed { background: #ef444408 !important; }
.activation-row-pending { }

/* Bulk Actions */
.bulk-actions label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #a0aec0;
    cursor: pointer;
}

/* Text helpers */
.text-danger { color: #ef4444 !important; }
.text-center { text-align: center; }
.text-muted { color: #6b7280 !important; }

/* Stat card mini for dashboard sub-stats */
.stat-card-mini {
    padding: 12px !important;
    text-align: center;
}
.stat-card-mini .stat-info h3 {
    font-size: 28px;
}
.stat-card-mini .stat-info p {
    font-size: 11px;
}

/* Card header with flex (for button on right side) */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Test section */
.test-section h4 {
    margin-bottom: 4px;
}
.test-section p {
    margin-bottom: 8px;
    font-size: 13px;
}

/* Button variants */
.btn-warning {
    background: #f59e0b;
    color: #000;
}
.btn-warning:hover {
    background: #d97706;
}

/* Doc link items */
.doc-link-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 8px;
    background: #ffffff05;
    border-radius: 6px;
}

/* Responsive for 2-column dashboard grid */
@media (max-width: 768px) {
    .filter-grid {
        grid-template-columns: 1fr 1fr;
    }
    div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .filter-grid {
        grid-template-columns: 1fr;
    }
    .tab-link {
        padding: 10px 14px;
        font-size: 13px;
    }
}
