/**
 * Custom Dashboard Buyer - UI/UX Improvements
 * User-friendly & Mobile Responsive Design
 * =========================================================
 */

/* ============================================
   1. DROPDOWN FIX - High z-index for all dropdowns
   ============================================ */

/* Fix sorting dropdown z-index */
.sorting-info {
    position: relative;
    z-index: 1;
    overflow: visible !important;
}

.sorting-info .filter-group {
    position: relative;
    z-index: 100;
}

.sorting-info .filter-group .dropdown {
    position: relative;
    z-index: 1000;
}

.sorting-info .filter-group .dropdown-menu {
    position: absolute;
    z-index: 9999 !important;
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 12px !important;
    padding: 8px 0 !important;
    margin-top: 8px !important;
}

.sorting-info .filter-group .dropdown-item {
    padding: 10px 16px !important;
    font-size: 14px;
    border-radius: 8px;
    margin: 2px 8px;
    transition: all 0.2s ease;
}

.sorting-info .filter-group .dropdown-item:hover {
    background: #f8f9fa !important;
}

.sorting-info .filter-group .dropdown-item.active {
    background: #1b3c53 !important;
    color: #fff !important;
}

.sorting-info .filter-group .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.sorting-info .filter-group .dropdown-toggle:hover {
    border-color: #1b3c53;
    box-shadow: 0 2px 8px rgba(27, 60, 83, 0.15);
}

/* ============================================
   2. DASHBOARD CONTENT - Modern Layout
   ============================================ */

.content.dashboard-content {
    padding: 20px 0 40px;
    background: #f5f7fa;
    min-height: calc(100vh - 200px);
}

/* Content Header */
.content-header {
    margin-bottom: 24px;
}

.content-header h4 {
    font-size: 24px;
    font-weight: 700;
    color: #1b3c53;
    margin: 0;
}

/* ============================================
   3. SORTING INFO - Enhanced Design
   ============================================ */

.sorting-info {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* ============================================
   4. CARD DESIGN - Modern & Clean
   ============================================ */

.card.book-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    background: #ffffff;
    overflow: hidden;
}

.card.book-card .card-body {
    padding: 24px;
}

/* ============================================
   5. TABLE STYLING - Enhanced UX
   ============================================ */

.table-responsive.dashboard-table {
    border-radius: 12px;
    overflow: hidden;
}

.table.datatable thead th {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    border-bottom: 2px solid #1b3c53;
    padding: 16px 12px;
    background: #f8f9fa;
}

.table.datatable tbody td {
    padding: 16px 12px;
    vertical-align: middle;
    border-bottom: 1px solid #e9ecef;
    color: #495057;
}

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

.table.datatable tbody tr:last-child td {
    border-bottom: none;
}

/* Table Links */
.table.datatable a {
    color: #1b3c53;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.table.datatable a:hover {
    color: #0d2839;
    text-decoration: underline;
}

/* Status Badges - scoped to avoid header conflicts */
.table.datatable .badge,
.sorting-info .badge,
.rc-dash .badge {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
}

/* Scoped badge-light-success - hanya di dashboard */
.content.dashboard-content .badge-light-success,
.sorting-info .badge-light-success,
.rc-dash .badge-light-success {
    background: #d1e7dd;
    color: #0f5132;
}

/* Action Buttons - Scoped ke dashboard */
.content.dashboard-content .btn-sm,
.sorting-info .btn-sm,
.rc-dash .btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.content.dashboard-content .btn-outline-info,
.sorting-info .btn-outline-info,
.rc-dash .btn-outline-info {
    border-color: #1b3c53;
    color: #1b3c53;
}

.content.dashboard-content .btn-outline-info:hover,
.sorting-info .btn-outline-info:hover,
.rc-dash .btn-outline-info:hover {
    background: #1b3c53;
    color: #fff;
    border-color: #1b3c53;
}

.content.dashboard-content .btn-outline-success,
.sorting-info .btn-outline-success,
.rc-dash .btn-outline-success {
    border-color: #198754;
    color: #198754;
}

.content.dashboard-content .btn-outline-success:hover,
.sorting-info .btn-outline-success:hover,
.rc-dash .btn-outline-success:hover {
    background: #198754;
    color: #fff;
    border-color: #198754;
}

/* ============================================
   6. PROFILE SETTINGS - Enhanced Design
   ============================================ */

.settings-info {
    background: transparent;
}

.profile-info-grid {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.profile-info-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e9ecef;
}

.profile-info-header h5 {
    font-size: 18px;
    font-weight: 700;
    color: #1b3c53;
    margin: 0 0 4px 0;
}

.profile-info-header p {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

.profile-info-content h6 {
    font-size: 14px;
    font-weight: 600;
    color: #1b3c53;
    margin: 0 0 4px 0;
}

.profile-info-content p {
    font-size: 13px;
    color: #6c757d;
    margin: 0;
}

/* Profile Picture */
.profile-info-pic {
    margin-bottom: 20px;
}

.profile-info-img {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
}

.profile-info-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.profile-edit-info {
    position: absolute;
    bottom: 0;
    right: 0;
}

.profile-edit-info a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1b3c53;
    color: #fff;
    border-radius: 50%;
    border: 3px solid #fff;
    transition: all 0.2s ease;
}

.profile-edit-info a:hover {
    background: #0d2839;
    transform: scale(1.1);
}

/* Form Styling */
.profile-form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 8px;
}

.profile-form-group .form-control {
    border-radius: 10px;
    border: 1px solid #ced4da;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.profile-form-group .form-control:focus {
    border-color: #1b3c53;
    box-shadow: 0 0 0 3px rgba(27, 60, 83, 0.1);
}

