:root {
    --admin-ink: #1a2b42;
    --admin-muted: #718096;
    --admin-line: #e1e8f0;
    --admin-paper: #f4f7fb;
    --admin-white: #fff;
    --admin-green: #2f6fb8;
    --admin-green-dark: #1b4e8a;
    --admin-green-soft: #e8f1fd;
    --admin-coral: #e27e60;
    --admin-yellow: #f2c94c;
    --admin-sidebar: #142c4e;
    --admin-sidebar-muted: #afc2dc;
    font-family: "Kanit", sans-serif;
    color: var(--admin-ink);
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

* {
    box-sizing: border-box;
}
body {
    margin: 0;
    font-family: "Kanit", sans-serif;
}
input {
    font: inherit;
}
a {
    color: inherit;
}

.admin-login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 36px;
    background-color: #eff4fa;
    background-image: radial-gradient(#cddbec 0.8px, transparent 0.8px);
}
.login-shell {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(380px, 1.1fr);
    width: min(1020px, 100%);
    min-height: 610px;
    overflow: hidden;
    background: var(--admin-white);
    box-shadow: 0 26px 80px #142c4e20;
}
.login-aside {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 38px;
    color: #fff;
    background-color: var(--admin-sidebar);
    background-image: linear-gradient(
        145deg,
        #142c4e 0%,
        #24578c 68%,
        #5d86b3 100%
    );
}
.admin-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    color: inherit;
    text-decoration: none;
}
.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    background: #bde4f2;
    font-size: 24px;
    font-weight: 700;
}
.admin-brand strong,
.admin-brand small {
    display: block;
}
.admin-brand strong {
    font-size: 16px;
    font-weight: 600;
}
.admin-brand small {
    margin-top: 2px;
    color: #bfd0e4;
    font-size: 12px;
}
.login-aside-copy {
    max-width: 350px;
    margin: auto 0;
    padding: 70px 0;
}
.eyebrow {
    margin: 0 0 8px;
    color: var(--admin-green);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
}
.login-aside .eyebrow {
    color: #bde4f2;
}
.login-aside h1 {
    margin: 0 0 18px;
    font-size: 42px;
    line-height: 1.35;
    font-weight: 500;
}
.login-aside-copy > p:last-child {
    max-width: 290px;
    color: #d4e1d9;
    font-size: 15px;
    line-height: 1.9;
}
.login-aside-index {
    color: #bfd0e4;
    font-size: 12px;
}
.login-panel {
    display: grid;
    place-items: center;
    padding: 56px;
}
.login-panel-inner {
    width: min(390px, 100%);
}
.login-panel h2 {
    margin: 0;
    font-size: 32px;
    line-height: 1.35;
    font-weight: 500;
}
.login-intro {
    margin: 8px 0 28px;
    color: var(--admin-muted);
    font-size: 14px;
}
.login-form {
    display: flex;
    flex-direction: column;
}
.login-form > label:not(.remember-control) {
    margin: 0 0 7px;
    font-size: 14px;
    font-weight: 500;
}
.login-form input[type="email"],
.login-form input[type="password"] {
    width: 100%;
    height: 48px;
    margin-bottom: 20px;
    padding: 0 14px;
    border: 1px solid #d8e1db;
    border-radius: 3px;
    outline: 0;
    background: #fbfcfb;
    color: var(--admin-ink);
}
.login-form input:focus,
.search-field:focus-within {
    border-color: var(--admin-green);
    box-shadow: 0 0 0 3px #2f6fb81a;
}
.remember-control {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 22px;
    color: #52625b;
    font-size: 13px;
}
.remember-control input {
    width: 16px;
    height: 16px;
    accent-color: var(--admin-green);
}
.form-alert {
    margin: 0 0 18px;
    padding: 11px 13px;
    border-left: 3px solid #c34d43;
    background: #fff0ee;
    color: #9c332d;
    font-size: 13px;
}
.button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 3px;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    transition:
        background-color 150ms ease,
        border-color 150ms ease;
}
.button-primary {
    background: var(--admin-green);
    color: #fff;
}
.button-primary:hover {
    background: var(--admin-green-dark);
}
.login-submit {
    width: 100%;
    min-height: 48px;
    justify-content: space-between;
    padding: 0 17px;
}
.login-submit span:last-child {
    font-size: 20px;
}
.login-footnote {
    margin: 22px 0 0;
    color: var(--admin-muted);
    font-size: 12px;
    text-align: center;
}
.login-mobile-brand {
    display: none;
}

