html,
body {
    min-height: 100%;
    background: #f3f4f6;
    color: #202124;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}

a {
    color: #155e75;
}

.btn-primary {
    --bs-btn-bg: #155e75;
    --bs-btn-border-color: #155e75;
    --bs-btn-hover-bg: #164e63;
    --bs-btn-hover-border-color: #164e63;
}

.app-wrapper {
    display: flex;
    min-height: 100vh;
    position: relative;
}

.app-sidebar {
    width: 252px;
    flex: 0 0 252px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    background: #1b1c1f;
    color: #f3f4f6;
    border-right: 1px solid #101113;
    transition: width 140ms ease, flex-basis 140ms ease;
    z-index: 40;
}

.sidebar-collapsed .app-sidebar {
    width: 68px;
    flex-basis: 68px;
}

.sidebar-brand {
    min-height: 57px;
    display: flex;
    align-items: center;
    padding: 12px 14px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f3f4f6;
    text-decoration: none;
    font-weight: 650;
    min-width: 0;
}

.brand-image {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    object-fit: contain;
}

.brand-text {
    color: #f3f4f6;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.95rem;
}

.app-sidebar .brand-link,
.app-sidebar .brand-link:hover,
.app-sidebar .brand-link:focus-visible,
.app-sidebar .brand-link:visited,
.app-sidebar .brand-text {
    color: #f3f4f6 !important;
}

.sidebar-wrapper {
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 100%;
}

.sidebar-menu,
.sidebar-menu-stack,
.sidebar-submenu {
    display: grid;
    gap: 4px;
    align-content: start;
}

.sidebar-menu {
    font-size: 14px;
    padding: 12px 8px 18px;
    align-content: start;
}

.sidebar-menu-stack {
    align-content: start;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 34px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #eef0f3 !important;
    padding: 7px 10px;
    font-size: 14px !important;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0;
    text-align: left;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 140ms ease, color 140ms ease;
}

.sidebar-link:hover,
.sidebar-link.active,
.nav-section-toggle.open {
    color: #fff !important;
    background: #2d3035;
}

.sidebar-link:focus-visible {
    color: #fff !important;
    outline: 2px solid #8b929d;
    outline-offset: 2px;
}

.nav-section-toggle {
    appearance: none;
}

.nav-section-toggle.open .nav-section-chevron {
    transform: rotate(180deg);
}

.nav-section-chevron {
    width: 7px;
    height: 7px;
    margin-left: auto;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    opacity: 0.8;
    transform: rotate(45deg);
    transition: transform 140ms ease;
}

.sidebar-submenu {
    margin: 3px 0 7px;
    padding-left: 20px;
}

.sidebar-sub-link {
    min-height: 31px;
    padding: 6px 9px !important;
    font-size: 13px !important;
    color: #e2e5ea !important;
}

.sidebar-sub-link .nav-icon {
    font-size: 13px;
    color: #d7dbe2;
}

.sidebar-link span,
.brand-text {
    transition: opacity 120ms ease;
}

.nav-icon {
    width: 18px;
    min-width: 18px;
    font-size: 14px;
    line-height: 1;
    text-align: center;
}

.no-access {
    color: #d7dbe2;
    padding: 10px;
}

.sidebar-collapsed .brand-text,
.sidebar-collapsed .sidebar-link span,
.sidebar-collapsed .no-access span,
.sidebar-collapsed .nav-section-chevron {
    width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
}

.sidebar-collapsed .app-sidebar .sidebar-link,
.sidebar-collapsed .app-sidebar .nav-section-toggle {
    justify-content: center;
    gap: 0;
    padding-left: 0;
    padding-right: 0;
}

.sidebar-collapsed .app-sidebar .nav-icon {
    width: 36px;
    min-width: 36px;
}

.sidebar-collapsed .sidebar-submenu {
    display: none;
}

.app-main {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.app-header {
    min-height: 57px;
    background: #fff;
    border-bottom: 1px solid #dddee3;
    position: sticky;
    top: 0;
    z-index: 30;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1;
}

.app-header .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 57px;
    padding: 10px 18px;
}

.sidebar-toggle {
    width: 34px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-search {
    width: min(420px, 100%);
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #dddee3;
    border-radius: 7px;
    background: #fbfbfc;
    padding: 0 10px;
}

.navbar-left .navbar-search {
    flex: 1;
}

.navbar-search i {
    color: #5f6368;
    font-size: 0.95rem;
}

.navbar-search .form-control {
    border: 0;
    box-shadow: none;
    padding-left: 0;
    padding-right: 0;
}

.admin-label {
    display: inline-flex;
    align-items: center;
    font-size: 0.78rem;
    color: #155e75;
    background: #e8f5f8;
    border: 1px solid #c8e5ec;
    border-radius: 6px;
    padding: 2px 6px;
}

.account-button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    border: 1px solid #dddee3;
    border-radius: 8px;
    background: #fff;
    color: #202124;
    padding: 5px 10px 5px 6px;
    cursor: pointer;
}

.account-button:hover,
.account-button:focus-visible {
    border-color: #c7ccd4;
    background: #f8f9fb;
}

.account-avatar {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cfd4dc;
    border-radius: 50%;
    background: #eef1f4;
    color: #202124;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
    flex: 0 0 32px;
}

.account-avatar-large {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
    flex-basis: 40px;
}

.account-summary {
    display: grid;
    min-width: 0;
    text-align: left;
}

.account-name {
    color: #202124;
    font-size: 0.92rem;
    font-weight: 650;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 220px;
}

.account-role {
    color: #5f6368;
    font-size: 0.78rem;
    line-height: 1.2;
}

.account-chevron {
    color: #6b7280;
    font-size: 0.8rem;
}

.account-menu {
    min-width: 260px;
    padding-top: 8px;
    padding-bottom: 8px;
    border-color: #dddee3;
    border-radius: 8px;
}

.account-menu-panel {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 14px 4px;
}

.account-menu-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.account-menu-copy strong {
    color: #202124;
    font-size: 0.95rem;
    font-weight: 650;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-menu-copy span {
    color: #5f6368;
    font-size: 0.82rem;
    line-height: 1.2;
}

.account-menu-header {
    color: #6b7280;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.app-content {
    padding: 24px;
}

.page-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.page-title > div:first-child {
    min-width: 0;
}

.page-title h1 {
    font-size: 1.6rem;
    line-height: 1.25;
    margin: 0;
    font-weight: 650;
}

.page-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 35;
    border: 0;
    background: rgba(15, 23, 42, 0.42);
}

.dashboard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.7fr);
    gap: 20px;
    align-items: start;
}

