/*
 * RetaillyPOS — Odoo-Inspired Brand Theme
 * ─────────────────────────────────────────────────────────────
 * Inspired by: Odoo Loan Management Dashboard (apps.odoo.com)
 *
 * Palette:
 *   --rp-plum:      #7B3866  (primary plum — active items, buttons, accents)
 *   --rp-dark:      #432C3D  (very dark plum — text, deep contrast)
 *   --rp-bg:        #F5F0F3  (light lavender-blush — page background)
 *   --rp-mid:       #9C5885  (medium plum — hover, secondary accents)
 *   --rp-pale:      #E8D5E2  (pale rose — borders, dividers)
 *   --rp-muted-bg:  #7A6B74  (muted plum-grey — secondary KPI cards)
 *   --rp-text:      #2B1F27  (body text, nearly black)
 *   --rp-muted:     #6E5C68  (secondary text, labels)
 *   --rp-white:     #FFFFFF
 *   --rp-sidebar-w: 260px
 * ─────────────────────────────────────────────────────────────
 */

/* ── Google Font import ────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --rp-plum:      #7B3866;
    --rp-dark:      #432C3D;
    --rp-bg:        #F5F0F3;
    --rp-mid:       #9C5885;
    --rp-pale:      #E8D5E2;
    --rp-pale-dk:   #CDB0C4;
    --rp-muted-bg:  #7A6B74;
    --rp-text:      #2B1F27;
    --rp-muted:     #6E5C68;
    --rp-white:     #FFFFFF;
    --rp-success:   #28A745;
    --rp-warning:   #B5820A;
    --rp-danger:    #DC3545;
    --rp-gold:      #C4935A;
    --rp-radius:    8px;
    --rp-radius-lg: 12px;
    --rp-shadow:    0 2px 12px rgba(123, 56, 102, 0.08);
    --rp-shadow-lg: 0 6px 24px rgba(123, 56, 102, 0.14);
}

/* ══════════════════════════════════════════════════════════════
   BASE
   ══════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif !important;
    font-size: 14px !important;
    color: var(--rp-text) !important;
    background-color: var(--rp-bg) !important;
    -webkit-font-smoothing: antialiased !important;
}

/* ══════════════════════════════════════════════════════════════
   SIDEBAR  — light background, plum active item
   (Matches Odoo's white sidebar with plum active pill)
   ══════════════════════════════════════════════════════════════ */
.sidebar {
    background-color: var(--rp-white) !important;
    border-right: 1px solid var(--rp-pale) !important;
    box-shadow: 2px 0 16px rgba(123, 56, 102, 0.06) !important;
}

/* ── Logo / header strip ──────────────────────────────────── */
.header-left,
.header-left.active {
    background-color: var(--rp-white) !important;
    border-bottom: 1px solid var(--rp-pale) !important;
}

/* ── Nav items ────────────────────────────────────────────── */
.sidebar-menu > ul > li > a,
.sidebar-menu ul li a {
    color: var(--rp-muted) !important;
    border-radius: var(--rp-radius) !important;
    margin: 2px 10px !important;
    padding: 9px 14px !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    transition: background 0.18s ease, color 0.18s ease !important;
    display: flex !important;
    align-items: center !important;
}

.sidebar-menu > ul > li > a:hover,
.sidebar-menu ul li a:hover {
    background-color: rgba(123, 56, 102, 0.07) !important;
    color: var(--rp-plum) !important;
}

/* Active state — plum filled pill (Odoo-style) */
.sidebar-menu > ul > li.active > a,
.sidebar-menu ul li.active > a,
.sidebar-menu ul li a.active {
    background-color: var(--rp-plum) !important;
    color: var(--rp-white) !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(123, 56, 102, 0.25) !important;
}

/* Submenu items */
.sidebar-menu ul li ul {
    background: transparent !important;
    padding: 2px 0 6px 0 !important;
    margin: 0 10px !important;
}

.sidebar-menu ul li ul li a {
    margin: 1px 0 !important;
    padding: 7px 14px 7px 30px !important;
    border-radius: var(--rp-radius) !important;
    font-size: 0.82rem !important;
    color: var(--rp-muted) !important;
}

.sidebar-menu ul li ul li a:hover {
    background-color: rgba(123, 56, 102, 0.07) !important;
    color: var(--rp-plum) !important;
}

.sidebar-menu ul li ul li a.active {
    background-color: rgba(123, 56, 102, 0.12) !important;
    color: var(--rp-plum) !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}

/* Icons */
.sidebar-menu ul li a img {
    filter: none !important;
    opacity: 0.55 !important;
    width: 18px !important;
    height: 18px !important;
    margin-right: 10px !important;
    flex-shrink: 0 !important;
}

.sidebar-menu ul li.active > a img,
.sidebar-menu ul li a:hover img {
    opacity: 1 !important;
    filter: brightness(0) invert(1) !important;
}

/* Keep icons dark when not active/hover on light sidebar */
.sidebar-menu ul li > a:not(.active):not(:hover) img {
    filter: none !important;
    opacity: 0.6 !important;
}

/* Menu arrow */
.sidebar-menu ul li a .menu-arrow {
    border-color: var(--rp-muted) transparent transparent transparent !important;
    margin-left: auto !important;
}