.admin-page {
    min-height: 100vh;
    background: var(--admin-paper);
}
.admin-frame {
    min-height: 100vh;
}
.admin-sidebar {
    position: fixed;
    z-index: 20;
    inset: 0 auto 0 0;
    display: flex;
    width: 248px;
    flex-direction: column;
    padding: 25px 17px 16px;
    overflow-y: auto;
    background: var(--admin-sidebar);
    color: #fff;
    scrollbar-color: #55769d #142c4e;
    scrollbar-width: thin;
    scrollbar-gutter: stable;
}
.admin-sidebar::-webkit-scrollbar {
    width: 8px;
}
.admin-sidebar::-webkit-scrollbar-track {
    background: #142c4e;
}
.admin-sidebar::-webkit-scrollbar-thumb {
    border: 2px solid #142c4e;
    border-radius: 8px;
    background: #55769d;
}
.admin-sidebar::-webkit-scrollbar-thumb:hover {
    background: #86a6c9;
}
.admin-sidebar .admin-brand {
    padding: 0 8px 28px;
}
.sidebar-caption {
    padding: 14px 11px 9px;
    color: var(--admin-sidebar-muted);
    font-size: 11px;
}
.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sidebar-badge {
    display: inline-grid;
    min-width: 21px;
    height: 21px;
    flex: 0 0 auto;
    place-items: center;
    margin-left: auto;
    padding: 0 5px;
    border-radius: 50px;
    background: #d84343;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
}
.sidebar-group {
    min-width: 0;
}
.sidebar-group-toggle {
    display: flex;
    width: 100%;
    cursor: pointer;
    list-style: none;
}
.sidebar-group-toggle > span:not(.nav-icon) {
    flex: 1;
}
.sidebar-group-toggle::-webkit-details-marker {
    display: none;
}
.sidebar-chevron {
    margin-left: auto;
    flex: 0 0 auto;
    color: var(--admin-sidebar-muted);
    font-size: 16px;
    transition: transform 150ms ease;
}
.sidebar-group[open]:not(.is-closing) .sidebar-chevron {
    transform: rotate(180deg);
}
.sidebar-subnav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 3px 0 4px;
}
.nav-item {
    display: flex;
    min-height: 43px;
    align-items: center;
    gap: 12px;
    padding: 8px 11px;
    border-left: 3px solid transparent;
    color: #d2dfd8;
    text-decoration: none;
    font-size: 14px;
    transition:
        background 150ms ease,
        color 150ms ease;
}
.nav-item:hover {
    background: #ffffff0e;
    color: #fff;
}
.nav-item.is-active {
    border-left-color: #bde4f2;
    background: #ffffff14;
    color: #fff;
}
.nav-icon {
    display: grid;
    width: 21px;
    place-items: center;
    color: #b5d0c0;
    font-size: 19px;
}
.nav-item.is-active .nav-icon {
    color: #bde4f2;
}
.nav-item-sub {
    min-height: 34px;
    margin-left: 34px;
    padding-top: 5px;
    padding-bottom: 5px;
    border-left: 0;
    color: var(--admin-sidebar-muted);
    font-size: 12px;
}
.nav-item-sub.is-active {
    background: transparent;
    color: #bde4f2;
}
.sidebar-bottom {
    margin-top: auto;
}
.sidebar-help {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 10px;
    border-top: 1px solid #ffffff20;
}
.help-dot {
    width: 8px;
    height: 8px;
    margin-top: 5px;
    border-radius: 50%;
    background: #9bd47c;
    box-shadow: 0 0 0 4px #9bd47c20;
}
.sidebar-help strong,
.sidebar-help small {
    display: block;
}
.sidebar-help strong {
    font-size: 12px;
    font-weight: 500;
}
.sidebar-help small {
    margin-top: 2px;
    color: var(--admin-sidebar-muted);
    font-size: 10px;
}
.store-link {
    display: flex;
    justify-content: space-between;
    padding: 12px 10px 6px;
    border-top: 1px solid #ffffff20;
    color: #d2dfd8;
    text-decoration: none;
    font-size: 12px;
}
.store-link:hover {
    color: #fff;
}
.admin-main {
    min-height: 100vh;
    margin-left: 248px;
}
.admin-topbar {
    position: sticky;
    z-index: 10;
    top: 0;
    display: flex;
    height: 68px;
    align-items: center;
    justify-content: space-between;
    padding: 0 34px;
    border-bottom: 1px solid var(--admin-line);
    background: #ffffffed;
    backdrop-filter: blur(12px);
}
.topbar-context {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--admin-muted);
    font-size: 13px;
}
.topbar-context b {
    color: #c7d0ca;
    font-weight: 400;
}
.topbar-context strong {
    color: var(--admin-ink);
    font-weight: 500;
}
.topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
}
.user-avatar {
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    background: #e0eee4;
    color: var(--admin-green);
    font-size: 17px;
}
.topbar-user-copy strong,
.topbar-user-copy small {
    display: block;
}
.topbar-user-copy strong {
    font-size: 12px;
    font-weight: 500;
}
.topbar-user-copy small {
    color: var(--admin-muted);
    font-size: 10px;
}
.logout-button {
    min-height: 34px;
    margin-left: 10px;
    border-color: var(--admin-line);
    color: #52625b;
}
.logout-button:hover {
    border-color: #d7a59b;
    color: #a94e40;
}
.button-quiet {
    background: #fff;
}
.menu-toggle {
    display: none;
}
.admin-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 33px 34px 48px;
}
.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}
.page-heading h1 {
    margin: 0;
    color: var(--admin-ink);
    font-size: 29px;
    line-height: 1.3;
    font-weight: 500;
}
.page-heading p:not(.eyebrow) {
    margin: 7px 0 0;
    color: var(--admin-muted);
    font-size: 13px;
}
.today-stamp,
.record-count {
    padding: 8px 11px;
    border: 1px solid var(--admin-line);
    background: #fff;
    color: #56665e;
    font-size: 12px;
    white-space: nowrap;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 13px;
    margin-bottom: 18px;
}
.stat-panel {
    position: relative;
    min-height: 146px;
    overflow: hidden;
    padding: 18px 20px;
    border: 1px solid var(--admin-line);
    background: #fff;
}
.stat-label {
    display: block;
    color: #65746d;
    font-size: 12px;
}
.stat-panel > strong {
    display: block;
    margin: 12px 0 3px;
    color: var(--admin-ink);
    font-size: 30px;
    line-height: 1.2;
    font-weight: 500;
}
.stat-panel > strong.stat-currency {
    font-size: 24px;
}
.stat-note {
    color: var(--admin-muted);
    font-size: 11px;
}
.payment-stat-link {
    display: inline-block;
    text-decoration: none;
}
.payment-stat-link:hover {
    color: var(--admin-ink);
    text-decoration: underline;
}
.stat-glyph {
    position: absolute;
    top: 15px;
    right: 17px;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    font-size: 18px;
}
.stat-green .stat-glyph {
    background: var(--admin-green-soft);
    color: var(--admin-green);
}
.stat-coral .stat-glyph {
    background: #fff0eb;
    color: #c65e43;
}
.stat-yellow .stat-glyph {
    background: #fff7d9;
    color: #a88515;
}
.stat-ink .stat-glyph {
    background: #e9eeeb;
    color: #355849;
}
.dashboard-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 15px;
}
.data-panel {
    min-width: 0;
    border: 1px solid var(--admin-line);
    background: #fff;
}
.quotation-heading-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}
.quotation-groups {
    display: grid;
    gap: 12px;
    padding: 16px;
}
.quotation-group {
    overflow: hidden;
    border: 1px solid var(--admin-line);
    background: #fff;
}
.quotation-group-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 19px;
}
.quotation-summary-label,
.quotation-metrics > div > span {
    display: block;
    color: var(--admin-muted);
    font-size: 11px;
}
.quotation-identity h2 {
    margin: 2px 0 3px;
    color: var(--admin-ink);
    font-size: 18px;
    font-weight: 600;
}
.quotation-customer {
    color: #56665e;
    font-size: 12px;
}
.quotation-metrics {
    display: flex;
    align-items: center;
    gap: clamp(18px, 4vw, 54px);
}
.quotation-metrics strong {
    display: block;
    margin-top: 3px;
    color: var(--admin-ink);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}
