/* ============================================================
   MANAGER — UPDATE STATUS (KANBAN BOARD)
   Scoped to .update-status-page
   ============================================================ */

.update-status-page {
    --us-teal: #0da7ac;
    --us-teal-deep: #0a8fa4;
    --us-teal-darker: #074447;
    --us-foam: #eafcfb;
    --us-ink: #1f2d3d;
    --us-line: #e9ecef;
    --us-muted: #6c757d;
}

.update-status-page h2 {
    font-weight: 700;
    color: var(--us-ink);
}

/* ---------- Board layout ---------- */

.kanban-board {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 12px;
    align-items: flex-start;
    justify-content: center;
}

.kanban-column {
    flex: 0 0 300px;
    background: #f4f7f7;
    border-radius: 14px;
    border: 1px solid var(--us-line);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 220px);
}

.kanban-column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    font-weight: 700;
    font-size: 13.5px;
    border-radius: 14px 14px 0 0;
    color: #fff;
}

.kanban-column-header.status-pending    { background: linear-gradient(135deg, #f0ad4e, #d99633); }
.kanban-column-header.status-confirmed  { background: linear-gradient(135deg, #3b82f6, #1e40af); }
.kanban-column-header.status-processing { background: linear-gradient(135deg, #17a2b8, #0d7a8a); }
.kanban-column-header.status-completed  { background: linear-gradient(135deg, var(--us-teal), var(--us-teal-deep)); }

.kanban-count {
    background: rgba(255, 255, 255, .25);
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 12px;
}

.kanban-column-body {
    display: flex;
    flex-direction: column;
}

.kanban-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--us-muted);
    font-size: 13px;
    min-height: 120px;
}

/* ---------- Cards ---------- */
.kanban-progress {
    margin-bottom: 10px;
}

.kanban-progress-track {
    height: 7px;
    background: #f1f3f5;
    border-radius: 99px;
    overflow: hidden;
}

.kanban-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--us-teal);
    border-radius: 99px;
    transition: width 1s linear;
}

.kanban-progress.near-done .kanban-progress-fill {
    background: #f0ad4e;
}

.kanban-progress.overdue .kanban-progress-fill {
    background: #dc3545;
}

.kanban-progress-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--us-muted);
    margin-top: 4px;
}

.kanban-progress.near-done .kanban-progress-label {
    color: #92400e;
}

.kanban-progress.overdue .kanban-progress-label {
    color: #9c2b2b;
}

.kanban-card {
    background: #fff;
    border: 1px solid var(--us-line);
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 2px 8px rgba(10, 110, 116, .06);
    transition: box-shadow .15s ease, transform .15s ease;
}

.kanban-card:hover {
    box-shadow: 0 6px 18px rgba(10, 110, 116, .14);
    transform: translateY(-2px);
}

.kanban-card-highlight {
    outline: 3px solid #0d6efd;
    outline-offset: 2px;
}

.kanban-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.kanban-card-top strong {
    font-size: 14px;
    color: var(--us-ink);
}

.online-badge {
    background: #d1ecf1;
    color: #0c5460;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
}

.kanban-customer {
    font-weight: 600;
    font-size: 13.5px;
    color: var(--us-ink);
}

.kanban-phone {
    font-size: 12px;
    color: var(--us-muted);
    margin-bottom: 8px;
}

.kanban-meta {
    font-size: 12.5px;
    color: var(--us-ink);
    border-top: 1px dashed var(--us-line);
    border-bottom: 1px dashed var(--us-line);
    padding: 8px 0;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.kanban-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.kanban-amount {
    font-weight: 800;
    color: var(--us-teal-darker);
    font-size: 14px;
}

.kanban-advance-form .btn-advance,
#advanceModal .btn-advance {
    background: linear-gradient(135deg, var(--us-teal), var(--us-teal-deep));
    color: #fff;
    border: none;
    font-weight: 700;
    font-size: 12.5px;
    border-radius: 8px;
    padding: 8px 16px;
    transition: transform .15s ease, box-shadow .15s ease;
}

.kanban-advance-form .btn-advance:hover,
#advanceModal .btn-advance:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(10, 143, 164, .3);
    color: #fff;
}
/* ---------- Responsive ---------- */