.dashboard-priority-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 1px solid #d9a800;
    border-left: 6px solid #d9a800;
    border-radius: 8px;
    background: #fff7d6;
    color: #202124;
    text-decoration: none;
}

.dashboard-priority-link:hover,
.dashboard-priority-link:focus-visible {
    color: #202124;
    background: #fff1b8;
}

.dashboard-priority-copy {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.dashboard-priority-copy i {
    width: 20px;
    color: #8a6200;
    text-align: center;
}

.dashboard-priority-copy strong {
    display: block;
    font-weight: 700;
}

.dashboard-priority-copy span span {
    display: block;
    color: #5f6368;
    font-size: 0.88rem;
}

.dashboard-priority-count {
    font-size: 1.35rem;
    line-height: 1;
}

.dashboard-panel,
.dashboard-side-section,
.table-shell,
.empty-state,
.result-group,
.shop-section,
.login-panel {
    border: 1px solid #dddee3;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.dashboard-panel,
.result-group {
    overflow: hidden;
}

.dashboard-panel-header,
.dashboard-side-section h2 {
    margin: 0;
    color: #202124;
    font-size: 0.95rem;
    font-weight: 650;
}

.dashboard-panel-header {
    padding: 12px 14px;
    border-bottom: 1px solid #dddee3;
}

.dashboard-panel-header-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.dashboard-panel-header:not(:first-child) {
    border-top: 1px solid #dddee3;
}

.dashboard-panel-header h2 {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
}

.panel-header-note {
    color: #5f6368;
    font-size: 0.84rem;
    font-weight: 500;
}

.dashboard-panel-body {
    min-height: 44px;
}

.dashboard-side {
    display: grid;
    gap: 18px;
}

.dashboard-side-section {
    display: grid;
    gap: 10px;
    padding: 14px;
}

.dashboard-side-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.customer-store-list {
    display: grid;
    gap: 6px;
    padding-top: 2px;
}

.customer-store-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #202124;
    text-decoration: none;
    font-size: 0.88rem;
}

.customer-store-row:hover,
.customer-store-row:focus-visible {
    color: #155e75;
    text-decoration: underline;
}

.customer-store-row span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-store-row strong {
    flex: 0 0 auto;
}

.table-shell {
    padding: 12px;
    overflow: auto;
}

.table-link-button {
    appearance: none;
    border: 0;
    background: transparent;
    color: #155e75;
    padding: 0;
    font: inherit;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.table-link-button:hover,
.table-link-button:focus-visible {
    color: #164e63;
    text-decoration: underline;
}

.table-detail-action {
    white-space: nowrap;
}

.table-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border: 1px solid #e6e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.detail-row {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 12px;
    min-height: 42px;
    padding: 10px 12px;
    border-right: 1px solid #e6e7eb;
    border-bottom: 1px solid #e6e7eb;
    background: #fff;
}

.detail-row:nth-child(2n) {
    border-right: 0;
}

.detail-row-wide {
    grid-column: 1 / -1;
    border-right: 0;
}

.detail-row dt {
    margin: 0;
    color: #5f6368;
    font-weight: 500;
}

.detail-row dd {
    margin: 0;
    color: #202124;
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.detail-edit-shell {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
    border: 1px solid #dddee3;
    border-radius: 8px;
    background: #fff;
    padding: 16px;
}

.detail-edit-field {
    min-width: 0;
}

.detail-edit-field-wide {
    grid-column: 1 / -1;
}

.detail-textarea {
    min-height: 132px;
    resize: vertical;
}

.readonly-value {
    min-height: 32px;
    border: 1px solid #e6e7eb;
    border-radius: 6px;
    background: #f8f9fb;
    color: #5f6368;
    padding: 6px 10px;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.detail-check {
    min-height: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.country-page-title {
    position: sticky;
    top: 57px;
    z-index: 20;
    max-width: 1180px;
    margin: -8px 0 12px;
    padding: 12px 0;
    background: #f5f6f8;
    border-bottom: 1px solid #dddee3;
}

.country-edit-shell {
    max-width: 1180px;
    gap: 14px 24px;
    padding: 0 20px 22px;
}

.country-edit-section-head {
    grid-column: 1 / -1;
    margin: 4px -20px 0;
    padding: 20px 20px 0;
    border-top: 1px solid #e6e7eb;
}

.country-edit-section-head:first-child {
    margin-top: 0;
    border-top: 0;
}

.country-edit-section-head h2 {
    margin: 0;
    color: #202124;
    font-size: 1rem;
    font-weight: 650;
}

.country-edit-section-head p {
    max-width: 720px;
    margin: 4px 0 0;
    color: #5f6368;
    font-size: 0.84rem;
    line-height: 1.45;
}

.country-edit-shell .detail-textarea {
    min-height: 76px;
}

.country-edit-shell .form-text {
    margin-top: 5px;
    color: #6b7280;
    font-size: 0.78rem;
}

.queue-summary {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
    color: #202124;
}

.queue-summary strong {
    font-size: 1.25rem;
    line-height: 1;
}

.queue-summary span {
    color: #5f6368;
}

.used-clothing-summary-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.used-clothing-summary-strip-dashboard {
    padding: 12px 14px 14px;
}

.used-clothing-summary-tile {
    display: grid;
    gap: 3px;
    border: 1px solid #dddee3;
    border-radius: 8px;
    background: #fff;
    padding: 12px 14px;
}

.used-clothing-summary-tile-emphasis {
    border-color: #c7d3d9;
    background: #f8fbfc;
}

.used-clothing-summary-label {
    color: #5f6368;
    font-size: 0.82rem;
    font-weight: 600;
}

.used-clothing-summary-tile strong {
    color: #202124;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.15;
}

.used-clothing-summary-tile span:last-child,
.used-clothing-summary-tile span:nth-last-child(2) {
    color: #4b5563;
    font-size: 0.88rem;
}

.used-clothing-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(220px, 0.6fr);
    gap: 14px 16px;
    margin-bottom: 14px;
}

.used-clothing-toolbar-single {
    grid-template-columns: minmax(0, 1fr);
}

.used-clothing-filter-field {
    min-width: 0;
}

.used-clothing-table-meta {
    margin-bottom: 12px;
    color: #5f6368;
    font-size: 0.92rem;
}

.used-clothing-bulk-bar {
    display: grid;
    grid-template-columns: minmax(180px, 0.8fr) minmax(240px, 1.4fr) auto;
    align-items: center;
    gap: 12px 16px;
    margin-bottom: 12px;
    border: 1px solid #dddee3;
    border-radius: 8px;
    background: #fff;
    padding: 10px 12px;
}

.used-clothing-bulk-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    min-width: 0;
    color: #202124;
    font-weight: 600;
}

.used-clothing-bulk-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    min-width: 0;
    color: #5f6368;
    font-size: 0.9rem;
}

.used-clothing-bulk-summary strong {
    color: #202124;
    font-size: 1rem;
    line-height: 1;
}

.used-clothing-bulk-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    white-space: nowrap;
}

