:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-soft: #eaf7ff;
    --bg: #f8fafc;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    --card: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    color: var(--text);
}

.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e7f7ff 0%, #ffffff 52%, #f4fbff 100%);
}

.auth-card {
    width: 430px;
    background: var(--card);
    padding: 42px 34px;
    border-radius: 14px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
}

.logo-box {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    margin: 0 auto 22px;
}

.auth-title {
    margin: 0;
    text-align: center;
    font-size: 28px;
    font-weight: 800;
}

.auth-subtitle {
    margin: 8px 0 34px;
    text-align: center;
    color: var(--muted);
    font-size: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    min-height: 52px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 0 16px;
    font-size: 15px;
    outline: none;
    background: white;
}

textarea.form-control {
    min-height: 104px;
    padding-top: 14px;
    resize: vertical;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

.forgot-link {
    display: block;
    text-align: right;
    margin-top: -6px;
    margin-bottom: 24px;
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.btn {
    width: 100%;
    min-height: 52px;
    border-radius: 10px;
    border: 0;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    margin-top: 14px;
    background: white;
    color: var(--text);
    border: 1px solid var(--border);
}

.auth-link {
    margin-top: 22px;
    text-align: center;
    font-size: 14px;
}

.auth-link a {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
}

.app-body {
    background: #f8fafc;
    color: #0f172a;
}

.app-shell {
    min-height: 100vh;
    display: flex;
}

.sidebar {
    width: 240px;
    min-height: 100vh;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    position: fixed;
    inset: 0 auto 0 0;
    display: flex;
    flex-direction: column;
}

.brand {
    height: 84px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 22px;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 800;
    color: #0f172a;
}

.brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #0ea5e9;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.sidebar-menu {
    padding: 22px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-menu a {
    min-height: 48px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 10px;
    color: #334155;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
}

.sidebar-menu a.active,
.sidebar-menu a:hover {
    background: #eaf7ff;
    color: #0284c7;
}

.menu-icon {
    width: 20px;
    display: inline-flex;
    justify-content: center;
    font-size: 16px;
}

.logout-area {
    margin-top: auto;
    padding: 18px 22px;
    border-top: 1px solid #e2e8f0;
}

.logout-area button {
    background: transparent;
    border: 0;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.main-content {
    width: calc(100% - 240px);
    margin-left: 240px;
    padding: 34px 34px 40px;
}

.page-header h1 {
    margin: 0;
    font-size: 36px;
    line-height: 1.1;
    font-weight: 800;
    color: #0f172a;
}

.page-header p {
    margin: 10px 0 34px;
    color: #64748b;
    font-size: 16px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-bottom: 28px;
}

.stat-card {
    min-height: 170px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 28px 24px;
}

.stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 22px;
}

.stat-icon.blue {
    background: #e0f2fe;
    color: #0284c7;
}

.stat-icon.green {
    background: #dcfce7;
    color: #16a34a;
}

.stat-icon.orange {
    background: #ffedd5;
    color: #f97316;
}

.stat-icon.purple {
    background: #f3e8ff;
    color: #a855f7;
}

.stat-card h2 {
    margin: 0 0 10px;
    font-size: 34px;
    line-height: 1;
    font-weight: 800;
    color: #0f172a;
}

.stat-card p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
}

.chart-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 34px;
}

.chart-card h3 {
    margin: 0 0 22px;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.line-chart {
    width: 100%;
    height: 310px;
}

.line-chart svg {
    width: 100%;
    height: 100%;
}

.axis-line {
    stroke: #94a3b8;
    stroke-width: 1;
}

.grid-line {
    stroke: #e2e8f0;
    stroke-width: 1;
    stroke-dasharray: 4 4;
}

.chart-line {
    fill: none;
    stroke: #0ea5e9;
    stroke-width: 3;
}

.chart-dot {
    fill: #ffffff;
    stroke: #0ea5e9;
    stroke-width: 3;
}

.chart-label,
.chart-day {
    fill: #64748b;
    font-size: 12px;
}

.quick-section h3 {
    margin: 0 0 18px;
    font-size: 22px;
    font-weight: 800;
}

.quick-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.quick-card {
    min-height: 120px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
    color: #0f172a;
}

.quick-card.quick-primary {
    background: #0ea5e9;
    color: #ffffff;
    border-color: #0ea5e9;
}

.quick-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    flex-shrink: 0;
}