.profile-submit-btn {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.profile-submit-btn .btn-primary {
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    background: #1b3c53;
    border: none;
}

.profile-submit-btn .btn-primary:hover {
    background: #0d2839;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 60, 83, 0.2);
}

/* Address Table */
.table-responsive.dashboard-table table th,
.table-responsive.dashboard-table table td {
    padding: 16px 12px;
}

/* Action Buttons in Table - Scoped */
.content.dashboard-content .btn-primary.rounded-pill,
.content.dashboard-content .btn-danger.rounded-pill,
.rc-dash .btn-primary.rounded-pill,
.rc-dash .btn-danger.rounded-pill {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 20px;
    font-weight: 500;
}

.content.dashboard-content .btn-primary.rounded-pill,
.rc-dash .btn-primary.rounded-pill {
    background: #1b3c53;
    border: none;
}

.content.dashboard-content .btn-primary.rounded-pill:hover,
.rc-dash .btn-primary.rounded-pill:hover {
    background: #0d2839;
}

.content.dashboard-content .btn-danger.rounded-pill,
.rc-dash .btn-danger.rounded-pill {
    background: #dc3545;
    border: none;
}

.content.dashboard-content .btn-danger.rounded-pill:hover,
.rc-dash .btn-danger.rounded-pill:hover {
    background: #bb2d3b;
}

/* Form Switch - Scoped ke dashboard */
.content.dashboard-content .form-check-input:checked,
.rc-dash .form-check-input:checked {
    background-color: #1b3c53;
    border-color: #1b3c53;
}

/* ============================================
   7. BUTTON STYLES - Enhanced
   ============================================ */

/* Scoped .btn-success - hanya di dashboard */
.content.dashboard-content .btn-success,
.sorting-info .btn-success,
.rc-dash .btn-success {
    background: #198754;
    border: none;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
}

.content.dashboard-content .btn-success:hover,
.sorting-info .btn-success:hover,
.rc-dash .btn-success:hover {
    background: #157347;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.2);
}

/* ============================================
   8. RESPONSIVE - Mobile First
   ============================================ */

@media (max-width: 991.98px) {
    .content.dashboard-content {
        padding: 16px 0 32px;
    }

    .content-header h4 {
        font-size: 20px;
    }

    .sorting-info {
        padding: 16px;
        border-radius: 12px;
    }

    .card.book-card .card-body {
        padding: 16px;
    }

    /* Responsive Table */
    .table-responsive.dashboard-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

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

    .table.datatable thead th,
    .table.datatable tbody td {
        padding: 12px 8px;
        font-size: 13px;
    }

    /* Responsive Profile */
    .profile-info-grid {
        padding: 16px;
        border-radius: 12px;
    }

    .profile-info-img {
        width: 100px;
        height: 100px;
    }

    .profile-info-header {
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    .profile-info-header h5 {
        font-size: 16px;
    }

    /* Filter Group Mobile */
    .filter-group {
        width: 100%;
    }

    .sorting-info .filter-group .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 767.98px) {
    .content.dashboard-content {
        padding: 12px 0 24px;
    }

    .content-header {
        margin-bottom: 16px;
    }

    .content-header h4 {
        font-size: 18px;
    }

    .sorting-info {
        padding: 12px;
        margin-bottom: 16px;
    }

    .card.book-card {
        border-radius: 12px;
    }

    .card.book-card .card-body {
        padding: 12px;
    }

    /* Profile Mobile */
    .profile-info-grid {
        padding: 12px;
    }

    .profile-info-header {
        text-align: center;
    }

    .profile-info-header h5 {
        font-size: 15px;
    }

    .profile-info-header p {
        font-size: 13px;
    }

    .profile-info-img {
        width: 80px;
        height: 80px;
    }

    .profile-edit-info a {
        width: 32px;
        height: 32px;
    }

    .profile-submit-btn {
        justify-content: center;
    }

    .profile-submit-btn .btn-primary {
        width: 100%;
    }

    /* Table Mobile - Scrollable */
    .table-responsive.dashboard-table {
        margin: 0 -12px;
        border-radius: 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .table-responsive.dashboard-table::-webkit-scrollbar {
        display: none;
    }

    .table.datatable {
        min-width: 500px;
    }

    .table.datatable thead th {
        font-size: 11px;
        padding: 10px 8px;
    }

    .table.datatable tbody td {
        font-size: 12px;
        padding: 10px 8px;
    }

    /* Hide less important columns on mobile */
    .table.datatable th:nth-child(4),
    .table.datatable td:nth-child(4) {
        display: none;
    }

    /* Action buttons stack vertically */
    .table.datatable .btn-sm {
        display: block;
        width: 100%;
        margin: 4px 0;
        text-align: center;
    }

    /* Add Address button mobile */
    .profile-info-header .btn-success {
        width: 100%;
        margin-top: 12px;
        text-align: center;
    }

    .profile-info-header .row {
        flex-direction: column;
        gap: 12px;
    }

    /* Form switches mobile */
    .form-check-input {
        width: 2.5em;
        height: 1.25em;
    }
}

@media (max-width: 575.98px) {
    .table.datatable {
        font-size: 12px;
    }

    .table.datatable thead th,
    .table.datatable tbody td {
        padding: 8px 6px;
    }

    .table.datatable .table-avatar p {
        font-size: 11px;
    }

    /* Stack action buttons */
    .btn-sm {
        font-size: 12px;
        padding: 6px 12px;
    }

    /* Profile picture mobile */
    .profile-info-img {
        width: 80px;
        height: 80px;
    }

    .profile-info-content {
        text-align: center;
    }

    /* Dropdown mobile full width */
    .sorting-info .filter-group .dropdown-menu {
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        min-width: unset !important;
    }
}

/* ============================================
   9. EMPTY STATE - Enhanced
   ============================================ */

/* Scoped empty state - hanya di dashboard */
.content.dashboard-content .table tbody tr td.text-center,
.rc-dash .table tbody tr td.text-center {
    padding: 40px 20px;
    color: #6c757d;
    font-size: 14px;
}

/* ============================================
   10. BADGES - Modern Design
   ============================================ */

/* Scoped badge styles - tidak mempengaruhi header */
.table.datatable .badge,
.sorting-info .badge,
.rc-dash .badge {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ============================================
   11. UTILITY CLASSES
   ============================================ */

/* Scoped utility classes - hanya di dashboard */
.content.dashboard-content .text-darker,
.sorting-info .text-darker,
.rc-dash .text-darker {
    color: #212529;
    font-weight: 600;
}

.content.dashboard-content .table-avatar,
.rc-dash .table-avatar {
    display: flex;
    align-items: center;
}

.content.dashboard-content .table-head-name,
.rc-dash .table-head-name {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.content.dashboard-content .table-head-name a,
.rc-dash .table-head-name a {
    color: #1b3c53;
    font-weight: 600;
    text-decoration: none;
}

.content.dashboard-content .table-head-name a:hover,
.rc-dash .table-head-name a:hover {
    color: #0d2839;
}

.content.dashboard-content .table-head-name p,
.rc-dash .table-head-name p {
    color: #6c757d;
    font-size: 13px;
    margin: 0;
}

/* ============================================
   12. ANIMATIONS & TRANSITIONS
   ============================================ */

.content.dashboard-content .btn,
.content.dashboard-content .dropdown-item,
.content.dashboard-content .table.datatable a,
.rc-dash .btn,
.rc-dash .dropdown-item,
.rc-dash .table.datatable a {
    transition: all 0.2s ease;
}

/* ============================================
   13. FOCUS STATES - Accessibility
   ============================================ */

/* Scoped focus states - tidak mempengaruhi header */
.content.dashboard-content .btn:focus-visible,
.sorting-info .dropdown-toggle:focus-visible,
.content.dashboard-content a:focus-visible,
.rc-dash .btn:focus-visible,
.rc-dash .dropdown-toggle:focus-visible,
.rc-dash a:focus-visible {
    outline: 2px solid #1b3c53;
    outline-offset: 2px;
}

/* ============================================
   14. PRINT STYLES
   ============================================ */

@media print {
    .content.dashboard-content {
        background: #fff;
    }

    .sorting-info,
    .filter-group {
        display: none;
    }

    .card.book-card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}

/* ============================================
   15. ORDER STATS - Display in sorting info
   ============================================ */

.order-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 10px;
}

.order-stats .stat-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1b3c53;
    color: #fff;
    border-radius: 10px;
    font-size: 20px;
}

.order-stats .stat-info {
    display: flex;
    flex-direction: column;
}

.order-stats .stat-info strong {
    font-size: 18px;
    font-weight: 700;
    color: #1b3c53;
    line-height: 1;
}

.order-stats .stat-info span {
    font-size: 12px;
    color: #6c757d;
}

/* ============================================
   16. FILTER BUTTON - Enhanced styling
   ============================================ */

.btn-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    color: #495057;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-filter:hover,
.btn-filter:focus {
    border-color: #1b3c53;
    background: #fff;
    box-shadow: 0 2px 8px rgba(27, 60, 83, 0.15);
}

.btn-filter .filter-label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-filter .filter-label i {
    font-size: 16px;
}

/* ============================================
   17. ENHANCED DROPDOWN MENU - With icons
   HANYA untuk dropdown di dashboard (bukan header)
   ============================================ */

/* Dashboard-specific dropdown styles */
.sorting-info .dropdown-menu.dropdown-menu-end,
.rc-dash .dropdown-menu.dropdown-menu-end {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 12px !important;
    padding: 8px 0 !important;
    margin-top: 8px !important;
}

.sorting-info .dropdown-menu li,
.rc-dash .dropdown-menu li {
    margin: 0;
}

.sorting-info .dropdown-menu .dropdown-item,
.rc-dash .dropdown-menu .dropdown-item {
    padding: 10px 16px !important;
    font-size: 14px;
    border-radius: 8px;
    margin: 2px 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.sorting-info .dropdown-menu .dropdown-item i,
.rc-dash .dropdown-menu .dropdown-item i {
    font-size: 16px;
    color: #6c757d;
}

.sorting-info .dropdown-menu .dropdown-item:hover,
.rc-dash .dropdown-menu .dropdown-item:hover {
    background: #f8f9fa !important;
}

.sorting-info .dropdown-menu .dropdown-item:hover i,
.rc-dash .dropdown-menu .dropdown-item:hover i {
    color: #1b3c53;
}

.sorting-info .dropdown-menu .dropdown-item.active,
.rc-dash .dropdown-menu .dropdown-item.active {
    background: #1b3c53 !important;
    color: #fff !important;
}

.sorting-info .dropdown-menu .dropdown-item.active i,
.rc-dash .dropdown-menu .dropdown-item.active i {
    color: #fff !important;
}

/* ============================================
   18. TABLE ENHANCEMENTS - Better data display
   ============================================ */

/* Scoped table enhancements - hanya di dashboard */
.content.dashboard-content .invoice-number,
.rc-dash .invoice-number {
    color: #1b3c53;
    font-weight: 600;
    font-family: "Courier New", monospace;
}

.content.dashboard-content .price-tag,
.rc-dash .price-tag {
    color: #1b3c53;
    font-weight: 700;
    font-size: 15px;
}

.content.dashboard-content .contact-info,
.rc-dash .contact-info {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #6c757d;
    font-size: 13px;
}

.content.dashboard-content .contact-info i,
.rc-dash .contact-info i {
    font-size: 14px;
}

/* ============================================
   19. EMPTY STATE - User-friendly design
   ============================================ */

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.content.dashboard-content .empty-state,
.rc-dash .empty-state {
    text-align: center;
    padding: 60px 20px;
}

.content.dashboard-content .empty-state-icon,
.rc-dash .empty-state-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: #f8f9fa;
    border-radius: 50%;
    color: #adb5bd;
    font-size: 40px;
}

.content.dashboard-content .empty-state h5,
.rc-dash .empty-state h5 {
    font-size: 18px;
    font-weight: 600;
    color: #1b3c53;
    margin: 0 0 8px 0;
}

.content.dashboard-content .empty-state p,
.rc-dash .empty-state p {
    color: #6c757d;
    font-size: 14px;
    margin: 0 0 20px 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.content.dashboard-content .empty-state .btn,
.rc-dash .empty-state .btn {
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ============================================
   20. TEXT MUTED HELPER
   ============================================ */
/* 
.text-muted {
    color: #6c757d !important;
} */

/* ============================================
   21. MOBILE ENHANCEMENTS
   ============================================ */

@media (max-width: 767.98px) {
    .order-stats {
        margin-bottom: 12px;
    }

    .order-stats .stat-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .order-stats .stat-info strong {
        font-size: 16px;
    }

    .order-stats .stat-info span {
        font-size: 11px;
    }

    .empty-state {
        padding: 40px 16px;
    }

    .empty-state-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }

    .empty-state h5 {
        font-size: 16px;
    }

    .empty-state p {
        font-size: 13px;
    }

    .empty-state .btn {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 575.98px) {
    .sorting-info {
        padding: 12px;
    }

    .order-stats {
        width: 100%;
        margin-bottom: 12px;
    }

    .btn-filter {
        font-size: 13px;
        padding: 8px 12px;
    }

    .btn-filter .filter-label i {
        font-size: 14px;
    }
}
/* =========================================================
   rc-dashboard-shopee.css
   - Shopee-like sidebar + tabs + cards
   - 1 file untuk: dashboard shell, order, payment
   - COLOR: pakai :root dari style sebelumnya (user tokens)
   ========================================================= */

/* ====== TOKENS (PAKAI PUNYA KAMU) ====== */
:root {
    --primary: #1b3c53;
    --primary-dark: #213c51;
    --text: #666666;
    --heading: #222222;
    --light: #888888;
    --border: #ededed;
    --backgorund-1: #f5f5f5;
    --background-2: #f6f6fc;
    --white: #ffffff;
    --background-3: #f3f9fb;
    --line: #d9d9d9;

    /* Compatibility bridge */
    --rc-orange: var(--primary);
    --rc-orange-dark: var(--primary);
    --rc-orange-darker: #1b3c53;

    --rc-text: #111827;
    --rc-muted: #777777;

    --rc-r6: 6px;
    --rc-r10: 10px;
    --rc-r12: 12px;

    --rc-shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.12);
    --rc-shadow-strong: 0 14px 38px rgba(0, 0, 0, 0.18);
}

/* ====== BASE ====== */
.rc-dash,
.rc-dash * {
    box-sizing: border-box;
}
.rc-dash {
    font-family: var(--font-primary);
}
.rc-dash-lock {
    overflow: hidden;
}

.rc-page {
    padding: 16px;
}

/* Dashboard page without Y scrollbar */
.rc-dash .rc-page {
    max-height: none;
    overflow: visible;
    padding-bottom: 90px; /* aman dari footer/bottombar */
}

.rc-dash--home .rc-page {
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    overflow-x: visible;
    padding-bottom: 24px;
}

/* Custom scrollbar for dashboard - DISABLED */
.rc-dash .rc-page::-webkit-scrollbar {
    display: none;
}

.rc-dash .rc-page::-webkit-scrollbar-track {
    display: none;
}

.rc-dash .rc-page::-webkit-scrollbar-thumb {
    display: none;
}

.rc-dash .rc-page::-webkit-scrollbar-thumb:hover {
    display: none;
}

@media (min-width: 992px) {
    .rc-page {
        padding: 20px 22px;
    }
}

/* ====== LAYOUT SHELL ====== */
.rc-dash__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}
@media (min-width: 992px) {
    .rc-dash__layout {
        grid-template-columns: 260px 1fr;
        gap: 18px;
        padding: 18px 12px;
    }
}

.rc-dash__main {
    min-width: 0;
}

/* ====== TOPBAR MOBILE ====== */
.rc-dash__topbar {
    position: sticky;
    top: 0;
    z-index: 60;
    height: 56px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}
@media (min-width: 992px) {
    .rc-dash__topbar {
        display: none;
    }
}
.rc-dash__topbar-title {
    flex: 1;
    font-weight: 700;
    color: var(--heading);
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rc-dash__topbar-home {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: var(--primary);
    border: 1px solid var(--border);
    background: var(--white);
    text-decoration: none;
}

/* burger */
.rc-dash__burger {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    background: var(--white);
    border-radius: 10px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 0 10px;
}
.rc-dash__burger span {
    height: 2px;
    background: var(--primary);
    border-radius: 999px;
    display: block;
}

/* backdrop */
.rc-dash__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.45);
    z-index: 70;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.rc-dash__backdrop.is-show {
    opacity: 1;
    pointer-events: auto;
}

/* ====== SIDEBAR ====== */
.rc-dash__sidebar {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--rc-r12);
    box-shadow: var(--rc-shadow-soft);
    overflow: hidden;

    /* Sticky sidebar - tidak mengikuti scroll halaman */
    position: sticky;
    top: 20px;
    align-self: start;
    max-height: calc(100vh - 40px);
}
@media (max-width: 991.98px) {
    .rc-dash__sidebar {
        position: fixed;
        top: 56px; /* below topbar */
        left: 0;
        height: calc(100vh - 56px);
        width: 84vw;
        max-width: 320px;
        z-index: 80;
        transform: translateX(-105%);
        transition: transform 0.22s ease;
        border-radius: 0 14px 14px 0;
    }
    .rc-dash__sidebar.is-open {
        transform: translateX(0);
    }
}

/* sidebar inner */
.rc-side {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.rc-side__profile {
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    background: linear-gradient(180deg, var(--background-3), var(--white));
    border-bottom: 1px solid var(--border);
}
.rc-side__avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--primary);
    font-size: 20px;
}
.rc-side__name {
    font-weight: 800;
    color: var(--heading);
    line-height: 1.2;
}
.rc-side__edit {
    display: inline-block;
    font-size: 12px;
    color: var(--text);
    text-decoration: none;
}
.rc-side__edit:hover {
    color: var(--primary);
}

.rc-side__nav {
    padding: 10px;
    display: grid;
    gap: 6px;
}
.rc-side__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--heading);
    text-decoration: none;
    border: 1px solid transparent;
}
.rc-side__link i {
    color: var(--primary);
    font-size: 18px;
}
.rc-side__link span {
    font-weight: 600;
    font-size: 14px;
}
.rc-side__link:hover {
    background: var(--background-3);
    border-color: var(--border);
}
.rc-side__link.is-active {
    background: rgba(27, 60, 83, 0.1);
    border-color: rgba(27, 60, 83, 0.22);
}