.used-clothing-row-check {
    margin: 0;
}

.used-clothing-status-cell {
    display: grid;
    gap: 3px;
}

.used-clothing-status-cell small {
    color: #5f6368;
    font-size: 0.78rem;
}

.used-clothing-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    width: fit-content;
    border: 1px solid #d6d9de;
    border-radius: 6px;
    padding: 0 10px;
    font-size: 0.8rem;
    font-weight: 650;
}

.used-clothing-status-pending {
    border-color: #d4b26a;
    background: #fff8e8;
    color: #8a5a00;
}

.used-clothing-status-approved {
    border-color: #b9d5c4;
    background: #eef8f1;
    color: #1f5f3b;
}

.used-clothing-period-cell {
    display: grid;
    gap: 2px;
}

.used-clothing-period-cell strong {
    color: #202124;
    font-size: 0.9rem;
    font-weight: 650;
    line-height: 1.1;
}

.used-clothing-period-cell span {
    color: #5f6368;
    font-size: 0.8rem;
    line-height: 1.2;
}

.used-clothing-modal-header {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.used-clothing-modal-subtitle {
    margin-top: 4px;
    color: #5f6368;
    font-size: 0.88rem;
}

.used-clothing-modal-queue {
    align-items: center;
    color: #155e75;
    display: flex;
    font-size: 0.78rem;
    font-weight: 650;
    gap: 5px;
    margin-top: 6px;
}

.used-clothing-modal-metrics {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.used-clothing-metric {
    border: 1px solid #dddee3;
    border-radius: 7px;
    background: #f8f9fb;
    color: #202124;
    padding: 6px 10px;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
}

.used-clothing-modal-shell {
    display: grid;
    gap: 18px;
}

.used-clothing-photo-section {
    display: grid;
    gap: 10px;
}

.used-clothing-photo-section h6 {
    margin: 0;
    color: #202124;
    font-size: 0.96rem;
    font-weight: 650;
}

.used-clothing-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(128px, 136px));
    justify-content: flex-start;
    gap: 10px;
}

.used-clothing-photo-card {
    margin: 0;
    border: 1px solid #e6e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.used-clothing-photo-link {
    display: block;
    aspect-ratio: 1 / 1;
    background: #eef1f4;
}

.used-clothing-photo-link img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.used-clothing-photo-caption {
    padding: 8px 10px;
    color: #5f6368;
    font-size: 0.78rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.used-clothing-empty {
    color: #5f6368;
}

.used-clothing-modal-footer {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.upload-panel {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    border: 1px solid #dddee3;
    border-radius: 8px;
    background: #fff;
    padding: 12px;
}

.attention-list,
.activity-list,
.result-list {
    display: grid;
}

.attention-row,
.activity-row,
.result-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 10px 14px;
    border-bottom: 1px solid #eef0f3;
}

.attention-row,
.result-row {
    color: #202124;
    text-decoration: none;
}

.attention-row-button {
    background: transparent;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    cursor: pointer;
    text-align: left;
    width: 100%;
}

.attention-row:hover,
.attention-row-button:focus-visible,
.result-row:hover {
    color: #202124;
    background: #f8f9fb;
}

.attention-row i,
.result-row i {
    width: 18px;
    color: #4b5563;
    text-align: center;
}

.attention-row strong {
    margin-left: auto;
    font-weight: 650;
}

.activity-row {
    justify-content: space-between;
}

.activity-row-button {
    width: 100%;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
}

.activity-row-button:hover,
.activity-row-button:focus-visible {
    background: #f8f9fb;
}

.activity-row span,
.result-row strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-row time,
.result-row small {
    color: #5f6368;
    font-size: 0.86rem;
}

.result-row span {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.metric-list,
.status-list {
    display: grid;
    gap: 8px;
    margin: 0;
}

.metric-list div,
.status-list div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e6e7eb;
}

.metric-list div:last-child,
.status-list div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.metric-list dt,
.status-list dt {
    color: #5f6368;
    font-weight: 500;
}

.metric-list dd,
.status-list dd {
    margin: 0;
    color: #202124;
    font-weight: 650;
}

.empty-row {
    padding: 18px 14px;
    color: #5f6368;
}

.empty-state {
    max-width: 680px;
    padding: 18px;
}

.empty-state h2 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 650;
}

