/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scrollbar-gutter: stable; scrollbar-color: #FF8C00 #f5f7fa; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f5f7fa; }
::-webkit-scrollbar-thumb { background: #FF8C00; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #E07B00; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f5f7fa; color: #1a1a1a; min-height: 100vh; display: flex;
}
input, select, textarea, option {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px; color: #6b7280;
}
input[type="date"], input[type="datetime-local"], input[type="time"] {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px !important; color: #6b7280 !important;
}
input[type="date"]::-webkit-datetime-edit,
input[type="date"]::-webkit-datetime-edit-fields-wrapper,
input[type="date"]::-webkit-datetime-edit-text,
input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-year-field,
input[type="datetime-local"]::-webkit-datetime-edit,
input[type="datetime-local"]::-webkit-datetime-edit-fields-wrapper,
input[type="time"]::-webkit-datetime-edit {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px; color: #6b7280;
}

/* Sidebar */
.sidebar {
    width: 240px; background: linear-gradient(180deg, #1e100a 0%, #120804 100%);
    color: #fff; min-height: 100vh; padding: 28px 0; position: fixed; left: 0; top: 0; bottom: 0;
    overflow-y: auto; display: flex; flex-direction: column; z-index: 50;
    opacity: 0;
    border-right: 1px solid rgba(255,255,255,0.04);
}
@media (max-width: 1024px) {
    .sidebar { transform: translateX(-100%); }
}
.sidebar-logo { padding: 0 24px; margin-bottom: 16px; text-align: center; }
.sidebar-logo img { width: 150px; height: auto; position: relative; left: -10px; }
.sidebar-plan-badge { text-align: center; margin-bottom: 30px; }
.sidebar-nav { padding: 0 12px; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.sidebar-nav a {
    display: flex; align-items: center; gap: 12px; padding: 11px 16px; color: #a08978;
    text-decoration: none; font-size: 13.5px; font-weight: 500; transition: all 0.2s;
    border-radius: 10px; position: relative;
}
.sidebar-nav a .nav-icon { width: 20px; height: 20px; min-width: 20px; min-height: 20px; flex-shrink: 0; opacity: 0.55; transition: opacity 0.2s; }
.sidebar-nav a:hover { color: #d1d5db; background: rgba(255,255,255,0.05); }
.sidebar-nav a:hover .nav-icon { opacity: 0.8; }
.sidebar-nav a.active {
    color: #fff; background: linear-gradient(135deg, rgba(255,140,0,0.18) 0%, rgba(255,100,0,0.08) 100%);
    box-shadow: 0 0 0 1px rgba(255,140,0,0.15);
}
.sidebar-nav a.active .nav-icon { opacity: 1; }
.sidebar-nav a.active::before {
    content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 3px; height: 20px; background: #FF8C00; border-radius: 0 3px 3px 0;
}
.sidebar-divider { height: 1px; background: rgba(255,255,255,0.06); margin: 8px 16px; }
.sidebar-section-label { padding: 16px 16px 8px; font-size: 10px; font-weight: 600; color: #4b5069; text-transform: uppercase; letter-spacing: 1.2px; }
.sidebar-user { padding: 16px 16px; border-top: 1px solid rgba(255,255,255,0.06); margin: 0 8px; }
.sidebar-user .user-name { font-size: 13px; font-weight: 500; color: #fff; }
.sidebar-user .user-company { font-size: 12px; color: #6b7280; margin-top: 2px; }
.sidebar-user .logout-btn { font-size: 12px; color: #ef4444; background: none; border: none; cursor: pointer; margin-top: 6px; font-family: inherit; }
/* data-perm visibility controlled by applyNavPermissions() in JS */

/* Header user */
.header-user {
    display: flex; align-items: center; gap: 12px;
    position: absolute; top: 24px; right: 32px;
}
.header-user-avatar {
    width: 34px; height: 34px; border-radius: 50%; background: #FF8C00;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 600; color: #fff;
}
.sidebar-plan-badge .header-plan-badge {
    display: inline-block; font-size: 9px !important; font-weight: 700;
    letter-spacing: 0.6px !important; text-transform: uppercase;
    padding: 4px 10px !important; border-radius: 999px;
}
.header-plan-badge.plan-name-gold {
    background: linear-gradient(90deg, #C9A24E 0%, #E8D48B 25%, #F5EAB8 50%, #E8D48B 75%, #C9A24E 100%);
    color: #5C3D0E; border: 1px solid rgba(170,119,28,0.3);
    box-shadow: 0 1px 4px rgba(179,135,40,0.15);
}
.header-plan-badge.plan-name-silver {
    background: linear-gradient(90deg, #8E8E8E 0%, #C8C8C8 25%, #E8E8E8 50%, #C8C8C8 75%, #8E8E8E 100%);
    color: #3A3A3A; border: 1px solid rgba(120,120,120,0.3);
    box-shadow: 0 1px 4px rgba(100,100,100,0.15);
}
.header-plan-badge.plan-name-bronze {
    background: linear-gradient(90deg, #A0714F 0%, #D4A87C 25%, #E8C9A8 50%, #D4A87C 75%, #A0714F 100%);
    color: #5C3518; border: 1px solid rgba(140,90,50,0.3);
    box-shadow: 0 1px 4px rgba(140,90,50,0.15);
}
.header-user-info { text-align: left; }
.header-user-name { font-size: 13px; font-weight: 600; color: #1a1a1a; }
.header-user-company { font-size: 12px; color: #6b7280; margin-top: 1px; }
.header-logout {
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%; background: #fff;
    border: 1px solid #e5e7eb; cursor: pointer; color: #6b7280;
    transition: all 0.2s;
}
.header-logout:hover { color: #ef4444; border-color: #fecaca; background: #fef2f2; }

/* Main layout */
.main { margin-left: 240px; flex: 1; padding: 82px 32px 24px; position: relative; opacity: 0; }
.main.page-ready { opacity: 1; transition: opacity 0.15s ease-out; }
.sidebar.page-ready { opacity: 1; transition: opacity 0.15s ease-out; }
.sidebar-toggle, .mobile-logo, .mobile-notif-bell, .mobile-header-bg { opacity: 0; pointer-events: none; }
body.page-ready .sidebar-toggle,
body.page-ready .mobile-logo,
body.page-ready .mobile-notif-bell,
body.page-ready .mobile-header-bg { opacity: 1; pointer-events: auto; transition: opacity 0.15s ease-out; }
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.page-header h1 { font-size: 22px; font-weight: 700; }

/* Back button */
.header-back-btn {
    display: none; align-items: center; gap: 6px; padding: 10px 14px;
    background: #fff; border: 1px solid #d1d5db; border-radius: 8px; cursor: pointer;
    font-size: 13px; font-weight: 500; font-family: inherit; color: #374151;
    position: absolute; top: 24px; left: 32px; transition: all 0.2s; z-index: 5;
    text-decoration: none;
}
.header-back-btn:hover { border-color: #9ca3af; background: #f9fafb; }
.header-back-btn.visible { display: inline-flex; }

/* Forms */
.form-group { margin-bottom: 14px; }
.form-group label { font-size: 13px; font-weight: 500; color: #374151; margin-bottom: 7px; }
.form-group label .req { color: #ef4444; font-weight: 600; }
.form-group input.input-error, .form-group select.input-error, .form-group textarea.input-error { border-color: #ef4444; }
.form-group input.input-error:focus, .form-group select.input-error:focus, .form-group textarea.input-error:focus { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.1); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px;
    font-size: 13px; color: #6b7280; font-family: inherit; outline: none; transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: #FF8C00; }
.form-group textarea { resize: vertical; min-height: 60px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Phone input */
.phone-input-wrap { display: flex; align-items: center; border: 1px solid #d1d5db; border-radius: 8px; background: white; overflow: hidden; transition: border-color 0.2s; }
.phone-input-wrap:focus-within { border-color: #FF8C00; }
.phone-prefix { padding: 9px 0 9px 12px; font-size: 14px; font-weight: 500; color: #1a1a1a; white-space: nowrap; -webkit-user-select: none; user-select: none; pointer-events: none; }
.phone-input-wrap input { border: none !important; background: transparent !important; box-shadow: none !important; padding-left: 6px !important; }
.phone-input-wrap input:focus { box-shadow: none !important; }

/* Password toggle */
.password-wrapper { position: relative; }
.password-wrapper input { padding-right: 42px; }
.password-toggle {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer; padding: 0;
    display: flex; align-items: center; color: #9ca3af; transition: color 0.2s;
}
.password-toggle:hover { color: #374151; }
.password-toggle svg { width: 18px; height: 18px; }

/* Tables */
table { width: 100%; border-collapse: collapse; table-layout: auto; }
th { padding: 10px 16px; text-align: left; font-size: 11px; font-weight: 600; color: #6b7280; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid #e5e7eb; }
td { padding: 10px 16px; font-size: 13px; border-bottom: 1px solid #f3f4f6; }
tr.clickable-row { cursor: pointer; transition: background 0.15s; }
tr.clickable-row:hover { background: #f9fafb; }

/* Buttons */
.btn-primary {
    padding: 10px 18px; background: #FF8C00; color: #fff; border: none; border-radius: 8px;
    font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer; transition: background 0.2s;
}
.btn-primary:hover { background: #E07B00; }
.btn-primary:disabled { background: #FFB84D; cursor: not-allowed; }
.btn-tab {
    padding: 10px 18px; border: 1.5px solid #d1d5db; border-radius: 8px; font-size: 13px; font-weight: 600;
    font-family: inherit; cursor: pointer; background: transparent; color: #6b7280; transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn-tab:hover { color: #374151; background: #f9fafb; }
.btn-cancel {
    padding: 10px 18px; background: #fff; color: #374151; border: 1px solid #d1d5db;
    border-radius: 8px; font-size: 13px; font-weight: 500; cursor: pointer; font-family: inherit;
}
.btn-cancel:hover { background: #f9fafb; }

/* Modal */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4); z-index: 1000; align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
    background: #fff; border-radius: 12px; padding: 28px; width: 100%;
    max-width: 560px; max-height: 90vh; overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.modal h3 { font-size: 18px; font-weight: 600; margin-bottom: 16px; }
.modal-close { background: none; border: none; font-size: 20px; cursor: pointer; color: #9ca3af; padding: 4px 8px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

/* Status badges */
.status-badge { display: inline-block; padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.status-pending { background: #fef3c7; color: #b45309; }
.status-confirmed { background: #dbeafe; color: #2563eb; }
.status-picked { background: #e0e7ff; color: #4338ca; }
.status-transit { background: #ede9fe; color: #7c3aed; }
.status-delivered { background: #d1fae5; color: #059669; }
.status-cancelled { background: #fee2e2; color: #dc2626; }
.status-return { background: #fce7f3; color: #db2777; }
.status-returned { background: #f3f4f6; color: #6b7280; }
.status-deleted { background: #fef2f2; color: #991b1b; }

/* Toast notifications */
.inline-msg { display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 8px; font-size: 13px; font-weight: 500; position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-10px); z-index: 100000; opacity: 0; transition: opacity 0.25s, transform 0.25s; box-shadow: 0 4px 12px rgba(0,0,0,0.15); max-width: 500px; }
.inline-msg-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.inline-msg-icon { font-weight: 700; font-size: 15px; line-height: 1; }
.inline-msg-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.inline-msg-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.inline-msg-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* Input wrap + clear button */
.input-wrap {
    position: relative;
    width: 100%;
    padding: 0;
}
.input-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: none;
    background: #d1d5db;
    color: #fff;
    font-size: 11px;
    line-height: 16px;
    text-align: center;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s;
    z-index: 2;
}
.input-clear:hover { background: #9ca3af; }
textarea ~ .input-clear {
    top: 10px;
    transform: none;
}

/* Latin-only hint */
.latin-hint {
    position: absolute;
    left: 0; right: 0;
    bottom: -28px;
    font-size: 12px;
    color: #ef4444;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 4px 10px;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
    z-index: 10;
    white-space: nowrap;
}
.latin-hint.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Table wrap */
.table-wrap { background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); overflow: hidden; }

/* Empty states */
.empty-state { text-align: center; padding: 60px 20px; color: #9ca3af; font-size: 14px; display: none; }
.empty-msg { padding: 30px; text-align: center; color: #9ca3af; font-size: 13px; display: none; }

/* Utility */
.hidden { display: none !important; }
.show-mobile { display: none !important; }
@media (max-width: 600px) {
    .hide-mobile { display: none !important; }
    .show-mobile { display: inline !important; }
    table { table-layout: fixed; }
    th, td { padding: 8px 4px; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
    th:first-child, td:first-child { padding-left: 7px; }
    th:nth-child(4), td:nth-child(4) { padding-left: 6px; }
    td strong { font-size: 11px; }
    .status-badge { font-size: 10px; padding: 2px 4px; }
}

/* Google Places */
.pac-container { z-index: 10000 !important; }

/* Map toggle */
.btn-map-toggle { flex-shrink: 0; height: 38px; padding: 0 12px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; font-size: 13px; cursor: pointer; display: flex; align-items: center; gap: 6px; white-space: nowrap; transition: border-color 0.2s, background 0.2s; color: #374151; }
.btn-map-toggle:hover { border-color: #FF8C00; background: #FFF7ED; }
.btn-map-toggle.active { border-color: #FF8C00; background: #FF8C00; color: #fff; }

/* Progress bar */
.progress { height: 6px; background: #e5e7eb; border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: #FF8C00; border-radius: 3px; transition: width 0.5s; }
.progress-fill.warning { background: #f59e0b; }
.progress-fill.danger { background: #ef4444; }

/* Filters (used in history, my-orders) */
.filters { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; align-items: flex-end; }
.filter-group { display: flex; flex-direction: column; gap: 4px; }
.filter-group label { font-size: 11px; font-weight: 600; color: #6b7280; text-transform: uppercase; letter-spacing: 0.5px; }
.filter-group input, .filter-group select {
    padding: 7px 10px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 13px;
    color: #6b7280; font-family: inherit; outline: none; transition: border-color 0.2s;
}
.filter-group input:focus, .filter-group select:focus { border-color: #FF8C00; }
.btn-filter {
    padding: 10px 16px; background: #FF8C00; color: #fff; border: none; border-radius: 6px;
    font-size: 13px; font-weight: 500; cursor: pointer; font-family: inherit; transition: background 0.2s;
}
.btn-filter:hover { background: #E07B00; }
.btn-reset { padding: 10px 16px; background: #fff; color: #6b7280; border: 1px solid #d1d5db; border-radius: 6px; font-size: 13px; cursor: pointer; font-family: inherit; }
.btn-export { padding: 10px 16px; background: #fff; color: #374151; border: 1px solid #d1d5db; border-radius: 6px; font-size: 13px; font-weight: 500; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; gap: 6px; transition: all 0.2s; }
.btn-export:hover { border-color: #FF8C00; color: #FF8C00; }
.btn-export:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-export svg { width: 16px; height: 16px; }

/* Detail grid (used in history, my-orders modals) */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.detail-label { font-size: 11px; font-weight: 600; color: #6b7280; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.detail-value { font-size: 14px; font-weight: 500; }
.detail-section { margin-top: 20px; padding-top: 16px; border-top: 1px solid #f3f4f6; }
.detail-section h4 { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.tag-list { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: 12px; font-weight: 500; background: #FFF7ED; color: #E07B00; }
.detail-notes { font-size: 13px; color: #6b7280; }

/* Skeleton loading */
.skeleton { background: #e5e7eb; border-radius: 6px; position: relative; overflow: hidden; }
.skeleton::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent); animation: skeleton-wave 1.5s infinite; }
@keyframes skeleton-wave { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-text-sm { height: 11px; width: 60%; }
.skeleton-circle { border-radius: 50%; }
.skeleton-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid #f3f4f6; }
.skeleton-stat { height: 32px; width: 60px; }

/* ===== Stat cards — widget-card style (shared) ===== */
.stat-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.stat-grid-3 { grid-template-columns: repeat(3, 1fr); }
.stat-cards {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px;
}
.stat-card {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
    overflow: hidden; transition: box-shadow 0.2s;
}
.stat-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.stat-card.active { box-shadow: 0 2px 8px rgba(0,0,0,0.06); border-color: #d1d5db; }
.stat-card[data-filter] { cursor: pointer; }
.stat-card-header {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; background: #f9fafb; border-bottom: 1px solid #f3f4f6;
}
.stat-card-icon {
    width: 32px; height: 32px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.stat-card-icon--text { font-size: 16px; font-weight: 700; }
.stat-card-label { font-size: 13px; font-weight: 600; color: #374151; }
.stat-card-body { padding: 14px 16px; }
.stat-card-value { font-size: 28px; font-weight: 700; }
.stat-card-sub { font-size: 12px; color: #6b7280; margin-top: 4px; }
.stat-card-sub .green { color: #22c55e; font-weight: 600; }

/* Color variants */
.stat-card--orange .stat-card-icon { background: #FFF7ED; color: #FF8C00; }
.stat-card--orange .stat-card-value { color: #FF8C00; }
.stat-card--yellow .stat-card-icon { background: #FFFBEB; color: #b45309; }
.stat-card--yellow .stat-card-value { color: #b45309; }
.stat-card--amber .stat-card-icon { background: #FFFBEB; color: #f59e0b; }
.stat-card--amber .stat-card-value { color: #f59e0b; }
.stat-card--purple .stat-card-icon { background: #F5F3FF; color: #7c3aed; }
.stat-card--purple .stat-card-value { color: #7c3aed; }
.stat-card--blue .stat-card-icon { background: #EFF6FF; color: #2563eb; }
.stat-card--blue .stat-card-value { color: #2563eb; }
.stat-card--sky .stat-card-icon { background: #EFF6FF; color: #3b82f6; }
.stat-card--sky .stat-card-value { color: #3b82f6; }
.stat-card--green .stat-card-icon { background: #F0FDF4; color: #16a34a; }
.stat-card--green .stat-card-value { color: #16a34a; }
.stat-card--emerald .stat-card-icon { background: #ECFDF5; color: #10b981; }
.stat-card--emerald .stat-card-value { color: #10b981; }
.stat-card--red .stat-card-icon { background: #FEF2F2; color: #dc2626; }
.stat-card--red .stat-card-value { color: #dc2626; }
.stat-card--gray .stat-card-icon { background: #F3F4F6; color: #374151; }
.stat-card--gray .stat-card-value { color: #374151; }

/* Badge styles (shared) */
.badge { display: inline-block; padding: 2px 8px; border-radius: 9999px; font-size: 11px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.badge-green { background: #dcfce7; color: #15803d; }
.badge-red { background: #fef2f2; color: #dc2626; }
.badge-yellow { background: #fef9c3; color: #a16207; }
.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-gray { background: #f3f4f6; color: #6b7280; }
.badge-outline { background: transparent; color: #6b7280; border: 1px solid #d1d5db; }
.badge-purple { background: #ede9fe; color: #7c3aed; }
.badge-orange { background: #FFF7ED; color: #FF8C00; }

/* Card, table, filters, pagination, modal, detail-grid (shared) */
.card { background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); border: 1px solid #e5e7eb; }
.card-header { padding: 16px 20px; border-bottom: 1px solid #e5e7eb; display: flex; align-items: center; justify-content: space-between; }
.card-header h3 { font-size: 15px; font-weight: 600; color: #111827; margin: 0; }
.card-body { padding: 20px; }
.card-body-np { padding: 0; }
table { width: 100%; border-collapse: collapse; table-layout: auto; }
table th { text-align: left; padding: 10px 16px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: #6b7280; background: #f9fafb; border-bottom: 1px solid #e5e7eb; }
table td { padding: 10px 16px; font-size: 13px; color: #374151; border-bottom: 1px solid #f3f4f6; }
table tr:hover { background: #f9fafb; }
.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.filters input, .filters select { padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 13px; font-family: inherit; outline: none; }
.filters input:focus, .filters select:focus { border-color: #FF8C00; box-shadow: 0 0 0 3px rgba(255,140,0,0.15); }
.filter-search { width: 220px; }
.pagination { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid #e5e7eb; }
.pagination-info { font-size: 12px; color: #6b7280; }
.pagination-btns { display: flex; gap: 6px; }
.pagination-btns button { padding: 5px 12px; border: 1px solid #d1d5db; border-radius: 4px; background: #fff; font-size: 12px; cursor: pointer; font-family: inherit; }
.pagination-btns button:disabled { opacity: 0.4; cursor: not-allowed; }
.pagination-btns button:hover:not(:disabled) { background: #f3f4f6; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 24px; }
.detail-grid div { padding: 6px 0; font-size: 13px; color: #374151; }
.detail-grid strong { color: #6b7280; font-weight: 500; }
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); display: none; align-items: center; justify-content: center; z-index: 200; }
.modal { background: #fff; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.2); width: 100%; max-width: 540px; max-height: 80vh; overflow-y: auto; }
.modal-header { padding: 16px 20px; border-bottom: 1px solid #e5e7eb; display: flex; align-items: center; justify-content: space-between; }
.modal-header h3 { margin: 0; font-size: 16px; font-weight: 600; color: #111827; }
.modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: #9ca3af; line-height: 1; }
.modal-close:hover { color: #374151; }
.modal-body { padding: 20px; }