.quotation-metrics .quotation-total strong {
    color: var(--admin-green-dark);
    font-size: 17px;
    font-weight: 600;
}
.quotation-details {
    border-top: 1px solid #edf0f4;
}
.quotation-details > summary {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    padding: 8px 19px;
    color: var(--admin-green-dark);
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    list-style: none;
}
.quotation-details > summary::-webkit-details-marker {
    display: none;
}
.quotation-details > summary:hover {
    background: #f7fafd;
}
.quotation-details-icon::before {
    content: "\F282";
    font-family: "bootstrap-icons";
    font-size: 18px;
    font-weight: 400;
}
.quotation-details[open] .quotation-details-icon::before {
    content: "\F286";
}
.quotation-detail-content {
    display: grid;
    gap: 14px;
    padding: 0 19px 16px;
}
.quotation-shipping-panel {
    padding: 14px;
    border: 1px solid var(--admin-line);
    background: #f8fafd;
}
.quotation-actions {
    display: flex;
    align-items: center;
    justify-self: right;
    gap: 9px;
    padding: 0 19px 16px;
}
.quotation-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.quotation-section-heading > div {
    display: flex;
    gap: 3px;
}
.quotation-section-heading > div > span,
.quotation-shipping-data span {
    color: var(--admin-muted);
    font-size: 10px;
}
.quotation-section-heading > div > strong,
.quotation-products-heading > strong {
    color: var(--admin-ink);
    font-size: 13px;
    font-weight: 500;
}
.quotation-shipping-data {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
    padding-top: 11px;
    border-top: 1px solid var(--admin-line);
}
.quotation-shipping-data > div {
    display: grid;
    gap: 3px;
}
.quotation-shipping-data strong {
    color: #45566a;
    font-size: 11px;
    font-weight: 500;
}
.quotation-shipping-empty {
    margin: 10px 0 0;
    color: var(--admin-muted);
    font-size: 11px;
}
.quotation-lifecycle-status {
    width: fit-content;
    margin-top: 7px;
    background: #edf3f9;
    color: #45617f;
}
.quotation-products-heading {
    padding: 0 0 9px;
}
.quotation-products-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}
.quotation-detail-content .quotation-item-list {
    padding: 0;
}
.quotation-item-list {
    padding: 0 19px 5px;
}
.quotation-item {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 15px;
    padding: 14px 0;
    border-top: 1px solid #edf0f4;
}
.quotation-item-image {
    display: block;
    width: 68px;
    height: 68px;
    flex: 0 0 68px;
    border: 1px solid var(--admin-line);
    border-radius: 5px;
    background: #fff;
    object-fit: contain;
}
.quotation-item-image-empty {
    display: grid;
    place-items: center;
    color: #9aa9b8;
    font-size: 23px;
}
.quotation-item-copy {
    display: grid;
    min-width: 0;
    flex: 1;
    gap: 3px;
}
.quotation-item-copy strong {
    color: var(--admin-ink);
    font-size: 13px;
    font-weight: 500;
}
.quotation-item-copy > span,
.quotation-item-copy small,
.quotation-item-price small {
    color: var(--admin-muted);
    font-size: 11px;
}
.quotation-item-price {
    min-width: 130px;
    text-align: right;
}
.quotation-item-price strong {
    color: var(--admin-ink);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}
