/* ========================================
   Store Management - UI Design System
   Report Center visual parity
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --bg-primary: #eceff7;
    --bg-white: #ffffff;
    --bg-hover: #f4f6fb;
    --border-color: #d9deea;
    --border-light: #f1f5f9;
    --text-primary: #1f2d45;
    --text-secondary: #6a7792;
    --text-muted: #94a3b8;
    --color-primary: #5f45b8;
    --color-primary-dark: #5138a0;
    --color-primary-bg: #f3f0ff;
    --color-danger: #ef4444;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-dialog: 0 20px 60px rgba(0, 0, 0, 0.15);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.2s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    font-family: var(--font-family);
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.app-container {
    min-height: 100vh;
    background: var(--bg-primary);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 28px 0;
    font-size: 13px;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--text-secondary);
}

.breadcrumb__separator {
    color: var(--text-muted);
    font-size: 11px;
}

.breadcrumb__item--active {
    color: var(--text-secondary);
    font-weight: 500;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 28px 20px;
}

.page-header__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.btn-export-main {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(108, 74, 182, 0.25);
}

.btn-export-main:hover {
    background: var(--color-primary-dark);
    box-shadow: 0 4px 16px rgba(108, 74, 182, 0.35);
    transform: translateY(-1px);
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 0 28px 16px;
    flex-wrap: wrap;
}

.filter-bar__left {
    display: flex;
    gap: 8px;
    flex: 1;
    min-width: 320px;
}

.filter-bar__right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-search-group {
    display: flex;
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-white);
}

.filter-search-group:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(108, 74, 182, 0.1);
}

.filter-dropdown {
    border-right: 1px solid var(--border-color);
    flex-shrink: 0;
}

.filter-select {
    appearance: none;
    padding: 9px 28px 9px 12px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--bg-white)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2394a3b8'/%3E%3C/svg%3E")
        no-repeat right 10px center;
    font-family: var(--font-family);
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    outline: none;
    min-width: 122px;
}

.filter-sort-group .filter-select {
    border: 1px solid var(--border-color);
}

.filter-input-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    position: relative;
}

.filter-input {
    width: 100%;
    padding: 9px 32px 9px 12px;
    border: none;
    outline: none;
    font-family: var(--font-family);
    font-size: 13px;
    color: var(--text-primary);
    background: transparent;
}

.filter-input::placeholder {
    color: var(--text-muted);
}

.filter-clear-btn {
    position: absolute;
    right: 8px;
    border: none;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 12px;
    padding: 2px 4px;
    border-radius: 999px;
}

.filter-clear-btn:hover {
    color: var(--text-secondary);
    background: #eef2f8;
}

.filter-date-group {
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0 4px;
    background: var(--bg-white);
}

.filter-date {
    padding: 8px;
    border: none;
    outline: none;
    font-family: var(--font-family);
    font-size: 12px;
    color: var(--text-primary);
    background: transparent;
    width: 126px;
}

.filter-date-separator {
    color: var(--text-muted);
    font-size: 12px;
}

.data-table-wrapper {
    margin: 0 28px 12px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.data-table-scroll {
    overflow-x: auto;
    overflow-y: visible;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
    font-size: 12px;
}

.data-table thead {
    position: sticky;
    top: 0;
    z-index: 2;
}

.data-table th {
    background: #e8ebf3;
    color: #6c7794;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #d8deea;
    position: sticky;
    top: 0;
}

.data-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    font-size: 12.5px;
}

.data-table tbody tr {
    transition: background 0.15s ease;
}

.data-table tbody tr:hover {
    background: var(--bg-hover);
}

.data-table tbody tr:nth-child(even) {
    background: #fcfbff;
}

.data-table tbody tr:nth-child(even):hover {
    background: var(--bg-hover);
}

.cell-currency {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

.cell-owner {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.owner-name {
    font-weight: 600;
    color: var(--text-primary);
}

.owner-count {
    font-size: 11px;
    color: var(--text-muted);
}

.actions-cell {
    display: flex;
    gap: 6px;
    align-items: center;
}

.table-action-btn {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: #6d7894;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.table-action-btn:hover:not(:disabled) {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-primary-bg);
}

.table-action-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.badge--success {
    background: #ecfdf5;
    color: #059669;
}

.badge--default {
    background: #f1f5f9;
    color: var(--text-secondary);
}

.data-table__empty {
    text-align: center;
    padding: 48px 16px !important;
    color: var(--text-muted);
    font-size: 14px;
}

.form-shell {
    padding: 22px;
}

.btn-filter-ghost {
    height: 36px;
    padding: 0 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-secondary);
    font-family: var(--font-family);
    font-size: 13px;
    cursor: pointer;
}

.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px 14px;
    border-top: 1px solid var(--border-light);
}

.pager-controls {
    display: flex;
    gap: 6px;
}

.pager-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #f2f4fa;
    color: #7b87a4;
    cursor: pointer;
}

.pager-btn--active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.pager-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.pager-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #8d99b3;
    font-size: 12px;
}

.pager-size {
    height: 30px;
    min-width: 62px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #f2f4fa;
    color: #54627d;
    padding: 0 8px;
}

.detail-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 28px 14px;
}

.detail-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.back-round-btn {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 999px;
    background: #e4e8f2;
    color: #44506b;
    font-size: 18px;
    cursor: pointer;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    padding: 0 20px 18px;
}

.detail-main,
.detail-side {
    min-width: 0;
}

.detail-layout .data-table-wrapper {
    margin: 0 0 12px;
}

.detail-profile-card {
    padding: 22px;
    display: grid;
    grid-template-columns: 102px minmax(0, 1fr);
    column-gap: 16px;
}

.profile-avatar {
    width: 102px;
    height: 102px;
    border-radius: 999px;
    background: #ded4fb;
    color: #664bc4;
    font-size: 36px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-main h2 {
    font-size: 30px;
    font-size: 28px;
    color: #1f2d45;
    margin-bottom: 8px;
}

.profile-main h2 span {
    font-size: 14px;
    color: #334155;
}

.profile-main p {
    color: #6a7792;
    margin-bottom: 3px;
}

.profile-stats {
    grid-column: 1 / -1;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e8ecf4;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.profile-stats span {
    display: block;
    color: #6b7693;
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
    font-size: 12px;
}

.profile-stats strong {
    color: #5d47b7;
    font-size: 20px;
    font-size: 16px;
}

.detail-form-card {
    overflow: hidden;
}

.detail-tabs {
    display: flex;
    gap: 26px;
    padding: 0 16px;
    border-bottom: 1px solid #e8ecf4;
}

.detail-tab {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 14px 2px;
    color: #8490a8;
    font-weight: 500;
    font-size: 15px;
    font-size: 14px;
}

.detail-tab--active {
    color: #5f45b8;
    border-bottom: 2px solid #5f45b8;
}

.address-tab-shell {
    padding-top: 20px;
}

.address-section-title {
    font-size: 22px;
    font-size: 18px;
    color: #24324a;
    margin-bottom: 8px;
    font-weight: 700;
}

.address-section-description {
    color: #4e5e7c;
    margin-bottom: 16px;
    max-width: 700px;
}

.address-add-row {
    width: 100%;
    height: 46px;
    border: 1px solid #d9deea;
    border-radius: 8px;
    background: #e8ebf2;
    color: #2f3f5f;
    font-size: 24px;
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
}

.address-add-row--secondary {
    margin-top: 10px;
    background: #f2f4f9;
}

.address-list {
    display: grid;
    gap: 8px;
    margin-bottom: 10px;
}

.address-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #dfe4ee;
    border-radius: 8px;
    padding: 10px 12px;
    background: #fafbff;
}

.address-list-item p {
    margin: 2px 0 0;
    color: #687793;
}

.address-editor-card {
    margin-top: 12px;
    border: 1px solid #dfe4ee;
    border-radius: 8px;
    background: #f4f6fb;
    padding: 16px;
}

.address-editor-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.address-editor-head h4 {
    color: #25334d;
    font-size: 22px;
    font-size: 18px;
}

.address-editor-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group--full {
    grid-column: 1 / -1;
}

.address-textarea {
    min-height: 72px;
    resize: vertical;
    height: auto;
    padding-top: 10px;
}

.side-note-card {
    padding: 0;
    margin-bottom: 12px;
}

.side-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #e8ecf4;
}

.side-card-header h3 {
    font-size: 20px;
    font-size: 18px;
    color: #1f2d45;
}

.side-card-header button {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 999px;
    background: #e9edf7;
    color: #56627d;
    font-size: 18px;
    cursor: pointer;
}

.side-note-card p {
    padding: 16px;
    color: #6a7792;
}

.detail-status-card {
    padding: 16px;
}

.detail-status-divider {
    border-top: 1px solid #e8ecf4;
    margin: 16px -16px 14px;
}

.detail-created-text {
    color: #5f6e8a;
    margin: 0 0 12px;
    padding: 0 !important;
}

.detail-status-warning {
    background: #fff3cd;
    border: 1px solid #f6e5a9;
    color: #b7791f;
    border-radius: 8px;
    padding: 12px 14px;
    font-weight: 600;
    margin-bottom: 14px;
}

.detail-status-save {
    width: 100%;
    justify-content: center;
}

@media (max-width: 1200px) {
    .detail-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

.modal-content--danger {
    width: min(480px, 92vw);
    padding: 24px 24px 18px;
}

.danger-icon {
    width: 62px;
    height: 62px;
    border-radius: 999px;
    border: 2px solid #f7a521;
    color: #f7a521;
    font-size: 40px;
    font-weight: 600;
    line-height: 1;
    margin: 2px auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body--center {
    text-align: center;
    padding: 6px 4px 10px;
}

.modal-body--center h2 {
    font-size: 30px;
    font-size: 28px;
    color: #202c42;
    margin-bottom: 10px;
}

.modal-body--center p {
    color: #6c7894;
}

.btn-danger-primary {
    border: none;
    border-radius: var(--radius-md);
    background: #3c54e4;
    color: #fff;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 500;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.checkbox-group {
    justify-content: end;
}

.form-input {
    height: 38px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    font-family: var(--font-family);
    font-size: 13px;
    color: var(--text-primary);
    background: var(--bg-white);
}

.form-input:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 74, 182, 0.1);
}

.form-input:disabled {
    background: #f8fafc;
    color: var(--text-muted);
}

.form-actions-inline {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.btn-cancel {
    padding: 9px 20px;
    background: var(--bg-white);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cancel:hover {
    background: var(--bg-primary);
}

.btn-export {
    padding: 9px 20px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-export:hover:not(:disabled) {
    background: var(--color-primary-dark);
}

.btn-export:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(2px);
    z-index: 1000;
}

.modal-content {
    width: min(420px, 92vw);
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-dialog);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-light);
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    border: none;
    background: transparent;
    font-size: 22px;
    color: var(--text-muted);
    cursor: pointer;
}

.modal-body {
    padding: 18px 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px 20px;
    border-top: 1px solid var(--border-light);
}

.btn-danger {
    border: none;
    border-radius: var(--radius-md);
    background: var(--color-danger);
    color: #fff;
    padding: 9px 16px;
    cursor: pointer;
}

.btn-secondary {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #fff;
    color: var(--text-secondary);
    padding: 9px 16px;
    cursor: pointer;
}

.page-loading-overlay {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.status-text {
    color: var(--text-muted);
}

.status-panel-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--bg-primary);
}

.status-panel {
    max-width: 480px;
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.status-panel--error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.status-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    background: #fef2f2;
    border: 2px solid #fecaca;
}

.status-icon--error {
    background: #fef2f2;
    border: 2px solid #fecaca;
    color: #dc2626;
}

.status-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin: 0;
}

.status-panel--error .status-title {
    color: #dc2626;
}

.status-message {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.status-footer {
    width: 100%;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.status-hint {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.loading-state,
.empty-state,
.error-state {
    text-align: center;
    padding: 46px 20px;
    color: var(--text-muted);
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.alert {
    padding: 12px 14px;
    border-radius: var(--radius-md);
    font-size: 13px;
    margin-top: 12px;
}

.alert-success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid #cbd5e1;
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner--large {
    width: 40px;
    height: 40px;
    border-width: 4px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 900px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .filter-bar {
        padding: 0 16px 12px;
    }

    .breadcrumb {
        padding: 12px 16px 0;
    }

    .data-table-wrapper {
        margin: 0 16px 12px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .detail-topbar {
        padding: 12px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .detail-layout {
        grid-template-columns: 1fr;
        padding: 0 16px 16px;
    }

    .profile-stats {
        grid-template-columns: 1fr;
    }

    .table-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

 # b l a z o r - e r r o r - u i   {   d i s p l a y :   n o n e ;   } 
 
 