[hidden] {
  display: none !important;
}

.form-field {
  min-width: 0;
}

.field-label,
.form-field > .field-label {
  display: block;
  margin-bottom: 6px;
  color: #596575;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.customer-picker {
  position: relative;
  letter-spacing: 0;
  text-transform: none;
}

.customer-picker-control {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  border: 1px solid #d9e0e5;
  border-radius: 9px;
  background: #fff;
  transition: .15s;
}

.customer-picker-control:focus-within {
  border-color: #8d9aa8;
  box-shadow: 0 0 0 3px #9aa8b518;
}

.customer-picker-control input,
.form-grid .customer-picker-control input {
  min-width: 0;
  margin: 0;
  padding: 10px 2px;
  border: 0;
  box-shadow: none;
}

.customer-picker-control input:focus {
  border: 0;
  box-shadow: none;
}

.customer-picker-control > span {
  color: #788491;
}

.customer-picker-control button {
  padding: 2px;
  border: 0;
  background: transparent;
  color: #7d8792;
  font-size: 18px;
  cursor: pointer;
}

.customer-picker.selected .customer-picker-control {
  border-color: #579a73;
  background: #f5fbf7;
}

.customer-picker.invalid .customer-picker-control {
  border-color: #c94d4d;
  box-shadow: 0 0 0 3px #c94d4d18;
}

.customer-picker-help {
  display: block;
  margin-top: 5px;
  color: #7c8793;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.customer-picker-results {
  position: absolute;
  z-index: 80;
  top: calc(100% + 5px);
  right: 0;
  left: 0;
  max-height: 300px;
  padding: 5px;
  overflow: auto;
  border: 1px solid #dce2e7;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 16px 38px #17212b24;
}

.customer-picker-row {
  display: grid;
  grid-template-columns: 31px 1fr auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.customer-picker-row:hover,
.customer-picker-row:focus {
  outline: 0;
  background: #eef2f4;
}

.customer-picker-row .monogram {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 8px;
  background: #e1e6e9;
  font-size: 10px;
  font-weight: 800;
}

.customer-picker-row b,
.customer-picker-row small {
  display: block;
}

.customer-picker-row b {
  font-size: 12px;
}

.customer-picker-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.customer-picker-empty {
  margin: 0;
  padding: 14px;
  color: var(--muted);
  font-size: 11px;
}

.pdf-drop-zone {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 16px 12px;
  padding: 10px 12px;
  border: 1px dashed #b8c1c9;
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
  transition: .15s;
}

.pdf-drop-zone:hover,
.assistant-chat.dragging .pdf-drop-zone {
  border-color: #718718;
  background: #f3f8e6;
  box-shadow: 0 0 0 4px #b8d44a22;
}

.pdf-drop-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 9px;
  background: #edf4d1;
  color: #4f6410;
  font-size: 18px;
}

.pdf-drop-zone > span:nth-child(3) {
  flex: 1;
  min-width: 0;
}

.pdf-drop-zone b,
.pdf-drop-zone small {
  display: block;
}

.pdf-drop-zone b {
  font-size: 11px;
}

.pdf-drop-zone small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.chat-document {
  max-width: 92%;
  padding: 14px;
  border: 1px solid #dce3e7;
  border-left: 3px solid #a9c83e;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 18px #15202b0b;
}

.document-card-head {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.document-type-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: #fbe9e6;
  color: #a13b2f;
  font-size: 9px;
  font-weight: 900;
}

.document-card-head b,
.document-card-head small {
  display: block;
}

.document-card-head b {
  overflow-wrap: anywhere;
  font-size: 12px;
}

.document-card-head small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.document-card-head a {
  color: #40516a;
  font-size: 10px;
  font-weight: 700;
}

.document-match,
.document-warning {
  margin: 11px 0;
  color: #586676;
  font-size: 10px;
  line-height: 1.45;
}

.document-warning {
  padding: 8px;
  border-radius: 8px;
  background: #fff6df;
  color: #80601c;
}

.document-picker {
  margin-top: 12px;
}

.document-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 12px;
}

.chat-document.resolved {
  border-left-color: #299265;
  background: #f8fcfa;
}

.document-resolution {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid #dfe9e3;
  color: #247451;
  font-size: 11px;
  font-weight: 700;
}