.sidebar-menu ul li.active > a .menu-arrow,
.sidebar-menu ul li.menu-open > a .menu-arrow {
    border-color: var(--rp-white) transparent transparent transparent !important;
}

/* Submenu section labels */
.sidebar-menu ul li.menu-open > a .menu-arrow {
    transform: rotate(180deg) !important;
}

/* ── Sidebar: parent link highlight when submenu is open (subdrop) ─────────
   The vendor CSS only rotates the arrow; it never colours the open parent.  */
.sidebar-menu > ul > li > a.subdrop,
.sidebar-menu > ul > li.menu-open > a:not(.active) {
    background-color: rgba(123, 56, 102, 0.10) !important;
    color: var(--rp-plum) !important;
    border-radius: 6px !important;
}
.sidebar-menu > ul > li > a.subdrop span,
.sidebar-menu > ul > li.menu-open > a:not(.active) span {
    color: var(--rp-plum) !important;
}
/* Active sub-item dot */
.sidebar-menu > ul > li.submenu ul li a.active::after {
    background: var(--rp-plum) !important;
    border-color: var(--rp-plum) !important;
}

/* ══════════════════════════════════════════════════════════════
   HEADER / TOP NAV  — clean white, minimal
   ══════════════════════════════════════════════════════════════ */
.header {
    background: var(--rp-white) !important;
    border-bottom: 1px solid var(--rp-pale) !important;
    box-shadow: 0 2px 8px rgba(123, 56, 102, 0.05) !important;
}

/* Search */
.searchinputs {
    background: var(--rp-bg) !important;
    border-radius: 8px !important;
    border: 1px solid var(--rp-pale) !important;
}

.searchinputs input {
    background: transparent !important;
    border: none !important;
    color: var(--rp-text) !important;
}

.searchinputs input::placeholder { color: var(--rp-muted) !important; }

.top-nav-search .btn {
    background: var(--rp-plum) !important;
    border-color: var(--rp-plum) !important;
    border-radius: 0 8px 8px 0 !important;
}

/* Notification badge */
.header .badge.rounded-pill {
    background: var(--rp-plum) !important;
    font-size: 0.6rem !important;
}

/* Header icons: dark on white header */
.header .nav-link img {
    filter: none !important;
    opacity: 0.7 !important;
}

.header .nav-link:hover img { opacity: 1 !important; }

/* User dot status */
.status.online { background-color: #22c55e !important; }

/* ══════════════════════════════════════════════════════════════
   PAGE HEADER (title + action button row)
   ══════════════════════════════════════════════════════════════ */
.page-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 20px !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
}

.page-header .page-title h4 {
    color: var(--rp-dark) !important;
    font-weight: 700 !important;
    font-size: 1.2rem !important;
    margin-bottom: 2px !important;
}

.page-header .page-title h6 {
    color: var(--rp-muted) !important;
    font-size: 0.8rem !important;
    font-weight: 400 !important;
}

/* ══════════════════════════════════════════════════════════════
   PAGE WRAPPER & CONTENT
   ══════════════════════════════════════════════════════════════ */
.page-wrapper { background-color: var(--rp-bg) !important; }
.content { padding: 24px !important; }

/* ══════════════════════════════════════════════════════════════
   CARDS  — white, subtle shadow, rounded
   ══════════════════════════════════════════════════════════════ */
.card {
    background: var(--rp-white) !important;
    border: 1px solid var(--rp-pale) !important;
    border-radius: var(--rp-radius-lg) !important;
    box-shadow: var(--rp-shadow) !important;
    margin-bottom: 20px !important;
}

.card-header {
    background: var(--rp-white) !important;
    border-bottom: 1px solid var(--rp-pale) !important;
    border-radius: var(--rp-radius-lg) var(--rp-radius-lg) 0 0 !important;
    padding: 1rem 1.25rem !important;
    font-weight: 600 !important;
    color: var(--rp-dark) !important;
    font-size: 0.95rem !important;
}

.card-footer {
    background: var(--rp-white) !important;
    border-top: 1px solid var(--rp-pale) !important;
    border-radius: 0 0 var(--rp-radius-lg) var(--rp-radius-lg) !important;
    padding: 1rem 1.25rem !important;
}

.card-title {
    color: var(--rp-dark) !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
}

/* ══════════════════════════════════════════════════════════════
   DASHBOARD KPI WIDGETS  — Odoo-style clean cards
   ══════════════════════════════════════════════════════════════ */

/* Main sales/revenue widgets */
.dash-widget {
    background: var(--rp-white) !important;
    border: 1px solid var(--rp-pale) !important;
    border-radius: var(--rp-radius-lg) !important;
    box-shadow: var(--rp-shadow) !important;
    padding: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin-bottom: 20px !important;
    transition: box-shadow 0.2s ease, transform 0.2s ease !important;
}

.dash-widget:hover {
    box-shadow: var(--rp-shadow-lg) !important;
    transform: translateY(-2px) !important;
}

