body {
    background: #f5f7fa;
}

.finance-page {
    max-width: 1800px;
    margin: 0 auto;
}

.finance-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

.finance-help {
    background: #eef5ff;
    color: #294466;
}

.finance-import-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    border: 1px solid #dbe5f1;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.finance-import-form {
    display: grid;
    grid-template-columns: minmax(260px, 420px) auto;
    gap: 10px;
    align-items: center;
}

.finance-total-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.finance-total-card {
    padding: 18px;
    border: 1px solid #dbe5f1;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.finance-total-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.finance-total-head strong {
    font-size: 20px;
}

.finance-total-head span {
    color: #64748b;
    font-size: 13px;
}

.finance-total-card dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.finance-total-card dl div {
    display: grid;
    gap: 5px;
}

.finance-total-card dt {
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.finance-total-card dd {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
}

.finance-store-card {
    overflow: hidden;
}

.finance-store-table {
    width: 100%;
    min-width: 1240px;
    table-layout: fixed;
}

.finance-store-table th {
    padding: 12px 10px;
    white-space: nowrap;
}

.finance-store-table > tbody > tr > td {
    padding: 11px 8px;
}

.finance-store-table th:nth-child(1) {
    width: 165px;
}

.finance-store-table th:nth-child(2) {
    width: 90px;
}

.finance-store-table th:nth-child(3) {
    width: 82px;
}

.finance-store-table th:nth-child(4),
.finance-store-table th:nth-child(5),
.finance-store-table th:nth-child(6) {
    width: 128px;
}

.finance-store-table th:nth-child(7) {
    width: 155px;
}

.finance-store-table th:nth-child(8) {
    width: 170px;
}

.finance-store-table th:nth-child(9) {
    width: 68px;
}

.finance-store-name {
    max-width: 150px;
    overflow: hidden;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.finance-store-meta {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.finance-readonly-amount {
    white-space: nowrap;
}

.finance-currency-select {
    min-width: 66px;
    padding-right: 28px;
}

.finance-lifetime-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.finance-note-cell {
    display: grid;
    align-content: center;
    gap: 4px;
}

.finance-action-cell {
    white-space: nowrap;
}

@media (max-width: 900px) {
    .finance-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .finance-total-card dl {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .finance-import-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .finance-import-form {
        grid-template-columns: 1fr;
    }
}

.navbar-brand {
    font-weight: 700;
}

.page-shell {
    padding-top: 24px;
    padding-bottom: 48px;
}

.metric-card {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.dashboard-page {
    max-width: 1500px;
    margin: 0 auto;
}

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

.dashboard-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.dashboard-range {
    color: #64748b;
    font-size: 14px;
    white-space: nowrap;
}

.dashboard-card-grid {
    display: grid;
    gap: 14px;
}

.dashboard-priority-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.dashboard-priority-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-sales-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-payment-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-metric-card,
.dashboard-data-card,
.dashboard-panel,
.dashboard-payment-summary {
    border: 1px solid #e5eaf2;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.dashboard-metric-card {
    display: grid;
    gap: 7px;
    min-height: 122px;
    padding: 18px;
    color: #0f172a;
    text-decoration: none;
}

.dashboard-metric-card:hover {
    border-color: #9db4ff;
    color: #0f172a;
    transform: translateY(-1px);
}

.dashboard-metric-card.is-warning {
    border-color: #f5c542;
    background: #fffdf2;
}

.dashboard-metric-card.is-danger {
    border-color: #f0a4aa;
    background: #fff7f7;
}

.dashboard-metric-label,
.dashboard-data-card span,
.dashboard-payment-summary span {
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
}

.dashboard-metric-card strong,
.dashboard-data-card strong,
.dashboard-payment-summary strong {
    color: #0f172a;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.05;
}

.dashboard-metric-card small,
.dashboard-data-card small,
.dashboard-payment-summary small {
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.45;
}

.dashboard-payment-card {
    position: relative;
    display: grid;
    gap: 8px;
    min-height: 124px;
    padding: 18px 20px;
    overflow: hidden;
    border: 1px solid #dbe5f1;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.dashboard-payment-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: #4f6ef7;
    content: "";
}

.dashboard-payment-card.is-yesterday::before {
    background: #8b5cf6;
}

.dashboard-payment-card.is-total::before {
    background: #16a34a;
}

.dashboard-payment-card:hover {
    border-color: #aebfe0;
    color: #0f172a;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
    transform: translateY(-2px);
}

.dashboard-payment-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dashboard-payment-card-head span {
    color: #475569;
    font-size: 15px;
    font-weight: 700;
}

.dashboard-payment-card-head small,
.dashboard-payment-card > small {
    color: #94a3b8;
    font-size: 12px;
}

.dashboard-payment-card > strong {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.05;
}

.dashboard-data-card {
    display: grid;
    gap: 7px;
    min-height: 108px;
    padding: 16px 18px;
}

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

.dashboard-compare-grid > div {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.dashboard-compare-grid strong {
    overflow: hidden;
    font-size: 30px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-data-card.is-muted {
    background: #f8fafc;
}

.dashboard-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    gap: 16px;
}

.dashboard-panel {
    overflow: hidden;
}

.dashboard-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid #e5eaf2;
}

.dashboard-panel-head h2 {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    font-weight: 800;
}

.dashboard-panel-head p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 13px;
}

.dashboard-panel-head a {
    color: #2854d8;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

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

.dashboard-table {
    table-layout: fixed;
}

.dashboard-table th,
.dashboard-table td {
    padding: 11px 14px;
    border-color: #e5eaf2;
    vertical-align: middle;
}

.dashboard-table th {
    color: #334155;
    font-size: 13px;
    font-weight: 800;
    background: #f8fafc;
}

.dashboard-store-name {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-alert-list {
    display: grid;
}

.dashboard-alert-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 16px;
    border-bottom: 1px solid #eef2f7;
    color: #0f172a;
    text-decoration: none;
}

.dashboard-alert-item:hover {
    background: #f8fbff;
    color: #0f172a;
}

.dashboard-alert-item strong,
.dashboard-alert-item span {
    display: block;
}

.dashboard-alert-item strong {
    font-size: 14px;
}

.dashboard-alert-item span {
    max-width: 360px;
    overflow: hidden;
    color: #64748b;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-alert-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.dashboard-empty {
    padding: 28px 16px;
    color: #64748b;
    text-align: center;
}

.dashboard-assist-grid {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
}

.dashboard-payment-summary {
    display: grid;
    align-content: center;
    gap: 8px;
    padding: 16px;
    box-shadow: none;
}

.table-card {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.store-management-table {
    min-width: 1050px;
    table-layout: fixed;
}

.store-management-table th,
.store-management-table td {
    padding: 14px 10px;
    border-color: #e8edf4;
}

.store-management-table thead th {
    padding-top: 13px;
    padding-bottom: 13px;
    background: #f8fafc;
    color: #475569;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    word-break: keep-all;
}

.store-management-table tbody tr {
    transition: background-color 0.15s ease;
}

.store-management-table .store-col-id {
    width: 54px;
}

.store-management-table .store-col-site {
    width: 62px;
}

.store-management-table .store-col-name {
    width: 96px;
}

.store-management-table .store-col-frontend {
    width: 210px;
}

.store-management-table .store-col-email {
    width: 150px;
}

.store-management-table .store-col-status {
    width: 68px;
}

.store-management-table .store-col-owners {
    width: 200px;
}

.store-management-table .store-col-created {
    width: 108px;
    white-space: nowrap;
}

.store-management-table .store-col-actions {
    width: 184px;
}

.store-cell-ellipsis {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-frontend-name {
    cursor: help;
    text-decoration: underline dotted #cbd5e1;
    text-underline-offset: 3px;
}

.store-owner-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

.store-action-buttons {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    white-space: nowrap;
}

.store-action-buttons form {
    display: inline-flex;
    margin: 0;
}

.store-action-buttons .btn {
    min-width: 50px;
    border-radius: 6px;
    white-space: nowrap;
}

.erp-download-table {
    width: 100%;
    table-layout: auto;
}

.erp-download-table .erp-download-nowrap,
.erp-download-table .erp-download-date,
.erp-download-table .erp-download-time,
.erp-download-table .erp-download-action {
    width: 1%;
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
}

.erp-download-table .erp-download-action .btn {
    width: auto;
    min-width: max-content;
    white-space: nowrap !important;
}

.erp-download-table .erp-download-date {
    min-width: 7rem;
}

.erp-download-table .erp-download-time {
    min-width: 10.5rem;
}

.erp-download-table .erp-download-action {
    min-width: 13rem;
}

.erp-download-table .erp-download-message {
    min-width: 14rem;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.login-panel {
    max-width: 420px;
    margin: 8vh auto;
}

.employee-picker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 8px;
    max-height: 132px;
    overflow: auto;
    padding: 8px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #fff;
}

.employee-picker-modal {
    max-height: 260px;
}

.employee-option {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 7px 9px;
    border: 1px solid #e5eaf2;
    border-radius: 8px;
    cursor: pointer;
    background: #f8fafc;
}

.employee-option:hover {
    border-color: #9db4ff;
    background: #f4f7ff;
}

.employee-option span {
    font-weight: 600;
}

.employee-option small {
    color: #64748b;
}

.sales-card {
    overflow: hidden;
}

.sales-page {
    max-width: 100%;
}

.sales-upload-panel {
    padding: 16px;
    border: 1px solid #e5eaf2;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.sales-upload-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 16px;
    align-items: center;
}

.sales-upload-main {
    display: grid;
    grid-template-columns: auto minmax(260px, 420px) minmax(260px, 1fr);
    gap: 14px;
    align-items: center;
}

.sales-upload-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid #dbe7ff;
    border-radius: 8px;
    background: #eef4ff;
    color: #2854d8;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
}

.sales-upload-copy .form-label {
    color: #0f172a;
    font-weight: 700;
}

.sales-upload-control .form-control,
.sales-upload-action .btn {
    min-height: 40px;
}

.sales-table-wrap {
    max-height: calc(100vh - 360px);
    min-height: 420px;
    overflow: auto;
}

.sales-detail-head,
.sales-summary-head,
.sales-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sales-detail-filters {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eef2f7;
}

.sales-detail-loading {
    opacity: 0.72;
    pointer-events: none;
}

.sales-select-col {
    width: 44px;
    text-align: center;
}

.sales-pagination {
    padding: 12px 16px;
    background: #fff;
}

.sales-table {
    width: 100%;
    table-layout: auto;
    font-size: 13px;
}

.sales-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f8fafc;
    border-bottom: 1px solid #dbe3ef;
    color: #334155;
    font-weight: 700;
    white-space: nowrap;
}

.sales-sort-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: inherit;
    text-decoration: none;
}

.sales-sort-link:hover,
.sales-sort-link.active {
    color: #2854d8;
}

.sales-sort-arrow {
    min-width: 12px;
    color: #2854d8;
    font-size: 12px;
    line-height: 1;
}

.sales-sort-arrow.muted {
    color: #94a3b8;
}

.sales-table th,
.sales-table td {
    padding: 8px 10px;
    vertical-align: middle;
    border-color: #e5eaf2;
}

.sales-table tbody tr:hover {
    background: #f8fbff;
}

.sales-title-col {
    width: clamp(280px, 34vw, 680px);
}

.sales-number-col {
    width: 1%;
    text-align: right;
    white-space: nowrap;
}

.sales-text-col {
    white-space: nowrap;
}

.title-clip {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
    max-height: 36px;
}

.cell-clip {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: clamp(78px, 9vw, 180px);
}

.upload-error {
    white-space: normal;
    line-height: 1.7;
}

.task-attention {
    position: relative;
    border: 1px solid rgba(220, 53, 69, 0.35);
    animation: taskAttention 1.6s ease-in-out infinite;
}

.task-pulse {
    animation: taskPulse 1.1s ease-in-out infinite;
}

.alerts-table {
    min-width: 1320px;
    table-layout: auto;
}

.alerts-table th,
.alerts-table td {
    white-space: nowrap;
}

.alerts-title-col {
    width: clamp(360px, 32vw, 620px);
    max-width: 620px;
    white-space: normal !important;
}

.alerts-title-clip {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.35;
    max-width: 620px;
}

.alerts-workspace {
    max-width: 1740px;
    margin: 0 auto;
}

.alerts-workspace .table-responsive {
    overflow-x: auto;
}

.alerts-workspace .card-body {
    overflow: visible;
}

.alerts-workspace .btn {
    white-space: nowrap;
}

.alert-action-row > form {
    min-width: min(360px, 100%);
}

.alert-step-card {
    background: #fff;
}

.alert-step-card .form-check {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
    white-space: nowrap;
}

.alert-step-card .form-control-sm,
.alert-step-card .form-select-sm {
    min-height: 34px;
}

.alert-step-card input[type="file"].form-control-sm {
    min-height: 34px;
}

.alert-step-form {
    display: grid;
    gap: 8px;
}

.alert-step-work {
    display: grid;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid #edf2f7;
}

.alert-step-simple {
    display: grid;
    grid-template-columns: 112px minmax(260px, 1fr) 88px;
    gap: 10px;
    align-items: center;
}

.alert-check-done {
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid #dbe3ef;
    border-radius: 6px;
    background: #f8fafc;
    font-weight: 700;
}

.alert-step-fields,
.alert-evidence-form {
    display: grid;
    grid-template-columns: 172px minmax(260px, 1fr) 180px;
    gap: 10px;
    align-items: center;
}

.alert-step-fields.with-one-change {
    grid-template-columns: 172px minmax(170px, 220px) minmax(260px, 1fr) 180px;
}

.alert-step-fields.with-before-after {
    grid-template-columns: 172px minmax(150px, 190px) minmax(150px, 190px) minmax(260px, 1fr) 180px;
}

.alert-step-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    justify-content: flex-end;
}

.alert-step-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}

.alert-save-status {
    color: #267348;
    font-size: 13px;
    font-weight: 700;
}

.alert-save-status.is-error {
    color: #c2414b;
}

.alert-evidence-form {
    grid-template-columns: minmax(220px, 360px) minmax(220px, 1fr) 112px;
    min-width: min(720px, 100%);
}

.alert-step-evidence-row {
    display: grid;
    grid-template-columns: minmax(180px, 320px) minmax(520px, 1fr);
    gap: 12px;
    align-items: center;
}

.alert-step-evidence-list,
.alert-step-readonly {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.alert-detail-page .card-header {
    font-weight: 700;
}

.alert-detail-page {
    max-width: 1200px;
}

.alert-check-panel {
    padding: 24px;
    border: 1px solid #e6eaf0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.alert-check-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}

.alert-section-title {
    color: #0f172a;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
}

.alert-section-subtitle,
.alert-step-desc {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.alert-progress-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #475569;
    font-size: 14px;
    white-space: nowrap;
}

.alert-progress-track {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf2f7;
}

.alert-progress-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2f6fed, #65a7ff);
}

.alert-check-list {
    display: grid;
    gap: 18px;
    margin-top: 22px;
}

.alert-step-card {
    padding: 22px;
    border: 1px solid #e6eaf0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.alert-step-card.is-locked {
    border-color: #e2e8f0;
    background: #f8fafc;
}

.alert-step-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
}

.alert-step-main {
    min-width: 0;
}

.alert-step-title-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.alert-step-title-body {
    min-width: 0;
}

.alert-step-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.alert-step-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #eef4ff;
    color: #2854d8;
    font-weight: 800;
}

.alert-step-title {
    color: #0f172a;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
}

.alert-title-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border: 1px solid #22c55e;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.16);
}