.rc-side__footer {
    margin-top: auto;
    padding: 12px;
    border-top: 1px solid var(--border);
}
.rc-side__logout {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: #b42318;
    border: 1px solid rgba(180, 35, 24, 0.25);
    background: rgba(180, 35, 24, 0.06);
    font-weight: 700;
}

/* ====== PAGE HEADER ====== */
.rc-page__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.rc-page__title {
    font-size: 18px;
    font-weight: 900;
    color: var(--heading);
    margin: 0;
}
.rc-page__subtitle {
    margin: 6px 0 0;
    color: var(--text);
    font-size: 13px;
}
@media (min-width: 992px) {
    .rc-page__title {
        font-size: 20px;
    }
    .rc-page__subtitle {
        font-size: 14px;
    }
}

.rc-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    background: var(--white);
    border-radius: 999px;
    padding: 8px 10px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    color: var(--heading);
}
.rc-pill i {
    color: var(--primary);
    font-size: 18px;
}
.rc-pill span {
    font-size: 12px;
    color: var(--text);
}
.rc-pill strong {
    font-size: 13px;
}

/* ====== TABS (Shopee-like) ====== */
.rc-tabs {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--rc-r12);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
    display: flex;
    overflow-x: auto;
    gap: 0;
    padding: 0 8px;
    margin-bottom: 14px;
}
.rc-tabs::-webkit-scrollbar {
    height: 6px;
}
.rc-tabs::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 999px;
}

