* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f6f4ef;
    color: #25221f;
    font-family: Arial, "Tahoma", sans-serif;
}

a {
    color: inherit;
}

input,
select,
textarea,
button {
    font: inherit;
}

.admin-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-sidebar {
    background: #241f1b;
    color: #fff;
    padding: 24px 18px;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
}

.admin-brand__mark {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #d5a642;
    color: #241f1b;
    font-weight: 700;
}

.admin-brand small,
.admin-topbar p,
.admin-card__header p,
.admin-table small {
    color: #8d8378;
}

.admin-nav {
    display: grid;
    gap: 8px;
    margin: 28px 0;
}

.admin-nav a,
.admin-logout {
    border-radius: 8px;
    color: #fff;
    padding: 11px 12px;
    text-decoration: none;
}

.admin-nav a.is-active,
.admin-nav a:hover,
.admin-logout:hover {
    background: rgba(255, 255, 255, .12);
}

.admin-panel {
    min-width: 0;
}

.admin-topbar {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #e6dfd5;
    display: flex;
    justify-content: space-between;
    padding: 18px 28px;
}

.admin-topbar h1,
.admin-topbar p,
.admin-card__header h2,
.admin-card__header p {
    margin: 0;
}

.admin-menu-button {
    display: none;
}

.admin-content {
    display: grid;
    gap: 18px;
    padding: 24px;
}

.admin-card,
.stat-card {
    background: #fff;
    border: 1px solid #e6dfd5;
    border-radius: 8px;
    padding: 20px;
}

