


:root {
  --top-1: #132a4c; --top-2: #0a1728;          
  --blue-1: #4c8fd6; --blue-2: #3b73be;        
  --side-1: #4e93db; --side-2: #2b6ab4;        
  --tab-1: #fdd3a1; --tab-2: #eea75f;          
  --ink: #1a1a1a;
  --muted: #6b7280;
  --line: #a9b6c6;
  --bg: #dfe3e8;
  --panel: #eef2f7;
  --row-alt: #eff3ff;
  --brand: #2f6cb5;
  --ok: #0a7d3c;
  --warn: #b45309;
  --err: #c0392b;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 13.5px/1.5 "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Tahoma, Arial, sans-serif;
}
a { color: var(--brand); text-decoration: none; }
h1, h2, h3 { margin: 0 0 8px; font-size: 15px; color: #123a6b; }
.app { display: flex; flex-direction: column; min-height: 100%; }
.grow { flex: 1; }




.titlebar {
  display: flex; align-items: center; gap: 6px; padding: 0 10px;
  height: auto; min-height: 54px;
  background: linear-gradient(var(--top-1), var(--top-2)); color: #fff; font-size: 13.5px;
  border-bottom: 1px solid #06101d; overflow: hidden; white-space: nowrap;
}
.titlebar .tb-logo {
  width: 32px; height: 32px; border-radius: 8px; background: #fff;
  display: block; object-fit: cover; flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .55);
}
.titlebar .tb-name { font-weight: 700; }