.empty-state p {
    color: #5f6368;
}

.search-page-form {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 760px;
}

.search-page-form i {
    color: #5f6368;
}

.search-shell {
    margin-bottom: 16px;
}

.search-results {
    display: grid;
    gap: 16px;
    max-width: 1040px;
}

.result-group-header {
    padding: 12px 14px;
    border-bottom: 1px solid #dddee3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-weight: 650;
}

.result-group-header strong {
    color: #5f6368;
    font-size: 0.82rem;
    font-weight: 700;
}

.card {
    border-radius: 8px;
    border-color: #dddee3;
    box-shadow: none;
}

.card-header {
    background: #fff;
    border-bottom-color: #dddee3;
    font-weight: 650;
}

.permission-grid,
.permission-checks {
    display: grid;
    gap: 8px;
}

.permission-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.permission-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
    border: 1px solid #e6e7eb;
    border-radius: 7px;
    background: #fff;
}

.permission-checks {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    min-width: 560px;
}

.permission-checks .form-check {
    margin: 0;
}

.permission-checks-compact {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    min-width: 0;
}

.admin-user-table .admin-user-main-cell {
    min-width: 260px;
}

.admin-user-table td {
    vertical-align: top;
}

.group-list {
    display: grid;
    gap: 8px;
    padding-left: 0;
    list-style: none;
    margin-bottom: 0;
}

.diagnostic-list {
    display: grid;
    grid-template-columns: minmax(150px, 0.8fr) 1fr;
    gap: 10px 16px;
    margin-bottom: 0;
}

.diagnostic-list dt {
    color: #5f6368;
    font-weight: 500;
}

.diagnostic-list dd {
    margin-bottom: 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: #f6f7f9;
    padding: 22px;
}

.login-panel {
    width: min(420px, 100%);
    border: 1px solid #dddee3;
    border-radius: 8px;
    background: #fff;
    padding: 26px;
}

.login-panel h1 {
    font-size: 1.35rem;
    margin-bottom: 18px;
}

.language-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.92rem;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #6c757d;
    font-size: 0.88rem;
    margin: 18px 0;
}

.login-divider::before,
.login-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #dddee3;
}

#blazor-error-ui {
    color-scheme: light only;
    background: #fff3cd;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.shop-page-subtitle {
    margin-top: 4px;
    color: #5f6368;
    font-size: 0.92rem;
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.admin-stat-grid-compact {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.admin-stat-card {
    display: grid;
    align-content: start;
    gap: 4px;
    border: 1px solid #dddee3;
    border-radius: 8px;
    background: #fff;
    padding: 12px 14px;
}

.admin-stat-card-emphasis {
    border-color: #c7d3d9;
    background: #f8fbfc;
}

.shop-status-card {
    gap: 8px;
}

.shop-status-card-closed {
    border-color: #d9a8a8;
    background: #fff7f7;
}

.shop-status-card .btn {
    justify-self: start;
}

.admin-stat-label {
    color: #5f6368;
    font-size: 0.81rem;
    font-weight: 600;
}

.admin-stat-value {
    color: #202124;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.admin-stat-note {
    color: #4b5563;
    font-size: 0.88rem;
}

.shop-summary-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.shop-summary-chip {
    display: grid;
    gap: 4px;
    border: 1px solid #dddee3;
    border-radius: 8px;
    background: #f8f9fb;
    padding: 11px 12px;
    color: #202124;
    font-size: 0.88rem;
}

.shop-summary-chip strong {
    color: #5f6368;
    font-size: 0.8rem;
    font-weight: 600;
}

.shop-summary-chip span:last-child {
    color: #202124;
    font-size: 0.98rem;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.error-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: #f3f4f6;
}

.error-panel {
    width: min(520px, 100%);
    display: grid;
    gap: 14px;
    border: 1px solid #dddee3;
    border-radius: 8px;
    background: #fff;
    padding: 24px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.error-panel h1 {
    margin: 0;
    color: #202124;
    font-size: 1.5rem;
    font-weight: 700;
}

.error-panel p {
    margin: 0;
    color: #5f6368;
}

.error-meta-list {
    display: grid;
    grid-template-columns: minmax(100px, 0.55fr) 1fr;
    gap: 8px 12px;
    margin: 0;
}

.error-meta-list dt {
    color: #5f6368;
    font-size: 0.85rem;
    font-weight: 600;
}

.error-meta-list dd {
    margin: 0;
    color: #202124;
    font-size: 0.92rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.shop-tabbar {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid #dddee3;
}

.shop-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #374151;
    min-height: 42px;
    padding: 0 0 10px;
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: -1px;
}

.shop-tab strong {
    min-width: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: #eef1f4;
    color: #4b5563;
    font-size: 0.78rem;
    font-weight: 700;
}

.shop-tab.active {
    border-bottom-color: #155e75;
    color: #155e75;
}

.shop-tab.active strong {
    background: #e8f5f8;
    color: #155e75;
}

.shop-editor {
    display: grid;
    gap: 16px;
}

.shop-section {
    padding: 18px;
}

.shop-section-muted {
    background: #fbfcfd;
}

.shop-section-head {
    margin-bottom: 14px;
}

.shop-section-head-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.shop-section-head h2 {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 650;
    color: #202124;
}

.shop-section-head p {
    margin: 6px 0 0;
    color: #5f6368;
    font-size: 0.9rem;
}

.special-offer-import-fields {
    padding: 14px 16px;
    border-bottom: 1px solid #dddee3;
    background: #fbfcfd;
}

.special-offer-import-fields-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.special-offer-import-field-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    gap: 8px 18px;
}

.special-offer-import-field-list .form-check {
    margin: 0;
}

.special-image-upload-controls {
    display: grid;
    grid-template-columns: minmax(180px, 240px) minmax(320px, 1fr);
    gap: 16px;
    align-items: start;
}

.special-image-upload-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 18px;
    border-top: 1px solid #dddee3;
    border-bottom: 1px solid #dddee3;
    padding: 10px 0;
    color: #5f6368;
    font-size: 0.86rem;
}