.alert-step-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 16px;
}

.alert-tag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 10px;
    border: 1px solid #dbe3ef;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.alert-tag-danger {
    border-color: #ffd6d6;
    background: #fff1f2;
    color: #c2414b;
}

.alert-tag-warning {
    border-color: #ffe5a3;
    background: #fff8db;
    color: #946200;
}

.alert-tag-success {
    border-color: #bdebd0;
    background: #effaf3;
    color: #267348;
}

.alert-tag-muted {
    color: #64748b;
}

.alert-check-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #0f172a;
    font-weight: 700;
}

.alert-check-toggle input {
    width: 18px;
    height: 18px;
    accent-color: #2f6fed;
}

.alert-step-card.is-locked .alert-check-toggle {
    color: #94a3b8;
    cursor: not-allowed;
}

.alert-check-error {
    color: #dc2626;
    font-size: 13px;
    font-weight: 800;
    animation: evidenceBlink 1s ease-in-out infinite;
}

.alert-step-textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px 12px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
    resize: vertical;
}

.alert-step-textarea:read-only,
.alert-step-card.is-locked .alert-step-textarea {
    border-color: #e2e8f0;
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
}

.alert-step-textarea:focus,
.alert-evidence-note:focus {
    border-color: #84a9ff;
    box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.12);
    outline: none;
}