.quick-icon.muted {
    background: #f1f5f9;
    color: #334155;
}

.quick-card h4 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 800;
}

.quick-card p {
    margin: 0;
    color: inherit;
    opacity: 0.8;
    font-size: 15px;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 760px) {
    .sidebar {
        position: static;
        width: 100%;
        min-height: auto;
    }

    .app-shell {
        display: block;
    }

    .main-content {
        width: 100%;
        margin-left: 0;
        padding: 24px;
    }

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

.card{
    background:#fff;
    border-radius:16px;
    padding:24px;
    box-shadow:0 2px 12px rgba(0,0,0,.05);
}

.table-toolbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

.search-input{
    padding:10px 14px;
    border:1px solid #dbeafe;
    border-radius:10px;
    min-width:250px;
}

.btn-primary{
    background:#2563eb;
    color:white;
    padding:10px 16px;
    border-radius:10px;
    text-decoration:none;
}

.data-table{
    width:100%;
    border-collapse:collapse;
}

.data-table th{
    background:#eff6ff;
    color:#1e3a8a;
    text-align:left;
    padding:12px;
}

.data-table td{
    padding:12px;
    border-bottom:1px solid #e5e7eb;
}

.form-card{
    max-width:1000px;
}

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

.action-buttons{
    margin-top:24px;
    display:flex;
    gap:12px;
}

.btn-secondary{
    background:#e2e8f0;
    color:#0f172a;
    padding:10px 18px;
    border-radius:10px;
    text-decoration:none;
    border:none;
    cursor:pointer;
}

.btn-danger{
    background:#ef4444;
    color:white;
    border:none;
    padding:8px 14px;
    border-radius:8px;
    cursor:pointer;
}

.btn-edit{
    color:#2563eb;
    text-decoration:none;
    font-weight:600;
}

.action-cell{
    display:flex;
    gap:8px;
    align-items:center;
}

.alert-success{
    background:#dcfce7;
    color:#166534;
    border:1px solid #bbf7d0;
    padding:14px 18px;
    border-radius:10px;
    margin-bottom:20px;
    font-weight:600;
}

.search-form{
    display:flex;
    gap:10px;
}

.btn-search{
    background:#0ea5e9;
    color:white;
    border:none;
    border-radius:10px;
    padding:0 20px;
    cursor:pointer;
    font-weight:600;
}

.btn-search:hover{
    background:#0284c7;
}

.toolbar-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-internal-primary {
    background: #0ea5e9;
    color: #ffffff;
    border: 0;
    border-radius: 10px;
    padding: 13px 18px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-internal-primary:hover {
    background: #0284c7;
}

.table-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: #f8fafc;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: 12px;
    text-align: left;
    padding: 18px 22px;
    border-bottom: 1px solid #e2e8f0;
}

.data-table td {
    padding: 18px 22px;
    border-bottom: 1px solid #e2e8f0;
    color: #0f172a;
}

.data-table tr:last-child td {
    border-bottom: 0;
}

.action-link {
    color: #0284c7;
    font-weight: 700;
    text-decoration: none;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.form-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 26px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.error-text {
    color: #dc2626;
    display: block;
    margin-top: 6px;
    font-size: 13px;
}

.summary-box {
    background: #eaf7ff;
    border: 1px solid #bae6fd;
    border-radius: 14px;
    padding: 22px;
    margin-top: 8px;
    margin-bottom: 24px;
}

.summary-box p {
    margin: 0 0 8px;
    color: #0369a1;
    font-weight: 700;
}

.summary-box h2 {
    margin: 0;
    color: #0f172a;
    font-size: 30px;
}

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

.btn-cancel {
    background: #ffffff;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 13px 18px;
    font-weight: 700;
    text-decoration: none;
}

.badge {
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    text-transform: capitalize;
}

.badge-blue {
    background: #e0f2fe;
    color: #0369a1;
}

.badge-green {
    background: #dcfce7;
    color: #166534;
}

.badge-orange {
    background: #ffedd5;
    color: #c2410c;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.detail-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px;
}

.detail-card h3 {
    margin: 0 0 20px;
    font-size: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid #e2e8f0;
}

.detail-row:last-child {
    border-bottom: 0;
}

.detail-row span {
    color: #64748b;
}

.detail-row.total strong {
    font-size: 22px;
    color: #0284c7;
}

@media (max-width: 900px) {
    .form-row,
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

.filter-form {
    display: flex;
    gap: 12px;
    align-items: center;
}

.filter-select {
    width: 260px;
}

.tracking-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.tracking-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px;
}

.tracking-card-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.tracking-card-header h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 800;
}

.tracking-card-header p {
    margin: 0;
    color: #64748b;
}

.tracking-steps {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.tracking-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.step-circle {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tracking-step.active {
    color: #0284c7;
}

.tracking-step.active .step-circle {
    background: #0ea5e9;
    border-color: #0ea5e9;
    color: #ffffff;
}

.tracking-update-form {
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}

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

.empty-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 28px;
    color: #64748b;
    text-align: center;
}

@media (max-width: 900px) {
    .tracking-steps {
        grid-template-columns: repeat(3, 1fr);
    }

    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-select {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .tracking-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .tracking-card-header {
        flex-direction: column;
    }

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

/* =========================
   CUSTOMER MANAGEMENT PAGE
========================= */

.customer-page-header h1 {
    font-size: 34px;
    margin-bottom: 8px;
}

.customer-page-header p {
    margin-bottom: 28px;
}

.customer-toolbar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.customer-search-form {
    margin: 0;
}

.customer-search-box {
    width: 420px;
    height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #ffffff;
    display: flex;
    align-items: center;
    padding: 0 13px;
}

.customer-search-box .search-icon {
    color: #94a3b8;
    font-size: 18px;
    margin-right: 10px;
}

.customer-search-box input {
    width: 100%;
    height: 100%;
    border: 0;
    outline: none;
    font-size: 14px;
    color: #334155;
    background: transparent;
}

.customer-search-box input::placeholder {
    color: #94a3b8;
}

.customer-add-btn {
    height: 42px;
    background: #0ea5e9;
    color: #ffffff;
    padding: 0 20px;
    border: none;
    border-radius: 9px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.customer-add-btn:hover {
    background: #0284c7;
}

.customer-table-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
}

.customer-table {
    width: 100%;
    border-collapse: collapse;
}

.customer-table thead th {
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 800;
    text-align: left;
    padding: 17px 22px;
    border-bottom: 1px solid #e2e8f0;
}

.customer-table tbody td {
    padding: 19px 22px;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
    font-size: 14px;
    vertical-align: middle;
}

.customer-table tbody tr:last-child td {
    border-bottom: 0;
}

.customer-table tbody td:first-child {
    color: #0f172a;
    font-weight: 700;
}

.customer-action {
    display: flex;
    align-items: center;
    gap: 14px;
}

.customer-action form {
    margin: 0;
}

.edit-action {
    color: #0ea5e9;
    font-size: 16px;
    text-decoration: none;
    line-height: 1;
}

.delete-action {
    border: 0;
    background: transparent;
    color: #ef4444;
    font-size: 15px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.empty-row {
    text-align: center;
    color: #64748b;
    padding: 28px !important;
}

/* responsive customer table */
@media (max-width: 900px) {
    .customer-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .customer-search-form,
    .customer-search-box,
    .customer-add-btn {
        width: 100%;
    }

    .customer-add-btn {
        justify-content: center;
    }

    .customer-table-card {
        overflow-x: auto;
    }

    .customer-table {
        min-width: 900px;
    }
}

/*
   CUSTOMER MODAL FORM
 */

.modal-open {
    overflow: hidden;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
}

.customer-modal-card {
    width: 100%;
    max-width: 430px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.22);
    padding: 18px 18px 16px;
}

.customer-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.customer-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
}

.modal-close-btn {
    border: 0;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
}

.customer-modal-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.modal-form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.modal-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.modal-form-group input,
.modal-form-group textarea {
    width: 100%;
    border: 1px solid #dbe2ea;
    border-radius: 10px;
    background: #ffffff;
    color: #334155;
    font-size: 14px;
    padding: 12px 14px;
    outline: none;
}

.modal-form-group input {
    height: 44px;
}

.modal-form-group textarea {
    min-height: 92px;
    resize: none;
}

.modal-form-group input:focus,
.modal-form-group textarea:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.10);
}

.modal-form-group select {
    width: 100%;
    height: 42px;
    border: 1px solid #d5dde8;
    border-radius: 9px;
    background: #ffffff;
    color: #334155;
    font-size: 14px;
    padding: 0 12px;
    outline: none;
}


.customer-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
}