.special-image-upload-summary strong {
    color: #202124;
    font-size: 0.95rem;
}

.special-image-upload-list {
    margin-top: 14px;
    border: 1px solid #dddee3;
    border-radius: 8px;
    overflow: hidden;
}

.special-image-upload-row {
    display: grid;
    grid-template-columns: 78px minmax(170px, 0.8fr) minmax(260px, 1.4fr) 72px;
    gap: 14px;
    align-items: center;
    padding: 12px;
    background: #fff;
}

.special-image-upload-row + .special-image-upload-row {
    border-top: 1px solid #e4e6ea;
}

.special-image-preview,
.special-image-current img {
    width: 72px;
    height: 72px;
    border: 1px solid #dddee3;
    border-radius: 6px;
    background: #fff;
    object-fit: contain;
}

.special-image-preview {
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #8b929d;
}

.special-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.special-image-preview i {
    font-size: 1.5rem;
}

.special-image-file,
.special-image-target,
.special-image-current {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.special-image-file > strong {
    overflow: hidden;
    color: #202124;
    font-size: 0.9rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.special-image-file > span:not(.special-image-status) {
    color: #6b7280;
    font-size: 0.78rem;
    overflow-wrap: anywhere;
}

.special-image-target .form-label,
.special-image-current > span:first-child {
    margin: 0;
    color: #5f6368;
    font-size: 0.76rem;
    font-weight: 650;
}

.special-image-status {
    width: fit-content;
    border: 1px solid #d6d9de;
    border-radius: 6px;
    padding: 2px 7px;
    font-size: 0.72rem;
    font-weight: 650;
}

.special-image-status-ok {
    border-color: #b9d5c4;
    background: #eef8f1;
    color: #1f5f3b;
}

.special-image-status-review {
    border-color: #d4b26a;
    background: #fff8e8;
    color: #7a5200;
}

.special-image-status-error {
    border-color: #e0b4b4;
    background: #fff1f1;
    color: #9b2525;
}

.special-image-status-muted {
    background: #f3f4f6;
    color: #5f6368;
}

.special-image-suggestion {
    line-height: 1.35;
}

.special-image-current {
    justify-items: start;
}

.special-order-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(180px, 240px) auto;
    gap: 12px;
    align-items: end;
}

.special-order-filter {
    min-width: 0;
}

.special-order-filter-wide {
    min-width: min(420px, 100%);
}

.special-order-filter-actions {
    display: flex;
    justify-content: flex-end;
}

.analytics-filter-panel {
    margin-bottom: 16px;
    padding: 12px;
}

.analytics-toolbar {
    display: grid;
    grid-template-columns: minmax(150px, 0.8fr) repeat(4, minmax(150px, 1fr)) auto;
    gap: 12px;
    align-items: end;
}

.analytics-filter-field {
    min-width: 0;
}

.analytics-filter-actions {
    display: flex;
    justify-content: flex-end;
}

.analytics-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.7fr);
    gap: 20px;
    align-items: start;
    margin-bottom: 20px;
}

.analytics-layout-even {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.analytics-store-panel {
    margin-bottom: 20px;
}

.analytics-bar-list {
    display: grid;
    gap: 8px;
    padding: 12px 14px;
}

.analytics-bar-row {
    display: grid;
    grid-template-columns: 54px minmax(80px, 1fr) minmax(42px, auto) minmax(88px, auto);
    align-items: center;
    gap: 10px;
    color: #4b5563;
    font-size: 0.9rem;
}

.analytics-bar-row time,
.analytics-bar-row span:nth-child(3) {
    color: #202124;
    font-weight: 650;
}

.analytics-bar-track {
    height: 8px;
    overflow: hidden;
    border-radius: 4px;
    background: #e6e7eb;
}

.analytics-bar-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #374151;
}

.special-order-table td {
    vertical-align: middle;
}

.special-order-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
    gap: 16px;
    background: #f8f9fb;
}

.special-order-detail-main,
.special-order-detail-side,
.special-order-activity-list {
    display: grid;
    gap: 12px;
    align-content: start;
}

.special-order-detail-section {
    border: 1px solid #dddee3;
    border-radius: 8px;
    background: #fff;
    padding: 14px;
}

.special-order-section-head {
    margin-bottom: 12px;
}

.special-order-section-head h3 {
    margin: 0;
    color: #202124;
    font-size: 0.98rem;
    font-weight: 650;
}

.special-order-definition-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.special-order-definition-grid div {
    min-width: 0;
}

.special-order-definition-grid dt {
    color: #5f6368;
    font-size: 0.8rem;
    font-weight: 600;
}