.alert-step-actions {
    display: flex;
    justify-content: flex-end;
}

.alert-primary-button,
.alert-secondary-button,
.alert-ghost-button {
    min-height: 36px;
    padding: 7px 14px;
    border-radius: 8px;
    font-weight: 700;
}

.alert-primary-button {
    border: 1px solid #2f6fed;
    background: #2f6fed;
    color: #fff;
}

.alert-primary-button:disabled,
.alert-secondary-button:disabled,
.alert-ghost-button:disabled {
    border-color: #cbd5e1;
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}

.alert-secondary-button,
.alert-ghost-button {
    border: 1px solid #d4dce8;
    background: #fff;
    color: #2854d8;
}

.alert-step-side {
    display: grid;
    gap: 12px;
    align-content: start;
    padding: 16px;
    border: 1px solid #edf2f7;
    border-radius: 10px;
    background: #f8fafc;
}

.alert-side-title {
    color: #334155;
    font-size: 14px;
    font-weight: 800;
}

.alert-evidence-error {
    color: #dc2626;
    font-size: 13px;
    font-weight: 800;
    animation: evidenceBlink 1s ease-in-out infinite;
}

.alert-uploaded-grid,
.alert-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.alert-evidence-icon {
    display: inline-grid;
    grid-template-rows: 1fr auto;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 4px;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    background: #fff;
    color: #2854d8;
    cursor: pointer;
    line-height: 1;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.alert-evidence-icon:hover {
    border-color: #2f6fed;
    box-shadow: 0 8px 18px rgba(47, 111, 237, 0.14);
    transform: translateY(-1px);
}

.alert-evidence-icon span {
    font-size: 15px;
    font-weight: 900;
}

.alert-evidence-icon small {
    color: #64748b;
    font-size: 10px;
}

.alert-preview-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 6px 34px 6px 6px;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    background: #fff;
}

.alert-preview-name {
    max-width: 150px;
    overflow: hidden;
    color: #475569;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.alert-upload-box {
    display: inline-grid;
    grid-template-columns: auto auto;
    place-items: center;
    justify-content: center;
    gap: 6px 8px;
    min-height: 58px;
    width: 100%;
    padding: 10px 12px;
    border: 1px dashed #aebbd0;
    border-radius: 10px;
    background: #fff;
    color: #475569;
    cursor: pointer;
    text-align: center;
}

.alert-upload-box:hover {
    border-color: #2f6fed;
    color: #2854d8;
    background: #f7faff;
}

.alert-step-card.is-locked .alert-upload-box,
.alert-upload-box:has(.alert-upload-input:disabled) {
    border-color: #dbe3ef;
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
}

.alert-step-card.is-locked .alert-upload-icon,
.alert-upload-box:has(.alert-upload-input:disabled) .alert-upload-icon {
    background: #e2e8f0;
    color: #94a3b8;
}

