body {
    font-family: "Segoe UI", Arial, sans-serif;
    background-color: #f8f9fa;
    color: #212529;
}

.tc-header {
    background: #f8f9fa;
    border-bottom: 1px solid #ebebeb;
}

/* Dark Header Styles */
.tc-header-dark {
    background: #1a1d29;
    color: #ffffff;
    border-bottom: none;
    margin-bottom: 0;
}

.tc-header-icon {
    width: 40px;
    height: 40px;
    background: #20b2aa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
}

.home-btn i {
    font-size: 22px;
}

.tc-header-brand {
    display: flex;
    flex-direction: column;
}

.tc-brand-main {
    font-size: 18px;
    font-weight: 700;
    color: #141824;
    text-transform: uppercase;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.tc-brand-sub {
    font-size: 11px;
    font-weight: 400;
    color: #141824;
    text-transform: uppercase;
    line-height: 1.2;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.tc-notification-icon {
    position: relative;
    font-size: 22px;
    color: #141824;
    cursor: pointer;
}

.tc-notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #20b2aa;
    color: #ffffff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
}

.tc-user-avatar {
    width: 40px;
    height: 40px;
    background: #f7efc8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cfb21e;
    font-weight: 600;
    font-size: 18px;
}

.tc-user-avatar i {
    margin: 0;
}

.tc-user-info {
    display: flex;
    flex-direction: column;
    align-items: end;
    justify-content: center;
}

.tc-user-name {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
    color: #14405d;
    line-height: 1.2;
}

.tc-user-role {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 500;
    color: #0d5bb0;
    line-height: 1.2;
    margin-top: 2px;
}

.tc-header-logout {
    background: #ff5050;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s ease;
    border: none;
}

.tc-header-logout:hover {
    background: #ff3333;
    color: #ffffff;
    text-decoration: none;
}

.tc-header-logout i {
    font-size: 14px;
}

/* User Dropdown Styles for Mobile */
.tc-user-dropdown {
    position: relative;
}

.tc-user-avatar-clickable {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tc-user-avatar-clickable:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(32, 178, 170, 0.3);
}

.tc-user-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.tc-user-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tc-dropdown-header {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.tc-dropdown-avatar {
    flex-shrink: 0;
}

.tc-dropdown-divider {
    height: 1px;
    background: #e9ecef;
    margin: 8px 0;
}

.tc-dropdown-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #ffffff;
    background: #ff5050;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s ease;
    border: none;
    width: 100%;
}

.tc-dropdown-logout:hover {
    background: #ff3333;
    color: #ffffff;
    text-decoration: none;
}

.tc-dropdown-logout i {
    font-size: 14px;
}


.table {
    border-color: transparent !important;
    --bs-table-bg: transparent !important;
    --bs-table-hover-bg: transparent !important;
}

.inbound-parts-wrapper table th {
    background: transparent !important;
}


.btn-outline-secondary {
    border-radius: 100px;
    padding: 7px 20px 9px 20px;
}

/* Mobile responsive adjustments */
@media (max-width: 767.98px) {
    .tc-user-dropdown-menu {
        min-width: 200px;
    }

    .tc-dropdown-header {
        padding: 14px;
    }

    .tc-dropdown-logout {
        padding: 10px 14px;
    }
}

.tc-cta-grid .btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tc-cta-grid .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(13, 110, 253, 0.25);
}

.tc-dashboard-title {
    color: black;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.fw-semibold {
    color: #212529;
    text-transform: capitalize;
    font-size: 18px;
    font-weight: 400;
}

.tc-section-spacer {
    margin-top: 3rem;
}

.text-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}

.tc-brand-logo {
    display: block;
    width: 200px;
    height: auto;

}