.customer-documents {
  display: grid;
  gap: 7px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.customer-documents > .section-kicker {
  margin-bottom: 4px;
}

.customer-documents a {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 2px 10px;
  padding: 9px;
  border: 1px solid #e2e7eb;
  border-radius: 9px;
  color: var(--ink);
  text-decoration: none;
}

.customer-documents a:hover {
  background: #f6f8f9;
}

.customer-documents a > span {
  display: grid;
  grid-row: 1 / 3;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: #fbe9e6;
  color: #a13b2f;
  font-size: 8px;
  font-weight: 900;
}

.customer-documents a > b {
  font-size: 11px;
}

.customer-documents a > small {
  color: var(--muted);
  font-size: 9px;
}

.customer-trade-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 9px 3px 0;
  color: #697583;
  font-size: 9px;
  font-weight: 700;
}

.customer-trade-legend span,
.trade-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.customer-trade-legend span::before,
.trade-badge::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #aab2ba;
  content: "";
}

.customer-trade-legend .trade-active::before,
.trade-badge.trade-active::before {
  background: #24945f;
}

.customer-trade-legend .trade-historical::before,
.trade-badge.trade-historical::before {
  background: #d39528;
}

.customer-row {
  border-left: 3px solid transparent;
}

.customer-row.trade-active {
  border-left-color: #24945f;
}

.customer-row.trade-historical {
  border-left-color: #d39528;
}

.customer-row.trade-none {
  border-left-color: #ccd2d7;
}

.customer-row .trade-state {
  margin-top: 4px;
  color: #89929c;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.customer-row.trade-active .trade-state {
  color: #23764f;
}

.customer-row.trade-historical .trade-state {
  color: #966a20;
}

.customer-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.customer-title-row h2 {
  margin-bottom: 0;
}

.trade-badge {
  padding: 5px 8px;
  border: 1px solid #dde2e6;
  border-radius: 999px;
  background: #f7f8f9;
  color: #67727e;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.trade-badge.trade-active {
  border-color: #bee2cf;
  background: #edf8f2;
  color: #1e7049;
}

.trade-badge.trade-historical {
  border-color: #edd8ad;
  background: #fff8e8;
  color: #89601b;
}

.potential-dialog-shell {
  width: min(1160px, calc(100vw - 30px));
  max-height: 94vh;
  padding: 24px;
}

.potential-dialog-head {
  align-items: flex-start;
}

.potential-dialog-head h2 {
  margin-bottom: 6px;
}

.potential-dialog-head p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.potential-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 15px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f7f9fa;
  font-size: 10px;
}

.potential-progress,
.potential-error {
  margin-bottom: 12px;
  padding: 13px;
  border: 1px solid #dfe5e9;
  border-radius: 11px;
  background: #f7faf1;
}

.potential-notice {
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid #e8c873;
  border-radius: 14px;
  background: #fff9e8;
  color: #634c0c;
}

.potential-notice b { display: block; margin-bottom: 4px; }
.potential-notice p { margin: 0; }

.potential-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
}

.potential-progress small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 9px;
}

.potential-progress-bar {
  height: 7px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: #dfe5e0;
}

.potential-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8ca52d, var(--accent));
  transition: width .35s ease;
}

.potential-error {
  border-color: #f0cccc;
  background: #fff4f4;
  color: #8a3434;
}

.potential-error p {
  margin: 5px 0 0;
  font-size: 10px;
}

.potential-list {
  display: grid;
  gap: 10px;
}

.potential-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  border: 1px solid #e0e5e8;
  border-left: 4px solid #c7cdd2;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 5px 16px #15202b08;
  overflow: hidden;
}

.potential-card.trade-active {
  border-left-color: #24945f;
}

.potential-card.trade-historical {
  border-left-color: #d39528;
}

.potential-rank {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 17px 9px;
  border-right: 1px solid #edf0f2;
  background: #f8fafb;
}

.potential-rank > span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-bottom: 9px;
  border-radius: 8px;
  background: #16202a;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.potential-rank b {
  font-size: 25px;
  letter-spacing: -.04em;
}

.potential-rank small {
  color: var(--muted);
  font-size: 8px;
}

.potential-main {
  min-width: 0;
  padding: 15px 17px;
}

.potential-title,
.potential-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.potential-title h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.potential-title p,
.potential-summary {
  margin: 0;
  color: #6d7885;
  font-size: 10px;
  line-height: 1.5;
}

.potential-tags {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
  flex-wrap: wrap;
}

.potential-tags > span:not(.trade-badge),
.potential-ai {
  padding: 5px 7px;
  border-radius: 999px;
  background: #eef1f3;
  color: #65707c;
  font-size: 8px;
  font-weight: 800;
  white-space: nowrap;
}

.potential-tags .potential-ai {
  background: #edf6cf;
  color: #526a16;
}

.potential-summary {
  margin-top: 10px;
  color: #354353;
  font-size: 11px;
}

