/*
 * Prime Lock design system shared by every administration and retailer screen.
 */
:root {
    --ssk-navy: #062b58;
    --ssk-navy-2: #0c4778;
    --ssk-primary: #0c4778;
    --ssk-primary-dark: #062b58;
    --ssk-primary-soft: #eef6fb;
    --ssk-accent: #75d117;
    --ssk-accent-dark: #57a80b;
    --ssk-accent-soft: #f1fbe8;
    --ssk-canvas: #f6f8fc;
    --ssk-surface: #ffffff;
    --ssk-text: #071d3a;
    --ssk-muted: #64758b;
    --ssk-border: #e5ebf3;
    --ssk-success: #198754;
    --ssk-danger: #d93652;
    --ssk-warning: #d9820b;
    --ssk-radius: 18px;
    --ssk-shadow: 0 12px 34px rgba(6, 43, 88, .09);
}

html, body { font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif !important; }
body, #main-content, .wrapper, .form-body, .table-agile-info { background: var(--ssk-canvas) !important; }
#main-content { min-height: 100vh; }
.wrapper { padding: 24px !important; }
.form-w3layouts, .table-agile-info { max-width: 1600px; margin-right: auto !important; margin-left: auto !important; }
.form-w3layouts + .table-agile-info { margin-top: 18px !important; }
.form-w3layouts .panel, .table-agile-info .panel { margin-bottom: 0 !important; }

.panel, .card, .well, .modal-content, .table-agile-info .panel {
    overflow: hidden;
    border: 1px solid var(--ssk-border) !important;
    border-radius: var(--ssk-radius) !important;
    background: var(--ssk-surface) !important;
    box-shadow: var(--ssk-shadow) !important;
}
.panel-heading, .table-agile-info .panel-heading {
    min-height: 54px;
    padding: 16px 20px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--ssk-border) !important;
    border-left: 4px solid var(--ssk-accent) !important;
    background: var(--ssk-surface) !important;
    color: var(--ssk-text) !important;
    font-size: 17px !important;
    font-weight: 750 !important;
    letter-spacing: -.01em;
}
.panel-body { padding: 22px !important; }
.panel-body > form > .row { display: flex; flex-wrap: wrap; align-items: flex-end; row-gap: 4px; }
.panel-body > form > .row:before, .panel-body > form > .row:after { display: none !important; }
.panel-footer {
    padding: 13px 20px !important;
    border-top: 1px solid var(--ssk-border) !important;
    background: #fbfcff !important;
}