/* Default widget: plum accent */
.dash-widget .dash-widgetimg span {
    background: rgba(123, 56, 102, 0.10) !important;
    border-radius: 50% !important;
    width: 52px !important;
    height: 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.dash-widget .dash-widgetimg span img {
    filter: none !important;
    width: 28px !important;
    height: 28px !important;
}

.dash-widget.dash1 .dash-widgetimg span { background: rgba(34, 197, 94, 0.10) !important; }
.dash-widget.dash2 .dash-widgetimg span { background: rgba(59, 130, 246, 0.10) !important; }
.dash-widget.dash3 .dash-widgetimg span { background: rgba(196, 147, 90, 0.10) !important; }

.dash-widgetcontent h5 {
    color: var(--rp-dark) !important;
    font-weight: 700 !important;
    font-size: 1.4rem !important;
    margin-bottom: 4px !important;
    line-height: 1 !important;
}

.dash-widgetcontent h6 {
    color: var(--rp-muted) !important;
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    margin: 0 !important;
}

/* Entity count cards (dash-count) */
.dash-count {
    background: var(--rp-plum) !important;
    border: none !important;
    border-radius: var(--rp-radius-lg) !important;
    padding: 20px !important;
    color: var(--rp-white) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    margin-bottom: 20px !important;
    box-shadow: 0 4px 16px rgba(123, 56, 102, 0.30) !important;
    transition: box-shadow 0.2s ease, transform 0.2s ease !important;
}

.dash-count:hover {
    box-shadow: 0 8px 24px rgba(123, 56, 102, 0.40) !important;
    transform: translateY(-2px) !important;
}

.dash-count.das1 { background: var(--rp-muted-bg) !important; box-shadow: 0 4px 16px rgba(122, 107, 116, 0.30) !important; }
.dash-count.das2 { background: var(--rp-dark) !important;    box-shadow: 0 4px 16px rgba(67, 44, 61, 0.30) !important; }
.dash-count.das3 { background: #5B8DB8 !important;            box-shadow: 0 4px 16px rgba(91, 141, 184, 0.30) !important; }

.dash-count .dash-counts h4 {
    color: var(--rp-white) !important;
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    margin-bottom: 4px !important;
}

.dash-count .dash-counts h5 {
    color: rgba(255,255,255,0.80) !important;
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    margin: 0 !important;
}

.dash-count .dash-imgs {
    background: rgba(255,255,255,0.15) !important;
    border-radius: 10px !important;
    padding: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.dash-count .dash-imgs svg,
.dash-count .dash-imgs i {
    width: 24px !important;
    height: 24px !important;
    color: rgba(255,255,255,0.90) !important;
    stroke: rgba(255,255,255,0.90) !important;
}

/* ══════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════ */
.btn-submit,
.btn-added,
.btn-primary {
    background: var(--rp-plum) !important;
    border-color: var(--rp-plum) !important;
    color: #fff !important;
    border-radius: var(--rp-radius) !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    padding: 9px 20px !important;
    transition: background 0.18s, box-shadow 0.18s !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.btn-submit:hover,
.btn-added:hover,
.btn-primary:hover {
    background: var(--rp-mid) !important;
    border-color: var(--rp-mid) !important;
    box-shadow: 0 4px 14px rgba(123, 56, 102, 0.35) !important;
    color: #fff !important;
}

.btn-cancel,
.btn-secondary {
    background: var(--rp-bg) !important;
    border: 1px solid var(--rp-pale-dk) !important;
    color: var(--rp-dark) !important;
    border-radius: var(--rp-radius) !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    padding: 9px 20px !important;
    transition: background 0.18s !important;
}

.btn-cancel:hover,
.btn-secondary:hover {
    background: var(--rp-pale) !important;
    border-color: var(--rp-pale-dk) !important;
    color: var(--rp-dark) !important;
}

/* Wizard buttons */
.btn-wizard-next {
    background: var(--rp-plum) !important;
    border-color: var(--rp-plum) !important;
    color: #fff !important;
    border-radius: var(--rp-radius) !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 9px 22px !important;
}

.btn-wizard-next:hover {
    background: var(--rp-mid) !important;
    border-color: var(--rp-mid) !important;
}

.btn-wizard-back {
    background: var(--rp-bg) !important;
    border: 1px solid var(--rp-pale-dk) !important;
    color: var(--rp-dark) !important;
    border-radius: var(--rp-radius) !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 9px 22px !important;
}

/* Filter / search buttons */
.btn-filter,
.btn-searchset,
.btn-filters {
    background: var(--rp-plum) !important;
    border-color: var(--rp-plum) !important;
    border-radius: var(--rp-radius) !important;
    transition: background 0.18s !important;
}

.btn-filter:hover,
.btn-searchset:hover,
.btn-filters:hover {
    background: var(--rp-mid) !important;
    border-color: var(--rp-mid) !important;
}

/* Outline variants */
.btn-outline-primary {
    color: var(--rp-plum) !important;
    border-color: var(--rp-plum) !important;
    border-radius: var(--rp-radius) !important;
    font-weight: 500 !important;
}

.btn-outline-primary:hover {
    background: var(--rp-plum) !important;
    color: #fff !important;
}

/* Danger */
.btn-danger { border-radius: var(--rp-radius) !important; }

/* ══════════════════════════════════════════════════════════════
   TABLES  — Odoo-style clean tables
   ══════════════════════════════════════════════════════════════ */
.table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.table thead th {
    background: var(--rp-bg) !important;
    color: var(--rp-muted) !important;
    border-top: 1px solid var(--rp-pale) !important;
    border-bottom: 2px solid var(--rp-pale) !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 11px 16px !important;
    white-space: nowrap !important;
}

/* First and last TH: rounded corners to match card */
.table thead th:first-child { border-radius: var(--rp-radius) 0 0 0 !important; }
.table thead th:last-child  { border-radius: 0 var(--rp-radius) 0 0 !important; }

.table tbody tr {
    transition: background 0.12s ease !important;
}

.table tbody tr:hover > td {
    background-color: rgba(123, 56, 102, 0.035) !important;
}

.table tbody td {
    padding: 12px 16px !important;
    vertical-align: middle !important;
    color: var(--rp-text) !important;
    font-size: 0.875rem !important;
    border-bottom: 1px solid var(--rp-pale) !important;
    border-top: none !important;
}

/* DataTables pagination */
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--rp-plum) !important;
    border-color: var(--rp-plum) !important;
    color: #fff !important;
    border-radius: 6px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--rp-pale) !important;
    border-color: var(--rp-pale) !important;
    color: var(--rp-dark) !important;
    border-radius: 6px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 6px !important;
    font-size: 0.85rem !important;
}

.dataTables_wrapper .dataTables_info {
    color: var(--rp-muted) !important;
    font-size: 0.82rem !important;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border: 1px solid var(--rp-pale) !important;
    border-radius: 6px !important;
    color: var(--rp-text) !important;
    background: var(--rp-white) !important;
    padding: 5px 10px !important;
    font-size: 0.85rem !important;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--rp-plum) !important;
    box-shadow: 0 0 0 0.2rem rgba(123, 56, 102, 0.15) !important;
    outline: none !important;
}