.titlebar .tb-ver { font-weight: 400; font-size: .88em; opacity: .8; letter-spacing: .2px; }
.titlebar .tb-lic { color: #ffe9c9; }
.titlebar .tb-tab { color: #fff; overflow: hidden; text-overflow: ellipsis; }
.titlebar .tb-user { margin-left: auto; color: #ffe9c9; font-size: 12.5px; padding-left: 10px; }
.burger {
  display: none; border: 1px solid #b98a5c; background: rgba(255, 255, 255, .12);
  color: #fff; border-radius: 3px; font-size: 14px; line-height: 1; padding: 3px 7px; cursor: pointer;
  flex: 0 0 auto;
}


.menubar {
  display: flex; align-items: center; gap: 0; background: #fff; overflow-x: auto;
  border-bottom: 1px solid #8aa8cc; padding: 1px 4px; scrollbar-width: none;
}
.menubar::-webkit-scrollbar { display: none; }
.menubar a {
  color: #10356b; font-weight: 700; font-size: 13.5px; padding: 3px 9px;
  border-radius: 3px; white-space: nowrap;
}
.menubar a:hover { background: #dbe9fb; }
.menubar a.on { background: #c8ddf5; }
.menubar a .k { font-weight: 400; }


.toolrow {
  display: flex; align-items: flex-start; background: linear-gradient(#4e93da, #3b73be 70%, #35699f);
  border-bottom: 1px solid #2b5c9e; padding: 5px 8px 3px; overflow-x: auto;
}




.toolrow form { display: contents; }
.toolrow .logoutbtn {
  font: inherit; background: none; border: 0; cursor: pointer; text-align: center;
  -webkit-appearance: none; appearance: none;
}
.toolrow a, .toolrow .logoutbtn {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  width: 76px; flex: 0 0 auto; padding: 1px 0 3px; color: #fff; font-size: 12.5px;
  border-right: 1px dashed rgba(255, 255, 255, .45); white-space: nowrap;
}
.toolrow a:last-child, .toolrow form:last-child .logoutbtn { border-right: none; }
.toolrow a:hover, .toolrow .logoutbtn:hover { background: rgba(255, 255, 255, .14); }
.toolrow .ic { display: flex; align-items: center; justify-content: center; height: 28px; }
.toolrow .ic img { width: 26px; height: 26px; object-fit: contain; display: block; }


.body { display: flex; flex: 1; min-height: 0; align-items: stretch; }
.modulebar {
  width: 172px; flex: 0 0 172px; overflow-y: auto;
  background: linear-gradient(#4e93db, #2b6ab4 60%, #27619f);
  padding: 6px 0 20px;
}
.modulebar a {
  display: flex; align-items: center; gap: 9px; color: #fff;
  font-size: 14.5px; font-weight: 700; padding: 7px 10px;
  border-bottom: 1px dashed rgba(255, 255, 255, .38);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .4);
}
.modulebar a .ic {
  width: 30px; height: 30px; flex: 0 0 30px;
  display: inline-flex; align-items: center; justify-content: center; text-shadow: none;
}
.modulebar a .ic img { width: 27px; height: 27px; object-fit: contain; display: block; }
.modulebar a .nm { flex: 1; }
.modulebar a .arw { display: none; font-size: 16px; }
.modulebar a.on {
  background: linear-gradient(#ffffff, #dfe9f7); color: #10356b; text-shadow: none;
  box-shadow: inset 0 0 0 1px #b9cde6;
}
.modulebar a.on .arw { display: inline; color: #10356b; }

.pane { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #fff; }


.navclose { display: none; }
.tabbar {
  display: flex; align-items: flex-end; gap: 3px; background: linear-gradient(#4e93da, #3b73be 0 3px, #fff 3px);
  border-bottom: 1px solid #9db9d8; padding: 7px 6px 0; overflow-x: auto; scrollbar-width: none;
}
.tabbar::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #10356b;
  background: linear-gradient(#fdfefe, #e9eff7); border: 1px solid #b9cde6; border-bottom: none;
  border-radius: 5px 5px 0 0; padding: 3px 8px 4px; white-space: nowrap; cursor: pointer;
}
.tab.on {
  background: linear-gradient(var(--tab-1), var(--tab-2)); border-color: #d3924f;
  color: #4a2a06; font-weight: 700;
}
.tab .x { color: #7a4a26; font-size: 12px; padding: 0 1px; }
.tab .x:hover { color: var(--err); }
.content { flex: 1; min-height: 0; overflow: auto; padding: 10px; background: #fff; }


.statusbar {
  display: flex; align-items: center; gap: 10px; background: #eef2f7;
  border-top: 1px solid #b9c6d6; padding: 2px 10px; font-size: 12.5px; color: #43536b;
}



.beian { color: #5b6a80; text-decoration: none; white-space: nowrap; }
.beian:hover { text-decoration: underline; }
.login-wrap .beian { color: rgba(200,220,245,.72); }
.beian-row { margin-top: 4px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }


.card { background: #fff; border: 1px solid #cfd8e3; border-radius: 3px; padding: 10px; margin-bottom: 10px; }
.grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.kpi { background: linear-gradient(#ffffff, #f4f7fb); border: 1px solid #cfd8e3; border-radius: 3px; padding: 8px 10px; }
.kpi .t { color: var(--muted); font-size: 12.5px; }
.kpi .v { font-size: 18px; font-weight: 700; margin-top: 2px; word-break: break-all; color: #123a6b; }
.kpi .s { color: var(--muted); font-size: 12px; margin-top: 2px; }
.kpi.blue .v { color: var(--brand); }
.kpi.green .v { color: var(--ok); }
.kpi.orange .v { color: var(--warn); }
.kpi.red .v { color: var(--err); }


label { display: block; font-size: 12.5px; color: #33465e; margin-bottom: 3px; }
input, select, textarea {
  width: 100%; padding: 4px 6px; border: 1px solid #8fa5bd; border-radius: 2px;
  background: #fff; font-size: 13.5px; font-family: inherit; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 1px solid var(--brand); border-color: var(--brand); }
.field { margin-bottom: 8px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.row > * { flex: 1 1 150px; min-width: 0; }

.card > .field > input, .card > .field > select { max-width: 320px; }
.card > .field > textarea { max-width: 720px; }

.tablewrap td > input, .tablewrap td > select { max-width: 240px; }

.tablewrap td.num > input { text-align: right; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }

.filters > div { flex: 0 1 210px; min-width: 0; }


.formgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 28px; }
.formgrid .field { display: flex; align-items: center; gap: 8px; margin-bottom: 0; }
.formgrid .field > label {
  flex: 0 0 78px; text-align: right; margin-bottom: 0; color: #33465e; white-space: nowrap;
}
.formgrid .field > input, .formgrid .field > select,
.formgrid .field > .pick-inline { flex: 1 1 auto; min-width: 0; max-width: 320px; }
.formgrid .field > textarea { flex: 1 1 auto; min-width: 0; max-width: 780px; }
.formgrid .field.full { grid-column: 1 / -1; }






@media (min-width: 861px) {
  .formgrid .field.full > input, .formgrid .field.full > select,
  .formgrid .field.full > .pick-inline {
    max-width: min(320px, calc((100% - 28px) / 2 - 86px));
  }
  





  .formgrid .field.full > textarea {
    max-width: min(calc(100% - 86px), calc(50% + 334px));
  }
}


.req > label, .field.req > label, .formgrid .field.req > label { color: #0000ff; }
@media (max-width: 720px) {
  .formgrid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .formgrid .field > input, .formgrid .field > select,
  .formgrid .field > .pick-inline { max-width: none; }
}

.filters input, .filters select, .filters .btn, .filters label.onlychk { height: 32px; }
.filters input[type="checkbox"] { height: auto; width: auto; }

.filters > .dt { flex: 0 0 auto; }
.filters > .dt input[type="date"] { width: 148px; }

.filters > .whmin { flex: 0 0 auto; }
.filters > .whmin select { width: 132px; }

.filters > .qmin { flex: 0 1 210px; }
.filters > .quickcell { flex: 0 0 auto; }
.filters > .qbtn { flex: 0 0 auto; margin-left: auto; }

.filters label.onlychk {
  



  display: flex; align-items: center; gap: 7px; padding: 0 12px; margin-bottom: 0;
  font-size: 14px; font-weight: 700; color: #0f3d76; cursor: pointer; white-space: nowrap;
  border: 1px solid #7fa8d6; border-radius: 3px;
  background: linear-gradient(#ffffff, #dbeaf9);
  box-shadow: inset 0 1px 0 #fff;
  user-select: none;
}
.filters label.onlychk:hover { background: linear-gradient(#ffffff, #cbe0f8); }
.filters label.onlychk input { width: 17px; height: 17px; cursor: pointer; accent-color: #1d4ed8; margin: 0; }

.filters label.onlychk.on {
  background: linear-gradient(#2f8a41, #1f6b30); border-color: #17591f; color: #fff;
  

  box-shadow: 0 0 0 1px rgba(47,138,65,.35), inset 0 1px 0 rgba(255,255,255,.25);
}
.filters label.onlychk.on input { accent-color: #ffffff; }

.filters label.onlychk.plain {
  border: 0; background: none; box-shadow: none; padding: 0 2px; gap: 6px;
  color: #123a6b;
}
.filters label.onlychk.plain:hover { background: none; color: #1d4ed8; }
.filters label.onlychk.plain.on { background: none; box-shadow: none; color: #1f6b30; }
.filters label.onlychk.plain.on:hover { color: #1f6b30; }
.filters label.onlychk.plain.on input { accent-color: #1f6b30; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }



.lockro {
  background: #e9edf2 !important;
  color: #4a5c70 !important;
  cursor: not-allowed;
  pointer-events: none;
}
.lockro::placeholder { color: #9aa8b6; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  min-height: 32px; padding: 0 14px;
  border: 1px solid #7f96b2; border-radius: 3px;
  background: linear-gradient(#ffffff, #e4ebf4); color: #123a6b; cursor: pointer;
  font-size: 14px; font-family: inherit; text-align: center; white-space: nowrap;
  line-height: 1;
}
.btn:hover { background: linear-gradient(#ffffff, #dbe8f8); }
.btn.small { min-height: 24px; padding: 0 9px; font-size: 12.5px; gap: 3px; }
.btn.ghost { background: linear-gradient(#f7fbff, #dbeaf9); border-color: #8fb4dd; color: #0f3d76; }
.btn.grey { background: linear-gradient(#fdfdfd, #e8edf3); color: #33465e; }
.btn.ok { background: linear-gradient(#55ad66, #2f8a41); border-color: #24703a; color: #fff; }
.btn.danger { background: linear-gradient(#fff, #f7dede); border-color: #d9a1a1; color: #a52525; }

.btn:disabled, button.btn[disabled], .btn.dis {
  background: linear-gradient(#f6f7f9, #e6e9ee); border-color: #ccd3dc; color: #98a2ae;
  cursor: not-allowed; box-shadow: none;
}
.btn:disabled:hover, button.btn[disabled]:hover { background: linear-gradient(#f6f7f9, #e6e9ee); }


.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td {
  padding: 4px 8px; border: 1px solid #c8d2de; text-align: left; font-size: 13.5px;
  white-space: nowrap; vertical-align: middle;
}
thead th { background: linear-gradient(#ffffff, #e4e4e4); color: #1a1a1a; font-weight: 700; text-align: center; }

thead th.sortable { cursor: pointer; user-select: none; }
thead th.sortable:hover { background: linear-gradient(#ffffff, #cfe0f3); }
thead th.sortable.on { background: linear-gradient(#ffffff, #bfd7ee); }
thead th .sort-ar { color: #9fb0c4; font-size: 11px; }
thead th.sortable.on .sort-ar { color: #c2410c; font-weight: 700; }
thead th.sortable a { display: block; color: inherit; }
tbody tr:nth-child(even) td { background: var(--row-alt); }
tbody tr:hover td { background: #dceaf9; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.strong { font-weight: 700; }

table.ctr th, table.ctr td { text-align: center; }


table th { position: relative; }
.col-grip {
  position: absolute; top: 0; right: -3px; width: 9px; height: 100%;
  cursor: col-resize; z-index: 4; touch-action: none;
}
.col-grip::after {
  content: ''; position: absolute; top: 12%; left: 4px; width: 2px; height: 76%;
  background: transparent; border-radius: 1px;
}
.col-grip:hover::after, .col-grip.on::after { background: #3d7fd6; }
body.col-drag, body.col-drag * { cursor: col-resize; user-select: none; }

table.colfixed { table-layout: fixed; }


table.colfixed > thead > tr > th, table.colfixed > thead > tr > td,
table.colfixed > tbody > tr > td, table.colfixed > tbody > tr > th,
table.colfixed > tfoot > tr > td, table.colfixed > tfoot > tr > th {
  overflow: hidden; text-overflow: ellipsis;
}

table.colfixed th .col-grip { right: 0; }
@media (max-width: 700px) {
  table.resp .col-grip { display: none; }   
}
.muted { color: var(--muted); font-size: 12.5px; }
.tag { display: inline-block; padding: 0 7px; border: 1px solid #b9c6d6; border-radius: 2px; font-size: 12px; background: #f3f6fa; }
.tag.draft { color: #8a5a00; border-color: #e0c079; background: #fff8e5; }
.tag.submitted { color: #0a7d3c; border-color: #93cfab; background: #eafaf1; }
.tag.void { color: #6b7280; text-decoration: line-through; }


.toolbar {
  display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 8px;
  border-top: 1px solid #cfd8e3; border-bottom: 1px solid #cfd8e3; padding: 7px 0;
}
.toolbar .tb {
  display: inline-flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 2px 10px; color: #10356b; font-size: 12.5px; white-space: nowrap;
  border-right: 1px dashed #c8d2de;
}
.toolbar .tb:last-child { border-right: none; }
.toolbar .tb .ic { font-size: 18px; line-height: 1.1; }
.toolbar .tb:hover { background: #eaf2fd; }

.toolbar button.tb {
  background: none; cursor: pointer; font: inherit;
  border: none; border-right: 1px dashed #c8d2de;
}
.toolbar button.tb:hover { background: #eaf2fd; }
.toolbar .tb.dis { color: #a6b0bb; cursor: default; }
.toolbar .tb.dis:hover { background: none; }
.toolbar .tb[disabled], .toolbar .tb[disabled]:hover {
  color: #a6b0bb; cursor: not-allowed; background: none; border-color: #ccd3dc; opacity: .75;
}
.grid-table { min-width: 900px; }
.grid-table th, .grid-table td { padding: 3px 4px; }
.grid-table thead th { font-size: 12.5px; }
.grid-table thead th.num { text-align: center; }   
.grid-table input, .grid-table select { padding: 3px 5px; font-size: 13px; }


.grid-table td.pick > input, .grid-table td > input.remark { max-width: none; }


form#billform > .field > textarea { max-width: none; }
.grid-table tfoot th { background: linear-gradient(#ffffff, #e9eef6); text-align: right; }
.grid-table .no { color: var(--muted); font-size: 12.5px; text-align: center; background: #f2f4f8; }


.navpage { background: #fff; }
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding: 20px 8px 10px; }

.modlist { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.modlink {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px; border: 1px solid #cfd8e3; border-radius: 3px;
  background: linear-gradient(#ffffff, #f4f7fb); color: var(--ink);
  font-size: 14px; font-weight: 600;
}
.modlink .code { font-size: 11.5px; font-weight: 400; color: var(--muted); white-space: nowrap; }
.modlink:hover { background: #eaf2fd; box-shadow: inset 0 0 0 1px #bcd4ee; }


.kpigrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.boardgrid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel { background: #fff; border: 1px solid #cfd8e3; border-radius: 3px; padding: 8px 10px 10px; }
.panelhead { font-weight: 700; color: #10356b; font-size: 13.5px; margin-bottom: 6px; }
.panelhead .muted { font-weight: 400; font-size: 11.5px; }
.chart { min-height: 40px; }
.chart-svg { display: block; width: 100%; height: auto; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; font-size: 12px; color: #43536b; }
.legend .lg { display: inline-flex; align-items: center; gap: 6px; }
.legend .lg i { display: inline-block; width: 16px; height: 3px; border-radius: 2px; }

.cmprow { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.cmprow:last-child { margin-bottom: 0; }
.cmprow .cmpname { flex: 0 0 54px; font-size: 12.5px; color: #33465e; }
.cmpbars { flex: 1 1 auto; min-width: 0; }
.cmpbar { display: flex; align-items: center; gap: 6px; }
.cmpbar + .cmpbar { margin-top: 2px; }
.cmpbar .tag { flex: 0 0 58px; font-size: 11px; color: #7b8a9e; white-space: nowrap; }
.cmpbar .track { flex: 1 1 auto; height: 13px; background: #f0f4f9;
  border: 1px solid #e4eaf2; border-radius: 2px; overflow: hidden; }
.cmpbar .track i { display: block; height: 100%; }
.cmpbar .cmpv { flex: 0 0 82px; text-align: right; font-size: 12px; color: #33465e;
  font-variant-numeric: tabular-nums; }
.cmpbar .cmpv.neg { color: #c0392b; }

.hrow { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; color: var(--ink); }
.hrow:last-child { margin-bottom: 0; }
.hrow .hl { flex: 0 0 112px; font-size: 12.5px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.hrow .hb { flex: 1 1 auto; height: 14px; background: #f0f4f9;
  border: 1px solid #e4eaf2; border-radius: 2px; overflow: hidden; }
.hrow .hb i { display: block; height: 100%; background: linear-gradient(#7fb2e0, #3f83c4); }
.hrow .hv { flex: 0 0 84px; text-align: right; font-size: 12px; color: #33465e;
  font-variant-numeric: tabular-nums; }
a.hrow:hover .hl { color: var(--brand); text-decoration: underline; }

.owegrid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.owehead { font-size: 12.5px; font-weight: 700; color: #33465e;
  border-bottom: 1px solid #e4eaf2; padding-bottom: 3px; margin-bottom: 3px; }
.owelist { list-style: none; margin: 0; padding: 0; }
.owelist li { display: flex; justify-content: space-between; gap: 8px;
  padding: 3px 0; font-size: 12.5px; }
.owelist li a { display: flex; justify-content: space-between; gap: 8px; width: 100%; }
.owelist .on { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.owelist .ov { color: #c0392b; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 900px) {
  .boardgrid { grid-template-columns: minmax(0, 1fr); }
  .kpigrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .owegrid { grid-template-columns: minmax(0, 1fr); }
  .hrow .hl { flex: 0 0 84px; }
  .cmpbar .cmpv { flex: 0 0 70px; }
}
.tile {
  display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 10px 4px;
  border-radius: 5px; color: var(--ink); text-align: center;
}
.tile .ic { height: 48px; display: flex; align-items: center; justify-content: center; }
.tile .ic-img { width: 46px; height: 46px; object-fit: contain; display: block; mix-blend-mode: multiply; }
.tile .nm { font-size: 13.5px; line-height: 1.25; }
.tile .code { font-size: 11px; color: var(--muted); }
.tile:hover { background: #eaf2fd; box-shadow: inset 0 0 0 1px #bcd4ee; }
.tile.todo { opacity: .45; cursor: not-allowed; }
.tile.todo:hover { background: transparent; box-shadow: none; }
.qhead {
  margin: 4px 8px 6px; padding-top: 8px; border-top: 1px dashed #c3d3e6;
  color: #10356b; font-weight: 700;
}
.qlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 2px 12px; padding: 0 8px 14px; }
.qitem { display: flex; align-items: center; gap: 6px; padding: 3px 5px; border-radius: 3px; color: #1f4f86; font-size: 13.5px; }
.qitem .q-img { width: 16px; height: 16px; flex: 0 0 16px; object-fit: contain; display: block; mix-blend-mode: multiply; }
.qitem:hover { background: #eaf2fd; }
.qitem.todo { color: #9aa4b2; cursor: not-allowed; }


.flash { padding: 7px 10px; border-radius: 3px; margin-bottom: 8px; border: 1px solid; font-size: 13.5px; }
.flash.ok { color: #0a5c30; background: #eafaf1; border-color: #a7d7bd; }
.flash.warn { color: #8a5a00; background: #fff8e5; border-color: #e0c079; }
.flash.err { color: #8f1d1d; background: #fdeeee; border-color: #efb4b4; }



.tabs { display: flex; gap: 3px; flex-wrap: wrap; margin-bottom: 10px; align-items: flex-end; }
.quick { display: flex; gap: 4px; flex-wrap: wrap; }
.quick button {
  font-family: inherit; cursor: pointer; padding: 0 10px; font-size: 13px;
  height: 32px;   
  border: 1px solid #d3a868; border-radius: 3px;
  background: linear-gradient(#fffdf7, #f5e7cb); color: #6b4a11;
}
.quick button:hover { background: linear-gradient(#fffef9, #eedcba); }
.tabs a {
  padding: 3px 11px 4px; border: 1px solid #b9cde6; border-bottom: none;
  border-radius: 5px 5px 0 0; background: linear-gradient(#fdfefe, #e9eff7);
  font-size: 13.5px; color: #10356b;
}
.tabs a.on { background: linear-gradient(var(--tab-1), var(--tab-2)); border-color: #d3924f; color: #4a2a06; font-weight: 700; }
.tab-ic { width: 15px; height: 15px; object-fit: contain; vertical-align: -2px; margin-right: 3px; }
h1 .h-ic { width: 24px; height: 24px; object-fit: contain; vertical-align: -5px; margin-right: 4px; }


.pick { position: relative; }
.pick .sug {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 20; background: #fff;
  border: 1px solid #8fa5bd; border-radius: 2px; max-height: 260px; overflow-y: auto;
  display: none; box-shadow: 2px 4px 10px rgba(0, 0, 0, .18);
}
.pick .sug div { padding: 5px 8px; cursor: pointer; font-size: 13.5px; border-bottom: 1px solid #eef1f5; }
.pick .sug div:hover, .pick .sug div.on { background: #dceaf9; }
.pick .sug .s { color: var(--muted); font-size: 12px; }
.grid-table .pick { position: relative; }
.grid-table .pick .sug { position: static; margin-top: 3px; max-height: 220px; }


.psug-pop {
  display: none; position: fixed; z-index: 400; max-width: 96vw; max-height: 240px;
  overflow-y: auto; background: #fff; border: 1px solid #8fa5bd; border-radius: 2px;
  box-shadow: 2px 6px 14px rgba(15, 61, 118, .22);
}
.psug-pop div {
  padding: 5px 8px; cursor: pointer; font-size: 13.5px; border-bottom: 1px solid #eef1f5;
}
.psug-pop div:last-child { border-bottom: 0; }
.psug-pop div:hover { background: #dceaf9; }
.psug-pop .s { color: var(--muted); font-size: 12px; }
.psug-pop .p-empty { padding: 8px 10px; color: #6b7c8f; font-size: 13px; }


.grid-table .pick { padding-right: 26px; }


.grid-table .pick .sel {
  position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; padding: 0;
  line-height: 20px; font-size: 12px; cursor: pointer; border: 1px solid #8fb4dd;
  border-radius: 3px; background: linear-gradient(#f7fbff, #dbeaf9); color: #0f3d76;
}
.grid-table .pick .sel:hover { background: linear-gradient(#ffffff, #c7ddf5); }


.bsug-pop {
  display: none; position: fixed; z-index: 400; min-width: 300px; max-width: 92vw;
  max-height: 250px; overflow: auto; background: #fff; border: 1px solid #8fb4dd;
  border-radius: 4px; box-shadow: 0 8px 20px rgba(15, 61, 118, .24);
}

.bsug-pop table.btab3 { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.bsug-pop .btab3 th {
  position: sticky; top: 0; z-index: 1; padding: 5px 10px; white-space: nowrap;
  background: linear-gradient(#fdfefe, #e6eef8); color: #10356b; font-weight: 600;
  border-bottom: 1px solid #b9cade;
}
.bsug-pop .btab3 td {
  padding: 5px 10px; border-bottom: 1px solid #eef1f5; white-space: nowrap;
  cursor: pointer;
}
.bsug-pop .btab3 tr:last-child td { border-bottom: 0; }
.bsug-pop .btab3 tr:hover { background: #dceaf9; }
.bsug-pop .btab3 th, .bsug-pop .btab3 td { text-align: center; }
.bsug-pop .btab3 td.bno { font-weight: 700; color: #0f3d76; }
.bsug-pop .btab3 td.num { font-variant-numeric: tabular-nums; }
.bsug-pop .btab3 td.neg { color: #d0021b; }
.bsug-pop .btab3 td.bsup { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.bsug-pop .b-empty { padding: 8px 10px; color: #6b7c8f; font-size: 13px; white-space: nowrap; }
.grid-table .pick.bcell .bsel {
  position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; padding: 0;
  line-height: 20px; font-size: 12px; cursor: pointer; border: 1px solid #8fb4dd;
  border-radius: 3px; background: linear-gradient(#f7fbff, #dbeaf9); color: #0f3d76;
}
.grid-table .pick.bcell .bsel:hover { background: linear-gradient(#ffffff, #c7ddf5); }


.pick-inline { position: relative; }
.pick-inline input { padding-right: 26px; }
.pick-inline .sel {
  position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; padding: 0;
  line-height: 20px; font-size: 12px; cursor: pointer; border: 1px solid #8fb4dd;
  border-radius: 3px; background: linear-gradient(#f7fbff, #dbeaf9); color: #0f3d76;
}
.pick-inline .sel:hover { background: linear-gradient(#ffffff, #c7ddf5); }


.p-sug {
  display: none; position: absolute; left: 0; right: 24px; top: 100%; z-index: 60;
  max-height: 264px; overflow-y: auto; background: #fff; border: 1px solid #8fb4dd;
  border-top: 0; border-radius: 0 0 3px 3px; box-shadow: 0 6px 14px rgba(15, 61, 118, .18);
}


.p-sug .p-row { padding: 5px 8px; grid-template-columns: 58px minmax(0, 1fr) 74px; font-size: 13px; }
.p-sug .p-row .t { display: none; }
.p-sug .p-row.on { background: #cfe3f8; }
.p-sug .p-empty { padding: 8px 10px; color: #6b7c8f; font-size: 13px; }




.st-form { padding: 10px 12px 4px; }
.st-row { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.st-row > label {
  flex: 0 0 84px; text-align: right; color: #24405f; font-size: 13px;
}
.st-row > input[type="date"] { flex: 0 1 138px; min-width: 0; }
.st-row > input[type="text"], .st-row > input:not([type]) { flex: 1 1 auto; min-width: 0; }
.st-foot {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  border-top: 1px solid #d6e0ec; background: #f4f8fc;
}
.pick-hd .grow, .st-foot .grow { flex: 1 1 auto; }
.st-sum { font-size: 13.5px; color: #10356b; padding-top: 4px; }


.settlebox { margin-top: 14px; border: 1px solid #b9cade; border-radius: 4px; overflow: hidden; }
.settlebox .st-hd {
  padding: 6px 10px; font-weight: 700; color: #10356b; font-size: 14px;
  background: linear-gradient(#fdfefe, #dfe8f3); border-bottom: 1px solid #b9cade;
}
table.settle { width: 100%; max-width: 520px; border-collapse: collapse; font-size: 14px; }
table.settle td { padding: 6px 10px; border-bottom: 1px solid #eef1f5; }
table.settle td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.settle tr.tot td { font-weight: 700; color: #b91c1c; background: #fff7f5; font-size: 15px; }
table.settle tr.sub td { color: var(--muted); font-size: 12.5px; border-bottom: 0; }
.p-row {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) 100px 128px;
  gap: 6px; padding: 6px 10px; font-size: 13.5px; cursor: pointer;
  border-bottom: 1px solid #eef1f5; align-items: center;
}
.p-row:hover { background: #dceaf9; }

.p-row .n { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-row .c, .p-row .t { color: var(--muted); font-size: 12.5px; }
.p-row .t { text-align: right; }


.groupwrap { display: flex; gap: 10px; align-items: flex-start; }
.grouptree {
  flex: 0 0 190px; border: 1px solid #b9cade; background: #f6f9fd; border-radius: 3px;
  padding: 5px; max-height: 72vh; overflow-y: auto;
}
.grouptree .gt-h {
  font-size: 12.5px; color: #33507a; padding: 3px 6px 6px; border-bottom: 1px solid #dbe4ef;
  margin-bottom: 4px;
}
.grouptree a {
  display: flex; justify-content: space-between; gap: 6px; padding: 5px 8px;
  border-radius: 3px; font-size: 13.5px; color: var(--ink);
}
.grouptree a span { color: var(--muted); font-size: 12px; }
.grouptree a:hover { background: #e3eefb; }
.grouptree a.on {
  background: linear-gradient(var(--tab-1), var(--tab-2)); border: 1px solid #d3924f;
  font-weight: 700;
}
.grouptree a.on span { color: #5b3a12; }
.ghead td {
  background: linear-gradient(#eef4fb, #dfe9f6); font-weight: 700; color: #14406f;
  font-size: 13px; border-top: 1px solid #bcd0e6;
}

.grouptree { padding: 5px 4px 8px; }
.grouptree .gt-h {
  display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
}
.grouptree .gt-all { margin-left: auto; display: flex; gap: 7px; }
.grouptree .gt-all a {
  display: inline; padding: 0; font-size: 11.5px; color: #2a5c96; white-space: nowrap;
}
.grouptree .gt-node { position: relative; }
.grouptree .gt-row { display: flex; align-items: center; }
.grouptree .gt-tg {
  flex: 0 0 15px; width: 15px; height: 15px; line-height: 13px; text-align: center;
  padding: 0; margin: 0; border: 1px solid #8fa8c4; background: #fff; color: #23456d;
  font-size: 13px; font-weight: 700; border-radius: 2px; cursor: pointer;
}
.grouptree .gt-tg.leaf { border: none; background: none; cursor: default; }
.grouptree a.gt-lb {
  flex: 1 1 auto; display: flex; align-items: center; justify-content: flex-start;
  gap: 6px; padding: 4px 6px; border-radius: 3px; font-size: 13.5px; color: var(--ink);
  min-width: 0;
}
.grouptree a.gt-lb .gt-n {
  flex: 1 1 auto; color: inherit; font-size: 13.5px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.grouptree a.gt-lb .gt-c { flex: 0 0 auto; color: var(--muted); font-size: 12px; }
.grouptree .gt-node.root > .gt-row > a.gt-lb { font-weight: 700; color: #0f2e57; }
.grouptree .gt-node.root > .gt-row > .gt-tg { border-color: #3f6ea8; }

.grouptree .gt-node.lv1 > .gt-row > a.gt-lb { font-weight: 700; color: #10356b; }
.grouptree .gt-node.lv1 > .gt-row > .gt-tg { border-color: #6d8db4; }
.grouptree .gt-node.lv2 > .gt-row > a.gt-lb { color: var(--ink); font-weight: 400; }
.grouptree .gt-node.lv3 > .gt-row > a.gt-lb { color: #33507a; font-weight: 400; }

.grouptree .gt-kids {
  margin-left: 7px; padding-left: 0; border-left: 1px solid #a7bcd4;
}
.grouptree .gt-kids > .gt-node { padding-left: 16px; }
.grouptree .gt-kids > .gt-node:last-child { border-left: 1px solid #eff3f8; margin-left: -1px; }
.grouptree .gt-kids > .gt-node::before {
  content: ''; position: absolute; left: 0; top: 16px; width: 14px;
  border-top: 1px solid #a7bcd4;
}
.grouptree .gt-kids .gt-kids { margin-left: 4px; }
.grouptree a.gt-lb:hover { background: #e3eefb; }

.grouptree a.gt-lb.neg .gt-n, .grouptree a.gt-lb.neg .gt-c { color: #d0021b; font-weight: 700; }
.grouptree a.gt-lb.neg:hover { background: #fdeaea; }
.grouptree .gt-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #d0021b; margin-right: 5px; vertical-align: 1px;
  box-shadow: 0 0 0 2px rgba(208, 2, 27, .18);
  animation: negblink 1.5s ease-in-out infinite;
}
@keyframes negblink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

button.bchip {
  display: inline-flex; align-items: center; gap: 5px; padding: 1px 11px; cursor: pointer;
  border: 1px solid #b9c6d6; border-radius: 11px; background: #f1f6fc; color: #10356b;
  font-size: 13.5px; font-weight: 700; font-family: inherit; line-height: 23px;
}
button.bchip:hover { background: #e3eefb; }
button.bchip.on { border-color: #d3924f; background: #fdf3e3; color: #7a4a10; }
button.bchip .car { font-size: 11px; }
.btxt { font-weight: 700; color: #10356b; }
tr.brow > td {
  background: #e9f2fc; padding: 6px 8px 8px 10px;
  border-top: 2px solid #8fb6dd; border-bottom: 1px solid #a9c9e8;
}
.btwrap { overflow-x: auto; }

.btab {
  width: 100%; border-collapse: collapse; background: #fff;
  border: 1px solid #7fa8d4; border-left: 4px solid #2f6ea8;
  box-shadow: 0 1px 3px rgba(16, 53, 107, .13);
  font-size: 12.5px; color: #1f3f66;
}
.btab th {
  background: linear-gradient(#e0eefc, #c7ddf4); color: #0d3868; font-weight: 700; text-align: center;
  padding: 6px 9px; border-bottom: 2px solid #7fa8d4; border-right: 1px solid #a9c9e8;
  white-space: nowrap;
}
.btab th:last-child { border-right: 0; }
.btab td {
  padding: 6px 9px; border-bottom: 1px solid #c9ddf1; border-right: 1px solid #dbe8f6;
  vertical-align: middle; text-align: center;
}
.btab td:last-child { border-right: 0; }
.btab tbody tr:nth-child(even) { background: #f2f9ff; }
.btab tbody tr:hover { background: #e2f0fe; }
.btab tbody tr:last-child td { border-bottom: 1px solid #c9ddf1; }
.btab th.num, .btab td.num { text-align: center; font-variant-numeric: tabular-nums; }
.btab .bno { font-weight: 700; color: #10356b; white-space: nowrap; }
.btab td.strong { font-weight: 700; }
.btab .bsup { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btab tfoot td {
  background: #deebfa; font-weight: 700; color: #0d3868; border-bottom: 0;
  border-top: 2px solid #7fa8d4;
}
.btab tr.neg td, .btab tr.neg .bno { color: #d0021b; }

.tablewrap table.resp tr.neg > td { color: #d0021b; }
.tablewrap table.resp tr.neg > td a { color: #d0021b; }
.tablewrap table.resp tr.neg > td.num.strong { font-weight: 700; color: #c0001a; }
table.resp td.neg { color: #c0001a; font-weight: 700; }


.stockmain { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.sumbar-bar { position: sticky; bottom: 0; z-index: 6; }
.sumbar-bar table { border-collapse: collapse; table-layout: fixed; background: #eaf2fc; }
.sumbar-bar td {
  padding: 5px 8px; font-size: 13.5px; font-weight: 700; color: #123a6b; white-space: nowrap;
  border-top: 2px solid #a9c4e3; border-bottom: 1px solid #a9c4e3;
  overflow: hidden; text-overflow: ellipsis;
}
.sumbar-bar td.cnt { text-align: left; border-left: 1px solid #c8d2de; }
.sumbar-bar td.num { text-align: right; }
.sumbar-bar td:last-child { border-right: 1px solid #c8d2de; }
@media (max-width: 700px) {
  
  .sumbar-bar table, .sumbar-bar tbody { display: block; width: auto !important; }
  .sumbar-bar tr {
    display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; padding: 6px 8px;
    background: #eaf2fc; border-top: 2px solid #a9c4e3; border-bottom: 1px solid #a9c4e3;
    border-left: 1px solid #c8d2de; border-right: 1px solid #c8d2de;
  }
  .sumbar-bar td {
    display: block; width: auto !important; border: 0; padding: 0; font-size: 12.5px;
    text-align: right; background: transparent;
  }
  .sumbar-bar td::before {
    content: attr(data-label) " "; color: var(--muted); font-weight: 400; font-size: 12px;
  }
  .sumbar-bar td.cnt { text-align: left; }
  .sumbar-bar td.hide-m { display: none; }
}



.btab th.bop, .btab td.bop {
  width: 1%; white-space: nowrap; overflow: visible; text-overflow: clip;
}
.btab td.bop .btn { flex: 0 0 auto; white-space: nowrap; overflow: visible; text-overflow: clip; }

.btab .costman {
  margin-left: 3px; font-size: 11px; color: #b06a12; cursor: help;
}
@media (max-width: 760px) {
  tr.brow > td { padding: 4px 8px 6px; }
  .btab { font-size: 12px; }
  .btab th, .btab td { padding: 4px 6px; }
  .btab .bsup { max-width: 130px; }
}
.grouptree a.gt-lb.on {
  background: linear-gradient(var(--tab-1), var(--tab-2)); border: 1px solid #d3924f;
}
.grouptree a.gt-lb.on .gt-n, .grouptree a.gt-lb.on .gt-c { color: #5b3a12; }
.gt-btns {
  display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px;
  border-top: 1px solid #dbe4ef; padding-top: 6px;
}
.gt-btns .btn { flex: 1 1 calc(50% - 4px); }
.cat-form { padding: 10px 12px 4px; }
.cat-form .st-row > label { flex: 0 0 68px; }
.cat-ok {
  display: flex; gap: 8px; justify-content: center; padding: 8px 0 10px;
}
@media (max-width: 760px) {
  .groupwrap { display: block; }
  .grouptree {
    max-height: 44vh; overflow-y: auto; margin-bottom: 8px;
  }
  .gt-btns { width: 100%; }
}


.pick-mask {
  display: none; position: fixed; inset: 0; z-index: 60; background: rgba(20, 34, 52, .38);
  align-items: flex-start; justify-content: center; padding: 40px 14px;
}
.pick-box {
  width: 100%; max-width: 760px; max-height: 80vh; display: flex; flex-direction: column;
  background: #fff; border: 1px solid #7d9dc0; border-radius: 4px; overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}
.pick-hd {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  background: linear-gradient(#fdfefe, #dfe8f3); border-bottom: 1px solid #b9cade;
  font-size: 14px; color: #10356b;
}
.pick-hd .pick-q { flex: 1 1 auto; min-width: 120px; }


.pick-hd.pick-hd-due { flex-wrap: wrap; }



.pick-hd.pick-hd-due .pick-q { flex: 1 1 130px; min-width: 110px; }
.pick-flt-btn {
  flex: 0 0 auto; padding: 4px 10px; font-size: 12.5px; font-family: inherit;
  line-height: 1.4; color: #123a6b; cursor: pointer; white-space: nowrap;
  border: 1px solid #7fa8d6; border-radius: 3px;
  background: linear-gradient(#ffffff, #dbeaf9); box-shadow: inset 0 1px 0 #fff;
}
.pick-flt-btn:hover { background: linear-gradient(#ffffff, #cbe0f8); }
.pick-flt-btn.on {
  background: linear-gradient(#2f8a41, #1f6b30); border-color: #17591f; color: #fff;
  box-shadow: 0 0 0 2px rgba(47,138,65,.25);
}
.pick-flt-btn:focus-visible { outline: 2px solid #2f6ea8; outline-offset: 1px; }

.pick-list.pick-due .p-row { grid-template-columns: 90px minmax(0, 1fr) 96px 118px 110px; }
.pick-list.pick-due .p-row .due { text-align: right; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.pick-list.pick-due .p-row .due.owe { color: #b91c1c; font-weight: 600; }
.pick-list.pick-due .p-row .due.over { color: #1f6b30; }
.pick-list { overflow-y: auto; }
.pick-row {
  display: grid; grid-template-columns: 90px 1fr 120px 56px 130px 90px;
  gap: 6px; padding: 6px 10px; font-size: 13.5px; cursor: pointer;
  border-bottom: 1px solid #eef1f5; align-items: center;
}
.pick-row:hover { background: #dceaf9; }
.pick-row .s, .pick-row .u, .pick-row .k, .pick-row .p { color: var(--muted); font-size: 12.5px; }
.pick-row .k, .pick-row .p { text-align: right; }
.pick-row.g {
  grid-template-columns: 1fr auto; font-size: 14px; padding: 8px 10px;
  background: #f8fbfe;
}
.pick-row.g .n { color: #14406f; font-weight: 600; }
.pick-groups { display: none; max-height: 60vh; overflow-y: auto; }
.pick-empty { padding: 14px 10px; color: var(--muted); font-size: 13.5px; }


.pick-box.wide { max-width: 1080px; height: 78vh; }
.pick-box.wide .pick-hd b { flex: 0 0 auto; }
.pick-box.wide .pick-body { display: flex; flex: 1 1 auto; min-height: 0; }
.pick-left {
  flex: 0 0 216px; width: 216px; display: flex; flex-direction: column;
  border-right: 1px solid #cddcec; background: #fbfdff; min-height: 0;
}
.pick-lhd {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  padding: 5px 10px; font-size: 13px; color: #10356b; background: #eef4fb;
  border-bottom: 1px solid #cddcec;
}

.pick-stock-btn {
  display: block; width: calc(100% - 16px); margin: 6px 8px 0;
  padding: 5px 6px; font-size: 12.5px; font-family: inherit; line-height: 1.4;
  color: #123a6b; cursor: pointer; text-align: center; white-space: nowrap;
  border: 1px solid #7fa8d6; border-radius: 3px;
  background: linear-gradient(#ffffff, #dbeaf9);
  box-shadow: inset 0 1px 0 #fff;
  user-select: none;
}
.pick-stock-btn:hover { background: linear-gradient(#ffffff, #cbe0f8); }

.pick-stock-btn.on {
  background: linear-gradient(#2f8a41, #1f6b30); border-color: #17591f; color: #fff;
  box-shadow: 0 0 0 2px rgba(47,138,65,.25);
}
.pick-stock-btn:focus-visible { outline: 2px solid #2f6ea8; outline-offset: 1px; }
.pick-tree { flex: 1 1 auto; overflow: auto; padding-bottom: 8px; }
.tnode {
  display: flex; align-items: center; gap: 4px; padding: 3px 8px 3px 6px;
  font-size: 13.5px; cursor: pointer; white-space: nowrap;
}
.tnode:hover { background: #e8f1fb; }
.tnode.on { background: #d9e8f9; font-weight: 600; }
.tnode .tg { flex: 0 0 12px; font-size: 11px; color: #5d7a97; }
.tnode .tic { font-size: 12px; }
.tnode .n { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; }
.tnode .k { color: var(--muted); font-size: 12px; font-weight: 400; }
.pick-right { flex: 1 1 auto; min-width: 0; display: flex; }
.pick-twrap { flex: 1 1 auto; overflow: auto; }
.pick-tab { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.pick-tab th {
  position: sticky; top: 0; z-index: 2; text-align: left; white-space: nowrap;
  padding: 6px 8px; border-bottom: 1px solid #b9cade; color: #10356b;
  background: linear-gradient(#fdfefe, #e6eef8); font-weight: 600; cursor: pointer;
}
.pick-tab th.on { background: #dceaf9; }
.pick-tab th .sort-ar { color: #9fb3c9; font-size: 11px; }
.pick-tab td { padding: 4px 8px; border-bottom: 1px solid #eef1f5; white-space: nowrap; }
.pick-tab td.ck, .pick-tab th.ck { width: 42px; text-align: center; }
.pick-tab td.num, .pick-tab th.num { text-align: right; font-variant-numeric: tabular-nums; }
.pick-tab td.c { color: #14406f; }
.pick-tab td.n { font-weight: 600; }
.pick-tab td.s, .pick-tab td.u, .pick-tab td.b .bq { color: var(--muted); }

.pick-tab td.b, .pick-tab th.b { text-align: center; }
.pick-tab td.st { font-weight: 700; }
.pick-tab tr.prow { cursor: pointer; }
.pick-tab tr.prow:hover { background: #dceaf9; }
.pick-tab tr.prow.on { background: #e4f1fd; }
.pick-tab .b1 { color: #7a4a10; }
.pick-tab .bq { margin-left: 6px; font-size: 12px; }
.pick-tab .non { color: #b6c2cf; }
.pick-tab .pnone { padding: 18px; text-align: center; color: var(--muted); }
button.bmore {
  border: 1px solid #b9cade; background: #eef4fb; color: #14406f; cursor: pointer;
  border-radius: 3px; padding: 1px 6px; font-size: 12.5px;
}
button.bmore:hover { background: #dceaf9; }
button.bmore.on { border-color: #d3924f; background: #fdf3e3; color: #7a4a10; }



button.bmore.b1tg { text-align: left; }
button.bmore.b1tg:not(.on) { border-color: transparent; background: transparent; }
button.bmore.b1tg:hover { border-color: #b9cade; background: #dceaf9; }
.pick-tab .ba { margin-left: 5px; color: #8c6a3f; font-size: 11px; }



.pick-tab td.rec, .pick-tab th.rec { text-align: center; }
.pick-tab .recent-tag {
  display: block; margin-top: 2px; font-size: 11.5px; color: #7a4a10;
  white-space: nowrap;
}
.pick-tab .recent-tag.on { color: #b35b00; font-weight: 600; }
button.rmore {
  border: 1px solid #b9cade; background: #eef4fb; color: #14406f; cursor: pointer;
  border-radius: 3px; padding: 1px 6px; font-size: 12.5px; white-space: nowrap;
}
button.rmore:hover { background: #dceaf9; }
button.rmore.on { border-color: #d3924f; background: #fdf3e3; color: #7a4a10; }
.pick-tab tr.rrow > td {
  background: #fdf6ea; border-top: 2px solid #d3924f;
  border-bottom: 1px solid #e6c9a0;
}
.btab2.rtab { border-left-color: #d3924f; }
.btab2.rtab th { background: linear-gradient(#fdf3e3, #f3ddbb); color: #7a4a10; }
.btab2 .ruse { white-space: nowrap; }
.btab2 {
  width: calc(100% - 40px); margin: 0 6px 4px 34px; border-collapse: collapse;
  font-size: 13px; background: #fff; border: 1px solid #7fa8d4; border-left: 4px solid #2f6ea8;
  box-shadow: 0 1px 3px rgba(16, 53, 107, .13);
}
.btab2 th {
  position: static; background: linear-gradient(#e0eefc, #c7ddf4); color: #0d3868; font-weight: 700;
  padding: 5px 8px; border-bottom: 2px solid #7fa8d4; border-right: 1px solid #a9c9e8;
  cursor: default;
}
.btab2 th:last-child { border-right: 0; }
.btab2 td {
  padding: 5px 8px; border-bottom: 1px solid #c9ddf1; border-right: 1px solid #dbe8f6;
}
.btab2 td:last-child { border-right: 0; }
.btab2 th, .btab2 td { text-align: center; }
.btab2 tbody tr:nth-child(even) { background: #f2f9ff; }
.btab2 tr.brow3 { cursor: pointer; }
.btab2 tr.brow3:hover { background: #e2f0fe; }
.btab2 tr.brow3.on { background: #cde5fb; }
.btab2 tr.brow3.on td:first-child { box-shadow: inset 3px 0 0 #2f6ea8; }
.btab2 td.bno { font-weight: 700; color: #0d3868; }
.btab2 td.bsup { max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.btab2 td.num, .btab2 th.num { text-align: center; font-variant-numeric: tabular-nums; }
.btab2 td.neg { color: #d0021b; }

.pick-tab tr.brow2 > td {
  background: #e9f2fc; border-top: 2px solid #8fb6dd; border-bottom: 1px solid #a9c9e8;
}
.pick-ft {
  display: flex; gap: 8px; justify-content: flex-end; padding: 8px 10px;
  border-top: 1px solid #b9cade; background: linear-gradient(#fdfefe, #e8eef6);
}
@media (max-width: 700px) {
  .pick-box.wide { height: 86vh; }
  .pick-left { flex: 0 0 128px; width: 128px; }
  .tnode, .pick-tab, .btab2 { font-size: 12.5px; }
  .pick-tab th, .pick-tab td { padding: 3px 5px; }
  
  .btab2 th, .btab2 td { padding: 4px 5px; }
  .btab2 td.bsup { max-width: 110px; }
  

  .p-sug {
    min-width: 0; left: auto; right: 0;
    width: min(430px, calc(100vw - 34px));
  }
  .p-row, .p-sug .p-row { grid-template-columns: 62px minmax(0, 1fr) 84px; }
  .p-row .t { display: none; }
  
  .pick-list.pick-due .p-row { grid-template-columns: 62px minmax(0, 1fr) 96px; }
  .pick-list.pick-due .p-row .ct, .pick-list.pick-due .p-row .t { display: none; }
}


.items { width: 100%; }
.items .item { border: 1px solid #cfd8e3; border-radius: 3px; padding: 8px; margin-bottom: 6px; background: #f7f9fc; }
.items .item .row { align-items: flex-end; }
.items .item .del { flex: 0 0 auto; }








.login-body { background: #0a1728; }
.login-wrap {
  position: relative;
  min-height: 100vh; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 16px;
  

  padding: calc(30px + env(safe-area-inset-top, 0px)) 18px
           calc(30px + env(safe-area-inset-bottom, 0px));
  background: #0a1728 url('../img/login-bg-fallback.jpg') center center / cover no-repeat;
}

.login-wrap.has-3d { background-image: url('../img/login-bg.jpg'); }
.lg3d {
  position: fixed; inset: 0; width: 100%; height: 100%;
  display: block; z-index: 0; opacity: 0; pointer-events: none;
  transition: opacity .7s ease;
}
.lg3d.on { opacity: 1; }

.login-wrap::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: url('../img/noise.png') repeat;
  background-size: 170px 170px;
  opacity: .085; mix-blend-mode: soft-light;
}

.login-wrap::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(58% 58% at 50% 50%,
              rgba(3,9,18,.62) 0%, rgba(3,9,18,.34) 58%, rgba(3,9,18,.60) 100%);
}

.login-wrap.has-3d::before {
  background: radial-gradient(44% 50% at 50% 50%,
              rgba(3,9,18,.50) 0%, rgba(3,9,18,.20) 62%, rgba(3,9,18,.34) 100%);
}
.login-wrap > .login, .login-wrap > .login-foot { position: relative; z-index: 2; }
.login {
  width: 100%; max-width: 404px; padding: 30px 30px 26px;
  background: rgba(11,23,41,.60);
  border: 1px solid rgba(126,175,232,.28); border-radius: 14px;
  box-shadow: 0 26px 60px rgba(2,8,18,.55);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  backdrop-filter: blur(14px) saturate(125%);
}
.login .brand { text-align: center; margin-bottom: 22px; }
.login .brand-logo {
  display: block; margin: 0 auto 13px; width: 68px; height: 68px; border-radius: 17px;
  box-shadow: 0 0 0 1px rgba(150,200,255,.18), 0 12px 26px rgba(0,0,0,.5);
}
.login .brand-name {
  font-size: 21px; font-weight: 600; color: #eaf4ff; letter-spacing: 2px;
}
.login .brand-sub { font-size: 13px; color: rgba(190,215,245,.72); margin-top: 8px; }
.login .field { margin-bottom: 16px; }
.login .field > label {
  display: block; margin-bottom: 7px; font-size: 12.5px; color: rgba(198,221,246,.85);
}
.login input {
  height: 46px; padding: 0 14px; font-size: 14.5px; border-radius: 6px; color: #eef6ff;
  background: rgba(142,182,232,.10); border: 1px solid rgba(130,175,230,.40);
}
.login input::placeholder { color: rgba(178,205,236,.48); }
.login input:focus {
  outline: none; border-color: #3b93e6; background: rgba(60,130,210,.16);
  box-shadow: 0 0 0 3px rgba(59,147,230,.18);
}
.login .remember {
  display: flex; align-items: center; gap: 8px; margin: -3px 0 14px;
  font-size: 13px; color: rgba(198,221,246,.88);
  cursor: pointer; -webkit-user-select: none; user-select: none;
}
.login .remember input {
  flex: 0 0 auto; width: 15px; height: 15px; min-height: 0; margin: 0; padding: 0;
  accent-color: #2b8ae6; cursor: pointer;
}
.login-btn {
  width: 100%; height: 46px; margin-top: 8px; border: 0; border-radius: 6px;
  color: #fff; font-size: 16px; letter-spacing: 6px;
  padding-left: 6px;           
  background: linear-gradient(#1f8ae8, #0f6cc4);
  box-shadow: 0 12px 26px rgba(15,108,196,.35);
}
.login-btn:hover { background: linear-gradient(#2b97f2, #1275d2); }
.login .flash { margin: 0 0 16px; border-radius: 6px; }
.login .flash.ok { color: #d6ffe8; background: rgba(30,120,70,.34); border-color: rgba(90,200,140,.5); }
.login .flash.warn { color: #fff2d0; background: rgba(150,110,30,.34); border-color: rgba(230,190,110,.5); }
.login .flash.err { color: #ffe2e2; background: rgba(155,45,45,.36); border-color: rgba(230,125,125,.5); }
.login-alt { text-align: center; margin-top: 14px; font-size: 13px; }
.login-alt a, .login-alt button { color: rgba(178,213,248,.85); }

.login-alt button { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.login-foot { color: rgba(200,220,245,.78); font-size: 13px; text-align: center; }
.login-foot b { color: #dcefff; font-size: 15px; letter-spacing: .5px; margin-left: 4px; }
@media (max-width: 899px) {
  













  body.login-body {
    background: #081524 url('../img/login-bg-phone-fallback.jpg') center top / cover no-repeat;
  }
  





  

  body.login-body {
    height: 100%; overflow: hidden; overscroll-behavior: none;
    


    touch-action: pan-x pan-y;
    -webkit-text-size-adjust: 100%;
  }
  body.login-body {
    position: fixed; inset: 0;    
    width: 100%; height: 100%;
  }
  
  .login-wrap::before,
  .login-wrap.has-3d::before {
    background:
      linear-gradient(to bottom,
        #081524 0px, #081524 84px,
        rgba(8,21,36,.92) 124px, rgba(8,21,36,.70) 166px,
        rgba(8,21,36,.44) 210px, rgba(8,21,36,.18) 256px,
        rgba(8,21,36,0) 300px),
      radial-gradient(58% 58% at 50% 50%,
        rgba(3,9,18,.62) 0%, rgba(3,9,18,.34) 58%, rgba(3,9,18,.60) 100%);
  }
  .login-wrap {
    align-items: center;
    
    background: none;
    


    height: 100%; min-height: 0;
    overflow-y: auto; overflow-x: hidden; overscroll-behavior: none;
    

    justify-content: safe center;
    
    padding: calc(24px + env(safe-area-inset-top, 0px)) 16px
             calc(28px + env(safe-area-inset-bottom, 0px));
  }
  

  .login-wrap.has-3d { background-image: none; }
  .login { max-width: 430px; padding: 26px 22px 22px; }
}

.locktag { color: #a52525; font-weight: 600; }
.btn.warn { background: linear-gradient(#fdf3d8, #f6e0a8); border-color: #d8b45f; color: #7a5312; }


ol.help { margin: 0; padding-left: 22px; }
ol.help li { margin-bottom: 5px; }

.hl-intro {
  margin-top: 10px; padding: 9px 12px; background: #f2f7fd;
  border: 1px solid #cfe0f2; border-left: 3px solid var(--brand); border-radius: 3px;
  font-size: 13.5px; color: #23394f;
}
.hl-toc {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line);
}
.hl-toc-t { font-size: 12.5px; color: var(--muted); margin-right: 2px; }
.hl-toc a {
  padding: 3px 9px; border: 1px solid #c8d8ea; border-radius: 12px; background: #f7fbff;
  color: #10356b; font-size: 12.5px; text-decoration: none; white-space: nowrap;
}
.hl-toc a:hover { background: #e6f0fb; }
.hl-list { margin-top: 6px; }
.hl-fun {
  display: flex; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--line);
}
.hl-fun:last-child { border-bottom: 0; padding-bottom: 2px; }
.hl-fn { flex: 0 0 132px; font-weight: 600; color: #10356b; font-size: 13.5px; }
.hl-fd { flex: 1 1 auto; min-width: 0; font-size: 13.5px; color: #23394f; line-height: 1.65; }
.hl-fd ol.help { margin-top: 4px; color: #3b4d61; }
.hl-warn {
  margin-top: 5px; padding: 6px 9px; background: #fff8e8; border: 1px solid #f0dcae;
  border-radius: 3px; color: #7a5312; font-size: 13px;
}
.hl-q {
  margin: 16px 0 0; padding-top: 10px; border-top: 1px solid var(--line);
  font-size: 14px; color: #33465e;
}
@media (max-width: 700px) {
  .hl-fun { display: block; }
  .hl-fn { flex: none; margin-bottom: 3px; }
}


.print-title { display: none; }
.no-print { }
@media print {
  .titlebar, .menubar, .toolrow, .modulebar, .tabbar, .statusbar, .actions, .filters, .tabs { display: none !important; }
  .content { padding: 0; overflow: visible; }
  .card { border: none; padding: 0; }
  .print-title { display: block; text-align: center; margin-bottom: 8px; font-weight: 700; }
}


@media (min-width: 861px) {
  .app { height: 100vh; overflow: hidden; }
}
@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .burger { display: inline-flex; }
  
  .pg-stock .content { overflow: visible; }
  .titlebar .tb-lic, .titlebar .tb-tab { display: none; }
  .modulebar {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 60; width: 210px; flex: none;
    transform: translateX(-100%); transition: transform .18s ease; box-shadow: 2px 0 14px rgba(0, 0, 0, .3);
    padding-top: 0; overflow-y: auto;
  }
  .navclose {
    display: flex; align-items: center; width: 100%; border: 0; cursor: pointer;
    background: linear-gradient(#7d4c27, #54300f); color: #fff; font: inherit; font-size: 13.5px;
    font-weight: 700; padding: 10px 12px; text-align: left;
  }
  body.nav-open .modulebar { transform: none; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(0, 0, 0, .32); z-index: 55; }
  .content { padding: 8px; }
  .toolrow a, .toolrow .logoutbtn { width: 64px; font-size: 11.5px; }
  .toolrow .ic { height: 24px; }
  .toolrow .ic img { width: 22px; height: 22px; }
}
@media (max-width: 700px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 10px 4px; }
  .tile .ic { height: 40px; }
  .tile .ic-img { width: 38px; height: 38px; }
  .tile .nm { font-size: 12.5px; }
  .qlist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .statusbar { font-size: 11.5px; }
  .statusbar span:nth-child(3) { display: none; }
}
@media (max-width: 700px) {
  table.resp thead { display: none; }
  table.resp tr { display: block; border: 1px solid #cfd8e3; border-radius: 3px; margin-bottom: 6px; background: #fff; }
  table.resp td {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; white-space: normal;
    border: none; border-bottom: 1px dashed #e3e8ef;
  }
  table.resp td:last-child { border-bottom: none; }
  table.resp td::before { content: attr(data-label); color: var(--muted); font-size: 12.5px; flex: 0 0 78px; }
  
  table.resp table.btab thead { display: table-header-group; }
  table.resp table.btab tr {
    display: table-row; border: 0; border-radius: 0; margin: 0; background: transparent;
  }
  table.resp table.btab th, table.resp table.btab td {
    display: table-cell; border: 0; border-bottom: 1px solid #c9ddf1; border-right: 1px solid #dbe8f6;
  }
  table.resp table.btab th:last-child, table.resp table.btab td:last-child { border-right: 0; }
  table.resp table.btab td::before { content: none; }
  table.resp table.btab tfoot td { border-bottom: 0; }
  .hide-m { display: none !important; }
}


.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; letter-spacing: .5px; }


.initopts { display: flex; flex-direction: column; gap: 8px; }
.initopts label {
  display: flex; align-items: flex-start; gap: 9px; padding: 10px 12px;
  border: 1px solid #c9d6e6; border-radius: 3px; background: #fbfdff;
  font-size: 14px; color: #123a6b; cursor: pointer;
}
.initopts label:hover { background: #f1f7ff; }
.initopts label.on {
  border-color: #2f8a41; background: #f2fbf3;
  box-shadow: 0 0 0 2px rgba(47, 138, 65, .15);
}
.initopts label input { flex: 0 0 auto; width: 17px; height: 17px; margin: 1px 0 0; accent-color: #2f8a41; cursor: pointer; }
.initopts .t { font-weight: 700; }
.initopts .d { color: #5b6b7d; font-weight: 400; }
.initwarn { margin-top: 12px; color: #a52525; font-size: 13.5px; }


.rstok { display: inline-flex; align-items: center; gap: 5px; }
.rsttx { color: #a52525; font-size: 12.5px; font-weight: 700; }

.rspwd {
  width: 128px; height: 26px; padding: 0 6px; font: inherit; font-size: 12.5px;
  border: 1px solid #c9ced6; border-radius: 4px;
}

.rstok[hidden], button.btn[hidden] { display: none !important; }


.warn-txt { color: #c0001a; font-weight: 700; }


.tag-main {
  display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 9px;
  background: #e8f1ff; color: #1b5bab; border: 1px solid #b9d3f5;
  font-size: 12px; font-weight: 700; vertical-align: middle;
}


.logbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin: 0 0 8px; flex-wrap: wrap;
}
table.resp th.pick, table.resp td.pick { width: 38px; text-align: center; }
table.resp td.pick input, table.resp th.pick input {
  width: 16px; height: 16px; margin: 0; accent-color: #c0392b; cursor: pointer;
}

@media (max-width: 760px) {
  table.resp td.pick::before { content: none !important; flex: 0 0 auto; }
  table.resp td.pick { justify-content: flex-start; }
}