.rc-tab {
    position: relative;
    flex: 0 0 auto;
    padding: 12px 12px;
    font-weight: 800;
    font-size: 13px;
    color: var(--heading);
    text-decoration: none;
    white-space: nowrap;
}
.rc-tab:hover {
    color: var(--primary);
}
.rc-tab.is-active {
    color: var(--primary);
}
.rc-tab.is-active::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 999px;
}
.rc-tab.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ====== STACK ====== */
.rc-stack {
    display: grid;
    gap: 12px;
}

/* ====== ORDER CARD ====== */
.rc-order-card {
    background: var(--white);
    /* border: 1px solid var(--primary) !important; */
    border-radius: var(--rc-r12);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

/* Clickable Card Variant */
.rc-order-card--clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.rc-order-card--clickable:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 28px rgba(27, 60, 83, 0.15);
    transform: translateY(-2px);
}

/* Prevent hover effect when hovering over action buttons */
.rc-order-card--clickable:has(.rc-order-card__actions:hover) {
    transform: none !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06) !important;
}

/* Alternative solution: prevent hover on card when hovering footer */
.rc-order-card--clickable .rc-order-card__foot {
    position: relative;
    z-index: 5;
    background: #fff;
}

.rc-order-card--clickable .rc-order-card__actions {
    position: relative;
    z-index: 10;
}

.rc-order-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, var(--background-3), var(--white));
}
.rc-order-card__shop {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.rc-badge {
    font-size: 11px;
    font-weight: 900;
    padding: 5px 8px;
    border-radius: 999px;
    border: 1px solid rgba(27, 60, 83, 0.25);
    background: rgba(27, 60, 83, 0.08);
    color: var(--primary);
}
.rc-order-card__shop strong {
    font-weight: 900;
    color: var(--heading);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rc-order-card__body {
    padding: 12px 14px;
}

.rc-order-item {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    gap: 12px;
    align-items: center;
}
.rc-order-item__thumb {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--background-2);
    display: grid;
    place-items: center;
    color: var(--primary);
    font-size: 20px;
}
.rc-order-item__title {
    font-weight: 900;
    color: var(--heading);
    font-size: 13px;
}
.rc-order-item__sub {
    margin-top: 4px;
    color: var(--text);
    font-size: 12px;
    display: flex;
    gap: 6px;
    align-items: center;
}
.rc-order-item__sub i {
    color: var(--primary);
}

.rc-order-item__price {
    text-align: right;
}
.rc-order-item__total {
    font-weight: 900;
    color: var(--heading);
    font-size: 13px;
}
.rc-order-item__small {
    color: var(--text);
    font-size: 12px;
    margin-top: 2px;
}

@media (max-width: 575.98px) {
    .rc-order-item {
        grid-template-columns: 44px 1fr;
    }
    .rc-order-item__price {
        grid-column: 1 / -1;
        text-align: left;
        padding-left: 56px;
        margin-top: 6px;
    }
}

/* footer */
.rc-order-card__foot {
    padding: 12px 14px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.rc-order-card__sum {
    color: var(--text);
    font-size: 12px;
}
.rc-order-card__sum strong {
    color: var(--heading);
    font-size: 13px;
    font-weight: 900;
    margin-left: 6px;
}
.rc-order-card__actions {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

/* Prevent card hover effect when hovering buttons */
.rc-order-card--clickable .rc-order-card__actions .rc-btn {
    position: relative;
    z-index: 3;
    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease,
        background 0.12s ease,
        border-color 0.12s ease;
}

/* When hovering the actions container, prevent parent card from moving */
.rc-order-card--clickable .rc-order-card__actions:hover {
    pointer-events: auto;
}

.rc-order-card--clickable .rc-order-card__foot {
    position: relative;
    z-index: 2;
    background: var(--white);
}

/* JavaScript fallback - prevent card hover effect when class is added */
.rc-order-card--clickable.no-hover-effect:hover {
    transform: none !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06) !important;
}

/* ====== PAYMENT CARD ====== */
.rc-pay-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--rc-r12);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

/* Clickable Payment Card Variant */
.rc-pay-card--clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.rc-pay-card--clickable:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 28px rgba(27, 60, 83, 0.15);
    transform: translateY(-2px);
}

.rc-pay-card__title {
    font-weight: 900;
    color: var(--heading);
}
.rc-pay-card__sub {
    margin-top: 6px;
    color: var(--text);
    font-size: 12px;
    display: flex;
    gap: 8px;
    align-items: center;
}
.rc-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--primary);
    display: inline-block;
}
.rc-pay-card__amount {
    font-weight: 900;
    color: var(--heading);
    text-align: right;
}
.rc-pay-card__actions {
    margin-top: 8px;
    display: inline-flex;
    gap: 8px;
}

/* ====== BUTTONS ====== */
.rc-dash .rc-btn,
.rc-page .rc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 36px;
    padding: 0 12px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 900;
    font-size: 13px;
    cursor: pointer;
}
.rc-btn--primary {
    background: var(--primary);
    color: var(--white);
    /* border-color: rgba(27, 60, 83, 0.35); */
}
.rc-btn--primary:hover {
    background: var(--primary-dark);
}
.rc-btn--ghost {
    background: var(--white);
    border-color: var(--border) !important;
    color: var(--primary) !important;
}
.rc-btn--ghost:hover {
    background: var(--background-3);
}

