:root { --bg:#f5f7fa; --surface:#fff; --ink:#1e2935; --muted:#718096; --line:#e4e9ef; --blue:#1d67d8; --green:#16846a; --red:#b53b42; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif; }
* { box-sizing:border-box; } body { margin:0; background:var(--bg); color:var(--ink); } button,input,select { font:inherit; } button { cursor:pointer; }
.hidden { display:none !important; } .console-login { width:min(420px,calc(100% - 32px)); min-height:100vh; margin:0 auto; display:grid; align-content:center; gap:12px; } .console-login h1 { margin:22px 0 0; font-size:28px; } .console-login p { margin:0; color:var(--muted); }
.brand-line { display:flex; align-items:center; gap:10px; } .brand-mark { display:grid; place-items:center; width:42px; height:42px; border-radius:10px; background:#17324d; color:#fff; font-weight:800; } .brand-line strong,.brand-line small { display:block; } .brand-line small { margin-top:3px; color:var(--muted); font-size:11px; }
.form-stack,.settings-form { display:grid; gap:14px; margin-top:20px; } label { display:grid; gap:7px; color:#4d5c6d; font-size:13px; font-weight:600; } input,select { min-height:42px; border:1px solid var(--line); border-radius:7px; padding:9px 11px; color:var(--ink); background:#fff; outline:0; } input:focus,select:focus { border-color:#8ab5ec; box-shadow:0 0 0 3px #edf5ff; }
.primary-button,.secondary-button,.ghost-button { min-height:40px; border-radius:7px; padding:0 14px; font-weight:700; } .primary-button { border:1px solid var(--blue); background:var(--blue); color:#fff; } .secondary-button { border:1px solid #c8d7ea; background:#fff; color:var(--blue); } .ghost-button { border:0; background:transparent; color:var(--blue); }
.error { min-height:18px; color:var(--red) !important; font-size:13px; } .success { min-height:18px; color:var(--green) !important; font-size:13px; }
.console-header { display:flex; align-items:center; justify-content:space-between; min-height:68px; padding:0 28px; border-bottom:1px solid var(--line); background:#fff; } .header-user { display:flex; align-items:center; gap:14px; color:var(--muted); font-size:13px; }
.console-body { display:grid; grid-template-columns:190px minmax(0,1fr); min-height:calc(100vh - 68px); } .console-nav { padding:22px 14px; border-right:1px solid var(--line); background:#fff; } .nav-button { display:block; width:100%; margin-bottom:5px; padding:11px 12px; border:0; border-radius:7px; background:transparent; color:var(--muted); text-align:left; } .nav-button.active { background:#edf4ff; color:var(--blue); font-weight:700; }
.console-main { width:min(1240px,100%); padding:28px; } .tab { display:none; } .tab.active { display:block; } .page-title { display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; } h1 { margin:4px 0 0; font-size:25px; } h2 { margin:0; font-size:16px; } .eyebrow { margin:0; color:var(--muted); font-size:11px; letter-spacing:.05em; }
.kpi-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:18px; } .kpi { min-height:92px; padding:16px; border:1px solid var(--line); border-radius:8px; background:var(--surface); } .kpi span,.kpi strong { display:block; } .kpi span { color:var(--muted); font-size:12px; } .kpi strong { margin-top:12px; font-size:24px; }
.split-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; } .panel { border:1px solid var(--line); border-radius:8px; background:#fff; } .panel-heading { padding:17px 18px; border-bottom:1px solid var(--line); } .panel-heading p { margin:5px 0 0; color:var(--muted); font-size:12px; } .rule-list,.status-list { padding:5px 18px 14px; } .rule-row,.status-list > div { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:13px 0; border-bottom:1px solid #eef1f4; font-size:13px; } .rule-row:last-child,.status-list > div:last-child { border-bottom:0; } .rule-row small { color:var(--muted); } .status-dot { display:inline-block; width:8px; height:8px; margin-right:7px; border-radius:50%; } .status-dot.ok { background:var(--green); }
.toolbar { display:flex; gap:9px; margin-bottom:14px; } .toolbar input { flex:1; max-width:420px; } .table-wrap { overflow:auto; border:1px solid var(--line); border-radius:8px; background:#fff; } table { width:100%; min-width:780px; border-collapse:collapse; font-size:13px; } th,td { padding:13px 15px; border-bottom:1px solid #eef1f4; text-align:left; white-space:nowrap; } th { color:var(--muted); background:#fbfcfd; font-size:11px; font-weight:600; } tr:last-child td { border-bottom:0; } .table-action { border:0; background:transparent; color:var(--blue); font-size:12px; }
.subsection-heading { margin:24px 0 10px; } .subsection-heading h2 { margin:0; font-size:18px; } .subsection-heading p { margin:5px 0 0; color:var(--muted); font-size:12px; }
.operations-toolbar { align-items:end; } .operations-toolbar label { min-width:150px; } .operations-kpis { margin-bottom:24px; } .priority-high { color:var(--red); font-weight:700; } .priority-normal { color:var(--blue); font-weight:600; } .priority-low { color:var(--muted); }
#packagePlanTable input,#packagePlanTable select { min-height:36px; min-width:100px; padding:7px 9px; } #packagePlanTable [data-plan-field="code"] { min-width:150px; }
.settings-form { max-width:540px; padding:20px; border:1px solid var(--line); border-radius:8px; background:#fff; } .switch-row { display:flex; grid-template-columns:none; align-items:center; justify-content:space-between; gap:16px; padding-bottom:14px; border-bottom:1px solid #eef1f4; } .switch-row span { display:grid; gap:4px; } .switch-row small { color:var(--muted); font-weight:400; } .switch-row input { width:20px; height:20px; accent-color:var(--blue); }
.user-form { display:grid; grid-template-columns:repeat(5,minmax(130px,1fr)); gap:8px; margin-bottom:14px; } .user-form button { min-height:42px; }
.migration-toolbar { display:grid; grid-template-columns:minmax(220px,1.4fr) minmax(150px,1fr) minmax(150px,1fr) auto; align-items:end; gap:9px; margin-bottom:14px; }
.migration-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-bottom:16px; }
.migration-summary > div { min-height:76px; padding:14px 15px; border:1px solid var(--line); border-radius:8px; background:#fff; }
.migration-summary span,.migration-summary strong { display:block; } .migration-summary span { color:var(--muted); font-size:11px; } .migration-summary strong { margin-top:8px; font-size:16px; }
.migration-summary .migration-ready { border-color:#b9e1d4; background:#f3fbf8; color:var(--green); }
.migration-summary .migration-blocked { grid-column:1 / -1; min-height:0; color:var(--red); background:#fff8f8; border-color:#ecc7ca; }
.migration-summary .migration-blocked ul { margin:8px 0 0; padding-left:18px; color:#6d4347; font-size:12px; line-height:1.6; }
.migration-table-wrap { margin-bottom:18px; } .migration-review-panel { overflow:hidden; }
.migration-form { display:grid; gap:13px; padding:18px; } .migration-form-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }
.migration-fields { display:grid; gap:9px; padding:13px; border:1px solid #e7edf4; border-radius:7px; background:#fbfcfd; } .migration-fields.hidden { display:none; }
.migration-form textarea { width:100%; resize:vertical; min-height:78px; border:1px solid var(--line); border-radius:7px; padding:9px 11px; color:var(--ink); background:#fff; outline:0; } .migration-form textarea:focus { border-color:#8ab5ec; box-shadow:0 0 0 3px #edf5ff; }
.migration-form-actions { display:flex; align-items:center; gap:12px; flex-wrap:wrap; } .migration-form-actions .error { flex:1; margin:0; }
.toast { position:fixed; right:22px; bottom:22px; padding:11px 14px; border-radius:7px; background:#263442; color:#fff; font-size:13px; opacity:0; transform:translateY(8px); transition:.18s ease; pointer-events:none; } .toast.show { opacity:1; transform:translateY(0); }
.modal { position:fixed; z-index:30; inset:0; display:grid; place-items:center; padding:24px; } .modal-backdrop { position:absolute; inset:0; background:rgba(20,30,40,.35); } .modal-card { position:relative; width:min(760px,100%); max-height:90vh; overflow:auto; border:1px solid var(--line); border-radius:10px; background:#fff; box-shadow:0 20px 60px rgba(20,30,40,.18); } .modal-header { display:flex; align-items:flex-start; justify-content:space-between; padding:20px 22px 14px; border-bottom:1px solid var(--line); } .modal-header h2 { margin:4px 0 0; font-size:21px; } .icon-close { width:32px; height:32px; border:0; border-radius:50%; background:#f2f5f8; color:var(--muted); font-size:20px; } .customer-detail { display:grid; grid-template-columns:repeat(3,1fr); gap:1px; margin:18px 22px; border:1px solid var(--line); background:var(--line); } .detail-cell { padding:13px; background:#fff; } .detail-cell span,.detail-cell strong { display:block; } .detail-cell span { color:var(--muted); font-size:11px; } .detail-cell strong { margin-top:6px; font-size:14px; } .modal-actions { display:grid; gap:14px; padding:0 22px 22px; } .action-block { padding-top:14px; border-top:1px solid #eef1f4; } .action-block h3 { margin:0 0 9px; font-size:13px; } .action-row { display:grid; grid-template-columns:1fr 1.2fr auto; gap:8px; } .action-row select,.action-row input { min-width:0; } .helper { min-height:16px; margin:7px 0 0; color:var(--muted); font-size:11px; } .danger-button { color:var(--red); border-color:#e8bfc3; }
@media (max-width:800px) { .console-header { padding:0 16px; } .console-body { display:block; } .console-nav { display:flex; gap:5px; overflow:auto; padding:9px 12px; border-right:0; border-bottom:1px solid var(--line); } .nav-button { width:auto; flex:0 0 auto; margin:0; white-space:nowrap; } .console-main { padding:20px 14px; } .kpi-grid { grid-template-columns:repeat(2,1fr); } .split-grid { grid-template-columns:1fr; } .user-form { grid-template-columns:1fr 1fr; } }
@media (max-width:800px) { .migration-toolbar { grid-template-columns:1fr 1fr; } .migration-toolbar button { min-height:42px; } .migration-summary { grid-template-columns:repeat(2,minmax(0,1fr)); } .migration-form-grid { grid-template-columns:1fr 1fr; } }
@media (max-width:480px) { .header-user span { display:none; } .page-title { align-items:flex-start; gap:10px; } .toolbar { flex-wrap:wrap; } .toolbar input { max-width:none; flex-basis:100%; } .user-form { grid-template-columns:1fr; } .modal { padding:10px; place-items:end center; } .modal-card { max-height:92vh; border-radius:10px 10px 0 0; } .customer-detail { grid-template-columns:repeat(2,1fr); margin:14px; } .modal-actions { padding:0 14px 16px; } .action-row { grid-template-columns:1fr; } }
@media (max-width:480px) { .migration-toolbar { grid-template-columns:1fr; } .migration-summary { grid-template-columns:1fr 1fr; } .migration-summary .migration-blocked { grid-column:1 / -1; } .migration-form-grid { grid-template-columns:1fr; } }