/* ══════════════════════════════════════════════════════════════
   FORMS & INPUTS
   ══════════════════════════════════════════════════════════════ */
.form-control,
.form-select {
    border: 1px solid var(--rp-pale-dk) !important;
    border-radius: var(--rp-radius) !important;
    color: var(--rp-text) !important;
    background-color: var(--rp-white) !important;
    font-size: 0.875rem !important;
    padding: 9px 13px !important;
    transition: border-color 0.15s, box-shadow 0.15s !important;
    height: auto !important;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--rp-plum) !important;
    box-shadow: 0 0 0 3px rgba(123, 56, 102, 0.15) !important;
    outline: none !important;
    background-color: var(--rp-white) !important;
}

.form-control::placeholder { color: #b5a0b0 !important; }

.form-label,
label {
    color: var(--rp-dark) !important;
    font-weight: 600 !important;
    font-size: 0.82rem !important;
    margin-bottom: 5px !important;
    display: block !important;
}

/* Input groups */
.input-group .input-group-text {
    background: var(--rp-bg) !important;
    border-color: var(--rp-pale-dk) !important;
    color: var(--rp-muted) !important;
    border-radius: var(--rp-radius) 0 0 var(--rp-radius) !important;
}

.input-group .form-control { border-radius: 0 var(--rp-radius) var(--rp-radius) 0 !important; }

/* ── Select2 — full Bootstrap-compatible overrides ─────────────────────── */
.select2-container { width: 100% !important; }
.select2-container--open .select2-dropdown { min-width: 200px; }

.select2-container--default .select2-selection--single {
    border: 1px solid var(--rp-pale-dk) !important;
    border-radius: var(--rp-radius) !important;
    height: 40px !important;
    background: var(--rp-white) !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 12px !important;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--rp-dark) !important;
    line-height: 1.5 !important;
    padding: 0 !important;
    font-size: 0.9rem !important;
}
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #b5a0b0 !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px !important;
    right: 8px !important;
    top: 0 !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: var(--rp-muted) transparent transparent transparent !important;
}
.select2-container--default.select2-container--open
    .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent var(--rp-muted) transparent !important;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open  .select2-selection--single {
    border-color: var(--rp-plum) !important;
    box-shadow: 0 0 0 3px rgba(123, 56, 102, 0.15) !important;
    outline: 0 !important;
}

.select2-container--default.select2-invalid .select2-selection--single,
.select2-container--default.select2-invalid .select2-selection--multiple {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, .25) !important;
}

.select2-sm .select2-container--default .select2-selection--single,
.form-select-sm + .select2-container .select2-selection--single {
    height: 31px !important;
    font-size: .875rem !important;
}
.select2-sm .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 29px !important;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    color: #999 !important;
    font-size: 1rem !important;
    margin-right: 14px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
}
.select2-container--default .select2-selection--single .select2-selection__clear:hover {
    color: #dc3545 !important;
}

.select2-dropdown {
    border: 1px solid var(--rp-pale-dk) !important;
    border-radius: var(--rp-radius) !important;
    box-shadow: var(--rp-shadow-lg) !important;
    z-index: 9999 !important;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--rp-plum) !important;
    color: #fff !important;
}
.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: rgba(123, 56, 102, 0.10) !important;
    color: var(--rp-plum) !important;
    font-weight: 600 !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid var(--rp-pale-dk) !important;
    border-radius: var(--rp-radius) !important;
    padding: 5px 10px !important;
    font-size: .875rem !important;
}
.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--rp-plum) !important;
    outline: 0 !important;
    box-shadow: 0 0 0 0.15rem rgba(123, 56, 102, 0.15) !important;
}