.special-order-definition-grid dd {
    margin: 2px 0 0;
    color: #202124;
    font-size: 0.94rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.special-order-note-text {
    margin: 0;
    color: #374151;
    white-space: pre-wrap;
}

.special-order-status-editor {
    display: grid;
    gap: 10px;
}

.special-order-activity-item {
    border: 1px solid #dddee3;
    border-radius: 8px;
    background: #fff;
    padding: 12px;
}

.special-order-activity-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.special-order-activity-head strong {
    color: #202124;
    font-size: 0.9rem;
}

.special-order-activity-head span {
    color: #5f6368;
    font-size: 0.78rem;
    white-space: nowrap;
}

.special-order-activity-item p {
    margin: 0;
    color: #374151;
    font-size: 0.9rem;
    line-height: 1.35;
    white-space: pre-wrap;
}

.import-upload-panel {
    margin-bottom: 16px;
}

.import-upload-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.import-file-name {
    color: #5f6368;
    font-size: 0.9rem;
}

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

.import-warning-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 20px;
}

.import-missing-summary {
    display: grid;
    gap: 4px;
    margin-bottom: 12px;
    padding: 12px 14px;
    border: 1px solid #e2e4e8;
    border-radius: 8px;
    background: #fbfcfd;
}

.import-missing-summary strong {
    color: #202124;
    font-size: 0.94rem;
    font-weight: 650;
}

.import-missing-summary span {
    color: #5f6368;
    font-size: 0.86rem;
}

.import-shop-list {
    display: grid;
    gap: 12px;
}

.import-shop-panel {
    border: 1px solid #dddee3;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.import-shop-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    cursor: pointer;
    list-style: none;
    padding: 14px 16px;
}

.import-shop-summary::-webkit-details-marker {
    display: none;
}

.import-shop-summary strong {
    display: block;
    color: #202124;
    font-size: 0.98rem;
    font-weight: 650;
}

.import-shop-summary span {
    display: block;
    margin-top: 4px;
    color: #5f6368;
    font-size: 0.86rem;
}

.import-shop-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.import-flag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border: 1px solid #d7dbe0;
    border-radius: 6px;
    background: #f8f9fb;
    color: #374151;
    padding: 0 10px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.import-flag-warning {
    border-color: #d4b26a;
    background: #fff8e8;
    color: #8a5a00;
}

.import-shop-body {
    display: grid;
    gap: 12px;
    padding: 0 16px 16px;
}

.import-note-row {
    display: grid;
    gap: 4px;
    border: 1px solid #e6e7eb;
    border-radius: 8px;
    background: #fbfcfd;
    padding: 10px 12px;
}

.import-note-row span {
    color: #5f6368;
    font-size: 0.82rem;
    font-weight: 600;
}

.import-note-row strong {
    color: #202124;
    font-size: 0.92rem;
    font-weight: 600;
}

.import-table-shell {
    padding: 0;
}

.import-diff-table {
    margin-bottom: 0;
}

.import-diff-table td,
.import-diff-table th {
    vertical-align: middle;
}

.import-diff-changed {
    background: #fff4df;
    color: #5e4200;
    font-weight: 600;
}

.import-decision-body {
    display: grid;
    gap: 14px;
}

.import-decision-body p {
    margin: 0;
    color: #202124;
}

.import-missing-shop-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.import-missing-shop-list li {
    display: grid;
    gap: 2px;
    padding: 10px 12px;
    border: 1px solid #e2e4e8;
    border-radius: 8px;
    background: #fff;
}

.import-missing-shop-list strong {
    color: #202124;
    font-size: 0.92rem;
    font-weight: 650;
}

.import-missing-shop-list span,
.import-missing-more,
.import-decision-note {
    color: #5f6368;
    font-size: 0.86rem;
}

.import-decision-note {
    padding: 10px 12px;
    border-left: 3px solid #d4b26a;
    background: #fff8e8;
    color: #6b4b00;
}

.import-decision-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    width: 100%;
}

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

.shop-helper-grid-compact {
    margin-top: 14px;
    margin-bottom: 14px;
}

.shop-field {
    min-width: 0;
}

.shop-field-wide {
    grid-column: 1 / -1;
}

.shop-field-actions {
    display: flex;
    align-items: end;
}

.shop-action-stack {
    width: 100%;
    display: grid;
    gap: 8px;
}

.shop-textarea-compact {
    min-height: 82px;
    resize: vertical;
}

.shop-preview-callout {
    display: grid;
    gap: 4px;
    margin-bottom: 14px;
    border: 1px solid #dddee3;
    border-radius: 8px;
    background: #fbfcfd;
    padding: 12px 14px;
}

.shop-preview-callout strong {
    color: #202124;
    font-size: 0.9rem;
    font-weight: 650;
}

.shop-preview-callout span {
    color: #4b5563;
    font-size: 0.9rem;
}

.shop-helper-panel {
    margin-bottom: 16px;
    border: 1px solid #e6e7eb;
    border-radius: 8px;
    background: #fff;
    padding: 12px 14px 14px;
}

.shop-helper-panel summary {
    cursor: pointer;
    color: #202124;
    font-weight: 650;
    list-style: none;
}

.shop-helper-panel summary::-webkit-details-marker {
    display: none;
}

.shop-helper-panel[open] summary {
    margin-bottom: 14px;
}

.shop-permanent-closure {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    border: 1px solid #dddee3;
    border-radius: 8px;
    background: #f8f9fb;
    padding: 12px 14px;
}

.shop-permanent-closure-active {
    border-color: #d9a8a8;
    background: #fff7f7;
}

.shop-permanent-closure div {
    display: grid;
    gap: 3px;
}