.potential-callouts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.potential-callouts p {
  margin: 0;
  padding: 9px 10px;
  border-radius: 9px;
  background: #f5f8f1;
  color: #5e6975;
  font-size: 9px;
  line-height: 1.45;
}

.potential-callouts p:last-child {
  background: #faf6ef;
}

.potential-callouts b {
  display: block;
  margin-bottom: 3px;
  color: #293642;
  font-size: 8px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.potential-financial {
  display: flex;
  align-items: stretch;
  gap: 7px;
  margin-top: 10px;
  overflow-x: auto;
}

.potential-financial > span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 115px;
  padding: 7px 9px;
  border: 1px solid #e3e7ea;
  border-radius: 8px;
  color: #677380;
  font-size: 9px;
}

.potential-financial small,
.potential-financial b {
  display: block;
}

.potential-financial small {
  color: #8a949e;
  font-size: 8px;
}

.potential-financial b {
  margin-top: 2px;
  color: var(--ink);
  font-size: 10px;
}

.potential-footer {
  align-items: center;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid #edf0f2;
}

.potential-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 11px;
}

.potential-sources a {
  color: #436080;
  font-size: 9px;
  font-weight: 700;
  text-decoration: none;
}

.potential-sources a:hover {
  text-decoration: underline;
}

.potential-score-detail {
  margin-top: 8px;
  color: #6e7984;
  font-size: 9px;
}

.potential-score-detail summary {
  cursor: pointer;
  font-weight: 700;
}

.potential-score-detail > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.potential-score-detail > div span {
  padding: 5px 7px;
  border-radius: 7px;
  background: #f2f4f5;
}

.potential-score-detail > div b {
  margin-right: 4px;
  color: #354555;
}

.potential-score-detail p {
  margin: 8px 0 0;
  line-height: 1.45;
}