/* ====== EMPTY ====== */
.rc-empty {
    background: var(--white);
    border: 1px dashed var(--border);
    border-radius: var(--rc-r12);
    padding: 28px 16px;
    text-align: center;
}
.rc-empty__icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: var(--background-3);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    margin: 0 auto 10px;
    color: var(--primary);
    font-size: 26px;
}
.rc-empty__title {
    margin: 0;
    font-weight: 900;
    color: var(--heading);
}
.rc-empty__desc {
    margin: 8px 0 14px;
    color: var(--text);
    font-size: 13px;
}
/* =======================
   REVIEW CARD (IMPROVED)
======================= */
.rc-review-card {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 14px;
    padding: 16px;
    background: var(--white);
    border-radius: var(--rc-r12);
    border: 1px solid var(--border);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    align-items: center;
}

.rc-review-card__left img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: var(--backgorund-1);
}

.rc-review-card__body {
    min-width: 0; /* penting biar text bisa wrap */
}

.rc-review-card__title,
.rc-review-card__body strong {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* max 2 baris */
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.3;
    color: var(--heading);
    margin-bottom: 6px;
}

.rc-review-card__meta {
    font-size: 13px;
    color: var(--light);
    line-height: 1.4;
    margin-bottom: 10px;
}

.rc-review-card__meta b {
    color: var(--heading);
    font-weight: 700;
}

/* right area: badge + button rapih */
.rc-review-card__action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    white-space: nowrap;
}

/* BADGE (lebih rapih dari bootstrap badge default) */
.rc-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    border: 1px solid var(--border);
    line-height: 1;
}

.rc-badge--pending {
    background: rgba(27, 60, 83, 0.08);
    color: var(--primary);
}

.rc-badge--done {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
    border-color: rgba(34, 197, 94, 0.24);
}

/* =======================
   BUTTON SYSTEM (IMPROVED)
======================= */

/* kalau ada button ghost */
.rc-btn--ghost {
    background: transparent;
    color: var(--primary);
    border-color: rgba(27, 60, 83, 0.25);
}

.rc-btn--ghost:hover {
    background: rgba(27, 60, 83, 0.06);
}

/* =======================
   MOBILE LAYOUT
======================= */
@media (max-width: 768px) {
    .rc-review-card {
        grid-template-columns: 1fr;
        padding: 14px;
        gap: 12px;
    }

    /* top row: image + title/meta */
    .rc-review-card__left {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
    }

    .rc-review-card__left img {
        width: 56px;
        height: 56px;
        border-radius: 12px;
        flex: 0 0 auto;
    }

    /* biar body nempel di samping gambar */
    .rc-review-card__body {
        width: 100%;
    }

    /* action area full width: badge + button stack */
    .rc-review-card__action {
        width: 100%;
        align-items: stretch;
        gap: 10px;
    }

    .rc-badge {
        width: fit-content;
    }

    .rc-review-card__action .rc-btn {
        width: 100%;
        height: 46px;
    }
}

/* EXTRA SMALL */
@media (max-width: 420px) {
    .rc-review-card {
        padding: 12px;
        border-radius: 14px;
    }

    .rc-review-card__title,
    .rc-review-card__body strong {
        font-size: 14px;
    }

    .rc-review-card__meta {
        font-size: 12px;
    }
}

/* =========================================================
   RC BADGE (Tailwind-like)
   ========================================================= */

.rc-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    line-height: 1;
    white-space: nowrap;
    border: 1px solid transparent;
}

/* Neutral / Gray */
.rc-badge--gray {
    background: #f9fafb;
    color: #4b5563;
    border-color: rgba(75, 85, 99, 0.15);
}

/* Red */
.rc-badge--red {
    background: #fef2f2;
    color: #b91c1c;
    border-color: rgba(185, 28, 28, 0.2);
}

/* Yellow */
.rc-badge--yellow {
    background: #fffbeb;
    color: #92400e;
    border-color: rgba(146, 64, 14, 0.25);
}

/* Green */
.rc-badge--green {
    background: #f0fdf4;
    color: #15803d;
    border-color: rgba(21, 128, 61, 0.25);
}

/* Blue */
.rc-badge--blue {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: rgba(29, 78, 216, 0.25);
}

/* Indigo */
.rc-badge--indigo {
    background: #eef2ff;
    color: #4338ca;
    border-color: rgba(67, 56, 202, 0.25);
}

/* Purple */
.rc-badge--purple {
    background: #faf5ff;
    color: #6b21a8;
    border-color: rgba(107, 33, 168, 0.25);
}

/* Pink */
.rc-badge--pink {
    background: #fdf2f8;
    color: #9d174d;
    border-color: rgba(157, 23, 77, 0.25);
}
.rc-badge--sub {
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 8px;
    opacity: 0.9;
}
.rc-pay-card__left {
    min-width: 0;
}

.rc-pay-card__meta {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-size: 12px;
    line-height: 1.3;
    flex-wrap: wrap;
}

.rc-pay-card__meta strong {
    color: var(--heading);
    font-weight: 900;
}
.rc-pay-card__title {
    margin-bottom: 2px;
}

/* ============================================
   WISHLIST CARD STYLES
   ============================================ */
.rc-wishlist-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.rc-wishlist-card:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(27, 60, 83, 0.1);
    transform: translateY(-2px);
}

.rc-wishlist-card__img {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
}

.rc-wishlist-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rc-wishlist-card__info {
    flex: 1;
    min-width: 0;
}

.rc-wishlist-card__title {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--heading);
}

.rc-wishlist-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.rc-wishlist-card__title a:hover {
    color: var(--primary);
}

.rc-wishlist-card__price {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.rc-wishlist-card__meta {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rc-wishlist-card__actions {
    flex-shrink: 0;
}

.btn-remove-wishlist {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 6px;
    color: #dc3545;
    transition: all 0.2s ease;
}

.btn-remove-wishlist:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.btn-remove-wishlist i {
    font-size: 16px;
}

/* Responsive */
@media (max-width: 576px) {
    .rc-wishlist-card {
        padding: 10px;
        gap: 10px;
    }

    .rc-wishlist-card__img {
        width: 50px;
        height: 50px;
    }

    .rc-wishlist-card__title {
        font-size: 13px;
    }

    .rc-wishlist-card__price {
        font-size: 13px;
    }
}
/* =========================================================
   ORDER DETAIL (rc-od) - Shopee-like
   Mengikuti tokens :root yang kamu pakai
   Scope aman: .rc-od
   ========================================================= */

.rc-od {
    font-family: var(--font-primary);
}

/* Cancelled Banner */
.rc-od__cancelled-banner {
    background: #fff5f5;
    border: 1px solid #fecaca;
    border-radius: var(--rc-r12);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}

.rc-od__cancelled-icon {
    width: 48px;
    height: 48px;
    background: #fee2e2;
    border-radius: 999px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.rc-od__cancelled-icon i {
    font-size: 24px;
    color: #dc3545;
}

.rc-od__cancelled-content {
    flex: 1;
}

.rc-od__cancelled-title {
    font-size: 16px;
    font-weight: 900;
    color: #dc3545;
    margin: 0 0 4px 0;
}

.rc-od__cancelled-desc {
    font-size: 13px;
    color: var(--text);
    margin: 0;
    line-height: 1.5;
}

/* top bar */
.rc-od__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--rc-r12);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
    margin-bottom: 12px;
}

.rc-od__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--heading);
    font-weight: 800;
    font-size: 13px;
}