.alert-upload-input {
    display: none;
}

.alert-upload-icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #eef4ff;
    color: #2854d8;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
}

.alert-upload-box small {
    grid-column: 1 / -1;
    color: #94a3b8;
    font-size: 12px;
}

.alert-evidence-form,
.alert-evidence-picker {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    min-width: 0;
}

.alert-evidence-note {
    width: 100%;
    min-height: 36px;
    padding: 7px 10px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
}

.alert-preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
    line-height: 1;
}

.alert-empty-evidence {
    color: #94a3b8;
    font-size: 13px;
}

.alert-modal-open {
    overflow: hidden;
}

.alert-image-modal[hidden] {
    display: none;
}

.alert-image-modal {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    justify-content: flex-end;
}

.alert-image-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.38);
    cursor: pointer;
}

.alert-image-panel {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto 1fr;
    width: min(52vw, 820px);
    min-width: min(520px, 72vw);
    height: 100vh;
    background: #fff;
    box-shadow: -18px 0 42px rgba(15, 23, 42, 0.22);
}

.alert-image-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
    border-bottom: 1px solid #e5eaf1;
}

.alert-image-title {
    color: #0f172a;
    font-size: 18px;
    font-weight: 900;
}

.alert-image-caption {
    max-width: 520px;
    overflow: hidden;
    color: #64748b;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.alert-image-close {
    padding: 8px 14px;
    border: 1px solid #d4dbe8;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    cursor: pointer;
}

.alert-image-close:hover {
    border-color: #2f6fed;
    color: #2854d8;
}

.alert-image-body {
    display: grid;
    place-items: center;
    min-height: 0;
    padding: 20px;
    background: #f8fafc;
}

.alert-image-body img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
    object-fit: contain;
}

.alert-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 18px;
    background: #fff;
}

.alert-hero-main {
    min-width: 320px;
}

.alert-hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.alert-pill {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 5px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #475569;
    white-space: nowrap;
}

.alert-pill strong {
    color: #0f172a;
}

.alert-pill-warning {
    border-color: #f4c542;
    background: #fff8db;
}

.alert-pill-danger {
    border-color: #ef9a9a;
    background: #fff1f2;
}

.alert-info-list {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 10px 14px;
}

.alert-info-list dt {
    color: #334155;
    font-weight: 700;
}

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

.alert-log-list {
    display: grid;
}

.alert-log-item {
    display: grid;
    gap: 5px;
    padding: 12px 16px;
    border-top: 1px solid #edf2f7;
}

.alert-log-item:first-child {
    border-top: 0;
}

.alert-log-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #64748b;
    font-size: 12px;
}

.alert-log-event {
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
}

.alert-log-event-success {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.alert-log-check {
    display: inline-grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 999px;
    background: #22c55e;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 0 0 3px #dcfce7;
}

.alert-log-note {
    color: #475569;
    font-size: 13px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.alert-rule-guide {
    padding: 16px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #f8fbff;
}

.alert-rule-guide-title {
    margin-bottom: 10px;
    color: #1e3a8a;
    font-size: 15px;
    font-weight: 800;
}

.alert-rule-guide-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.alert-rule-guide-grid strong {
    display: block;
    margin-bottom: 4px;
    color: #0f172a;
    font-size: 14px;
}

.alert-rule-guide-grid p {
    margin: 0;
    color: #475569;
    font-size: 13px;
    line-height: 1.55;
}

.alert-rule-examples {
    display: grid;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e0e7ff;
    color: #334155;
    font-size: 13px;
}

.alert-rule-examples code {
    color: #1d4ed8;
    white-space: normal;
}

.alert-condition-cell {
    min-width: 360px;
}

.alert-condition-builder {
    display: grid;
    gap: 8px;
}

.alert-condition-list {
    display: grid;
    gap: 8px;
}

.alert-condition-row {
    display: grid;
    grid-template-columns: minmax(130px, 1.2fr) minmax(90px, 0.8fr) minmax(90px, 0.8fr) auto;
    gap: 8px;
    align-items: center;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.alert-condition-builder.is-compact .alert-condition-row {
    grid-template-columns: minmax(110px, 1.1fr) minmax(78px, 0.7fr) minmax(78px, 0.7fr) auto;
    gap: 6px;
    padding: 6px;
}

.alert-condition-builder.is-compact .btn {
    white-space: nowrap;
}

.alert-condition-builder > .btn {
    width: fit-content;
}

.alert-repeat-stack {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.alert-summary-history {
    display: grid;
    gap: 12px;
}

.alert-summary-title {
    color: #0f172a;
    font-size: 16px;
    font-weight: 800;
}

.alert-summary-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.alert-summary-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: #64748b;
    font-size: 13px;
}

.alert-summary-list {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 8px 14px;
}

.alert-summary-list dt {
    color: #334155;
    font-weight: 800;
}

.alert-summary-list dd {
    margin: 0;
    color: #0f172a;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.alert-summary-hover-button {
    white-space: nowrap;
}

.alert-summary-popover {
    position: fixed;
    z-index: 1080;
    width: min(420px, calc(100vw - 24px));
    padding: 14px;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
}

.alert-summary-popover-title {
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #eef2f7;
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
}

.alert-summary-popover-list {
    grid-template-columns: 88px minmax(0, 1fr);
    font-size: 14px;
    line-height: 1.6;
}

.task-toast-stack {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1090;
    display: grid;
    width: min(360px, calc(100vw - 32px));
    gap: 12px;
    pointer-events: none;
}

.task-toast {
    position: relative;
    display: grid;
    gap: 8px;
    padding: 16px 18px;
    border: 1px solid #c7d2fe;
    border-left: 5px solid #4f6df5;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
    pointer-events: auto;
    animation: task-toast-in 0.18s ease-out;
}

.task-toast-kicker {
    color: #4f6df5;
    font-size: 13px;
    font-weight: 800;
}

.task-toast-title {
    padding-right: 28px;
    color: #0f172a;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
}

.task-toast-meta {
    color: #64748b;
    font-size: 14px;
}

.task-toast-actions {
    display: flex;
    justify-content: flex-end;
}

.task-toast-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 7px;
    background: #4f6df5;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.task-toast-link:hover {
    background: #3f5ee8;
    color: #ffffff;
}

.task-toast-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    line-height: 1;
}

.task-toast-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.issue-page {
    max-width: 1480px;
    margin: 0 auto;
}

.issue-compose-card {
    overflow: hidden;
}

.issue-compose-card .card-body {
    padding: 22px;
}

.issue-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid #edf2f7;
}

.issue-form {
    max-width: 960px;
}

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