/* ══════════════════════════════════════════════════════════════
   WIZARD STEP INDICATOR
   ══════════════════════════════════════════════════════════════ */
.step-panel.active .card-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

/* Step number circles */
.step-indicator li .step-number {
    background: var(--rp-pale) !important;
    color: var(--rp-muted) !important;
    border: 2px solid var(--rp-pale-dk) !important;
    font-weight: 700 !important;
}

.step-indicator li.active .step-number,
.step-indicator li.done .step-number {
    background: var(--rp-plum) !important;
    border-color: var(--rp-plum) !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(123, 56, 102, 0.30) !important;
}

.step-indicator li.active .step-label,
.step-indicator li.done .step-label {
    color: var(--rp-plum) !important;
    font-weight: 600 !important;
}

.step-indicator li .step-connector { background: var(--rp-pale-dk) !important; }
.step-indicator li.done .step-connector { background: var(--rp-plum) !important; }

/* ══════════════════════════════════════════════════════════════
   BADGES & STATUS LABELS
   ══════════════════════════════════════════════════════════════ */
.badge {
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    border-radius: 5px !important;
    padding: 3px 8px !important;
}

.badge.bg-success,
.badge-success { background: rgba(34, 197, 94, 0.12) !important; color: #16a34a !important; }

.badge.bg-danger,
.badge-danger { background: rgba(220, 53, 69, 0.12) !important; color: #dc2626 !important; }

.badge.bg-warning,
.badge-warning { background: rgba(196, 147, 90, 0.15) !important; color: var(--rp-warning) !important; }

.badge.bg-primary,
.badge-primary { background: rgba(123, 56, 102, 0.12) !important; color: var(--rp-plum) !important; }

/* Low-stock badge from product list */
.badge.bg-warning.text-dark {
    background: rgba(196, 147, 90, 0.15) !important;
    color: var(--rp-warning) !important;
    border: none !important;
}

/* Status: Active / Inactive */
.badge-active,
span.active-badge { color: #16a34a !important; background: rgba(34, 197, 94, 0.12) !important; }

/* ══════════════════════════════════════════════════════════════
   PRODUCT IMAGE THUMBNAILS
   ══════════════════════════════════════════════════════════════ */
.productimgname a.product-img img {
    width: 44px !important;
    height: 44px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    border: 1.5px solid var(--rp-pale) !important;
}

/* ══════════════════════════════════════════════════════════════
   ALERTS
   ══════════════════════════════════════════════════════════════ */
.alert {
    border-radius: var(--rp-radius-lg) !important;
    border: none !important;
    font-size: 0.875rem !important;
}

.alert-success {
    background: rgba(34, 197, 94, 0.10) !important;
    color: #166534 !important;
    border-left: 4px solid #22c55e !important;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.10) !important;
    color: #991b1b !important;
    border-left: 4px solid #dc3545 !important;
}

.alert-warning {
    background: rgba(196, 147, 90, 0.12) !important;
    color: #92400e !important;
    border-left: 4px solid var(--rp-gold) !important;
}

/* ══════════════════════════════════════════════════════════════
   SWEETALERT2
   ══════════════════════════════════════════════════════════════ */
.swal2-popup {
    border-radius: var(--rp-radius-lg) !important;
    font-family: 'Inter', sans-serif !important;
}

.swal2-confirm {
    background: var(--rp-plum) !important;
    border-radius: var(--rp-radius) !important;
}

.swal2-confirm:hover { background: var(--rp-mid) !important; }
.swal2-cancel { border-radius: var(--rp-radius) !important; }

/* ══════════════════════════════════════════════════════════════
   DROPDOWN MENUS
   ══════════════════════════════════════════════════════════════ */
.dropdown-menu {
    border: 1px solid var(--rp-pale) !important;
    border-radius: var(--rp-radius-lg) !important;
    box-shadow: var(--rp-shadow-lg) !important;
    padding: 6px !important;
}

.dropdown-item {
    border-radius: 6px !important;
    font-size: 0.875rem !important;
    padding: 8px 12px !important;
    color: var(--rp-text) !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(123, 56, 102, 0.07) !important;
    color: var(--rp-plum) !important;
}

.dropdown-item.active,
.dropdown-item:active {
    background: var(--rp-plum) !important;
    color: #fff !important;
}

/* Header profile dropdown */
.menu-drop-user {
    min-width: 220px !important;
    padding: 8px !important;
}

.profileset { padding: 8px 4px !important; }
.profilesets h6 { color: var(--rp-dark) !important; font-weight: 700 !important; font-size: 0.9rem !important; }
.profilesets h5 { color: var(--rp-plum) !important; font-size: 0.75rem !important; margin: 0 !important; }

/* ══════════════════════════════════════════════════════════════
   NOTIFICATIONS DROPDOWN
   ══════════════════════════════════════════════════════════════ */
.notifications .topnav-dropdown-header {
    background: var(--rp-plum) !important;
    border-radius: var(--rp-radius) var(--rp-radius) 0 0 !important;
    padding: 10px 16px !important;
}

.notification-title {
    color: #fff !important;
    font-weight: 600 !important;
}

.clear-noti {
    color: rgba(255,255,255,0.80) !important;
    font-size: 0.8rem !important;
}

.topnav-dropdown-footer a {
    color: var(--rp-plum) !important;
    font-size: 0.82rem !important;
}

/* ══════════════════════════════════════════════════════════════
   TABLE-TOP TOOLBAR (filter row above table)
   ══════════════════════════════════════════════════════════════ */
.table-top {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin-bottom: 16px !important;
}

.wordset ul li a img {
    opacity: 0.55 !important;
    transition: opacity 0.18s !important;
}

.wordset ul li a:hover img { opacity: 1 !important; }

/* ══════════════════════════════════════════════════════════════
   POS PAGE
   ══════════════════════════════════════════════════════════════ */

/* Category pills */
#pos-categories .owl-item li .product-details {
    border: 1.5px solid var(--rp-pale-dk) !important;
    border-radius: 10px !important;
    transition: border-color 0.18s, background 0.18s !important;
}

#pos-categories .owl-item li .product-details h6 {
    color: var(--rp-muted) !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

#pos-categories .owl-item li:hover .product-details {
    border-color: var(--rp-plum) !important;
    background: rgba(123, 56, 102, 0.05) !important;
}

#pos-categories .owl-item li:hover .product-details h6 { color: var(--rp-plum) !important; }

#pos-categories .owl-item li.active .product-details {
    background: var(--rp-plum) !important;
    border-color: var(--rp-plum) !important;
    box-shadow: 0 4px 12px rgba(123, 56, 102, 0.25) !important;
}