.shop-permanent-closure strong {
    color: #202124;
    font-size: 0.95rem;
    font-weight: 650;
}

.shop-permanent-closure span {
    color: #5f6368;
    font-size: 0.86rem;
}

.shop-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #f8f9fb;
    color: #374151;
    padding: 2px 8px;
    font-size: 0.82rem;
    font-weight: 650;
}

.shop-status-badge-closed {
    border-color: #d9a8a8;
    background: #fff7f7;
    color: #8a1f1f;
}

.shop-edit-table-shell {
    overflow: auto;
    border: 1px solid #e6e7eb;
    border-radius: 8px;
}

.shop-edit-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    background: #fff;
}

.shop-edit-table th,
.shop-edit-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eef0f3;
    vertical-align: middle;
}

.shop-edit-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8f9fb;
    color: #374151;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.shop-edit-table tr:last-child td {
    border-bottom: 0;
}

.shop-toggle,
.shop-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #202124;
    font-weight: 500;
}

.shop-switch {
    margin-bottom: 6px;
}

.shop-upload-strip {
    margin-bottom: 16px;
}

.shop-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.shop-photo-card {
    margin: 0;
    border: 1px solid #e6e7eb;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.shop-photo-frame {
    aspect-ratio: 4 / 3;
    background: #eef1f4;
}

.shop-photo-frame img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.shop-photo-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    color: #374151;
    font-size: 0.82rem;
    font-weight: 600;
}

.shop-save-bar {
    position: sticky;
    bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 18px;
    border: 1px solid #dddee3;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    padding: 12px 14px;
}

.shop-save-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.shop-save-copy strong {
    color: #202124;
    font-size: 0.92rem;
    font-weight: 650;
}

.shop-save-copy span {
    color: #5f6368;
    font-size: 0.85rem;
}

.client-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.95fr);
    gap: 16px;
}

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

.info-field {
    display: grid;
    gap: 4px;
    border: 1px solid #e6e7eb;
    border-radius: 8px;
    background: #f8f9fb;
    padding: 12px;
    min-width: 0;
}

.info-label {
    color: #5f6368;
    font-size: 0.82rem;
    font-weight: 600;
}

.info-value {
    color: #202124;
    font-size: 0.95rem;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.client-panel-stack,
.client-detail-stack {
    display: grid;
    gap: 16px;
}

.record-browser {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 16px;
    align-items: start;
}

.record-detail-panel {
    position: sticky;
    top: 78px;
}

.client-toggle-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 12px;
}

.client-section-actions,
.client-password-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.client-balance-panel {
    display: grid;
    gap: 14px;
}

.client-balance-value {
    display: grid;
    gap: 4px;
    border: 1px solid #d7e3ea;
    border-radius: 8px;
    background: #f8fbfc;
    padding: 12px 14px;
}

.client-balance-value span {
    color: #5f6368;
    font-size: 0.86rem;
    font-weight: 600;
}

.client-balance-value strong {
    color: #0f172a;
    font-size: 1.15rem;
    font-weight: 700;
}