.rc-od__back i {
    color: var(--primary);
    font-size: 16px;
}

.rc-od__bar-right {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.rc-od__invoice {
    text-align: right;
}
.rc-od__invoice .muted {
    display: block;
    font-size: 11px;
    color: var(--text);
}
.rc-od__invoice strong {
    font-size: 13px;
    font-weight: 900;
    color: var(--heading);
}

.rc-od__status-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid rgba(27, 60, 83, 0.22);
    background: rgba(27, 60, 83, 0.08);
    color: var(--primary);
    font-weight: 900;
    font-size: 12px;
}

/* stepper container */
.rc-od__stepper {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--rc-r12);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
    padding: 14px;
    display: grid;
    grid-template-columns: repeat(var(--rc-steps), 1fr);
    align-items: center;
    gap: 0;
    margin-bottom: 12px;
    position: relative;
    --rc-steps: 4; /* default */
    --rc-icon: 44px; /* default icon size */
}

.rc-step {
    text-align: center;
    min-width: 0;
    position: relative;
    z-index: 1;
}

/* Connecting line from each step to the next (except last step) */
.rc-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: calc(var(--rc-icon) / 2 + 4px);
    left: calc(50% + (var(--rc-icon) / 2) + 2px);
    width: calc(100% - (var(--rc-icon) + 4px));
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 999px;
    transform: translateY(-50%);
    z-index: 0;
}

/* Active connecting line - with blinking animation */
.rc-step.is-active:not(:last-child)::after {
    background: linear-gradient(
        90deg,
        rgba(34, 197, 94, 0.45) 0%,
        rgba(34, 197, 94, 0.8) 50%,
        rgba(34, 197, 94, 0.45) 100%
    );
    background-size: 200% 100%;
    animation: rc-progress-blink 2s ease-in-out infinite;
}

/* Done connecting line - solid green */
.rc-step.is-done:not(:last-child)::after {
    background: rgba(34, 197, 94, 0.45);
}

/* Progress bar blinking animation */
@keyframes rc-progress-blink {
    0%,
    100% {
        background-position: 0% 50%;
        opacity: 0.6;
    }
    50% {
        background-position: 100% 50%;
        opacity: 1;
    }
}
.rc-step__icon {
    /* width: 44px;
    height: 44px; */
    margin: 0 auto 8px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    border: 2px solid rgba(27, 60, 83, 0.22);
    background: rgba(27, 60, 83, 0.06);
    color: var(--primary);
    font-size: 18px;
    position: relative;
    z-index: 2; /* Di atas garis penghubung */
    width: var(--rc-icon);
    height: var(--rc-icon);
}
.rc-step__label {
    font-size: 12px;
    font-weight: 900;
    color: var(--heading);
}
.rc-step__time {
    margin-top: 4px;
    font-size: 11px;
    color: var(--text);
}

.rc-step.is-active .rc-step__icon {
    border-color: rgba(27, 60, 83, 0.45);
    background: rgba(27, 60, 83, 0.1);
}

.rc-step.is-done .rc-step__icon {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.35);
    color: #15803d;
}

/* Hide old line elements - now using ::before pseudo-element instead */
.rc-step-line {
    display: none;
}

/* actions right */
.rc-od__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

/* buttons: reuse rc-btn style (kalau sudah ada, ini tetap aman) */
.rc-od .rc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 900;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
}

.rc-od .rc-btn--primary {
    background: var(--primary);
    color: var(--white);
    border-color: rgba(27, 60, 83, 0.35);
}
.rc-od .rc-btn--ghost {
    background: var(--white);
    color: var(--primary);
    border-color: var(--border);
}
.rc-od .rc-btn--ghost:hover {
    background: var(--background-3);
}

/* grid: address + timeline */
.rc-od__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 12px;
    margin-bottom: 12px;
}

.rc-od__card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--rc-r12);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
    padding: 14px;
}

.rc-od__card-title {
    font-size: 13px;
    font-weight: 900;
    color: var(--heading);
    margin-bottom: 10px;
}

.rc-od__addr-name {
    font-weight: 900;
    color: var(--heading);
    font-size: 13px;
}
.rc-od__addr-phone {
    margin-top: 4px;
    color: var(--text);
    font-size: 12px;
}
.rc-od__addr-full {
    margin-top: 6px;
    color: var(--text);
    font-size: 12px;
    line-height: 1.45;
}

/* timeline */
.rc-od__timeline {
    display: grid;
    gap: 12px;
}
.rc-tl {
    display: grid;
    grid-template-columns: 14px 1fr;
    gap: 10px;
    align-items: flex-start;
    opacity: 0.75;
}
.rc-tl.is-active {
    opacity: 1;
}
.rc-tl.is-done {
    opacity: 1;
}

.rc-tl__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    margin-top: 4px;
    background: rgba(0, 0, 0, 0.18);
    position: relative;
}
.rc-tl.is-active .rc-tl__dot {
    background: rgba(34, 197, 94, 0.8);
}
.rc-tl.is-done .rc-tl__dot {
    background: rgba(34, 197, 94, 0.55);
}

.rc-tl__content {
    border-left: 1px dashed rgba(0, 0, 0, 0.14);
    padding-left: 12px;
    padding-bottom: 2px;
}
.rc-tl__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.rc-tl__row strong {
    font-weight: 900;
    color: var(--heading);
    font-size: 12px;
}
.rc-tl__row .muted {
    color: var(--text);
    font-size: 11px;
    white-space: nowrap;
}
.rc-tl__desc {
    margin-top: 6px;
    color: var(--text);
    font-size: 12px;
    line-height: 1.4;
}

.rc-od__more {
    font-size: 12px;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
}

/* items card */
.rc-od__items {
    padding: 0;
    overflow: hidden;
}

.rc-od__items-head {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, var(--background-3), var(--white));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.rc-od__shop {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.rc-od__shop strong {
    font-weight: 900;
    color: var(--heading);
    font-size: 13px;
}

.rc-od__mini {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
}
.rc-mini-btn {
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--white);
    font-weight: 800;
    font-size: 12px;
    color: var(--heading);
    cursor: pointer;
}
.rc-mini-btn i {
    color: var(--primary);
    margin-right: 6px;
}

/* items body */
.rc-od__items-body {
    padding: 12px 14px 14px;
}

.rc-od__line {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.rc-od__line:last-child {
    border-bottom: none;
}

.rc-od__thumb {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    background: var(--background-2);
    display: grid;
    place-items: center;
}
.rc-od__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rc-od__thumb-ph {
    color: var(--primary);
    font-size: 22px;
}

.rc-od__ptitle {
    font-weight: 900;
    font-size: 13px;
    color: var(--heading);
}
.rc-od__pmeta {
    margin-top: 6px;
    font-size: 12px;
    color: var(--text);
    display: inline-flex;
    gap: 8px;
    align-items: center;
}
.rc-od__pmeta .dot {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.25);
    display: inline-block;
}

.rc-od__pprice {
    text-align: right;
}
.rc-od__pprice .old {
    font-size: 11px;
    color: var(--light);
    text-decoration: line-through;
}
.rc-od__pprice .new {
    margin-top: 4px;
    font-weight: 900;
    color: var(--primary);
}

/* summary */
.rc-od__summary {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed rgba(0, 0, 0, 0.12);
    display: grid;
    gap: 8px;
    max-width: 420px;
    margin-left: auto;
}

.rc-sum-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    color: var(--text);
}
.rc-sum-row strong {
    color: var(--heading);
    font-weight: 900;
}

.rc-sum-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.rc-sum-total span {
    font-size: 12px;
    color: var(--text);
}
.rc-sum-total strong {
    font-size: 18px;
    font-weight: 900;
    color: var(--primary);
}