.modal-cancel-btn {
    height: 42px;
    border-radius: 10px;
    border: 1px solid #dbe2ea;
    background: #ffffff;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.modal-submit-btn {
    height: 42px;
    border-radius: 10px;
    border: 0;
    background: #0ea5e9;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.modal-submit-btn:hover {
    background: #0284c7;
}

.edit-action {
    border: 0;
    background: transparent;
    color: #0ea5e9;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

/* =========================
   CUSTOMER MODAL FORM
========================= */

.modal-open {
    overflow: hidden;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
}

.customer-modal-card {
    width: 100%;
    max-width: 430px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
    padding: 22px;
}

.customer-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.customer-modal-header h3 {
    margin: 0;
    color: #1e293b;
    font-size: 18px;
    font-weight: 800;
}

.modal-close-btn {
    border: 0;
    background: transparent;
    color: #94a3b8;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.customer-modal-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.modal-form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.modal-form-group label {
    color: #334155;
    font-size: 13px;
    font-weight: 600;
}

.modal-form-group input,
.modal-form-group textarea {
    width: 100%;
    border: 1px solid #d5dde8;
    border-radius: 9px;
    background: #ffffff;
    color: #334155;
    font-size: 14px;
    padding: 12px 14px;
    outline: none;
}

.modal-form-group input {
    height: 42px;
}

.modal-form-group textarea {
    min-height: 86px;
    resize: none;
}

.modal-form-group input:focus,
.modal-form-group textarea:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

.customer-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
}

