:root{font:16px/1.5 "Segoe UI","Malgun Gothic",sans-serif;color:#152637;background:#f4f7fa;--ink:#153754;--blue:#075f68;--line:#d8e2e9}
th button[data-sort]{padding:0;min-height:32px;border:0;background:transparent;font-weight:inherit;text-align:left}
th button[data-sort]:hover{text-decoration:underline}
th button[data-sort]::after{content:"";display:inline-block;width:1em;margin-left:.35em;text-align:center;color:var(--blue)}
th[aria-sort="ascending"] button[data-sort]::after{content:"↑"}
th[aria-sort="descending"] button[data-sort]::after{content:"↓"}
#summary-totals{background:#eaf1f6;color:var(--ink);font-weight:700}
#summary-matrix caption{text-align:left;color:var(--ink);font-weight:700;padding:14px;background:#fff}
#sales-summary caption,#closing-summary caption{text-align:left;color:var(--ink);font-weight:700;padding:14px;background:#fff}
#sales-summary th:last-child,#sales-summary td:last-child,#closing-summary th:nth-child(2),#closing-summary td:nth-child(2){text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
#sales-source{font-size:.85rem}
#closing-status:empty{display:none}
.closing-edit-button{border:0;background:transparent;color:var(--blue);padding:0;text-decoration:underline;text-underline-offset:.2em;font-weight:650}
.closing-caption{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap}
#closing-receivables[aria-pressed="true"]{background:var(--blue);border-color:var(--blue);color:white}
#closing-receivables-status{display:block;color:#486070;font-size:.85rem;font-weight:400;margin-top:.25rem}
#closing-receivables-status:empty{display:none}
.closing-note{margin-top:12px;padding:14px;display:grid;gap:.65rem}
.closing-note textarea{width:100%;resize:vertical;border:1px solid var(--line);border-radius:6px;padding:.6rem;font:inherit;color:inherit}
#closing-note-status{font-size:.85rem}
.closing-view-switch{display:flex;gap:.5rem}
.closing-view-switch button[aria-pressed="true"]{background:var(--blue);color:#fff;border-color:var(--blue);font-weight:700}
.annual-graph{padding:14px}
.annual-graph h2{margin:0 0 10px;font-size:1rem;color:var(--ink)}
#annual-chart{display:block;width:100%;height:208px}
#annual-table caption{text-align:left;color:var(--ink);font-weight:700;padding:14px;background:#fff}
#annual-table td:not(:first-child),#annual-table th:not(:first-child){text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
#annual-table th:first-child,#annual-table td:first-child{position:sticky;left:0;min-width:145px;background:#fff}
#annual-table td:last-child,#annual-table th:last-child{background:#eaf1f6;font-weight:700}
#annual-table th button{min-height:28px;padding:0;border:0;color:var(--blue);background:transparent;text-decoration:underline;text-underline-offset:.2em}
#annual-table .annual-note{display:block;font-size:.8rem;color:#486070;font-weight:400}
#annual-table th button.annual-note{margin-left:auto;min-height:24px;color:var(--blue)}
#annual-table .annual-loss{color:#913829}
#annual-status:empty{display:none}
#annual-coverage{margin-top:.7rem;font-size:.9rem}
#summary-matrix :is(th,td):nth-child(n+2),
#expense-table :is(th,td):is(:nth-child(5),:nth-child(8)),
#import-table :is(th,td):is(:nth-child(2),:nth-child(5)),
#trend :is(th,td):nth-child(n+2),
input[type="number"]{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
#summary-matrix.has-currency :is(th,td):nth-child(2){text-align:left}
#expense-table :is(td,th)[colspan],#import-table :is(td,th)[colspan]{text-align:left}
#expense-table th:is(:nth-child(5),:nth-child(8)) button[data-sort]{
  position:relative;
  padding-inline-start:1.35em;
  text-align:right;
}
#expense-table th:is(:nth-child(5),:nth-child(8)) button[data-sort]::after{
  position:absolute;
  inset-inline-start:0;
  margin-inline-start:0;
}
#summary-matrix th:first-child,#summary-matrix td:first-child{position:sticky;left:0;min-width:170px}
#summary-matrix tbody td:first-child{background:#fff}
#summary-matrix tfoot td:first-child{background:#eaf1f6}
#summary-matrix:not(.has-currency) :is(th,td):nth-child(2),
#summary-matrix.has-currency :is(th,td):nth-child(3){font-weight:700}
#summary-rows .trend-link{border:0;background:transparent;color:var(--blue);padding:0;text-decoration:underline;text-underline-offset:.2em;text-align:left;white-space:normal;font-weight:650}
#trend{width:min(900px,calc(100% - 24px))}
#trend-context{margin-bottom:0}
.portal-layout{display:grid;grid-template-columns:218px minmax(0,1fr);align-items:start;min-height:100vh}
.portal-sidebar{position:sticky;top:0;align-self:start;height:100vh;overflow:auto;padding:22px 14px;background:#fff;border-right:1px solid var(--line)}
.portal-brand{display:block;margin:0 10px 24px;color:var(--ink);font-size:1.25rem;font-weight:750;text-decoration:none}
.portal-module>summary,.catalog-admin{
  position:relative;display:block;padding:9px 12px;border-radius:7px;
  background:#eaf1f6;color:var(--ink);font-weight:700;line-height:1.35;
}
.portal-module>summary{list-style:none;padding-inline-end:30px}
.portal-module>summary::-webkit-details-marker{display:none}
.portal-module>summary::after{
  content:"";position:absolute;inset-inline-end:13px;top:16px;
  width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;
  transform:rotate(-45deg);
}
.portal-module[open]>summary::after{transform:rotate(45deg)}
.portal-module>summary:hover,.catalog-admin:hover{background:#dfeaf2}
.portal-sidebar .portal-module nav{
  display:grid;gap:3px;margin:7px 0 10px 13px;padding:0 0 0 9px;
  border:0;border-inline-start:1px solid #c9d8e4;
}
.portal-module nav button{
  padding:6px 8px;border:1px solid transparent;text-align:left;
  white-space:normal;font-size:.9rem;line-height:1.35;
}
.portal-module nav button:hover{background:#f3f7fa;border-color:transparent}
.portal-module nav button[aria-current="page"]{
  border-inline-start:3px solid var(--blue);padding-inline-start:6px;
  background:#d9eeee;color:#07505a;font-weight:700;
}
.portal-module [lang="en"],.catalog-admin [lang="en"]{
  display:block;margin-top:2px;color:#486070;font-size:.75rem;font-weight:400;
}
.portal-layout>.portal-content{width:100%;min-width:0;margin:0 auto;padding-block-start:24px}
.portal-content>section{padding-top:0}
.portal-content>section>.heading:first-child{margin-top:0}
@media(max-width:720px){
  .portal-layout{grid-template-columns:minmax(0,1fr);align-content:start}
  .portal-sidebar{position:static;height:auto;padding:12px 14px;border-right:0;border-bottom:1px solid var(--line)}
  .portal-brand{margin-bottom:8px}
  .portal-sidebar nav{grid-template-columns:repeat(auto-fit,minmax(min(100%,132px),1fr))}
}
.trend-graph{border:1px solid var(--line);border-radius:12px;background:#f8fbfd;padding:10px}
#trend-chart{display:block;width:100%;height:208px}
#previous-detail-field label{width:100%;min-width:0}
#previous-detail{width:100%;min-width:0}
#repeat-status{font-size:.9rem;margin:.35rem 0 0}
#repeat-status:empty{display:none}
*{box-sizing:border-box}body{margin:0}header{background:#102d45;color:#fff}.wrap{max-width:1280px;padding:0 28px;margin:auto}.brand{font-weight:700;padding-top:18px;padding-bottom:18px}nav{display:flex;gap:6px;border-bottom:1px solid var(--line);padding:14px 0 8px;flex-wrap:wrap}nav button{border-color:transparent;background:transparent}nav button[aria-current]{background:#d9eeee;color:#07505a;font-weight:700}main{padding-bottom:40px!important}h1,h2{line-height:1.2;margin:0}h1{font-size:2rem}h2{font-size:1.35rem}p{margin:.4em 0 1em;color:#486070}section[hidden],[hidden]{display:none!important}section{padding-top:10px}.heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:10px 0 14px}.panel,.metrics>div{background:white;border:1px solid var(--line);border-radius:12px}.filters{display:flex;gap:15px;align-items:end;flex-wrap:wrap;margin:12px 0 18px}.filters.panel{padding:16px}.metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0}.metrics>div{padding:14px 18px;overflow-wrap:anywhere}.metrics strong{display:block;margin-top:5px;font-size:1.18rem;color:var(--ink)}label{display:inline-grid;gap:5px;font-size:.9rem;font-weight:600;color:var(--ink)}input,select,button{font:inherit;color:inherit;min-height:40px;border-radius:7px;border:1px solid #b8c9d5;padding:7px 11px;background:white}input[type=checkbox]{min-height:initial;width:18px;height:18px}button{cursor:pointer;white-space:nowrap}button:hover{border-color:var(--blue)}button:disabled{opacity:.55;cursor:wait}.primary{background:var(--blue);border-color:var(--blue);color:white;font-weight:650}a{color:#075f68}.table-wrap{overflow:auto;margin-top:12px}table{width:100%;border-collapse:collapse;font-size:.9rem;text-align:left}th{color:var(--ink);background:#eaf1f6;white-space:nowrap}td,th{padding:10px 14px;border-bottom:1px solid #e8eef3}tbody tr:last-child td{border-bottom:0}td button{min-height:34px;padding:3px 10px}td a+button,td button+button{margin-left:8px}.summary{padding:14px 16px;margin-top:16px}summary{cursor:pointer;font-weight:600}dialog{width:min(700px,calc(100% - 24px));max-height:90vh;border:1px solid var(--line);border-radius:14px;padding:20px}dialog::backdrop{background:#102d4570}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.wide{grid-column:1/-1}#sent label{margin-right:12px}#message:not(:empty){margin:12px 0;padding:9px 12px;background:#e4f0f3;border-radius:8px}.error{color:#a03322}#entry-files a{display:block;margin-top:8px}@media(max-width:640px){.wrap{padding-left:14px;padding-right:14px}.metrics{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.heading{align-items:flex-start;flex-wrap:wrap}}
.language-switch{display:flex;justify-content:flex-end;gap:4px;margin-bottom:12px}
.language-switch button{display:grid;place-items:center;min-width:48px;min-height:42px;padding:4px 6px}
.language-switch button[aria-pressed="true"]{background:#eaf1f6;border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}
.language-flag{display:block;width:32px;height:22px;border:1px solid var(--line);border-radius:2px}


.portal-brand{display:flex;align-items:center;gap:9px}
.portal-version{display:block;color:#486070;font-size:.7rem;font-weight:500;line-height:1.2}
.company-logo{position:relative;display:grid;place-content:center;width:43px;height:42px;border:1px solid #8a9499;border-radius:5px;text-align:center;background:#fff;color:#222;line-height:1}
.company-logo strong{font-size:1.55rem;color:#a92936}
.company-logo span{font-size:5px;letter-spacing:.12px}
.company-logo i,.company-logo i::before,.company-logo i::after{position:absolute;width:6px;height:10px;border-radius:70% 70% 0 70%;background:#2691b8}
.company-logo i{right:0;top:-2px;transform:rotate(-18deg)}
.company-logo i::before,.company-logo i::after{content:"";top:2px;transform-origin:bottom right}
.company-logo i::before{right:2px;transform:rotate(-45deg)}
.company-logo i::after{left:0;transform:rotate(45deg)}
.company-info{margin:24px 10px 0;padding-top:12px;border-top:1px solid var(--line);font-size:.75rem;color:#486070}
.company-info address{margin-top:5px;font-style:normal}
.portal-account{display:grid;gap:6px;margin:16px 10px 0}
.portal-account button{text-align:left}
.sign-in-form,.account-form{display:grid;gap:12px}
.sign-in-form{max-width:410px;margin:7vh auto 0;padding:24px}
.sign-in-form p:empty,.account-form p:empty{display:none}
.account-checkbox{display:flex;align-items:center;gap:8px}
#menu-permissions{display:grid;gap:6px}


.google-sign-in{display:block;padding:9px 12px;border:1px solid #b8c9d5;border-radius:7px;text-align:center;text-decoration:none;font-weight:650}
.catalog-admin{margin-top:8px;text-decoration:none}