#pos-categories .owl-item li.active .product-details h6 {
    color: #fff !important;
}

/* POS product cards */
.pos-products .product-info,
.product-info {
    border: 1px solid var(--rp-pale) !important;
    border-radius: 10px !important;
    background: var(--rp-white) !important;
    transition: box-shadow 0.18s, border-color 0.18s, transform 0.18s !important;
}

.pos-products .product-info:hover,
.product-info:hover {
    border-color: var(--rp-plum) !important;
    box-shadow: 0 6px 20px rgba(123, 56, 102, 0.15) !important;
    transform: translateY(-2px) !important;
}

/* POS order/cart panel */
.order-list,
.pos-order-card {
    background: var(--rp-white) !important;
    border: 1px solid var(--rp-pale) !important;
    border-radius: var(--rp-radius-lg) !important;
}

/* POS checkout button */
.btn-pos-checkout,
#pos-checkout-btn {
    background: linear-gradient(135deg, var(--rp-plum) 0%, var(--rp-mid) 100%) !important;
    border-color: transparent !important;
    color: #fff !important;
    font-weight: 700 !important;
    border-radius: var(--rp-radius-lg) !important;
    letter-spacing: 0.02em !important;
    box-shadow: 0 4px 16px rgba(123, 56, 102, 0.35) !important;
}

/* ══════════════════════════════════════════════════════════════
   BREADCRUMB
   ══════════════════════════════════════════════════════════════ */
.breadcrumb-item a { color: var(--rp-plum) !important; font-weight: 500 !important; }
.breadcrumb-item.active { color: var(--rp-muted) !important; font-size: 0.875rem !important; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--rp-pale-dk) !important; }

/* ══════════════════════════════════════════════════════════════
   AVATAR / MODULE ICON TILES (admin dashboard quick links)
   ══════════════════════════════════════════════════════════════ */