.quotation-item-price small {
    display: block;
    margin-top: 3px;
    white-space: nowrap;
}
.quotation-empty-state {
    border: 1px dashed var(--admin-line);
}
.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 17px 19px 13px;
}
.panel-heading h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}
.panel-heading .eyebrow {
    margin-bottom: 2px;
    font-size: 10px;
}
.text-link {
    color: var(--admin-green);
    text-decoration: none;
    font-size: 12px;
    white-space: nowrap;
}
.text-link:hover {
    text-decoration: underline;
}
.table-wrap {
    width: 100%;
    overflow-x: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
th {
    padding: 10px 14px;
    border-top: 1px solid #edf0ed;
    border-bottom: 1px solid #e9eeea;
    background: #f8faf8;
    color: #75827b;
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
}
td {
    padding: 12px 14px;
    border-bottom: 1px solid #edf0ed;
    color: #52615a;
    font-size: 12px;
    vertical-align: middle;
}
tbody tr:last-child td {
    border-bottom: 0;
}
td strong {
    color: #263a32;
    font-weight: 500;
}
.table-sub {
    display: block;
    margin-top: 2px;
    color: #87938d;
    font-size: 10px;
}
.nowrap {
    white-space: nowrap;
}
.table-file {
    display: flex;
    align-items: center;
    gap: 8px;
}
.table-file-thumb {
    width: 38px;
    height: 38px;
    border: 1px solid #dce5ef;
    border-radius: 3px;
    background: #fff;
    object-fit: cover;
}
.table-file-icon {
    color: #96aa9d;
    font-size: 17px;
}
.table-file-name {
    color: #35624f;
    font-size: 11px;
    word-break: break-all;
}
.code-cell {
    color: #35624f;
    font-size: 11px;
    white-space: nowrap;
}
.status-pill {
    display: inline-flex;
    min-height: 23px;
    align-items: center;
    padding: 2px 8px;
    background: #f1f3f1;
    color: #59675f;
    font-size: 10px;
    white-space: nowrap;
}
.status-good {
    background: #e8f1fd;
    color: #2f6fb8;
}
.status-danger {
    background: #fff0ed;
    color: #b34436;
}
.status-dashboard-good {
    background: #e8f1e9;
    color: #35624f;
}
.payment-status-pending {
    background: #fff0ed;
    color: #b34436;
}
.payment-status-partial {
    background: #fff5df;
    color: #94621a;
}
.payment-status-rejected {
    background: #f3eaf0;
    color: #8a4766;
}
.payment-review-layout {
    max-width: 980px;
}
.payment-review-panel {
    padding: 22px;
}
.payment-review-panel > h2,
.payment-proof-list > h3 {
    margin: 0 0 16px;
    color: var(--admin-ink);
    font-size: 17px;
    font-weight: 500;
}
.payment-review-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
}
.payment-review-grid > div {
    min-width: 0;
    padding: 13px;
    border: 1px solid var(--admin-line);
    background: #fbfcfb;
}
.payment-review-grid dt {
    margin-bottom: 5px;
    color: var(--admin-muted);
    font-size: 11px;
}
.payment-review-grid dd {
    margin: 0;
    color: var(--admin-ink);
    font-size: 14px;
    overflow-wrap: anywhere;
}
.payment-review-grid .payment-review-message {
    grid-column: 1 / -1;
}
.payment-proof-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
}
.payment-proof-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    max-width: min(100%, 520px);
}
.payment-proof-image-link {
    display: block;
    overflow: hidden;
    border: 1px solid var(--admin-line);
    background: #f7f9f7;
}
.payment-proof-image {
    display: block;
    max-width: min(100%, 520px);
    max-height: 560px;
    object-fit: contain;
}
.payment-proof-list h3 {
    width: 100%;
    margin-bottom: 2px;
}
.payment-review-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--admin-line);
}
.payment-review-actions form {
    margin: 0;
}
.empty-state {
    display: grid;
    min-height: 175px;
    align-content: center;
    justify-items: center;
    padding: 24px;
    color: var(--admin-muted);
    text-align: center;
}
.empty-state > span {
    margin-bottom: 9px;
    color: #96aa9d;
    font-size: 23px;
}
.empty-state strong {
    color: #41564b;
    font-size: 13px;
    font-weight: 500;
}
.empty-state p {
    margin: 4px 0 0;
    font-size: 11px;
}
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 15px 17px;
    border-bottom: 1px solid var(--admin-line);
}
.filter-bar select[name="status"] {
    min-width: 180px;
    height: 39px;
    padding: 0 38px 0 13px;
    appearance: none;
    border: 1px solid #dce4de;
    border-radius: 0;
    background-color: #fbfcfb;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='m3.5 5.25 3.5 3.5 3.5-3.5' stroke='%23718a7b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    color: var(--admin-ink);
    font: inherit;
    font-size: 12px;
    cursor: pointer;
    transition:
        border-color 150ms ease,
        box-shadow 150ms ease,
        background-color 150ms ease;
}
.filter-bar select[name="status"]:hover {
    border-color: #aebfb4;
    background-color: #fff;
}
.filter-bar select[name="status"]:focus-visible {
    border-color: var(--admin-green);
    outline: 0;
    box-shadow: 0 0 0 3px #2f6fb822;
}
.product-editor {
    display: grid;
    gap: 14px;
    margin-top: 25px;
    padding-top: 22px;
    border-top: 1px solid var(--admin-line);
}
.inline-editor {
    overflow: hidden;
    border: 1px solid var(--admin-line);
    background: #fff;
}
.inline-editor-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 15px;
    border-bottom: 1px solid var(--admin-line);
    background: #f8faf9;
}
.inline-editor-heading h2 {
    margin: 0;
    color: var(--admin-ink);
    font-size: 14px;
    font-weight: 500;
}
.inline-editor-heading p {
    margin: 3px 0 0;
    color: var(--admin-muted);
    font-size: 11px;
}
.inline-editor-list {
    display: grid;
    gap: 10px;
    padding: 12px;
}
.inline-editor-empty {
    margin: 0;
    padding: 18px;
    color: var(--admin-muted);
    font-size: 12px;
    text-align: center;
}
.inline-editor-row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) auto;
    align-items: start;
    gap: 15px;
    padding: 13px;
    border: 1px solid #e6ebe8;
    background: #fcfdfc;
}
.inline-editor-row.no-preview {
    grid-template-columns: minmax(0, 1fr) auto;
}
.inline-editor-preview {
    display: flex;
    min-height: 112px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    overflow: hidden;
    background: #f1f4f2;
    color: var(--admin-muted);
    font-size: 10px;
    text-align: center;
}
.inline-editor-preview img,
.inline-editor-preview iframe {
    display: block;
    width: 100%;
    height: 112px;
    border: 0;
    object-fit: contain;
    background: #fff;
}
.inline-editor-preview a {
    max-width: 100%;
    overflow: hidden;
    padding: 0 7px;
    color: #426b58;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.inline-file-icon {
    display: grid;
    width: 48px;
    height: 58px;
    place-items: center;
    border: 1px solid #d5dfd8;
    background: #fff;
    color: #426b58;
    font-size: 12px;
    font-weight: 600;
}
.inline-editor-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 10px 13px;
}
.inline-editor-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
    color: #52647a;
    font-size: 11px;
}
.inline-editor-field > span {
    font-weight: 500;
}
.inline-editor-field input,
.inline-editor-field select,
.inline-editor-field textarea {
    width: 100%;
    min-height: 35px;
    padding: 6px 9px;
    border: 1px solid #dce4de;
    border-radius: 0;
    background: #fff;
    color: var(--admin-ink);
    font: inherit;
    font-size: 12px;
}
.inline-editor-field textarea {
    min-height: 72px;
    resize: vertical;
}
.inline-editor-field-wide {
    grid-column: 1 / -1;
}
.inline-paragraphs {
    display: grid;
    grid-column: 1 / -1;
    gap: 7px;
    margin: 0;
    padding: 0;
    border: 0;
}
.inline-paragraphs legend {
    margin-bottom: 5px;
    color: #52647a;
    font-size: 11px;
    font-weight: 500;
}
.inline-paragraph-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
}
.inline-paragraph-row input {
    width: 100%;
    min-height: 35px;
    padding: 6px 9px;
    border: 1px solid #dce4de;
    border-radius: 0;
    background: #fff;
    color: var(--admin-ink);
    font: inherit;
    font-size: 12px;
}
.inline-paragraph-row .button {
    min-height: 35px;
    padding: 4px 10px;
}
.inline-upload-field {
    grid-column: 1 / -1;
}
.inline-upload-field input {
    min-height: 38px;
    padding: 5px;
}
.inline-editor-checkbox,
.inline-main-choice {
    display: inline-flex;
    min-height: 35px;
    align-items: center;
    gap: 7px;
    color: #52647a;
    font-size: 11px;
}
.inline-editor-checkbox input,
.inline-main-choice input {
    accent-color: var(--admin-green);
}
.inline-editor-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}
.inline-editor-controls .button {
    min-width: 32px;
    min-height: 31px;
    padding: 4px 8px;
}
.inline-editor-controls button:disabled {
    opacity: 0.4;
    cursor: default;
}
.inline-row-position {
    min-width: 20px;
    color: var(--admin-muted);
    font-size: 11px;
    text-align: center;
}
.parent-context-link {
    display: inline-flex;
    margin: 14px 17px 0;
    font-size: 12px;
}
.search-field {
    display: flex;
    min-width: min(390px, 100%);
    height: 39px;
    align-items: center;
    gap: 8px;
    padding: 0 11px;
    border: 1px solid #dce4de;
    background: #fbfcfb;
    color: #7a8a81;
}
.search-field > span {
    font-size: 19px;
    line-height: 1;
}
.search-field input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--admin-ink);
    font-size: 12px;
}
.button-dark {
    min-height: 39px;
    background: var(--admin-green);
    color: #fff;
}
.button-dark:hover {
    background: var(--admin-green-dark);
}
.button-light {
    min-height: 39px;
    border-color: var(--admin-line);
    background: #fff;
    color: #4e6056;
}
.button-light:hover {
    background: var(--admin-paper);
}
.pagination-wrap {
    padding: 15px 17px;
    border-top: 1px solid var(--admin-line);
}
.pagination-wrap nav {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #64736b;
    font-size: 12px;
}
.pagination-wrap nav > div:first-child p {
    margin: 0;
}
.pagination-wrap nav > div:last-child > span,
.pagination-wrap nav > div:last-child > a {
    display: inline-flex;
    gap: 6px;
}
.pagination-wrap nav a,
.pagination-wrap nav span[aria-current] span,
.pagination-wrap nav span[aria-disabled] span {
    display: inline-flex;
    min-width: 31px;
    min-height: 31px;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border: 1px solid var(--admin-line);
    background: #fff;
    color: #40584c;
    text-decoration: none;
}
.pagination-wrap nav span[aria-current] span {
    border-color: var(--admin-green);
    background: var(--admin-green);
    color: #fff;
}
.record-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}
.record-actions form {
    margin: 0;
}
.record-actions .button {
    min-height: 30px;
    padding: 5px 9px;
    font-size: 11px;
}
.sort-order-form {
    display: flex;
    align-items: center;
    gap: 6px;
}
.sort-order-form input {
    width: 74px;
    min-height: 31px;
    padding: 4px 7px;
    border: 1px solid var(--admin-line);
    border-radius: 0;
    font: inherit;
}
.sort-order-form .button {
    min-height: 31px;
    padding: 5px 8px;
    font-size: 11px;
}
.sort-order-save {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin: 10px;
}
.sort-order-save .field-hint {
    margin-right: auto;
}
.sort-order-save button:disabled {
    opacity: 0.5;
    cursor: default;
}
.sort-order-cell {
    display: inline-flex;
    min-width: 92px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-weight: 600;
}
.sort-order-arrows {
    display: inline-flex;
    gap: 3px;
}
.sort-order-arrows .button {
    width: 27px;
    min-height: 27px;
    padding: 2px;
    line-height: 1;
}
.sort-order-arrows button:disabled {
    opacity: 0.35;
    cursor: default;
}
.button-danger {
    border-color: #f0cfcc;
    background: #fff;
    color: #a8443c;
}
.button-danger:hover {
    background: #fff0ee;
}
.manage-form-panel {
    padding: 22px;
}
.manage-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px 20px;
}
.manage-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #52647a;
    font-size: 12px;
}
.manage-field-readonly {
    pointer-events: none;
    user-select: none;
}
.manage-field-readonly input {
    background: #eef2f6;
    cursor: default;
}
.manage-field > span {
    font-weight: 500;
}
.manage-field > span b {
    color: #bf5148;
}
.manage-field input,
.manage-field select,
.manage-field textarea {
    width: 100%;
    min-height: 40px;
    padding: 8px 11px;
    border: 1px solid #dce5ef;
    border-radius: 3px;
    background: #fbfdff;
    color: var(--admin-ink);
    outline: 0;
    font-size: 13px;
}
.manage-field select {
    cursor: pointer;
}
.manage-field textarea {
    min-height: 120px;
    resize: vertical;
}
.manage-field input:focus,
.manage-field select:focus,
.manage-field textarea:focus {
    border-color: var(--admin-green);
    box-shadow: 0 0 0 3px #2f6fb81a;
}
.manage-field-wide {
    grid-column: 1 / -1;
}
.manage-checkbox {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 40px;
    color: #40536a;
    font-size: 13px;
}
.manage-checkbox input {
    width: 17px;
    height: 17px;
    accent-color: var(--admin-green);
}
.field-hint {
    color: var(--admin-muted);
    font-size: 10px;
}
.manage-field > label {
    font-weight: 500;
}
.manage-field input[type="file"] {
    padding: 8px 11px;
    background: #fff;
}
.manage-file,
.manage-file-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-weight: 400;
}
.manage-file {
    padding: 6px 9px;
    border: 1px solid #dce5ef;
    border-radius: 3px;
    background: #f7fafd;
}
.manage-file-thumb {
    width: 34px;
    height: 34px;
    border: 1px solid #dce5ef;
    border-radius: 3px;
    background: #fff;
    object-fit: cover;
}
.manage-file-icon {
    color: #96aa9d;
    font-size: 17px;
}
.manage-file-name {
    color: #35624f;
    font-size: 11px;
    word-break: break-all;
}
.manage-file-remove {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #a8443c;
    font-size: 10px;
}
.field-error {
    color: #aa3f37;
    font-size: 11px;
}
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 24px;
    padding-top: 17px;
    border-top: 1px solid var(--admin-line);
}
.notice {
    margin-bottom: 16px;
    padding: 12px 15px;
    border: 1px solid #b9dcc8;
    background: #eaf5ee;
    color: #246143;
    font-size: 13px;
}
.sidebar-scrim {
    display: none;
}