.btn-logout {
    background-color: #ff5050;
    padding: 7px 20px;
    font-size: 16px;
    font-weight: 400;
    border: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.title-main {
    color: #212529;
    text-transform: uppercase;
    font-size: 35px;
    font-weight: 600;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    gap: 10px;
}

.title-sub {
    color: #212529;
    text-transform: capitalize;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    gap: 10px;
}

.dashboard-icons {
    border: 0;
    font-size: 25px;
    font-weight: 400;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: white;
}

.dashboard-icons:hover {
    color: white;
}

/* Color */
.gradient-blue {
    background: linear-gradient(135deg, #4E90F3, #4E90F3);
    transition: background 0.6s ease;
}

.gradient-blue:hover {
    background: linear-gradient(135deg, #76ADFF, #4E90F3);
}

.gradient-green {
    background: linear-gradient(135deg, #28A745, #74E58C);
    transition: background 0.6s ease;
}

.gradient-green:hover {
    background: linear-gradient(135deg, #74E58C, #28A745);
}

.gradient-orange {
    background: linear-gradient(135deg, #fd8e34, #ff8636);
    transition: background 0.6s ease;
}

.gradient-orange:hover {
    background: linear-gradient(135deg, #ff8636, #fd8e34);
}

.gradient-purple {
    background: linear-gradient(135deg, #9a6bf1, #7e42ec);
    transition: background 0.6s ease;
}

.gradient-purple:hover {
    background: linear-gradient(135deg, #7e42ec, #9a6bf1);
}

.gradient-red {
    background: linear-gradient(135deg, #fa5263, #ff4456);
    transition: background 0.6s ease;
}

.gradient-red:hover {
    background: linear-gradient(135deg, #ff4456, #fa5263);
}

.gradient-yellow {
    background: linear-gradient(135deg, #e7bc3b, #f7c737);
    transition: background 0.6s ease;
}

.gradient-yellow:hover {
    background: linear-gradient(135deg, #f7c737, #e7bc3b);
}

.gradient-gray {
    background: linear-gradient(135deg, #7c8186, #828a91);
    transition: background 0.6s ease;
}

.gradient-gray:hover {
    background: linear-gradient(135deg, #828a91, #7c8186);
}

.dashboard-heading .heading-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.heading-icon.blue {
    background: #d6e6ff;
    color: #3384fd;
}

.heading-icon.yellow {
    background: #fff3e0;
    color: #ffcf86;
}

.heading-icon.orange {
    background: #ffe9c6;
    color: #dd9a36;
}

.heading-icon.green {
    background: #eeffef;
    color: #9fdcab;
}

.heading-icon.purple {
    background: #c4a4ff;
    color: #7f44ec;
}

.heading-icon.gray {
    background: #e0e0e0;
    color: #6a6e72;
}

.stat-card {
    background: #fff;
    border: 1px solid #edf1f7;
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: 0 8px 20px rgba(20, 24, 36, 0.05);
}

.stat-label {
    font-size: 15px;
    color: #6c757d;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 32px;
    font-weight: 600;
    color: #1b1f3b;
}

.trend {
    font-size: 13px;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 600;
}

.trend-up {
    background: rgba(40, 167, 69, 0.15);
    color: #218838;
}

.trend-down {
    background: rgba(250, 82, 99, 0.15);
    color: #c82333;
}

.dashboard-panel {
    display: block;
    color: #fff;
    border-radius: 26px;
    padding: 28px;
    min-height: 260px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.dashboard-panel h3 {
    font-size: 24px;
    margin-bottom: 6px;
}

.dashboard-panel p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.panel-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 18px;
}

.panel-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 18px;
}

.panel-stats .label {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

.panel-stats strong {
    display: block;
    font-size: 26px;
}

.panel-action {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    opacity: 0.85;
}

.panel-action i {
    font-size: 18px;
}

.card {
    border: 0;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(27, 31, 59, 0.08);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid #f1f3f8;
    padding: 20px 24px;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 24px;
}

.action-btn {
    border: 1px solid #e7ebf3;
    border-radius: 14px;
    background: #fff;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: #1b1f3b;
    transition: all 0.3s ease;
}

.action-btn.primary {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.action-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(13, 110, 253, 0.15);
}

.activity-list {
    list-style: none;
    margin: 0;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.activity-list li {
    display: flex;
    gap: 16px;
}

.activity-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #e8f5e9;
    color: #218838;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.activity-icon.warning {
    background: #fff4e5;
    color: #ff8f00;
}

.activity-icon.info {
    background: #e5f2ff;
    color: #0d6efd;
}

.grid-one {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.grid-two {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.inner-grid-column {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    gap: 0px;
}

.inner-grid-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    gap: 10px;
}

@media (max-width: 767px) {
    .grid-two {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .panel-stats {
        gap: 24px;
    }

    .actions-grid {
        grid-template-columns: 1fr;
    }

    /* Dashboard Responsive Styles */
    .dashboard-shell {
        padding: 16px 12px !important;
    }

    .dashboard-heading {
        flex-wrap: wrap;
        gap: 12px !important;
    }

    .dashboard-heading .heading-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .stat-card {
        padding: 16px 14px;
    }

    .stat-label {
        font-size: 13px;
        flex-wrap: wrap;
        gap: 4px;
    }

    .stat-value {
        font-size: 28px;
    }

    .dashboard-panel {
        padding: 20px 18px;
        min-height: auto;
        border-radius: 20px;
    }

    .dashboard-panel h3 {
        font-size: 20px;
    }

    .dashboard-panel p {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .panel-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
        margin-bottom: 14px;
    }

    .panel-stats {
        gap: 20px;
        flex-wrap: wrap;
    }

    .panel-stats strong {
        font-size: 22px;
    }

    .panel-action {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .dashboard-shell {
        padding: 12px 8px !important;
    }

    .dashboard-heading {
        margin-bottom: 20px !important;
    }

    .dashboard-heading .heading-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .title-main {
        font-size: 24px !important;
    }

    .stat-card {
        padding: 14px 12px;
    }

    .stat-label {
        font-size: 12px;
    }

    .stat-value {
        font-size: 24px;
    }

    .dashboard-panel {
        padding: 18px 16px;
        border-radius: 16px;
    }

    .dashboard-panel h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .dashboard-panel p {
        font-size: 12px;
        margin-bottom: 14px;
    }

    .panel-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
        margin-bottom: 12px;
    }

    .panel-stats {
        gap: 16px;
    }

    .panel-stats .label {
        font-size: 11px;
    }

    .panel-stats strong {
        font-size: 20px;
    }

    .panel-action {
        font-size: 13px;
    }
}

/* ============================================
   INBOUND MANAGEMENT PAGE STYLES
   ============================================ */

.inbound-page-wrapper {
    min-height: 100vh;
}

/* Header Section */
.inbound-header {
    padding: 0;
    margin-bottom: 0;
}

.inbound-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: white;
}

.inbound-header p {
    font-size: 14px;
    opacity: 0.9;
    margin: 4px 0 0 0;
    color: rgba(255, 255, 255, 0.9);
}

.header-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-refresh,
.btn-new {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    font-size: 14px;
}

.btn-refresh {
    background: #f5f5f5;
    color: #757575;
}

.btn-refresh:hover {
    background: #d6e6ff;
    color: #3384fd;
}

.btn-new {
    background: #39a745;
    color: white;
}

.btn-new:hover {
    background: #39a745;
    color: #9fdcab;
}

/* Metrics Section */
.metrics-section {
    background: white;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 20px;
}

.metric-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    gap: 10px;
}

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

.icon-title-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: start;
    gap: 10px;
    width: 100%;
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.metric-icon.green {
    background: #eeffef;
    color: #28A745;
}

.metric-icon.blue {
    background: rgb(214, 230, 255);
    color: #3384fd;
}

.metric-icon.orange {
    background: #fff3e0;
    color: #ff9800;
}

.metric-icon.grey {
    background: #f5f5f5;
    color: #757575;
}

.metric-value {
    font-size: 40px;
    font-weight: 700;
    color: #212529;
    margin: 0px !important;
    line-height: 40px;
}

.metric-label {
    font-size: 18px;
    color: #6c757d;
    font-weight: 500;
}

.metric-subtext {
    font-size: 12px;
    color: #6c757d;
}

.metric-trend {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.metric-trend.up {
    background: #e8f5e9;
    color: #28a745;
}

/* Inbound List Section */
.inbound-list-section {
    background: white;
    padding: 20px 0px 100px 0px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 4px;
}

.section-subtitle {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 20px;
}

.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.table-controls label {
    margin: 0;
    font-size: 14px;
    color: #6c757d;
}

.table-controls .form-select-sm {
    display: inline-block;
    width: auto;
    margin: 0 4px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 12px;
    color: #6c757d;
    z-index: 1;
}

.search-box .form-control {
    padding-left: 40px;
    width: 300px;
}

/* Inbound Cards */
.inbound-cards-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.inbound-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.inbound-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.inbound-card-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    gap: 16px;
    flex-wrap: wrap;
}

.inbound-icon {
    width: 48px;
    height: 48px;
    background: #d6e6ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3384fd;
    font-size: 24px;
    flex-shrink: 0;
}

.inbound-id {
    font-size: 18px;
    font-weight: 600;
    color: #4E90F3;
    margin-bottom: 4px;
}

.inbound-supplier {
    font-size: 14px;
    color: #6c757d;
}

.inbound-summary {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    flex-grow: 1;
    align-items: center;
    justify-content: center;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.summary-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-value {
    font-size: 14px;
    font-weight: 600;
    color: #212529;
}

.inbound-status {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-badge.complete {
    background: #e8f5e9;
    color: #28a745;
}

.status-badge.pending {
    background: #fff3e0;
    color: #ff9800;
}

.status-badge.damaged {
    background: #ffe0e0;
    color: #ff0000;
}

.damage-count {
    font-weight: 700;
}

.expand-icon {
    font-size: 18px;
    color: #6c757d;
    transition: transform 0.3s ease;
}

.expand-icon.rotated {
    transform: rotate(180deg);
}

/* Card Details */
.inbound-card-details {
    display: none;
    padding: 20px;
    background: #f8f9fa;
    border-top: 2px solid #e9ecef;
}

.inbound-card-details.show {
    display: block;
}

.detail-row {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 14px;
    font-weight: 600;
    color: #212529;
}

.detail-metrics {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.detail-metric {
    flex: 1;
    min-width: 120px;
    background: white;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.detail-metric.damaged {
    border-color: #ff0000;
    background: #ffe0e0;
}

.detail-metric.remaining {
    border-color: #ffa726;
    background: #fff3e0;
}

.detail-metric-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 20px;
}

.detail-metric.damaged .detail-metric-icon {
    background: #ff000091;
    color: #ffe0e0;
}

.detail-metric.remaining .detail-metric-icon {
    background: #ffa82697;
    color: #fff3e0;
}

.detail-metric:not(.damaged):not(.remaining) .detail-metric-icon {
    background: #f5f5f5;
    color: #757575;
}

.detail-metric-value {
    font-size: 24px;
    font-weight: 700;
    margin: 8px 0;
    color: #212529;
}

.detail-metric-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.detail-section {
    margin-bottom: 24px;
}

.detail-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.document-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.document-item i {
    color: #20b2aa;
    font-size: 16px;
}

.document-item a {
    color: #495057;
    text-decoration: none;
    flex: 1;
    font-size: 14px;
}

.document-item a:hover {
    color: #20b2aa;
}

.detail-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.btn-detail {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-detail-edit {
    color: white;
}

.btn-detail-edit:hover {
    color: white;
}

.btn-detail-delete {
    color: white;
}

.btn-detail-delete:hover {
    color: white;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    flex-wrap: wrap;
    gap: 16px;
}

.pagination-info {
    font-size: 14px;
    color: #6c757d;
}

.pagination-controls {
    display: flex;
    gap: 8px;
}

.btn-pagination {
    padding: 8px 16px;
    border: 1px solid #dee2e6;
    background: white;
    color: #495057;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.btn-pagination:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.btn-pagination.active {
    background: #20b2aa;
    color: white;
    border-color: #20b2aa;
}

.btn-pagination:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive Styles */
@media (max-width: 992px) {

    .search-box .form-control {
        width: 250px;
    }
}

@media (max-width: 768px) {

    /* Make tables horizontally scrollable on mobile */
    .inbound-parts-wrapper {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -16px;
        padding: 0 16px;
    }

    .inbound-parts-wrapper table {
        min-width: 600px;
        /* Ensures table doesn't shrink below this width */
        width: 100%;
    }

    .inbound-header h1 {
        font-size: 24px;
    }

    .header-actions {
        flex-direction: column;
        width: 100%;
        margin-top: 16px;
    }

    .btn-refresh,
    .btn-new {
        width: 100%;
        justify-content: center;
    }

    .table-controls {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .search-box {
        width: 100%;
    }

    .search-box .form-control {
        width: 100%;
    }

    .metric-value {
        font-size: 35px;
    }

    .inbound-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .inbound-summary {
        width: 100%;
        justify-content: space-between;
    }

    .inbound-status {
        width: 100%;
        justify-content: space-between;
    }

    .detail-metrics {
        flex-direction: column;
    }

    .detail-metric {
        min-width: 100%;
    }

    .detail-row {
        flex-direction: column;
        gap: 12px;
    }

    .detail-actions {
        flex-direction: column;
    }

    .btn-detail {
        width: 100%;
        justify-content: center;
    }

    .pagination-container {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .inbound-header h1 {
        font-size: 20px;
    }

    .inbound-header p {
        font-size: 12px;
    }

    .section-title {
        font-size: 18px;
    }

    .section-subtitle {
        font-size: 12px;
    }

    .metric-value {
        font-size: 35px;
    }

    .detail-metric-value {
        font-size: 20px;
    }

    .inbound-id {
        font-size: 16px;
    }

    .summary-item {
        min-width: calc(50% - 12px);
    }
}

/* ============================================
   INBOUND ENTRY PAGE (UR) STYLES
   ============================================ */

.inbound-entry-page {
    padding: 24px 0 40px;
    background-color: white;
}

.inbound-entry-header {
    margin-bottom: 24px;
}

.inbound-entry-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #b5d3fe;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4e90f3;
    font-size: 22px;
}

.outbound-entry-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f7ccae;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff8a36;
    font-size: 22px;
}

.inbound-entry-title {
    font-size: 26px;
    font-weight: 700;
    color: #1f2933;
}

.inbound-entry-subtitle {
    font-size: 14px;
    color: #6b7b8c;
}

.inbound-entry-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 24px 28px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    border: 1px solid #edf1f7;
}

.inbound-label {
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 6px;
}

.inbound-input {
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
    padding: 9px 12px;
}

.inbound-input:focus {
    border-color: #ff9f1c;
    box-shadow: 0 0 0 2px rgba(255, 159, 28, 0.15);
}

.inbound-section-separator {
    border-top: 1px solid #edf1f7;
    margin: 16px 0 24px;
}

.inbound-section-header {
    margin-top: 4px;
}

.inbound-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

/* Upload Dropzones */
.upload-dropzone {
    border-radius: 12px;
    border: 2px dashed #e5e7eb;
    background: #fcfcfd;
    padding: 28px 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.upload-dropzone:hover {
    border-color: #ffb347;
    background: #fffaf3;
    box-shadow: 0 6px 18px rgba(255, 159, 28, 0.12);
}

.upload-dropzone.drag-over {
    border-color: #ff9f1c;
    background: #fff5e6;
}

.upload-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px dashed #ffcf78;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff9f1c;
    font-size: 18px;
    margin: 0 auto 10px;
}

.upload-text-main {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.upload-text-sub {
    font-size: 11px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
}

.upload-file-name {
    font-size: 12px;
    color: #4b5563;
    margin-top: 8px;
}

.inbound-parts-wrapper {
    border-radius: 12px;
    border: 1px solid #edf1f7;
    background: #fcfcff;
    padding: 12px;
}

.inbound-parts-wrapper table th {
    background: #f9fafb;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}

.inbound-parts-wrapper table td input.form-control {
    border-radius: 8px;
    font-size: 13px;
}

.inbound-entry-actions {
    margin-top: 8px;
}

.inbound-submit-btn {
    background: #111827;
    color: #ffffff;
    padding: 11px 26px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.25);
}

.inbound-submit-btn:hover {
    background: #030712;
    color: #ffffff;
}


@media (max-width: 768px) {

    .inbound-entry-actions.text-end {
        display: flex;
        flex-direction: column;
        align-items: normal;
        justify-content: normal;
        gap: 10px;
    }

    .inbound-entry-card {
        padding: 20px 16px 22px;
    }

    .inbound-entry-title {
        font-size: 22px;
    }

    .upload-dropzone {
        padding: 22px 12px;
    }
}

/* ============================================
   INBOUND EDIT PAGE (UR) STYLES
   ============================================ */
/* The inbound_edit-ur.php reuses most styles from .inbound-entry-page and child classes, so only add deltas/blue highlights here if needed. For now, no override is necessary; design stays uniform with entry. */