.issue-field {
    display: grid;
    gap: 7px;
}

.issue-field.is-time {
    max-width: 360px;
}

.issue-field .form-label {
    margin-bottom: 0;
    color: #334155;
    font-weight: 700;
}

.issue-field .form-control {
    border-color: #dbe3ef;
    border-radius: 8px;
}

.issue-field textarea.form-control {
    min-height: 112px;
}

.issue-field .form-control:focus {
    border-color: #84a9ff;
    box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.12);
}

.issue-submit-row {
    display: flex;
    justify-content: flex-start;
    padding-top: 2px;
}

.issue-submit-button {
    min-width: 132px;
    min-height: 42px;
    border-radius: 8px;
    font-weight: 800;
}

.issue-form textarea,
.issue-opinion-form textarea {
    resize: vertical;
}

.issue-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

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

.issue-table th,
.issue-table td {
    padding: 14px 12px;
    vertical-align: top;
}

.issue-table tbody tr {
    background: #fff;
}

.issue-table tbody tr:nth-child(odd) {
    background: #fbfcfe;
}

.issue-table tbody tr:hover {
    background: #f6f9ff;
}

.issue-col-time {
    width: 132px;
}

.issue-col-action {
    width: 82px;
}

.issue-col-user {
    width: 72px;
}

.issue-col-title {
    width: 18%;
}

.issue-col-content {
    width: 24%;
}

.issue-col-solution {
    width: 22%;
}

.issue-col-opinion {
    width: 26%;
}

.issue-time-col {
    white-space: normal;
    word-break: break-word;
}

.issue-user-col {
    color: #334155;
    font-weight: 700;
    white-space: normal;
    word-break: break-word;
}

.issue-action-col {
    text-align: center;
    white-space: nowrap;
}

.issue-title-col {
    font-weight: 800;
    color: #0f172a;
}

.issue-text-col,
.issue-opinion-col {
    white-space: normal;
    overflow-wrap: anywhere;
}

