:root{--admin-bg:#f5f7fb;--admin-panel:#fff;--admin-panel-soft:#f8fafc;--admin-border:#dbe3ef;--admin-border-soft:#e7edf5;--admin-text:#172033;--admin-muted:#64748b;--admin-primary:#2563eb;--admin-primary-soft:#eaf2ff;--admin-success:#16a34a;--admin-warning:#d97706;--admin-danger:#dc2626}*,:before,:after{box-sizing:border-box}html,body,#root{min-height:100%;margin:0}body{background:var(--admin-bg);color:var(--admin-text);font-feature-settings:"tnum"}a{color:var(--admin-primary)}.login-shell{background:linear-gradient(#ffffffc7,#f5f7fbf5),url(https://images.unsplash.com/photo-1581093458791-9d09cc6d3d35?auto=format&fit=crop&w=1800&q=80) 50%/cover;justify-content:center;align-items:center;min-height:100vh;padding:32px;display:flex}.login-panel{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#fffffff5;border:1px solid #dbe3efeb;border-radius:8px;width:min(100%,410px);padding:34px;box-shadow:0 24px 70px #0f172a24}.login-brand-block{align-items:center;gap:14px;display:flex}.login-brand-mark,.brand-mark{color:#fff;background:linear-gradient(135deg,#2563eb,#0f766e);flex:none;justify-content:center;align-items:center;display:inline-flex}.login-brand-mark{border-radius:8px;width:44px;height:44px;font-size:22px}.login-panel h2{letter-spacing:0;margin:0 0 2px}.login-panel form{margin-top:26px}.login-remember-item{margin-bottom:18px}.login-switch{text-align:center;margin-top:18px}.login-version{color:var(--admin-muted);text-align:center;margin-top:12px;font-size:12px;line-height:20px}.app-shell{background:var(--admin-bg);min-height:100vh}.app-sider{border-right:1px solid var(--admin-border-soft);z-index:20;height:100vh;position:sticky;top:0;overflow:auto;box-shadow:4px 0 22px #0f172a08}.app-sider .ant-layout-sider-children{flex-direction:column;min-height:100%;display:flex}.ant-layout-sider-zero-width-trigger{border:1px solid var(--admin-border);color:#334155;background:#fff;border-radius:8px;box-shadow:0 10px 28px #0f172a1f;z-index:40!important;position:fixed!important;top:8px!important;left:12px!important}.brand{border-bottom:1px solid var(--admin-border-soft);height:58px;color:var(--admin-text);align-items:center;gap:10px;padding:0 18px;font-size:16px;font-weight:700;display:flex}.brand-mark{border-radius:7px;width:30px;height:30px;font-size:16px}.brand-text{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.app-menu{padding:12px 0;border-inline-end:0!important}.app-sider-footer{border-top:1px solid var(--admin-border-soft);margin-top:auto;padding:14px 18px 18px;font-size:12px;line-height:20px}.app-header{z-index:15;border-bottom:1px solid var(--admin-border-soft);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);justify-content:flex-end;align-items:center;gap:14px;height:58px;padding:0 24px;display:flex;position:sticky;top:0}.app-header-user{align-items:baseline;gap:10px;min-width:0;display:flex}.app-header-role{font-size:12px}.app-content{min-width:0;padding:24px}.page-header{justify-content:space-between;align-items:center;gap:16px;min-height:40px;margin-bottom:16px;display:flex}.page-header-main{min-width:0}.page-header h3{color:var(--admin-text);letter-spacing:0;margin:0}.page-header-extra{justify-content:flex-end}.panel{background:var(--admin-panel);border:1px solid var(--admin-border-soft);border-radius:8px;padding:18px;box-shadow:0 12px 30px #0f172a0a}.filter-bar{flex-wrap:wrap;justify-content:flex-start;align-items:center;gap:8px;margin-bottom:14px;display:flex}.filter-fields{flex-wrap:wrap;flex:0 auto;align-items:center;gap:8px;min-width:0;display:flex}.filter-actions{flex:none;align-items:center;display:flex}.filter-search-button,.merchant-filter-bar>.ant-btn{flex:none}.filter-fields>.ant-input-search{width:280px}.filter-fields>.ant-input,.filter-fields>.ant-input-affix-wrapper,.merchant-filter-bar>.ant-input,.merchant-filter-bar>.ant-input-affix-wrapper{width:188px}.filter-fields>.ant-select,.merchant-filter-bar>.ant-select{width:168px}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:18px;display:grid}.form-upload-grid{grid-template-columns:repeat(3,minmax(0,1fr));column-gap:18px;display:grid}.form-section{border-top:1px solid var(--admin-border-soft);padding-top:18px}.form-section:first-child{border-top:0;padding-top:0}.form-section+.form-section{margin-top:18px}.form-section-title{color:#263548;margin-bottom:14px;font-size:14px;display:block}.merchant-edit-modal .ant-modal-body{max-height:calc(100vh - 190px);padding-top:14px;overflow-y:auto}.merchant-edit-form .form-grid{grid-template-columns:repeat(3,minmax(0,1fr));column-gap:14px}.merchant-edit-form .form-upload-grid{column-gap:14px}.merchant-edit-form .form-section{padding-top:14px}.merchant-edit-form .form-section+.form-section{margin-top:14px}.merchant-edit-form .form-section-title{margin-bottom:10px}.merchant-edit-form .ant-form-item{margin-bottom:12px}.merchant-edit-form .merchant-detail-content-editor{padding:12px}.category-tags-select{align-items:flex-start;min-height:116px}.category-tags-select .ant-select-content{flex-wrap:wrap;align-content:flex-start;align-items:flex-start;gap:4px;min-height:102px;max-height:102px;padding-top:4px;display:flex;overflow:hidden auto}.category-tags-select .ant-select-content-item{max-width:100%}.category-tags-select .ant-select-content-item:not(.ant-select-content-item-suffix){flex:none}.category-tags-select .ant-select-content-item-suffix{flex:1 0 96px;min-width:96px}.category-tags-select .ant-select-selector{align-items:flex-start!important;min-height:116px!important;padding-top:6px!important;padding-bottom:6px!important}.category-tags-select .ant-select-selection-overflow{align-content:flex-start;min-height:102px;max-height:102px;overflow-y:auto}.category-tags-select .ant-select-selection-overflow,.category-tags-select .ant-select-selection-overflow-item{flex-wrap:wrap}.category-tags-select .ant-select-selection-item{max-width:100%}.inline-create-form{background:var(--admin-panel-soft);border:1px solid var(--admin-border-soft);border-radius:8px;gap:8px;margin-bottom:18px;padding:14px}.inline-create-form .ant-form-item{margin-bottom:8px}.metric-grid{grid-template-columns:repeat(3,minmax(170px,1fr));gap:14px;display:grid}.metric-item{border:1px solid var(--admin-border-soft);background:linear-gradient(#fff,#f8fafc);border-radius:8px;padding:16px;position:relative;overflow:hidden}.metric-item:before{content:"";background:linear-gradient(180deg, var(--admin-primary), #0f766e);width:3px;position:absolute;inset:0 auto 0 0}.metric-label{font-size:13px;display:block}.metric-item strong{color:var(--admin-text);margin-top:8px;font-size:28px;line-height:1;display:block}.drawer-detail{margin-bottom:18px}.merchant-detail-drawer .ant-drawer-body{padding:18px 24px 24px}.merchant-detail-layout{gap:16px;display:grid}.merchant-detail-layout .form-section{border:1px solid var(--admin-border-soft);background:#fff;border-radius:8px;padding:16px}.merchant-detail-layout .form-section:first-child{border-top:1px solid var(--admin-border-soft);padding-top:16px}.merchant-detail-layout .form-section+.form-section{margin-top:0}.merchant-detail-layout .form-section-title{margin-bottom:12px}.merchant-detail-drawer .drawer-detail{margin-bottom:14px}.merchant-detail-drawer .detail-image-grid{grid-template-columns:repeat(auto-fit,minmax(116px,1fr));margin-bottom:0}.merchant-detail-drawer .merchant-detail-content-preview{max-width:760px}.lead-terminal-alert{margin-bottom:16px}.detail-image-grid{grid-template-columns:repeat(auto-fit,minmax(128px,1fr));gap:14px;margin-bottom:18px;display:grid}.detail-image-item{flex-direction:column;gap:8px;min-width:0;display:flex}.asset-thumbnail{object-fit:cover;border:1px solid var(--admin-border);background:var(--admin-panel-soft);border-radius:8px}.pre-line-text{white-space:pre-line;word-break:break-word}.merchant-detail-content-editor{border:1px solid var(--admin-border);background:var(--admin-panel-soft);border-radius:8px;padding:14px}.merchant-detail-content-toolbar{margin-bottom:12px}.merchant-detail-content-blocks{flex-direction:column;gap:12px;display:flex}.merchant-detail-content-block{border:1px solid var(--admin-border-soft);background:var(--admin-panel);border-radius:8px;padding:12px}.merchant-detail-content-block-header{justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px;display:flex}.merchant-detail-content-editor-image,.merchant-detail-content-preview-image{border:1px solid var(--admin-border);background:var(--admin-panel-soft);border-radius:8px;width:100%;max-width:100%}.merchant-detail-content-preview{flex-direction:column;gap:12px;display:flex}.narrow-form{max-width:460px}.image-key-field{--upload-card-aspect-ratio:1 / 1;--upload-card-width:104px;flex-direction:column;gap:10px;display:flex}.image-key-field .ant-upload-wrapper,.image-key-field .ant-upload-list{flex-wrap:wrap;display:flex}.image-key-field .ant-upload-wrapper.ant-upload-picture-card-wrapper .ant-upload.ant-upload-select,.image-key-field .ant-upload-wrapper.ant-upload-picture-card-wrapper .ant-upload-list.ant-upload-list-picture-card .ant-upload-list-item-container{width:var(--upload-card-width);height:auto;aspect-ratio:var(--upload-card-aspect-ratio)}.image-upload-help{max-width:min(100%,340px);font-size:12px;line-height:1.5}.upload-trigger{color:#52616f;cursor:pointer;background:0 0;border:0;flex-direction:column;justify-content:center;align-items:center;gap:6px;width:100%;height:100%;display:inline-flex}.upload-trigger:hover{color:var(--admin-primary)}.banner-product-order{flex-direction:column;gap:8px;margin:-8px 0 16px;display:flex}.banner-product-order .ant-list-item{align-items:center}.upload-trigger:disabled{cursor:not-allowed;color:#9aa5b1}.image-crop-panel{gap:14px;display:grid}.image-crop-canvas{border:1px solid var(--admin-border);object-fit:contain;background:#111827;border-radius:8px;width:100%;max-height:420px;display:block}.image-crop-controls{gap:8px;display:grid}.image-crop-control{color:#52616f;grid-template-columns:52px minmax(0,1fr);align-items:center;gap:12px;font-size:13px;display:grid}.status-tag,.tag-list .ant-tag{margin-inline-end:0}.ant-input-number{width:100%}.ant-form-item-explain-error{font-size:12px}.ant-table-wrapper{border-radius:8px;overflow-x:auto}.ant-table{min-width:760px}.ant-table-thead>tr>th{white-space:nowrap;font-weight:600}.ant-table-tbody>tr>td{vertical-align:top}.ant-table-cell .ant-space{flex-wrap:wrap;row-gap:6px}.table-actions{min-width:max-content}.table-actions .ant-btn,.table-actions-menu .ant-btn{white-space:nowrap;height:28px;padding:0 8px;font-size:13px;line-height:26px}.table-actions .ant-btn .anticon+span,.table-actions-menu .ant-btn .anticon+span{margin-inline-start:4px}.table-actions-menu{min-width:96px}.table-actions-menu .ant-space-item,.table-actions-menu .ant-popconfirm,.table-actions-menu .ant-btn{width:100%}.table-actions-menu .ant-btn{text-align:center;justify-content:center}.table-actions-menu .ant-btn>span:not(.anticon){text-align:center}.ant-pagination{margin-bottom:0!important}.ant-descriptions .ant-descriptions-item-label{color:var(--admin-muted);white-space:nowrap}.ant-descriptions .ant-descriptions-item-content{word-break:break-word}.ant-modal .ant-modal-content,.ant-drawer .ant-drawer-content{border-radius:8px}.ant-drawer .ant-drawer-header,.ant-modal .ant-modal-header{border-bottom:1px solid var(--admin-border-soft)}.ant-drawer .ant-drawer-body{padding:20px 24px}.ant-popconfirm .ant-popconfirm-message-title{font-weight:600}@media (width<=900px){.login-shell{align-items:flex-start;padding:28px 16px}.login-panel{padding:26px 20px}.app-content{padding:16px}.app-header{padding:0 14px 0 52px}.app-header-role{display:none}.page-header{flex-direction:column;align-items:flex-start}.page-header-extra,.page-header-extra .ant-space-item,.page-header-extra .ant-btn{width:100%}.filter-bar{flex-direction:column}.filter-fields,.filter-actions,.filter-actions .ant-btn,.filter-fields>.filter-search-button,.filter-fields>.ant-input-search,.filter-fields>.ant-input,.filter-fields>.ant-input-affix-wrapper,.filter-fields>.ant-select,.merchant-filter-bar>.ant-btn,.merchant-filter-bar>.ant-input,.merchant-filter-bar>.ant-input-affix-wrapper,.merchant-filter-bar>.ant-select{width:100%}.form-grid,.form-upload-grid,.merchant-edit-form .form-grid,.merchant-edit-form .form-upload-grid,.metric-grid{grid-template-columns:1fr}.inline-create-form{display:grid}.ant-modal{max-width:calc(100vw - 24px)}.ant-drawer .ant-drawer-body{padding:16px}}