@media (max-width: 1180px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .dashboard-columns {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 760px) {
    .quotation-heading-actions {
        align-items: flex-start;
        flex-direction: column;
    }
    .quotation-group-summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }
    .quotation-metrics {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }
    .quotation-groups {
        padding: 10px;
    }
    .quotation-detail-content {
        padding: 0 10px 12px;
    }
    .quotation-shipping-data {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .quotation-section-heading {
        align-items: flex-start;
    }
    .quotation-item-list {
        padding-right: 12px;
        padding-left: 12px;
    }
    .quotation-item {
        flex-wrap: wrap;
        gap: 10px;
    }
    .quotation-item-image {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
    }
    .quotation-item-copy {
        flex-basis: calc(100% - 68px);
    }
    .quotation-item-price {
        margin-left: 68px;
        text-align: left;
    }
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 180ms ease;
    }
    .admin-main {
        margin-left: 0;
    }
    .sidebar-open .admin-sidebar {
        transform: translateX(0);
    }
    .sidebar-open .sidebar-scrim {
        position: fixed;
        z-index: 15;
        inset: 0;
        display: block;
        background: #10231d88;
    }
    .admin-topbar {
        height: 60px;
        padding: 0 15px;
    }
    .menu-toggle {
        display: flex;
        width: 35px;
        height: 35px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 0;
        border: 1px solid var(--admin-line);
        background: #fff;
    }
    .menu-toggle span {
        width: 15px;
        height: 1.5px;
        background: var(--admin-ink);
    }
    .topbar-context {
        margin-right: auto;
        margin-left: 11px;
        font-size: 11px;
    }
    .topbar-user {
        gap: 7px;
    }
    .topbar-user-copy {
        display: none;
    }
    .logout-button {
        min-height: 32px;
        margin-left: 0;
        padding: 6px 9px;
        font-size: 11px;
    }
    .admin-content {
        padding: 24px 15px 36px;
    }
    .page-heading {
        align-items: flex-start;
    }
    .page-heading h1 {
        font-size: 25px;
    }
    .today-stamp {
        display: none;
    }
    .record-count {
        padding: 6px 8px;
        font-size: 10px;
    }
    .stats-grid {
        gap: 9px;
    }
    .stat-panel {
        min-height: 130px;
        padding: 14px;
    }
    .stat-panel > strong {
        font-size: 25px;
    }
    .stat-panel > strong.stat-currency {
        font-size: 20px;
    }
    .stat-glyph {
        top: 11px;
        right: 11px;
        width: 27px;
        height: 27px;
    }
    .dashboard-columns {
        gap: 11px;
    }
    .filter-bar {
        align-items: stretch;
    }
    .search-field {
        min-width: 100%;
    }
    .filter-bar .button {
        flex: 1;
    }
    .inline-editor-heading {
        align-items: flex-start;
        flex-direction: column;
    }
    .inline-editor-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }
    .inline-editor-preview {
        grid-column: 1 / -1;
        max-width: 180px;
    }
    .inline-editor-controls {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
    .manage-form-panel {
        padding: 16px;
    }
    .manage-fields {
        grid-template-columns: 1fr;
    }
    .manage-field-wide {
        grid-column: auto;
    }
}
@media (max-width: 420px) {
    .login-shell {
        grid-template-columns: 1fr;
    }
    .login-aside {
        display: none;
    }
    .login-panel {
        min-height: min(700px, calc(100vh - 32px));
        padding: 28px 22px;
    }
    .login-mobile-brand {
        display: block;
        margin-bottom: 42px;
        color: var(--admin-green);
        font-size: 12px;
        font-weight: 700;
        text-decoration: none;
    }
    .login-mobile-brand span {
        margin-left: 7px;
        color: var(--admin-muted);
        font-weight: 400;
    }
    .admin-login-page {
        padding: 16px;
    }
}

@media (max-width: 600px) {
    .payment-review-panel {
        padding: 16px;
    }
    .payment-review-grid {
        grid-template-columns: 1fr;
    }
    .payment-review-grid .payment-review-message {
        grid-column: auto;
    }
    .payment-review-actions form,
    .payment-review-actions .button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
