:root { --sidebar-width: 248px; }
.product-form-card { width: 100%; max-width: 950px; }
.product-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.product-fields > div { min-width: 0; }
.product-fields input { height: 44px; }
.product-stock-note { margin-top: 24px; }
@media(max-width:700px) { .product-fields { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
.stock-filter { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.stock-filter > input { width: 210px; }
.stock-filter label { display: flex; align-items: center; white-space: nowrap; gap: 7px; margin: 0; }
.stock-filter label input { width: 16px; min-height: 0; accent-color: var(--primary-solid); }
.type-badge.stock-low { background: var(--danger-bg); color: var(--danger-text); }
.stock-save { margin-top: 20px; }
.verification-notice { background: var(--surface-soft); border: 1px solid var(--border); border-radius: 8px; padding: 13px; margin-block: 16px; font-size: 12px; }
.verification-notice p { margin-bottom: 0; font-size: 11px; }
.verification-ack { display: flex; align-items: flex-start; gap: 9px; margin-block: 18px; }
.verification-ack input { width: 16px; height: 16px; min-height: 0; flex-shrink: 0; margin-top: 2px; accent-color: var(--primary-solid); }
.verification-ack span { color: var(--text); font-size: 12px; margin: 0; }
.verification-demo { font-size: 11px !important; }
.service-status-card { margin-top: 24px; }
.tracking-header { display: flex; justify-content: space-between; align-items: center; padding: 24px clamp(20px, 5vw, 64px); border-bottom: 1px solid var(--border); background: var(--surface); gap: 20px; }
.tracking-header > span { font-size: 10px; color: var(--soft-text); letter-spacing: 1.5px; }
.tracking-main { margin: 0 auto; width: min(100%, 580px); min-height: 0; padding: 54px 20px; }
.tracking-intro { text-align: center; margin-bottom: 28px; }
.tracking-intro > p:last-child, .tracking-help { color: var(--soft-text); font-size: 13px; }
.tracking-submit { width: 100%; margin-top: 20px; }
.tracking-result { margin-top: 24px; padding: 26px; }
.tracking-result h2 { font-size: 21px; }
.tracking-result p, .tracking-result small { color: var(--soft-text); }
.tracking-help { text-align: center; margin-top: 24px; }
.tracking-error { color: var(--danger-text); font-size: 12px; }
@media(max-width:550px) { .tracking-header > span { display: none; } .tracking-main { padding-top: 32px; } }
.external-device-query .query-explanation { padding: 0; font-size: 12px; min-height: 65px; margin-block: 14px; }
.external-device-query .button { white-space: normal; }
.external-query-link { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--primary); margin-top: 8px; }
.external-query-link .icon { width: 13px; height: 13px; }
.imei-input-row, .imei-query-row { display: flex; align-items: center; gap: 8px; }
.imei-input-row input, .imei-query-row input { min-width: 0; flex: 1; }
.imei-check { width: 40px; height: 44px; padding: 0; flex: 0 0 40px; }
.imei-input-row .intake-btk-button { flex: 0 0 auto; height: 44px; margin: 0; padding: 0 12px; white-space: nowrap; }
.imei-input-row .intake-btk-button .icon { width: 16px; height: 16px; }
@media (max-width: 400px) {
  .imei-input-row { gap: 5px; }
  .imei-input-row .intake-btk-button { padding: 0 8px; }
  .imei-input-row .intake-btk-button .icon { display: none; }
}
.imei-check[data-found="true"] { color: var(--success-text); background: var(--success-bg); border-color: var(--success-border); }
.form-body small[data-imei-result][data-state="found"] { color: var(--success-text); }
.form-body small[data-imei-result][data-state="error"] { color: var(--danger-text); }
.imei-neutral { background: var(--surface-soft); color: var(--soft-text); border: 1px solid var(--border); }
.imei-query-result { margin-top: 24px; }
.report-filter { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 16px; padding: 22px; }
.report-filter > div { flex: 1; min-width: 160px; }
.report-period { color: var(--soft-text); font-size: 12px; margin-block: 18px; }
.report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-bottom: 24px; }
.report-types { padding: 22px 26px; display: grid; gap: 18px; }
.report-types > div { display: flex; justify-content: space-between; gap: 16px; }
.report-types span, .report-note { color: var(--soft-text); }
.report-note { padding: 0 26px 16px; font-size: 13px; line-height: 1.8; }
.report-section { margin-bottom: 24px; }
.report-days { max-height: 380px; }
.report-days table { min-width: 450px; }
.report-days th { position: sticky; top: 0; z-index: 1; }
.report-stats .stat:last-child { display: grid; }
@media(max-width:700px) { .report-grid { grid-template-columns: minmax(0, 1fr); } .report-stats { grid-template-columns: minmax(0, 1fr); } }
select { width: 100%; min-width: 0; min-height: 44px; padding: 11px 12px; border: 1px solid var(--border); border-radius: 7px; font: inherit; font-size: 13px; background: var(--input); color: var(--text); }
select:focus { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--primary); }
@media(max-width:700px) { select { font-size: 16px; } }
.page-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.customer-summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 26px; margin-bottom: 24px; flex-wrap: wrap; }
.customer-summary small { font-size: 10px; color: var(--soft-text); }
.customer-summary h2 { margin-top: 8px; overflow-wrap: anywhere; }
.customer-summary p { color: var(--soft-text); font-size: 12px; margin-bottom: 0; }
.service-form, .service-detail { max-width: 950px; }
.service-detail dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 26px; margin: 0; }
.service-detail dt { color: var(--soft-text); font-size: 12px; margin-bottom: 8px; }
.service-detail dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; }
.service-detail .wide { grid-column: 1 / -1; }
.row-actions { flex-wrap: nowrap; width: max-content; }
@media(max-width:700px) { .service-detail dl { grid-template-columns: minmax(0, 1fr); } .sidebar .main-nav { grid-template-columns: minmax(0, 1fr); } }
[hidden] { display: none !important; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.customer-type { margin-bottom: 28px; }
.customer-type legend { font-size: 12px; font-weight: 600; margin-bottom: 10px; }
.type-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.type-options label { display: flex; align-items: center; gap: 10px; margin: 0; padding: 14px; border: 1px solid #e2e5ed; border-radius: 9px; cursor: pointer; }
.type-options label:has(input:checked) { background: #f3f0ff; border-color: #6355dc; }
.type-options input { width: 16px; height: 16px; min-height: 0; flex-shrink: 0; accent-color: #6355dc; }
.type-options label span { margin: 0; font-size: 12px; color: #263149; }
.type-options strong { display: block; }
.type-options small { font-size: 10px; }
.spaced-label { margin-top: 18px; }
.tax-fields { margin-top: 0; }
.type-badge { display: inline-block; padding: 5px 9px; font-size: 10px; border-radius: 6px; background: #f0f2f7; color: #687287; }
.type-badge.corporate { background: #eeeafd; color: #6355dc; }
.second-phone { display: block; margin-top: 6px; color: #9aa2b2; }
.record-id { font-family: ui-monospace, Consolas, monospace; font-size: 11px; user-select: all; }
.delete-dialog { width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 40px); overflow-y: auto; border: 1px solid #e9ecf2; border-radius: 16px; padding: 26px; color: #263149; box-shadow: 0 24px 80px #17213b30; }
.delete-dialog::backdrop { background: #18213980; backdrop-filter: blur(3px); }
.dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.dialog-close { display: grid; place-items: center; background: transparent; border: 0; padding: 7px; border-radius: 6px; color: #8790a3; }
.dialog-close:hover { background: #f5f6fa; }
.delete-dialog h2 { font-size: 18px; line-height: 1.5; }
.delete-dialog p { color: #8790a3; font-size: 13px; overflow-wrap: anywhere; }
.delete-dialog .dialog-customer { color: #263149; font-weight: 600; }
.delete-dialog .delete-actions { margin-top: 24px; }
.row-actions { display: flex; align-items: center; gap: 6px; }
.row-actions .button { width: 32px; height: 32px; min-height: 32px; padding: 0; flex: 0 0 32px; }
.row-actions .button .icon { width: 16px; height: 16px; flex-basis: 16px; }
.danger-outline { color: #ba4053; background: #fff5f6; border-color: #f2d7dd; }
.danger-outline:hover { background: #ffe9ed; }
.danger { background: #be4053; color: white; }
.danger:hover { background: #a43243; }
.delete-card { max-width: 650px; padding: 28px; }
.delete-card h2 { line-height: 1.5; overflow-wrap: anywhere; margin-block: 18px 10px; }
.delete-card > p { color: #8790a3; font-size: 12px; }
.delete-icon { display: grid; place-items: center; width: 48px; height: 48px; color: #ba4053; background: #fff0f2; border-radius: 12px; }
.delete-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
html { scrollbar-gutter: stable; }
body { min-width: 320px; }
.icon { display: inline-block; width: 20px; height: 20px; flex: 0 0 20px; vertical-align: middle; }
.sidebar { width: var(--sidebar-width); overflow-y: auto; padding: 26px 18px 18px; }
main { margin-left: var(--sidebar-width); min-width: 0; min-height: 100dvh; display: flex; flex-direction: column; }
.content { width: 100%; min-width: 0; flex: 1; padding: 32px clamp(20px, 3vw, 40px); }
.topbar { flex-shrink: 0; min-height: 72px; height: auto; padding: 20px clamp(20px, 3vw, 40px); gap: 20px; }
.topbar > span { min-width: 0; overflow-wrap: anywhere; }
.topbar > div { flex-shrink: 0; }
.brand { gap: 0; flex-shrink: 0; }
.brand-icon { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; flex-shrink: 0; }
.workspace { margin: 28px 0 24px; }
.main-nav { display: grid; gap: 5px; }
.nav-item { margin: 0; min-height: 46px; gap: 11px; padding: 12px; font-size: 12px; }
.nav-item > span:first-child { font-size: inherit; }
.nav-item .icon { width: 20px; height: 20px; }
.nav-item small { margin-left: auto; }
.sidebar-bottom { padding-top: 30px; }
.profile { min-width: 0; gap: 8px; }
.profile-name { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.profile form { flex-shrink: 0; }
.avatar, .top-avatar { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; flex-shrink: 0; }
.logout { display: grid; place-items: center; padding: 7px; border-radius: 6px; }
.logout:hover { color: var(--primary); background: #f0edfd; }
.secure-card > .icon { color: var(--primary); }
.page-heading { align-items: flex-start; gap: 20px; }
.page-heading > div { min-width: 0; }
.page-heading h1 { font-size: clamp(23px, 2.3vw, 30px); line-height: 1.3; }
.page-heading .button { display: inline-flex; margin-top: 15px; }
.button { min-height: 42px; gap: 8px; font-size: 12px; }
.button .icon { width: 17px; height: 17px; flex-basis: 17px; }
.stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { min-width: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center; padding: 20px; }
.stat-icon { width: 44px; height: 44px; flex-shrink: 0; }
.stat-icon .icon { width: 23px; height: 23px; }
.stat small { font-size: 12px; }
.stat strong { overflow-wrap: anywhere; }
.stat .small-value { font-size: 15px; line-height: 1.4; margin-top: 7px; }
.stat-note { display: block; position: static; grid-column: 2; margin-top: -5px; font-size: 10px; }
.customer-grid { grid-template-columns: minmax(0, 1fr) minmax(230px, 280px); align-items: start; gap: 24px; margin-bottom: 0; }
.form-card, .list-card, .tips { min-width: 0; }
.card-heading { gap: 12px; padding: 23px 26px; }
.card-heading > div { min-width: 0; }
.heading-icon { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; flex-shrink: 0; }
.heading-icon .icon { width: 22px; height: 22px; }
.tag { flex-shrink: 0; }
.card-heading p, .list-heading p { font-size: 12px; }
.form-body { padding: 26px; }
label { font-size: 12px; line-height: 1.5; }
label span { font-size: 10px; }
input, textarea { min-width: 0; font-size: 13px; }
input { min-height: 44px; }
.field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.field-row > div { min-width: 0; }
.form-body small { font-size: 11px; line-height: 1.5; }
.field-help { display: flex !important; align-items: flex-start; gap: 6px; }
.field-help .icon { width: 14px; height: 16px; flex-basis: 14px; }
.privacy-note { align-items: flex-start; gap: 10px; }
.privacy-note > .icon { color: #8e82ca; width: 18px; height: 18px; flex-basis: 18px; margin-top: 2px; }
.privacy-note p { font-size: 11px; }
.form-footer { gap: 16px; flex-wrap: wrap; }
.form-footer > div { margin-left: auto; flex-wrap: wrap; }
.tips { padding: 27px 24px; }
.tip-art { height: auto; margin-bottom: 25px; }
.art-circle { width: 68px; height: 68px; margin: 0; }
.art-circle > .icon { width: 32px; height: 32px; }
.tips h2 { font-size: 21px; }
.tips > p:not(.eyebrow), .tip-item p { font-size: 12px; }
.tip-item { align-items: flex-start; }
.tip-item > span { flex-shrink: 0; }
.tip-item strong { font-size: 12px; }
.tip-bottom { font-size: 10px; line-height: 1.6; }
.list-heading { align-items: center; }
.search { width: min(100%, 330px); min-width: 220px; flex-shrink: 0; gap: 0; }
.search input { min-width: 0; flex: 1; width: 0; }
.search button, .search a { display: grid; place-items: center; flex-shrink: 0; padding: 10px; background: none; }
.search .icon { width: 18px; height: 18px; }
.table-wrap { width: 100%; overscroll-behavior-x: contain; }
table { min-width: 750px; }
td, th { padding-left: 24px; padding-right: 24px; }
td { font-size: 12px; }
td:first-child { max-width: 300px; }
td strong { display: inline-block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.empty { white-space: normal; padding: 44px 20px; }
.empty > .icon { display: block; width: 36px; height: 36px; color: #9e8dd0; margin: 0 auto 16px; }
.empty strong { max-width: none; }
.list-footer { flex-wrap: wrap; gap: 16px; }
.list-footer > div { display: flex; gap: 8px; }
.notice.success { display: flex; align-items: center; gap: 9px; }
footer { flex-wrap: wrap; line-height: 1.6; }
.login-shell { width: 100%; }
@media (max-width: 1150px) {
  :root { --sidebar-width: 224px; }
  .customer-grid { grid-template-columns: minmax(0, 1fr); max-width: 850px; margin-inline: auto; }
  .tips { display: none; }
  .stat { padding: 16px; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; }
  .stat-icon { width: 38px; height: 38px; }
  .stat-note { display: block; }
}
@media (max-width: 850px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:last-child { display: none; }
  .list-heading { flex-direction: column; align-items: stretch; gap: 18px; }
  .search { width: 100%; min-width: 0; }
  .topbar > div { font-size: 0; gap: 0; }
  .topbar .status-dot { display: none; }
  .top-avatar { font-size: 12px; }
}
@media (max-width: 700px) {
  .sidebar { position: static; width: 100%; height: auto; overflow: visible; padding: 16px; }
  .sidebar .workspace, .sidebar .nav-label { display: none; }
  .main-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; gap: 8px; }
  .sidebar .main-nav .nav-item { display: flex; padding: 11px 9px; gap: 7px; font-size: 11px; }
  .sidebar .main-nav .disabled { display: none; }
  .sidebar-bottom { display: block; padding-top: 14px; }
  .secure-card { display: none; }
  .profile { border-top: 1px solid var(--border); padding-top: 12px; }
  .profile small { display: none; }
  .profile .avatar { width: 27px; height: 27px; }
  main { margin-left: 0; min-height: calc(100dvh - 190px); }
  .topbar { min-height: 52px; padding: 15px 18px; }
  .topbar > div { display: none; }
  .content { padding: 24px 16px; }
  .page-heading { flex-direction: column; gap: 16px; }
  .page-heading .button { display: inline-flex; margin-top: 0; }
  .stats { gap: 10px; }
  .stat { padding: 14px 12px; gap: 8px; grid-template-columns: 32px minmax(0, 1fr); }
  .stat-icon { width: 32px; height: 32px; }
  .stat-icon .icon { width: 18px; height: 18px; }
  .stat small { font-size: 10px; }
  .stat-note { font-size: 9px; }
  .card-heading, .form-body { padding: 20px; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  input, textarea { font-size: 16px; }
  .form-footer { padding: 16px 20px; flex-direction: column; align-items: stretch; }
  .form-footer > div { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
  .form-footer .button { padding: 11px 12px; }
  .tag { display: none; }
  .list-heading { padding: 20px; }
  .list-footer { padding: 16px 20px; }
  footer { padding: 16px; }
}
@media (max-height: 740px) and (min-width: 701px) {
  .secure-card { display: none; }
}
