:root {
  font-family: "Microsoft YaHei", "Segoe UI", sans-serif;
  color: #27343b;
  background: #f2f5f6;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 1180px; background: #f2f5f6; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; }
.topbar { height: 62px; display: flex; align-items: center; gap: 26px; padding: 0 24px; color: #fff; background: linear-gradient(135deg, #078b78, #00695d); box-shadow: 0 2px 10px rgba(0, 70, 65, .18); }
.brand { width: 190px; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.6); border-radius: 9px; display: grid; place-items: center; font-size: 12px; font-weight: 700; letter-spacing: 1px; }
.brand strong, .brand span { display: block; }
.brand strong { font-size: 17px; letter-spacing: 1px; }
.brand span { margin-top: 2px; color: rgba(255,255,255,.72); font-size: 11px; }
.top-tabs { height: 100%; display: flex; gap: 4px; flex: 1; align-items: stretch; }
.top-tab { min-width: 92px; padding: 0 15px; border: 0; color: rgba(255,255,255,.75); background: transparent; font-size: 14px; }
.top-tab:hover, .top-tab.active { color: #fff; background: rgba(0,0,0,.14); box-shadow: inset 0 -3px #ffd75e; }
.account-menu { display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.9); font-size: 13px; white-space: nowrap; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #00695d; background: #d6f1e9; font-weight: 700; }
.chevron { margin-left: 3px; font-size: 18px; }
.workspace { display: flex; min-height: calc(100vh - 62px); }
.sidebar { width: 216px; flex-shrink: 0; position: relative; display: flex; flex-direction: column; padding: 18px 12px; background: #fff; border-right: 1px solid #dfe7e7; }
.sidebar-title { padding: 9px 14px 8px; color: #078b78; font-size: 13px; font-weight: 700; }
.sidebar-title.secondary { margin-top: 22px; color: #97a5aa; font-weight: 500; }
.side-item { width: 100%; display: flex; align-items: center; gap: 11px; padding: 11px 14px; border: 0; border-radius: 4px; color: #56666c; background: transparent; text-align: left; font-size: 13px; }
.side-item:hover, .side-item.active { color: #00695d; background: #e6f6f1; }
.side-item.active { font-weight: 700; box-shadow: inset 3px 0 #078b78; }
.side-icon { width: 18px; color: #078b78; text-align: center; font-size: 16px; }
.sidebar-footer { margin-top: auto; padding: 14px 12px 4px; color: #98a5a9; font-size: 11px; line-height: 1.8; }
.local-badge { color: #277568; font-size: 11px; }
.local-badge span { width: 7px; height: 7px; display: inline-block; margin-right: 4px; border-radius: 50%; background: #36b995; }
.content { width: calc(100% - 216px); max-width: 1680px; padding: 22px 30px 42px; margin: 0 auto; }
.breadcrumb { display: flex; gap: 10px; align-items: center; color: #91a0a4; font-size: 12px; }
.breadcrumb b { color: #c5ced0; font-weight: 400; }
.breadcrumb strong { color: #526269; font-weight: 500; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; margin: 14px 0 19px; }
.page-heading h1 { margin: 0; color: #23343a; font-size: 25px; font-weight: 600; letter-spacing: 1px; }
.page-heading p { margin: 8px 0 0; color: #8a989d; font-size: 12px; }
.heading-actions { display: flex; gap: 14px; align-items: center; }
.data-status { color: #6d7d82; font-size: 12px; }
.data-status i { width: 7px; height: 7px; display: inline-block; margin-right: 5px; border-radius: 50%; background: #2cad86; }
.outline-button, .text-button { border: 1px solid #cddbd9; border-radius: 3px; color: #397a70; background: #fff; font-size: 12px; }
.outline-button { padding: 7px 14px; }
.outline-button:hover { border-color: #4eb69f; background: #f1fbf8; }
.summary-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 15px; }
.summary-card { min-height: 92px; padding: 15px 18px; border: 1px solid #e0e8e8; border-radius: 5px; background: #fff; box-shadow: 0 2px 6px rgba(28, 65, 67, .025); }
.summary-card span, .summary-card small { display: block; color: #8d9b9e; font-size: 12px; }
.summary-card strong { display: block; margin: 6px 0 3px; color: #263b3e; font-size: 24px; font-weight: 600; }
.summary-card strong.green-value { color: #098b75; font-size: 20px; }
.panel { border: 1px solid #dfe8e7; border-radius: 5px; background: #fff; box-shadow: 0 2px 7px rgba(28, 65, 67, .025); }
.filter-panel { margin-bottom: 15px; }
.panel-title { display: flex; align-items: baseline; gap: 16px; padding: 14px 18px 10px; border-bottom: 1px solid #edf1f1; }
.panel-title strong, .panel-toolbar strong { color: #34484d; font-size: 14px; }
.panel-title span { color: #9ba8ab; font-size: 11px; }
.filter-form { display: flex; align-items: flex-end; gap: 12px; padding: 15px 18px 17px; }
.filter-form label { display: flex; flex-direction: column; gap: 5px; color: #758489; font-size: 12px; }
.filter-form input, .filter-form select { min-width: 165px; height: 32px; padding: 0 9px; border: 1px solid #cfdcdb; border-radius: 3px; outline: 0; color: #415358; background: #fff; font-size: 12px; }
.filter-form input:focus, .filter-form select:focus { border-color: #22a48b; box-shadow: 0 0 0 2px rgba(34,164,139,.1); }
.filter-form .range-label input { min-width: 105px; }
.range-separator { margin-bottom: 8px; color: #9da8ab; font-size: 12px; }
.primary-button { height: 32px; padding: 0 19px; border: 0; border-radius: 3px; color: #fff; background: #078b78; font-size: 12px; }
.primary-button:hover { background: #006e62; }
.text-button { height: 32px; padding: 0 9px; border-color: transparent; background: transparent; }
.table-panel { overflow: hidden; }
.panel-toolbar { min-height: 53px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid #e8eeee; }
.result-count { margin-left: 12px; color: #99a6aa; font-size: 11px; }
.legend { color: #9aa7aa; font-size: 11px; }
.legend-dot { width: 7px; height: 7px; display: inline-block; margin: 0 4px 0 9px; border-radius: 50%; background: #49b492; }
.legend-dot.orange { background: #f1ad45; }
.legend-dot.gray { background: #9ba5a8; }
.table-wrap { overflow: auto; }
table { width: 100%; min-width: 1120px; border-collapse: collapse; font-size: 12px; }
th { height: 42px; color: #77878b; background: #f7f9f9; font-size: 11px; font-weight: 500; text-align: left; white-space: nowrap; }
th, td { padding: 0 12px; border-bottom: 1px solid #edf1f1; }
td { height: 56px; color: #53646a; vertical-align: middle; }
tbody tr:hover { background: #fbfefd; }
.member-name { color: #2a464a; font-weight: 600; }
.member-name.green { color: #087b6a; }
.member-name.orange { color: #c77b16; }
.member-name.gray { color: #899497; }
.mobile { color: #607176; font-variant-numeric: tabular-nums; }
.amount { color: #425c60; font-variant-numeric: tabular-nums; }
.card-stack { display: flex; flex-direction: column; gap: 4px; }
.card-link { width: fit-content; padding: 0; border: 0; color: #087f6e; background: transparent; text-align: left; font-size: 12px; }
.card-link:hover { text-decoration: underline; }
.card-meta { color: #a0abad; font-size: 10px; }
.action-link { padding: 0; border: 0; color: #078b78; background: transparent; font-size: 12px; }
.action-link:hover { text-decoration: underline; }
.delete-link, .restore-link { padding: 0 0 0 12px; border: 0; background: transparent; font-size: 12px; }
.delete-link { color: #e5483e; }
.restore-link { color: #078b78; }
.delete-link:hover, .restore-link:hover { text-decoration: underline; }
.pagination { display: flex; justify-content: flex-end; gap: 5px; padding: 14px 18px; }
.page-button { min-width: 27px; height: 27px; border: 1px solid #d9e3e1; border-radius: 3px; color: #718186; background: #fff; font-size: 11px; }
.page-button:hover, .page-button.active { border-color: #078b78; color: #fff; background: #078b78; }
.page-button:disabled { color: #c1cbcc; cursor: not-allowed; }
.empty-panel { min-height: 260px; display: grid; place-items: center; align-content: center; text-align: center; }
.empty-panel.hidden, .hidden { display: none !important; }
.empty-icon { color: #72bfb0; font-size: 40px; }
.empty-panel h2 { margin: 12px 0 5px; color: #52656a; font-size: 17px; font-weight: 500; }
.empty-panel p { margin: 0; color: #99a6a9; font-size: 12px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 30px; background: rgba(22, 48, 50, .36); }
.member-modal { width: min(900px, 100%); max-height: 86vh; overflow: auto; border-radius: 6px; background: #fff; box-shadow: 0 15px 55px rgba(0, 35, 35, .25); }
.modal-header { display: flex; justify-content: space-between; padding: 22px 24px 17px; border-bottom: 1px solid #e7efee; }
.modal-kicker { color: #078b78; font-size: 11px; }
.modal-header h2 { margin: 5px 0 0; color: #2e4247; font-size: 21px; font-weight: 600; }
.close-button { width: 30px; height: 30px; border: 0; color: #718185; background: transparent; font-size: 25px; }
.modal-body { padding: 22px 24px 26px; }
.detail-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 22px; }
.detail-item label { display: block; margin-bottom: 5px; color: #97a3a6; font-size: 11px; }
.detail-item strong { color: #41555b; font-size: 13px; font-weight: 500; }
.detail-section-title { padding-bottom: 9px; border-bottom: 1px solid #e8eeee; color: #486168; font-size: 13px; font-weight: 700; }
.detail-section-heading { display: flex; align-items: center; justify-content: space-between; }
.member-add-card-wrap { margin-top: 16px; padding: 15px; border: 1px solid #d7e9e4; border-radius: 4px; background: #f6fbfa; }
.member-add-card-form { gap: 12px; }
.member-add-card-form .write-form-grid { gap: 10px; }

.detail-card { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid #edf2f1; }
.detail-card span { color: #66777b; font-size: 12px; }
.detail-card span strong { display: block; margin-bottom: 4px; color: #267e70; font-size: 12px; }
 .table-value-green { color: #087b6a; font-weight: 700; }
.module-readonly-label { color: #83a19c; font-size: 11px; }
.loading-row, .no-results { height: 130px; color: #9aa7aa; text-align: center; }
@media (max-width: 1250px) { .content { padding-left: 20px; padding-right: 20px; } .top-tabs { gap: 0; } .top-tab { min-width: auto; padding: 0 10px; } .detail-grid { grid-template-columns: repeat(2, 1fr); } }
.login-page { min-width: 0; min-height: 100vh; display: grid; place-items: center; background: linear-gradient(145deg, #e8f5f1, #f4f7f7 55%, #dcefeb); }
.login-shell { width: min(420px, calc(100% - 32px)); }
.login-card { padding: 34px 36px 28px; border: 1px solid #d7e7e3; border-radius: 8px; background: #fff; box-shadow: 0 18px 50px rgba(22, 80, 73, .12); }
.login-brand { display: flex; align-items: center; gap: 11px; color: #2e4c50; }
.login-brand .brand-mark { color: #fff; border: 0; background: #078b78; }
.login-brand strong, .login-brand span { display: block; }
.login-brand strong { font-size: 17px; letter-spacing: 1px; }
.login-brand span { margin-top: 2px; color: #92a1a3; font-size: 11px; }
.login-heading { margin: 34px 0 22px; }
.login-heading span { color: #078b78; font-size: 11px; }
.login-heading h1 { margin: 7px 0 8px; color: #263f43; font-size: 25px; font-weight: 600; }
.login-heading p { margin: 0; color: #8a999c; font-size: 12px; line-height: 1.7; }
.login-form { display: grid; gap: 14px; }
.login-form label { display: grid; gap: 6px; color: #65777a; font-size: 12px; }
.login-form input { height: 38px; padding: 0 11px; border: 1px solid #cfdedb; border-radius: 4px; outline: 0; color: #354d51; background: #fff; }
.login-form input:focus { border-color: #22a48b; box-shadow: 0 0 0 2px rgba(34,164,139,.1); }
.login-form .primary-button { width: 100%; height: 38px; margin-top: 5px; }
.login-form button:disabled { opacity: .65; cursor: wait; }
.login-error { margin: 0; padding: 9px 10px; border-radius: 3px; color: #ad4d43; background: #fff1ef; font-size: 12px; line-height: 1.5; }
.login-footnote { margin: 21px 0 0; color: #9aa8a9; font-size: 11px; text-align: center; }
.account-menu .account-logout { height: auto; margin-left: 5px; padding: 0 4px; border: 0; color: rgba(255,255,255,.8); background: transparent; }
.account-menu .account-logout:hover { color: #fff; }
.recharge-button { align-self: center; }
.recharge-form-wrap { grid-column: 1 / -1; padding: 13px 14px; border: 1px solid #d7e9e4; border-radius: 4px; background: #f6fbfa; }
.recharge-form-wrap > strong { display: block; margin-bottom: 9px; color: #397a70; font-size: 12px; }
.recharge-form { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 9px; }
.recharge-form label { display: grid; gap: 4px; color: #77878a; font-size: 11px; }
.recharge-form input, .recharge-form select { width: 120px; height: 29px; padding: 0 7px; border: 1px solid #cbded9; border-radius: 3px; color: #40575b; background: #fff; font-size: 12px; }
.recharge-form label:last-of-type input { width: 180px; }
.recharge-actions { display: flex; align-items: center; gap: 4px; }
.recharge-actions .primary-button { height: 29px; padding: 0 12px; font-size: 11px; }
.recharge-actions .text-button { height: 29px; font-size: 11px; }
.recharge-message { width: 100%; margin: 2px 0 0; color: #8a6260; font-size: 11px; }
.write-panel { width: min(980px, 100%); margin: 0 auto; padding: 30px 34px 34px; text-align: left; }
.write-panel-heading { margin-bottom: 25px; }
.write-panel-heading span { color: #078b78; font-size: 11px; }
.write-panel-heading h2 { margin: 6px 0 8px; color: #34494d; font-size: 22px; font-weight: 600; }
.write-panel-heading p { margin: 0; color: #91a0a3; font-size: 12px; }
.write-form { display: grid; gap: 18px; }
.write-form-section { padding: 18px; border: 1px solid #e1ebea; border-radius: 4px; background: #fbfdfd; }
.write-form-section > strong { display: block; margin-bottom: 14px; color: #48666a; font-size: 13px; }
.inline-form { display: flex; align-items: flex-end; gap: 9px; }
.inline-form label { display: grid; gap: 6px; color: #708084; font-size: 11px; }
.inline-form input, .inline-form select, .write-form-grid input, .write-form-grid select { height: 34px; padding: 0 9px; border: 1px solid #cdddda; border-radius: 3px; outline: 0; color: #43585c; background: #fff; font-size: 12px; }
.inline-form input { width: 190px; }
.inline-form select { flex: 1; min-width: 270px; }
.inline-form input:focus, .inline-form select:focus, .write-form-grid input:focus, .write-form-grid select:focus { border-color: #22a48b; box-shadow: 0 0 0 2px rgba(34,164,139,.1); }
.form-hint { min-height: 16px; margin: 8px 0 0; color: #8a999c; font-size: 11px; }
.write-form-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.write-form-grid label { display: grid; gap: 6px; color: #708084; font-size: 11px; }
.write-form-grid input, .write-form-grid select { width: 100%; }
.write-form-actions { display: flex; align-items: center; gap: 14px; }
.write-form-actions .primary-button { min-width: 104px; }
.form-message { color: #397a70; font-size: 12px; }
@media (max-width: 900px) { .write-form-grid { grid-template-columns: repeat(2, 1fr); } .inline-form { align-items: stretch; flex-wrap: wrap; } .inline-form input, .inline-form select { width: 100%; min-width: 0; } }
.cashier-panel { width: min(1100px, 100%); margin: 0 auto; padding: 0 24px 28px; text-align: left; }
.cashier-tabs { display: flex; gap: 2px; margin: -1px -24px 18px; padding: 0 12px; border-bottom: 1px solid #dce9e6; }
.cashier-tab { min-width: 88px; padding: 12px 16px; border: 0; border-bottom: 3px solid transparent; color: #66777b; background: transparent; font-size: 13px; }
.cashier-tab.active { border-bottom-color: #078b78; color: #078b78; font-weight: 700; }
.cashier-tab.disabled { color: #b0babb; cursor: not-allowed; }
.cashier-section { margin-bottom: 14px; padding: 16px; border: 1px solid #e1ebea; border-radius: 4px; background: #fbfdfd; }
.cashier-section > strong { display: block; margin-bottom: 12px; color: #48666a; font-size: 13px; }
.cashier-top-grid { display: grid; grid-template-columns: minmax(420px, 1fr) minmax(430px, 1.2fr); gap: 18px; align-items: start; }
.cashier-card-picker { margin-top: 13px; padding-top: 12px; border-top: 1px solid #e5eeec; }
.cashier-card-picker label { display: grid; gap: 6px; color: #708084; font-size: 11px; }
.cashier-search, .cashier-add-item { display: flex; align-items: center; gap: 9px; }
.cashier-search input { width: min(430px, 100%); height: 34px; padding: 0 9px; border: 1px solid #cdddda; border-radius: 3px; outline: 0; color: #43585c; background: #fff; font-size: 12px; }
.cashier-results { margin-top: 10px; overflow: auto; border-top: 1px solid #e5eeec; }
.cashier-results table, .cashier-cart table { min-width: 0; font-size: 12px; }
.cashier-results th, .cashier-results td, .cashier-cart th, .cashier-cart td { height: 38px; padding: 0 10px; }
.cashier-member-summary { display: flex; align-items: center; gap: 15px; min-height: 30px; color: #607176; font-size: 12px; }
.cashier-member-summary strong { color: #087b6a; font-size: 14px; }
.cashier-avatar { width: 46px; height: 46px; display: grid; place-items: center; flex-shrink: 0; border-radius: 4px; color: #fff; background: #078b78; font-size: 22px; font-weight: 700; }
.cashier-member-main, .cashier-card-main { display: grid; gap: 5px; }
.cashier-member-main span, .cashier-card-main span { color: #68797d; font-size: 11px; }
.cashier-card-main { padding-left: 15px; border-left: 1px solid #e1ebea; }
.cashier-card-main strong { color: #c46e19; }
.cashier-price-input { width: 86px; height: 27px; padding: 0 6px; border: 1px solid #cdddda; border-radius: 3px; color: #43585c; font-size: 12px; }
.cashier-card-select { width: min(520px, 100%); height: 34px; padding: 0 9px; border: 1px solid #cdddda; border-radius: 3px; color: #43585c; background: #fff; font-size: 12px; }
.cashier-add-item select { flex: 1; height: 34px; padding: 0 9px; border: 1px solid #cdddda; border-radius: 3px; color: #43585c; background: #fff; font-size: 12px; }
.cashier-add-item input { width: 80px; height: 34px; padding: 0 9px; border: 1px solid #cdddda; border-radius: 3px; color: #43585c; background: #fff; font-size: 12px; }
.cashier-cart { margin-top: 12px; overflow: auto; }
.cashier-empty { padding: 18px; color: #9aa7aa; text-align: center; font-size: 12px; }
.cashier-settlement { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; }
.cashier-settlement > div:first-child { display: flex; align-items: flex-end; gap: 12px; }
.cashier-settlement label { display: grid; gap: 5px; color: #708084; font-size: 11px; }
.cashier-settlement select, .cashier-settlement input { height: 32px; padding: 0 8px; border: 1px solid #cdddda; border-radius: 3px; color: #43585c; background: #fff; font-size: 12px; }
.cashier-total-line { display: flex; align-items: center; gap: 15px; color: #68797d; font-size: 13px; white-space: nowrap; }
.cashier-total-line strong { color: #c46e19; font-size: 20px; }
.cashier-total-line .primary-button { height: 36px; }
.cashier-settlement .form-message { align-self: center; }
@media (max-width: 900px) { .cashier-top-grid { grid-template-columns: 1fr; } .cashier-settlement, .cashier-settlement > div:first-child { align-items: stretch; flex-direction: column; } .cashier-total-line { justify-content: space-between; } .cashier-tabs { overflow-x: auto; } }
.times-actions { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.times-adjust-input { width: 58px; height: 27px; padding: 0 6px; border: 1px solid #cdddda; border-radius: 3px; color: #43585c; font-size: 12px; }
.times-adjust-input:focus { border-color: #22a48b; outline: 0; box-shadow: 0 0 0 2px rgba(34,164,139,.1); }
.times-actions .delete-link { padding-left: 0; }
.times-adjust-message { display: block; min-height: 15px; margin-top: 3px; color: #397a70; font-size: 11px; }

