:root {
  --ink: #102849;
  --muted: #496280;
  --edge: #d9e6f7;
  --wash: #edf4ff;
  --green: #145cd8;
}
body { background: linear-gradient(150deg,#f6faff 12%,#eef5ff 65%,#e6f1ff); }
.desk-side,.mobile-nav { background: linear-gradient(160deg,#0d2044,#123568); }
.desk-side .brand-mark,.mobile-brand .brand-mark { background: linear-gradient(145deg,#2576fa,#1069db 64%,#0b99cd); }
.nav-link[aria-current] { color: white; background: linear-gradient(105deg,#1659d3,#1676dc); box-shadow: inset 0 0 0 1px #9dd9ff30; }
.nav-link:not([aria-current]):hover { background: #235190; }
.dashboard-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 146px;
  background: radial-gradient(ellipse at 93% 4%,#0c8ed7 0%,transparent 52%),linear-gradient(116deg,#0e3d93,#154bc3 52%,#1268db);
  box-shadow: 0 8px 22px #1c63bf25;
}
.dashboard-intro::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 400px;
  height: 290px;
  right: -134px;
  top: -138px;
  border-radius: 44%;
  border: 1px solid #b8edff4f;
  box-shadow: 0 0 0 24px #b8edff13, 0 0 0 49px #b8edff14, 0 0 0 75px #b8edff12;
  transform: rotate(-26deg);
  pointer-events: none;
}
.primary { background: #145bd3; box-shadow: 0 2px 4px #145bd324; }
.primary:not(:disabled):hover { background: #124dab; }
.dashboard-intro .primary { box-shadow: 0 3px 10px #17327038; }
.kpi { border-top: 3px solid #3378ec; }
.kpi:nth-child(2) { border-top-color: #0091cc; }
.kpi:nth-child(3) { border-top-color: #4373db; }
.kpi:nth-child(4) { border-top-color: #028db5; }
.kpi:nth-child(2n) .kpi-icon { background: #e4f5ff; color: #075e98; }
.panel,.records { box-shadow: 0 4px 12px #245baf0a; }
.panel-head { background: #f8fbff; }
.chart-column meter::-webkit-meter-optimum-value { background: #56a5fb; }
.chart-column meter.current::-webkit-meter-optimum-value { background: #1464e2; }
.page-actions,.inline-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inline-head { justify-content: space-between; }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,240px),1fr)); gap: 14px; }
.catalog-card { padding: 16px; }
.catalog-mark { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 11px; background: #dcecff; color: #1455b2; font-weight: 800; font-size: .85rem; margin-bottom: 8px; }
.catalog-card p { color: var(--muted); overflow-wrap: anywhere; }
.catalog-card .links { margin-bottom: 0; }
.invoice-alert { width: 100%; display: flex; align-items: center; gap: 9px; text-align: left; background: #fff3dc; color: #784707; border: 1px solid #ecd19b; border-radius: 11px; margin-bottom: 14px; padding: 10px 13px; }
.invoice-alert span { margin-left: auto; font-size: .87rem; }
.reconcile { display: inline-block; padding: 5px 9px; border-radius: 9px; font-weight: 680; font-size: .84rem; flex: none; }
.reconcile.warn { background: #ffe9e5; color: #902d19; }
.reconcile.review { background: #fff1d2; color: #774802; }
.reconcile.match { background: #daefff; color: #0f548f; }
.invoice-line { border: 1px solid var(--edge); border-radius: 10px; padding: 10px; margin-block: 8px; }
.differences { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; }
.differences li { border-radius: 8px; padding: 9px 11px; background: #f0f5fd; overflow-wrap: anywhere; }
.differences span { display: block; color: var(--muted); font-size: .89rem; padding-top: 3px; }
#invoice-lines:empty { display: none; }
#invoice-add-line { margin-top: 10px; }
#invoice-add-line[hidden] { display: none; }
@media (max-width:560px) {
  .dashboard-intro { min-height: auto; }
  .dashboard-intro::after { right: -250px; }
  .invoice-alert { flex-wrap: wrap; }
  .invoice-alert span { flex: 1 0 100%; padding-left: 30px; }
}

#share-pdf-native[hidden] { display: none; }