.potential-disclaimer {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

@media (max-width: 780px) {
  .pdf-drop-zone {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .pdf-drop-zone .btn {
    margin-left: 41px;
  }

  .chat-document {
    max-width: 100%;
  }

  .document-card-head {
    grid-template-columns: 35px minmax(0, 1fr);
  }

  .document-card-head > a {
    grid-column: 2;
  }

  .customer-picker-results {
    position: fixed;
    top: auto;
    right: 14px;
    bottom: 78px;
    left: 14px;
    max-height: 45vh;
  }

  .potential-dialog-shell {
    width: calc(100vw - 14px);
    max-height: 96vh;
    padding: 15px;
  }

  .potential-toolbar,
  .potential-title,
  .potential-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .potential-card {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .potential-rank {
    padding: 12px 5px;
  }

  .potential-rank b {
    font-size: 20px;
  }

  .potential-main {
    padding: 12px;
  }

  .potential-tags {
    justify-content: flex-start;
  }

  .potential-callouts {
    grid-template-columns: 1fr;
  }

  .potential-footer .btn {
    width: 100%;
  }
}

/* PIBA product identity / CONEVERA company identity */
:root {
  --ink: #092342;
  --muted: #66788e;
  --line: #dce7f2;
  --paper: #ffffff;
  --canvas: #f3f7fc;
  --dark: #061a35;
  --dark2: #0a3975;
  --accent: #12d9d2;
  --blue: #0875ed;
  --blue-bg: #e8f2ff;
  --shadow: 0 12px 34px rgba(16, 54, 96, .075);
  --radius: 17px;
}

body {
  background:
    radial-gradient(circle at 92% 4%, rgba(18, 217, 210, .08), transparent 26rem),
    radial-gradient(circle at 28% 98%, rgba(8, 117, 237, .06), transparent 32rem),
    var(--canvas);
}

::selection {
  background: rgba(18, 217, 210, .3);
  color: #03172f;
}

.piba-wordmark,
.conevera-wordmark,
.piba-mark {
  display: block;
  flex: 0 0 auto;
  background-repeat: no-repeat;
}

.piba-wordmark {
  aspect-ratio: 1110 / 426;
  background-image: url('/piba.png');
  background-position: center;
  background-size: 113% auto;
}

.conevera-wordmark {
  aspect-ratio: 1089 / 373;
  background-image: url('/conevera.png');
  background-position: center;
  background-size: 115% auto;
}

.piba-mark {
  background-image: url('/piba.png');
  background-position: 10.5% 49.5%;
  background-size: 292% 292%;
}

.sidebar {
  width: 258px;
  padding: 22px 17px;
  overflow-y: auto;
  border-right: 1px solid #dce8f4;
  background:
    radial-gradient(circle at 15% 7%, rgba(18, 217, 210, .12), transparent 180px),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 68%, #f2f7fd 100%);
  color: var(--ink);
  box-shadow: 12px 0 36px rgba(15, 52, 91, .045);
}

.brand {
  display: block;
  margin: 0 3px 20px;
  padding: 6px 9px 18px;
  border-bottom: 1px solid #e2ebf4;
  color: var(--ink);
}

.brand-piba {
  width: 184px;
  max-width: 100%;
}

.brand-subtitle {
  display: block;
  margin: 2px 0 0 4px;
  color: #71849b;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.main-nav {
  gap: 5px;
}

.nav-item {
  position: relative;
  border: 1px solid transparent;
  color: #526a84;
  font-weight: 650;
}

.nav-item span {
  color: #6c86a2;
}

.nav-item:hover {
  border-color: #dce8f5;
  background: #edf5fe;
  color: #0a4f9f;
}

.nav-item.active,
.nav-item.active:hover {
  border-color: transparent;
  background: linear-gradient(110deg, #0874ed 0%, #075dce 70%, #0b51ae 100%);
  color: #fff;
  box-shadow: 0 8px 19px rgba(8, 100, 213, .22);
}

.nav-item.active span {
  color: #fff;
}

.nav-item.active::after {
  background: #20ebe3;
  box-shadow: 0 0 0 4px rgba(32, 235, 227, .16);
}

.sidebar-bottom {
  gap: 10px;
}

.company-signature {
  margin: 3px 1px 0;
  padding: 10px 13px 9px;
  border: 1px solid #dae7f4;
  border-radius: 13px;
  background: rgba(255, 255, 255, .75);
}

.company-signature > small {
  display: block;
  margin: 0 0 1px 3px;
  color: #8292a5;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.sidebar-conevera {
  width: 142px;
  max-width: 100%;
}

.user-chip {
  border-top-color: #dce7f1;
}

.user-chip small {
  color: #788ba0;
}

.avatar {
  background: linear-gradient(145deg, #0875ed, #12d9d2);
  color: #fff;
  box-shadow: 0 5px 12px rgba(8, 117, 237, .2);
}

.main-content {
  margin-left: 258px;
}

.page-head h1 {
  color: #092647;
}

.eyebrow.dark,
.section-kicker {
  color: #0870df;
}

.btn-primary,
.btn-dark {
  border-color: #0766d1;
  background: linear-gradient(110deg, #0875ed, #0758bd);
  color: #fff;
  box-shadow: 0 6px 15px rgba(8, 105, 220, .16);
}

.btn-primary:hover,
.btn-dark:hover {
  box-shadow: 0 9px 20px rgba(8, 105, 220, .23);
}

.btn-ghost {
  border-color: #d5e2ef;
  color: #153c65;
}

.panel,
.card {
  border-color: #dce7f2;
  box-shadow: var(--shadow);
}

.stat-card {
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #0875ed, #14d9d2);
  content: '';
  opacity: .8;
}

.stat-card .stat-icon {
  background: #eaf3fe;
  color: #086bd3;
}

.search,
.detail-fact,
.task-column {
  border-color: #dce7f1;
  background: #f4f8fc;
}

input:focus,
select:focus,
textarea:focus,
.customer-picker-control:focus-within {
  border-color: #4195ed;
  box-shadow: 0 0 0 3px rgba(8, 117, 237, .12);
}

.customer-row:hover,
.customer-row.active,
.customer-picker-row:hover,
.customer-picker-row:focus {
  background: #eaf3fd;
}

.customer-row.active {
  box-shadow: inset 0 0 0 1px #d3e6fa;
}

.customer-row .monogram,
.customer-picker-row .monogram {
  background: linear-gradient(145deg, #e9f3ff, #e7fbfa);
  color: #075dbf;
}

.recommendation {
  border-left-color: #0875ed;
  background: #f8fbff;
}

.rec-actions .approve {
  border-color: #0765cf;
  background: #086cdb;
}

.source-tag.ai,
.potential-tags .potential-ai {
  background: #e3fbfa;
  color: #067b78;
}

.assistant-layout {
  background: #061a35;
  box-shadow: 0 22px 55px rgba(3, 28, 58, .18);
}

.assistant-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 15%, rgba(18, 217, 210, .22), transparent 32%),
    radial-gradient(circle at 95% 85%, rgba(8, 117, 237, .3), transparent 42%),
    linear-gradient(145deg, #082449, #041326);
}

.assistant-intro::after {
  position: absolute;
  z-index: -1;
  right: -115px;
  bottom: -150px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(68, 231, 226, .19);
  border-radius: 50%;
  box-shadow: 0 0 0 45px rgba(34, 177, 225, .04), 0 0 0 90px rgba(34, 177, 225, .025);
  content: '';
}

.assistant-orb.piba-mark {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 17px;
  background-color: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
}

.suggested-prompts button {
  border-color: rgba(129, 176, 224, .25);
  background: rgba(255, 255, 255, .055);
}

.suggested-prompts button:hover {
  border-color: #1bdbd5;
  background: rgba(15, 206, 201, .09);
}

.assistant-chat {
  background: #f2f7fc;
}

.chat-message.user > span {
  background: linear-gradient(145deg, #0875ed, #12d9d2);
  color: #fff;
}

.chat-message.user p {
  background: #083b77;
}

.pdf-drop-zone:hover,
.assistant-chat.dragging .pdf-drop-zone {
  border-color: #159adf;
  background: #edf8ff;
  box-shadow: 0 0 0 4px rgba(8, 117, 237, .09);
}

.pdf-drop-icon {
  background: #e4f7fb;
  color: #0875ae;
}

.potential-rank {
  background: linear-gradient(180deg, #f3f8fe, #edf6ff);
}

.potential-rank > span {
  background: linear-gradient(145deg, #0875ed, #0753b2);
  box-shadow: 0 5px 13px rgba(8, 105, 218, .2);
}

.potential-progress-bar span {
  background: linear-gradient(90deg, #0875ed, #12d9d2);
}

.potential-callouts p {
  background: #f1f8ff;
}

.integration-icon.openai {
  background: #e3fbfa;
  color: #057b77;
}

.storage-bar span {
  background: linear-gradient(90deg, #0875ed, #12d9d2);
}

.mobile-piba {
  width: 98px;
}

.login-body {
  background:
    radial-gradient(circle at 14% 12%, rgba(18, 217, 210, .22), transparent 28rem),
    radial-gradient(circle at 88% 82%, rgba(8, 117, 237, .28), transparent 34rem),
    #031226;
}

.login-shell {
  min-height: 650px;
  border-color: rgba(133, 186, 237, .24);
  background: #061a35;
  box-shadow: 0 38px 110px rgba(0, 5, 18, .62);
}

.login-brand {
  position: relative;
  isolation: isolate;
  justify-content: flex-start;
  overflow: hidden;
  padding: 55px 64px 45px;
  background:
    radial-gradient(circle at 8% 5%, rgba(18, 217, 210, .22), transparent 33%),
    radial-gradient(circle at 100% 90%, rgba(8, 117, 237, .34), transparent 44%),
    linear-gradient(145deg, #08254c, #031226);
}

.login-brand::after {
  position: absolute;
  z-index: -1;
  right: -145px;
  bottom: -150px;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(67, 226, 221, .16);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(31, 161, 218, .045), 0 0 0 110px rgba(31, 161, 218, .025);
  content: '';
}

.login-product-lockup {
  width: min(340px, 100%);
  padding: 7px 15px;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 18px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 12px 36px rgba(0, 12, 31, .25);
}

.login-piba {
  width: 100%;
}

.piba-expansion {
  margin: 14px 0 0;
  color: #9eb5cd;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .04em;
}

.piba-expansion b {
  color: #43e5df;
  font-size: 13px;
}

.login-brand > .eyebrow {
  margin-top: 21px;
  color: #43e5df;
}

.login-brand h1 {
  margin: 19px 0;
  font-size: clamp(43px, 4.7vw, 64px);
}

.login-brand h1 span {
  background: linear-gradient(90deg, #43e5df, #66b7ff);
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
}

.login-points b {
  border-color: rgba(49, 221, 215, .45);
  color: #43e5df;
}

.login-company {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin-top: auto;
  padding: 7px 13px;
  border: 1px solid rgba(167, 203, 239, .25);
  border-radius: 12px;
  background: rgba(255, 255, 255, .94);
}

.login-company small {
  color: #6d8198;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.login-conevera {
  width: 145px;
}

.login-card {
  position: relative;
  background:
    radial-gradient(circle at 100% 0, rgba(18, 217, 210, .1), transparent 17rem),
    #fff;
}

.login-card h2 {
  color: #092647;
}

.login-card input:focus {
  border-color: #4195ed;
  box-shadow: 0 0 0 3px rgba(8, 117, 237, .12);
}

.login-card-brand {
  display: none;
}

@media (max-width: 780px) {
  .sidebar {
    width: min(86vw, 292px);
  }

  .main-content {
    margin-left: 0;
  }

  .mobile-header {
    border-bottom-color: #dce7f2;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 6px 24px rgba(10, 49, 89, .07);
    backdrop-filter: blur(14px);
  }

  .mobile-nav {
    border-top-color: #d7e4f0;
    box-shadow: 0 -7px 24px rgba(10, 49, 89, .075);
  }

  .mobile-nav button.active {
    color: #0868cf;
  }

  .login-card {
    min-height: 100vh;
    padding: 42px 25px;
    background:
      radial-gradient(circle at 90% 0, rgba(18, 217, 210, .12), transparent 18rem),
      #fff;
  }

  .login-card-brand {
    display: block;
    width: 165px;
    margin-bottom: 42px;
  }

  .login-card-piba {
    width: 100%;
  }

  .login-card-brand small {
    display: block;
    margin-top: 4px;
    color: #71849a;
    font-size: 8px;
    font-weight: 750;
    letter-spacing: .045em;
  }
}

/* Login refinement 1.3.2 — isolated for straightforward future tuning */
.login-shell {
  width: min(1010px, 100%);
  min-height: 610px;
  grid-template-columns: 1.04fr .96fr;
  border: 1px solid rgba(147, 190, 232, .2);
  border-radius: 22px;
  box-shadow: 0 30px 85px rgba(0, 8, 25, .48), 0 1px 0 rgba(255, 255, 255, .08) inset;
}

.login-brand {
  padding: 46px 54px 38px;
}

.login-product-lockup {
  position: relative;
  width: min(263px, 76%);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.login-product-lockup::after {
  position: absolute;
  inset: 0;
  background: url('/piba.png') center / 113% auto no-repeat;
  clip-path: inset(0 61% 0 0);
  content: '';
  pointer-events: none;
}

.login-piba {
  filter: brightness(0) invert(1);
  opacity: .97;
}

.piba-expansion {
  margin-top: 9px;
  color: #a9bad0;
  font-size: 10px;
  letter-spacing: .055em;
}

.piba-expansion b {
  color: #38ddd7;
  font-size: 11px;
}

.login-brand > .eyebrow {
  margin-top: 20px;
  color: #3cddd7;
  font-size: 9px;
}

.login-brand h1 {
  max-width: 430px;
  margin: 15px 0 16px;
  font-size: clamp(40px, 3.3vw, 46px);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.login-brand h1 span {
  display: inline-block;
  margin-top: 4px;
  font-size: .92em;
  line-height: 1.1;
  white-space: nowrap;
}

.login-brand > p:not(.piba-expansion) {
  max-width: 425px;
  margin: 0;
  color: #aebed0;
  font-size: 13px;
  line-height: 1.55;
}

.login-points {
  gap: 10px;
  margin-top: 24px;
  color: #cfdae5;
  font-size: 11px;
}

.login-points span {
  gap: 11px;
  min-height: 25px;
}

.login-points b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border-color: rgba(49, 221, 215, .36);
  border-radius: 7px;
  background: rgba(32, 217, 211, .08);
  color: #50e4df;
  font-size: 8px;
}

.login-company {
  display: block;
  margin-top: auto;
  padding: 38px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  opacity: .72;
}

.login-conevera {
  width: 107px;
  filter: brightness(0) invert(1);
}

.login-company-credit {
  display: grid;
  gap: 1px;
  margin: 4px 0 0 2px;
  color: #a9b9cc;
  font-size: 8px;
  line-height: 1.35;
}

.login-company-credit span {
  white-space: nowrap;
}

.login-card {
  --login-control-radius: 11px;
  align-items: center;
  padding: 48px 56px 78px;
}

.login-heading,
.login-card form {
  width: 100%;
  max-width: 350px;
}

.login-heading > .eyebrow {
  color: #95a3b3;
  font-size: 8px;
  letter-spacing: .16em;
  opacity: .72;
}

.login-card h2 {
  margin: 10px 0 5px;
  font-size: 32px;
  line-height: 1.12;
  letter-spacing: -.04em;
}

.login-heading > p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.login-card form {
  gap: 17px;
  margin-top: 30px;
}

.login-card label {
  color: #52657a;
  font-size: 10px;
  line-height: 1.3;
}

.login-card input {
  height: 49px;
  margin-top: 7px;
  padding: 0 13px;
  border-color: #cfdae5;
  border-radius: var(--login-control-radius);
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.login-card input:hover {
  border-color: #aebfd0;
  background: #fcfdff;
}

.login-card input:focus {
  border-color: #2788ed;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(8, 117, 237, .11);
}

.login-card .form-error {
  min-height: 17px;
  margin: -5px 0 -4px;
  font-size: 11px;
}

.login-card .btn-block {
  width: 100%;
  height: 49px;
  margin-top: 1px;
  border-radius: var(--login-control-radius);
  box-shadow: 0 6px 14px rgba(8, 105, 220, .14);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.login-card .btn-block:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 18px rgba(8, 105, 220, .2);
  filter: saturate(1.06);
}

.login-card .btn-block:focus-visible {
  outline: 3px solid rgba(18, 217, 210, .34);
  outline-offset: 3px;
}

.login-card .btn-block:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(8, 105, 220, .14);
}

@media (max-width: 920px) {
  .login-body {
    padding: 0;
    background: #fff;
  }

  .login-shell {
    display: block;
    width: 100%;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .login-brand {
    display: none;
  }

  .login-card {
    min-height: 100vh;
    padding: 40px 25px;
  }

  .login-card-brand {
    display: block;
    width: 158px;
    margin-bottom: 38px;
    align-self: flex-start;
  }
}

@media (max-width: 430px) {
  .login-card {
    align-items: stretch;
    justify-content: center;
    padding: 34px 24px;
  }

  .login-heading,
  .login-card form {
    max-width: none;
  }

  .login-card h2 {
    font-size: 29px;
  }
}

/* Oborové Top 10 a bezpečná správa zákazníků */
.customer-list-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: end;
}

.customer-list-panel,
.customer-list-controls > *,
.customer-smart-filters,
.customer-filter-panel,
.customer-filter-grid,
.customer-filter-block,
.customer-turnover-range > * {
  min-width: 0;
  max-width: 100%;
}

.customer-filter-toggle {
  display: inline-flex;
  height: 39px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 10px;
  border: 1px solid #d5e2ef;
  border-radius: 10px;
  background: #fff;
  color: #153c65;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.customer-filter-toggle:hover,
.customer-filter-toggle.active {
  border-color: #9fc7ef;
  background: #eaf4ff;
  color: #0867c8;
}

.customer-filter-toggle b {
  display: grid;
  min-width: 17px;
  height: 17px;
  place-items: center;
  padding: 0 4px;
  border-radius: 999px;
  background: #0875ed;
  color: #fff;
  font-size: 8px;
}

.customer-list-mode {
  display: grid;
  gap: 4px;
  color: #708198;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.customer-list-mode select,
.potential-focus select {
  height: 39px;
  border: 1px solid #d5e2ef;
  border-radius: 10px;
  outline: 0;
  background: #fff;
  color: #153c65;
  font-size: 11px;
  font-weight: 700;
}

.customer-list-mode select {
  width: 94px;
  padding: 0 9px;
}

.customer-smart-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
  padding: 1px 1px 4px;
}

.customer-smart-filters button,
.customer-filter-presets button {
  border: 1px solid #dce6f0;
  border-radius: 999px;
  background: #f7faff;
  color: #536b84;
  font-size: 8px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.customer-smart-filters button {
  padding: 6px 8px;
}

.customer-smart-filters button:hover,
.customer-smart-filters button.active,
.customer-filter-presets button:hover,
.customer-filter-presets button.active {
  border-color: #8fc5f5;
  background: #e7f3ff;
  color: #0764c5;
}

.customer-filter-panel {
  display: grid;
  gap: 12px;
  max-height: min(520px, 60vh);
  margin-top: 9px;
  padding: 13px;
  overflow: auto;
  border: 1px solid #d6e3ef;
  border-radius: 13px;
  background: #f8fbff;
  box-shadow: 0 12px 28px rgba(16, 54, 96, .1);
}

.customer-filter-panel[hidden] {
  display: none;
}

.customer-filter-panel-head,
.customer-filter-panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.customer-filter-panel-head b,
.customer-filter-panel-head small {
  display: block;
}

.customer-filter-panel-head b {
  color: #173b61;
  font-size: 12px;
}

.customer-filter-panel-head small,
.customer-filter-panel-footer small {
  margin-top: 2px;
  color: #7a8a9b;
  font-size: 8px;
}

.customer-filter-panel-head > button {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: #eaf0f6;
  color: #60758b;
  font-size: 17px;
  cursor: pointer;
}

.customer-filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.customer-filter-block {
  min-width: 0;
  margin: 0;
  padding: 10px;
  border: 1px solid #e0e9f2;
  border-radius: 10px;
  background: #fff;
}

.customer-filter-block.full {
  grid-column: 1 / -1;
}

.customer-filter-block legend {
  padding: 0 4px;
  color: #5c7188;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.customer-filter-block > input,
.customer-filter-block > select,
.customer-turnover-range input {
  width: 100%;
  height: 35px;
  border: 1px solid #d8e3ed;
  border-radius: 8px;
  outline: 0;
  background: #fbfdff;
  color: #153c65;
  font-size: 10px;
}

.customer-filter-block > input,
.customer-filter-block > select {
  padding: 0 9px;
}

.customer-turnover-range {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 6px;
  align-items: end;
}

.customer-turnover-range > span {
  padding-bottom: 9px;
  color: #8a98a6;
}

.customer-turnover-range label {
  color: #7a8b9c;
  font-size: 8px;
  font-weight: 800;
}

.customer-turnover-range input {
  display: block;
  margin-top: 4px;
  padding: 0 8px;
}

.customer-filter-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
  padding-bottom: 2px;
}

.customer-filter-presets button {
  padding: 5px 7px;
}

.customer-filter-checks,
.customer-group-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 8px;
}

.customer-filter-checks.stacked {
  grid-template-columns: 1fr;
}

.customer-group-options {
  max-height: 112px;
  overflow: auto;
  padding-right: 3px;
}

.customer-filter-checks label,
.customer-group-options label {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 5px;
  color: #475f78;
  font-size: 9px;
  line-height: 1.25;
  cursor: pointer;
}

.customer-filter-checks input,
.customer-group-options input {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: #0875ed;
}

.customer-filter-panel-footer {
  flex-wrap: wrap;
  padding-top: 2px;
  border-top: 1px solid #e3ebf3;
}

.customer-active-filters {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
  padding: 8px;
  border-radius: 9px;
  background: #f0f6fc;
}

.customer-active-filters[hidden] {
  display: none;
}

.customer-active-filters > button:not(.customer-filter-clear-inline) {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 7px;
  border: 1px solid #cfe0f1;
  border-radius: 999px;
  background: #fff;
  color: #365b7f;
  font-size: 8px;
  font-weight: 800;
  cursor: pointer;
}

.customer-active-filters > button span {
  color: #8ca0b4;
  font-size: 11px;
}

.customer-filter-result {
  color: #637990;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.customer-filter-clear-inline {
  margin-left: auto;
  padding: 4px;
  border: 0;
  background: transparent;
  color: #637a92;
  font-size: 8px;
  font-weight: 800;
  cursor: pointer;
}

.customer-insight {
  margin-top: 5px !important;
  overflow: hidden;
  color: #536f8b !important;
  font-size: 8px !important;
  font-weight: 650;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.customer-list-panel.filters-open .customer-list {
  max-height: min(430px, 48vh);
}

.customer-row.archived {
  border-left-color: #8998a8;
  opacity: .78;
}

.customer-row.archived .trade-state {
  color: #66788e;
}

.customer-actions,
.potential-card-actions,
.potential-toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}

.customer-actions {
  max-width: 430px;
}

.btn-danger-ghost {
  border-color: #ebc7c7;
  background: #fff;
  color: #a43b3b;
}

.btn-danger-ghost:hover {
  border-color: #dba0a0;
  background: #fff5f5;
}

.archive-notice {
  display: flex;
  gap: 7px 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 16px;
  padding: 11px 13px;
  border: 1px solid #d8e0e8;
  border-radius: 11px;
  background: #f4f7fa;
  color: #64758a;
  font-size: 10px;
}

.archive-notice b {
  color: #233f5e;
}

.archive-badge {
  padding: 5px 8px;
  border-radius: 999px;
  background: #e9eef3;
  color: #596b7d;
  font-size: 9px;
  font-weight: 800;
}

.potential-toolbar-actions {
  flex: 0 1 auto;
}

.potential-focus {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #61748a;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.potential-focus select {
  min-width: 235px;
  padding: 0 32px 0 10px;
}

.potential-focus select:disabled {
  opacity: .6;
}

@media (max-width: 780px) {
  .potential-toolbar-actions,
  .potential-focus,
  .potential-focus select {
    width: 100%;
  }

  .potential-toolbar-actions,
  .potential-focus {
    align-items: stretch;
    flex-direction: column;
  }

  .potential-card-actions {
    width: 100%;
  }

  .potential-card-actions .btn {
    flex: 1;
  }

  .customer-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .customer-actions {
    justify-content: flex-start;
    max-width: none;
  }

  .customer-filter-panel {
    width: 100%;
    max-height: none;
  }
}

@media (max-width: 430px) {
  .customer-list-controls {
    grid-template-columns: 1fr;
  }

  .customer-list-mode select {
    width: 100%;
  }

  .customer-filter-toggle {
    width: 100%;
  }

  .customer-filter-grid {
    grid-template-columns: 1fr;
  }

  .customer-filter-block.full {
    grid-column: auto;
  }

  .customer-filter-checks,
  .customer-group-options {
    grid-template-columns: 1fr;
  }

  .customer-actions,
  .potential-card-actions {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
  }
}