.form-group label { margin-bottom: 8px; color: #34415f; font-size: 13px; font-weight: 700; }
.form-control, .select2-container .select2-choice, .select2-container--default .select2-selection--single {
    min-height: 42px !important;
    border: 1px solid #d9e2f0 !important;
    border-radius: 9px !important;
    background: #fff !important;
    color: var(--ssk-text) !important;
    box-shadow: none !important;
}
.form-control { padding: 9px 12px !important; }
.form-control:focus, .select2-container-active .select2-choice {
    border-color: var(--ssk-primary) !important;
    box-shadow: 0 0 0 3px rgba(40, 89, 232, .12) !important;
}
.form-control::placeholder { color: #8b97ad !important; opacity: 1; }

.btn {
    min-height: 40px;
    padding: 9px 16px !important;
    border-radius: 9px !important;
    box-shadow: none !important;
    font-size: 13px !important;
    font-weight: 750 !important;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease !important;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(19, 47, 106, .12) !important; }
.btn-primary, .btn-info { border-color: var(--ssk-primary) !important; background: var(--ssk-primary) !important; }
.btn-primary:hover, .btn-info:hover { border-color: var(--ssk-primary-dark) !important; background: var(--ssk-primary-dark) !important; }
.btn-success { border-color: var(--ssk-success) !important; background: var(--ssk-success) !important; }
.btn-danger { border-color: var(--ssk-danger) !important; background: var(--ssk-danger) !important; }
.btn-warning { border-color: var(--ssk-warning) !important; background: var(--ssk-warning) !important; color: #fff !important; }
.btn-default { border-color: #d9e2f0 !important; background: #fff !important; color: #26334f !important; }

.table-responsive { border: 0 !important; }
.table { margin-bottom: 0 !important; background: #fff !important; }
.table > thead > tr > th {
    padding: 13px 14px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--ssk-border) !important;
    background: #f3f6fc !important;
    color: #43506c !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: .025em;
    vertical-align: middle !important;
}
.table > tbody > tr > td {
    padding: 14px !important;
    border-color: #e9eef6 !important;
    color: #26324b !important;
    vertical-align: middle !important;
}
.table td .btn-sm, .table td .btn-xs { min-height: 32px; padding: 6px 10px !important; }
.table td img { border-radius: 9px; }
.table td .label { display: inline-flex; align-items: center; min-height: 25px; padding: 5px 9px; border-radius: 20px; }
.table-striped > tbody > tr:nth-of-type(odd) { background: #fbfcff !important; }
.table-hover > tbody > tr:hover { background: #f3f7ff !important; }

.modal-header { padding: 18px 22px !important; }
.modal-title { color: var(--ssk-text) !important; font-weight: 800 !important; }
.modal-body { padding: 22px !important; }
.modal-footer { padding: 14px 22px !important; }
.alert { border-radius: 10px !important; }
.nav-tabs { padding: 0 14px; background: #fbfcff; }
.nav-tabs > li > a { margin: 8px 3px 0; border-radius: 9px 9px 0 0 !important; font-weight: 700; }
.nav-tabs > li.active > a { color: var(--ssk-primary) !important; }
.input-group .form-control:first-child { border-radius: 9px 0 0 9px !important; }
.input-group-btn:last-child > .btn { border-radius: 0 9px 9px 0 !important; }
.control-label, .help-block { color: var(--ssk-muted) !important; }
.close { color: var(--ssk-text) !important; opacity: .65 !important; }
.dataTables_wrapper .dataTables_filter input, .dataTables_wrapper .dataTables_length select {
    min-height: 38px; border: 1px solid #d9e2f0; border-radius: 8px; background: #fff;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    border-color: var(--ssk-primary) !important; border-radius: 7px !important; background: var(--ssk-primary) !important; color: #fff !important;
}
.pagination > li > a, .pagination > li > span { border-color: var(--ssk-border) !important; color: var(--ssk-primary) !important; }
.pagination > .active > a, .pagination > .active > span { border-color: var(--ssk-primary) !important; background: var(--ssk-primary) !important; color: #fff !important; }

.ssk-page { max-width: 1600px; margin: 0 auto; }
.ssk-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 2px 0 20px; }
.ssk-page-heading h1 { margin: 3px 0 5px; color: var(--ssk-text); font-size: 28px; font-weight: 800; letter-spacing: -.025em; }
.ssk-page-heading p { margin: 0; color: var(--ssk-muted); font-size: 14px; }
.ssk-eyebrow { color: var(--ssk-primary); font-size: 11px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.ssk-heading-icon { display: grid; width: 50px; height: 50px; place-items: center; border-radius: 14px; background: var(--ssk-primary-soft); color: var(--ssk-primary); font-size: 20px; }
.ssk-filter-card { margin-bottom: 18px !important; }
.ssk-filter-grid { display: grid; grid-template-columns: 1.1fr 1.1fr .8fr .8fr auto; align-items: end; gap: 14px; }
.ssk-filter-grid .form-group { margin: 0; }
.ssk-filter-actions { display: flex; gap: 8px; padding-bottom: 1px; }
.ssk-table-card .panel-heading { display: flex; align-items: center; justify-content: space-between; }
.ssk-result-count { padding: 5px 10px; border-radius: 20px; background: var(--ssk-primary-soft); color: var(--ssk-primary); font-size: 12px; }
.ssk-ledger-table .text-nowrap { white-space: nowrap; }
.ssk-amount { font-size: 14px; font-weight: 800; }
.ssk-amount.debit { color: var(--ssk-danger); }
.ssk-amount.credit { color: var(--ssk-success); }
.ssk-chip { display: inline-flex; padding: 5px 9px; border-radius: 20px; background: var(--ssk-primary-soft); color: var(--ssk-primary); font-size: 11px; font-weight: 800; }
.ssk-chip.success { background: #e8f8f2; color: var(--ssk-success); }
.ssk-chip.warning { background: #fff5e4; color: #b76c00; }
.ssk-empty-state { padding: 50px 20px !important; text-align: center; }
.ssk-empty-state i, .ssk-empty-state strong, .ssk-empty-state span { display: block; }
.ssk-empty-state i { margin-bottom: 10px; color: #b2bdd1; font-size: 30px; }
.ssk-empty-state strong { color: var(--ssk-text); font-size: 16px; }
.ssk-empty-state span { margin-top: 4px; color: var(--ssk-muted); }
.ssk-table-footer { display: flex; align-items: center; justify-content: space-between; color: var(--ssk-muted); }

@media (max-width: 1100px) {
    .ssk-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ssk-filter-actions { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
    .wrapper { padding: 15px !important; }
    .ssk-page-heading h1 { font-size: 23px; }
    .ssk-page-heading p { display: none; }
    .ssk-filter-grid { grid-template-columns: 1fr; }
    .ssk-filter-actions { grid-column: auto; }
    .ssk-filter-actions .btn { flex: 1; }
    .ssk-table-footer { align-items: flex-start; flex-direction: column; gap: 8px; }
    .panel-body { padding: 16px !important; }
    .panel-body > form > .row { display: block; }
    .table > thead > tr > th, .table > tbody > tr > td { padding: 11px !important; }
}

/* Standalone administration tools (QR and banner managers). */
body.ssk-standalone {
    min-height: 100vh;
    padding: 24px !important;
    background: var(--ssk-canvas) !important;
    color: var(--ssk-text) !important;
}
body.ssk-standalone > .container {
    padding: 24px !important;
    border: 1px solid var(--ssk-border) !important;
    border-radius: var(--ssk-radius) !important;
    background: #fff !important;
    box-shadow: var(--ssk-shadow) !important;
}
body.ssk-standalone > .container > h1:first-child,
body.ssk-standalone > .container > h2:first-child {
    margin-top: 0 !important;
    color: var(--ssk-text) !important;
    font-weight: 900 !important;
    letter-spacing: -.025em;
}
body.ssk-standalone > .container > h1:first-child::before,
body.ssk-standalone > .container > h2:first-child::before {
    display: block;
    width: 76px;
    height: 76px;
    margin: 0 auto 14px;
    border: 4px solid #fff;
    border-radius: 18px;
    background: #fff url("../images/brand/prime-lock-logo.png") center/cover no-repeat;
    content: "";
    box-shadow: 0 10px 25px rgba(6,43,88,.16);
}
body.ssk-standalone form,
body.ssk-standalone .table-container,
body.ssk-standalone .bg-white {
    border: 1px solid var(--ssk-border) !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 10px 28px rgba(6,43,88,.07) !important;
}
body.ssk-standalone > .container > header {
    border-radius: var(--ssk-radius) var(--ssk-radius) 0 0;
    background: linear-gradient(135deg, var(--ssk-navy), var(--ssk-navy-2)) !important;
}
body.ssk-standalone button[type="submit"], body.ssk-standalone input[type="submit"] {
    border-color: var(--ssk-primary) !important;
    background-color: var(--ssk-primary) !important;
}
body.ssk-standalone table { border-color: var(--ssk-border) !important; }
body.ssk-standalone thead { background: #f3f6fc !important; }

/* Prime Lock application shell */
html { background: var(--ssk-canvas); }
body { overflow-x: hidden; color: var(--ssk-text) !important; }
.header {
    height: 64px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(6, 43, 88, .08) !important;
    background: rgba(255, 255, 255, .96) !important;
    box-shadow: 0 7px 24px rgba(6, 43, 88, .07) !important;
    backdrop-filter: blur(14px);
}
.brand {
    width: 240px !important;
    height: 64px !important;
    background: var(--ssk-navy) !important;
}
.brand .logo {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    height: 64px !important;
    padding: 7px 13px !important;
    color: #fff !important;
    text-decoration: none !important;
}
.brand .logo img {
    width: 48px !important;
    height: 48px !important;
    flex: 0 0 48px;
    border: 3px solid rgba(255, 255, 255, .92);
    border-radius: 14px;
    background: #fff;
    object-fit: cover !important;
    box-shadow: 0 5px 16px rgba(0, 0, 0, .2);
}
.brand .logo p {
    overflow: hidden;
    margin: 0 !important;
    color: #fff !important;
    font-size: 19px !important;
    font-weight: 850 !important;
    letter-spacing: -.02em !important;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}
.sidebar-toggle-box {
    top: 12px !important;
    width: 40px;
    height: 40px;
    padding: 11px 0 !important;
    border-radius: 12px !important;
    background: var(--ssk-accent) !important;
    color: var(--ssk-navy) !important;
    box-shadow: 0 7px 17px rgba(117, 209, 23, .28) !important;
}
.sidebar-toggle-box .fa { color: var(--ssk-navy) !important; }
.sidebar-toggle-box:hover { background: #8be42d !important; }
#sidebar {
    top: 64px !important;
    width: 240px !important;
    background:
        radial-gradient(circle at 18% 8%, rgba(117, 209, 23, .18), transparent 23%),
        linear-gradient(180deg, var(--ssk-navy) 0%, #041c3b 100%) !important;
    box-shadow: 10px 0 30px rgba(6, 43, 88, .1);
}
.leftside-navigation, ul.sidebar-menu { background: transparent !important; }
ul.sidebar-menu { padding: 13px 0 28px !important; }
ul.sidebar-menu li { border: 0 !important; }
ul.sidebar-menu li a {
    display: flex !important;
    align-items: center;
    min-height: 44px;
    margin: 4px 11px !important;
    padding: 10px 13px !important;
    border: 1px solid transparent !important;
    border-radius: 12px !important;
    background: transparent !important;
    color: #c8d6e8 !important;
    font-weight: 650 !important;
    transition: transform .17s ease, background-color .17s ease, color .17s ease !important;
}
ul.sidebar-menu li a i {
    width: 24px !important;
    margin-right: 8px !important;
    color: #91a8c6 !important;
    font-size: 16px !important;
    text-align: center;
}
ul.sidebar-menu li a:hover,
ul.sidebar-menu li a:focus {
    border-color: rgba(117, 209, 23, .2) !important;
    background: rgba(255, 255, 255, .08) !important;
    color: #fff !important;
    transform: translateX(2px);
}
ul.sidebar-menu li a.active {
    border-color: rgba(117, 209, 23, .5) !important;
    background: linear-gradient(135deg, rgba(117, 209, 23, .23), rgba(117, 209, 23, .09)) !important;
    color: #fff !important;
    box-shadow: inset 3px 0 0 var(--ssk-accent), 0 7px 20px rgba(0, 0, 0, .11);
}
ul.sidebar-menu li a.active i,
ul.sidebar-menu li a:hover i { color: var(--ssk-accent) !important; }
ul.sidebar-menu li ul.sub { padding: 4px 0 5px !important; background: rgba(0, 0, 0, .1) !important; }
ul.sidebar-menu li ul.sub li a { min-height: 36px; padding-left: 45px !important; color: #b9cae0 !important; }
.top-nav { height: 64px !important; padding: 12px 18px 0 0 !important; }
.top-nav .top-menu { display: flex; align-items: center; gap: 7px; }
.top-nav ul.top-menu > li > a.dropdown-toggle {
    display: flex !important;
    align-items: center;
    min-height: 40px;
    gap: 8px;
    padding: 3px 13px 3px 4px !important;
    border: 1px solid var(--ssk-border) !important;
    border-radius: 24px !important;
    background: #fff !important;
    color: var(--ssk-text) !important;
    box-shadow: 0 4px 14px rgba(6, 43, 88, .06);
}
.top-nav ul.top-menu > li > a.dropdown-toggle img { width: 32px !important; height: 32px !important; border: 2px solid var(--ssk-accent); object-fit: cover; }
.top-nav .username, .top-nav .caret { color: var(--ssk-text) !important; }
.top-nav .search {
    width: 40px;
    height: 40px;
    padding-left: 36px !important;
    border: 1px solid var(--ssk-border) !important;
    border-radius: 22px !important;
    background-color: var(--ssk-primary-soft) !important;
    color: var(--ssk-text) !important;
}
.top-nav .search:focus { width: 230px; border-color: var(--ssk-primary) !important; background-color: #fff !important; box-shadow: 0 0 0 4px rgba(12, 71, 120, .11) !important; }
.ssk-language-item { padding: 0 3px !important; }
.ssk-language-selector {
    width: auto !important;
    min-width: 126px !important;
    height: 40px !important;
    padding: 7px 29px 7px 12px !important;
    border: 1px solid var(--ssk-border) !important;
    border-radius: 22px !important;
    background: #fff !important;
    color: var(--ssk-text) !important;
    font-weight: 700 !important;
}
.dropdown-menu { padding: 7px !important; border: 1px solid var(--ssk-border) !important; border-radius: 13px !important; box-shadow: 0 16px 38px rgba(6, 43, 88, .16) !important; }
.dropdown-menu > li > a { padding: 9px 12px !important; border-radius: 8px; }
#main-content { min-height: 100vh; margin-left: 240px !important; padding-top: 64px !important; background: var(--ssk-canvas) !important; }
.wrapper { padding: 24px 26px 30px !important; }
.footer { margin-top: 28px !important; border-top: 1px solid var(--ssk-border) !important; background: #fff !important; color: var(--ssk-muted) !important; }
.footer a { color: var(--ssk-primary) !important; }

/* Surfaces and reusable controls */
.panel, .card, .well, .modal-content, .widget-shadow, .stats-info {
    border: 1px solid rgba(221, 230, 240, .95) !important;
    border-radius: var(--ssk-radius) !important;
    background: var(--ssk-surface) !important;
    box-shadow: var(--ssk-shadow) !important;
}
.panel { margin-bottom: 22px !important; overflow: visible; }
.table-agile-info .panel, .modal-content { overflow: hidden; }
.panel-heading, .table-agile-info .panel-heading, .modal-header {
    min-height: 58px;
    padding: 17px 21px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--ssk-border) !important;
    border-left: 4px solid var(--ssk-accent) !important;
    border-radius: var(--ssk-radius) var(--ssk-radius) 0 0 !important;
    background: linear-gradient(90deg, var(--ssk-accent-soft), #fff 34%) !important;
    color: var(--ssk-text) !important;
    font-size: 17px !important;
    font-weight: 850 !important;
}
.panel-body { padding: 22px !important; }
.form-group { margin-bottom: 17px !important; }
.form-group label { display: block; margin-bottom: 7px; color: #32465e; font-size: 12px; font-weight: 800; letter-spacing: .01em; }
.form-control, select.form-control, textarea.form-control,
.select2-container .select2-choice, .select2-container--default .select2-selection--single {
    min-height: 44px !important;
    border: 1px solid #d8e1ec !important;
    border-radius: 11px !important;
    background: #fff !important;
    color: var(--ssk-text) !important;
    box-shadow: none !important;
}
.form-control:focus, select.form-control:focus, textarea.form-control:focus {
    border-color: var(--ssk-primary) !important;
    box-shadow: 0 0 0 4px rgba(12, 71, 120, .11) !important;
}
.input-group-addon { border-color: #d8e1ec !important; background: #f4f7fb !important; color: var(--ssk-primary) !important; }
.btn {
    min-height: 42px;
    padding: 9px 16px !important;
    border-radius: 11px !important;
    font-weight: 800 !important;
    transition: transform .15s ease, box-shadow .15s ease !important;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(6, 43, 88, .13) !important; }
.btn-primary, .btn-info { border-color: var(--ssk-primary) !important; background: var(--ssk-primary) !important; color: #fff !important; }
.btn-primary:hover, .btn-info:hover { border-color: var(--ssk-navy) !important; background: var(--ssk-navy) !important; }
.btn-success { border-color: var(--ssk-accent-dark) !important; background: var(--ssk-accent-dark) !important; color: #fff !important; }
.btn-warning { border-color: #dce9ce !important; background: var(--ssk-accent-soft) !important; color: #337a00 !important; }
.btn-danger { border-color: var(--ssk-danger) !important; background: var(--ssk-danger) !important; color: #fff !important; }
.btn-default { border-color: #d8e1ec !important; background: #fff !important; color: var(--ssk-text) !important; }
.table-responsive { border: 0 !important; border-radius: 0 0 var(--ssk-radius) var(--ssk-radius); }
.table > thead > tr > th {
    padding: 13px 14px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--ssk-border) !important;
    background: #f1f6fa !important;
    color: #40546a !important;
    font-size: 11px !important;
    font-weight: 850 !important;
    letter-spacing: .045em;
    text-transform: uppercase;
    vertical-align: middle !important;
}
.table > tbody > tr > td { padding: 14px !important; border-color: #e8edf4 !important; color: #263b52 !important; vertical-align: middle !important; }
.table-striped > tbody > tr:nth-of-type(odd) { background: #fbfcfe !important; }
.table-hover > tbody > tr:hover { background: var(--ssk-accent-soft) !important; }
.pagination > .active > a, .pagination > .active > span { border-color: var(--ssk-primary) !important; background: var(--ssk-primary) !important; }
.pagination > li > a, .pagination > li > span { color: var(--ssk-primary) !important; }
.nav-tabs { border-color: var(--ssk-border) !important; }
.nav-tabs > li > a { border-radius: 11px 11px 0 0 !important; color: var(--ssk-muted) !important; font-weight: 700; }
.nav-tabs > li.active > a, .nav-tabs > li.active > a:hover { color: var(--ssk-primary) !important; font-weight: 850 !important; }
.alert { border-radius: 12px !important; }
.alert-info { border-color: #d7e7f2 !important; background: var(--ssk-primary-soft) !important; color: var(--ssk-primary-dark) !important; }
.label, .badge { border-radius: 20px !important; }
.label-primary, .badge-primary { background: var(--ssk-primary) !important; }
.label-success, .badge-success { background: var(--ssk-success) !important; }
.label-danger, .badge-danger { background: var(--ssk-danger) !important; }
.modal-backdrop.in { opacity: .58 !important; }
.modal-content { border: 0 !important; box-shadow: 0 26px 70px rgba(3, 25, 52, .28) !important; }

/* Legacy dashboard upgraded without changing its data contract. */
.market-updates > .row > .panel-body { padding: 0 !important; background: transparent !important; }
.market-updates .img-fluid { width: 100%; min-height: 315px; max-height: 430px; border-radius: 22px; object-fit: cover; box-shadow: var(--ssk-shadow); }
.market-update-gd { padding-top: 0 !important; padding-bottom: 14px; }
.market-update-block {
    min-height: 126px;
    padding: 20px 14px !important;
    border: 1px solid var(--ssk-border) !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: var(--ssk-shadow) !important;
}
.market-update-block .market-update-right i {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 16px;
    background: var(--ssk-accent-soft);
    color: var(--ssk-accent-dark) !important;
    font-size: 23px !important;
}
.market-update-block h4 { color: var(--ssk-muted) !important; font-size: 13px !important; font-weight: 750 !important; }
.market-update-block h3 { margin-top: 8px !important; color: var(--ssk-text) !important; font-size: 29px !important; font-weight: 900 !important; }
.agileits-w3layouts-stats { display: flex; flex-wrap: wrap; margin-top: 22px; gap: 18px 0; }
.stats-info { padding: 20px !important; }
.stats-last-agile h4 { color: var(--ssk-text) !important; font-weight: 850 !important; }
.prime-admin-hero {
    position: relative;
    display: flex;
    min-height: 315px;
    overflow: hidden;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: clamp(25px, 4vw, 48px);
    border-radius: 22px;
    background:
        radial-gradient(circle at 88% 12%, rgba(117,209,23,.24), transparent 27%),
        linear-gradient(135deg, #041c3b, var(--ssk-navy) 58%, var(--ssk-navy-2));
    box-shadow: 0 18px 42px rgba(6,43,88,.2);
}
.prime-admin-hero::after { position: absolute; right: -60px; bottom: -95px; width: 260px; height: 260px; border: 1px solid rgba(117,209,23,.24); border-radius: 50%; content: ""; box-shadow: 0 0 0 40px rgba(117,209,23,.05); }
.prime-admin-hero-copy { position: relative; z-index: 1; max-width: 440px; }
.prime-admin-hero-copy > span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 20px; background: rgba(117,209,23,.12); color: #dfffc2; font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.prime-admin-hero h1 { margin: 18px 0 12px; color: #fff !important; font-size: clamp(27px, 3vw, 43px); font-weight: 900; letter-spacing: -.04em; line-height: 1.08; }
.prime-admin-hero h1 em { color: var(--ssk-accent); font-style: normal; }
.prime-admin-hero p { max-width: 430px; margin: 0; color: #c7d7e9; font-size: 13px; line-height: 1.65; }
.prime-admin-hero > img { position: relative; z-index: 1; width: min(36%, 180px); border: 6px solid rgba(255,255,255,.95); border-radius: 26px; background: #fff; box-shadow: 0 16px 35px rgba(0,0,0,.24); }

body.ssk-standalone > .container > header::before {
    display: block;
    width: 72px;
    height: 72px;
    margin: 0 auto 10px;
    border: 4px solid rgba(255,255,255,.92);
    border-radius: 18px;
    background: #fff url("../images/brand/prime-lock-logo.png") center/cover no-repeat;
    content: "";
    box-shadow: 0 10px 24px rgba(0,0,0,.2);
}

/* Prime Lock retailer and finance workspaces */
.rd { --navy: var(--ssk-navy) !important; --blue: var(--ssk-primary) !important; --green: var(--ssk-accent-dark) !important; --ink: var(--ssk-text) !important; --muted: var(--ssk-muted) !important; --line: var(--ssk-border) !important; background: var(--ssk-canvas) !important; }
.rd-card, .rd-panel { border-color: var(--ssk-border) !important; border-radius: 18px !important; box-shadow: var(--ssk-shadow) !important; }
.rd-icon, .rd-activity i { background: var(--ssk-primary-soft) !important; color: var(--ssk-primary) !important; }
.rd-card.green .rd-icon { background: var(--ssk-accent-soft) !important; color: var(--ssk-accent-dark) !important; }
.rd-credit { background: linear-gradient(135deg, var(--ssk-navy), var(--ssk-navy-2) 68%, #1c6e4a) !important; }
.rd-btn.primary { border-color: var(--ssk-navy) !important; background: var(--ssk-navy) !important; }
.rd-btn.green { border-color: var(--ssk-accent-dark) !important; color: #337a00 !important; }
.rd-quick a:hover, .rd-quick button:hover { border-color: var(--ssk-accent) !important; background: var(--ssk-accent-soft) !important; text-decoration: none; }
#retailer-controls.rc-shell { --red: var(--ssk-primary) !important; --ink: var(--ssk-text) !important; --muted: var(--ssk-muted) !important; --line: var(--ssk-border) !important; border: 1px solid var(--ssk-border); background: var(--ssk-canvas) !important; box-shadow: var(--ssk-shadow) !important; }
#retailer-controls .rc-header { background: linear-gradient(135deg, var(--ssk-navy), var(--ssk-navy-2)) !important; }
#retailer-controls .rc-tab.active { background: var(--ssk-primary) !important; color: #fff !important; }
#retailer-controls .rc-action.primary { background: var(--ssk-primary) !important; }
#retailer-controls .rc-last-command { border-color: #d7e7f2 !important; background: var(--ssk-primary-soft) !important; color: var(--ssk-primary-dark) !important; }
.fin-bar { background: linear-gradient(180deg, var(--ssk-accent), var(--ssk-accent-dark)) !important; }
.fin-nav a.active { border-color: var(--ssk-primary) !important; background: var(--ssk-primary) !important; color: #fff !important; }
.fin-card, .fin-panel { border-color: var(--ssk-border) !important; border-radius: 18px !important; box-shadow: var(--ssk-shadow) !important; }
.qr-manager { background: var(--ssk-canvas) !important; }
.qr-form, .qr-card { border-color: var(--ssk-border) !important; border-radius: 18px !important; box-shadow: var(--ssk-shadow) !important; }
.qr-submit { background: var(--ssk-primary) !important; }

/* Password login and the rest of the authentication screens. */
body.login { margin: 0; }
.prime-auth-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(390px, .93fr) minmax(520px, 1.07fr); background: #fff; }
.prime-auth-visual { position: relative; display: flex; overflow: hidden; align-items: center; justify-content: center; padding: 58px; background: linear-gradient(145deg, #041c3b 0%, var(--ssk-navy) 48%, var(--ssk-navy-2) 100%); color: #fff; }
.prime-auth-visual::before { position: absolute; top: -110px; right: -95px; width: 360px; height: 360px; border: 1px solid rgba(117, 209, 23, .23); border-radius: 50%; content: ""; box-shadow: 0 0 0 48px rgba(117, 209, 23, .045), 0 0 0 96px rgba(117, 209, 23, .025); }
.prime-auth-visual::after { position: absolute; right: -22%; bottom: -32%; width: 86%; height: 55%; border-radius: 50% 50% 0 0; background: rgba(117, 209, 23, .1); content: ""; transform: rotate(-9deg); }
.prime-auth-pattern { position: absolute; inset: 0; opacity: .16; background-image: radial-gradient(rgba(255,255,255,.65) 1px, transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(to bottom right, #000, transparent 70%); }
.prime-auth-brand { position: relative; z-index: 1; width: min(100%, 540px); }
.prime-auth-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border: 1px solid rgba(117, 209, 23, .35); border-radius: 22px; background: rgba(117, 209, 23, .1); color: #dfffc3; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.prime-auth-logo { display: block; width: 255px; max-width: 66%; margin: 30px 0 26px; border: 7px solid rgba(255,255,255,.94); border-radius: 34px; background: #fff; box-shadow: 0 22px 48px rgba(0,0,0,.25); }
.prime-auth-brand h1 { margin: 0; color: #fff; font-size: clamp(34px, 4vw, 56px); font-weight: 900; letter-spacing: -.045em; line-height: 1.04; }
.prime-auth-brand h1 span { color: var(--ssk-accent); }
.prime-auth-brand > p { max-width: 540px; margin: 20px 0 0; color: #c8d8eb; font-size: 16px; line-height: 1.7; }
.prime-auth-benefits { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.prime-auth-benefits span { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 11px; background: rgba(255,255,255,.07); color: #eaf2fb; font-size: 12px; font-weight: 700; }
.prime-auth-benefits i { color: var(--ssk-accent); }
.prime-auth-form-side { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: 80px max(40px, 8vw) 32px; background: radial-gradient(circle at 100% 0, var(--ssk-accent-soft), transparent 32%), #fff; }
.prime-auth-topbar { position: absolute; top: 24px; right: 30px; display: flex; align-items: center; gap: 16px; }
.prime-auth-mobile-brand { display: none; align-items: center; gap: 9px; color: var(--ssk-navy); font-weight: 900; }
.prime-auth-mobile-brand img { width: 42px; height: 42px; border-radius: 11px; object-fit: cover; }
.prime-language { min-width: 138px; height: 42px; padding: 7px 31px 7px 12px; border: 1px solid var(--ssk-border); border-radius: 22px; background: #fff; color: var(--ssk-text); font-weight: 750; outline: 0; }
.prime-login-card { width: 100%; max-width: 510px; margin: auto; }
.prime-login-heading { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 30px; }
.prime-login-icon { display: grid; width: 52px; height: 52px; flex: 0 0 52px; place-items: center; border-radius: 16px; background: var(--ssk-accent-soft); color: var(--ssk-accent-dark); font-size: 21px; box-shadow: 0 8px 20px rgba(117,209,23,.15); }
.prime-eyebrow { margin: 1px 0 5px !important; color: var(--ssk-accent-dark) !important; font-size: 11px !important; font-weight: 900 !important; letter-spacing: .11em; text-transform: uppercase; }
.prime-login-heading h2 { margin: 0 0 7px; color: var(--ssk-text); font-size: clamp(28px, 3vw, 38px); font-weight: 900; letter-spacing: -.035em; }
.prime-login-heading p { margin: 0; color: var(--ssk-muted); font-size: 14px; line-height: 1.55; }
.prime-auth-alert { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; padding: 13px 15px; border: 1px solid #f1c8d1; border-radius: 12px; background: #fff4f6; color: #a71935; font-size: 13px; font-weight: 700; }
.prime-auth-alert i { margin-top: 2px; }
.prime-auth-success { border-color: #cce9d7; background: #f0fbf4; color: #087a36; }
.prime-user-summary { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding: 12px; border: 1px solid var(--ssk-border); border-radius: 14px; background: #f8fafc; }
.prime-user-summary img { width: 44px; height: 44px; border: 2px solid var(--ssk-accent); border-radius: 13px; object-fit: cover; }
.prime-user-summary strong, .prime-user-summary span { display: block; }
.prime-user-summary strong { color: var(--ssk-text); }
.prime-user-summary span { margin-top: 2px; color: var(--ssk-muted); font-size: 12px; }
.prime-field { margin-bottom: 18px; }
.prime-field > label { display: block; margin-bottom: 8px; color: var(--ssk-text); font-size: 13px; font-weight: 850; }
.prime-input-wrap { position: relative; display: flex; align-items: center; }
.prime-input-wrap > i { position: absolute; left: 17px; z-index: 1; color: #7e8fa4; font-size: 15px; }
.prime-input-wrap input { width: 100%; height: 56px; padding: 0 48px; border: 1px solid #d8e2ed; border-radius: 14px; background: #fff; color: var(--ssk-text); font-size: 14px; font-weight: 650; outline: 0; transition: border-color .18s ease, box-shadow .18s ease; }
.prime-input-wrap input::placeholder { color: #91a0b1; font-weight: 500; }
.prime-input-wrap input:focus { border-color: var(--ssk-primary); box-shadow: 0 0 0 4px rgba(12,71,120,.11); }
.prime-password-wrap input { padding-right: 54px; }
.prime-password-wrap button { position: absolute; right: 8px; display: grid; width: 40px; height: 40px; place-items: center; border: 0; border-radius: 11px; background: transparent; color: #718398; cursor: pointer; }
.prime-password-wrap button:hover, .prime-password-wrap button:focus { background: var(--ssk-primary-soft); color: var(--ssk-primary); outline: 0; }
.prime-submit { display: flex; width: 100%; min-height: 56px; align-items: center; justify-content: center; gap: 12px; margin-top: 8px; border: 0; border-radius: 15px; background: linear-gradient(135deg, var(--ssk-navy), var(--ssk-navy-2)); color: #fff; font-size: 15px; font-weight: 900; cursor: pointer; box-shadow: 0 13px 27px rgba(6,43,88,.22); transition: transform .16s ease, box-shadow .16s ease; }
.prime-submit:hover, .prime-submit:focus { color: #fff; transform: translateY(-1px); box-shadow: 0 16px 31px rgba(6,43,88,.27); outline: 0; }
.prime-submit i { color: var(--ssk-accent); }
.prime-switch-account, .prime-register-copy { display: block; margin: 18px 0; color: var(--ssk-muted); font-size: 13px; text-align: center; }
.prime-switch-account, .prime-register-copy a { color: var(--ssk-primary); font-weight: 850; }
.prime-security-note { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding: 15px; border: 1px solid #dcebd0; border-radius: 14px; background: var(--ssk-accent-soft); }
.prime-security-note > span { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border-radius: 12px; background: #fff; color: var(--ssk-accent-dark); font-size: 17px; }
.prime-security-note strong, .prime-security-note small { display: block; }
.prime-security-note strong { color: var(--ssk-text); font-size: 12px; }
.prime-security-note small { margin-top: 3px; color: var(--ssk-muted); font-size: 11px; }
.prime-auth-footer { margin: 25px auto 0; color: #8796a8; font-size: 12px; text-align: center; }
.prime-auth-footer i { margin-right: 5px; color: var(--ssk-primary); }
.log-w3 { min-height: 100vh !important; padding: 6vh 15px !important; background: radial-gradient(circle at top left, rgba(117,209,23,.16), transparent 26%), linear-gradient(145deg, var(--ssk-navy), #041c3b) !important; }
.w3layouts-main { border: 1px solid rgba(255,255,255,.75) !important; border-radius: 22px !important; background: #fff !important; box-shadow: 0 25px 70px rgba(2,22,45,.3) !important; }
.ssk-language-floating { position: fixed !important; z-index: 10000 !important; top: 18px !important; right: 18px !important; width: auto !important; min-width: 135px !important; }

.ssk-rtl { direction: rtl; }
.ssk-rtl #sidebar { right: 0; left: auto; }
.ssk-rtl #main-content { margin-right: 240px !important; margin-left: 0 !important; }
.ssk-rtl .brand { float: right; }
.ssk-rtl .top-nav { float: left; }
.ssk-rtl .pull-right { float: left !important; }
.ssk-rtl .prime-input-wrap > i { right: 17px; left: auto; }
.ssk-rtl .prime-input-wrap input { padding-right: 48px; padding-left: 54px; }
.ssk-rtl .prime-password-wrap button { right: auto; left: 8px; }

@media (max-width: 991px) {
    .prime-auth-shell { grid-template-columns: 1fr; }
    .prime-auth-visual { display: none; }
    .prime-auth-form-side { min-height: 100vh; padding: 100px 24px 28px; }
    .prime-auth-topbar { top: 22px; right: 22px; left: 22px; justify-content: space-between; }
    .prime-auth-mobile-brand { display: flex; }
    .market-updates .img-fluid { margin-bottom: 20px; min-height: 250px; }
    .prime-admin-hero { margin-bottom: 20px; }
}
@media (max-width: 767px) {
    .brand { width: 100% !important; }
    .brand .logo { width: 190px !important; }
    #sidebar { width: 240px !important; }
    #main-content { margin-left: 0 !important; padding-top: 64px !important; }
    .wrapper { padding: 15px !important; }
    .top-nav { padding-right: 10px !important; }
    .top-nav .search, .top-nav .username { display: none !important; }
    .ssk-language-selector { min-width: 108px !important; }
    .panel-body { padding: 16px !important; }
    .panel-body > form > .row { display: block; }
    .agileits-w3layouts-stats { display: block; }
    .stats-info { margin-bottom: 15px; }
    .prime-auth-form-side { padding-right: 18px; padding-left: 18px; }
    .prime-login-heading { gap: 11px; }
    .prime-login-icon { width: 46px; height: 46px; flex-basis: 46px; }
    .prime-login-heading h2 { font-size: 27px; }
}
@media (max-width: 420px) {
    .prime-auth-mobile-brand span { display: none; }
    .prime-language { min-width: 118px; }
    .prime-login-heading { display: block; }
    .prime-login-icon { margin-bottom: 13px; }
    .prime-admin-hero > img { display: none; }
}

/* Admin-only website enquiry inbox. */
.contact-enquiries__heading { margin-bottom: 22px; }
.contact-enquiries__heading-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.contact-enquiries__back { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 8px; color: var(--ssk-primary); font-size: 13px; font-weight: 800; }
.contact-enquiries__back:hover { color: var(--ssk-navy); text-decoration: none; }
.contact-enquiries__alert { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; border: 1px solid transparent; }
.contact-enquiries__alert i { font-size: 17px; }
.contact-enquiries__metrics { display: grid; margin-bottom: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.contact-enquiries__metric {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 13px;
    padding: 17px;
    border: 1px solid var(--ssk-border);
    border-radius: 17px;
    background: #fff;
    color: var(--ssk-text);
    box-shadow: 0 9px 26px rgba(6, 43, 88, .07);
    transition: transform .17s ease, border-color .17s ease, box-shadow .17s ease;
}
.contact-enquiries__metric:hover, .contact-enquiries__metric:focus { border-color: #cbd9e9; color: var(--ssk-text); text-decoration: none; transform: translateY(-2px); box-shadow: 0 14px 32px rgba(6, 43, 88, .11); }
.contact-enquiries__metric-icon { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; border-radius: 13px; background: var(--ssk-primary-soft); color: var(--ssk-primary); font-size: 17px; }
.contact-enquiries__metric small, .contact-enquiries__metric strong { display: block; }
.contact-enquiries__metric small { overflow: hidden; color: var(--ssk-muted); font-size: 11px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.contact-enquiries__metric strong { margin-top: 3px; color: var(--ssk-text); font-size: 24px; font-weight: 900; line-height: 1; }
.contact-enquiries__metric--new .contact-enquiries__metric-icon { background: #fff6df; color: #b36a00; }
.contact-enquiries__metric--progress .contact-enquiries__metric-icon { background: #e9f2ff; color: #1768d5; }
.contact-enquiries__metric--resolved .contact-enquiries__metric-icon { background: #eaf9ef; color: var(--ssk-success); }
.contact-enquiries__filter-grid { display: grid; align-items: end; grid-template-columns: minmax(230px, 1.5fr) repeat(2, minmax(135px, .72fr)) repeat(2, minmax(145px, .72fr)) 96px auto; gap: 13px; }
.contact-enquiries__filter-grid .form-group { margin: 0; }
.contact-enquiries__filter-actions { display: flex; gap: 8px; }
.contact-enquiries__filter-actions .btn { white-space: nowrap; }
.contact-enquiries__input-icon { position: relative; }
.contact-enquiries__input-icon > i { position: absolute; z-index: 1; top: 50%; left: 14px; color: #8190a4; transform: translateY(-50%); }
.contact-enquiries__input-icon .form-control { padding-left: 39px !important; }
.contact-enquiries__table-card { margin-bottom: 0 !important; }
.contact-enquiries__table-card .table-responsive { overflow: visible; }
.contact-enquiries__table { table-layout: fixed; }
.contact-enquiries__table th:nth-child(1) { width: 20%; }
.contact-enquiries__table th:nth-child(2) { width: 14%; }
.contact-enquiries__table th:nth-child(3) { width: 23%; }
.contact-enquiries__table th:nth-child(4) { width: 10%; }
.contact-enquiries__table th:nth-child(5) { width: 12%; }
.contact-enquiries__table th:nth-child(6) { width: 13%; }
.contact-enquiries__table th:nth-child(7) { width: 8%; }
.contact-enquiries__unread { box-shadow: inset 3px 0 0 var(--ssk-accent); }
.contact-enquiries__unread > td { background: rgba(241, 251, 232, .45) !important; }
.contact-enquiries__visitor { display: flex; min-width: 0; align-items: center; gap: 10px; }
.contact-enquiries__avatar { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 12px; background: linear-gradient(135deg, var(--ssk-navy), var(--ssk-primary)); color: #fff; font-size: 14px; font-weight: 900; box-shadow: 0 6px 14px rgba(6, 43, 88, .17); }
.contact-enquiries__avatar--large { width: 52px; height: 52px; flex-basis: 52px; border-radius: 15px; font-size: 18px; }
.contact-enquiries__visitor > span:last-child { min-width: 0; }
.contact-enquiries__visitor strong, .contact-enquiries__visitor small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-enquiries__visitor strong { color: var(--ssk-text); font-size: 13px; }
.contact-enquiries__visitor small { margin-top: 2px; color: var(--ssk-muted); font-size: 11px; }
.contact-enquiries__topic { display: inline-flex; max-width: 100%; padding: 5px 9px; border: 1px solid #dce6f1; border-radius: 20px; background: #f7f9fc; color: #40546a; font-size: 11px; font-weight: 750; line-height: 1.2; }
.contact-enquiries__preview { display: -webkit-box; overflow: hidden; margin: 0; color: #4d6075; font-size: 12px; line-height: 1.48; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.contact-enquiries__badge { display: inline-flex; align-items: center; justify-content: center; min-height: 27px; padding: 5px 9px; border-radius: 20px; font-size: 10px; font-weight: 850; letter-spacing: .015em; line-height: 1.1; text-align: center; white-space: nowrap; }
.contact-enquiries__badge--status-new { background: #fff4d6; color: #996000; }
.contact-enquiries__badge--status-in_progress { background: #e7f1ff; color: #155ebc; }
.contact-enquiries__badge--status-resolved { background: #e6f7ed; color: #0b7a39; }
.contact-enquiries__badge--status-closed { background: #edf0f4; color: #596778; }
.contact-enquiries__badge--priority-low { background: #edf0f4; color: #596778; }
.contact-enquiries__badge--priority-normal { background: var(--ssk-primary-soft); color: var(--ssk-primary); }
.contact-enquiries__badge--priority-high { background: #fff0de; color: #a15400; }
.contact-enquiries__badge--priority-urgent { background: #ffe7ec; color: #b51f3c; }
.contact-enquiries__table time strong, .contact-enquiries__table time small { display: block; }
.contact-enquiries__table time strong { color: #30445b; font-size: 12px; }
.contact-enquiries__table time small { margin-top: 2px; color: var(--ssk-muted); font-size: 10px; }
.contact-enquiries__open { display: inline-flex; align-items: center; gap: 6px; justify-content: center; }
.contact-enquiries__table-card .ssk-table-footer .pagination { margin: 0; }
.contact-enquiry-detail__grid { display: grid; align-items: start; grid-template-columns: minmax(0, 1.55fr) minmax(310px, .75fr); gap: 20px; }
.contact-enquiry-detail__main { display: grid; min-width: 0; gap: 20px; }
.contact-enquiry-detail__aside { display: grid; min-width: 0; gap: 14px; }
.contact-enquiry-detail__message, .contact-enquiry-detail__visitor-card, .contact-enquiry-detail__workflow { margin: 0 !important; }
.contact-enquiry-detail__message .panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.contact-enquiry-detail__message-body { min-height: 130px; color: #263b52; font-size: 14px; line-height: 1.75; overflow-wrap: anywhere; }
.contact-enquiry-detail__visitor { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }
.contact-enquiry-detail__visitor strong, .contact-enquiry-detail__visitor span { display: block; }
.contact-enquiry-detail__visitor strong { color: var(--ssk-text); font-size: 17px; font-weight: 850; }
.contact-enquiry-detail__visitor span { margin-top: 3px; color: var(--ssk-muted); font-size: 12px; }
.contact-enquiry-detail__contact-list { display: grid; margin: 0 0 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.contact-enquiry-detail__contact-list > div { min-width: 0; padding: 13px; border: 1px solid var(--ssk-border); border-radius: 13px; background: #fbfcfe; }
.contact-enquiry-detail__contact-list dt { margin-bottom: 5px; color: var(--ssk-muted); font-size: 10px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.contact-enquiry-detail__contact-list dt i { width: 17px; color: var(--ssk-primary); }
.contact-enquiry-detail__contact-list dd { overflow: hidden; margin: 0; color: var(--ssk-text); font-size: 12px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.contact-enquiry-detail__contact-list dd a { color: var(--ssk-primary); }
.contact-enquiry-detail__email { display: inline-flex; align-items: center; gap: 7px; }
.contact-enquiry-detail__workflow .help-block { margin: 7px 0 0; font-size: 10px; line-height: 1.45; }
.contact-enquiry-detail__workflow textarea.form-control { min-height: 154px !important; resize: vertical; }
.contact-enquiry-detail__save { display: inline-flex; width: 100%; align-items: center; justify-content: center; gap: 8px; }
.contact-enquiry-detail__audit { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid #dbe9cf; border-radius: 15px; background: var(--ssk-accent-soft); }
.contact-enquiry-detail__audit-icon { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border-radius: 12px; background: #fff; color: var(--ssk-accent-dark); }
.contact-enquiry-detail__audit strong, .contact-enquiry-detail__audit span { display: block; }
.contact-enquiry-detail__audit strong { color: var(--ssk-text); font-size: 12px; }
.contact-enquiry-detail__audit span { margin-top: 3px; color: var(--ssk-muted); font-size: 10px; line-height: 1.4; }

@media (max-width: 1280px) {
    .contact-enquiries__filter-grid { grid-template-columns: minmax(230px, 1.5fr) repeat(2, minmax(130px, .7fr)) repeat(2, minmax(140px, .7fr)); }
    .contact-enquiries__per-page { display: none; }
    .contact-enquiries__filter-actions { grid-column: 1 / -1; }
}
@media (max-width: 991px) {
    .contact-enquiries__metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .contact-enquiries__filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .contact-enquiries__search { grid-column: 1 / -1; }
    .contact-enquiry-detail__grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .contact-enquiries__heading { align-items: flex-start; }
    .contact-enquiries__heading-badges { justify-content: flex-start; }
    .contact-enquiries__filter-grid { grid-template-columns: 1fr; }
    .contact-enquiries__search, .contact-enquiries__filter-actions { grid-column: auto; }
    .contact-enquiries__filter-actions .btn { flex: 1; }
    .contact-enquiries__table-card { overflow: visible !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
    .contact-enquiries__table-card > .panel-heading { margin-bottom: 10px; border: 1px solid var(--ssk-border) !important; border-radius: 14px; box-shadow: 0 7px 20px rgba(6,43,88,.05); }
    .contact-enquiries__table-card .table-responsive { background: transparent; }
    .contact-enquiries__table, .contact-enquiries__table tbody, .contact-enquiries__table tr, .contact-enquiries__table td { display: block; width: 100%; }
    .contact-enquiries__table { background: transparent !important; }
    .contact-enquiries__table thead { display: none; }
    .contact-enquiries__table tbody tr { overflow: hidden; margin-bottom: 12px; border: 1px solid var(--ssk-border); border-radius: 15px; background: #fff; box-shadow: 0 8px 22px rgba(6,43,88,.06); }
    .contact-enquiries__table > tbody > tr > td { display: grid; align-items: center; padding: 11px 14px !important; grid-template-columns: 88px minmax(0, 1fr); gap: 10px; border: 0 !important; border-bottom: 1px solid #edf1f6 !important; background: #fff !important; text-align: left; }
    .contact-enquiries__table > tbody > tr > td:last-child { border-bottom: 0 !important; }
    .contact-enquiries__table > tbody > tr > td::before { color: #7a899b; content: attr(data-label); font-size: 9px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
    .contact-enquiries__table > tbody > tr > .ssk-empty-state { display: block; padding: 38px 18px !important; text-align: center; }
    .contact-enquiries__table > tbody > tr > .ssk-empty-state::before { display: none; }
    .contact-enquiries__visitor { min-width: 0; }
    .contact-enquiries__open { width: 100%; }
    .contact-enquiries__table-card .ssk-table-footer { border: 1px solid var(--ssk-border) !important; border-radius: 14px; }
    .contact-enquiry-detail__contact-list { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .contact-enquiries__metrics { grid-template-columns: 1fr 1fr; gap: 10px; }
    .contact-enquiries__metric { padding: 13px; gap: 9px; }
    .contact-enquiries__metric-icon { width: 38px; height: 38px; flex-basis: 38px; border-radius: 11px; }
    .contact-enquiries__metric strong { font-size: 20px; }
    .contact-enquiries__heading .ssk-heading-icon { display: none; }
    .contact-enquiries__heading-badges { max-width: 100%; }
}