.client-password-status {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.client-status-list {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.client-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #e6e7eb;
    border-radius: 8px;
    background: #f8f9fb;
    padding: 10px 12px;
}

.client-status-row span {
    color: #5f6368;
    font-size: 0.86rem;
    font-weight: 600;
}

.client-status-row strong {
    color: #202124;
    font-size: 0.92rem;
    font-weight: 700;
}

.client-password-preview {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    letter-spacing: 0;
}

.client-summary-list-shell {
    border: 1px solid #e6e7eb;
    border-radius: 8px;
    background: #f8f9fb;
    padding: 12px 14px;
}

.client-summary-list {
    display: grid;
    grid-template-columns: minmax(140px, 0.9fr) 1fr;
    gap: 10px 16px;
    margin: 0;
}

.client-summary-list dt {
    color: #5f6368;
    font-size: 0.85rem;
    font-weight: 600;
}

.client-summary-list dd {
    margin: 0;
    color: #202124;
    font-size: 0.92rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.client-history-button {
    font-weight: 600;
}

.client-history-button.active {
    color: #0f5c73;
    text-decoration: underline;
}

.client-net-positive {
    color: #146c43;
    font-weight: 700;
}

.client-net-negative {
    color: #b42318;
    font-weight: 700;
}

.deletion-request-layout {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(420px, 1.05fr) minmax(420px, 1fr);
    align-items: start;
}

.deletion-request-table,
.deletion-request-detail {
    min-width: 0;
}

.deletion-request-detail {
    display: grid;
    gap: 16px;
}

.deletion-request-toolbar {
    padding: 16px;
    border-bottom: 1px solid var(--admin-border);
}

.request-selection {
    width: 100%;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    padding: 0;
}

.request-selection.active {
    color: var(--admin-accent);
    font-weight: 700;
}

.detail-section {
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: #fff;
    padding: 20px;
}

.detail-section h2 {
    margin: 0;
    font-size: 1.1rem;
}

.detail-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.detail-section-subtitle {
    margin-top: 4px;
    color: var(--admin-muted);
    font-size: 0.9rem;
}

.detail-section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.detail-readonly-grid,
.impact-summary-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-readonly-field,
.impact-summary-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 14px;
    background: #f8fafc;
}

.client-transfer-layout {
    gap: 16px;
}

.client-transfer-toolbar {
    padding-bottom: 0;
}

.client-transfer-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.client-transfer-account-grid {
    margin-bottom: 16px;
}

.client-transfer-inline-meta {
    color: var(--admin-muted);
    font-size: 0.85rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.client-transfer-option-list {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.client-transfer-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    padding: 12px 14px;
    min-width: 0;
}

.client-transfer-option .form-check-input {
    margin: 0;
}

.client-transfer-option span {
    color: #202124;
    font-size: 0.92rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.client-transfer-option strong {
    color: #374151;
    font-size: 0.9rem;
    font-weight: 700;
}

.client-transfer-note {
    margin-bottom: 16px;
}

.detail-readonly-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 82px;
}

.detail-readonly-label {
    color: var(--admin-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.impact-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.impact-summary-item span {
    color: var(--admin-muted);
}

.deletion-request-warning {
    margin-top: 16px;
    margin-bottom: 0;
}

.hard-delete-confirmation {
    display: grid;
    gap: 6px;
}

@media (max-width: 760px) {
    .app-wrapper {
        flex-direction: column;
    }

    .app-sidebar {
        position: static;
        top: auto;
        left: auto;
        bottom: auto;
        width: 100%;
        height: auto;
        flex-basis: auto;
        transform: none;
        transition: none;
        border-right: 0;
        border-bottom: 1px solid #101113;
        overflow: visible;
    }

    .sidebar-collapsed .brand-text,
    .sidebar-collapsed .sidebar-link span,
    .sidebar-collapsed .no-access span,
    .sidebar-collapsed .nav-section-chevron {
        width: auto;
        opacity: 1;
    }

    .sidebar-collapsed .app-sidebar .sidebar-link,
    .sidebar-collapsed .app-sidebar .nav-section-toggle,
    .app-sidebar .sidebar-link,
    .app-sidebar .nav-section-toggle {
        justify-content: flex-start;
        gap: 10px;
        padding: 7px 10px;
    }

    .sidebar-collapsed .sidebar-submenu {
        display: grid;
    }

    .sidebar-wrapper {
        min-height: auto;
    }

    .app-header .container-fluid {
        gap: 12px;
        align-items: flex-start;
        flex-direction: column;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .navbar-actions {
        flex-wrap: wrap;
        width: 100%;
        justify-content: flex-end;
    }

    .navbar-left {
        width: 100%;
        flex-wrap: wrap;
    }

    .navbar-search {
        width: 100%;
    }

    .account-summary {
        display: none;
    }

    .account-button {
        margin-left: auto;
        padding-right: 8px;
    }

    .app-content {
        padding: 16px;
    }

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

    .analytics-toolbar,
    .analytics-layout,
    .analytics-layout-even {
        grid-template-columns: 1fr;
    }

    .analytics-filter-actions {
        justify-content: stretch;
    }

    .analytics-filter-actions .btn {
        width: 100%;
    }

    .analytics-bar-row {
        grid-template-columns: 48px minmax(80px, 1fr) minmax(42px, auto);
    }

    .analytics-bar-row span:last-child {
        grid-column: 2 / -1;
    }

    .dashboard-priority-link {
        align-items: flex-start;
    }

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

    .detail-row {
        grid-template-columns: 1fr;
        border-right: 0;
    }

    .detail-edit-shell {
        grid-template-columns: 1fr;
    }

    .country-page-title {
        top: 57px;
        margin-top: -4px;
    }

    .country-edit-section-head {
        grid-column: 1;
    }

    .search-page-form {
        align-items: stretch;
        flex-direction: column;
    }

    .used-clothing-modal-header {
        flex-direction: column;
    }

    .used-clothing-modal-metrics {
        justify-content: flex-start;
    }

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

    .client-page-grid,
    .info-grid,
    .record-browser,
    .client-summary-list,
    .deletion-request-layout,
    .detail-readonly-grid,
    .impact-summary-grid {
        grid-template-columns: 1fr;
    }

    .record-detail-panel {
        position: static;
    }

    .special-order-toolbar,
    .special-order-detail,
    .special-order-definition-grid {
        grid-template-columns: 1fr;
    }

    .special-order-filter-wide {
        min-width: 0;
    }

    .special-order-filter-actions {
        justify-content: stretch;
    }

    .special-order-filter-actions .btn {
        width: 100%;
    }

    .special-image-upload-controls {
        grid-template-columns: 1fr;
    }

    .special-offer-import-fields-head {
        align-items: stretch;
        flex-direction: column;
    }

    .special-offer-import-field-list {
        grid-template-columns: 1fr;
    }

    .special-image-upload-row {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .special-image-preview {
        width: 64px;
        height: 64px;
    }

    .special-image-target,
    .special-image-current {
        grid-column: 1 / -1;
    }

    .special-image-current {
        grid-template-columns: auto 56px;
        align-items: center;
    }

    .special-image-current img {
        width: 56px;
        height: 56px;
    }

    .shop-tabbar {
        overflow: auto;
        flex-wrap: nowrap;
        padding-bottom: 2px;
    }

    .shop-tab {
        white-space: nowrap;
    }

    .shop-summary-strip {
        display: grid;
    }

    .shop-permanent-closure {
        align-items: stretch;
        flex-direction: column;
    }

    .shop-permanent-closure .btn {
        align-self: flex-start;
    }

    .used-clothing-toolbar {
        grid-template-columns: 1fr;
    }

    .used-clothing-bulk-bar {
        grid-template-columns: 1fr;
    }

    .used-clothing-bulk-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
        white-space: normal;
    }

    .import-shop-summary {
        flex-direction: column;
    }

    .import-shop-badges {
        justify-content: flex-start;
    }

    .import-upload-row {
        align-items: stretch;
        flex-direction: column;
    }

    .import-decision-actions {
        flex-direction: column-reverse;
    }

    .shop-save-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .detail-section-header {
        flex-direction: column;
    }

    .detail-section-actions {
        width: 100%;
    }

    .detail-section-actions .btn {
        width: 100%;
    }

    .client-transfer-search,
    .client-transfer-option {
        grid-template-columns: 1fr;
    }
}