.rc-sum-pay {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    color: var(--text);
}
.rc-sum-pay strong {
    color: var(--heading);
    font-weight: 900;
}

/* responsive */
@media (max-width: 991.98px) {
    .rc-od__stepper {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Hide ALL connecting lines on mobile (horizontal & vertical) */
    .rc-step:not(:last-child)::after,
    .rc-step.is-active:not(:last-child)::after,
    .rc-step.is-done:not(:last-child)::after {
        display: none !important;
    }

    .rc-step:not(:first-child)::before,
    .rc-step.is-active:not(:first-child)::before,
    .rc-step.is-done:not(:first-child)::before {
        display: none !important;
    }

    /* Explicit hide for old line elements on mobile */
    .rc-step-line {
        display: none !important;
    }

    .rc-od__grid {
        grid-template-columns: 1fr;
    }

    .rc-od__actions {
        justify-content: flex-start;
    }

    .rc-od__summary {
        max-width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 575.98px) {
    .rc-od__bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .rc-od__bar-right {
        width: 100%;
        justify-content: space-between;
    }

    .rc-od__line {
        grid-template-columns: 56px 1fr;
    }

    .rc-od__pprice {
        grid-column: 1 / -1;
        text-align: left;
        padding-left: 68px;
    }
}

/* ============================================
   MODERN ORDER DETAIL UI (2024)
   ============================================ */

/* Order Status Banner */
.rc-order-status-banner {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.rc-order-status--pending {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3d6 100%);
    border-color: #ffd700;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.15);
}

.rc-order-status--failed {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border-color: #fecaca;
    box-shadow: 0 4px 20px rgba(220, 53, 69, 0.12);
}

.rc-order-status__icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 215, 0, 0.15);
    border-radius: 16px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.rc-order-status--failed .rc-order-status__icon {
    background: rgba(220, 53, 69, 0.1);
}

.rc-order-status__icon i {
    font-size: 28px;
    color: #f59e0b;
}

.rc-order-status--failed .rc-order-status__icon i {
    color: #dc3545;
}

.rc-order-status__content {
    flex: 1;
}

.rc-order-status__title {
    font-size: 18px;
    font-weight: 700;
    color: #1b3c53;
    margin: 0 0 6px 0;
}

.rc-order-status--failed .rc-order-status__title {
    color: #dc3545;
}

.rc-order-status__desc {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
    line-height: 1.6;
}

.rc-order-status__action {
    flex-shrink: 0;
}

/* Status Pill Variants */
.rc-od__status-pill--pending {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    font-weight: 600;
}

.rc-od__status-pill--failed {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #ffffff;
    font-weight: 600;
}

.rc-od__status-pill--active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-weight: 600;
}

/* Modern Stepper */
.rc-modern-stepper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 28px 20px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    position: relative;
}

.rc-modern-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    position: relative;
    min-width: 0;
}

.rc-modern-step__circle {
    width: 52px;
    height: 52px;
    background: #f5f7fa;
    border: 3px solid #e0e0e0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    position: relative;
    transition: all 0.3s ease;
    z-index: 2;
}

.rc-modern-step.is-active .rc-modern-step__circle {
    background: linear-gradient(135deg, #1b3c53 0%, #2d5a7a 100%);
    border-color: #1b3c53;
    box-shadow: 0 4px 12px rgba(27, 60, 83, 0.3);
    transform: scale(1.05);
}

.rc-modern-step.is-done .rc-modern-step__circle {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #10b981;
}

.rc-modern-step__circle i {
    font-size: 22px;
    color: #9ca3af;
}

.rc-modern-step.is-active .rc-modern-step__circle i,
.rc-modern-step.is-done .rc-modern-step__circle i {
    color: #ffffff;
}

.rc-modern-step__check {
    position: absolute;
    font-size: 18px !important;
}

.rc-modern-step__content {
    margin-top: 12px;
}

.rc-modern-step__label {
    font-size: 13px;
    font-weight: 600;
    color: #9ca3af;
    margin-bottom: 4px;
}

.rc-modern-step.is-active .rc-modern-step__label,
.rc-modern-step.is-done .rc-modern-step__label {
    color: #1b3c53;
}

.rc-modern-step__time {
    font-size: 11px;
    color: #6c757d;
    line-height: 1.4;
}

.rc-modern-step__line {
    position: absolute;
    top: 26px;
    left: 50%;
    width: calc(100% + 4px);
    height: 3px;
    background: #e0e0e0;
    transform: translateX(-50%);
    z-index: 1;
    transition: all 0.3s ease;
}

.rc-modern-step__line.is-done {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

/* Payment Actions */
.rc-payment-actions {
    display: flex;
    gap: 12px;
    padding: 20px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    align-items: center;
}

.rc-btn--lg {
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
}

/* Info Row */
.rc-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.rc-info-row:last-child {
    border-bottom: none;
}

.rc-info-row span {
    font-size: 14px;
    color: #6c757d;
}

.rc-info-row strong {
    font-size: 14px;
    color: #1b3c53;
}

.rc-status-success {
    color: #10b981 !important;
}

.rc-status-pending {
    color: #f59e0b !important;
}

/* Payment Info */
.rc-payment-info {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 14px;
    background: #fff9e6;
    border: 1px solid #ffd700;
    border-radius: 12px;
    margin-top: 16px;
}

.rc-payment-info i {
    font-size: 20px;
    color: #f59e0b;
    flex-shrink: 0;
}

.rc-payment-info span {
    font-size: 13px;
    color: #6c757d;
    line-height: 1.5;
}

/* Resi Section */
.rc-od__resi {
    margin-top: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
}

.rc-od__resi-label {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 8px;
}

.rc-od__resi-label strong {
    color: #1b3c53;
}

.rc-od__resi-number {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.rc-od__resi-number span {
    color: #6c757d;
}

.rc-od__resi-number strong {
    font-family: "Courier New", monospace;
    font-size: 16px;
    color: #1b3c53;
    letter-spacing: 0.5px;
}

.rc-btn-copy {
    width: 32px;
    height: 32px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.rc-btn-copy:hover {
    background: #1b3c53;
    border-color: #1b3c53;
}

.rc-btn-copy:hover i {
    color: #ffffff;
}

.rc-btn-copy i {
    font-size: 16px;
    color: #6c757d;
}

/* Card Title with Icon */
.rc-od__card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #1b3c53;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.rc-od__card-title i {
    font-size: 20px;
    color: #1b3c53;
}

/* Address Phone */
.rc-od__addr-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #6c757d;
    margin: 6px 0;
}

.rc-od__addr-phone i {
    font-size: 16px;
    color: #1b3c53;
}

/* Items Count */
.rc-od__count {
    font-size: 13px;
    color: #6c757d;
}

/* Discount Badge in Item Meta */
.rc-od__pmeta .discount-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #dc3545;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    margin-left: 8px;
}

/* Footer Actions */
.rc-od__footer-actions {
    display: flex;
    gap: 12px;
    padding: 20px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Button Outline */
.rc-btn--outline {
    padding: 10px 24px;
    background: #ffffff;
    border: 2px solid #1b3c53;
    color: #1b3c53;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.rc-btn--outline:hover {
    background: #1b3c53;
    color: #ffffff;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .rc-modern-stepper {
        flex-direction: column;
        gap: 24px;
        padding: 24px 16px;
    }

    .rc-modern-step {
        flex-direction: row;
        text-align: left;
        width: 100%;
    }

    .rc-modern-step__circle {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }

    .rc-modern-step__content {
        margin-top: 0;
        margin-left: 12px;
        flex: 1;
    }

    .rc-modern-step__line {
        display: none;
    }

    .rc-payment-actions {
        flex-direction: column;
    }

    .rc-payment-actions .rc-btn {
        width: 100%;
    }

    .rc-order-status-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .rc-order-status__action {
        width: 100%;
    }

    .rc-order-status__action .rc-btn {
        width: 100%;
    }

    .rc-od__footer-actions {
        flex-direction: column;
    }

    .rc-od__footer-actions .rc-btn {
        width: 100%;
    }
}
/* =========================
   STEP ICON COLORS (CONSISTENT)
   - done: green
   - active: green (highlight)
   - idle: gray
   ========================= */

.rc-od .rc-step.is-idle .rc-step__icon {
    border-color: rgba(0, 0, 0, 0.12);
    background: rgba(0, 0, 0, 0.04);
    color: #6b7280;
}

/* DONE = green */
.rc-od .rc-step.is-done .rc-step__icon {
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(34, 197, 94, 0.45);
    color: #15803d;
}

/* ACTIVE = green stronger (kamu minta active jadi hijau) */
.rc-od .rc-step.is-active .rc-step__icon {
    background: rgba(34, 197, 94, 0.18);
    border-color: rgba(34, 197, 94, 0.65);
    color: #15803d;
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.18);
    transform: translateY(-1px);
}

