.count-page { display: grid; gap: 20px; }
.count-page #countBody { display: grid; gap: 20px; min-width: 0; }
.count-page .bank-heading h1 { margin-top: 8px; }
.count-page .bank-heading p { max-width: 780px; }
.count-meta { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; background: #fff; border: 1px solid #dbe6ed; border-radius: 12px; padding: 22px; }
.count-meta > div { display: grid; gap: 8px; align-content: start; }
.count-meta span:not(.count-status) { font-size: 12px; color: #657e91; }
.count-meta strong { font-size: 17px; }
.count-status { font-size: 12px; border-radius: 16px; padding: 5px 12px; width: fit-content; background: #edf3f7; color: #4c6376; }
.count-status.closed { background: #e6f4ee; color: #08775c; }
.count-status.reviewed { background: #e7f0fc; color: #2467a4; }
.count-page table { width: 100%; border-collapse: collapse; }
.count-page .bank-table { min-width: 680px; }
.count-comparison td, .count-comparison th { text-align: right; }
.count-comparison th:first-child { text-align: left; }
.count-comparison td:nth-child(5) { background: #eef6ff; }
.count-page small { display: block; font-size: 11px; margin-top: 4px; color: #71879a; }
.count-difference, .count-difference small { color: #b04d32; }
.count-history td { white-space: normal; min-width: 95px; }
.count-history td:first-child a { font-weight: 700; color: #087e69; }
.count-pagination { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; gap: 10px; font-size: 12px; }
.count-reference { border: 1px solid #dbe6ed; border-radius: 10px; background: #fff; }
.count-reference > summary { cursor: pointer; padding: 15px 20px; font-size: 13px; color: #47728d; }
.count-reference-body { padding: 0 20px 20px; font-size: 12px; overflow-wrap: anywhere; }
.count-box-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.count-box-tab { text-align: left; border: 1px solid #dbe6ed; background: #fff; border-radius: 12px; padding: 18px 22px; display: flex; justify-content: space-between; gap: 10px; align-items: center; color: #274c66; cursor: pointer; }
.count-box-tab strong { font-size: 20px; }
.count-box-tab span { font-size: 12px; }
.count-box-tab.selected { border: 2px solid #13826e; padding: 17px 21px; background: #eff9f5; }
.count-editor-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.count-page h2 { font-size: 18px; margin: 0 0 8px; }
.count-editor-heading p, .count-closing p { font-size: 13px; color: #627d91; }
#countDirty { color: #ae6724; font-size: 12px; }
.count-currencies { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin: 14px 0; }
.count-currency { background: #fff; border: 1px solid #dbe6ed; border-radius: 12px; overflow: hidden; }
.count-currency h3 { font-size: 14px; background: #eef5f9; margin: 0; padding: 16px; }
.count-currency th { color: #72889c; font-size: 11px; font-weight: 500; padding: 9px 12px; text-align: right; }
.count-currency th:first-child, .count-currency td:first-child { text-align: left; }
.count-currency td { padding: 5px 12px; border-top: 1px solid #eff3f7; text-align: right; font-size: 13px; }
.count-currency input { width: 90px; max-width: 100%; padding: 7px 9px; min-height: 33px; text-align: right; border: 1px solid #d6e2ec; border-radius: 6px; }
.count-currency input:focus { outline: 2px solid #159c83; outline-offset: 1px; }
.count-currency footer { padding: 16px; display: flex; justify-content: space-between; border-top: 1px solid #dbe6ed; background: #f6fafc; font-size: 14px; }
.count-box-note, .count-closing label { display: grid; gap: 9px; font-size: 13px; }
.count-page textarea { width: 100%; border: 1px solid #d6e2ec; border-radius: 8px; padding: 12px; font: inherit; resize: vertical; box-sizing: border-box; }
.count-editor-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 14px; }
.count-editor-actions p { color: #627d91; font-size: 12px; max-width: 460px; }
.count-closing { border-top: 1px solid #dbe6ed; padding-top: 22px; }
.count-closing button { margin-top: 12px; }
.count-note { white-space: pre-wrap; }
.count-print-title, .count-print-counts { display: none; }
@media (max-width: 1050px) { .count-currencies { grid-template-columns: 1fr; } .count-meta { grid-template-columns: 1fr 1fr; } .count-editor-actions { align-items: start; flex-direction: column; } }
@media (max-width: 600px) { .count-meta { gap: 12px; padding: 16px; } .count-meta strong { font-size: 14px; } .count-box-tab { flex-direction: column; align-items: start; } .count-pagination { flex-wrap: wrap; } }
@media print {
  body:has(.count-page) .sidebar, body:has(.count-page) .topbar, body:has(.count-page) .footer, body:has(.count-page) #notice, body:has(.count-page) #navDataNotice, body:has(.count-page) #breadcrumb, body:has(.count-page) #toast, .count-no-print, .count-reference, #countError { display: none !important; }
  body:has(.count-page) .application { display: block !important; }
  body:has(.count-page) .main-shell { margin: 0 !important; }
  body:has(.count-page) main, body:has(.count-page) #content { margin: 0 !important; padding: 0 !important; width: 100% !important; }
  .count-print-title, .count-print-counts { display: block; }
  .count-page { color: #172e40; }
  .count-meta { padding: 12px; gap: 8px; }
  .count-meta strong { font-size: 13px; }
  .count-currencies { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
  .count-print-counts > section { break-inside: avoid; margin-top: 22px; }
  .count-currency td, .count-currency th { padding: 5px; font-size: 10px; }
  .count-page .bank-table { min-width: 0; font-size: 10px; }
  .count-page .bank-scroll { overflow: visible; }
  .count-closing form { display: none; }
}