.modal-cancel-btn {
    height: 42px;
    border-radius: 9px;
    border: 1px solid #d5dde8;
    background: #ffffff;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.modal-submit-btn {
    height: 42px;
    border-radius: 9px;
    border: 0;
    background: #0ea5e9;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.modal-submit-btn:hover {
    background: #0284c7;
}

.edit-action {
    border: 0;
    background: transparent;
    color: #0ea5e9;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.delete-action {
    border: 0;
    background: transparent;
    color: #ef4444;
    font-size: 15px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.error-text {
    color: #dc2626;
    font-size: 12px;
    margin-top: 2px;
}

/* =========================
   PAYMENT PAGE
========================= */

.payment-table-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
}

.payment-table {
    width: 100%;
    border-collapse: collapse;
}

.payment-table th {
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 800;
    text-align: left;
    padding: 17px 22px;
    border-bottom: 1px solid #e2e8f0;
}

.payment-table td {
    padding: 19px 22px;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
    font-size: 14px;
    vertical-align: middle;
}

.payment-table tr:last-child td {
    border-bottom: 0;
}

.payment-status {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.payment-status.unpaid {
    background: #ffedd5;
    color: #c2410c;
}

.payment-status.paid {
    background: #dcfce7;
    color: #166534;
}

.payment-detail-btn {
    height: 36px;
    border: 0;
    border-radius: 9px;
    background: #0ea5e9;
    color: #ffffff;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.payment-detail-btn:hover {
    background: #0284c7;
}

.payment-modal-card,
.payment-success-card {
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25);
}

.payment-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.payment-modal-header h3,
.payment-success-card h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
}

.payment-success-card p {
    margin: 10px 0 18px;
    color: #64748b;
}

.payment-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.payment-detail-row span {
    color: #64748b;
}

.payment-detail-row strong {
    color: #0f172a;
}

.payment-form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 14px;
}

