/* Compact Layout Styles for BLS Courier System */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100vh;
    overflow: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.3;
    font-size: 13px;
    height: 100vh;
    overflow: hidden;
}

/* Layout Container */
.layout-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar Styles */
.sidebar {
    width: 200px;
    background: #2c3e50;
    color: white;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    overflow-y: auto;
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
    transition: width 0.2s ease;
}

.sidebar.collapsed {
    width: 60px;
}

.sidebar-header {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h2 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.sidebar-header .subtitle {
    font-size: 0.7rem;
    opacity: 0.8;
}

.sidebar-nav {
    padding: 10px 0;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin-bottom: 2px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
    font-size: 13px;
}

.nav-link:hover,
.nav-link.active {
    background-color: #34495e;
    color: white;
    border-left-color: #3498db;
}

.nav-link i {
    margin-right: 10px;
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

.sidebar.collapsed .nav-link span {
    display: none;
}

.sidebar.collapsed .sidebar-header h2,
.sidebar.collapsed .sidebar-header .subtitle {
    display: none;
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: 200px;
    display: flex;
    flex-direction: column;
    height: 100vh;
    min-height: 0;
    overflow: hidden;
    transition: margin-left 0.2s ease;
}

.main-content.expanded {
    margin-left: 60px;
}

/* Top Bar */
.top-bar {
    background: white;
    padding: 8px 20px;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
}

.top-bar-left {
    display: flex;
    align-items: center;
}

.toggle-sidebar {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 1rem;
    margin-right: 10px;
    cursor: pointer;
    padding: 6px;
    border-radius: 3px;
    transition: background-color 0.2s ease;
}

.toggle-sidebar:hover {
    background-color: #f8f9fa;
}

.page-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    margin: 0;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 12px;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 12px;
    color: #495057;
}

.user-role {
    font-size: 11px;
    color: #6c757d;
}

.balance-info {
    background: #27ae60;
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 11px;
}

.quick-actions {
    display: flex;
    gap: 5px;
}

.btn-icon {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 0.9rem;
    padding: 6px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background-color: #f8f9fa;
    color: #495057;
}

/* Content Area */
.content-area {
    flex: 1;
    padding: 15px;
    max-width: 100%;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Dashboard-specific: fit everything to viewport, no scrolling */
.content-area:has(> .dashboard-viewport) {
    overflow: hidden;
    padding: 10px;
}

.dashboard-viewport {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.dashboard-viewport > .card {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dashboard-viewport > .card > .card-body {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    padding: 0;
}

.dashboard-viewport > .card > .card-header {
    flex-shrink: 0;
    padding: 6px 10px;
}

.dashboard-viewport .table {
    margin-bottom: 0;
    font-size: 12px;
}

.dashboard-viewport .table th,
.dashboard-viewport .table td {
    padding: 3px 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    vertical-align: middle;
}

.dashboard-viewport .table th {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

/* Dashboard Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 6px;
    margin-bottom: 6px;
    flex-shrink: 0;
}

.dashboard-card {
    background: white;
    border-radius: 6px;
    padding: 8px 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #e9ecef;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.card-icon {
    width: 30px;
    height: 30px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    font-size: 0.85rem;
}

.card-icon.primary { background: #3498db; color: white; }
.card-icon.success { background: #27ae60; color: white; }
.card-icon.warning { background: #f39c12; color: white; }
.card-icon.info { background: #95a5a6; color: white; }

.card-title {
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 2px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.card-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #495057;
    margin-bottom: 0;
    line-height: 1.2;
}

.card-subtitle {
    font-size: 0.7rem;
    color: #6c757d;
}

/* Recent Shipments */
.recent-shipments {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.recent-shipments-header {
    padding: 12px 15px;
    background: #34495e;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recent-shipments-header h3 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.view-all-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.2s ease;
}

.view-all-link:hover {
    color: white;
}

/* Filters Section */
.filters-section {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.filters-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

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

.filter-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 3px;
}

.filter-input {
    padding: 6px 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 12px;
    transition: border-color 0.2s ease;
    height: 32px;
}

.filter-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.25);
}

.btn-filter {
    background: #3498db;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    height: 32px;
}

.btn-filter:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.btn-clear {
    background: #6c757d;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
    height: 32px;
}

.btn-clear:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/* Data Tables */
.data-table-container {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

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

.data-table thead th {
    background: #f8f9fa;
    padding: 8px 6px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #e9ecef;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.data-table tbody td {
    padding: 6px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.data-table tbody tr {
    transition: background-color 0.2s ease;
}

.data-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Status Badges */
.status-badge {
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-pending { background: #fff3cd; color: #856404; }
.status-collected { background: #d1ecf1; color: #0c5460; }
.status-in_transit { background: #fff3cd; color: #856404; }
.status-out_for_delivery { background: #d4edda; color: #155724; }
.status-delivered { background: #d4edda; color: #155724; }
.status-cancelled { background: #f8d7da; color: #721c24; }
.status-active { background: #d4edda; color: #155724; }
.status-inactive { background: #f8d7da; color: #721c24; }

/* Action Buttons */
.action-btn {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 0.8rem;
    padding: 4px 6px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 3px;
}

.action-btn:hover {
    background-color: #f8f9fa;
    color: #495057;
}

.action-btn.view { color: #17a2b8; }
.action-btn.edit { color: #f39c12; }
.action-btn.delete { color: #e74c3c; }

/* Bootstrap Component Overrides for Compact Design */

/* Compact Cards */
.compact-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
    border: 1px solid #e9ecef;
    margin-bottom: 15px;
}

.compact-card-header {
    padding: 12px 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    font-size: 13px;
}

.compact-card-body {
    padding: 15px;
}

/* Compact Stat Cards for Reports */
.compact-stat-card {
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.compact-stat-card .stat-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.compact-stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.page-header .header-content h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #495057;
}

.page-header .header-content p {
    margin: 5px 0 0;
    color: #6c757d;
    font-size: 13px;
}

.page-header .header-actions {
    display: flex;
    gap: 10px;
}

/* Compact Page Container */
.compact-page {
    padding: 15px;
}

/* Cards */
.card {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
    border: 1px solid #e9ecef;
    margin-bottom: 15px;
}

.card-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 12px 15px;
    font-size: 13px;
    font-weight: 600;
}

.card-body {
    padding: 15px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Tables */
.table {
    font-size: 12px;
    margin-bottom: 0;
}

.table th {
    padding: 8px 12px;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.table td {
    padding: 8px 12px;
    vertical-align: middle;
    border-bottom: 1px solid #e9ecef;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

/* Buttons */
.btn {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 600;
    height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-sm {
    font-size: 11px;
    padding: 4px 8px;
    height: 28px;
}

.btn-lg {
    font-size: 13px;
    padding: 8px 16px;
    height: 36px;
}

/* Form Controls */
.form-control {
    font-size: 12px;
    padding: 6px 8px;
    height: 32px;
    border-radius: 4px;
    border: 1px solid #ced4da;
}

.form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.25);
}

.form-select {
    font-size: 12px;
    padding: 6px 8px;
    height: 32px;
    border-radius: 4px;
}

.form-label {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #495057;
}

/* Text Areas */
textarea.form-control {
    min-height: 80px;
    resize: vertical;
}

/* Alerts */
.alert {
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 10px;
}

/* Permanent alerts - won't auto-dismiss */
.alert-permanent {
    /* No fade class, stays visible */
}

/* Badges */
.badge {
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 4px;
    font-weight: 600;
}

/* Modal */
.modal-content {
    border-radius: 8px;
}

.modal-header {
    padding: 12px 15px;
}

.modal-body {
    padding: 15px;
}

.modal-footer {
    padding: 12px 15px;
}

.modal-title {
    font-size: 1.1rem;
}

/* Pagination */
.pagination {
    font-size: 12px;
}

.pagination .page-link {
    padding: 6px 8px;
}

/* Dropdown */
.dropdown-menu {
    font-size: 12px;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.dropdown-item {
    padding: 6px 12px;
}

/* Nav Tabs */
.nav-tabs {
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 15px;
}

.nav-tabs .nav-link {
    font-size: 13px;
    padding: 8px 16px;
    color: #495057;
    border: 1px solid transparent;
    border-radius: 4px 4px 0 0;
    transition: all 0.2s;
}

.nav-tabs .nav-link:hover {
    border-color: #e9ecef #e9ecef #dee2e6;
    background-color: #f8f9fa;
}

.nav-tabs .nav-link.active {
    color: #495057;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
    font-weight: 600;
}

/* Tab Content Visibility */
.tab-content {
    display: block;
}

.tab-pane {
    display: none;
}

.tab-pane.active,
.tab-pane.show.active {
    display: block !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 200px;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .top-bar {
        padding: 6px 12px;
        height: 45px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .filters-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .data-table-container {
        overflow-x: auto;
    }

    .data-table {
        min-width: 600px;
    }
}

@media (max-width: 576px) {
    .content-area {
        padding: 10px;
    }

    .dashboard-card {
        padding: 12px;
    }

    .top-bar-right {
        gap: 8px;
    }

    .user-details {
        display: none;
    }

    .balance-info {
        font-size: 10px;
        padding: 3px 8px;
    }
}

/* ============================================
   UNIFIED PAGE STYLES
   Consistent styling across all pages
   ============================================ */

/* Page content wrapper - replaces container-fluid py-4 */
.page-content {
    max-width: 100%;
}

/* Card header color variants - replaces inline bg-primary text-white etc */
.card-header-accent {
    background: #2c3e50;
    color: white;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.card-header-accent h5,
.card-header-accent h6 {
    color: white;
}

/* Hidden elements utility */
.d-none-force {
    display: none !important;
}

/* Empty state styling - replaces inline font-size on icons */
.empty-state-icon {
    font-size: 4rem;
    color: #ccc;
}

/* Hide display sections via JS - replaces inline style="display: none" */
.js-hidden {
    display: none;
}

/* POD upload progress bar color */
.progress-bar-accent {
    background: #3498db;
}

/* ============================================================
   SHIPMENT VIEW STYLES
   ============================================================ */

.progress-sm { height: 16px; }

/* Header */
.sv-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}
.sv-header .header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.sv-header .header-left .tracking-num {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
}
.sv-header .header-actions {
    display: flex;
    gap: 6px;
}

/* Stat summary row */
.sv-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}
.sv-stat-card {
    background: white;
    border-radius: 6px;
    padding: 10px 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 10px;
}
.sv-stat-icon {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: white;
    flex-shrink: 0;
}
.sv-stat-icon.blue { background: #3498db; }
.sv-stat-icon.green { background: #27ae60; }
.sv-stat-icon.orange { background: #f39c12; }
.sv-stat-icon.teal { background: #17a2b8; }
.sv-stat-icon.dark { background: #2c3e50; }
.sv-stat-label {
    font-size: 0.7rem;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.sv-stat-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.2;
}

/* Section cards */
.sv-card {
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #e9ecef;
    margin-bottom: 10px;
    overflow: hidden;
}
.sv-card-header {
    padding: 8px 12px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 12px;
    color: #2c3e50;
}
.sv-card-header i {
    font-size: 0.85rem;
    color: #3498db;
}
.sv-card-header.green i { color: #27ae60; }
.sv-card-header.teal i { color: #17a2b8; }
.sv-card-header.orange i { color: #f39c12; }
.sv-card-header.dark i { color: #2c3e50; }
.sv-card-body {
    padding: 12px;
}

/* Detail rows */
.sv-detail-row {
    display: flex;
    margin-bottom: 6px;
    font-size: 12px;
}
.sv-detail-row:last-child {
    margin-bottom: 0;
}
.sv-detail-label {
    color: #6c757d;
    min-width: 110px;
    flex-shrink: 0;
    font-weight: 500;
}
.sv-detail-value {
    color: #2c3e50;
    font-weight: 500;
}

/* Address cards */
.sv-address-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}
.sv-address-card {
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    overflow: hidden;
}
.sv-address-header {
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.sv-address-header.sender {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}
.sv-address-header.receiver {
    background: linear-gradient(135deg, #17a2b8, #20c9e0);
    color: white;
}
.sv-address-header.assignment {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
}
.sv-address-body {
    padding: 10px 12px;
    font-size: 12px;
}
.sv-address-body .company-name {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 2px;
}
.sv-address-body .contact-name {
    font-weight: 600;
    color: #495057;
    margin-bottom: 4px;
}
.sv-address-body p {
    margin: 0 0 2px 0;
    color: #6c757d;
}
.sv-address-body .contact-info {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #f0f0f0;
}
.sv-address-body .contact-info i {
    color: #3498db;
    margin-right: 4px;
    width: 14px;
    text-align: center;
}

/* Main grid layout */
.sv-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 10px;
    align-items: start;
}

/* Timeline */
.sv-timeline {
    position: relative;
    padding-left: 24px;
}
.sv-timeline-item {
    position: relative;
    padding-bottom: 14px;
    border-left: 2px solid #e9ecef;
    padding-left: 16px;
}
.sv-timeline-item.active {
    border-left-color: #3498db;
}
.sv-timeline-item:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
}
.sv-timeline-marker {
    position: absolute;
    left: -8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7px;
}
.sv-timeline-item.active .sv-timeline-marker {
    border-color: #3498db;
    background: #3498db;
    color: white;
}
.sv-timeline-status {
    font-weight: 600;
    font-size: 12px;
    color: #2c3e50;
}
.sv-timeline-meta {
    font-size: 11px;
    color: #6c757d;
}

/* POD files */
.sv-pod-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    margin-bottom: 6px;
    background: #fafafa;
}
.sv-pod-item:last-child {
    margin-bottom: 0;
}
.sv-pod-thumb {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid #e9ecef;
    flex-shrink: 0;
}
.sv-pod-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff5f5;
    border-radius: 4px;
    flex-shrink: 0;
}
.sv-pod-icon i {
    font-size: 1.5rem;
    color: #e74c3c;
}
.sv-pod-info {
    flex: 1;
    min-width: 0;
}
.sv-pod-name {
    font-weight: 600;
    font-size: 12px;
    color: #2c3e50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sv-pod-meta {
    font-size: 10px;
    color: #6c757d;
}
.sv-pod-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

/* Special instructions box */
.sv-instructions {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 12px;
    color: #795548;
}
.sv-instructions i {
    color: #f39c12;
    margin-right: 4px;
}

/* Document number badges */
.sv-doc-badge {
    display: inline-block;
    background: rgba(52, 152, 219, 0.1);
    color: #2980b9;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    margin-right: 4px;
    margin-bottom: 2px;
}

/* Metadata footer */
.sv-meta-row {
    display: flex;
    gap: 20px;
    font-size: 11px;
    color: #6c757d;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}
.sv-meta-row span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Upload form */
.sv-upload-form .form-control-sm {
    font-size: 11px;
    height: 30px;
}

.btn-xs-pod { padding: 2px 6px; font-size: 10px; }

/* Shipment view responsive */
@media (max-width: 1200px) {
    .sv-address-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 992px) {
    .sv-layout {
        grid-template-columns: 1fr;
    }
    .sv-address-grid {
        grid-template-columns: 1fr;
    }
}

/* Shipment view utility classes */
.sv-section-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #6c757d;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    padding-bottom: 3px;
    border-bottom: 1px solid #f0f0f0;
}

.sv-section-label-spaced {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #6c757d;
    letter-spacing: 0.5px;
    margin: 8px 0 4px;
    padding-bottom: 3px;
    border-bottom: 1px solid #f0f0f0;
}

.sv-section-label .bi-box-seam {
    color: #27ae60;
}

.sv-section-label .bi-send,
.sv-section-label-spaced .bi-send {
    color: #3498db;
}

.sv-section-label-spaced .bi-box-seam {
    color: #27ae60;
}

.sv-not-assigned {
    font-size: 12px;
    color: #adb5bd;
    font-style: italic;
    margin-bottom: 4px;
}

.sv-same-as-collection {
    font-size: 12px;
    color: #3498db;
    font-style: italic;
}

.sv-delivery-green {
    color: #27ae60;
    font-weight: 700;
}

.sv-icon-blue {
    color: #3498db;
}

/* Button color utilities - replaces inline background/color */
.btn-dark-accent {
    background: #2c3e50;
    color: white;
    border: none;
}

.btn-dark-accent:hover {
    background: #34495e;
    color: white;
}

.btn-blue-accent {
    background: #3498db;
    color: white;
    border: none;
}

.btn-blue-accent:hover {
    background: #2980b9;
    color: white;
}

.btn-green-accent {
    background: #27ae60;
    color: white;
    border: none;
}

.btn-green-accent:hover {
    background: #219a52;
    color: white;
}

/* Form inline delete - replaces style="display: inline" */
/* Table column widths */
.col-order { width: 50px; }
.col-status { width: 100px; }
.col-actions { width: 120px; }

.form-inline-action {
    display: inline;
}

/* Permissions page layout */
.permissions-scroll-container {
    overflow-y: auto;
    max-height: calc(100vh - 130px);
}

.perm-col-label {
    min-width: 250px;
}

.perm-col-role {
    min-width: 120px;
}

/* Card accent header for primary sections */
.card-header.accent-primary {
    background: #f8f9fa;
    border-bottom: 2px solid #3498db;
}

.card-header.accent-success {
    background: #f8f9fa;
    border-bottom: 2px solid #27ae60;
}

.card-header.accent-danger {
    background: #f8f9fa;
    border-bottom: 2px solid #e74c3c;
}

.card-header.accent-info {
    background: #f8f9fa;
    border-bottom: 2px solid #17a2b8;
}

.card-header.accent-dark {
    background: #f8f9fa;
    border-bottom: 2px solid #2c3e50;
}

/* ============================================
   LOGIN PAGE STYLES
   ============================================ */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.5; }
}

.login-container {
    max-width: 440px;
    width: 100%;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.login-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    animation: slideUp 0.4s ease-out;
}

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

.login-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
}

.login-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db 0%, #2ecc71 100%);
}

.login-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3498db 0%, #2ecc71 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
}

.login-logo i {
    font-size: 2.5rem;
    color: white;
}

.login-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    letter-spacing: 0.5px;
}

.login-header .subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    color: #ecf0f1;
    font-weight: 400;
}

.login-body {
    padding: 2.5rem 2rem;
}

.login-form .form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.login-form .input-group {
    margin-bottom: 1.5rem;
}

.login-form .input-group-text {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-right: 0;
    color: #6c757d;
    width: 45px;
    justify-content: center;
    border: 1px solid #ced4da;
}

.login-form .form-control {
    border-left: 0;
    font-size: 0.95rem;
    padding: 0.6rem 0.75rem;
    height: auto;
}

.login-form .form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}

.login-form .input-group:focus-within .input-group-text {
    border-color: #3498db;
    color: #3498db;
}

.btn-login {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem;
    font-size: 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-login:hover {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.login-footer {
    text-align: center;
    padding: 1.25rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 1px solid #dee2e6;
    font-size: 0.8rem;
    color: #6c757d;
}

.login-footer i {
    color: #27ae60;
    margin-right: 5px;
}

.login-alert {
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

/* Login page responsive */
@media (max-width: 576px) {
    .login-container {
        padding: 15px;
    }
    
    .login-header {
        padding: 2rem 1.5rem;
    }
    
    .login-logo {
        width: 70px;
        height: 70px;
    }
    
    .login-logo i {
        font-size: 2rem;
    }
    
    .login-header h1 {
        font-size: 1.5rem;
    }
    
    .login-body {
        padding: 2rem 1.5rem;
    }
}

/* Report stat card colors */
.stat-card-primary { background: #3498db; color: white; }
.stat-card-success { background: #27ae60; color: white; }
.stat-card-info { background: #17a2b8; color: white; }
.stat-card-warning { background: #f39c12; color: #2c3e50; }

/* ============================================================
   STYLES EXTRACTED FROM PHP INLINE <style> BLOCKS
   ============================================================ */

/* --- dashboard_admin.php: Mode Tabs --- */
.mode-tabs {
    background: #fff;
    border-bottom: 2px solid #dee2e6;
    padding: 0.25rem 0.5rem 0;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}
.mode-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: #6c757d;
    padding: 0.5rem 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}
.mode-tabs .nav-link:hover {
    border-bottom-color: #dee2e6;
    color: #495057;
}
.mode-tabs .nav-link.active {
    border-bottom-color: #3498db;
    color: #3498db;
    background: transparent;
}
.mode-tabs .nav-link i {
    font-size: 1rem;
}
.mode-badge {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    padding: 0.15rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.7rem;
    font-weight: 600;
}

/* --- shipments_mode.php / shipments.php: Filters & DataTables --- */
.filters-section .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #dee2e6;
}
.dataTables_filter input {
    border: 2px solid #3498db !important;
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.15);
    transition: all 0.3s ease;
}
.dataTables_filter input:focus {
    border-color: #3498db !important;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.25) !important;
}
.mode-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0;
}
.mode-header i {
    font-size: 1.5rem;
}

/* --- shipments.php: Filter Info & Misc --- */
.filter-info-container {
    text-align: right;
}
.filter-info-container .alert {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    animation: slideIn 0.3s ease-out;
}
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.filters-section input:focus,
.filters-section select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.15);
}
.dataTables_wrapper .dataTables_length select {
    margin: 0 0.5rem;
}
.data-table-container {
    transition: opacity 0.2s ease;
}
.fw-semibold {
    font-weight: 600 !important;
}

/* --- shipment_update_delivery.php: Timeline --- */
.timeline {
    position: relative;
    padding-left: 30px;
}
.timeline-item {
    position: relative;
    padding-bottom: 20px;
    border-left: 2px solid #dee2e6;
}
.timeline-item:last-child {
    border-left-color: transparent;
}
.timeline-marker {
    position: absolute;
    left: -10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #3498db;
}
.timeline-content {
    padding-left: 20px;
}

/* --- reports.php: Print & Stats --- */
@media print {
    .no-print { display: none !important; }
    .card { break-inside: avoid; }
    body { font-size: 12px; }
}
.chart-container { height: 300px; }
.stat-card { padding: 1rem; border-radius: 8px; text-align: center; }
.stat-card .stat-value { font-size: 2rem; font-weight: bold; }
.stat-card .stat-label { font-size: 0.85rem; opacity: 0.9; }

/* --- my_address_add_new.php: Alert Small --- */
.alert-sm {
    padding: 8px 12px;
    font-size: 12px;
}

/* ============================================================
   BOOTSTRAP COLOR OVERRIDES - New Palette
   ============================================================ */

/* Primary: #3498db */
.btn-primary { background-color: #3498db; border-color: #3498db; }
.btn-primary:hover, .btn-primary:focus { background-color: #2980b9; border-color: #2980b9; }
.btn-primary:active { background-color: #2471a3; border-color: #2471a3; }
.btn-outline-primary { color: #3498db; border-color: #3498db; }
.btn-outline-primary:hover { background-color: #3498db; border-color: #3498db; color: white; }
.bg-primary { background-color: #3498db !important; }
.text-primary { color: #3498db !important; }
.border-primary { border-color: #3498db !important; }

/* Success: #27ae60 */
.btn-success { background-color: #27ae60; border-color: #27ae60; }
.btn-success:hover, .btn-success:focus { background-color: #219a52; border-color: #219a52; }
.btn-success:active { background-color: #1e8449; border-color: #1e8449; }
.btn-outline-success { color: #27ae60; border-color: #27ae60; }
.btn-outline-success:hover { background-color: #27ae60; border-color: #27ae60; color: white; }
.bg-success { background-color: #27ae60 !important; }
.text-success { color: #27ae60 !important; }

/* Danger: #e74c3c */
.btn-danger { background-color: #e74c3c; border-color: #e74c3c; }
.btn-danger:hover, .btn-danger:focus { background-color: #c0392b; border-color: #c0392b; }
.btn-danger:active { background-color: #a93226; border-color: #a93226; }
.btn-outline-danger { color: #e74c3c; border-color: #e74c3c; }
.btn-outline-danger:hover { background-color: #e74c3c; border-color: #e74c3c; color: white; }
.bg-danger { background-color: #e74c3c !important; }
.text-danger { color: #e74c3c !important; }

/* Warning: #f39c12 */
.btn-warning { background-color: #f39c12; border-color: #f39c12; color: #2c3e50; }
.btn-warning:hover, .btn-warning:focus { background-color: #d68910; border-color: #d68910; color: #2c3e50; }
.btn-outline-warning { color: #f39c12; border-color: #f39c12; }
.btn-outline-warning:hover { background-color: #f39c12; border-color: #f39c12; color: #2c3e50; }
.bg-warning { background-color: #f39c12 !important; }
.text-warning { color: #f39c12 !important; }

/* Info: #17a2b8 */
.btn-info { background-color: #17a2b8; border-color: #17a2b8; color: white; }
.btn-info:hover, .btn-info:focus { background-color: #148a9e; border-color: #148a9e; color: white; }
.btn-outline-info { color: #17a2b8; border-color: #17a2b8; }
.btn-outline-info:hover { background-color: #17a2b8; border-color: #17a2b8; color: white; }
.bg-info { background-color: #17a2b8 !important; }
.text-info { color: #17a2b8 !important; }

/* Dark: #2c3e50 */
.bg-dark { background-color: #2c3e50 !important; }

/* Form focus states */
.form-select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.25);
}
.form-check-input:checked {
    background-color: #3498db;
    border-color: #3498db;
}