/* ACTIVE label biar kerasa */
.rc-od .rc-step.is-active .rc-step__label {
    color: #15803d;
}

/* connecting line: default gray */
.rc-od .rc-step:not(:last-child)::after {
    background: rgba(0, 0, 0, 0.1);
}

/* connecting line done = green */
.rc-od .rc-step.is-done:not(:last-child)::after {
    background: rgba(34, 197, 94, 0.45);
}

/* connecting line active = green (no blink biar clean) */
.rc-od .rc-step.is-active:not(:last-child)::after {
    background: rgba(34, 197, 94, 0.55);
    animation: none !important;
}

/* =========================
   ALT STEPPER (Pending/Cancelled/Expired)
   3 columns biar proporsional
   ========================= */
.rc-od .rc-od__stepper--alt {
    grid-template-columns: repeat(3, 1fr);
}

/* Danger step confirm (cancel/expired) */
.rc-od .rc-step.is-danger {
    opacity: 1;
}
.rc-od .rc-step.is-danger .rc-step__icon {
    background: rgba(220, 53, 69, 0.12);
    border-color: rgba(220, 53, 69, 0.45);
    color: #b42318;
}
.rc-od .rc-step.is-danger .rc-step__label {
    color: #b42318;
}
.rc-od .rc-step.is-danger:not(:last-child)::after {
    background: rgba(220, 53, 69, 0.28);
}

/* Alt container tone (optional) */
.rc-od .rc-od__stepper--alt.is-pending {
    border-color: rgba(245, 158, 11, 0.25);
}
.rc-od .rc-od__stepper--alt.is-cancelled,
.rc-od .rc-od__stepper--alt.is-expired {
    border-color: rgba(220, 53, 69, 0.2);
}
/* ===== STEP STATE COLORS (CONSISTENT) ===== */
.rc-od .rc-step.is-idle .rc-step__icon {
    border-color: rgba(0, 0, 0, 0.12);
    background: rgba(0, 0, 0, 0.04);
    color: #6b7280;
}

.rc-od .rc-step.is-done .rc-step__icon {
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(34, 197, 94, 0.45);
    color: #15803d;
}

.rc-od .rc-step.is-active .rc-step__icon {
    background: rgba(34, 197, 94, 0.18);
    border-color: rgba(34, 197, 94, 0.65);
    color: #15803d;
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.18);
    transform: translateY(-1px);
}

.rc-od .rc-step.is-active .rc-step__label {
    color: #15803d;
}

/* danger (cancel/expired/failed) */
.rc-od .rc-step.is-danger .rc-step__icon {
    background: rgba(220, 53, 69, 0.12);
    border-color: rgba(220, 53, 69, 0.45);
    color: #b42318;
}
.rc-od .rc-step.is-danger .rc-step__label {
    color: #b42318;
}

/* ===== ALT STEPPER (3 columns) ===== */
.rc-od .rc-od__stepper--alt {
    grid-template-columns: repeat(3, 1fr);
}

/* optional pill variants */
.rc-od__status-pill--pending {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.35);
    color: #b45309;
}
.rc-od__status-pill--failed {
    background: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.28);
    color: #b42318;
}
.rc-od__status-pill--active {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.3);
    color: #15803d;
}
/* =========================================================
   PATCH — FIX STEPPER WRAP (6 steps) + connector line safe
   Tempel paling bawah file CSS
   ========================================================= */

/* 1) Desktop: paksa 6 kolom (karena step kamu 6) */
.rc-od .rc-od__stepper {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 0 !important;
}

/* 2) Connector line: rapikan hitungan agar garis pas */
.rc-od .rc-step:not(:last-child)::after {
    /* garis di tengah ikon */
    top: 26px !important; /* 44px icon => center ~22px, tambah sedikit */
    left: calc(50% + 26px) !important; /* start setelah radius icon */
    width: calc(100% - 52px) !important; /* sisa ruang sampai icon berikutnya */
}

/* 3) Kalau layar mengecil dan step mulai multi-row -> matikan connector biar tidak kacau */
@media (max-width: 1199.98px) {
    .rc-od .rc-od__stepper {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }
    .rc-od .rc-step::after {
        display: none !important;
    }
}

@media (max-width: 575.98px) {
    .rc-od .rc-od__stepper {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }
    .rc-od .rc-step::after {
        display: none !important;
    }
}

/* 4) Biar label/time gak memaksa layout */
.rc-od .rc-step__label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rc-od .rc-step__time {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rc-od__stepper[data-steps="3"] {
    --rc-icon: 56px;
}
.rc-od__stepper[data-steps="4"] {
    --rc-icon: 48px;
}
.rc-od__stepper[data-steps="5"] {
    --rc-icon: 44px;
}
.rc-od__stepper[data-steps="6"] {
    --rc-icon: 40px;
}
.rc-od .rc-od__stepper {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}
/* GANTI patch jadi begini */
.rc-od .rc-od__stepper[data-steps="6"] {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}
.rc-od .rc-od__stepper[data-steps="5"] {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}
.rc-od .rc-od__stepper[data-steps="3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
/* =========================
   FINAL PATCH: STEPPER GRID + CONNECTOR (SAFE)
   Tempel PALING BAWAH file
   ========================= */

/* kolom mengikuti jumlah step */
.rc-od .rc-od__stepper[data-steps="3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
.rc-od .rc-od__stepper[data-steps="5"] {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}
.rc-od .rc-od__stepper[data-steps="6"] {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

/* icon size per steps */
.rc-od .rc-od__stepper[data-steps="3"] {
    --rc-icon: 56px;
}
.rc-od .rc-od__stepper[data-steps="5"] {
    --rc-icon: 44px;
}
.rc-od .rc-od__stepper[data-steps="6"] {
    --rc-icon: 40px;
}

/* connector line ikut ukuran icon (tanpa angka mati) */
.rc-od .rc-od__stepper .rc-step:not(:last-child)::after {
    top: calc(var(--rc-icon) / 2 + 4px) !important;
    left: calc(50% + (var(--rc-icon) / 2) + 2px) !important;
    width: calc(100% - (var(--rc-icon) + 4px)) !important;
}

/* jika stepper jadi multi-row, matikan connector */
@media (max-width: 1199.98px) {
    .rc-od .rc-od__stepper[data-steps="6"] {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }
    .rc-od .rc-od__stepper .rc-step::after {
        display: none !important;
    }
}

@media (max-width: 575.98px) {
    .rc-od .rc-od__stepper[data-steps="6"] {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }
    .rc-od .rc-od__stepper .rc-step::after {
        display: none !important;
    }
}