.issue-cell-text {
    max-width: 100%;
    color: #1f2937;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

.issue-cell-text.is-title {
    color: #0f172a;
    font-weight: 800;
}

.issue-opinion-form {
    display: grid;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.issue-opinion-form textarea {
    width: 100%;
    min-height: 98px;
    border-color: #dbe3ef;
    border-radius: 8px;
    line-height: 1.5;
}

@media (max-width: 1200px) {
    .dashboard-priority-grid,
    .dashboard-payment-grid,
    .dashboard-sales-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .issue-table {
        font-size: 14px;
    }

    .issue-table th,
    .issue-table td {
        padding: 12px 10px;
    }

    .issue-col-time {
        width: 118px;
    }

    .issue-col-user {
        width: 64px;
    }
}

@media (max-width: 768px) {
    .dashboard-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-range {
        white-space: normal;
    }

    .dashboard-priority-grid,
    .dashboard-payment-grid,
    .dashboard-sales-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-today-card,
    .dashboard-yesterday-card,
    .dashboard-sales-compare {
        grid-column: span 1;
    }

    .dashboard-panel-head {
        flex-direction: column;
    }
}

.issue-opinion-actions {
    display: flex;
    justify-content: flex-end;
}

.issue-opinion-actions .btn {
    min-width: 86px;
    width: fit-content;
}

@keyframes task-toast-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-detail-page textarea {
    resize: vertical;
}

.store-select {
    position: relative;
}

.store-select > .form-select {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-select-panel {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 1060;
    display: none;
    width: min(280px, 90vw);
    overflow: hidden;
    border: 1px solid #cfd7e6;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
}

.store-select.is-open .store-select-panel {
    display: block;
}

.store-select-search {
    border: 0;
    border-bottom: 1px solid #3f6df6;
    border-radius: 0;
}

.store-select-options {
    max-height: 230px;
    overflow: auto;
    padding: 6px 0;
}

.store-select-option {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    cursor: pointer;
}

.store-select-option:hover {
    background: #f4f7ff;
}

.store-select-option span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-select-option small {
    color: #8a94a6;
    white-space: nowrap;
}

.store-select-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 8px;
    border-top: 1px solid #e5eaf2;
    background: #f8fafc;
}

.store-select-empty {
    padding: 16px 12px;
    text-align: center;
}

.vp-upload-preview-block {
    margin-top: 10px;
}

.vp-upload-preview-title {
    margin-bottom: 6px;
    color: #667085;
    font-size: 0.82rem;
}

.vp-upload-preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vp-upload-preview-card {
    display: flex;
    width: 104px;
    overflow: hidden;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
    border: 1px solid #d9e0ec;
    border-radius: 6px;
    background: #fff;
}

.vp-upload-preview-card:hover {
    color: inherit;
    border-color: #3f6df6;
}

.vp-upload-preview-card img {
    width: 100%;
    height: 78px;
    object-fit: cover;
    background: #f4f6f9;
}

.vp-upload-preview-card span {
    overflow: hidden;
    padding: 5px 6px;
    font-size: 0.75rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-image-upload {
    padding: 14px;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
}

.task-image-preview {
    display: flex;
    min-width: 0;
    margin-top: 12px;
    align-items: center;
    gap: 12px;
}

.task-image-preview > img {
    width: 84px;
    height: 64px;
    flex: 0 0 auto;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #ffffff;
    object-fit: cover;
}

.task-image-preview > div {
    min-width: 0;
}

@keyframes taskAttention {
    0%, 100% {
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
        border-color: rgba(220, 53, 69, 0.28);
    }
    50% {
        box-shadow: 0 8px 26px rgba(220, 53, 69, 0.28);
        border-color: rgba(220, 53, 69, 0.7);
    }
}

@keyframes taskPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

@keyframes evidenceBlink {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 0 0 rgba(220, 38, 38, 0);
    }
    50% {
        opacity: 0.45;
        text-shadow: 0 0 10px rgba(220, 38, 38, 0.45);
    }
}

@media (max-width: 992px) {
    .alerts-workspace {
        max-width: 100%;
    }

    .alert-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .alert-hero-meta {
        justify-content: flex-start;
    }

    .alert-step-fields,
    .alert-step-fields.with-one-change,
    .alert-step-fields.with-before-after,
    .alert-step-simple,
    .alert-step-grid,
    .alert-step-evidence-row,
    .alert-evidence-form {
        grid-template-columns: 1fr;
    }

    .alert-step-checks,
    .alert-step-actions {
        justify-content: flex-start;
    }

    .alerts-title-col,
    .alerts-title-clip {
        max-width: 360px;
    }

    .sales-page {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .sales-table {
        min-width: 980px;
    }

    .sales-table-wrap {
        max-height: none;
        min-height: 0;
    }

    .sales-detail-head,
    .sales-pagination {
        align-items: flex-start;
        flex-direction: column;
    }

    .sales-upload-form,
    .sales-upload-main {
        grid-template-columns: 1fr;
    }

    .sales-upload-badge {
        width: fit-content;
        min-width: 46px;
        height: 34px;
        padding: 0 10px;
    }

    .alert-rule-guide-grid {
        grid-template-columns: 1fr;
    }

    .alert-condition-row,
    .alert-condition-builder.is-compact .alert-condition-row {
        grid-template-columns: 1fr;
    }

    .alert-summary-list {
        grid-template-columns: 1fr;
    }
}

.finance-expected-cell {
    display: flex;
    min-width: 138px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
}

.finance-amount-input[readonly] {
    border-color: #d6dee9;
    background: #f1f4f8;
    color: #334155;
    cursor: default;
}

.finance-amount-unlock {
    align-self: flex-end;
    padding: 1px 0;
    font-size: 12px;
    text-decoration: none;
}

.finance-currency-cell {
    display: flex;
    min-width: 86px;
    flex-direction: column;
    gap: 2px;
}

.finance-currency-select:disabled {
    border-color: #d6dee9;
    background-color: #f1f4f8;
    color: #334155;
    opacity: 1;
}

.finance-currency-unlock {
    align-self: flex-end;
    padding: 1px 0;
    font-size: 12px;
    text-decoration: none;
}

.finance-account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
    gap: 16px;
}

.finance-account-list-card {
    overflow: hidden;
    overflow-anchor: none;
}

.finance-account-list-table {
    min-width: 1700px;
}

.finance-account-list-table th {
    white-space: nowrap;
}

.finance-account-list-table thead th {
    text-align: center;
    vertical-align: middle;
}

.finance-account-list-table td {
    padding-top: 10px;
    padding-bottom: 10px;
}

.finance-account-list-table th:last-child,
.finance-account-list-table td:last-child {
    position: sticky;
    right: 0;
    width: 155px;
    min-width: 155px;
    max-width: 155px;
    background: #fff;
    box-shadow: -8px 0 14px rgba(15, 23, 42, 0.08);
}

.finance-account-list-table .finance-account-warranty-column {
    width: 250px;
    min-width: 250px;
    max-width: 250px;
}

.finance-account-list-table th:last-child {
    z-index: 4;
    background: #f8fafc;
}

.finance-account-list-table td:last-child {
    z-index: 2;
}

.finance-account-store-cell {
    width: 205px;
    min-width: 205px;
}

.finance-account-store-cell .finance-account-table-edit {
    display: flex;
    align-items: center;
    min-width: 195px;
    max-width: 205px;
}

.finance-account-store-cell .finance-account-table-edit .form-control {
    width: 135px;
    flex: 0 0 135px;
}

.finance-account-store-cell .finance-account-table-edit .btn {
    justify-self: auto;
}

.finance-account-binding-cell {
    width: 125px;
    min-width: 125px;
}

.finance-account-binding-cell .finance-account-table-edit {
    width: 116px;
    min-width: 116px;
    max-width: 116px;
}

.finance-account-table-edit {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    min-width: 165px;
    gap: 6px;
}

.finance-account-table-edit .form-control {
    min-width: 0;
}

.finance-account-table-edit .btn {
    justify-self: center;
    min-width: 52px;
    white-space: nowrap;
}

.finance-account-table-secret {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    min-width: 132px;
    max-width: 145px;
    gap: 6px;
}

.finance-account-table-secret .form-control {
    flex: 0 0 100%;
    width: 100%;
}

.finance-account-table-secret .btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.finance-account-lock-input[readonly] {
    border-color: #d1d5db;
    background: #e5e7eb;
    color: #4b5563;
    cursor: default;
}

.finance-account-lock-input.is-editing {
    background: #fff;
    color: #111827;
}

.finance-account-owner-action {
    min-width: 155px;
    text-align: center;
}

.finance-account-owner-action > .btn {
    width: 132px;
    margin-top: 7px;
    font-size: 13px;
}

.finance-account-availability-panel {
    display: grid;
    justify-items: center;
    gap: 5px;
    margin-top: 7px;
}

.finance-account-availability-panel form {
    flex: 0 0 auto;
    margin: 0;
}

.finance-account-availability-panel .btn {
    width: 132px;
    font-size: 13px;
}

.finance-account-availability-warnings {
    display: grid;
    width: 132px;
    gap: 2px;
    color: #dc2626;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
}

.finance-account-availability-warnings.is-flashing {
    animation: evidenceBlink 1s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .finance-account-availability-warnings.is-flashing {
        animation: none;
    }
}

.finance-account-password-column {
    width: 150px;
    min-width: 150px;
}

.finance-account-email-column {
    width: 220px;
    min-width: 220px;
    max-width: 220px;
}

.finance-account-email-text {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.35;
    max-height: 2.7em;
    overflow-wrap: anywhere;
    white-space: normal;
}

.finance-account-payment-column {
    width: 220px;
    min-width: 220px;
    overflow-wrap: anywhere;
}

.finance-account-country-column {
    width: 90px;
    min-width: 90px;
    text-align: center;
}

.finance-account-progress-line {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
}

.finance-account-progress-line [data-progress-text] {
    flex: 0 0 185px;
    width: 185px;
    white-space: nowrap;
}

.finance-account-progress-line form {
    margin: 0;
}

.finance-account-progress-line .btn {
    padding: 1px 7px;
    white-space: nowrap;
}

.finance-account-form-modal {
    max-width: 560px;
}

.finance-account-form-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.finance-account-form-row {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.finance-account-form-row > label {
    margin: 0;
    text-align: right;
    white-space: nowrap;
}

.finance-account-form-row > .form-control,
.finance-account-form-row > .form-select,
.finance-account-form-row > .input-group {
    min-width: 0;
}

@media (max-width: 480px) {
    .finance-account-form-row {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 8px;
    }
}

.finance-account-search {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(150px, 220px) auto;
    align-items: end;
    gap: 12px;
}

.finance-account-keyword,
.finance-account-provider-filter {
    min-width: 0;
}

.finance-account-search-actions {
    display: flex;
    gap: 8px;
}

.finance-account-card {
    min-width: 0;
}

.finance-account-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 20px;
    margin: 0;
}

.finance-account-details > div {
    min-width: 0;
}

.finance-account-details dt {
    margin-bottom: 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.finance-account-details dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.finance-secret-row {
    display: flex;
    gap: 6px;
}

.finance-secret-row .form-control {
    min-width: 0;
}

.finance-account-store-field,
.finance-account-binding-field {
    grid-column: 1 / -1;
}

.finance-account-store-form,
.finance-account-binding-form {
    display: flex;
    gap: 6px;
    max-width: 420px;
}

.finance-account-store-form .form-control,
.finance-account-binding-form .form-control {
    min-width: 0;
}

@media (max-width: 640px) {
    .finance-account-search {
        grid-template-columns: 1fr;
    }

    .finance-account-details {
        grid-template-columns: 1fr;
    }
}

.sku-monitor-table thead th {
    white-space: nowrap;
    vertical-align: middle;
}

.sku-monitor-nowrap {
    white-space: nowrap;
}

.sku-monitor-sku-cell {
    width: 180px;
    min-width: 180px;
    max-width: 180px;
}

.sku-monitor-sku-content {
    width: 180px;
    max-width: 180px;
}

.sku-monitor-ellipsis {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sku-monitor-trend-cell {
    min-width: 300px;
}

@keyframes sku-monitor-checking-pulse {
    0%, 100% { background-color: rgba(13, 110, 253, 0.03); }
    50% { background-color: rgba(13, 110, 253, 0.12); }
}

.sku-monitor-row-checking > td {
    animation: sku-monitor-checking-pulse 1.4s ease-in-out infinite;
}

.bulk-row-status {
    min-height: 22px;
    white-space: nowrap;
}
/* Review plans */
.review-plans-page {
    max-width: 1640px;
    margin: 0 auto;
}

.review-plan-form-card,
.review-plans-page .table-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.review-plan-form-card .card-body {
    max-width: 980px;
}

.review-plan-form-card .row {
    display: block;
}

.review-plan-form-card .row > [class*="col-"] {
    width: 100%;
    max-width: 100%;
    margin-bottom: 16px;
}

.review-plan-form-card .form-control,
.review-plan-form-card textarea {
    max-width: 100%;
}

.review-plan-form-card textarea {
    min-height: 118px;
}

.review-plan-form-card .d-flex.align-items-end {
    align-items: stretch !important;
}

.review-plan-form-card .btn {
    min-height: 42px;
}

.review-plan-table {
    table-layout: fixed;
    width: 100%;
}

.review-plan-table th,
.review-plan-table td {
    vertical-align: top;
}

.review-plan-table th:nth-child(1) {
    width: 6%;
}

.review-plan-table th:nth-child(2) {
    width: 8%;
}

.review-plan-table th:nth-child(3) {
    width: 10%;
}

.review-plan-table th:nth-child(4) {
    width: 12%;
}

.review-plan-table th:nth-child(5) {
    width: 20%;
}

.review-plan-table th:nth-child(6) {
    width: 11%;
}

.review-plan-table th:nth-child(7) {
    width: 6%;
}

.review-plan-table th:nth-child(8) {
    width: 6%;
}

.review-plan-table th:nth-child(9) {
    width: 16%;
}

.review-plan-table th:nth-child(10) {
    width: 5%;
}

.review-plan-asin {
    font-weight: 700;
    color: #111827;
    overflow-wrap: anywhere;
}

.review-plan-text,
.review-plan-content {
    white-space: pre-wrap;
    word-break: break-word;
    color: #1f2937;
}

.review-plan-content {
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.review-plan-search-actions > .btn {
    flex: 1 1 0;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.review-image-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.review-image-item {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.review-image-thumb {
    position: relative;
    display: inline-flex;
    width: 48px;
    height: 48px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    overflow: visible;
    background: #f8fafc;
    align-items: center;
    justify-content: center;
}

.review-image-thumb > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 7px;
}

.review-image-preview {
    position: fixed;
    right: 32px;
    top: 96px;
    z-index: 1050;
    display: none;
    width: min(48vw, 720px);
    height: min(62vh, 620px);
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.24);
}

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

.review-image-thumb:hover .review-image-preview {
    display: block;
}

.review-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.review-status-history {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.review-status-history-item {
    display: grid;
    grid-template-columns: minmax(58px, auto) 1fr;
    align-items: center;
    gap: 6px;
}

.review-status-history-item.is-complete {
    grid-template-columns: auto 1fr;
    gap: 2px;
}

.review-status-past-label {
    color: #4b5563;
    font-size: 12px;
    line-height: 1.35;
    white-space: nowrap;
}

.review-status-time {
    color: #6b7280;
    font-size: 12px;
    line-height: 1.35;
    white-space: nowrap;
}

.review-status-pending {
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fbbf24;
}

.review-status-processing {
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #93c5fd;
}

.review-status-done {
    color: #166534;
    background: #f0fdf4;
    border: 1px solid #86efac;
}

.review-status-arranged {
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #93c5fd;
}

.review-action-stack {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
    width: 100%;
}

.review-action-stack form {
    margin: 0;
    flex: 1 1 100%;
}

.review-action-stack > a {
    flex: 1 1 100%;
}

.review-action-stack .btn {
    width: 100%;
    min-width: 0;
    padding: 3px 7px;
    font-size: 12px;
    white-space: nowrap;
}

.vp-review-table {
    width: 100%;
    min-width: 1290px;
    table-layout: fixed;
    overflow-anchor: none;
}

.vp-reviews-page,
.vp-reviews-page * {
    overflow-anchor: none;
}

.vp-review-create-modal .modal-dialog {
    max-height: calc(100vh - 48px);
}

.vp-review-create-modal .modal-content {
    max-height: calc(100vh - 48px);
}

.vp-review-create-modal .modal-body {
    overflow-y: auto;
}

.vp-review-create-modal .modal-footer {
    flex-shrink: 0;
    background: #ffffff;
}

.brand-import-file {
    width: 220px;
}

.brand-registration-table {
    min-width: 1240px;
    table-layout: fixed;
}

.brand-registration-table th,
.brand-registration-table td {
    text-align: center;
    vertical-align: middle;
}

.brand-registration-table th:nth-child(1),
.brand-registration-table td:nth-child(1) {
    width: 13%;
}

.brand-registration-table th:nth-child(2),
.brand-registration-table td:nth-child(2) {
    width: 17%;
}

.brand-registration-table th:nth-child(3),
.brand-registration-table td:nth-child(3) {
    width: 8%;
}

.brand-registration-table th:nth-child(4),
.brand-registration-table td:nth-child(4) {
    width: 9%;
}

.brand-registration-table th:nth-child(5),
.brand-registration-table td:nth-child(5) {
    width: 8%;
}

.brand-registration-table th:nth-child(6),
.brand-registration-table td:nth-child(6) {
    width: 13%;
}

.brand-registration-table th:nth-child(7),
.brand-registration-table td:nth-child(7) {
    width: 12%;
}

.brand-registration-table th:nth-child(8),
.brand-registration-table td:nth-child(8) {
    width: 11%;
}

.brand-registration-table th:nth-child(9),
.brand-registration-table td:nth-child(9) {
    width: 12%;
}

.brand-text-cell {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-registration-table td.brand-text-cell {
    display: table-cell;
    vertical-align: middle;
}

.brand-registration-table span.brand-text-cell {
    display: inline-block;
    vertical-align: middle;
}

.brand-registration-table .btn {
    white-space: nowrap;
}

.brand-store-chip-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}

.brand-store-chip-list .badge {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-store-option-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px;
    max-height: 360px;
    overflow-y: auto;
}

.brand-store-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
}

.brand-store-option:hover {
    background: #f8fafc;
}

@media (max-width: 768px) {
    .brand-import-file {
        width: 180px;
    }
}

.vp-date-range-picker {
    position: relative;
}

.vp-date-range-panel {
    position: absolute;
    left: 0;
    top: calc(100% + 6px);
    z-index: 20;
    display: none;
    width: 360px;
    max-width: min(360px, calc(100vw - 32px));
    padding: 12px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
}

.vp-date-range-panel.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.vp-date-range-panel .d-flex {
    grid-column: 1 / -1;
}

.vp-review-table th,
.vp-review-table td {
    width: auto;
}

.vp-review-table th:nth-child(1),
.vp-review-table th:nth-child(3),
.vp-review-table th:nth-child(7),
.vp-review-table th:nth-child(8),
.vp-review-table th:nth-child(9) {
    white-space: nowrap;
}

.vp-review-table th:nth-child(1),
.vp-review-table td:nth-child(1) {
    width: 112px;
    min-width: 112px;
    max-width: 112px;
}

.vp-review-table th:nth-child(2),
.vp-review-table td:nth-child(2) {
    width: 210px;
    min-width: 210px;
    max-width: 210px;
}

.vp-review-table th:nth-child(3),
.vp-review-table td:nth-child(3) {
    width: 72px;
    min-width: 72px;
    max-width: 72px;
}

.vp-review-table th:nth-child(4),
.vp-review-table td:nth-child(4) {
    width: 126px;
    min-width: 126px;
    max-width: 126px;
}

.vp-review-table th:nth-child(5),
.vp-review-table td:nth-child(5) {
    width: 120px;
    min-width: 120px;
    max-width: 120px;
}

.vp-review-table th:nth-child(6),
.vp-review-table td:nth-child(6) {
    width: 82px;
    min-width: 82px;
    max-width: 82px;
}

.vp-review-table th:nth-child(7),
.vp-review-table td:nth-child(7) {
    width: 106px;
    min-width: 106px;
    max-width: 106px;
}

.vp-review-table th:nth-child(8),
.vp-review-table td:nth-child(8) {
    width: 70px;
    min-width: 70px;
    max-width: 70px;
}

.vp-review-table th:nth-child(9),
.vp-review-table td:nth-child(9) {
    width: 72px;
    min-width: 72px;
    max-width: 72px;
}

.vp-review-table th:nth-child(10),
.vp-review-table td:nth-child(10) {
    width: 200px;
    min-width: 200px;
    max-width: 200px;
}

.vp-review-table th:nth-child(11),
.vp-review-table td:nth-child(11) {
    width: 120px;
    min-width: 120px;
    max-width: 120px;
}

.vp-store-site-cell {
    overflow: hidden;
}

.vp-store-site-text {
    display: flex;
    align-items: baseline;
    gap: 4px;
    min-width: 0;
    max-width: 100%;
    font-size: 12px;
    white-space: nowrap;
}

.vp-frontend-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vp-store-site-suffix {
    flex: 0 0 auto;
    white-space: nowrap;
}

.vp-review-table input[type="file"] {
    min-width: 0;
    max-width: 100%;
}

.vp-fulfillment-form {
    min-width: 0;
}

.vp-order-progress {
    margin-bottom: 8px;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.vp-order-list {
    display: grid;
    gap: 10px;
}

.vp-order-card {
    width: 100%;
    min-width: 0;
    padding: 9px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #f8fafc;
}

.vp-order-card + .vp-order-card {
    margin-top: 0;
}

.vp-order-sequence {
    flex: 0 0 auto;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.vp-order-readonly {
    overflow-wrap: anywhere;
    font-weight: 600;
}

.vp-order-add-form {
    min-width: 0;
    margin-top: 10px;
    padding: 9px;
    border: 1px dashed #93c5fd;
    border-radius: 8px;
    background: #eff6ff;
}

.vp-add-order-button {
    width: 100%;
    margin-top: 10px;
}

.vp-order-locked {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.vp-order-value {
    flex: 1 1 auto;
    min-width: 0;
    padding: 5px 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #f3f4f6;
    color: #4b5563;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vp-screenshot-form {
    margin-top: 8px;
    min-width: 0;
}

.vp-screenshot-item {
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
}

.vp-screenshot-delete-form {
    margin: 0;
}

.vp-screenshot-delete-button {
    width: 100%;
    padding: 2px 6px;
    border: 1px solid #dc3545;
    border-radius: 5px;
    background: #fff;
    color: #dc3545;
    font-size: 12px;
    line-height: 1.25;
}

.vp-screenshot-delete-button:hover,
.vp-screenshot-delete-button:focus-visible {
    background: #dc3545;
    color: #fff;
}

.vp-export-warning {
    display: none;
    color: #dc2626;
    font-weight: 700;
    white-space: nowrap;
}

.vp-export-warning.is-visible {
    display: inline-block;
    animation: vp-export-warning-flash 0.9s ease-in-out 3;
}

.vp-row-action-error {
    display: none;
    flex: 0 0 100%;
    color: #dc2626;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.vp-row-action-error.is-visible {
    display: block;
    animation: vp-export-warning-flash 0.6s ease-in-out 2;
}

@keyframes vp-export-warning-flash {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.25;
    }
}

.vp-date-cell {
    white-space: nowrap;
}

.vp-fixed-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vp-keyword-cell {
    max-width: 24ch;
}

.vp-asin-cell {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vp-single-image-list {
    flex-wrap: nowrap;
    gap: 6px;
}

.vp-single-image-item {
    width: 100%;
    justify-content: flex-start;
}

.vp-single-image-thumb {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
}

@media (max-width: 992px) {
    .review-plan-table {
        table-layout: auto;
    }

    .vp-review-table {
        table-layout: fixed;
    }

    .review-image-preview {
        right: 16px;
        left: 16px;
        width: auto;
        height: 50vh;
    }
}
