/* ==========================================================================
   Ramdut — panel design (admin / franchise / hub / customer / driver / login)
   Loaded once by resources/views/partials/head-css.blade.php after the theme.
   ALL custom styling lives here — no <style> blocks in Blade files
   (PDF / print views excepted: dompdf needs inline CSS).

   1. Tokens (theme variable overrides)      7. Badges
   2. Base & typography                       8. Buttons
   3. Sidebar menu & brand                    9. Forms
   4. Topbar & page header                   10. Alerts, modals, tabs
   5. Cards                                  11. Building blocks (rd-*)
   6. Tables & DataTables                    12. Page-specific (moved from Blade)
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root,
html[data-skin=modern] {
    --rd-primary: #5b4fe0;
    --rd-primary-rgb: 91, 79, 224;
    --rd-primary-hover: #4a3fd0;
    --rd-primary-soft: #eeedfc;
    --rd-orange: #f26b1d;
    --rd-navy: #1f2a4d;
    --rd-ink: #1e2433;
    --rd-text: #3d4459;
    --rd-muted: #8a91a6;
    --rd-line: #e9ebf2;
    --rd-bg: #f3f4f8;
    --rd-head-bg: #f6f7fb;
    --rd-radius: 14px;
    --rd-radius-sm: 10px;
    --rd-shadow: 0 1px 2px rgba(31, 42, 77, .04), 0 4px 18px rgba(31, 42, 77, .06);

    --ins-primary: var(--rd-primary);
    --ins-primary-rgb: var(--rd-primary-rgb);
    --ins-primary-bg-subtle: var(--rd-primary-soft);
    --ins-primary-border-subtle: #d4d0f8;
    --ins-primary-text-emphasis: var(--rd-primary-hover);
    --ins-link-color: var(--rd-primary);
    --ins-link-color-rgb: var(--rd-primary-rgb);
    --ins-link-hover-color: var(--rd-primary-hover);
    --ins-success: #16a37f;
    --ins-success-rgb: 22, 163, 127;
    --ins-success-bg-subtle: #e3f7f0;
    --ins-success-text-emphasis: #0f8a6a;
    --ins-warning: #e8a317;
    --ins-warning-rgb: 232, 163, 23;
    --ins-warning-bg-subtle: #fdf3e0;
    --ins-warning-text-emphasis: #c98a0c;
    --ins-danger: #e5484d;
    --ins-danger-rgb: 229, 72, 77;
    --ins-danger-bg-subtle: #fdecec;
    --ins-danger-text-emphasis: #cf3439;
    --ins-info: #1a9bd7;
    --ins-info-rgb: 26, 155, 215;
    --ins-info-bg-subtle: #e4f4fc;
    --ins-info-text-emphasis: #1485ba;
    --ins-secondary-bg-subtle: #eef0f5;
    --ins-purple: #7c5ce6;
    --ins-purple-bg-subtle: #f0ebfd;
    --ins-body-bg: var(--rd-bg);
    --ins-body-color: var(--rd-text);
    --ins-heading-color: var(--rd-ink);
    --ins-border-color: var(--rd-line);
    --ins-border-radius: var(--rd-radius-sm);
    --ins-body-font-size: 13px;
    --ins-theme-card-border-width: 0;
    --ins-theme-card-box-shadow: var(--rd-shadow);
}

html[data-skin=modern][data-menu-color=gradient] {
    --ins-sidenav-bg: linear-gradient(160deg, #1f4058 0%, #263649 55%, #2e2f45 100%);
    --ins-sidenav-item-color: #9db4c8;
    --ins-sidenav-item-hover-color: #ffffff;
    --ins-sidenav-item-hover-bg: rgba(255, 255, 255, .06);
    --ins-sidenav-item-active-color: #ffffff;
    --ins-sidenav-item-active-bg: rgba(255, 255, 255, .10);
    --ins-sidenav-item-font-size: 13px;
    --ins-sidenav-item-font-weight: 400;
    --ins-sidenav-item-padding-y: 9px;
    --ins-sidenav-item-padding-x: 12px;
    --ins-sidenav-item-icon-size: 18px;
    --ins-sidenav-item-gap: 11px;
}

html[data-skin=modern][data-topbar-color=dark] {
    --ins-topbar-bg: #384049;
    --ins-topbar-item-color: #c7ced8;
    --ins-topbar-item-hover-color: #ffffff;
}

/* 2. Base & typography ------------------------------------------------------ */
body { background-color: var(--rd-bg); color: var(--rd-text); font-size: 13px; }
.fw-bold { font-weight: 500 !important; }   /* lighter "bold" across the panels (Bootstrap default is 700) */
a { color: var(--rd-primary); }
a:hover { color: var(--rd-primary-hover); }
.text-primary { color: var(--rd-primary) !important; }
.bg-primary { background-color: var(--rd-primary) !important; }
.text-muted { color: var(--rd-muted) !important; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { color: var(--rd-ink); }
.fw-bold { font-weight: 700 !important; }
::selection { background: rgba(var(--rd-primary-rgb), .18); }
.content-page { padding: 0 1.25rem; }
.content-page > .container-fluid { padding-top: .5rem; padding-bottom: 2rem; }

/* 3. Sidebar menu & brand ---------------------------------------------------- */
.sidenav-menu { box-shadow: 2px 0 12px rgba(16, 24, 40, .08); }
.side-nav .side-nav-title {
    font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: rgba(199, 214, 230, .62); padding: 16px 20px 5px; margin: 0;
}
.side-nav > .side-nav-item { padding: 0 12px; }
.side-nav .side-nav-item .side-nav-link {
    border-radius: 10px; font-family: var(--ins-font-sans-serif);
    transition: background-color .15s ease, color .15s ease;
}
.side-nav .side-nav-item .side-nav-link .menu-icon { opacity: .9; }
.side-nav .side-nav-item.active > .side-nav-link,
.side-nav .side-nav-item .side-nav-link.active,
.side-nav .side-nav-item > .side-nav-link[aria-expanded=true] {
    background: var(--ins-sidenav-item-active-bg); color: var(--ins-sidenav-item-active-color);
}
/* Child items: line up with the parent's text, a small dot instead of a deep indent, no pill */
.side-nav .sub-menu { padding: 2px 0 6px; gap: 0; }
.side-nav .sub-menu .side-nav-item { padding: 0; }
.side-nav .sub-menu .side-nav-item .side-nav-link {
    position: relative; font-size: 13px; padding-top: 7px; padding-bottom: 7px; color: #93abc0; background: transparent !important;
}
.side-nav .sub-menu .side-nav-item .side-nav-link::before {
    content: ""; position: absolute; left: calc(var(--ins-sidenav-item-padding-x) + 7px); top: 50%; width: 5px; height: 5px;
    border-radius: 50%; background: currentColor; opacity: .45; transform: translateY(-50%);
}
.side-nav .sub-menu .side-nav-item .side-nav-link:hover,
.side-nav .sub-menu .side-nav-item.active > .side-nav-link,
.side-nav .sub-menu .side-nav-item .side-nav-link.active { color: #fff; }
.side-nav .sub-menu .side-nav-item.active > .side-nav-link::before,
.side-nav .sub-menu .side-nav-item .side-nav-link.active::before { opacity: 1; background: var(--rd-orange); }
.side-nav .side-nav-link .badge { font-size: 11px; padding: 3px 8px; }

/* Text brand (top-left) — was in partials/_brand.blade.php */
.rd-brand { display: inline-flex; flex-direction: column; justify-content: center; line-height: 1.05; white-space: nowrap; vertical-align: middle; }
.rd-brand-name { font-size: 21px; font-weight: 800; letter-spacing: .3px; }
.rd-brand-accent { color: var(--rd-orange); }
.rd-brand-sub { font-size: 9.5px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; margin-top: 3px; color: var(--rd-orange); }
.rd-brand-light .rd-brand-name { color: #ffffff; }
.rd-brand-dark .rd-brand-name { color: var(--rd-navy); }
.rd-brand-sm {
    display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px;
    background: var(--rd-orange); color: #fff; font-weight: 800; font-size: 15px; letter-spacing: .5px; vertical-align: middle;
}

/* 4. Topbar & page header ---------------------------------------------------- */
.app-topbar { box-shadow: 0 1px 0 rgba(0, 0, 0, .04); }
.app-topbar .sidenav-toggle-button { border: 1px dashed rgba(255, 255, 255, .25); border-radius: 10px; }
.page-title-head { padding: 1.5rem 0 1.1rem; min-height: auto; }
.page-title-head h4, .page-title-head .fs-xl { font-size: 1.25rem !important; font-weight: 500 !important; color: var(--rd-ink); letter-spacing: -.01em; }
.page-title-head small, .page-title-head .text-muted { font-size: 13px; }
.breadcrumb { font-size: 13px; }
.breadcrumb-item + .breadcrumb-item::before { content: "›"; color: #b3b9c8; font-size: 16px; line-height: 1; padding-right: .5rem; }
.breadcrumb-item a { color: var(--rd-ink); }
.breadcrumb-item.active { color: var(--rd-muted); }

/* 5. Cards ------------------------------------------------------------------- */
.card {
    border: 0; border-radius: var(--rd-radius); box-shadow: var(--rd-shadow);
    --ins-card-border-radius: var(--rd-radius); --ins-card-inner-border-radius: var(--rd-radius);
    margin-bottom: 1.5rem;
}
.card .card-header {
    background: transparent; border-bottom: 1px dashed var(--rd-line); padding: 1.15rem 1.35rem;
    border-radius: var(--rd-radius) var(--rd-radius) 0 0;
}
.card .card-header .card-title, .card .card-title { font-size: 16px; font-weight: 500; color: var(--rd-ink); }
.card .card-header small.text-muted, .card .card-header .card-subtitle { font-size: 13px; display: block; margin-top: 4px; }
.card .card-body { padding: 1.35rem; }
.card .card-body.p-0 { padding: 0; }
.card .card-footer { background: transparent; border-top: 1px dashed var(--rd-line); padding: 1.1rem 1.5rem; }

/* 6. Tables & DataTables ------------------------------------------------------ */
.table { --ins-table-color: var(--rd-text); --ins-table-border-color: var(--rd-line); --ins-table-hover-bg: #f7f8fc; margin-bottom: 0; }
.table > thead > tr > th, .table thead th, .table > thead.table-light th, .table-light > tr > th {
    background: var(--rd-head-bg) !important; color: #6b7287 !important; font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .06em; padding: 12px 14px; border-bottom: 1px solid var(--rd-line); white-space: nowrap;
}
.table > tbody > tr > td { padding: 13px 14px; border-color: var(--rd-line); vertical-align: middle; }
.table.table-sm > thead > tr > th { padding: 10px 12px; }
.table.table-sm > tbody > tr > td { padding: 9px 12px; }
.table-striped > tbody > tr:nth-of-type(odd) > * { --ins-table-bg-type: transparent; }
.table-hover > tbody > tr:hover > * { --ins-table-bg-state: #f7f8fc; }
.table-responsive { border-radius: 12px; }
.card-body > .table-responsive, .card-body > .dt-container .table-responsive { border: 1px solid var(--rd-line); }
/* Older list pages put the whole DataTables block (length + search + table + footer) inside .table-responsive:
   no frame around that, the table inside gets it instead. */
.table-responsive:has(> .dt-container), .table-responsive:has(> div > .dt-container) { border: 0 !important; overflow: visible; }
.table-responsive > .dt-container > .row:has(> div > table), .dt-container .dt-layout-table { border: 1px solid var(--rd-line); border-radius: 12px; overflow: hidden; margin: 0 0 .25rem; }
.dt-container .dt-layout-table > div, .dt-container .row:has(> div > table) > div { padding: 0; }
.dt-container table.dataTable { margin: 0 !important; }
.dt-container .dt-empty, .dataTables_empty { color: var(--rd-muted); padding: 2rem 1rem !important; }
.card-body.p-0 > .table-responsive, .card-body.p-0 .table-responsive { border: 0; border-radius: 0 0 var(--rd-radius) var(--rd-radius); }
.table a.fw-semibold { color: var(--rd-primary); }

/* DataTables (Bootstrap 5 integration) */
.dt-container .dt-search input, .dataTables_filter input {
    min-width: 260px; height: 40px; border-radius: var(--rd-radius-sm); border: 1px solid var(--rd-line);
    padding-left: 40px !important;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%238a91a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 13px center;
}
.dt-container .dt-search label { display: none; }
.dt-container .dt-length select, .dataTables_length select {
    height: 40px; min-width: 80px; border-radius: var(--rd-radius-sm); border-color: var(--rd-line);
}
.dt-container .dt-length label { color: var(--rd-muted); }
.dt-container .row:first-child { margin-bottom: 1.25rem; }
.dt-container .row:last-child, .dt-container .dt-layout-row:last-child { align-items: center; margin-top: .9rem; }
.dt-container .dt-info { color: var(--rd-muted); font-size: 13px; padding-top: 0; }
.dt-container .dt-paging { padding-top: 0; }
.dt-container .dt-paging .pagination { margin: 0; justify-content: flex-end; }
.pagination { gap: 6px; --ins-pagination-border-width: 0; }
.pagination .page-link, .dt-paging .pagination .page-link, .pagination-boxed .page-link { margin-left: 0 !important; }   /* theme adds .35rem on top of the gap */
.pagination .page-link, .dt-paging .pagination .page-link {
    min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px !important; border: 0; background: #f1f2f7; color: var(--rd-text); font-weight: 600; padding: 0 10px;
}
.pagination .page-item.active .page-link { background: var(--rd-primary); color: #fff; box-shadow: none; }
.pagination .page-item.disabled .page-link { background: #f6f7fa; color: #c0c5d2; }
.pagination .page-link:hover { background: var(--rd-primary-soft); color: var(--rd-primary); }
table.dataTable > thead > tr > th.dt-orderable-asc span.dt-column-order,
table.dataTable > thead > tr > th.dt-orderable-desc span.dt-column-order { opacity: .55; }

/* 7. Badges -------------------------------------------------------------------- */
.badge { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; letter-spacing: .01em; }
.badge.fs-12 { font-size: 11px !important; }
.badge.rounded-pill { padding: 4px 9px; }
.bg-primary-subtle { background-color: var(--rd-primary-soft) !important; }
.badge-soft-purple { background: #f0ebfd; color: #7c5ce6; }
/* Labels inside table rows (status, COD / PREPAID, PICKUP…) stay small and quiet so the row data leads. */
.table td .badge { font-size: 9.5px; font-weight: 600; padding: 2px 7px; letter-spacing: .03em; line-height: 1.5; margin-top: 3px; border-radius: 6px; }

/* 8. Buttons --------------------------------------------------------------------- */
.btn { border-radius: var(--rd-radius-sm); font-weight: 500; padding: .5rem 1rem; font-size: 13px; }
.btn-sm { border-radius: 8px; padding: .3rem .7rem; font-size: 12px; }
.btn-lg { padding: .8rem 1.5rem; }
.btn-primary {
    --ins-btn-bg: var(--rd-primary); --ins-btn-border-color: var(--rd-primary);
    --ins-btn-hover-bg: var(--rd-primary-hover); --ins-btn-hover-border-color: var(--rd-primary-hover);
    --ins-btn-active-bg: var(--rd-primary-hover); --ins-btn-active-border-color: var(--rd-primary-hover);
    background-color: var(--rd-primary); border-color: var(--rd-primary); color: #fff;
    box-shadow: 0 4px 12px rgba(var(--rd-primary-rgb), .25);
}
.btn-primary:hover, .btn-primary:focus { background-color: var(--rd-primary-hover); border-color: var(--rd-primary-hover); color: #fff; }
.btn-light { background: #eef0f5; border-color: #eef0f5; color: var(--rd-ink); }
.btn-light:hover { background: #e3e6ee; border-color: #e3e6ee; color: var(--rd-ink); }
.btn-soft-primary { background: var(--rd-primary-soft); color: var(--rd-primary); border-color: transparent; }
.btn-soft-primary:hover { background: var(--rd-primary); color: #fff; }
.btn-success { box-shadow: 0 4px 12px rgba(22, 163, 127, .22); }
.btn:focus-visible { box-shadow: 0 0 0 .2rem rgba(var(--rd-primary-rgb), .25); }
/* Small icon-only buttons in tables become round */
.table .btn-sm:has(> i.ti:only-child), .rd-icon-btn {
    width: 34px; height: 34px; padding: 0; border-radius: 50% !important; display: inline-flex; align-items: center; justify-content: center;
}
.rd-icon-btn { border: 1px solid var(--rd-line); background: #fff; color: #5b6275; }
.rd-icon-btn:hover { background: var(--rd-primary-soft); color: var(--rd-primary); border-color: transparent; }
.btn-ramdut { background: #f26522; border-color: #f26522; color: #fff; }
.btn-ramdut:hover, .btn-ramdut:focus, .btn-ramdut:active { background: #d9541a; border-color: #d9541a; color: #fff; box-shadow: none; }

/* 9. Forms --------------------------------------------------------------------- */
.form-label { font-size: 13px; font-weight: 500; color: var(--rd-ink); margin-bottom: .45rem; }
.form-label.fw-semibold, .form-label.fw-bold { font-weight: 500 !important; }   /* many labels carry these classes; keep one weight */
.form-label .text-danger { color: var(--ins-danger) !important; }
.form-control, .form-select {
    min-height: 40px; border-radius: var(--rd-radius-sm); border: 1px solid #dfe2ea; color: var(--rd-ink); font-size: 13px;
    padding: .5rem .85rem; background-color: #fff;
}
.form-control-sm, .form-select-sm { min-height: 32px; border-radius: 8px; padding: .3rem .65rem; font-size: 12.5px; }
.form-control-lg { min-height: 46px; }
textarea.form-control { min-height: 90px; }
.form-control::placeholder { color: #a8aebd; }
.form-control:focus, .form-select:focus {
    border-color: rgba(var(--rd-primary-rgb), .55); box-shadow: 0 0 0 .2rem rgba(var(--rd-primary-rgb), .12);
}
.input-group-text { background: #f3f4f8; border-color: #dfe2ea; color: #5b6275; border-radius: var(--rd-radius-sm); }
.input-group > .form-control, .input-group > .form-select { min-height: 40px; }
.form-check-input:checked { background-color: var(--rd-primary); border-color: var(--rd-primary); }
.form-check-input:focus { box-shadow: 0 0 0 .2rem rgba(var(--rd-primary-rgb), .18); border-color: rgba(var(--rd-primary-rgb), .5); }
.form-switch .form-check-input { width: 2.6em; height: 1.4em; cursor: pointer; }
.form-text, small.text-muted { font-size: 12px; }
.flatpickr-input.form-control[readonly] { background-color: #fff; }

/* Rich text (Quill) — was in admin/masters/services/{create,edit} */
.ql-toolbar.ql-snow { border-radius: var(--rd-radius-sm) var(--rd-radius-sm) 0 0; border-color: #dfe2ea; }
.ql-container.ql-snow { border-color: #dfe2ea; border-radius: 0 0 var(--rd-radius-sm) var(--rd-radius-sm); font-size: 13px; }
/* Select2 — was in admin/quick-bookings/_form */
.qb-form .select2-container--default .select2-selection--single { height: 40px; padding: .4rem .3rem; border-color: #dfe2ea; border-radius: var(--rd-radius-sm); }
.qb-form .select2-container--default .select2-selection--single .select2-selection__arrow { height: 100%; }
.qb-form .select2-container { width: 100% !important; }

/* 10. Alerts, modals, tabs ----------------------------------------------------- */
.alert { border-radius: 12px; border: 0; padding: .9rem 1.1rem; }
.alert-success { background: var(--ins-success-bg-subtle); color: var(--ins-success-text-emphasis); }
.alert-warning { background: var(--ins-warning-bg-subtle); color: #9a6a06; }
.alert-danger { background: var(--ins-danger-bg-subtle); color: var(--ins-danger-text-emphasis); }
.alert-info { background: var(--ins-info-bg-subtle); color: var(--ins-info-text-emphasis); }
.modal-content { border: 0; border-radius: 16px; box-shadow: 0 20px 60px rgba(16, 24, 40, .18); }
.modal-header { border-bottom: 1px dashed var(--rd-line); padding: 1.2rem 1.5rem; }
.modal-footer { border-top: 1px dashed var(--rd-line); }
.nav-pills .nav-link { border-radius: 10px; font-weight: 600; color: #5b6275; }
.nav-pills .nav-link.active { background: var(--rd-primary); color: #fff; }
.nav-tabs { border-bottom-color: var(--rd-line); }
.nav-tabs .nav-link { font-weight: 600; color: #6b7287; border: 0; border-bottom: 2px solid transparent; }
.nav-tabs .nav-link.active { color: var(--rd-primary); border-bottom-color: var(--rd-primary); background: transparent; }
.dropdown-menu { border: 0; border-radius: 12px; box-shadow: 0 12px 40px rgba(16, 24, 40, .14); padding: .4rem; }
.dropdown-item { border-radius: 8px; padding: .5rem .8rem; }

/* 11. Building blocks (rd-*) ----------------------------------------------------- */

/* Stat card: coloured round icon + label + big number (+ sub text) */
.rd-stat { display: flex; align-items: flex-start; gap: 14px; height: 100%; padding: 18px 20px; }
.rd-stat-icon {
    width: 46px; height: 46px; border-radius: 50%; flex: 0 0 46px; display: inline-flex; align-items: center; justify-content: center; font-size: 21px;
}
.rd-stat-label { font-size: 13px; font-weight: 500; color: var(--rd-ink); margin: 4px 0 2px; }
.rd-stat-value { font-size: 24px; font-weight: 500; color: var(--rd-ink); line-height: 1.15; letter-spacing: -.01em; }
.rd-stat-sub { font-size: 12px; color: var(--rd-muted); margin-top: 8px; }

.card > .rd-stat { min-height: 100px; }

/* Section header inside a card: title + subtitle + dashed divider */
.rd-section { padding: 1.15rem 1.35rem; border-bottom: 1px dashed var(--rd-line); display: flex; align-items: flex-start; gap: 1rem; }
.rd-section-title { font-size: 16px; font-weight: 700; color: var(--rd-ink); margin: 0; }
.rd-section-sub { font-size: 13px; color: var(--rd-muted); margin: 4px 0 0; }
.rd-section .rd-section-actions { margin-left: auto; display: flex; gap: .5rem; align-items: center; }

/* Label / value rows */
.rd-kv { display: flex; justify-content: space-between; gap: 1rem; padding: 10px 0; border-bottom: 1px solid var(--rd-line); }
.rd-kv:last-child { border-bottom: 0; }
.rd-kv-label { color: var(--rd-muted); }
.rd-kv-value { color: var(--rd-ink); font-weight: 600; text-align: right; }
.rd-kv-plain .rd-kv { border-bottom: 0; padding: 7px 0; }

/* Round initial avatar */
.rd-avatar {
    width: 48px; height: 48px; border-radius: 50%; background: var(--rd-primary-soft); color: var(--rd-primary);
    display: inline-flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 700; flex: 0 0 48px;
}
.rd-avatar-sm { width: 38px; height: 38px; flex-basis: 38px; font-size: 15px; }

/* List toolbar: search left; Filters + page size right */
.rd-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.rd-toolbar .rd-search { position: relative; flex: 0 1 340px; }
.rd-toolbar .rd-search input { padding-left: 40px; }
.rd-toolbar .rd-search i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--rd-muted); font-size: 16px; }
.rd-toolbar .rd-toolbar-end { margin-left: auto; display: flex; gap: .6rem; align-items: center; }
.rd-filter-btn { background: #eef0f5; border: 0; color: var(--rd-ink); height: 40px; display: inline-flex; align-items: center; gap: 8px; }
.rd-filter-btn:hover, .rd-filter-btn.active { background: var(--rd-primary-soft); color: var(--rd-primary); }
.rd-filter-btn .rd-filter-count { background: var(--rd-primary); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 7px; }

/* Advanced filters row (opened by the Filters button) */
.rd-filters { display: none; padding: 1rem 0 1.25rem; margin-bottom: 1rem; border-bottom: 1px solid var(--rd-line); }
.rd-filters.open { display: block; animation: rdFade .15s ease; }
.rd-filters .rd-filter-field { position: relative; }
.rd-filters .rd-filter-field > i { position: absolute; left: calc(var(--bs-gutter-x, 0px) * .5 + 13px); bottom: 12px;   /* the field sits inside the column gutter */
    color: var(--rd-muted); font-size: 16px; pointer-events: none; z-index: 2; }
.rd-filters .rd-filter-field > .form-control, .rd-filters .rd-filter-field > .form-select,
.rd-filters .rd-filter-field > .flatpickr-input + input { padding-left: 40px; }
.rd-filters .rd-filter-clear { width: 40px; height: 40px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
@keyframes rdFade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Sticky action bar at the bottom of long forms */
.rd-sticky-actions {
    position: sticky; bottom: 12px; z-index: 20; display: flex; align-items: center; gap: 1rem;
    background: #fff; border-radius: var(--rd-radius); box-shadow: 0 8px 30px rgba(16, 24, 40, .12); padding: 14px 22px; margin-top: 1rem;
}
.rd-sticky-actions .rd-sticky-summary small { display: block; color: var(--rd-muted); font-size: 12px; }
.rd-sticky-actions .rd-sticky-summary strong { font-size: 19px; color: var(--rd-ink); }
.rd-sticky-actions .rd-sticky-buttons { margin-left: auto; display: flex; gap: .6rem; align-items: center; }
.rd-sticky-actions .btn-link { color: var(--rd-ink); text-decoration: none; font-weight: 600; }

/* Feature / switch card */
.rd-toggle-card {
    display: flex; align-items: center; gap: 16px; border: 1px solid var(--rd-line); border-radius: var(--rd-radius); padding: 18px 20px; height: 100%; background: #fff;
}
.rd-toggle-card .rd-toggle-icon {
    width: 44px; height: 44px; border-radius: 12px; background: var(--rd-primary-soft); color: var(--rd-primary);
    display: inline-flex; align-items: center; justify-content: center; font-size: 20px; flex: 0 0 44px;
}
.rd-toggle-card .rd-toggle-title { font-weight: 600; color: var(--rd-ink); margin: 0; }
.rd-toggle-card .rd-toggle-desc { color: var(--rd-muted); font-size: 12.5px; margin: 2px 0 0; }
.rd-toggle-card .form-check { margin-left: auto; margin-bottom: 0; }

/* Empty state */
.rd-empty { text-align: center; color: var(--rd-muted); padding: 2.2rem 1rem; }
.rd-empty i { display: block; font-size: 34px; color: #c3c8d5; margin-bottom: .4rem; }

/* Header controls (e.g. the date range button next to a page title) */
.rd-head-controls { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* Date range picker with presets */
.rd-daterange { position: relative; display: inline-block; }
.rd-daterange-btn {
    display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--rd-line); border-radius: 12px;
    padding: .5rem .9rem; font-weight: 600; color: var(--rd-ink); box-shadow: 0 1px 2px rgba(16, 24, 40, .04); min-height: 40px;
}
.rd-daterange-btn:hover { border-color: rgba(var(--rd-primary-rgb), .4); }
.rd-daterange-btn .ti-chevron-down { color: var(--rd-muted); }
.rd-daterange-pop {
    display: none; position: absolute; left: 0; top: calc(100% + 8px); z-index: 1060; background: #fff; border-radius: 16px;
    box-shadow: 0 20px 60px rgba(16, 24, 40, .2); overflow: hidden; min-width: 380px;
}
.rd-daterange.open .rd-daterange-pop { display: block; animation: rdFade .15s ease; }
.rd-head-controls .rd-daterange-pop { left: auto; right: 0; }   /* in a page header (right side) open towards the left */
.rd-daterange-body { display: flex; }
.rd-daterange-presets { list-style: none; margin: 0; padding: 10px 0; min-width: 210px; border-right: 1px solid var(--rd-line); }
.rd-daterange-presets li button {
    display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 8px 20px; color: var(--rd-ink); font-size: 13px;
}
.rd-daterange-presets li button:hover { background: #f4f5f9; }
.rd-daterange-presets li button.active { background: var(--rd-primary); color: #fff; }
.rd-daterange-cal { display: none; padding: 12px; }
.rd-daterange.custom .rd-daterange-cal { display: block; }
.rd-daterange-cal .flatpickr-calendar { box-shadow: none; }
.rd-daterange-foot { display: flex; align-items: center; justify-content: flex-end; gap: .6rem; border-top: 1px solid var(--rd-line); padding: 12px 16px; }
.rd-daterange-foot .rd-daterange-text { margin-right: auto; color: var(--rd-text); font-size: 13px; white-space: nowrap; font-weight: 500; }
.rd-daterange:not(.custom) .rd-daterange-presets { flex: 1; border-right: 0; }
@media (max-width: 767px) {
    .rd-daterange-pop { right: auto; left: 0; min-width: 0; width: calc(100vw - 32px); }
    .rd-daterange-body { flex-direction: column; }
    .rd-daterange-presets { border-right: 0; border-bottom: 1px solid var(--rd-line); display: flex; flex-wrap: wrap; }
    .rd-daterange-presets li button { padding: 8px 14px; }
    .rd-toolbar .rd-search { flex: 1 1 100%; }
    .rd-stat-value { font-size: 22px; }
}

/* 12. Page-specific (moved from Blade files) -------------------------------------- */

/* Customer / franchise create wizard steps */
.cust-steps { display: flex; gap: 0; background: #f1f2f8; border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.cust-step { flex: 1; display: flex; align-items: center; gap: .6rem; color: #6b7287; font-weight: 600; position: relative; }
.cust-step .num {
    width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--rd-primary); color: var(--rd-primary);
    display: flex; align-items: center; justify-content: center; font-size: .85rem; background: #fff; flex: 0 0 auto;
}
.cust-step.active .num { background: var(--rd-primary); color: #fff; }
.cust-step.active { color: var(--rd-ink); }
.cust-pane { display: none; }
.cust-pane.active { display: block; }

/* New / Edit Order step indicator */
/* Order wizard: plain stepper on white — numbered circles joined by a line that fills in as steps are done. */
.order-stepper, .order-stepper.bg-light { background: transparent !important; border: 0; border-radius: 0; padding: 0 0 1.25rem !important;
    margin-bottom: 1.5rem !important; border-bottom: 1px dashed var(--rd-line); flex-wrap: nowrap !important; gap: 0 !important; }
.order-stepper .nav-item { flex: 1 1 0; min-width: 0; }
.order-stepper .nav-item:last-child { flex: 0 0 auto; }
.order-stepper .nav-link, .order-stepper .nav-link.active { cursor: default; background-color: transparent; box-shadow: none; padding: 0; gap: 10px !important; }
.order-stepper .nav-item:not(:last-child) .nav-link::after {
    content: ""; flex: 1 1 auto; min-width: 16px; height: 2px; border-radius: 2px; margin: 0 14px 0 4px; background: #e4e7ef; transition: background .2s ease;
}
.order-stepper .nav-item:not(:last-child) .nav-link.done::after { background: var(--rd-primary); }
.order-stepper .step-pill-badge {
    flex: 0 0 auto; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
    border: 1.5px solid #d9dde8; background: #fff; color: #9aa1b2; font-size: 12px; font-weight: 600; transition: all .2s ease;
}
.order-stepper .step-pill-label { color: #9aa1b2; font-size: 13px; font-weight: 500; white-space: nowrap; transition: color .2s ease; }
.order-stepper .nav-link.done .step-pill-badge { background: var(--rd-primary-soft); border-color: var(--rd-primary-soft); color: var(--rd-primary); }
.order-stepper .nav-link.done .step-pill-label { color: var(--rd-text); }
.order-stepper .nav-link.active .step-pill-badge { background: var(--rd-primary); border-color: var(--rd-primary); color: #fff; box-shadow: 0 0 0 4px rgba(var(--rd-primary-rgb), .14); }
.order-stepper .nav-link.active .step-pill-label { color: var(--rd-ink); font-weight: 600; }
@media (max-width: 991.98px) {   /* small screens: numbers + line only, label of the current step stays */
    .order-stepper .step-pill-label { display: none; }
    .order-stepper .nav-link.active .step-pill-label { display: inline; }
}

/* All Orders status tabs */
/* Status tabs (orders list, pickup requests): quiet segmented control — grey track, the active tab is a white chip. */
#status-tabs, #pr-tabs { display: inline-flex !important; flex-wrap: wrap; gap: 2px !important; padding: 4px; background: #f1f2f7; border-radius: 12px; }
#status-tabs .nav-link, #pr-tabs .pr-tab { background: transparent !important; color: #6b7287 !important; border: 0 !important; box-shadow: none !important;
    font-weight: 500; font-size: 13px; padding: .4rem .9rem; border-radius: 9px; }
#status-tabs .nav-link:hover, #pr-tabs .pr-tab:hover { color: var(--rd-ink) !important; }
#status-tabs .nav-link.active, #pr-tabs .pr-tab.btn-primary { background: #fff !important; color: var(--rd-ink) !important; font-weight: 600;
    box-shadow: 0 1px 3px rgba(20, 25, 40, .1) !important; }
#status-tabs .nav-link .tab-count { display: none; }
#status-tabs .nav-link.active .tab-count { display: inline; color: var(--rd-muted); font-weight: 500; }
#pr-tabs .pr-tab .badge { background: #e4e6ee !important; color: #5b6275 !important; font-size: 11px; padding: 2px 7px; margin-left: 4px; }
#pr-tabs .pr-tab.btn-primary .badge { background: var(--rd-ink) !important; color: #fff !important; }

/* Settings page left menu */
.settings-nav-item { color: var(--rd-text); border-radius: 10px; transition: background-color .15s ease, color .15s ease; }
.settings-nav-item:hover { background-color: #f1f2f8; color: var(--rd-ink); }
.settings-nav-item.active { background-color: var(--rd-primary); color: #fff !important; }

/* Login */
.auth-box .card { border-radius: 18px; }
.rd-toolbar .rd-length { width: auto; min-width: 80px; }

/* Flatpickr in the brand colours (date fields + the date-range calendar) */
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange,
.flatpickr-day.selected:hover, .flatpickr-day.startRange:hover, .flatpickr-day.endRange:hover {
    background: var(--rd-primary); border-color: var(--rd-primary); color: #fff;
}
.flatpickr-day.inRange { background: var(--rd-primary-soft); border-color: var(--rd-primary-soft); box-shadow: -5px 0 0 var(--rd-primary-soft), 5px 0 0 var(--rd-primary-soft); color: var(--rd-ink); }
.flatpickr-day.today { border-color: var(--rd-primary); }
.flatpickr-day:hover { background: #f1f2f8; border-color: #f1f2f8; }
.flatpickr-calendar { border-radius: 12px; }
.rd-daterange-cal .flatpickr-calendar.inline { border: 0; }

/* Note next to a card title (e.g. "Fields marked with * are mandatory.") — small and quiet. */
.card-title > small { font-size: 12px; font-weight: 400; margin-left: 6px; vertical-align: middle; }
.card-title > small.text-danger { color: rgba(var(--ins-danger-rgb), .8) !important; }

/* Bordered tables (e.g. order "Item Information"): the wrapper draws one rounded frame, the table only the inner lines. */
.table-responsive:has(> .table-bordered) { border: 1px solid var(--rd-line); border-radius: 12px; }
.table-responsive > .table-bordered { margin-bottom: 0; border-style: hidden; }
/* Rows that hold inputs: a bit tighter so the fields fill the cell evenly. */
.table td:has(> .form-control, > .form-select, > .input-group) { padding: 10px 12px; }
/* A button right under a table ("Add Item") gets breathing room. */
.table-responsive + .btn { margin-top: .9rem; }

/* Select with small action buttons beside it (order form: edit / add customer) — separate rounded buttons, not glued on. */
.rd-input-actions { flex-wrap: nowrap; gap: 8px; }
.rd-input-actions > .form-select, .rd-input-actions > .form-control { border-radius: var(--ins-border-radius, 10px) !important; }
.rd-input-actions > .select2-container .select2-selection { border-radius: 10px !important; }
.rd-input-actions > .rd-act-btn {
    flex: 0 0 40px; width: 40px; height: 40px; padding: 0; margin-left: 0 !important; border-radius: 10px !important;
    display: inline-flex; align-items: center; justify-content: center; font-size: 17px; box-shadow: none;
    background: #fff; border: 1px solid var(--rd-line); color: var(--rd-muted);
}
.rd-input-actions > .rd-act-btn:hover:not(:disabled) { border-color: var(--rd-primary); color: var(--rd-primary); background: var(--rd-primary-soft); }
.rd-input-actions > .rd-act-btn:disabled { opacity: .45; }
.rd-input-actions > .rd-act-add { background: var(--rd-primary-soft); border-color: transparent; color: var(--rd-primary); }
.rd-input-actions > .rd-act-add:hover { background: var(--rd-primary) !important; color: #fff !important; }

/* ===================================================================== Order details page */
.rd-back { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid var(--rd-line); color: var(--rd-text); font-size: 17px; }
.rd-back:hover { border-color: var(--rd-primary); color: var(--rd-primary); }

/* From → To strip */
.rd-route { display: flex; align-items: center; gap: 1rem; }
.rd-route-end { display: flex; align-items: center; gap: .75rem; flex: 0 1 auto; min-width: 0; }
.rd-route-dot { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--rd-primary-soft); color: var(--rd-primary); font-size: 20px; }
.rd-route-dot-to { background: rgba(var(--ins-success-rgb), .12); color: var(--ins-success); }
.rd-route-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--rd-muted); font-weight: 600; }
.rd-route-city { font-size: 16px; font-weight: 700; color: var(--rd-ink); line-height: 1.3; }
.rd-route-mid { flex: 1 1 auto; position: relative; display: flex; justify-content: center; min-width: 80px; }
.rd-route-mid::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed #dfe2ec; }
.rd-route-carrier { position: relative; background: #fff; padding: 4px 12px; border: 1px solid var(--rd-line); border-radius: 999px;
    font-size: 12px; font-weight: 600; color: var(--rd-text); white-space: nowrap; }

/* Journey progress */
.rd-journey { display: flex; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px dashed var(--rd-line); }
.rd-journey-step { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; text-align: center; }
.rd-journey-step:not(:first-child)::before { content: ""; position: absolute; top: 17px; right: calc(50% + 24px); left: calc(-50% + 24px);
    height: 3px; border-radius: 3px; background: #e7e9f1; }
.rd-journey-step.done::before, .rd-journey-step.current::before { background: var(--rd-primary) !important; }
.rd-journey-icon { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: #f1f2f7; color: #a3a9b8; font-size: 17px; position: relative; z-index: 1; }
.rd-journey-step.done .rd-journey-icon { background: var(--rd-primary-soft); color: var(--rd-primary); }
.rd-journey-step.current .rd-journey-icon { background: var(--rd-primary); color: #fff; box-shadow: 0 0 0 5px rgba(var(--rd-primary-rgb), .14); }
.rd-journey-name { font-size: 12px; font-weight: 500; color: var(--rd-muted); }
.rd-journey-step.done .rd-journey-name { color: var(--rd-text); }
.rd-journey-step.current .rd-journey-name { color: var(--rd-ink); font-weight: 700; }
.rd-journey-alert { display: flex; gap: .75rem; align-items: center; margin-top: 1.25rem; padding: .85rem 1rem; border-radius: 12px;
    background: rgba(var(--ins-danger-rgb), .07); color: var(--ins-danger); }
.rd-journey-alert > i { font-size: 22px; }
.rd-journey-alert small { color: var(--rd-text); }

/* Pickup | Delivery */
.rd-addr { padding: 1.35rem; }
.rd-addr + .rd-addr { border-left: 1px dashed var(--rd-line); }
.rd-addr-head { display: flex; align-items: center; gap: .65rem; font-size: 15px; font-weight: 500; color: var(--rd-ink); margin-bottom: .9rem; }
.rd-addr-head .rd-avatar-sm { width: 34px; height: 34px; flex-basis: 34px; font-size: 15px; }
@media (max-width: 767.98px) { .rd-addr + .rd-addr { border-left: 0; border-top: 1px dashed var(--rd-line); } }

/* Small label/value tiles (package size, POD) */
.rd-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: .65rem; }
.rd-chip { background: #f6f7fb; border-radius: 10px; padding: .5rem .8rem; display: flex; flex-direction: column; gap: 0; min-width: 0; }
.rd-chip span { font-size: 11.5px; color: var(--rd-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-chip strong { font-size: 14px; color: var(--rd-ink); font-weight: 500; }

/* Charges */
.rd-total { display: flex; justify-content: space-between; padding: .75rem 0 0;   /* the row above already draws the divider */
    color: var(--rd-primary); font-weight: 700; font-size: 15px; }
.rd-note-box { background: #f6f7fb; border-radius: 12px; padding: 1rem 1.1rem; height: 100%; }
.rd-pod-img { max-height: 220px; max-width: 100%; border: 1px solid var(--rd-line); border-radius: 10px; padding: 4px; background: #fff; }

/* Latest status + timeline */
.rd-now { background: #f6f7fb; border-radius: 12px; padding: .9rem 1rem; margin-bottom: 1rem; }
.rd-timeline-title { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--rd-muted); font-weight: 600; margin: .25rem 0 .9rem; }
.rd-timeline { max-height: 460px; overflow-y: auto; padding-right: 6px; }
.rd-timeline-item { position: relative; padding: 0 0 1.1rem 26px; }
.rd-timeline-item::before { content: ""; position: absolute; left: 5px; top: 6px; width: 12px; height: 12px; border-radius: 50%;
    background: #fff; border: 2px solid #c9cddb; z-index: 1; }
.rd-timeline-item::after { content: ""; position: absolute; left: 10px; top: 18px; bottom: -4px; width: 2px; background: #eceef4; }
.rd-timeline-item:last-child::after { display: none; }
.rd-timeline-item:last-child { padding-bottom: 0; }
.rd-timeline-item.first::before { background: var(--rd-primary); border-color: var(--rd-primary); box-shadow: 0 0 0 4px rgba(var(--rd-primary-rgb), .14); }
.rd-timeline-item.error::before { border-color: var(--ins-danger); }
.rd-timeline-src { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--rd-muted); margin-top: 2px; }
@media (max-width: 767.98px) { .rd-route-city { font-size: 14px; } .rd-journey-name { font-size: 10.5px; } }

/* Topbar user name on the dark bar: white (theme colours the h5 dark). */
.app-topbar .topbar-link h5, .app-topbar .topbar-link .ti-chevron-down { color: #fff; }

/* ===================================================================== Rate calculator */
.rd-form-group-title { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    color: var(--rd-muted); margin-bottom: .85rem; }
.rd-form-group-title i { font-size: 16px; }
.rd-pin-group > .form-control:first-child { flex: 0 0 42%; }
.rd-pin-group > .rd-pin-city { background: #f6f7fb !important; color: var(--rd-text); }
.rd-route-arrow { width: 32px; height: 32px; margin-bottom: 4px; border-radius: 50%; background: #f1f2f7; color: var(--rd-muted); display: inline-flex; align-items: center; justify-content: center; }
.rd-quote { border: 1px solid var(--rd-line); border-radius: 12px; padding: .9rem 1rem; margin-bottom: .75rem; }
.rd-quote:last-child { margin-bottom: 0; }
.rd-quote.best { border-color: rgba(var(--ins-success-rgb), .45); background: rgba(var(--ins-success-rgb), .03); }
.rd-quote-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-bottom: .65rem; margin-bottom: .55rem; border-bottom: 1px dashed var(--rd-line); }
.rd-quote-name { font-weight: 600; color: var(--rd-ink); display: inline-flex; align-items: center; gap: 6px; }
.rd-quote-name > i { color: var(--rd-muted); font-size: 17px; }
.rd-quote-total { font-size: 20px; font-weight: 700; color: var(--rd-ink); white-space: nowrap; }
.rd-quote.best .rd-quote-total { color: var(--ins-success); }
.rd-quote-lines { list-style: none; padding: 0; margin: 0; font-size: 12.5px; color: var(--rd-muted); }
.rd-quote-lines li { display: flex; justify-content: space-between; padding: 2px 0; }
.rd-quote-lines li span:last-child { color: var(--rd-text); }
.rd-terms { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: .5rem 1.5rem; color: var(--rd-text); }
.rd-terms li { position: relative; padding-left: 22px; }
.rd-terms li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: #c3c8d5; }

/* Small selects (report "group by" pickers): room for the arrow, sized to their text. */
.form-select.form-select-sm { height: 34px; min-height: 34px; padding: .25rem 2.1rem .25rem .8rem; background-position: right .7rem center; font-size: 13px; border-radius: 9px; }
.card-header .form-select.form-select-sm { width: auto; min-width: 140px; }

/* ===================================================================== Prohibited items */
.rd-ban-card { flex-direction: row; align-items: flex-start; gap: .9rem; padding: 1.1rem 1.15rem; transition: transform .15s ease, box-shadow .15s ease; }
.rd-ban-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(20, 25, 40, .08); }
.rd-ban-icon { position: relative; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(var(--ins-danger-rgb), .08); color: var(--ins-danger); font-size: 22px; }
.rd-ban-icon::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 14px; height: 14px; border-radius: 50%;
    background: var(--ins-danger) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center / 8px no-repeat;
    border: 2px solid #fff; }
.rd-ban-name { font-size: 14px; font-weight: 600; color: var(--rd-ink); margin-bottom: 3px; }
.rd-ban-desc { font-size: 12.5px; color: var(--rd-muted); line-height: 1.5; }

/* ===================================================================== Resource pages (packaging guidelines) */
.rd-info-card { flex-direction: row; align-items: flex-start; gap: .9rem; padding: 1.1rem 1.15rem; }
.rd-info-icon { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; }
.rd-info-name { font-size: 14px; font-weight: 600; color: var(--rd-ink); margin-bottom: 3px; }
.rd-info-desc { font-size: 12.5px; color: var(--rd-muted); line-height: 1.5; }
.rd-step-no { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: #f1f2f7; color: var(--rd-ink); font-weight: 700; font-size: 13px; }
.rd-check-list { list-style: none; padding: 0; }
.rd-check-list li { position: relative; padding: 0 0 .6rem 28px; color: var(--rd-text); }
.rd-check-list li:last-child { padding-bottom: 0; }
.rd-check-list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%;
    background: rgba(var(--ins-success-rgb), .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat; }
.rd-label-tag { display: inline-flex; align-items: center; gap: 8px; padding: .55rem .9rem; border: 1px solid var(--rd-line); border-radius: 10px;
    font-weight: 500; color: var(--rd-ink); background: #fafbfd; }
.rd-label-tag i { font-size: 18px; color: var(--ins-warning); }

/* ===================================================================== Status breakdown tiles (orders report) */
.rd-status-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .75rem; }
.rd-status-tile { border: 1px solid var(--rd-line); border-radius: 12px; padding: .8rem .95rem .85rem; }
.rd-status-name { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--rd-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-status-dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; }
.rd-status-count { font-size: 20px; font-weight: 500; color: var(--rd-ink); line-height: 1.5; }
.rd-status-pct { font-size: 12px; color: var(--rd-muted); }
.rd-status-bar { height: 4px; border-radius: 4px; background: #f0f1f6; overflow: hidden; margin-top: 4px; }
.rd-status-bar > span { display: block; height: 100%; border-radius: 4px; opacity: .85; }