.payment-form-group label {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.payment-form-group select,
.payment-form-group input {
    height: 42px;
    border: 1px solid #d5dde8;
    border-radius: 9px;
    padding: 0 12px;
    outline: none;
    font-size: 14px;
}

.payment-form-group small {
    color: #64748b;
    font-size: 12px;
}

.payment-service-box {
    margin-top: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
}

.payment-service-box h4 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 800;
}

.payment-total-row {
    border-bottom: 0;
    margin-top: 4px;
}

.payment-total-row strong {
    color: #0284c7;
    font-size: 20px;
}

.payment-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
}

.success-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.receipt-box {
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 16px;
    margin-top: 14px;
}

.receipt-box h3 {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 800;
}

@media print {
    @page {
        size: A4;
        margin: 12mm;
    }

    html,
    body {
        background: #ffffff !important;
        min-height: 0 !important;
        height: auto !important;
        overflow: visible !important;
    }

    body * {
        visibility: hidden !important;
    }

    .receipt-print-area {
        display: none !important;
    }

    .receipt-print-area.print-active,
    .receipt-print-area.print-active * {
        visibility: visible !important;
    }

    .receipt-print-area.print-active {
        display: block !important;
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        width: 100% !important;
        max-width: 92mm !important;
        margin: 0 auto !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
        background: #ffffff !important;
        color: #0f172a !important;
        page-break-after: avoid !important;
        break-after: avoid !important;
    }

    .modal-overlay,
    .payment-success-card {
        position: static !important;
        inset: auto !important;
        width: auto !important;
        min-height: 0 !important;
        height: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    .payment-modal-actions,
    .modal-close-btn {
        display: none !important;
    }
}


/* =========================
   TRANSACTION PAGE
========================= */

.transaction-page-header h1 {
    font-size: 34px;
    margin-bottom: 8px;
}

.transaction-page-header p {
    margin-bottom: 22px;
}

.transaction-toolbar {
    margin-bottom: 20px;
}

.transaction-add-btn {
    height: 40px;
    background: #0ea5e9;
    color: #ffffff;
    border: 0;
    border-radius: 8px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.transaction-add-btn:hover {
    background: #0284c7;
}

.transaction-table-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.transaction-table {
    width: 100%;
    border-collapse: collapse;
}

.transaction-table th {
    background: #f8fafc;
    color: #64748b;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 800;
    text-align: left;
    padding: 15px 18px;
    border-bottom: 1px solid #e2e8f0;
}

.transaction-table td {
    padding: 15px 18px;
    border-bottom: 1px solid #e2e8f0;
    color: #0f172a;
    font-size: 13px;
    vertical-align: middle;
}

.transaction-table tr:last-child td {
    border-bottom: 0;
}

.transaction-table td:first-child {
    font-weight: 800;
}

.transaction-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.transaction-status.status-process {
    background: #fef3c7;
    color: #b45309;
}

.transaction-status.status-done {
    background: #dcfce7;
    color: #15803d;
}

.transaction-eye-action {
    color: #0ea5e9;
    text-decoration: none;
    font-size: 14px;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
}

/* =========================
   TRANSACTION MODAL
========================= */

.transaction-modal-card {
    width: 100%;
    max-width: 430px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
    padding: 22px;
}

.transaction-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.transaction-modal-header h3 {
    margin: 0;
    color: #1e293b;
    font-size: 18px;
    font-weight: 800;
}

.transaction-modal-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.transaction-modal-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.transaction-modal-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.transaction-modal-group label {
    color: #334155;
    font-size: 12px;
    font-weight: 700;
}

.transaction-modal-group select,
.transaction-modal-group input {
    width: 100%;
    height: 42px;
    border: 1px solid #d5dde8;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    font-size: 13px;
    padding: 0 12px;
    outline: none;
}

.transaction-modal-group select:focus,
.transaction-modal-group input:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

.transaction-total-preview {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.transaction-total-preview span {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.transaction-total-preview strong {
    color: #0f172a;
    font-size: 16px;
    font-weight: 800;
}

.transaction-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 2px;
}

@media (max-width: 760px) {
    .transaction-table-card {
        overflow-x: auto;
    }

    .transaction-table {
        min-width: 900px;
    }

    .transaction-modal-row {
        grid-template-columns: 1fr;
    }
}


/* =========================
   ORDER TRACKING PAGE
========================= */

.tracking-page-header h1 {
    font-size: 32px;
    margin-bottom: 8px;
}

.tracking-page-header p {
    margin-bottom: 22px;
    color: #64748b;
}

.tracking-table-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.tracking-table {
    width: 100%;
    border-collapse: collapse;
}

.tracking-table th {
    background: #f8fafc;
    color: #64748b;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 800;
    text-align: left;
    padding: 15px 18px;
    border-bottom: 1px solid #e2e8f0;
}

.tracking-table td {
    padding: 15px 18px;
    border-bottom: 1px solid #e2e8f0;
    color: #0f172a;
    font-size: 13px;
    vertical-align: middle;
}

.tracking-table tr:last-child td {
    border-bottom: 0;
}

.tracking-table td:first-child {
    font-weight: 800;
}

.tracking-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.status-masuk {
    background: #f1f5f9;
    color: #475569;
}

.status-cuci {
    background: #dbeafe;
    color: #2563eb;
}

.status-kering {
    background: #cffafe;
    color: #0891b2;
}

.status-setrika {
    background: #f3e8ff;
    color: #9333ea;
}

.status-ambil {
    background: #dcfce7;
    color: #16a34a;
}

.status-selesai {
    background: #bbf7d0;
    color: #15803d;
}

.tracking-status-select {
    width: 150px;
    height: 36px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #ffffff;
    color: #0f172a;
    font-size: 12px;
    font-weight: 600;
    padding: 0 10px;
    outline: none;
    cursor: pointer;
}

.tracking-status-select:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

.tracking-legend-card {
    margin-top: 22px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 20px;
}

.tracking-legend-card p {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
}

.tracking-legend-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 900px) {
    .tracking-table-card {
        overflow-x: auto;
    }

    .tracking-table {
        min-width: 950px;
    }
}

/* =========================
   FINANCIAL REPORT PAGE
========================= */

.report-page-header h1 {
    font-size: 34px;
    margin-bottom: 8px;
}

.report-page-header p {
    margin-bottom: 24px;
}

.report-filter-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 22px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-end;
}

.report-period-group label,
.report-date-group label {
    display: block;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

.report-tabs {
    display: flex;
    gap: 8px;
}

.report-tabs button {
    height: 38px;
    border: 0;
    border-radius: 9px;
    padding: 0 16px;
    background: #f1f5f9;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.report-tabs button.active {
    background: #0ea5e9;
    color: #ffffff;
}

.report-date-group {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.report-date-group input {
    height: 40px;
    border: 1px solid #d5dde8;
    border-radius: 9px;
    padding: 0 12px;
    color: #334155;
    outline: none;
}

.report-filter-btn {
    height: 40px;
    border: 0;
    border-radius: 9px;
    background: #0ea5e9;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 0 14px;
    cursor: pointer;
}

.report-income-card {
    background: #0ea5e9;
    color: #ffffff;
    border-radius: 14px;
    padding: 28px 30px;
    margin-bottom: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.report-income-card p {
    margin: 0 0 10px;
    opacity: 0.85;
    font-size: 15px;
}

.report-income-card h2 {
    margin: 0 0 8px;
    font-size: 34px;
    font-weight: 800;
}

.report-income-card span {
    opacity: 0.9;
    font-size: 14px;
}



.report-chart-card,
.report-detail-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 22px;
}

.report-chart-card h3,
.report-detail-card h3 {
    margin: 0 0 18px;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.report-chart {
    height: 280px;
    display: flex;
    align-items: flex-end;
    gap: 28px;
    padding: 20px 20px 8px;
    border-left: 1px solid #cbd5e1;
    border-bottom: 1px solid #cbd5e1;
}

.report-bar-item {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.report-bar-track {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.report-bar {
    width: 70%;
    min-height: 0;
    background: #0ea5e9;
    border-radius: 8px 8px 0 0;
}

.report-bar-item span {
    color: #64748b;
    font-size: 12px;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
}

.report-table th {
    background: #f8fafc;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 12px;
    font-weight: 800;
    text-align: left;
    padding: 15px 18px;
    border-bottom: 1px solid #e2e8f0;
}

.report-table th:last-child,
.report-table td:last-child {
    text-align: right;
}

.report-table td {
    padding: 17px 18px;
    border-bottom: 1px solid #e2e8f0;
    color: #0f172a;
    font-size: 14px;
}

.report-total-row td {
    font-weight: 800;
    background: #f8fafc;
}

@media (max-width: 900px) {
    .report-filter-card,
    .report-income-card,
    .report-date-group {
        flex-direction: column;
        align-items: stretch;
    }

    .report-chart {
        overflow-x: auto;
        gap: 16px;
    }

    .report-bar-item {
        min-width: 80px;
    }
}

@media print {
    .sidebar,
    .report-filter-card,
    .report-download-btn {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }
}

/* =========================
   DASHBOARD DYNAMIC CHART
========================= */

.dashboard-bar-chart {
    height: 300px;
    display: flex;
    align-items: flex-end;
    gap: 22px;
    padding: 22px 20px 10px;
    border-left: 1px solid #cbd5e1;
    border-bottom: 1px solid #cbd5e1;
}

.dashboard-bar-item {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.dashboard-bar-track {
    width: 100%;
    height: 240px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.dashboard-bar {
    width: 58%;
    background: #0ea5e9;
    border-radius: 8px 8px 0 0;
    transition: height 0.25s ease;
}

.dashboard-bar-item span {
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

@media (max-width: 900px) {
    .dashboard-bar-chart {
        overflow-x: auto;
        gap: 16px;
    }

    .dashboard-bar-item {
        min-width: 70px;
    }
}

/* =========================
   CUSTOMER PORTAL
========================= */

.portal-body {
    background: #f8fafc;
    color: #0f172a;
}

.portal-shell {
    min-height: 100vh;
    display: flex;
}

.portal-sidebar {
    width: 240px;
    min-height: 100vh;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    position: fixed;
    inset: 0 auto 0 0;
    display: flex;
    flex-direction: column;
}

.portal-main-content {
    width: calc(100% - 240px);
    margin-left: 240px;
    padding: 34px;
}

.portal-page-header h1 {
    font-size: 34px;
    margin-bottom: 8px;
}

.portal-page-header p {
    margin-bottom: 26px;
    color: #64748b;
}

.portal-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 24px;
}

.portal-stat-card,
.portal-profile-card,
.portal-order-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px;
}

.portal-stat-card span {
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
}

.portal-stat-card h2 {
    margin: 12px 0 8px;
    font-size: 34px;
    font-weight: 800;
}

.portal-stat-card p {
    margin: 0;
    color: #64748b;
}

.portal-profile-card {
    margin-bottom: 24px;
}

.portal-profile-card h3,
.portal-order-card h3 {
    margin: 0 0 18px;
    font-size: 20px;
    font-weight: 800;
}

.portal-profile-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid #e2e8f0;
}

.portal-profile-row:last-child {
    border-bottom: 0;
}

.portal-profile-row span {
    color: #64748b;
}

.portal-profile-row strong {
    color: #0f172a;
    text-align: right;
}

.portal-profile-row.total strong {
    color: #0284c7;
    font-size: 20px;
}

.portal-order-table {
    width: 100%;
    border-collapse: collapse;
}

.portal-order-table th {
    background: #f8fafc;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 12px;
    font-weight: 800;
    text-align: left;
    padding: 15px 18px;
    border-bottom: 1px solid #e2e8f0;
}

.portal-order-table td {
    padding: 16px 18px;
    border-bottom: 1px solid #e2e8f0;
    color: #0f172a;
    font-size: 14px;
}

.portal-order-table tr:last-child td {
    border-bottom: 0;
}

.portal-status-badge,
.portal-payment-badge {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    background: #e0f2fe;
    color: #0369a1;
}

.portal-payment-badge.unpaid {
    background: #ffedd5;
    color: #c2410c;
}

.portal-payment-badge.paid {
    background: #dcfce7;
    color: #166534;
}

.portal-detail-link {
    color: #0284c7;
    font-weight: 800;
    text-decoration: none;
}

.portal-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.portal-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 22px;
}

@media (max-width: 900px) {
    .portal-stats-grid,
    .portal-detail-grid {
        grid-template-columns: 1fr;
    }

    .portal-order-card {
        overflow-x: auto;
    }

    .portal-order-table {
        min-width: 760px;
    }
}

@media (max-width: 760px) {
    .portal-sidebar {
        position: static;
        width: 100%;
        min-height: auto;
    }

    .portal-shell {
        display: block;
    }

    .portal-main-content {
        width: 100%;
        margin-left: 0;
        padding: 24px;
    }
}

/* =========================
   DELIVERY / PICKUP REQUEST PAGE
========================= */

.delivery-page-header h1 {
    font-size: 34px;
    margin-bottom: 8px;
}

.delivery-page-header p {
    margin-bottom: 22px;
    color: #64748b;
}

.delivery-table-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.delivery-table {
    width: 100%;
    border-collapse: collapse;
}

.delivery-table th {
    background: #f8fafc;
    color: #64748b;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 800;
    text-align: left;
    padding: 15px 18px;
    border-bottom: 1px solid #e2e8f0;
}

.delivery-table td {
    padding: 15px 18px;
    border-bottom: 1px solid #e2e8f0;
    color: #0f172a;
    font-size: 13px;
    vertical-align: middle;
}

.delivery-table tr:last-child td {
    border-bottom: 0;
}

.delivery-table td:first-child {
    font-weight: 800;
}

.delivery-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.delivery-waiting {
    background: #fef3c7;
    color: #b45309;
}

.delivery-process {
    background: #dbeafe;
    color: #2563eb;
}

.delivery-done {
    background: #dcfce7;
    color: #15803d;
}

.delivery-cancelled {
    background: #fee2e2;
    color: #b91c1c;
}

.delivery-status-select {
    width: 180px;
    height: 36px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #ffffff;
    color: #0f172a;
    font-size: 12px;
    font-weight: 600;
    padding: 0 10px;
    outline: none;
    cursor: pointer;
}

.delivery-confirm-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.delivery-confirm-form input {
    width: 95px;
    height: 34px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0 10px;
    font-size: 12px;
    outline: none;
}

.delivery-confirm-form button {
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: #0ea5e9;
    color: #ffffff;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.delivery-order-link {
    color: #0284c7;
    font-weight: 800;
    text-decoration: none;
    font-size: 12px;
}

.delivery-muted-text {
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.portal-pickup-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 22px 24px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.portal-pickup-card h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 800;
}

.portal-pickup-card p {
    margin: 0;
    color: #64748b;
}

.portal-pickup-btn {
    height: 42px;
    border: 0;
    border-radius: 10px;
    background: #0ea5e9;
    color: #ffffff;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.portal-pickup-btn:hover {
    background: #0284c7;
}

@media (max-width: 900px) {
    .delivery-table-card {
        overflow-x: auto;
    }

    .delivery-table {
        min-width: 1000px;
    }

    .portal-pickup-card {
        flex-direction: column;
        align-items: stretch;
    }

    .portal-pickup-btn {
        width: 100%;
    }
}


/* =========================
   SETTINGS PAGE
========================= */

.settings-page-header h1 {
    font-size: 34px;
    margin-bottom: 8px;
}

.settings-page-header p {
    color: #64748b;
    margin-bottom: 24px;
}

.settings-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px;
}

.settings-list {
    display: grid;
    gap: 16px;
}

.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 18px 0;
    border-bottom: 1px solid #e2e8f0;
}

.settings-item:last-child {
    border-bottom: 0;
}

.settings-item label {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}

.settings-item p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    max-width: 560px;
}

.settings-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 240px;
}

.settings-input-group input {
    width: 150px;
    height: 40px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    padding: 0 12px;
    font-size: 14px;
    outline: none;
}

.settings-input-group span {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.settings-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
}

.settings-actions button {
    height: 42px;
    border: 0;
    border-radius: 10px;
    background: #0ea5e9;
    color: #ffffff;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.settings-actions button:hover {
    background: #0284c7;
}

@media (max-width: 760px) {
    .settings-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .settings-input-group {
        width: 100%;
    }

    .settings-input-group input {
        width: 100%;
    }
}
