:root{--sidebar-width:224px;--bg:#f4f6f8;--text:#24332d;--muted:#758078;--line:#e5e9e7;--shadow:0 2px 8px #173d2610}
body{background:var(--bg);font-size:14px;line-height:1.55}
body.app-layout .topbar{width:var(--sidebar-width);background:#133c2e;box-shadow:none;padding:16px 14px 12px;overflow-y:auto}
.brand{min-width:0;gap:10px}.brand-mark{width:34px;height:34px;box-shadow:none}.brand-copy strong{font-size:16px}.brand-copy>span{font-size:11px;opacity:.65}
.nav{gap:4px}.nav-title{font-size:11px;letter-spacing:1px;padding:18px 12px 6px;color:#94b4a6}.nav-link{font-size:14px;font-weight:500;min-height:40px;padding:9px 12px;border:0;border-radius:6px;color:#c9d9d2}.nav-link.active{background:#2a5744;box-shadow:inset 3px 0 #d9b464;color:#fff}.nav-symbol{display:inline-block;width:28px;font-size:17px;vertical-align:middle}.user-strip{font-size:13px}.user-avatar{width:30px;height:30px}.user-strip button{font-size:12px}
body.app-layout .page{max-width:none;margin-left:var(--sidebar-width);padding:24px 30px 32px;width:calc(100% - var(--sidebar-width))}
.panel{border:1px solid var(--line);border-radius:8px;box-shadow:none;padding:20px;margin-bottom:18px}.section-head{border-bottom:0}h1{font-size:25px;letter-spacing:0}h2{font-size:17px}h3{font-size:15px}
input,select,textarea{border:1px solid #dbe2dd;border-radius:5px;background:#fff;font:inherit;color:inherit;padding:9px 11px;min-width:0;width:100%}input[type=checkbox]{width:16px;height:16px;accent-color:#237450}input[type=file]{padding:7px}textarea{resize:vertical}input:focus,select:focus,textarea:focus{outline:2px solid #90bfa6;outline-offset:1px}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}.primary-button,.small-button{border-radius:5px;padding:8px 14px;font-size:13px;box-shadow:none;min-height:36px}.small-button{background:#fff;border:1px solid #dbe2dd;color:#325641}.primary-button{background:#236b4a;border:1px solid #236b4a}.text-button{background:none;border:0;color:#236b4a;padding:4px;font:inherit}.text-button:hover{text-decoration:underline}.danger-button{color:#b42318}.muted{color:#758078}
.workspace-heading{display:flex;align-items:center;justify-content:space-between;margin:0 0 24px;gap:16px}.workspace-heading h1{margin:5px 0 0;font-weight:650}.workspace-breadcrumb{margin:0;color:#7a867f;font-size:12px}.workspace-tools{display:flex;align-items:center;gap:16px}
.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}.metric{background:#fff;border:1px solid var(--line);border-radius:8px;padding:18px 20px}.metric-label{color:#77847b;font-size:12px}.metric-value{display:block;font:600 27px/1.5 'Segoe UI',sans-serif;color:#1c4633;letter-spacing:-.5px}.metric-note{font-size:12px;color:#8a958f}
.filter-form{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.filter-form label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#67756b;min-width:120px;flex:1}.filter-form label.search-field{flex:2;min-width:210px}.filter-form select,.filter-form input{font-size:13px;height:37px}.filter-actions{display:flex;gap:8px}.table-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.table-heading h2{margin:0}.table-panel{padding:20px 0 0;overflow:hidden}.table-panel>.table-heading,.table-panel>.selection-bar{margin-left:20px;margin-right:20px}.web-table-wrap{overflow:auto;max-height:calc(100vh - 355px);min-height:180px}.web-table{width:100%;border-collapse:separate;border-spacing:0;white-space:nowrap;font-size:13px}.web-table th{position:sticky;top:0;z-index:2;background:#f7f9f8;color:#647068;font-size:12px;font-weight:500;border-bottom:1px solid var(--line);padding:12px 14px}.web-table td{padding:13px 14px;border-bottom:1px solid #edf0ee;vertical-align:middle}.web-table tbody tr:hover td{background:#f6faf7}.web-table .number{text-align:right;font-variant-numeric:tabular-nums}.web-table th:last-child,.web-table td:last-child{position:sticky;right:0;background:#fff;box-shadow:-4px 0 8px #25382d06;z-index:1}.web-table th:last-child{z-index:3;background:#f7f9f8}.cell-sub{display:block;font-size:11px;color:#8b968f;margin-top:3px}.ticket-link{color:#286748;font-weight:600;font-family:'Segoe UI',sans-serif}.badge{display:inline-block;border-radius:4px;padding:2px 7px;font-size:11px;background:#f1f3f5;color:#637269}.badge.paid{background:#eaf5ee;color:#2d7851}.badge.pending{background:#fff5df;color:#9d7427}.badge.outbound{color:#497aae;background:#eef4fb}.pagination{display:flex;justify-content:space-between;align-items:center;padding:14px 20px;color:#7e8982;font-size:12px;gap:12px}.pagination>div{display:flex;gap:9px;align-items:center}.pagination select{width:85px;padding:6px}.selection-bar{display:flex;align-items:center;gap:12px;padding:10px 0;color:#567062}.empty{padding:48px 20px;text-align:center;color:#7c8981}.detail-drawer{margin:0 0 0 auto;inset:0;width:min(740px,100vw);height:100dvh;max-height:100dvh;max-width:100vw;border:0;padding:0 26px 28px;box-shadow:-10px 0 50px #102d2520}.detail-drawer::backdrop{background:#162e2850}.drawer-header{display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;background:#fff;padding:18px 0;border-bottom:1px solid var(--line);z-index:4;margin-bottom:20px}.drawer-header h2{margin:0}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 26px;margin:16px 0}.detail-item{padding:12px 0;border-bottom:1px solid #edf0ee;min-width:0}.detail-item dt{font-size:12px;color:#7b887e}.detail-item dd{margin:6px 0 0;overflow-wrap:anywhere}.form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.form-grid label{display:flex;flex-direction:column;gap:7px;font-size:13px}.form-grid .span-full{grid-column:1/-1}.form-section-title{font-size:15px;margin:0 0 18px;border-bottom:1px solid var(--line);padding-bottom:12px}.form-footer{display:flex;align-items:center;gap:12px;flex-wrap:wrap;position:sticky;bottom:12px;background:#fff;border:1px solid var(--line);padding:16px 20px;border-radius:7px;box-shadow:0 -3px 14px #14372508;z-index:5}.form-footer .muted{margin-right:auto}.notice{padding:12px 16px;background:#eef5f1;color:#506e5c;border:1px solid #dce9e0;border-radius:6px;margin-bottom:18px;font-size:13px}.error-notice{color:#a33225;background:#fff2ef;border-color:#f4c8be}#page-feedback{position:sticky;top:8px;z-index:10;margin-bottom:14px;padding:12px 16px;border-radius:6px;background:#e5f3ea;border:1px solid #b6d9c3}#page-feedback.error{background:#fff0ed;border-color:#edc4ba;color:#a33225}.message-row{display:flex;align-items:center;gap:16px;padding:18px 0;border-bottom:1px solid var(--line)}.message-row>div{flex:1}.message-row p{margin:5px 0;color:#7a857e}.settings-row{display:flex;align-items:center;justify-content:space-between;padding:17px 0;border-bottom:1px solid var(--line)}.settings-row input{width:18px}.account-links{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.account-links a{padding:24px;background:#fff;border:1px solid var(--line);border-radius:8px}.inline-options{display:flex;gap:12px;align-items:center}.inline-options label{display:flex;gap:6px;align-items:center}.attachment-list{list-style:none;padding:0}.attachment-list li{display:flex;gap:12px;align-items:center;padding:9px 0}.attachment-list img{width:56px;height:56px;object-fit:cover;border-radius:5px}.attachment-list select{width:120px}.attachment-list span{flex:1;overflow-wrap:anywhere}.attachment-list a{max-width:90px;overflow:hidden}.subsection{margin-top:24px}.web-table-wrap .empty{height:180px}.trend-bar{height:5px;background:#e8efea;border-radius:4px;margin-top:5px}.trend-bar>span{display:block;height:5px;border-radius:4px;background:#77a68a}
@media(min-width:1600px){body.app-layout .page{padding:16px 20px}.web-table td{padding:15px 18px}}
@media(max-width:1100px){:root{--sidebar-width:190px}body.app-layout .page{padding:22px 20px}.metric-grid{gap:10px}.metric{padding:14px}.metric-value{font-size:23px}.brand-copy strong{font-size:13px}.form-grid{grid-template-columns:1fr 1fr}.filter-form label{min-width:130px}.web-table-wrap{max-height:60vh}}
@media(max-width:760px){body.app-layout .topbar{position:static;width:100%;height:auto;padding:12px 16px;display:block}.brand-copy strong{font-size:15px}.topbar .nav{display:flex;flex-direction:row;overflow:auto;flex-wrap:nowrap;margin:12px 0 0;padding:0;gap:4px}.nav-link{flex:0 0 auto;font-size:12px;min-height:34px;padding:8px}.nav-title,.nav-symbol,.topbar .user-strip{display:none}body.app-layout .page{margin:0;width:100%;padding:20px 14px}.metric-grid{grid-template-columns:1fr 1fr}.workspace-tools .muted{display:none}.workspace-heading{margin-bottom:18px}.workspace-heading h1{font-size:22px}.form-grid{grid-template-columns:1fr 1fr;gap:14px}.filter-form{gap:10px}.filter-form label{min-width:calc(50% - 10px)}.account-links{grid-template-columns:1fr}.detail-drawer{padding:0 16px 24px}.form-footer{bottom:0}.pagination{padding:12px;flex-wrap:wrap}.table-heading{flex-wrap:wrap}.web-table-wrap{max-height:65vh}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* Override the legacy sidebar selector specificity and initial page margins. */
body.app-layout .page{margin-top:0;margin-right:0;margin-bottom:0}
body.app-layout .brand-mark{width:34px;height:34px}
body.app-layout .brand-mark img{width:24px;height:24px}
body.app-layout .brand-copy strong{font-size:15px}
body.app-layout .nav{gap:4px}
body.app-layout .nav-link{font-size:14px;font-weight:500;min-height:38px}
body.app-layout .nav-link.active{background:#2a5744;box-shadow:inset 3px 0 #d9b464}
@media(max-width:760px){body.app-layout .topbar{min-height:0;inset:auto;gap:0}body.app-layout .nav{display:flex;justify-content:flex-start;align-items:center}body.app-layout .nav-link{width:auto;flex:0 0 auto;font-size:12px;min-height:34px}body.app-layout .user-strip{display:none}body.app-layout .page{margin:0}}

.metric span{color:#77847b;font-weight:400}.metric strong{color:#1c4633;font-size:27px;line-height:1.5}
body.app-layout .page>*{animation:none;opacity:1}body.app-layout .brand,body.app-layout .nav-link,body.app-layout .nav-title,body.app-layout .user-strip{animation:none;opacity:1}
#web-client .web-table-wrap{max-height:calc(100vh - 530px);min-height:200px}#web-client .web-table td{padding:10px 14px}
@media(max-width:760px){#web-client .web-table-wrap{max-height:55vh}.metric strong{font-size:23px}.selection-bar{flex-wrap:wrap}}

/* Comfortable reading scale: larger Chinese text and matching control spacing. */
:root { --sidebar-width: 192px; --muted: #606e65; }
body.app-layout .page { padding: 8px 16px 12px; }
body {
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.65;
}
body.app-layout .brand { min-width: 0; gap: 8px; flex-direction: row; align-items: center; text-align: left; }
body.app-layout .brand-copy strong { font-size: 24px; line-height: 1.25; white-space: nowrap; letter-spacing: 1px; font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif; font-weight: 800; }
body.app-layout .brand-copy > span { font-size: 12px; opacity: .85; white-space: nowrap; }
body.app-layout .brand-mark { width: 40px; height: 40px; border: 0; border-radius: 0; background: none; box-shadow: none; }
body.app-layout .brand-mark img { width: 40px; height: 40px; }
body.app-layout .nav-title { text-align: center; }
body.app-layout .nav-link { display: flex; align-items: center; justify-content: center; font-size: 16px; min-height: 40px; padding: 8px 12px; }
body.app-layout .nav-link .nav-symbol { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
body.app-layout .user-strip { justify-content: center; }
body.app-layout .nav-link-wide .nav-text { letter-spacing: 2em; margin-right: -2em; }
body.app-layout .nav { gap: 10px; }
body.app-layout .nav-title { font-size: 14px; letter-spacing: .5px; }
body.app-layout .nav-link { font-size: 18px; min-height: 48px; padding: 10px 14px; }
.nav-symbol { width: 32px; font-size: 21px; }
.user-strip { font-size: 13px; }
.user-avatar { width: 32px; height: 32px; }
.user-strip button {
  font-size: 12px;
  color: #94b4a6;
  background: none;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color .15s, background .15s;
}
.user-strip button:hover {
  color: #e85a4f;
  background: rgba(232, 90, 79, .08);
}
h1, .workspace-heading h1 { font-size: 18px; font-weight: 700; }
h2 { font-size: 16px; font-weight: 600; }
.drawer-header h2 { font-size: 14px; font-weight: 600; }
h3, .form-section-title { font-size: 19px; }
.workspace-breadcrumb { font-size: 15px; color: #606e65; }
.workspace-heading { margin-bottom: 8px; }
.metric { padding: 20px 24px; }
.metric span { font-size: 15px; color: #606e65; }
.metric strong { font-size: 34px; line-height: 1.45; }
.primary-button, .small-button { font-size: 14px; min-height: 34px; padding: 6px 14px; }
.text-button { font-size: inherit; }
input, select, textarea { font-size: 18px; padding: 10px 12px; }
input[type=checkbox] { width: 20px; height: 20px; }
.filter-form { gap: 16px; }
.filter-form label { font-size: 14px; min-width: 155px; gap: 8px; color: #526158; font-weight: 600; }
.filter-form label.search-field { min-width: 260px; }
.filter-form input, .filter-form select { font-size: 17px; height: 46px; }
.filter-actions { gap: 10px; }
.web-table { font-size: 17px; }
.web-table th { font-size: 16px; font-weight: 600; padding: 14px 18px; color: #526158; }
#web-client .web-table td { padding: 14px 18px; }
.cell-sub { font-size: 15px; color: #65736a; margin-top: 5px; }
.badge { font-size: 15px; padding: 3px 9px; }
.pagination { font-size: 16px; padding: 18px 20px; color: #606e65; flex-wrap: wrap; }
.pagination select { width: 120px; font-size: 16px; }
.selection-bar { gap: 14px; flex-wrap: wrap; font-size: 16px; }
.form-grid { gap: 22px; }
.form-grid label, .detail-item dt { font-size: 16px; color: #526158; }
.detail-item dd { font-size: 18px; }
.detail-item { padding: 16px 0; }
.detail-drawer { width: min(860px, 100vw); }
.notice, .message-row small, .attachment-list small { font-size: 16px; }
.muted, .message-row p { color: #606e65; }
#web-client .web-table-wrap { max-height: 60vh; min-height: 260px; }
@media (max-width: 1100px) and (min-width: 761px) {
  :root { --sidebar-width: 176px; }
  body.app-layout .brand-copy strong { font-size: 16px; }
  body.app-layout .brand-mark { width: 36px; height: 36px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  body.app-layout .nav-link { font-size: 16px; min-height: 44px; padding: 9px 12px; }
  body.app-layout .brand-copy strong { font-size: 18px; }
  .workspace-heading h1 { font-size: 16px; }
  .metric { padding: 16px; }
  .metric strong { font-size: 24px; letter-spacing: -.6px; }
  .filter-form label { flex: 1 1 140px; min-width: 0; }
  .filter-form label.search-field { flex-basis: 100%; min-width: 0; }
  .filter-form input, .filter-form select { width: 100%; min-width: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .detail-grid { gap: 0 18px; }
  .primary-button, .small-button { padding: 9px 13px; }
  .form-footer { gap: 10px; }
  .form-footer .muted { flex-basis: 100%; }
  .pagination > div { flex-wrap: wrap; }
}

.staged-voucher { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 12px 0; border-bottom: 1px solid #e2e9e5; }
.staged-voucher img { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; }
.staged-voucher > span { flex: 1; min-width: 120px; overflow-wrap: anywhere; }
.staged-voucher select { max-width: 180px; font: inherit; padding: 8px; }
.badge.danger { color: #a42424; background: #fff0ef; border-color: #f0c2bf; }
.confirm-dialog { width: min(520px, calc(100vw - 32px)); border: 1px solid #dce5df; border-radius: 12px; padding: 24px; color: #24332d; }
.confirm-dialog::backdrop { background: #162e2860; }
.confirm-dialog h2 { margin-top: 0; }
.confirm-dialog form { display: flex; justify-content: flex-end; gap: 12px; }
.statistics-payment-summary { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0 20px 18px; font-size: 15px; }
.statistics-payment-summary strong { margin-left: 6px; color: #1c4633; }

/* Manual orders follow the desktop: information left, weights and actions right. */
#manual-form { color:#334155; }
#manual-form .manual-workspace { display:grid; grid-template-columns:minmax(0,1.8fr) minmax(340px,1fr); gap:14px; align-items:start; }
#manual-form .panel { padding:16px; margin-bottom:0; border-color:#d9e2ef; border-radius:6px; }
#manual-form .manual-section-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:12px; }
#manual-form h2 { margin:0; color:#1e3a5f; font-size:14px; font-weight:700; white-space:nowrap; }
#manual-form .manual-tools { display:flex; gap:8px; flex-wrap:wrap; }
#manual-form .manual-tools button { min-height:36px; padding:6px 12px; font-size:14px; }
#manual-form .manual-fields-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px 40px; }
#manual-form label { display:grid; grid-template-columns:72px minmax(0,1fr); align-items:center; gap:4px; font-size:16px; font-weight:400; color:#334155; min-width:0; }
#manual-form [hidden] { display:none !important; }
#manual-form em { font-style:normal; color:#dc2626; }
#manual-form input,#manual-form select { min-width:0; width:100%; padding:5px 10px; height:32px; font-size:14px; font-weight:400; border-color:#cbd5e1; }
#manual-form .manual-price > div { display:flex; min-width:0; }
#manual-form .manual-price input { flex:1; width:0; border-radius:4px 0 0 4px; }
#manual-form .manual-price select { width:94px; border-left:0; border-radius:0 4px 4px 0; padding:5px; font-size:14px; }
#manual-form #manual-order-fields { border-top:1px solid #e2e8f0; padding-top:12px; margin-top:12px; }
#manual-form .manual-hint { color:#64748b; font-size:12px; line-height:1.5; margin:8px 0 0; font-weight:400; }
#manual-form .manual-side { position:sticky; top:0; }
#manual-form #manual-direction { background:#eff6ff; color:#2563eb; border:1px solid #bfdbfe; padding:4px 7px; border-radius:4px; font-size:12px; }
#manual-form .manual-weight-fields { background:#f8faff; border:1px solid #dbe5f3; border-radius:6px; padding:12px; display:grid; gap:6px; }
#manual-form .manual-weight-fields label { grid-template-columns:76px minmax(0,1fr) 26px; font-size:16px; gap:4px; }
#manual-form .manual-weight-fields input { text-align:right; background:#fff; }
#manual-form #weight-preview,
#manual-form #amount-preview { background:#f8fafc; color:#334155; }
#manual-form .manual-save { width:100%; margin-top:12px; background:#2563eb; border-color:#2563eb; font-size:15px; min-height:36px; }
.manual-field-options { display:grid; grid-template-columns:1fr 1fr; gap:10px 14px; margin:16px 0; }
.manual-field-options label { display:flex; align-items:center; gap:8px; font-size:14px; }
.manual-field-options input { flex:none; }
#web-client .manual-history { margin:12px 0 0; padding-top:0; }
#web-client .manual-history .table-heading { padding:10px 14px; margin:0; gap:14px; }
#web-client .manual-history h2 { font-size:14px; font-weight:700; margin:0; }
#web-client .manual-history .muted { font-size:13px; }
#manual-history-tools { margin-left:auto; }
#manual-history-tools button,#manual-history-search button { font-size:14px; min-height:34px; padding:5px 12px; }
#manual-history-search { display:flex; gap:8px; padding:0 14px 10px; }
#manual-history-search input { width:min(360px,75%); height:34px; padding:5px 10px; font-size:14px; }
#web-client .manual-history .web-table { font-size:15px; }
#web-client .manual-history .web-table th { font-size:17px; padding:9px 12px; }
#web-client .manual-history .web-table td { padding:7px 12px; }
#web-client .manual-history .cell-sub { font-size:12px; margin-top:2px; }
#web-client .manual-history .pagination { font-size:14px; padding:8px 14px; }
#web-client .manual-history .pagination button { font-size:14px; min-height:32px; padding:4px 10px; }
#web-client .manual-history tr[data-manual-history] { cursor:pointer; }
#web-client .manual-history tr[data-manual-history]:focus { outline:2px solid #2563eb; outline-offset:-2px; }
#web-client[data-page="manual_orders"] #page-feedback { font-size:14px; padding:7px 12px; margin-bottom:8px; }
@media(min-width:1101px) {
  body.app-layout .page.manual-page { padding:8px 16px 12px; height:100vh; height:100dvh; min-height:660px; max-width:none; }
  #web-client[data-page="manual_orders"],#web-client[data-page="manual_orders"] #workspace-content { display:flex; flex-direction:column; min-height:0; height:100%; }
  #manual-form { flex:none; max-height:60vh; overflow:auto; }
  #web-client .manual-history { display:flex; flex-direction:column; flex:1; min-height:220px; }
  #manual-history-content { display:flex; flex-direction:column; flex:1; min-height:0; }
  #web-client .manual-history .web-table-wrap { flex:1; min-height:0; max-height:none; }
  #manual-history-content > .empty { padding:20px; }
}
@media(max-width:1100px) {
  #manual-form .manual-fields-grid { grid-template-columns:1fr; }
  #manual-form .manual-workspace { grid-template-columns:1fr; }
  #manual-form .manual-side { position:static; }
  #web-client .manual-history .web-table-wrap { max-height:55vh; min-height:220px; }
}
@media(max-width:760px) {
  #manual-form .manual-fields-grid { grid-template-columns:1fr; }
  #manual-form .panel { padding:12px; }
  #manual-form label { grid-template-columns:100px minmax(0,1fr); font-size:14px; }
  #manual-form .manual-section-heading { flex-wrap:wrap; }
  #manual-form .manual-tools { margin-left:auto; gap:5px; }
  #manual-form .manual-tools button { padding:5px 8px; font-size:13px; }
  .manual-field-options { grid-template-columns:1fr; }
}

/* Keep record summaries and actions compact so the order table gets the space. */
#web-client[data-page="records"] .workspace-heading { margin-bottom: 12px; flex-shrink: 0; }
#web-client[data-page="records"] .workspace-heading h1 { font-size: 18px; font-weight: 700; margin-top: 0; }
#web-client[data-page="records"] .workspace-breadcrumb { font-size: 13px; }
#web-client[data-page="records"] .records-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; padding: 14px 16px; margin-bottom: 10px; background: #fff; border: 1px solid var(--line); border-radius: 6px; font-size: 15px; flex-shrink: 0; }
#web-client[data-page="records"] .records-summary > span { white-space: nowrap; color: #77847b; }
#web-client[data-page="records"] .records-summary strong { color: #1c4633; font-size: 18px; font-weight: 600; margin: 0 3px; font-variant-numeric: tabular-nums; }
#web-client[data-page="records"] .summary-context { color: #77847b; font-size: 14px; }
#web-client[data-page="records"] #workspace-content > .panel:not(.table-panel) { padding: 10px 14px; margin-bottom: 10px; flex-shrink: 0; }
#web-client[data-page="records"] .filter-form { gap: 8px 10px; }
#web-client[data-page="records"] .filter-form label { font-size: 14px; min-width: 110px; gap: 4px; }
#web-client[data-page="records"] .filter-form label.search-field { min-width: 180px; font-weight: 600; }
#web-client[data-page="records"] .filter-form label.date-field { min-width: 160px; }
#web-client[data-page="records"] .filter-form input,#web-client[data-page="records"] .filter-form select { width: 100%; min-width: 0; font-size: 15px; height: 36px; padding: 6px 8px; }
#web-client[data-page="records"] .primary-button,#web-client[data-page="records"] .small-button { font-size: 14px; min-height: 34px; padding: 6px 14px; }
#web-client[data-page="records"] .table-panel { padding-top: 0; margin-bottom: 0; }
#web-client[data-page="records"] .records-toolbar { flex-wrap: wrap; justify-content: flex-start; gap: 8px 14px; margin: 0; padding: 10px 14px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
#web-client[data-page="records"] .records-toolbar h2 { font-size: 16px; font-weight: 600; white-space: nowrap; }
#web-client[data-page="records"] .records-toolbar .selection-bar { flex: 1; margin: 0; padding: 0; gap: 8px; font-size: 14px; }
#web-client[data-page="records"] #selection-count { white-space: nowrap; }
#web-client[data-page="records"] .pagination { padding: 8px 14px; font-size: 14px; flex-shrink: 0; }
#web-client[data-page="records"] .pagination select { width: 105px; font-size: 14px; }
@media screen and (min-width:761px) {
  body.app-layout .page.records-page { height: 100vh; height: 100dvh; min-height: 640px; display: flex; flex-direction: column; }
  #web-client[data-page="records"],#web-client[data-page="records"] #workspace-content { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  #web-client[data-page="records"] #workspace-content > .table-panel { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  #web-client[data-page="records"] .web-table-wrap { flex: 1; min-height: 0; max-height: none; }
  body.app-layout .page.customers-page { height: 100vh; height: 100dvh; min-height: 640px; display: flex; flex-direction: column; }
  #web-client[data-page="customers"],#web-client[data-page="customers"] #workspace-content { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  #web-client[data-page="customers"] #workspace-content > .table-panel { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  #web-client[data-page="customers"] .web-table-wrap { flex: 1; min-height: 0; max-height: none; }
  #web-client[data-page="customers"] .web-table { height: 100%; }
  #web-client[data-page="customers"] .web-table td { vertical-align: middle; }
}
@media (max-width:760px) {
  #web-client[data-page="records"] .records-summary { gap: 4px 18px; }
  #web-client[data-page="records"] .records-summary > span { flex: 1 1 125px; }
  #web-client[data-page="records"] .records-summary .summary-context { flex-basis: 100%; }
  #web-client[data-page="records"] .filter-form label,#web-client[data-page="records"] .filter-form label.date-field { min-width: 0; }
  #web-client[data-page="records"] .records-toolbar .selection-bar { flex-basis: 100%; flex-wrap: wrap; }
}
