:root {
    --admin-sidebar-width: 250px;
    --admin-sidebar-collapsed: 66px;
    --admin-header-height: 68px;
    --aci-green: #06a965;
    --aci-green-dark: #007c4c;
    --aci-green-soft: #e8f7f0;
    --navy-900: #082641;
    --navy-800: #103753;
    --page-bg: #f4f7fb;
    --surface: #fff;
    --text-primary: #0b1e42;
    --text-secondary: #71839c;
    --border-color: #e1e8f1;
    --shadow-sm: 0 5px 18px rgba(20, 48, 82, .06);
    --shadow-md: 0 12px 32px rgba(20, 48, 82, .1);
    --radius-sm: 8px;
    --radius-md: 11px;
    --radius-lg: 14px;
}

html, body.ps-admin-layout { min-height: 100%; }
body.ps-admin-layout { margin: 0; overflow-x: hidden; background: var(--page-bg); color: var(--text-primary); }
.ps-admin-layout, .ps-admin-layout input, .ps-admin-layout button, .ps-admin-layout select, .ps-admin-layout textarea { font-family: Montserrat, Arial, sans-serif; }

/* Shared application shell */
.ps-admin-layout .ps-sidebar.sidebar { display: flex; height: 100vh; min-height: 100vh; flex-direction: column; overflow: hidden; background: linear-gradient(165deg, var(--navy-800), var(--navy-900) 58%, #061d33); box-shadow: 3px 0 18px rgba(3, 22, 40, .14); z-index: 1000; }
.ps-admin-layout .header { min-height: var(--admin-header-height); border-bottom: 1px solid #e7edf4; background: #fff; box-shadow: 0 3px 12px rgba(17, 42, 72, .05); }
.ps-admin-layout .content-wrap { min-height: 100vh; background: radial-gradient(circle at 45% 0, #edf5fc, var(--page-bg) 32%); }
.ps-admin-layout .main { padding: 0; }
.ps-admin-layout .main > .container-fluid { width: 100%; max-width: none; padding: 0 22px 28px; }
.ps-admin-layout #main-content { padding: 0; }

.ps-sidebar-navigation { flex: 1 1 auto; min-height: 0; overflow: hidden; }
.ps-sidebar-navigation .nano, .ps-sidebar-navigation .nano-content { width: 100%; height: 100%; }
.ps-admin-layout .ps-sidebar-navigation .nano-content { box-sizing: border-box; padding: 0 10px 14px; overflow-x: hidden; overflow-y: auto; scrollbar-color: rgba(181, 205, 222, .3) transparent; scrollbar-width: thin; }
.ps-admin-layout .ps-sidebar-navigation .nano-content::-webkit-scrollbar { display: block; width: 4px; }
.ps-admin-layout .ps-sidebar-navigation .nano-content::-webkit-scrollbar-track { background: transparent; }
.ps-admin-layout .ps-sidebar-navigation .nano-content::-webkit-scrollbar-thumb { border-radius: 4px; background: rgba(181, 205, 222, .3); }
.ps-brand { display: flex; box-sizing: border-box; flex: 0 0 auto; align-items: center; justify-content: center; width: 100%; height: 72px; padding: 6px 10px; overflow: hidden; text-decoration: none !important; }
.ps-brand img { display: block; width: auto; max-width: 205px; max-height: 60px; margin: 0 auto; object-fit: contain; border-radius: 6px; background: #fff; }
.ps-sidebar nav, .ps-sidebar .ps-nav-list { width: 100%; }
.ps-admin-layout .ps-sidebar .ps-nav-list { margin: 0; padding: 5px 0 0; list-style: none; transition: width .3s ease; }
.ps-admin-layout .ps-sidebar .ps-nav-list > li { width: 100%; margin: 1px 0; }
.ps-admin-layout .ps-sidebar .ps-nav-list > li > a { display: flex; box-sizing: border-box; align-items: center; width: 100%; min-height: 42px; padding: 8px 14px; overflow: hidden; border-radius: 11px; background: transparent; color: #bdcad6; font-size: 13px; font-weight: 500; line-height: 1.25; text-decoration: none; white-space: nowrap; transition: background .18s, color .18s; }
.ps-admin-layout .ps-sidebar .ps-nav-list > li > a:hover,
.ps-admin-layout .ps-sidebar .ps-nav-list > li.open > a { background: rgba(255,255,255,.075); color: #fff; }
.ps-admin-layout .ps-sidebar .ps-nav-list > li.active > a { background: linear-gradient(100deg, #08b670, #079c5e); box-shadow: 0 8px 18px rgba(0,168,99,.2); color: #fff; }
.ps-admin-layout .ps-sidebar .ps-nav-list > li.active > a:before { display: none; }
.ps-admin-layout .ps-sidebar .ps-nav-list > li > a > i:first-child { flex: 0 0 29px; width: 29px; margin: 0; color: #d4dfe8; font-size: 17px; }
.ps-admin-layout .ps-sidebar .ps-nav-list > li > a > span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ps-admin-layout .ps-sidebar .sidebar-collapse-icon { flex: 0 0 auto; float: none; width: auto; margin: 0; font-size: 9px; }
.ps-admin-layout .ps-sidebar .ps-nav-list > li > ul { display: none; box-sizing: border-box; width: 100%; margin: 4px 0 7px; padding: 3px 0; overflow: hidden; border-radius: 9px; background: rgba(0, 11, 24, .24) !important; }
.ps-admin-layout .ps-sidebar .ps-nav-list > li.open > ul { display: block; }
.ps-admin-layout .ps-sidebar .ps-nav-list > li > ul a { display: block; box-sizing: border-box; width: 100%; padding: 8px 10px 8px 43px; overflow: hidden; background: transparent; color: #a9bac8; font-size: 10.5px; line-height: 1.35; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.ps-admin-layout .ps-sidebar .ps-nav-list > li > ul a > i { display: none; }
.ps-admin-layout .ps-sidebar .ps-nav-list > li > ul a:hover { background: rgba(255,255,255,.06); color: #fff; }
.ps-admin-layout .ps-sidebar .ps-nav-list > li > ul > li.active > a,
.ps-admin-layout .ps-sidebar .ps-nav-list > li > ul > li.ps-submenu-link-current > a {
    position: relative;
    background: rgba(6,169,101,.16);
    color: #eafff5;
    font-weight: 600;
}
.ps-admin-layout .ps-sidebar .ps-nav-list > li > ul > li.active > a:before,
.ps-admin-layout .ps-sidebar .ps-nav-list > li > ul > li.ps-submenu-link-current > a:before {
    position: absolute;
    top: 7px;
    bottom: 7px;
    left: 25px;
    width: 3px;
    border-radius: 3px;
    background: var(--aci-green);
    content: "";
}
.ps-admin-layout.sidebar-hide .ps-sidebar.sidebar-hide-to-small { position: fixed; top: 0; bottom: 0; width: var(--admin-sidebar-collapsed); height: 100vh; min-height: 100vh; background: linear-gradient(165deg, var(--navy-800), var(--navy-900) 58%, #061d33); }
.ps-admin-layout.sidebar-hide .ps-sidebar.sidebar-hide-to-small ~ .header,
.ps-admin-layout.sidebar-hide .ps-sidebar.sidebar-hide-to-small ~ .content-wrap { margin-left: var(--admin-sidebar-collapsed); }
.ps-admin-layout.sidebar-hide .ps-brand { display: flex; align-items: center; justify-content: center; height: 82px; padding: 0; }
.ps-admin-layout.sidebar-hide .ps-brand img { width: 44px; height: 44px; max-width: 44px; max-height: 44px; margin: 0; border-radius: 50%; object-fit: cover; object-position: left center; }
.ps-admin-layout.sidebar-hide .ps-sidebar .ps-nav-list > li > a > span,
.ps-admin-layout.sidebar-hide .ps-sidebar .sidebar-collapse-icon { display: none; }
.ps-admin-layout.sidebar-hide .ps-sidebar .nano-content { padding: 0 10px 14px; }
.ps-admin-layout.sidebar-hide .ps-sidebar .ps-nav-list { width: 46px; padding-top: 5px; }
.ps-admin-layout.sidebar-hide .ps-sidebar .ps-nav-list > li { position: relative; width: 46px; margin: 5px 0; }
.ps-admin-layout.sidebar-hide .ps-sidebar .ps-nav-list > li > a { align-items: center; justify-content: center; width: 46px; height: 46px; min-height: 46px; padding: 0; border-radius: 10px; }
.ps-admin-layout.sidebar-hide .ps-sidebar .ps-nav-list > li > a > i:first-child { flex: 0 0 auto; width: auto; margin: 0; font-size: 19px; }
.ps-admin-layout.sidebar-hide .ps-sidebar .ps-nav-list > li.active > a {
    background: var(--aci-green) !important;
    box-shadow: none;
    color: #fff !important;
}
.ps-admin-layout.sidebar-hide .ps-sidebar .ps-nav-list > li.active > a > i:first-child { color: #fff !important; }
.ps-admin-layout.sidebar-hide .ps-sidebar .ps-nav-list > li:not(.active) > a:hover,
.ps-admin-layout.sidebar-hide .ps-sidebar .ps-nav-list > li.open:not(.active) > a { background: rgba(126, 169, 202, .16); color: #fff; }
@media (min-width: 1000px) {
.ps-admin-layout.sidebar-hide .ps-sidebar-navigation { overflow: hidden; }
.ps-admin-layout.sidebar-hide .ps-sidebar-navigation .nano { overflow: hidden; }
.ps-admin-layout.sidebar-hide .ps-sidebar-navigation .nano-content { overflow-x: hidden; overflow-y: auto; }
.ps-admin-layout.sidebar-hide .ps-sidebar .ps-nav-list > li > ul {
    position: static;
    display: none !important;
    visibility: visible;
    width: 38px;
    margin: 7px 0 7px 5px;
    padding: 4px 2px;
    overflow: visible;
    border: 1px solid rgba(154,190,215,.1);
    border-radius: 9px;
    background: rgba(2,18,32,.32) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
.ps-admin-layout.sidebar-hide .ps-sidebar .ps-nav-list > li.open > ul {
    display: flex !important;
    flex-direction: column;
    align-items: center;
}
.ps-admin-layout.sidebar-hide .ps-sidebar .ps-nav-list > li > ul > li {
    width: 34px;
    margin: 3px auto;
}
.ps-admin-layout.sidebar-hide .ps-sidebar .ps-nav-list > li > ul > li > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    border: 1px solid rgba(175,203,222,.08);
    border-radius: 7px;
    background: rgba(255,255,255,.035);
    color: #91a8b9;
    font-size: 0;
    line-height: 1;
    opacity: .9;
}
.ps-admin-layout.sidebar-hide .ps-sidebar .ps-nav-list > li > ul > li > a > i {
    display: block;
    width: auto;
    margin: 0;
    font-size: 14px;
}
.ps-admin-layout.sidebar-hide .ps-sidebar .ps-nav-list > li > ul > li > a:hover {
    border-color: rgba(175,203,222,.16);
    background: rgba(126,169,202,.14);
    color: #fff;
    opacity: 1;
}
.ps-admin-layout.sidebar-hide .ps-sidebar .ps-nav-list > li.ps-submenu-current > a {
    background: rgba(6,169,101,.2) !important;
    box-shadow: inset 0 0 0 1px rgba(70,216,156,.28);
    color: #fff !important;
}
.ps-admin-layout.sidebar-hide .ps-sidebar .ps-nav-list > li.ps-submenu-current > a > i:first-child { color: #fff !important; }
.ps-admin-layout.sidebar-hide .ps-sidebar .ps-nav-list > li > ul > li.ps-submenu-link-current > a {
    border-color: rgba(79,220,158,.45);
    background: var(--aci-green);
    box-shadow: 0 4px 10px rgba(0,124,76,.2);
    color: #fff;
    opacity: 1;
}
.ps-admin-layout.sidebar-hide .ps-sidebar .ps-nav-list > li > ul > li.active > a {
    border-color: rgba(79,220,158,.45);
    background: var(--aci-green);
    box-shadow: 0 4px 10px rgba(0,124,76,.2);
    color: #fff;
    opacity: 1;
}
.ps-admin-layout.sidebar-hide .ps-sidebar.ps-has-submenu-current .ps-nav-list > li.active:not(.ps-submenu-current) > a {
    background: transparent !important;
    box-shadow: none;
    color: #bdcad6 !important;
}
.ps-admin-layout.sidebar-hide .ps-sidebar.ps-has-submenu-current .ps-nav-list > li.active:not(.ps-submenu-current) > a > i:first-child { color: #d4dfe8 !important; }
}

.ps-topbar { display: flex; box-sizing: border-box; align-items: center; width: 100%; height: var(--admin-header-height); padding: 0 24px; }
.ps-menu-toggle { top: 0; width: 34px; height: 40px; padding: 8px 6px; border: 0; background: transparent; }
.ps-menu-toggle .line { width: 21px; height: 2px; margin: 4px 0; background: #0b2345; }
.ps-topbar-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.ps-notification { position: relative; width: 36px; height: 36px; border: 0; background: transparent; color: #102849; font-size: 18px; }
.ps-notification span { position: absolute; top: 4px; right: 5px; width: 8px; height: 8px; border: 2px solid #fff; border-radius: 50%; background: #f3262d; }
.ps-user-trigger { display: flex; align-items: center; min-width: 168px; color: var(--text-primary) !important; text-decoration: none !important; }
.ps-user-icon { display: grid; flex: 0 0 40px; place-items: center; width: 40px; height: 40px; margin-right: 10px; border-radius: 50%; background: #e8eef5; color: #214263; font-size: 20px; }
.ps-user-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; }
.ps-user-copy strong { max-width: 110px; overflow: hidden; font-size: 12px; font-weight: 700; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.ps-user-copy small { color: #73829a; font-size: 10px; }
.ps-user-chevron { margin-left: 8px; font-size: 9px; }
.ps-user-dropdown { padding: 7px; border: 1px solid var(--border-color); border-radius: 9px; box-shadow: var(--shadow-sm); }
.ps-user-dropdown form { margin: 0; }
.ps-user-dropdown .dropdown-item { padding: 8px 12px; border: 0; border-radius: 6px; background: transparent; color: #203751; font-size: 12px; cursor: pointer; }

/* Reusable admin components */
.ps-admin-page { width: 100%; max-width: 1600px; margin: 0 auto; }
.ps-admin-layout:not(.ps-admin-dashboard-layout) .ps-admin-page { padding-top: 18px; }
.ps-page-header, .ps-admin-layout:not(.ps-admin-dashboard-layout) #main-content > .card-title { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 48px; margin: 0 0 14px; padding: 0 3px; background: transparent; }
.ps-page-header__content { min-width: 0; }
.ps-page-title, .ps-admin-layout:not(.ps-admin-dashboard-layout) #main-content > .card-title h1, .ps-admin-layout:not(.ps-admin-dashboard-layout) #main-content > .card-title h2, .ps-admin-layout:not(.ps-admin-dashboard-layout) #main-content > .card-title h3, .ps-admin-layout:not(.ps-admin-dashboard-layout) #main-content > .card-title h4 { margin: 0; color: var(--text-primary) !important; font-size: 26px; font-weight: 700; letter-spacing: -.45px; line-height: 1.2; }
.ps-page-subtitle { margin: 5px 0 0; color: var(--text-secondary); font-size: 12px; }
.ps-page-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.ps-page-action, .ps-admin-layout:not(.ps-admin-dashboard-layout) #main-content > .card-title > .btn { min-height: 40px; margin-left: auto; border-radius: 8px; }
.ps-panel, .ps-table-card, .ps-form-card, .ps-admin-layout:not(.ps-admin-dashboard-layout) .card, .ps-admin-layout:not(.ps-admin-dashboard-layout) #main-content > .card-body { box-sizing: border-box; margin-bottom: 18px; border: 1px solid var(--border-color); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow-sm); }
.ps-admin-layout:not(.ps-admin-dashboard-layout) .card { overflow: visible; }
.ps-panel-header, .ps-admin-layout:not(.ps-admin-dashboard-layout) .card > .card-title, .ps-admin-layout:not(.ps-admin-dashboard-layout) .card-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; margin: 0; padding: 15px 20px; border-bottom: 1px solid #e8edf3; border-radius: 15px 15px 0 0; background: #fff; }
.ps-panel-title, .ps-admin-layout:not(.ps-admin-dashboard-layout) .card > .card-title h3, .ps-admin-layout:not(.ps-admin-dashboard-layout) .card > .card-title h4, .ps-admin-layout:not(.ps-admin-dashboard-layout) .card-header h3, .ps-admin-layout:not(.ps-admin-dashboard-layout) .card-header h4 { margin: 0; color: var(--text-primary) !important; font-size: 19px; font-weight: 700; }
.ps-panel-body, .ps-admin-layout:not(.ps-admin-dashboard-layout) .card-body, .ps-admin-layout:not(.ps-admin-dashboard-layout) #main-content > .card-body { padding: 20px !important; }
.ps-admin-layout:not(.ps-admin-dashboard-layout) #main-content > .card-body { overflow: hidden; }
.ps-admin-layout:not(.ps-admin-dashboard-layout) #main-content > .table-responsive { box-sizing: border-box; margin-bottom: 18px; padding: 20px; border: 1px solid var(--border-color); border-radius: 15px; background: #fff; box-shadow: var(--shadow-sm); }
.ps-table-page, .ps-list-page { width: 100%; min-width: 0; }
.ps-table-card { box-sizing: border-box; width: 100%; padding: 20px !important; overflow: visible !important; border: 1px solid #e4eaf2 !important; border-radius: 16px !important; background: #fff !important; box-shadow: 0 8px 24px rgba(15,23,42,.05) !important; }
.ps-admin-layout:not(.ps-admin-dashboard-layout) .card-body.ps-table-card, .ps-admin-layout:not(.ps-admin-dashboard-layout) #main-content > .card-body.ps-table-card { padding: 20px !important; border: 1px solid #e4eaf2 !important; border-radius: 16px !important; background: #fff !important; box-shadow: 0 8px 24px rgba(15,23,42,.05) !important; }
.ps-table-toolbar, .ps-toolbar, .ps-filter-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.ps-filter-bar { align-items: flex-end; padding: 12px 14px; border: 1px solid #e5ebf2; border-radius: 10px; background: #f8fafc; }
.ps-table-toolbar-left, .ps-table-toolbar-right, .ps-toolbar-left, .ps-toolbar-right, .ps-filter-group { display: flex; align-items: center; gap: 10px; }
.ps-point-summary-bar { display: flex; justify-content: flex-end; margin-bottom: 14px; }
.ps-point-summary { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid #cce9dc; border-radius: 9px; background: var(--aci-green-soft); color: #385568; font-size: 11px; font-weight: 600; }
.ps-point-summary strong { color: var(--aci-green-dark); font-size: 14px; font-weight: 700; }
.ps-table-wrap, .ps-admin-layout:not(.ps-admin-dashboard-layout) .table-responsive { width: 100%; min-width: 0; overflow-x: auto; overflow-y: visible; border: 1px solid #e8edf3; border-radius: 12px; background: #fff; scrollbar-color: #b8c5d5 #eef2f6; scrollbar-width: thin; }
.ps-table-card.ps-table-wrap { overflow-x: auto !important; overflow-y: visible !important; }
.ps-table-wrap::-webkit-scrollbar, .ps-admin-layout:not(.ps-admin-dashboard-layout) .table-responsive::-webkit-scrollbar { width: 6px; height: 6px; }
.ps-table-wrap::-webkit-scrollbar-track, .ps-admin-layout:not(.ps-admin-dashboard-layout) .table-responsive::-webkit-scrollbar-track { border-radius: 999px; background: #eef2f6; }
.ps-table-wrap::-webkit-scrollbar-thumb, .ps-admin-layout:not(.ps-admin-dashboard-layout) .table-responsive::-webkit-scrollbar-thumb { border: 1px solid #eef2f6; border-radius: 999px; background: #b8c5d5; }
.ps-table-wrap::-webkit-scrollbar-thumb:hover, .ps-admin-layout:not(.ps-admin-dashboard-layout) .table-responsive::-webkit-scrollbar-thumb:hover { background: #8fa2b6; }

/* Tables and DataTables */
.ps-admin-layout .ps-data-table { width: 100% !important; min-width: 100%; margin: 0 !important; border: 0 !important; border-collapse: separate !important; border-spacing: 0; table-layout: auto !important; color: #334964; font-size: 12px; }
.ps-admin-layout #main-content #divID .ps-data-table { border: 0 !important; border-top: 0 !important; }
.ps-admin-layout .ps-data-table thead th { position: relative; min-width: 96px; height: 46px; padding: 11px 30px 11px 18px !important; border-top: 0 !important; border-right: 0 !important; border-bottom: 1px solid #d9e3ed !important; border-left: 0 !important; background: #eef3f8 !important; color: #102f4f !important; font-size: 11px !important; font-weight: 700; letter-spacing: .28px; line-height: 1.35; text-transform: uppercase; vertical-align: middle; white-space: nowrap; }
.ps-admin-layout .ps-data-table thead th:first-child { width: 52px; min-width: 52px; }
.ps-admin-layout .ps-data-table thead th:nth-child(2) { min-width: 130px; }
.ps-admin-layout .ps-data-table thead th:first-child { border-radius: 8px 0 0; }
.ps-admin-layout .ps-data-table thead th:last-child { border-radius: 0 8px 0 0; }
.ps-admin-layout .ps-data-table tbody td, .ps-admin-layout .ps-data-table tbody th, .ps-admin-layout .ps-data-table tfoot td, .ps-admin-layout .ps-data-table tfoot th { box-sizing: border-box; height: 64px; padding: 14px 12px !important; border-top: 0 !important; border-right: 0 !important; border-bottom: 1px solid #e8edf3 !important; border-left: 0 !important; background-color: #fff; color: #41566f; font-size: 12px !important; line-height: 1.5; vertical-align: middle !important; }
.ps-admin-layout .ps-data-table tbody tr { transition: background-color .16s ease, box-shadow .16s ease; }
.ps-admin-layout .ps-data-table tbody tr:hover > td, .ps-admin-layout .ps-data-table tbody tr:hover > th { background-color: #f8fcfa; }
.ps-admin-layout .ps-data-table tbody tr:hover { box-shadow: inset 3px 0 0 rgba(0,124,76,.28); }
.ps-admin-layout .ps-data-table thead th:first-child, .ps-admin-layout .ps-data-table tbody td:first-child { color: #8796a8; font-size: 11px !important; font-weight: 600; text-align: center; }
.ps-admin-layout .ps-data-table tfoot th, .ps-admin-layout .ps-data-table tfoot td { height: 36px; padding: 8px 12px !important; border-top: 1px solid #dfe7f1 !important; border-right: 0 !important; border-bottom: 0 !important; border-left: 0 !important; background: #f7fafc; color: #34495e; font-size: 12px !important; font-weight: 600; vertical-align: middle; }
.ps-admin-layout .ps-data-table tfoot.ps-structural-footer th { height: 42px; padding: 10px 12px !important; background: #f7fafc; color: #34495e; font-size: 11px !important; letter-spacing: .28px; text-transform: uppercase; white-space: nowrap; }
.ps-admin-layout .ps-data-table tfoot .ps-point-total-row > th, .ps-admin-layout .ps-data-table tfoot .ps-point-total-row > td, .ps-admin-layout .ps-data-table tfoot .ps-table-summary-row > th, .ps-admin-layout .ps-data-table tfoot .ps-table-summary-row > td { background: #ecf8f2; color: #00895a; font-weight: 700; }
.ps-admin-layout .ps-data-table tfoot .ps-point-total-row, .ps-admin-layout .ps-data-table tfoot .ps-table-summary-row { display: none; }
.ps-admin-layout .ps-data-table tfoot .ps-point-total-row > th { background-color: var(--aci-green-soft); color: var(--aci-green-dark); font-weight: 700; }
.ps-admin-layout .ps-data-table tfoot .ps-point-total-row > th:first-child { text-align: right; }
.ps-admin-layout .ps-data-table a:not(.btn) { color: var(--aci-green-dark); font-weight: 600; }
.ps-admin-layout .ps-data-table .divtd a:not(.btn):hover { color: var(--aci-green) !important; }
.ps-admin-layout .ps-data-table .sorting, .ps-admin-layout .ps-data-table .sorting_asc, .ps-admin-layout .ps-data-table .sorting_desc { background-position: right 11px center !important; background-size: 9px auto !important; }
.ps-admin-layout .ps-table-image, .ps-admin-layout .ps-data-table .divtdImg img, .ps-admin-layout .ps-data-table img.image, .ps-admin-layout .ps-data-table .sale-chalan-image, .ps-admin-layout .ps-data-table .dashboard-chalan { display: block; width: 64px !important; height: 80px !important; max-width: 64px; border-radius: 6px; object-fit: cover; cursor: pointer; }
.ps-admin-layout .ps-data-table .ps-date-cell, .ps-admin-layout .ps-data-table .ps-created-date-cell, .ps-admin-layout .ps-data-table .ps-sale-date-cell { min-width: 115px; white-space: nowrap; }
.ps-admin-layout .ps-data-table .ps-sale-customer-cell, .ps-admin-layout #claim-table th:nth-child(8), .ps-admin-layout #claim-table td:nth-child(8) { min-width: 170px; }
.ps-admin-layout .ps-data-table .ps-action-cell { min-width: 112px; }
.ps-admin-layout .ps-sale-products-table { width: max-content !important; min-width: 100%; table-layout: auto !important; }
.ps-admin-layout .ps-sale-products-table .ps-observation-cell { min-width: 220px; white-space: nowrap; }
.ps-admin-layout .ps-sale-products-table .ps-created-date-cell { min-width: 120px; white-space: nowrap; }
.ps-admin-layout .ps-sale-products-table .ps-observation-actions { display: inline-flex; align-items: center; gap: 6px; flex-wrap: nowrap; white-space: nowrap; }
.ps-admin-layout .ps-sale-products-table .ps-observation-actions > span { flex: 0 0 auto; }
.ps-admin-layout .ps-sale-products-table .ps-observation-actions .ps-table-actions { flex: 0 0 auto; }
.ps-admin-layout .ps-sale-products-table .ps-observation-actions .btn { height: 32px; min-height: 32px !important; padding: 0 10px; border-radius: 7px; font-size: 11px; white-space: nowrap; }
.ps-admin-layout .ps-point-detail-table { min-width: 1000px !important; }
.ps-admin-layout .ps-point-detail-table th,
.ps-admin-layout .ps-point-detail-table td { vertical-align: middle !important; }
.ps-admin-layout .ps-point-detail-table th:nth-child(1),
.ps-admin-layout .ps-point-detail-table td:nth-child(1) { width: 50px; min-width: 50px; }
.ps-admin-layout .ps-point-detail-table th:nth-child(2),
.ps-admin-layout .ps-point-detail-table td:nth-child(2) { min-width: 170px; }
.ps-admin-layout .ps-point-detail-table th:nth-child(3),
.ps-admin-layout .ps-point-detail-table td:nth-child(3) { min-width: 100px; }
.ps-admin-layout .ps-point-detail-table th:nth-child(4),
.ps-admin-layout .ps-point-detail-table td:nth-child(4) { min-width: 130px; }
.ps-admin-layout .ps-point-detail-table th:nth-child(5),
.ps-admin-layout .ps-point-detail-table td:nth-child(5) { min-width: 80px; }
.ps-admin-layout .ps-point-detail-table th:nth-child(6),
.ps-admin-layout .ps-point-detail-table td:nth-child(6) { min-width: 120px; white-space: nowrap; }
.ps-admin-layout .ps-point-detail-table th:nth-child(7),
.ps-admin-layout .ps-point-detail-table td:nth-child(7) { min-width: 120px; white-space: nowrap; }
.ps-admin-layout .ps-point-detail-table th:nth-child(8),
.ps-admin-layout .ps-point-detail-table td:nth-child(8) { min-width: 190px; white-space: nowrap; }
.ps-admin-layout div.dataTables_wrapper { color: var(--text-secondary); font-size: 11px; }
.ps-admin-layout div.dataTables_wrapper div.top, .ps-table-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; padding: 0 0 14px; border-bottom: 1px solid #e8edf3; }
.ps-admin-layout div.dataTables_wrapper .dt-buttons { order: -2; margin: 0 !important; }
.ps-admin-layout div.dataTables_wrapper .dataTables_length { order: -1; }
.ps-admin-layout div.dataTables_wrapper .dataTables_filter { margin-left: auto; text-align: right; }
.ps-admin-layout div.dataTables_wrapper .dataTables_filter label, .ps-admin-layout div.dataTables_wrapper .dataTables_length label { display: flex; align-items: center; gap: 7px; margin: 0; color: #63748a; font-size: 0; font-weight: 500; }
.ps-admin-layout div.dataTables_wrapper .dataTables_length label { font-size: 11px; }
.ps-admin-layout div.dataTables_wrapper .dataTables_filter input, .ps-admin-layout div.dataTables_wrapper .dataTables_length select { box-sizing: border-box; height: 42px; margin: 0; padding: 7px 12px; border: 1px solid #dde5ef; border-radius: 10px; outline: 0; background-color: #f8fafc; color: #203952; font-size: 12px; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.ps-admin-layout div.dataTables_wrapper .dataTables_filter input { width: 330px; padding-left: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2367798f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 13px 50%; }
.ps-admin-layout div.dataTables_wrapper .dataTables_filter input:hover { border-color: #c9d5e2; background-color: #fff; }
.ps-admin-layout div.dataTables_wrapper .dataTables_filter input:focus { border-color: #35a875; background-color: #fff; box-shadow: 0 0 0 4px rgba(0,166,81,.1); }
.ps-admin-layout .dt-button, .ps-admin-layout .buttons-excel { display: inline-flex !important; align-items: center; gap: 9px; min-height: 42px; padding: 8px 18px !important; border: 1px solid #007044 !important; border-radius: 9px !important; background: linear-gradient(180deg,#008c56 0%,#007c4c 100%) !important; box-shadow: 0 5px 12px rgba(0,124,76,.18) !important; color: #fff !important; font-size: 11px !important; font-weight: 700; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.ps-admin-layout .dt-button:hover, .ps-admin-layout .dt-button:focus, .ps-admin-layout .buttons-excel:hover, .ps-admin-layout .buttons-excel:focus { border-color: #00643d !important; background: linear-gradient(180deg,#007e4d 0%,#006c42 100%) !important; box-shadow: 0 7px 16px rgba(0,108,66,.22) !important; color: #fff !important; transform: translateY(-1px); }
.ps-admin-layout .dt-button:active, .ps-admin-layout .buttons-excel:active { box-shadow: 0 3px 8px rgba(0,108,66,.18) !important; transform: translateY(0); }
.ps-admin-layout .buttons-excel:before { color: #fff; content: "\f1c3"; font-family: FontAwesome; font-size: 14px; font-weight: 400; }
.ps-table-footer, .ps-admin-layout div.dataTables_wrapper div.bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 0; padding: 15px 0 0; border-top: 1px solid #e8edf3; }
.ps-admin-layout div.dataTables_wrapper .dataTables_info { float: none; padding: 0; color: #7a899d; font-size: 12px; line-height: 36px; white-space: normal; }
.ps-admin-layout div.dataTables_wrapper .dataTables_paginate { display: flex; float: none; align-items: center; justify-content: flex-end; margin-left: auto; padding: 0; }
.ps-admin-layout div.dataTables_wrapper .dataTables_paginate ul.pagination { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 5px; margin: 0; white-space: normal; }
.ps-admin-layout div.dataTables_wrapper .dataTables_paginate .paginate_button.page-item { margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.ps-admin-layout div.dataTables_wrapper .dataTables_paginate .paginate_button .page-link,
.ps-admin-layout div.dataTables_wrapper .dataTables_paginate .paginate_button:not(.page-item) {
    display: inline-flex;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    margin: 0;
    padding: 0 10px !important;
    border: 1px solid #dce4ed !important;
    border-radius: 8px !important;
    outline: 0;
    background: #fff !important;
    box-shadow: 0 1px 3px rgba(15,23,42,.035) !important;
    color: #203952 !important;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none !important;
    transition: border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.ps-admin-layout div.dataTables_wrapper .dataTables_paginate .paginate_button.previous .page-link,
.ps-admin-layout div.dataTables_wrapper .dataTables_paginate .paginate_button.next .page-link,
.ps-admin-layout div.dataTables_wrapper .dataTables_paginate .paginate_button.previous:not(.page-item),
.ps-admin-layout div.dataTables_wrapper .dataTables_paginate .paginate_button.next:not(.page-item) { min-width: 76px; height: 38px; background: #f8fafc !important; }
.ps-admin-layout div.dataTables_wrapper .dataTables_paginate .paginate_button:not(.active):not(.disabled) .page-link:hover,
.ps-admin-layout div.dataTables_wrapper .dataTables_paginate .paginate_button:not(.page-item):not(.current):not(.disabled):hover {
    border-color: var(--aci-green) !important;
    background: #f1faf5 !important;
    color: var(--aci-green-dark) !important;
    transform: translateY(-1px);
}
.ps-admin-layout div.dataTables_wrapper .dataTables_paginate .paginate_button.active .page-link,
.ps-admin-layout div.dataTables_wrapper .dataTables_paginate .paginate_button.active .page-link:hover,
.ps-admin-layout div.dataTables_wrapper .dataTables_paginate .paginate_button.current:not(.page-item),
.ps-admin-layout div.dataTables_wrapper .dataTables_paginate .paginate_button.current:not(.page-item):hover {
    border-color: var(--aci-green) !important;
    background: linear-gradient(180deg,#00a651 0%,#008f46 100%) !important;
    box-shadow: 0 4px 10px rgba(0,143,70,.2) !important;
    color: #fff !important;
}
.ps-admin-layout div.dataTables_wrapper .dataTables_paginate .paginate_button.disabled .page-link,
.ps-admin-layout div.dataTables_wrapper .dataTables_paginate .paginate_button.disabled .page-link:hover,
.ps-admin-layout div.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:not(.page-item),
.ps-admin-layout div.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:not(.page-item):hover {
    border-color: #e4e9ef !important;
    background: #f4f6f8 !important;
    box-shadow: none !important;
    color: #9aa7b6 !important;
    cursor: not-allowed;
}
.ps-admin-layout div.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:not(.previous):not(.next) .page-link {
    min-width: 24px;
    padding: 0 4px !important;
    border-color: transparent !important;
    background: transparent !important;
}
.ps-admin-layout div.dataTables_wrapper .dataTables_paginate .ellipsis { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 36px; padding: 0; color: #8794a5; }
.ps-admin-layout .ps-table-card > nav, .ps-admin-layout .ps-table-card > .pagination { margin-top: 16px; }
.ps-admin-layout .ps-table-card .pagination { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 0; }
.ps-admin-layout .ps-table-card .pagination > li > a, .ps-admin-layout .ps-table-card .pagination > li > span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; margin: 0; padding: 0 10px; border: 1px solid #d9e2ec; border-radius: 8px; background: #fff; color: #183451; font-size: 12px; }
.ps-admin-layout .ps-table-card .pagination > .active > a, .ps-admin-layout .ps-table-card .pagination > .active > span { border-color: var(--aci-green); background: var(--aci-green); color: #fff; }
.ps-admin-layout .ps-table-card .pagination > .disabled > span { background: #f5f7f9; color: #a0aaba; }

/* Forms, filters and controls */
.ps-table-filter-panel { display: flex; box-sizing: border-box; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 15px; padding: 15px 16px; border: 1px solid #e4eaf2; border-radius: 12px; background: #f8fafc; box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 2px 8px rgba(15,23,42,.025); }
.ps-date-filter { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 11px; }
.ps-date-filter label { display: flex; flex-direction: column; gap: 7px; margin: 0 !important; color: #203b57 !important; font-size: 10px; font-weight: 700; letter-spacing: .18px; text-transform: uppercase; }
.ps-date-filter input { box-sizing: border-box; width: 158px; height: 40px; padding: 7px 10px; border: 1px solid #d8e1eb; border-radius: 9px; outline: 0; background: #fff; color: #263d59; font-size: 12px; box-shadow: 0 1px 2px rgba(15,23,42,.025); transition: border-color .15s, box-shadow .15s; }
.ps-date-filter input:hover { border-color: #c4d1df; }
.ps-date-filter input:focus { border-color: #35a875; box-shadow: 0 0 0 3px rgba(0,166,81,.1); }
.ps-date-filter .btn { height: 40px; min-height: 40px !important; border-radius: 9px; }
.ps-date-filter .ps-date-apply { padding-right: 16px; padding-left: 16px; box-shadow: 0 3px 9px rgba(0,124,76,.13); }
.ps-admin-layout .ps-date-filter .ps-date-current { height: 36px; min-height: 36px !important; padding: 6px 11px; border-color: #bcdcca !important; background: transparent !important; color: #087449 !important; font-size: 10px; }
.ps-admin-layout .ps-date-filter .ps-date-current:hover, .ps-admin-layout .ps-date-filter .ps-date-current:focus { border-color: #7fc09d !important; background: #f3faf6 !important; color: #006f43 !important; }
.ps-admin-layout .ps-date-filter .ps-date-reset { height: 34px; min-height: 34px !important; padding: 5px 8px; border-color: transparent !important; background: transparent !important; color: #65768b !important; font-size: 10px; }
.ps-admin-layout .ps-date-filter .ps-date-reset:hover, .ps-admin-layout .ps-date-filter .ps-date-reset:focus { border-color: #d9e2eb !important; background: #fff !important; color: #304860 !important; }
.ps-period-indicator, .ps-period-card { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 10px; min-width: 188px; min-height: 44px; padding: 8px 13px; border: 1px solid #c7e5d5; border-radius: 10px; background: #eff9f4; box-shadow: 0 2px 7px rgba(0,124,76,.055); color: var(--aci-green-dark); white-space: nowrap; }
.ps-period-indicator > i, .ps-period-card > i { display: inline-flex; align-items: center; justify-content: center; width: 27px; height: 27px; border-radius: 8px; background: rgba(0,166,81,.1); font-size: 14px; }
.ps-period-indicator span, .ps-period-card span { display: flex; flex-direction: column; gap: 2px; }
.ps-period-indicator strong, .ps-period-card strong { color: #087449; font-size: 9px; font-weight: 800; letter-spacing: .45px; text-transform: uppercase; }
.ps-period-indicator small, .ps-period-card small { color: #65768b; font-size: 9px; font-weight: 500; }
.ps-admin-layout div.dataTables_wrapper .dataTables_empty { padding: 38px 16px !important; color: #718096; text-align: center; }
.ps-form-section { margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid #edf1f5; }
.ps-form-grid, .ps-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 18px; }
.ps-form-group, .ps-admin-layout:not(.ps-admin-dashboard-layout) .form-group { margin-bottom: 16px; }
.ps-admin-layout:not(.ps-admin-dashboard-layout) label, .ps-filter-group label { margin-bottom: 6px; color: #263d59 !important; font-size: 11px; font-weight: 600; }
.ps-admin-layout:not(.ps-admin-dashboard-layout) .form-control, .ps-filter-bar input, .ps-filter-bar select { box-sizing: border-box; min-height: 41px; padding: 8px 11px; border: 1px solid #d7e0ea; border-radius: 8px; background-color: #fff; color: #263d59; font-size: 12px; box-shadow: none; transition: border-color .15s, box-shadow .15s; }
.ps-admin-layout:not(.ps-admin-dashboard-layout) textarea.form-control { min-height: 100px; resize: vertical; }
.ps-admin-layout:not(.ps-admin-dashboard-layout) .form-control:focus { border-color: #49b98a; box-shadow: 0 0 0 3px rgba(6,169,101,.1); }
.ps-admin-layout:not(.ps-admin-dashboard-layout) .form-inline { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; padding: 12px 14px; border: 1px solid #e4eaf1; border-radius: 10px; background: #f8fafc; }
.ps-admin-layout:not(.ps-admin-dashboard-layout) .form-inline .form-group { margin: 0 !important; }
.ps-admin-layout:not(.ps-admin-dashboard-layout) .chosen-container { width: 100% !important; font-size: 12px; }
.ps-admin-layout:not(.ps-admin-dashboard-layout) .chosen-container-single .chosen-single { height: 41px; padding: 7px 11px; border: 1px solid #d7e0ea; border-radius: 8px; background: #fff; box-shadow: none; color: #263d59; line-height: 25px; }
.ps-admin-layout:not(.ps-admin-dashboard-layout) .chosen-container-single .chosen-single div b { background-position-y: 10px; }
.ps-admin-layout:not(.ps-admin-dashboard-layout) .chosen-container-multi .chosen-choices { min-height: 41px; padding: 4px 8px; border: 1px solid #d7e0ea; border-radius: 8px; background: #fff; box-shadow: none; }
.ps-admin-layout:not(.ps-admin-dashboard-layout) .chosen-container-active .chosen-single, .ps-admin-layout:not(.ps-admin-dashboard-layout) .chosen-container-active .chosen-choices { border-color: #49b98a; box-shadow: 0 0 0 3px rgba(6,169,101,.1); }
.ps-admin-layout:not(.ps-admin-dashboard-layout) .toggle { overflow: hidden; border: 1px solid #d5dee8; border-radius: 8px; box-shadow: none; }
.ps-admin-layout:not(.ps-admin-dashboard-layout) .toggle .toggle-handle { border-radius: 7px; background: #fff; }
.ps-admin-layout:not(.ps-admin-dashboard-layout) .ui-datepicker { padding: 8px; border: 1px solid var(--border-color); border-radius: 10px; box-shadow: var(--shadow-md); font-family: Montserrat, Arial, sans-serif; }

/* Buttons and status */
.ps-action-btn, .ps-admin-layout:not(.ps-admin-dashboard-layout) .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 7px 13px; border-radius: 8px; box-shadow: none; font-size: 11px; font-weight: 600; line-height: 1.2; }
.ps-admin-layout:not(.ps-admin-dashboard-layout) .ps-page-action { min-height: 40px; border-radius: 8px; }
.ps-admin-layout:not(.ps-admin-dashboard-layout) .btn-lg { min-height: 41px; padding: 9px 17px; font-size: 12px; }
.ps-admin-layout:not(.ps-admin-dashboard-layout) .btn-sm { min-height: 31px; padding: 5px 9px; }
.ps-btn-primary, .ps-btn-success, .ps-admin-layout:not(.ps-admin-dashboard-layout) .btn-primary, .ps-admin-layout:not(.ps-admin-dashboard-layout) .btn-success { border-color: var(--aci-green-dark); background: var(--aci-green-dark); color: #fff; }
.ps-btn-primary:hover, .ps-btn-success:hover, .ps-admin-layout:not(.ps-admin-dashboard-layout) .btn-primary:hover, .ps-admin-layout:not(.ps-admin-dashboard-layout) .btn-success:hover { border-color: #006c42; background: #006c42; color: #fff; }
.ps-btn-secondary, .ps-admin-layout:not(.ps-admin-dashboard-layout) .btn-secondary { border-color: #d5dee8; background: #fff; color: #3a506b; }
.ps-btn-danger, .ps-admin-layout:not(.ps-admin-dashboard-layout) .btn-danger { border-color: #dc5262; background: #dc5262; color: #fff; }
.ps-admin-layout:not(.ps-admin-dashboard-layout) .btn-info { border-color: #397ca8; background: #397ca8; color: #fff; }
.ps-status, .ps-admin-layout:not(.ps-admin-dashboard-layout) .badge { display: inline-flex; align-items: center; min-height: 24px; padding: 4px 9px; border-radius: 999px; font-size: 10px; font-weight: 700; }
.ps-status--success, .ps-admin-layout:not(.ps-admin-dashboard-layout) .badge-success { background: #e2f7ec; color: #087646; }
.ps-status--pending, .ps-admin-layout:not(.ps-admin-dashboard-layout) .badge-warning { background: #fff3d8; color: #956000; }
.ps-status--danger, .ps-admin-layout:not(.ps-admin-dashboard-layout) .badge-danger { background: #fde8eb; color: #ad2e42; }
.ps-status--info, .ps-admin-layout:not(.ps-admin-dashboard-layout) .badge-info { background: #e5f2fc; color: #176b9f; }

/* Detail layouts, alerts and empty states */
.ps-detail-item { padding: 12px 14px; border: 1px solid #e6ecf2; border-radius: 9px; background: #fbfcfd; }
.ps-detail-item span { display: block; margin-bottom: 4px; color: var(--text-secondary); font-size: 10px; font-weight: 600; text-transform: uppercase; }
.ps-detail-item strong { color: var(--text-primary); font-size: 13px; }
.ps-empty-state { padding: 44px 20px; color: var(--text-secondary); text-align: center; }
.ps-admin-layout .alert { margin: 14px 0; padding: 11px 14px; border: 0; border-radius: 9px; font-size: 12px; }
.ps-admin-layout .alert-primary, .ps-admin-layout .alert-success { background: #e5f7ee; color: #087449; }
.ps-admin-layout .alert-danger { background: #fde9ec; color: #a82f42; }
.ps-admin-layout .alert ul { margin: 0; padding-left: 18px; }

/* Modals */
.ps-modal .modal-content, .ps-admin-layout .modal-content { overflow: hidden; border: 1px solid var(--border-color); border-radius: 13px; box-shadow: 0 20px 60px rgba(8,38,65,.22); }
.ps-admin-layout .modal-header { align-items: center; padding: 15px 18px; border-bottom: 1px solid #e8edf3; background: #fff; }
.ps-admin-layout .modal-title { color: var(--text-primary); font-size: 17px; font-weight: 700; }
.ps-admin-layout .modal-header .close { margin: -8px -6px -8px auto; color: #62758c; text-shadow: none; }
.ps-admin-layout .modal-body { padding: 18px; color: #405570; font-size: 12px; }
.ps-admin-layout .modal-footer { padding: 12px 18px; border-top: 1px solid #e8edf3; background: #fbfcfd; }
.ps-admin-layout .modal img { max-width: 100%; height: auto; border-radius: 8px; }

/* Shared footer */
.ps-admin-footer { margin-top: 20px; padding: 14px 4px 2px; border-top: 1px solid #e2e9f0; background: transparent; text-align: center; }
.ps-admin-footer p { margin: 0; color: #75869b; font-size: 10px; font-weight: 600; letter-spacing: .25px; }

/* Branded login */
.ps-login-page { min-height: 100vh; margin: 0; background: #edf3f7; color: var(--text-primary); font-family: Montserrat, Arial, sans-serif; }
.ps-login-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(360px, .92fr) minmax(480px, 1.08fr); }
.ps-login-brand { position: relative; display: flex; align-items: center; padding: 64px; overflow: hidden; background: linear-gradient(145deg, #123c5a, #082641 62%, #051b30); color: #fff; }
.ps-login-brand:before, .ps-login-brand:after { position: absolute; right: -120px; bottom: 18%; width: 620px; height: 2px; background: linear-gradient(90deg, transparent, rgba(170,220,228,.28), transparent); content: ""; transform: rotate(-18deg); }
.ps-login-brand:after { bottom: 13%; opacity: .55; }
.ps-login-brand__content { position: relative; z-index: 1; max-width: 520px; }
.ps-login-eyebrow { display: inline-block; margin-bottom: 20px; color: #58d79e; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.ps-login-brand h1 { margin: 0; color: #fff; font-size: clamp(34px,4.1vw,58px); font-weight: 700; letter-spacing: -1.4px; line-height: 1.08; }
.ps-login-brand p { max-width: 440px; margin: 22px 0 0; color: #b9c9d5; font-size: 14px; line-height: 1.7; }
.ps-login-line { display: block; width: 42px; height: 4px; margin-top: 28px; border-radius: 3px; background: var(--aci-green); }
.ps-login-panel { display: flex; align-items: center; justify-content: center; padding: 36px; }
.ps-login-card { box-sizing: border-box; width: min(100%, 450px); padding: 36px 38px 30px; border: 1px solid #dfe7ef; border-radius: 14px; background: #fff; box-shadow: 0 22px 60px rgba(13,45,72,.12); }
.ps-login-logo { display: flex; justify-content: center; margin-bottom: 24px; }
.ps-login-logo img { display: block; max-width: 225px; max-height: 72px; object-fit: contain; }
.ps-login-heading { margin-bottom: 24px; text-align: center; }
.ps-login-heading h2 { margin: 0; color: var(--text-primary); font-size: 27px; font-weight: 700; letter-spacing: -.45px; }
.ps-login-heading p { margin: 7px 0 0; color: var(--text-secondary); font-size: 12px; }
.ps-login-field { margin-bottom: 16px; }
.ps-login-field label { display: block; margin-bottom: 7px; color: #263d59; font-size: 11px; font-weight: 600; }
.ps-login-field > div { display: flex; align-items: center; height: 44px; border: 1px solid #d6e0e9; border-radius: 9px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.ps-login-field > div:focus-within { border-color: #49b98a; box-shadow: 0 0 0 3px rgba(6,169,101,.1); }
.ps-login-field i { margin: 0 11px 0 14px; color: #71849a; font-size: 15px; }
.ps-login-field input { flex: 1; min-width: 0; height: 100%; padding: 0 13px 0 0; border: 0; outline: 0; background: transparent; color: #263d59; font-family: inherit; font-size: 12px; }
.ps-login-submit { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; height: 44px; margin-top: 22px; border: 0; border-radius: 9px; background: var(--aci-green-dark); color: #fff; font-family: inherit; font-size: 12px; font-weight: 700; cursor: pointer; transition: background .15s, transform .15s; }
.ps-login-submit:hover, .ps-login-submit:focus { background: #008f46; color: #fff; }
.ps-login-submit:hover { transform: translateY(-1px); }
.ps-login-submit:active { background: #007a3c; color: #fff; }
.ps-login-footnote { margin: 23px 0 0; color: #8795a7; font-size: 9px; font-weight: 600; letter-spacing: .4px; text-align: center; text-transform: uppercase; }
.ps-login-card .alert { margin: 0 0 14px; padding: 10px 12px; border: 0; border-radius: 8px; font-size: 11px; }
.ps-login-card .alert-primary { background: #e5f7ee; color: #087449; }
.ps-login-card .alert-danger { background: #fde9ec; color: #a82f42; }
.ps-login-card .alert ul { margin: 0; padding-left: 17px; }

@media (max-width: 1199px) {
    .ps-admin-layout .main > .container-fluid { padding-right: 16px; padding-left: 16px; }
}
@media (max-width: 1100px) {
    .ps-table-filter-panel { align-items: stretch; flex-wrap: wrap; }
    .ps-period-indicator, .ps-period-card { margin-left: auto; }
}
@media (max-width: 767px) {
    .ps-topbar { padding: 0 11px; }
    .ps-topbar-actions { gap: 5px; }
    .ps-user-trigger { min-width: auto; }
    .ps-user-copy, .ps-user-chevron { display: none; }
    .ps-user-icon { margin: 0 4px; }
    .ps-admin-layout:not(.ps-admin-dashboard-layout) .ps-admin-page { padding-top: 12px; }
    .ps-page-header, .ps-admin-layout:not(.ps-admin-dashboard-layout) #main-content > .card-title { align-items: flex-start; flex-direction: column; min-height: 0; }
    .ps-page-title, .ps-admin-layout:not(.ps-admin-dashboard-layout) #main-content > .card-title h1, .ps-admin-layout:not(.ps-admin-dashboard-layout) #main-content > .card-title h2, .ps-admin-layout:not(.ps-admin-dashboard-layout) #main-content > .card-title h3, .ps-admin-layout:not(.ps-admin-dashboard-layout) #main-content > .card-title h4 { font-size: 23px; }
    .ps-page-actions { width: 100%; margin-left: 0; flex-wrap: wrap; }
    .ps-panel-body, .ps-admin-layout:not(.ps-admin-dashboard-layout) .card-body, .ps-admin-layout:not(.ps-admin-dashboard-layout) #main-content > .card-body { padding: 14px !important; }
    .ps-table-card, .ps-admin-layout:not(.ps-admin-dashboard-layout) .card-body.ps-table-card, .ps-admin-layout:not(.ps-admin-dashboard-layout) #main-content > .card-body.ps-table-card { padding: 14px !important; border-radius: 13px !important; }
    .ps-table-toolbar, .ps-toolbar, .ps-filter-bar, .ps-table-toolbar-left, .ps-table-toolbar-right, .ps-toolbar-left, .ps-toolbar-right, .ps-filter-group { align-items: stretch; flex-direction: column; width: 100%; }
    .ps-form-grid, .ps-detail-grid { grid-template-columns: 1fr; }
    .ps-table-filter-panel, .ps-date-filter { align-items: stretch; flex-direction: column; width: 100%; }
    .ps-table-filter-panel { padding: 13px; }
    .ps-date-filter input { width: 100%; }
    .ps-period-indicator, .ps-period-card { align-self: stretch; margin-left: 0; }
    .ps-admin-layout div.dataTables_wrapper div.top { align-items: stretch; flex-direction: column; }
    .ps-admin-layout div.dataTables_wrapper div.bottom { align-items: flex-start; flex-direction: column; }
    .ps-admin-layout div.dataTables_wrapper .dataTables_info { width: 100%; line-height: 1.5; text-align: left; }
    .ps-admin-layout div.dataTables_wrapper .dataTables_paginate { width: 100%; margin-left: 0; }
    .ps-admin-layout div.dataTables_wrapper .dataTables_paginate ul.pagination { justify-content: flex-start; }
    .ps-admin-layout div.dataTables_wrapper .dataTables_filter { width: 100%; margin-left: 0; text-align: left; }
    .ps-admin-layout div.dataTables_wrapper .dataTables_filter label, .ps-admin-layout div.dataTables_wrapper .dataTables_filter input { width: 100%; }
    .ps-admin-layout:not(.ps-admin-dashboard-layout) .form-inline { align-items: stretch; flex-direction: column; }
    .ps-admin-layout:not(.ps-admin-dashboard-layout) .form-inline .form-control { width: 100%; }
    .ps-admin-layout .modal-dialog { max-width: calc(100vw - 20px); margin: 10px auto; }
    .ps-login-shell { display: block; }
    .ps-login-brand { display: none; }
    .ps-login-panel { min-height: 100vh; padding: 18px; }
    .ps-login-card { padding: 28px 22px 24px; }
}
@media (max-width: 480px) {
    .ps-admin-layout .main > .container-fluid { padding-right: 9px; padding-left: 9px; }
}

/* Shared status toggles and table actions.
   Bootstrap Toggle generates two label.btn elements and one white handle. */
.ps-admin-layout .toggle-group > .toggle-on.btn-success,
.ps-admin-layout .toggle-group > .toggle-on.btn-success:hover,
.ps-admin-layout .toggle-group > .toggle-on.btn-success:focus,
.ps-admin-layout .toggle-group > .toggle-on.btn-success:active,
.ps-admin-layout .toggle-group > .toggle-on.btn-primary,
.ps-admin-layout .toggle-group > .toggle-on.btn-info,
.ps-admin-layout .toggle-group > .toggle-off.btn-danger,
.ps-admin-layout .toggle-group > .toggle-off.btn-info {
    color: #fff !important;
}

.ps-admin-layout .toggle-group > .toggle-on.btn-success *,
.ps-admin-layout .toggle-group > .toggle-on.btn-primary *,
.ps-admin-layout .toggle-group > .toggle-on.btn-info *,
.ps-admin-layout .toggle-group > .toggle-off.btn-danger *,
.ps-admin-layout .toggle-group > .toggle-off.btn-info * {
    color: inherit !important;
}

.ps-admin-layout .toggle-group > .toggle-handle.btn-light {
    background-color: #fff !important;
}

.ps-admin-layout .ps-table-actions {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    vertical-align: middle;
}

.ps-admin-layout .ps-table-actions > a,
.ps-admin-layout .ps-table-actions > button,
.ps-admin-layout .ps-table-actions > .btn,
.ps-admin-layout .ps-table-actions > form,
.ps-admin-layout .ps-inline-action-form {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
}

.ps-admin-layout .ps-table-actions > form,
.ps-admin-layout .ps-inline-action-form {
    align-items: center;
}

.ps-admin-layout .ps-table-actions .btn,
.ps-admin-layout .ps-table-actions a,
.ps-admin-layout .ps-table-actions button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 32px;
    min-height: 32px !important;
    padding: 5px 9px;
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
    border-radius: 7px;
}

.ps-admin-layout .ps-table-actions .ps-icon-action {
    width: 32px;
    min-width: 32px;
    height: 32px;
    padding: 0;
}

.ps-admin-layout .ps-action-cell {
    width: 1%;
    min-width: 104px;
    vertical-align: middle !important;
    white-space: nowrap !important;
}

.ps-admin-layout .ps-table-actions form button,
.ps-admin-layout .ps-action-cell .ps-table-actions .ml-2,
.ps-admin-layout .ps-action-cell .ps-table-actions .mt-2 {
    margin: 0 !important;
}
/* Shared AJAX detail modal */
a.ps-detail-link:not(.btn) {
    color: #15803d !important;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
}

a.ps-detail-link:not(.btn):hover,
a.ps-detail-link:not(.btn):focus {
    color: #0f5f2c !important;
    text-decoration: underline;
}

a.ps-lsp-detail-link:not(.btn) {
    color: var(--aci-green-dark) !important;
    cursor: pointer;
    font-weight: 600;
}

.ps-detail-modal .modal-content {
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, .09);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 24px 64px rgba(15, 23, 42, .22);
}

.ps-detail-modal .modal-header {
    align-items: center;
    padding: 1.15rem 1.5rem;
    border-bottom: 1px solid #e8edf2;
}

.ps-detail-modal .modal-title { color: #10233f; font-weight: 700; }
.ps-detail-modal .modal-header .close {
    display: inline-flex;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #334155;
    font-size: 20px;
    line-height: 1;
    opacity: 1;
    transition: background-color .15s ease, color .15s ease;
}

.ps-detail-modal .modal-header .close:hover,
.ps-detail-modal .modal-header .close:focus {
    background: #f1f5f9;
    color: #1e293b;
    opacity: 1;
}
.ps-detail-modal .modal-body { max-height: calc(100vh - 10rem); padding: 1.5rem; overflow-x: auto; overflow-y: auto; }

/* Shared searchable selects: the Dealer control is the visual reference. */
.ps-admin-layout:not(.ps-admin-dashboard-layout) .ps-searchable-select + .select2-container {
    display: block;
    width: 100% !important;
    font-family: inherit;
    font-size: 12px;
}
.ps-admin-layout:not(.ps-admin-dashboard-layout) .ps-searchable-select + .select2-container .select2-selection--single {
    height: 42px;
    border: 1px solid #d5dce5;
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
    transition: border-color .15s, box-shadow .15s;
}
.ps-admin-layout:not(.ps-admin-dashboard-layout) .ps-searchable-select + .select2-container .select2-selection__rendered {
    height: 40px;
    padding: 0 38px 0 12px;
    color: #263d59;
    line-height: 40px;
}
.ps-admin-layout:not(.ps-admin-dashboard-layout) .ps-searchable-select + .select2-container .select2-selection__placeholder { color: #8190a3; }
.ps-admin-layout:not(.ps-admin-dashboard-layout) .ps-searchable-select + .select2-container .select2-selection__arrow {
    top: 1px;
    right: 2px;
    width: 34px;
    height: 39px;
}
.ps-admin-layout:not(.ps-admin-dashboard-layout) .ps-searchable-select + .select2-container .select2-selection__arrow b {
    border-top-color: #65778d;
    border-width: 5px 4px 0;
}
.ps-admin-layout:not(.ps-admin-dashboard-layout) .ps-searchable-select + .select2-container.select2-container--focus .select2-selection--single,
.ps-admin-layout:not(.ps-admin-dashboard-layout) .ps-searchable-select + .select2-container.select2-container--open .select2-selection--single {
    border-color: #49b98a;
    box-shadow: 0 0 0 3px rgba(6,169,101,.1);
}
.ps-admin-layout:not(.ps-admin-dashboard-layout) .ps-searchable-select + .select2-container.select2-container--disabled .select2-selection--single {
    background: #f3f6f8;
    color: #8a98a9;
}
.select2-dropdown.ps-admin-select-dropdown {
    overflow: hidden;
    border: 1px solid #d5dce5;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(20,48,76,.14);
    font-family: Montserrat, Arial, sans-serif;
}
.select2-dropdown.ps-admin-select-dropdown .select2-search--dropdown { padding: 8px; }
.select2-dropdown.ps-admin-select-dropdown .select2-search__field {
    box-sizing: border-box;
    height: 36px;
    padding: 7px 10px;
    border: 1px solid #d5dce5;
    border-radius: 7px;
    outline: 0;
    color: #263d59;
    font-size: 12px;
}
.select2-dropdown.ps-admin-select-dropdown .select2-search__field:focus {
    border-color: #49b98a;
    box-shadow: 0 0 0 3px rgba(6,169,101,.08);
}
.select2-dropdown.ps-admin-select-dropdown .select2-results__options { max-height: 220px; }
.select2-dropdown.ps-admin-select-dropdown .select2-results__option {
    padding: 8px 11px;
    color: #344b66;
    font-size: 12px;
    line-height: 1.35;
}
.select2-dropdown.ps-admin-select-dropdown .select2-results__option[aria-selected="true"] {
    background: #edf8f3;
    color: #087449;
}
.select2-dropdown.ps-admin-select-dropdown .select2-results__option--highlighted[aria-selected] {
    background: #0b8d5b;
    color: #fff;
}

.ps-detail-loading,
.ps-detail-error {
    display: flex;
    min-height: 180px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: .8rem;
    color: #526174;
    text-align: center;
}

.ps-detail-loading .spinner-border { width: 2rem; height: 2rem; }
.ps-detail-error .fa { color: #dc3545; font-size: 2rem; }
.ps-detail-error p { margin: 0; color: #334155; }

.ps-detail-section + .ps-detail-section { margin-top: 1.5rem; }
.ps-detail-section-title { margin: 0 0 1rem; color: #10233f; font-size: 1rem; font-weight: 700; }
.ps-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem 1rem; }
.ps-detail-item { min-width: 0; padding: .9rem 1rem; border: 1px solid #e7edf3; border-radius: 10px; background: #f8fafc; }
.ps-detail-label { display: block; margin-bottom: .3rem; color: #64748b; font-size: .72rem; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
.ps-detail-value { display: block; overflow-wrap: anywhere; color: #172033; font-weight: 600; }
.ps-modal-detail-content .ps-page-header,
.ps-modal-detail-content > .card-title { display: none; }
.ps-modal-detail-content .ps-table-card,
.ps-modal-detail-content .card-body { padding: 0; border: 0; box-shadow: none; }
.ps-modal-detail-content .ps-table-wrap { margin: 0; overflow-x: auto; }
.ps-modal-detail-content img { max-width: 100%; height: auto; max-height: 420px; object-fit: contain; }

@media (max-width: 575.98px) {
    .ps-detail-modal .modal-body { padding: 1rem; }
    .ps-detail-grid { grid-template-columns: 1fr; }
}