.avatar.bg-light {
    background: rgba(123, 56, 102, 0.10) !important;
    border-radius: 10px !important;
    width: 46px !important;
    height: 46px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.avatar.bg-light i {
    color: var(--rp-plum) !important;
    font-size: 1.1rem !important;
}

/* Card links on admin dashboard */
.card a.text-decoration-none .card:hover {
    border-color: var(--rp-plum) !important;
    box-shadow: var(--rp-shadow-lg) !important;
}

/* ══════════════════════════════════════════════════════════════
   SCROLLBAR
   ══════════════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--rp-bg); }
::-webkit-scrollbar-thumb { background: var(--rp-pale-dk); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--rp-plum); }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1199.98px) {
    .content { padding: 20px !important; }
}

@media (max-width: 991.98px) {
    .content { padding: 16px !important; }

    .page-header {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .dash-widget,
    .dash-count {
        margin-bottom: 14px !important;
    }

    .table-top {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
}

@media (max-width: 767.98px) {
    .content { padding: 12px !important; }

    .card { border-radius: 10px !important; margin-bottom: 14px !important; }

    .dash-widgetcontent h5 { font-size: 1.2rem !important; }
    .dash-count .dash-counts h4 { font-size: 1.4rem !important; }

    .page-header .page-title h4 { font-size: 1.05rem !important; }

    .btn-submit, .btn-added, .btn-cancel {
        font-size: 0.82rem !important;
        padding: 8px 14px !important;
    }

    .table thead th {
        font-size: 0.7rem !important;
        padding: 9px 10px !important;
    }

    .table tbody td {
        font-size: 0.82rem !important;
        padding: 10px 10px !important;
    }
}

@media (max-width: 575.98px) {
    .content { padding: 10px !important; }

    .dash-count { padding: 14px !important; }
    .dash-widget { padding: 14px !important; }

    .card { border-radius: 8px !important; }
    .card-header { padding: 0.8rem 1rem !important; }

    .btn-wizard-next, .btn-wizard-back {
        min-width: auto !important;
        padding: 8px 14px !important;
    }
}

/* ══════════════════════════════════════════════════════════════
   UTILITY CLASSES
   ══════════════════════════════════════════════════════════════ */
.text-plum     { color: var(--rp-plum) !important; }
.text-rp-dark  { color: var(--rp-dark) !important; }
.text-rp-muted { color: var(--rp-muted) !important; }
.bg-plum       { background-color: var(--rp-plum) !important; }
.bg-rp-dark    { background-color: var(--rp-dark) !important; }
.bg-rp-light   { background-color: var(--rp-bg) !important; }
.border-plum   { border-color: var(--rp-pale) !important; }

/* ══════════════════════════════════════════════════════════════
   ADDENDUM — covers remaining app-wide elements
   ══════════════════════════════════════════════════════════════ */

/* Settings card hover effect */
a.text-decoration-none .card {
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease !important;
}
a.text-decoration-none:hover .card {
    border-color: var(--rp-plum) !important;
    box-shadow: 0 6px 20px rgba(123,56,102,0.14) !important;
    transform: translateY(-2px) !important;
}

/* bg-light badges (settings cards) */
.badge.bg-light {
    background: rgba(123,56,102,0.08) !important;
    color: var(--rp-plum) !important;
    font-weight: 600 !important;
}

/* DreamsPOS "badges" class (bg-lightgreen, bg-lightred) */
.badges { border-radius: 4px !important; padding: 3px 9px !important; font-size: 0.72rem !important; font-weight: 600 !important; }
.badges.bg-lightgreen { background: rgba(34,197,94,0.12) !important; color: #16a34a !important; }
.badges.bg-lightred   { background: rgba(220,53,69,0.10)  !important; color: #dc2626 !important; }

/* Product show page — plum stat border */
.border-rounded-plum,
[style*="#7B3866"] {
    border-color: var(--rp-plum) !important;
}

/* =─ HR Dashboard / Attendance cards ─= */
.card.attendance-card { border-left: 4px solid var(--rp-plum) !important; }

/* =─ PDF Export Layout fix ─= */
.pdf-header-brand { border-bottom-color: var(--rp-plum) !important; }

/* =─ Roles & Permissions page ─= */
.permission-group-header {
    background: var(--rp-bg) !important;
    border-left: 4px solid var(--rp-plum) !important;
    border-radius: 0 var(--rp-radius) var(--rp-radius) 0 !important;
    padding: 8px 14px !important;
    font-weight: 600 !important;
    color: var(--rp-dark) !important;
    margin-bottom: 8px !important;
}

/* =─ Pagination (Bootstrap) ─= */
.page-link {
    color: var(--rp-plum) !important;
    border-color: var(--rp-pale) !important;
    border-radius: 6px !important;
    margin: 0 2px !important;
    font-size: 0.85rem !important;
}
.page-item.active .page-link {
    background-color: var(--rp-plum) !important;
    border-color: var(--rp-plum) !important;
    color: #fff !important;
}
.page-link:hover {
    background-color: var(--rp-pale) !important;
    border-color: var(--rp-pale-dk) !important;
    color: var(--rp-dark) !important;
}

/* =─ Nav tabs (used in some reports) ─= */
.nav-tabs .nav-link {
    color: var(--rp-muted) !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    font-weight: 500 !important;
    border-radius: 0 !important;
    padding: 9px 16px !important;
    font-size: 0.875rem !important;
}
.nav-tabs .nav-link.active, .nav-tabs .nav-link:hover {
    color: var(--rp-plum) !important;
    border-bottom-color: var(--rp-plum) !important;
    background: transparent !important;
}
.nav-tabs { border-bottom: 1px solid var(--rp-pale) !important; }

/* =─ Tab content ─= */
.tab-content { padding-top: 20px !important; }

/* =─ Checkboxes & Radios ─= */
input[type="checkbox"], input[type="radio"] {
    accent-color: var(--rp-plum) !important;
}

/* =─ Switch/Toggle ─= */
.form-check-input:checked {
    background-color: var(--rp-plum) !important;
    border-color: var(--rp-plum) !important;
}

/* =─ Progress bars ─= */
.progress-bar { background-color: var(--rp-plum) !important; }

/* =─ List groups ─= */
.list-group-item.active {
    background-color: var(--rp-plum) !important;
    border-color: var(--rp-plum) !important;
}
.list-group-item { border-color: var(--rp-pale) !important; font-size: 0.875rem !important; }

/* =─ Accordion (used in some settings) ─= */
.accordion-button:not(.collapsed) {
    background-color: rgba(123,56,102,0.08) !important;
    color: var(--rp-plum) !important;
    box-shadow: none !important;
}
.accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(123,56,102,0.15) !important;
}
.accordion-button::after {
    filter: none !important;
}

/* =─ Modal ─= */
.modal-header {
    background: var(--rp-plum) !important;
    color: #fff !important;
    border-radius: 12px 12px 0 0 !important;
}
.modal-header .modal-title { color: #fff !important; font-weight: 600 !important; font-size: 1rem !important; }
.modal-header .btn-close { filter: brightness(0) invert(1) !important; }
.modal-content { border-radius: 12px !important; border: none !important; box-shadow: 0 16px 48px rgba(67,44,61,0.18) !important; }
.modal-footer { border-top: 1px solid var(--rp-pale) !important; padding: 1rem 1.25rem !important; }

/* =─ Tooltip ─= */
.tooltip .tooltip-inner { background-color: var(--rp-dark) !important; font-size: 0.78rem !important; border-radius: 6px !important; }
.tooltip.bs-tooltip-top .tooltip-arrow::before { border-top-color: var(--rp-dark) !important; }

/* =─ Tables inside cards: remove double-border ─= */
.card > .table-responsive > .table, .card-body > .table { margin-bottom: 0 !important; }
.card .table thead th:first-child { border-radius: 0 !important; }

/* =─ HR Dashboard stats ─= */
.hr-stat-card {
    background: var(--rp-white) !important;
    border: 1px solid var(--rp-pale) !important;
    border-radius: var(--rp-radius-lg) !important;
    box-shadow: var(--rp-shadow) !important;
}

/* =─ Payslip / print views — keep clean ─= */
@media print {
    body { background: #fff !important; color: #000 !important; }
    .sidebar, .header, .page-header .page-btn { display: none !important; }
}

/* =─ Products show page — stat box ─= */
.stat-box-plum {
    border: 2px solid var(--rp-plum) !important;
    border-radius: var(--rp-radius-lg) !important;
}

/* =─ Input number spinners ─= */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { opacity: 0.5; }

/* =─ File input ─= */
input[type="file"].form-control { padding: 7px 13px !important; }
input[type="file"]::file-selector-button {
    background: var(--rp-plum) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 4px 12px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    margin-right: 10px !important;
}

/* =─ Image upload box (product wizard) ─= */
.img-upload-box {
    border: 2px dashed var(--rp-pale-dk) !important;
    border-radius: var(--rp-radius-lg) !important;
    background: var(--rp-bg) !important;
    transition: border-color .18s, background .18s !important;
}
.img-upload-box:hover {
    border-color: var(--rp-plum) !important;
    background: rgba(123,56,102,0.04) !important;
}

/* =─ Table action icon buttons ─= */
.table a img { opacity: 0.65; transition: opacity .15s; }
.table a:hover img { opacity: 1; }

/* ═══════════════════════════════════════════════════════
   ACTION-SET DROPDOWN  —  standardised across all index pages
   Matches the Sales List pattern from sale_orders/index.blade.php
   ═══════════════════════════════════════════════════════ */

/* Ellipsis trigger */
a.action-set {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: var(--rp-plum) !important;
    background: rgba(123, 56, 102, 0.08);
    font-size: 1rem;
    transition: background .15s, color .15s;
    cursor: pointer;
    text-decoration: none !important;
}
a.action-set:hover {
    background: rgba(123, 56, 102, 0.18);
    color: var(--rp-dark) !important;
}

/* Dropdown menu for action cells */
td .dropdown-menu {
    min-width: 180px;
    border: 1px solid var(--rp-pale);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(67, 44, 61, 0.14);
    padding: 4px 0;
    background: #fff;
    z-index: 1050;
}

/* Each action item (link or button) */
td .dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 0.875rem;
    color: var(--rp-text);
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: background .12s, color .12s;
}
td .dropdown-menu .dropdown-item:hover,
td .dropdown-menu .dropdown-item:focus {
    background: rgba(123, 56, 102, 0.07);
    color: var(--rp-plum);
    outline: none;
}
td .dropdown-menu .dropdown-item img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    opacity: 0.75;
    flex-shrink: 0;
}
td .dropdown-menu .dropdown-item:hover img { opacity: 1; }

/* Delete items get a subtle red tint on hover */
td .dropdown-menu li:last-child .dropdown-item:hover {
    background: rgba(220, 53, 69, 0.07);
    color: #dc3545;
}

/* =─ Date-time picker ─= */
.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover {
    background-color: var(--rp-plum) !important;
}
.bootstrap-datetimepicker-widget table td.today::before {
    border-bottom-color: var(--rp-plum) !important;
}

/* ── Sidebar hover: plum background + white text ─────────────────────────── */

/* Top-level menu items */
.sidebar .sidebar-menu > ul > li > a:hover {
    background: var(--rp-plum) !important;
    color: #fff !important;
    border-radius: 5px;
}
.sidebar .sidebar-menu > ul > li > a:hover span {
    color: #fff !important;
}
.sidebar .sidebar-menu > ul > li > a:hover img {
    filter: brightness(0) invert(1) !important;
}

/* Sub-menu items (children of .submenu) */
.sidebar .sidebar-menu > ul > li.submenu ul li a:hover {
    color: var(--rp-plum) !important;
    font-weight: 600;
}
.sidebar .sidebar-menu > ul > li.submenu ul li a:hover::after {
    background: var(--rp-plum) !important;
    border-color: var(--rp-plum) !important;
}