.admin-card__header {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.admin-button,
.row-actions a,
.row-actions button {
    align-items: center;
    background: #fff;
    border: 1px solid #d5cabe;
    border-radius: 8px;
    color: #25221f;
    cursor: pointer;
    display: inline-flex;
    min-height: 38px;
    padding: 8px 12px;
    text-decoration: none;
}

.admin-button--primary {
    background: #2d6a4f;
    border-color: #2d6a4f;
    color: #fff;
}

.admin-button--ghost {
    background: #f8f5ef;
}

.button-row,
.row-actions,
.filter-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.row-actions form {
    margin: 0;
}

.row-actions button {
    background: #fff5f2;
    border-color: #e4b5aa;
    color: #9f2d1f;
}

.admin-form {
    display: grid;
    gap: 16px;
}

.form-grid,
.filter-grid,
.admin-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.filter-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.admin-filter,
.admin-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.admin-filter input,
.admin-filter select,
.admin-filters input,
.admin-filters select {
    border: 1px solid #d8cec3;
    border-radius: 8px;
    min-height: 42px;
    padding: 9px 11px;
}

.admin-form label,
.filter-grid label {
    display: grid;
    gap: 7px;
}

.admin-form span,
.filter-grid span {
    color: #62594f;
    font-size: 14px;
}

.admin-form input,
.admin-form select,
.admin-form textarea,
.filter-grid input,
.filter-grid select {
    border: 1px solid #d8cec3;
    border-radius: 8px;
    min-height: 42px;
    padding: 9px 11px;
    width: 100%;
}

.check-field {
    align-content: end;
    display: flex !important;
    gap: 8px !important;
}

.check-field input {
    width: auto;
}

.alert {
    border-radius: 8px;
    padding: 12px 14px;
}

.alert--success {
    background: #edf8f1;
    border: 1px solid #b9e0c6;
    color: #235b37;
}

.alert--danger {
    background: #fff0ed;
    border: 1px solid #efbeb6;
    color: #9f2d1f;
}

.table-wrap {
    overflow-x: auto;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    border-collapse: collapse;
    min-width: 820px;
    width: 100%;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid #eee7de;
    padding: 12px;
    text-align: left;
    vertical-align: middle;
}

.admin-table th {
    color: #62594f;
    font-size: 13px;
}

.product-thumb {
    aspect-ratio: 1;
    border-radius: 8px;
    display: inline-grid;
    height: 56px;
    object-fit: cover;
    place-items: center;
    width: 56px;
}

.product-thumb--large {
    height: 120px;
    width: 120px;
}

.product-thumb--empty,
.product-main-preview--empty {
    background: #eee7de;
    color: #756b60;
    font-size: 12px;
    text-align: center;
}

.status-badge {
    border-radius: 999px;
    display: inline-flex;
    font-size: 13px;
    padding: 5px 9px;
}

.status-badge--active {
    background: #e7f5ed;
    color: #22603d;
}

.status-badge--draft {
    background: #f0eee9;
    color: #62594f;
}

.status-badge--sold {
    background: #edf2fb;
    color: #2c4a7a;
}

.status-badge--sold_out {
    background: #fff7dd;
    color: #7a5200;
}

.status-badge--hidden {
    background: #fff1ec;
    color: #9f2d1f;
}

.admin-alert,
.admin-alert--error {
    border-radius: 8px;
    font-weight: 700;
    margin-bottom: 16px;
    padding: 12px 14px;
}

.admin-alert--error {
    background: #fff0ed;
    border: 1px solid #efbeb6;
    color: #9f2d1f;
}

.admin-alert--success {
    background: #edf8f1;
    border: 1px solid #b9e0c6;
    color: #235b37;
}

.admin-button--primary {
    background: var(--admin-primary, #1d4ed8);
    color: #ffffff;
}

.admin-button--danger {
    background: #b42318;
    border-color: #b42318;
    color: #ffffff;
}

.admin-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.admin-filter {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(160px, 220px) minmax(140px, 190px) auto;
    gap: 10px;
    margin-bottom: 16px;
}

.admin-filter input,
.admin-filter select {
    min-height: 42px;
    border: 1px solid var(--admin-line, #e4e7ec);
    border-radius: 8px;
    font: inherit;
    padding: 8px 10px;
}

.button-row,
.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.status-badge--published,
.status-badge--paid,
.status-badge--open {
    background: #e7f5ed;
    color: #22603d;
}

.status-badge--pending,
.status-badge--preparing {
    background: #fff7df;
    color: #8a5a00;
}

.status-badge--sold_out,
.status-badge--cancelled {
    background: #fff1ec;
    color: #9f2d1f;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
}

.pagination a {
    border: 1px solid #d5cabe;
    border-radius: 8px;
    padding: 7px 11px;
    text-decoration: none;
}

.pagination a.is-active {
    background: #241f1b;
    color: #fff;
}

.empty-state {
    color: #756b60;
    padding: 18px;
    text-align: center;
}

.empty-cell {
    color: #756b60;
    padding: 18px;
    text-align: center;
}

.admin-actions {
    white-space: nowrap;
}

.product-view {
    display: grid;
    gap: 22px;
    grid-template-columns: 320px minmax(0, 1fr);
}

.product-main-preview {
    aspect-ratio: 4 / 5;
    border-radius: 8px;
    object-fit: cover;
    width: 100%;
}

.detail-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.detail-list div {
    border-bottom: 1px solid #eee7de;
    display: grid;
    gap: 10px;
    grid-template-columns: 140px 1fr;
    padding-bottom: 10px;
}

.detail-list dt {
    color: #756b60;
}

.detail-list dd {
    margin: 0;
}

.description-box {
    border-top: 1px solid #eee7de;
    margin-top: 20px;
    padding-top: 18px;
}

.image-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    margin-top: 18px;
}

.image-grid figure {
    border: 1px solid #e6dfd5;
    border-radius: 8px;
    margin: 0;
    overflow: hidden;
}

.image-grid img {
    aspect-ratio: 1;
    display: block;
    object-fit: cover;
    width: 100%;
}

.image-grid figcaption {
    color: #62594f;
    padding: 8px 10px;
}

.image-grid--manage figure {
    padding-bottom: 10px;
}

.image-grid--manage .row-actions {
    padding: 0 10px;
}

.current-image {
    display: grid;
    gap: 8px;
}

.upload-row {
    align-items: end;
    grid-template-columns: minmax(0, 1fr) auto;
}

.report-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.report-tabs a {
    border: 1px solid var(--line, #dde3ea);
    border-radius: 8px;
    padding: 9px 12px;
    text-decoration: none;
}

.report-tabs a.is-active {
    background: var(--admin-primary, #1d4ed8);
    color: #fff;
}

.settings-logo-preview {
    align-items: center;
    display: flex;
    gap: 12px;
}

.settings-logo-preview img,
.admin-brand__logo,
.brand__logo {
    border-radius: 8px;
    height: 42px;
    object-fit: contain;
    width: 42px;
}

.stats-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card strong {
    display: block;
    font-size: 32px;
    margin: 8px 0;
}

.login-card {
    background: #fff;
    border: 1px solid #e6dfd5;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(36, 31, 27, .08);
    margin: 8vh auto;
    max-width: 430px;
    padding: 24px;
}

.login-shell {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
}

.login-card__header {
    align-items: center;
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.login-brand {
    align-items: center;
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.login-card h1,
.login-card p {
    margin: 0;
}

.login-form {
    display: grid;
    gap: 16px;
}

.login-form label {
    display: grid;
    gap: 7px;
}

.login-form input {
    border: 1px solid #d8cec3;
    border-radius: 8px;
    min-height: 42px;
    padding: 9px 11px;
    width: 100%;
}

.admin-button--full {
    justify-content: center;
    width: 100%;
}

@media (max-width: 980px) {
    .admin-shell,
    .product-view,
    .admin-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        display: none;
    }

    .admin-sidebar.is-open {
        display: block;
    }

    .admin-menu-button {
        display: inline-flex;
    }

    .filter-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* Phase 8 dashboard refresh */
:root {
    --admin-primary: #1d4ed8;
    --admin-line: #e4e7ec;
}

body {
    background: #f5f7fb;
    color: #182033;
}

.admin-shell {
    grid-template-columns: 280px minmax(0, 1fr);
}

.admin-sidebar {
    background: #111827;
    min-height: 100vh;
}

.admin-brand__mark {
    background: #ffffff;
    color: var(--admin-primary);
    font-weight: 800;
}

.admin-nav a.is-active,
.admin-nav a:hover,
.admin-logout:hover {
    background: #243044;
}

.admin-topbar {
    background: rgba(255, 255, 255, .94);
    border-bottom-color: var(--admin-line);
    position: sticky;
    top: 0;
    z-index: 10;
}

.admin-card,
.stat-card,
.login-card {
    border-color: var(--admin-line);
    box-shadow: 0 20px 45px rgba(16, 24, 40, .08);
}

.stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card {
    min-height: 158px;
}

.stat-card--sales {
    border-top: 4px solid var(--admin-primary);
}

.stat-card--urgent {
    border-top: 4px solid #b54708;
}

.dashboard-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
}

.admin-button {
    font-weight: 700;
}

.admin-button--primary,
.admin-button:not(.admin-button--ghost):not(.admin-button--danger) {
    background: var(--admin-primary);
    border-color: var(--admin-primary);
    color: #fff;
}

.admin-button--ghost {
    background: #ffffff;
    color: var(--admin-primary);
}

.login-shell {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
}

.login-card {
    margin: 0;
    width: min(100%, 430px);
}

.login-brand {
    align-items: center;
    display: flex;
    gap: 12px;
    margin-bottom: 22px;
}

.login-brand h1,
.login-brand p {
    margin: 0;
}

.login-form {
    display: grid;
    gap: 16px;
}

.login-form label {
    display: grid;
    gap: 7px;
    font-weight: 700;
}

.login-form input {
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    min-height: 46px;
    padding: 10px 12px;
}

.admin-filters {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(220px, 1fr) repeat(4, minmax(140px, 180px)) auto;
    margin-bottom: 18px;
}

.admin-filters label {
    display: grid;
    gap: 7px;
}

.admin-filters span {
    color: #62594f;
    font-size: 14px;
}

.admin-filters input,
.admin-filters select {
    border: 1px solid #d8cec3;
    border-radius: 8px;
    min-height: 42px;
    padding: 9px 11px;
    width: 100%;
}

.admin-detail-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-list__wide {
    grid-column: 1 / -1;
}

.order-totals {
    display: grid;
    gap: 8px;
    justify-content: end;
    margin: 18px 0 0;
}

.order-totals div {
    display: grid;
    gap: 20px;
    grid-template-columns: 110px 140px;
}

.order-totals dt {
    color: #756b60;
}

.order-totals dd {
    font-weight: 700;
    margin: 0;
    text-align: right;
}

.payment-slip {
    border: 1px solid #e6dfd5;
    border-radius: 8px;
    display: block;
    max-height: 720px;
    object-fit: contain;
    width: 100%;
}

.reject-form {
    border-top: 1px solid #eee7de;
    margin-top: 18px;
    padding-top: 18px;
}

.page-actions {
    justify-content: flex-end;
}

.status-badge.is-success {
    background: #e7f5ed;
    color: #22603d;
}

.status-badge.is-warning {
    background: #fff7df;
    color: #8a5a00;
}

.status-badge.is-info {
    background: #edf2fb;
    color: #2c4a7a;
}

.status-badge.is-danger {
    background: #fff1ec;
    color: #9f2d1f;
}

.status-badge.is-muted {
    background: #f0eee9;
    color: #62594f;
}

.admin-button--full {
    justify-content: center;
    width: 100%;
}

.admin-button--light {
    background: #eef3f7;
    color: var(--admin-primary, #28465f);
}

.alert--success {
    background: #e9f7f2;
    border-color: #bde3d5;
    color: #155f4c;
}

.admin-card + .admin-card {
    margin-top: 20px;
}

.admin-filters,
.admin-form {
    align-items: end;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-form--inline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-filters label,
.admin-form label {
    color: var(--muted, #667085);
    display: grid;
    gap: 6px;
    font-weight: 800;
}

.admin-filters input,
.admin-filters select,
.admin-form input,
.admin-form select,
.admin-form textarea {
    background: #fff;
    border: 1px solid var(--line, #dde3ea);
    border-radius: 8px;
    color: var(--ink, #17202a);
    font: inherit;
    min-height: 42px;
    padding: 10px 12px;
    width: 100%;
}

.admin-form textarea {
    resize: vertical;
}

.admin-form__wide,
.detail-grid__wide {
    grid-column: 1 / -1;
}

.check-row {
    align-items: center;
    display: flex !important;
    flex-direction: row;
}

.check-row input {
    min-height: auto;
    width: auto;
}

.form-actions,
.action-row,
.table-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.form-actions {
    grid-column: 1 / -1;
}

.table-wrap {
    overflow-x: auto;
    width: 100%;
}

.admin-table {
    border-collapse: collapse;
    min-width: 780px;
    width: 100%;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid var(--line, #dde3ea);
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: var(--muted, #667085);
    font-size: 0.86rem;
    text-transform: uppercase;
}

.status-pill {
    align-items: center;
    background: #eef3f7;
    border-radius: 999px;
    color: var(--admin-primary, #28465f);
    display: inline-flex;
    font-size: 0.85rem;
    font-weight: 900;
    min-height: 28px;
    padding: 4px 9px;
}

.status-pill--active {
    background: #e9f7f2;
    color: #155f4c;
}

.status-pill--inactive,
.status-pill--banned {
    background: #fff0f0;
    color: #8a1f1f;
}

.detail-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 0 18px;
}

.detail-grid div {
    background: #f7fafc;
    border: 1px solid var(--line, #dde3ea);
    border-radius: 8px;
    padding: 14px;
}

.detail-grid dt {
    color: var(--muted, #667085);
    font-weight: 800;
}

.detail-grid dd {
    margin: 4px 0 0;
    overflow-wrap: anywhere;
}

.empty-state {
    color: var(--muted, #667085);
    font-weight: 700;
}

@media (max-width: 1180px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .admin-filters,
    .admin-form,
    .admin-form--inline,
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .admin-sidebar {
        height: 100vh;
        left: 0;
        position: fixed;
        top: 0;
        width: min(86vw, 300px);
        z-index: 30;
    }

    .stats-grid,
    .admin-filter,
    .admin-filters,
    .admin-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media print {
    .admin-sidebar,
    .admin-topbar,
    .page-actions,
    .admin-detail-grid form,
    .admin-card:not(.print-area) {
        display: none !important;
    }

    .admin-shell,
    .admin-panel,
    .admin-content {
        display: block;
        padding: 0;
    }

    body {
        background: #fff;
    }

    .print-area {
        border: 0;
        padding: 0;
    }
}

/* Executive admin finish */
:root {
    --admin-primary: #0d7665;
    --admin-primary-dark: #0a4f47;
    --admin-ink: #14161a;
    --admin-muted: #65707a;
    --admin-line: rgba(20, 22, 26, 0.12);
    --admin-paper: #f6f1ea;
    --admin-panel: rgba(255, 255, 255, 0.9);
    --admin-coral: #c84f3b;
    --admin-plum: #5a3d6b;
    --admin-gold: #bd8b2f;
    --admin-shadow: 0 22px 58px rgba(20, 22, 26, 0.13);
}

body {
    background:
        radial-gradient(circle at 4% 0%, rgba(200, 79, 59, 0.1), transparent 26%),
        radial-gradient(circle at 96% 8%, rgba(13, 118, 101, 0.12), transparent 30%),
        linear-gradient(180deg, #fffaf4 0%, var(--admin-paper) 44%, #ffffff 100%);
    color: var(--admin-ink);
    font-family: "Noto Sans Thai", Tahoma, Arial, sans-serif;
}

.admin-sidebar {
    background:
        linear-gradient(180deg, rgba(90, 61, 107, 0.28), transparent 30%),
        #111316;
    box-shadow: 18px 0 48px rgba(20, 22, 26, 0.14);
}

.admin-brand__mark {
    background: linear-gradient(135deg, #ffffff, #e9f7f2);
    color: var(--admin-primary-dark);
    box-shadow: 0 12px 28px rgba(13, 118, 101, 0.18);
}

.admin-nav a,
.admin-logout {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 800;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.admin-nav a.is-active,
.admin-nav a:hover,
.admin-logout:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    transform: translateX(2px);
}

.admin-topbar {
    background: rgba(255, 250, 244, 0.9);
    border-bottom-color: rgba(20, 22, 26, 0.1);
    box-shadow: 0 14px 38px rgba(20, 22, 26, 0.06);
    backdrop-filter: blur(18px);
}

.admin-topbar h1 {
    color: var(--admin-ink);
    letter-spacing: 0;
}

.admin-topbar p,
.admin-card__header p,
.admin-form span,
.filter-grid span,
.admin-filters span,
.detail-list dt,
.detail-grid dt,
.admin-table th {
    color: var(--admin-muted);
}

.admin-content {
    gap: 22px;
    padding: clamp(18px, 3vw, 30px);
}

.admin-card,
.stat-card,
.login-card,
.detail-grid div,
.table-wrap,
.admin-table-wrap,
.filter-panel {
    background: var(--admin-panel);
    border-color: var(--admin-line);
    box-shadow: 0 14px 38px rgba(20, 22, 26, 0.08);
    backdrop-filter: blur(12px);
}

.admin-card,
.stat-card,
.login-card,
.detail-grid div {
    border-radius: 8px;
}

.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: "";
    position: absolute;
    inset: auto 16px 16px auto;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(13, 118, 101, 0.08);
}

.stat-card strong {
    color: var(--admin-primary-dark);
}

.stat-card--sales,
.stat-card--urgent {
    border-top-color: var(--admin-primary);
}

.admin-button,
.row-actions a,
.row-actions button,
.pagination a {
    border-color: rgba(13, 118, 101, 0.2);
    border-radius: 8px;
    font-weight: 800;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.admin-button--primary,
.admin-button:not(.admin-button--ghost):not(.admin-button--danger) {
    background: linear-gradient(135deg, var(--admin-ink), var(--admin-primary-dark));
    border-color: transparent;
    color: #fffaf4;
    box-shadow: 0 12px 26px rgba(13, 118, 101, 0.17);
}

.admin-button--ghost,
.admin-button--light,
.pagination a {
    background: rgba(255, 255, 255, 0.72);
    color: var(--admin-primary-dark);
}

.admin-button--danger,
.row-actions button {
    background: linear-gradient(135deg, #963728, var(--admin-coral));
    border-color: transparent;
    color: #fffaf4;
}

.admin-button:hover,
.row-actions a:hover,
.row-actions button:hover,
.pagination a:hover,
.pagination a.is-active {
    box-shadow: 0 16px 30px rgba(13, 118, 101, 0.18);
    transform: translateY(-1px);
}

.pagination a.is-active {
    background: linear-gradient(135deg, var(--admin-ink), var(--admin-primary-dark));
    color: #fffaf4;
}

.admin-form input,
.admin-form select,
.admin-form textarea,
.filter-grid input,
.filter-grid select,
.admin-filter input,
.admin-filter select,
.admin-filters input,
.admin-filters select,
.login-form input {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(20, 22, 26, 0.16);
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus,
.filter-grid input:focus,
.filter-grid select:focus,
.admin-filter input:focus,
.admin-filter select:focus,
.admin-filters input:focus,
.admin-filters select:focus,
.login-form input:focus {
    border-color: rgba(13, 118, 101, 0.62);
    box-shadow: 0 0 0 4px rgba(13, 118, 101, 0.12);
    outline: none;
}

.admin-table {
    overflow: hidden;
}

.admin-table th {
    background: rgba(13, 118, 101, 0.08);
    color: var(--admin-primary-dark);
}

.admin-table td,
.admin-table th,
.detail-list div {
    border-color: rgba(20, 22, 26, 0.09);
}

.admin-table tr:hover td {
    background: rgba(13, 118, 101, 0.04);
}

.status-badge,
.status-pill {
    border: 1px solid rgba(13, 118, 101, 0.18);
    font-weight: 900;
}

.status-badge--active,
.status-badge--published,
.status-badge--paid,
.status-badge--open,
.status-badge.is-success,
.status-pill--active {
    background: rgba(13, 118, 101, 0.1);
    color: var(--admin-primary-dark);
}

.status-badge--pending,
.status-badge--preparing,
.status-badge.is-warning {
    background: rgba(189, 139, 47, 0.13);
    color: #805915;
}

.status-badge--hidden,
.status-badge--cancelled,
.status-badge.is-danger,
.status-pill--inactive,
.status-pill--banned {
    background: rgba(200, 79, 59, 0.12);
    color: #963728;
}

.product-thumb,
.product-main-preview,
.payment-slip,
.image-grid figure {
    box-shadow: 0 10px 24px rgba(20, 22, 26, 0.08);
}

.login-shell {
    background:
        radial-gradient(circle at 18% 10%, rgba(200, 79, 59, 0.14), transparent 30%),
        radial-gradient(circle at 82% 12%, rgba(13, 118, 101, 0.16), transparent 32%),
        linear-gradient(180deg, #fffaf4, #f4efe8);
}

.login-card {
    box-shadow: var(--admin-shadow);
}

.auction-summary-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    margin: 18px 0;
}

.auction-summary-grid div {
    border: 1px solid rgba(20, 22, 26, 0.09);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.7);
    padding: 14px;
}

.auction-summary-grid span,
.admin-muted {
    color: var(--admin-muted);
    font-weight: 800;
}

.auction-summary-grid strong {
    color: var(--admin-ink);
    display: block;
    font-size: 1.05rem;
    margin-top: 6px;
    overflow-wrap: anywhere;
}

.admin-actions--block {
    border-top: 1px solid rgba(20, 22, 26, 0.09);
    margin-top: 18px;
    padding-top: 18px;
}

.badge,
.badge--success,
.badge--warning {
    border: 1px solid rgba(13, 118, 101, 0.18);
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.85rem;
    font-weight: 900;
    min-height: 28px;
    align-items: center;
    padding: 4px 9px;
}

.badge {
    background: rgba(101, 112, 122, 0.12);
    color: var(--admin-muted);
}

.badge--success {
    background: rgba(13, 118, 101, 0.1);
    color: var(--admin-primary-dark);
}

.badge--warning {
    background: rgba(189, 139, 47, 0.13);
    color: #805915;
}

.report-tabs {
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid rgba(20, 22, 26, 0.08);
    border-radius: 8px;
    padding: 8px;
}

.report-tabs a {
    background: rgba(255, 255, 255, 0.72);
    color: var(--admin-primary-dark);
    font-weight: 800;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.report-tabs a:hover,
.report-tabs a.is-active {
    background: linear-gradient(135deg, var(--admin-ink), var(--admin-primary-dark));
    color: #fffaf4;
    transform: translateY(-1px);
}

.product-form {
    gap: 20px;
}

.current-image,
.description-box,
.reject-form {
    border-color: rgba(20, 22, 26, 0.09);
}

.current-image {
    border: 1px solid rgba(20, 22, 26, 0.09);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.62);
    padding: 14px;
}

.product-thumb--empty,
.product-main-preview--empty {
    background:
        linear-gradient(135deg, rgba(13, 118, 101, 0.08), rgba(189, 139, 47, 0.1)),
        #efe8df;
}

.image-grid figure {
    background: rgba(255, 255, 255, 0.82);
    transition: box-shadow 160ms ease, transform 160ms ease;
}

.image-grid figure:hover {
    box-shadow: var(--admin-shadow);
    transform: translateY(-3px);
}

.image-grid figcaption {
    font-weight: 800;
}

.order-totals {
    border: 1px solid rgba(20, 22, 26, 0.09);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.66);
    padding: 14px;
}

.order-totals div:last-child {
    color: var(--admin-primary-dark);
    font-size: 1.08rem;
}

.payment-slip {
    background: #ffffff;
    padding: 8px;
}

.settings-logo-preview {
    border: 1px solid rgba(20, 22, 26, 0.09);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.66);
    padding: 14px;
}

.settings-logo-preview img {
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(20, 22, 26, 0.08);
}

.admin-card--empty .empty-state {
    border: 1px solid rgba(20, 22, 26, 0.08);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 250, 244, 0.72)),
        radial-gradient(circle at 84% 16%, rgba(13, 118, 101, 0.12), transparent 28%);
    padding: clamp(24px, 5vw, 54px);
}

.admin-card--empty .empty-state span {
    color: var(--admin-primary-dark);
    display: inline-flex;
    font-weight: 900;
    margin-bottom: 8px;
}

.admin-card--empty .empty-state h2 {
    color: var(--admin-ink);
    font-size: clamp(1.7rem, 4vw, 3.1rem);
    line-height: 1.15;
    margin: 0 0 10px;
}

.admin-card--empty .empty-state p {
    margin: 0 auto;
    max-width: 680px;
}

@media (max-width: 980px) {
    .admin-sidebar {
        box-shadow: 22px 0 64px rgba(20, 22, 26, 0.24);
    }
}