@media (max-width: 767px) {

    .kanban-board {
        display: flex;
        flex-direction: column;
        gap: 16px;
        width: 100%;
        overflow-x: hidden;
        padding-bottom: 12px;
    }

    .kanban-column {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        max-height: none;
    }

    .kanban-column-body {
        width: 100%;
    }

    .kanban-empty {
        min-height: 100px;
    }

    .kanban-card {
        width: 100%;
    }
}
/* ============================================
   BADGES
   ============================================ */
.walkin-badge {
    background: #9C27B0;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
}

/* ============================================
   AUTO-COMPLETE BADGE
   ============================================ */
.auto-complete-badge {
    background: #d1ecf1;
    color: #0c5460;
    padding: 12px 14px;
    border-radius: 8px;
    margin-top: 15px;
    border-left: 4px solid #0c5460;
    font-size: 13px;
    font-weight: 500;
}

/* ============================================
   NOTES SECTION
   ============================================ */
.notes-section {
    background: #fff8e6;
    padding: 14px 16px;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    margin-top: 15px;
    margin-bottom: 15px;
}

.notes-section strong {
    color: #856404;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.notes-section p {
    margin: 0;
    color: #856404;
    font-size: 13px;
    line-height: 1.6;
}

/* ============================================
   ACCORDION
   ============================================ */
.accordion-item {
    border: none !important;
    background: #fff;
    border-left: 4px solid #0da7ac !important;
    margin-bottom: 12px !important;
}

.accordion-item.pending {
    border-left-color: #ffc107 !important;
}

.accordion-item.confirmed {
    border-left-color: #6ee2bc !important;
}

.accordion-item.processing {
    border-left-color: #00d9ff !important;
}

.accordion-button {
    padding: 18px 20px;
    font-weight: 600;
    color: #1f2d3d;
    background: #fff;
    border: none;
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-button:not(.collapsed) {
    background: #f8f9fa;
    box-shadow: none;
}

.accordion-body {
    padding: 20px;
    background: #fff;
}

/* ============================================
   CUSTOMER SECTION
   ============================================ */
.customer-section {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.customer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0da7ac, #0a8fa4);
    color: white;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(13, 167, 172, 0.2);
}

.customer-details {
    flex: 1;
}

.customer-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.customer-name {
    margin: 0;
    font-weight: 700;
    color: #1f2d3d;
    font-size: 0.95rem;
}

.customer-phone {
    color: #6c757d;
    font-size: 0.85rem;
    margin: 0;
}

/* ============================================
   ORDER HEADER
   ============================================ */
.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #edf1f5;
    margin-bottom: 20px;
}

.order-id {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2d3d;
}

.order-header .badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    letter-spacing: 0.4px;
    font-weight: 600;
}

/* ============================================
   DASHBOARD CARD
   ============================================ */
.dashboard-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.25s ease;
    background: #fff;
}

.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.dashboard-card .card-body {
    padding: 24px;
}

/* ============================================
   TABLE STYLING
   ============================================ */
.table th {
    font-weight: 600;
    color: #6c757d;
    border-top: none;
    border-bottom: 2px solid #edf1f5;
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.table td {
    border-top: none;
    color: #1f2d3d;
    padding: 12px 8px;
}

.table tr {
    border-bottom: 1px solid #f1f3f5;
}

.table tr:last-child {
    border-bottom: none;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-select,
.form-control {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 10px 12px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.form-select:focus,
.form-control:focus {
    border-color: #0da7ac;
    box-shadow: 0 0 0 3px rgba(13, 167, 172, 0.1);
}

.form-label {
    font-weight: 600;
    color: #1f2d3d;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    background: linear-gradient(135deg, #0da7ac, #0a8fa4);
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0a8fa4, #087a92);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 167, 172, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    border-radius: 8px;
    border: none;
    padding: 12px 16px;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
}

.alert-light {
    background: #f8f9fa;
    color: #1f2d3d;
}

/* ============================================
   BADGES (Bootstrap Override)
   ============================================ */
.badge {
    border-radius: 6px;
    padding: 5px 12px;
    font-weight: 600;
    font-size: 0.8rem;
}

.bg-warning {
    background: #ffc107 !important;
}

.bg-info {
    background: #6ee2bc !important;
}

.status-cyan {
    background: #00d9ff !important;
}

.bg-success {
    background: #28a745 !important;
}

/* ============================================
   UTILITY
   ============================================ */
hr {
    border-color: #edf1f5;
    margin: 20px 0;
}

.text-muted {
    color: #6c757d !important;
}
