#financeCenter{--fc-line:#d9e2ec;--fc-ink:#24384c}
.fc-heading,.fc-list-tools,.fc-pages,.fc-dialog-head,.fc-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.fc-heading{margin:4px 0 18px}.fc-heading [role=tablist]{display:flex;border-bottom:1px solid var(--fc-line);gap:18px}.fc-heading [role=tab]{padding:9px 3px;color:#536981;background:transparent;border:0;border-bottom:3px solid transparent;border-radius:0;font-size:16px}.fc-heading [aria-selected=true]{color:#1856a0;border-bottom-color:#2764b2;font-weight:700}
.fc-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;margin-bottom:16px}.fc-summary article{padding:16px;background:#fff;border:1px solid var(--fc-line);border-radius:8px}.fc-summary small,.fc-kv small{display:block;color:#52677d;margin-bottom:5px}.fc-summary strong{font-size:22px;color:var(--fc-ink);font-variant-numeric:tabular-nums}
.fc-filter,.fc-filter details>div,.fc-fields,.fc-kv{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.fc-filter{padding:14px}.fc-filter label,.fc-fields label,#financeCenterDialog label{display:grid;gap:4px;font-size:13px;color:#43586e}.fc-filter details{width:100%}.fc-filter details>div,.fc-fields{margin-top:9px}.fc-list-tools,.fc-pages{margin:12px 0}.fc-pages{justify-content:flex-end}#financeCenter td,#financeCenterDialog td{white-space:nowrap}.fc-name{border:0;background:none;color:#1759a2;padding:0;text-align:left;font-weight:600}.fc-list-tools span,.fc-pages span{color:#617184}
#financeCenterDialog{width:min(700px,94vw);max-height:88vh;overflow:auto;padding:20px}.fc-dialog-head{margin-bottom:12px}.fc-dialog-head h3{margin:0}.fc-kv{align-items:start;gap:16px 25px;margin:12px 0}.fc-kv span{display:block;word-break:break-word}.fc-actions{justify-content:flex-end;margin-top:16px}#financeCenterDialog[open].fc-wide{width:min(1250px,96vw)}#financeCenterDialog :where(input,select,textarea){max-width:100%;min-width:0}#financeCenterDialog details{margin:12px 0}#financeCenterDialog .fc-check{display:flex;align-items:center;gap:6px}#financeCenterDialog .fc-scroll{max-width:100%;overflow:auto}#financeCenterDialog table{border-collapse:collapse;width:100%;font-size:13px}#financeCenterDialog :is(th,td){padding:6px 9px;border-bottom:1px solid #e0e5eb;text-align:left}#financeCenterDialog .fc-import-rows :is(input,select){width:130px}#financeCenterDialog .fc-import-rows .fc-line-detail{white-space:normal;min-width:200px}#financeCenterDialog [role=alert],#financeCenter [role=alert]{color:#9e2929;background:#fff2ef;padding:9px;border-radius:4px}#financeCenterDialog .fc-hint{color:#536981;font-size:13px}#financeCenterDialog .fc-history{font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:640px){.fc-filter label,.fc-fields label{flex:1 1 130px}.fc-summary{grid-template-columns:1fr 1fr}.fc-summary strong{font-size:18px}#financeCenterDialog{padding:12px}}

.fc-workspaces { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:10px; }
.fc-workspaces button { background:#fff; color:#24384c; border:1px solid #d9e2ec; }
.fc-workspaces button[aria-pressed=true] { background:#21476c; border-color:#21476c; color:#fff; }
#financeCenter .fc-metric { text-align:left; background:#fff; border:1px solid var(--fc-line); color:var(--fc-ink); padding:12px 14px; border-radius:8px; }
.fc-metric:hover,.fc-metric:focus-visible { border-color:#537eab; }
.fc-summary strong,.fc-summary span,.fc-row-meta { display:block; }
.fc-summary span,.fc-row-meta { color:#53677a; font-size:12px; }
.fc-primary-filters { display:flex; flex-wrap:wrap; gap:12px; }
.fc-filter input[name=q] { width:min(238px,66vw); }
.fc-filter-actions { display:flex; gap:6px; align-self:end; }
#financeCenter .table-wrap { overflow:auto; max-height:66vh; }
#financeCenter thead th { position:sticky; top:0; background:#edf3f8; color:#263d54; z-index:1; }
#financeCenter :is(th,td) { padding:9px 12px; }
#financeCenter :is(th,td).fc-money { text-align:right; font-variant-numeric:tabular-nums; }
#financeCenter .fc-due { font-weight:700; color:#8a491b; }
#financeCenter .fc-record { min-width:152px; white-space:normal; overflow-wrap:anywhere; }
#financeCenter .fc-row-meta { margin-top:3px; }
#financeCenter tr:has(input[data-pick]:checked) td { background:#e9f2fe; }
#financeCenter .fc-pick input { width:17px; height:17px; }
.fc-selection:not([hidden]) { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:8px 10px; margin-bottom:7px; background:#edf4fc; border:1px solid #cfdeed; border-radius:8px; position:sticky; top:0; z-index:2; }
.fc-selection strong { margin-right:auto; color:#234564; font-variant-numeric:tabular-nums; }
.fc-pages label { display:flex; gap:5px; align-items:center; }
.fc-template-link { display:inline-block; padding:8px 12px; background:#edf4fc; color:#174e87; border-radius:6px; font-weight:600; }
.fc-ticket-heading:not([hidden]) { display:grid; gap:16px; padding:18px 20px; margin-bottom:12px; border:1px solid #d2e1ee; border-radius:10px; background:#f8fbff; }
.fc-ticket-heading h2 { margin:0 0 4px; font-size:21px; color:#183a56; }
.fc-ticket-heading span,.fc-ticket-mode thead small { color:#536981; font-size:12px; font-weight:400; }
.fc-ticket-heading nav { display:flex; flex-wrap:wrap; gap:6px; }
.fc-ticket-heading nav button { background:white; border:1px solid #cfdeea; color:#314c66; border-radius:6px; padding:7px 12px; }
.fc-ticket-heading nav button[aria-pressed=true] { background:#21476c; color:white; border-color:#21476c; }
.fc-ticket-heading nav b { margin-inline-start:4px; font-variant-numeric:tabular-nums; }
.fc-ticket-mode thead small { display:block; margin-top:3px; }
.fc-ticket-mode .fc-ticket-actions button { margin:2px; }
.fc-search-group { display:contents; }
#financeCenter.fc-ticket-mode .fc-filter { align-items:flex-end; gap:8px; }
#financeCenter.fc-ticket-mode .fc-primary-filters { display:contents; }
#financeCenter.fc-ticket-mode .fc-search-group { display:flex; flex:0 1 auto; align-items:flex-end; gap:7px; margin-inline-start:auto; max-width:100%; }
#financeCenter.fc-ticket-mode .fc-filter label { margin:0; }
#financeCenter.fc-ticket-mode .fc-filter :is(input:not([type=hidden]),select,button,.fc-choice summary) { box-sizing:border-box; min-height:34px; height:34px; margin:0; }
#financeCenter.fc-ticket-mode .fc-filter-actions { margin:0; padding:0; }
#financeCenter.fc-ticket-mode .fc-filter input[name=q] { width:clamp(195px,18vw,340px); max-width:100%; }
#financeCenter.fc-ticket-mode .fc-choice { display:grid; gap:4px; position:relative; color:#43586e; font-size:13px; }
#financeCenter.fc-ticket-mode .fc-choice details { width:auto; margin:0; }
#financeCenter.fc-ticket-mode .fc-choice summary { display:flex; align-items:center; justify-content:space-between; gap:10px; min-width:120px; padding:0 9px; background:white; border:1px solid #becde0; border-radius:6px; cursor:pointer; }
.fc-choice summary::after { content:'▾'; }
.fc-choice section { position:absolute; z-index:8; width:220px; max-width:84vw; padding:8px; background:white; border:1px solid #c6d5e4; border-radius:6px; box-shadow:0 3px 10px #23395226; }
.fc-choice section input { width:100%; }
.fc-choice .fc-options { max-height:220px; overflow:auto; display:grid; gap:2px; margin-top:4px; }
.fc-choice .fc-options button { text-align:left; }
.fc-choice .fc-options button[aria-pressed=true] { font-weight:bold; background:#e7f1fc; }
#financeCenter.fc-ticket-mode .table-wrap table { width:100%; table-layout:auto; }
#financeCenter.fc-ticket-mode :is(th,td) { padding:3px 9px; line-height:1.17; }
#financeCenter.fc-ticket-mode :is(th,td).fc-money { text-align:center; white-space:nowrap; }
#financeCenter.fc-ticket-mode :is(th,td) small { display:block; font-size:11px; margin:1px 0 0; }
#financeCenter.fc-ticket-mode td .fc-pending { color:#5c6e80; font-size:12px; }
#financeCenter.fc-ticket-mode td .fc-within { color:#177148; }
#financeCenter.fc-ticket-mode td .fc-over { color:#9b4b0a; }
#financeCenter.fc-ticket-mode .fc-ticket-actions button { min-height:26px; padding:3px 7px; margin:1px 2px; }
@media(max-width:680px) {
  #financeCenter.fc-ticket-mode .fc-search-group { width:100%; }
  #financeCenter.fc-ticket-mode .fc-search-group label { flex:1; min-width:0; }
  #financeCenter.fc-ticket-mode .fc-filter input[name=q] { width:100%; min-width:0; }
}
.fc-ticket-mode [data-fc-store-picker] { min-width:100px; }
#financeCenter.fc-ticket-mode [data-fc-tab="cost-queues/freight"] { order:-1; }
@media(max-width:640px) {
  #financeCenter .fc-heading [role=tablist] { gap:10px; flex-wrap:wrap; }
  #financeCenter .fc-heading [role=tab] { font-size:14px; }
  #financeCenter .fc-summary { gap:7px; }
  #financeCenter .table-wrap { max-width:100%; }
  .fc-selection strong { width:100%; }
}

/* Freight workbench */
#financeCenter.fc-ticket-mode { --fc-accent:#2358a0; --fc-line:#dce4ec; }
.fc-ticket-mode .fc-ticket-heading { padding:0; background:transparent; border:0; gap:14px; }
.fc-ticket-mode .fc-ticket-heading h2 { font-size:24px; color:#162e47; }
.fc-ticket-mode [data-ticket-flow] { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); padding:7px; background:white; border:1px solid var(--fc-line); border-radius:9px; }
.fc-ticket-mode [data-ticket-flow] button { display:flex; align-items:center; justify-content:center; gap:6px; border:none; font-weight:650; position:relative; }
.fc-ticket-mode [data-ticket-flow] button:not(:last-child)::after { content:'›'; color:#94a4b6; position:absolute; right:-4px; }
.fc-ticket-mode [data-ticket-flow] i { display:grid; place-items:center; aspect-ratio:1; width:19px; font:600 11px/1 sans-serif; background:#edf2f8; color:#506880; border-radius:50%; }
.fc-ticket-mode [data-ticket-flow] button[aria-pressed=true] { background:#e9f2ff; color:#194c90; }
.fc-ticket-mode [data-ticket-flow] [aria-pressed=true] i { background:#295da3; color:white; }
.fc-ticket-mode [data-ticket-flow] b { font-size:13px; color:inherit; }
#financeCenter.fc-ticket-mode .fc-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-bottom:9px; }
#financeCenter.fc-ticket-mode .fc-summary .fc-metric { border-radius:8px; padding:12px 15px; }
.fc-ticket-mode .fc-metric small { font-weight:650; }
.fc-ticket-mode .fc-metric small::before { content:''; display:inline-block; width:7px; height:7px; border-radius:50%; background:#376eb3; margin-right:6px; }
.fc-ticket-mode [data-ticket-metric=manual] small::before { background:#ca8835; }
.fc-ticket-mode [data-ticket-metric=due] small::before { background:#98533f; }
.fc-ticket-mode [data-ticket-metric=month] small::before { background:#3d8472; }
.fc-ticket-mode .fc-summary strong { margin:4px 0; font-size:25px; line-height:1.15; }
.fc-budget:not([hidden]) { display:flex; align-items:center; flex-wrap:wrap; gap:8px 16px; margin-bottom:12px; padding:9px 14px; background:#f0f7fa; border:1px solid #d9e8ec; border-radius:7px; font-size:13px; color:#385766; }
.fc-budget strong { font-size:17px; color:#184e61; font-variant-numeric:tabular-nums; }
.fc-budget button { padding:3px 8px; color:#874807; }
.fc-budget small { margin-inline-start:auto; }
#financeCenter.fc-ticket-mode .fc-filter { padding:10px; }
#financeCenter.fc-ticket-mode :is(th,td) { padding:8px 12px; vertical-align:middle; border-bottom:1px solid #d5dfe9; }
#financeCenter.fc-ticket-mode tr > :is(th,td) + :is(th,td) { border-inline-start:1px solid var(--fc-line); }
#financeCenter.fc-ticket-mode .fc-pick { width:38px; padding-inline:6px; text-align:center; }
#financeCenter.fc-ticket-mode .table-wrap table { min-width:720px; }
#financeCenter.fc-ticket-mode td.fc-verdict { white-space:normal; min-width:150px; }
.fc-verdict span { display:block; }
.fc-verdict span + span { margin-top:3px; }
.fc-pay-state { display:inline-block; padding:3px 6px; border-radius:4px; background:#edf2f6; color:#4b6279; font-size:12px; }
#financeCenter.fc-ticket-mode .fc-selection:not([hidden]) { background:#1f344c; color:white; border:0; padding:9px 12px; }
.fc-ticket-mode .fc-selection strong { color:white; }
.fc-ticket-mode .fc-selection strong span { color:#9ce0c3; margin-inline:9px; }
.fc-ticket-mode .fc-selection strong em { color:#ffce83; font-style:normal; }
.fc-ticket-mode .fc-selection .ghost { color:#e7eef7; border:1px solid #60758a; background:transparent; }
.fc-ticket-mode [data-fc-rows] tr[data-item] { cursor:pointer; }
.fc-ticket-mode [data-fc-rows] tr[data-item]:hover td { background:#f1f6fc; }
.fc-joint .fc-ticket-meta { margin:-2px 0 18px; font-size:13px; color:#577087; }
.fc-joint section { margin:16px 0; }
.fc-joint h4 { margin:0 0 8px; font-size:15px; color:#223e55; }
.fc-joint .fc-scroll { border:1px solid #d8e2ec; border-radius:8px; }
#financeCenterDialog .fc-comparison { font-variant-numeric:tabular-nums; }
#financeCenterDialog .fc-comparison thead { background:#edf3f8; }
#financeCenterDialog .fc-comparison :is(th,td) { padding:10px 8px; vertical-align:middle; }
#financeCenterDialog .fc-comparison tr > :is(th,td) + :is(th,td) { text-align:center; border-inline-start:1px solid #dce4ec; }
.fc-comparison small,.fc-joint section>small { display:block; color:#60778e; font-size:11px; font-weight:400; margin-top:3px; }
.fc-comparison .fc-over { color:#9b4b0a; font-weight:650; }
.fc-comparison .fc-within { color:#12714c; }
.fc-joint .fc-conclusion { background:#f0f5fb; color:#344e67; padding:9px 12px; border-radius:6px; font-size:13px; }
.fc-fee-lines { padding:4px 12px; border:1px solid #dce4ed; border-radius:8px; }
.fc-fee-lines>div { display:flex; justify-content:space-between; padding:7px 0; font-variant-numeric:tabular-nums; }
.fc-fee-lines .fc-total { border-top:1px solid #dce4ed; }
.fc-joint-footer { position:sticky; bottom:-20px; background:#fff; padding:10px 0; border-top:1px solid #dce4ed; }
.fc-joint-footer small { color:#4a6277; }
.fc-joint-footer .fc-actions { margin-top:6px; }
@media(max-width:720px) {
  #financeCenter.fc-ticket-mode .fc-summary { grid-template-columns:1fr 1fr; }
  .fc-ticket-mode [data-ticket-flow] button { display:grid; grid-template-columns:auto; gap:2px; font-size:12px; padding:5px; }
  .fc-ticket-mode [data-ticket-flow] i { display:none; }
  .fc-budget small { margin-inline-start:0; }
  .fc-ticket-mode .fc-selection strong { width:100%; }
  .fc-joint-footer { bottom:-12px; }
}

#financeCenter.fc-ticket-mode .fc-filter select { padding-block:2px; line-height:1.3; }
#financeCenter.fc-budget-list .fc-filter > :is(label,.fc-search-group,details),
#financeCenter.fc-budget-list .fc-primary-filters .fc-choice { display:none; }
#financeCenterDialog.fc-drawer:has(.fc-joint) [data-fc-body] { min-height:calc(100% - 66px); display:flex; flex-direction:column; }
.fc-joint { flex:1; display:flex; flex-direction:column; }
.fc-joint-footer { margin-top:auto; }
