﻿.icv-portal-wrap {
  --icv-green: #5e8e1e;
  --icv-green-dark: #4c7518;
  --icv-dark: #232325;
  --icv-ink: #333333;
  --icv-ink2: #555555;
  --icv-muted: #787c72;
  --icv-line: #e0e0e0;
  --icv-line2: #d9d9d9;
  --icv-bg: #f7f7f7;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px 60px;
  box-sizing: border-box;
  color: var(--icv-ink2);
  font-family: Arial, "Helvetica Neue", Helvetica, "Microsoft YaHei", sans-serif;
  font-size: 13px;
  line-height: 1.6;
}
.icv-portal-wrap *,
.icv-auth *,
.icv-reset-wrap * {
  box-sizing: border-box;
}
.icv-portal-wrap h1,
.icv-portal-wrap h2,
.icv-portal-wrap h3,
.icv-auth h2,
.icv-reset-wrap h1 {
  color: var(--icv-ink);
  font-weight: bold;
  letter-spacing: 0;
  margin: 0;
}
.icv-eyebrow {
  display: inline-block;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--icv-green);
}
.icv-muted {
  color: #999;
  font-size: 11.5px;
}
.icv-link {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--icv-green);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
}
.icv-link:hover {
  text-decoration: underline;
}

/* Buttons */
.icv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--icv-line2);
  border-radius: 2px;
  background: #fff;
  color: var(--icv-ink);
  font-family: inherit;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.icv-btn:hover {
  border-color: var(--icv-green);
  color: var(--icv-green);
}
.icv-btn-primary {
  background: var(--icv-green);
  border-color: var(--icv-green);
  color: #fff;
}
.icv-btn-primary:hover {
  background: var(--icv-dark);
  border-color: var(--icv-dark);
  color: #fff;
}
.icv-btn-ghost {
  background: transparent;
}
.icv-btn[disabled] {
  opacity: .6;
  cursor: wait;
}

/* Head */
.icv-portal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: 30px 0 22px;
  border-bottom: 1px solid var(--icv-line);
}
.icv-portal-head h1 {
  font-size: 28px;
  line-height: 1.2;
  margin-top: 6px;
}
.icv-portal-head p {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--icv-muted);
}
.icv-head-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Stats */
.icv-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 24px;
}
.icv-stat {
  background: var(--icv-bg);
  border: 1px solid #e3e3e3;
  border-radius: 3px;
  padding: 16px 18px;
}
.icv-stat span {
  display: block;
  font-size: 30px;
  line-height: 1.1;
  font-weight: bold;
  color: var(--icv-green);
}
.icv-stat b {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--icv-ink);
}
.icv-stat small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #999;
}

/* Tabs */
.icv-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  border-bottom: 1px solid var(--icv-line);
  margin-bottom: 20px;
}
.icv-tab {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  padding: 12px 16px;
  margin-bottom: -1px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: bold;
  color: #777;
  cursor: pointer;
}
.icv-tab:hover {
  color: var(--icv-ink);
}
.icv-tab.is-active {
  color: var(--icv-green);
  border-bottom-color: var(--icv-green);
}
.icv-panel {
  display: none;
}
.icv-panel.is-active {
  display: block;
}

/* Cards */
.icv-card {
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 3px;
  padding: 20px;
}
.icv-card + .icv-card {
  margin-top: 16px;
}
.icv-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid #eee;
}
.icv-card-head h2 {
  font-size: 16px;
  line-height: 1.3;
}
.icv-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 16px;
  align-items: start;
}
.icv-overview-grid .icv-card + .icv-card {
  margin-top: 0;
}

/* Mini lists */
.icv-mini-list {
  display: flex;
  flex-direction: column;
}
.icv-mini {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
}
.icv-mini:last-child {
  border-bottom: 0;
}
.icv-mini-title {
  font-size: 12.5px;
  font-weight: bold;
  color: var(--icv-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.icv-mini:hover .icv-mini-title {
  color: var(--icv-green);
}
.icv-mini-meta {
  flex: 0 0 auto;
  font-size: 11px;
  color: #999;
}

/* Records */
.icv-records {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.icv-record {
  border: 1px solid #e3e3e3;
  border-radius: 2px;
  background: #fff;
}
.icv-record summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}
.icv-record summary::-webkit-details-marker {
  display: none;
}
.icv-record summary::after {
  content: "+";
  margin-left: auto;
  color: #999;
  font-size: 16px;
  line-height: 1;
}
.icv-record[open] summary::after {
  content: "–";
}
.icv-tag {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border: 1px solid #d9d9d9;
  border-radius: 2px;
  background: #f7f7f7;
  font-size: 9.5px;
  font-weight: bold;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #777;
}
.icv-record-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: bold;
  color: var(--icv-ink);
}
.icv-record-date {
  flex: 0 0 auto;
  margin-left: 10px;
  font-size: 11px;
  color: #999;
}
.icv-status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: .03em;
  color: #666;
  background: #f1f1f1;
}
.icv-status.is-new {
  color: #3d6114;
  background: #eef4e4;
}
.icv-status.is-quoted,
.icv-status.is-sent {
  color: #1f4f91;
  background: #eaf1fb;
}
.icv-status.is-accepted {
  color: #3d6114;
  background: #e6f4e8;
}
.icv-status.is-expired {
  color: #a4281f;
  background: #fdecea;
}
.icv-status.is-closed {
  color: #777;
  background: #f1f1f1;
}
.icv-record-body {
  padding: 12px 14px 16px;
  border-top: 1px solid #f0f0f0;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--icv-ink2);
}
.icv-quote-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 24px;
}
.icv-quote-notes {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #e5e5e5;
  white-space: pre-line;
}
.icv-kv {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 7px;
  font-size: 12.5px;
}
.icv-kv span {
  color: #999;
}
.icv-kv b {
  font-weight: bold;
  color: var(--icv-ink);
  text-align: right;
}

/* Empty */
.icv-empty {
  margin: 0;
  padding: 24px 14px;
  border: 1px dashed var(--icv-line2);
  border-radius: 2px;
  text-align: center;
  font-size: 12.5px;
  color: #999;
}

/* Forms */
.icv-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}
.icv-form-grid .icv-full {
  grid-column: 1 / -1;
}
.icv-form label {
  display: block;
  margin-bottom: 12px;
  font-size: 10.5px;
  font-weight: bold;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #666;
}
.icv-form input:not([type="checkbox"]):not([type="hidden"]),
.icv-form textarea,
.icv-form select {
  display: block;
  width: 100%;
  margin-top: 5px;
  border: 1px solid var(--icv-line2);
  border-radius: 2px;
  background: #fff;
  padding: 9px 10px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
  color: var(--icv-ink);
}
.icv-form input:focus,
.icv-form textarea:focus,
.icv-form select:focus {
  outline: none;
  border-color: var(--icv-green);
}
.icv-form textarea {
  min-height: 88px;
  resize: vertical;
}
.icv-form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.icv-form-msg {
  font-size: 12px;
  color: #999;
}
.icv-form-msg.is-success {
  color: #3d6114;
}
.icv-form-msg.is-error {
  color: #a4281f;
}

/* Table */
.icv-table-wrap {
  overflow-x: auto;
}
.icv-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}
.icv-table th {
  background: #3a3a3a;
  color: #fff;
  font-size: 10.5px;
  font-weight: bold;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 9px 10px;
  text-align: left;
}
.icv-table td {
  border-bottom: 1px solid #eee;
  padding: 9px 10px;
  font-size: 12px;
  color: var(--icv-ink2);
}
.icv-table tr:nth-child(even) td {
  background: #fafafa;
}
.icv-ua {
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Auth gate */
.icv-auth-gate {
  max-width: 640px;
  margin: 40px auto 20px;
  padding: 46px 34px;
  border: 1px solid #e3e3e3;
  border-radius: 3px;
  background: #fff;
  text-align: center;
}
.icv-auth-gate h1 {
  font-size: 26px;
  line-height: 1.25;
  margin: 8px 0 10px;
}
.icv-auth-gate p {
  margin: 0 auto 20px;
  max-width: 460px;
  font-size: 13px;
  color: #777;
}

/* Auth modal */
.icv-auth {
  --icv-green: #5e8e1e;
  --icv-green-dark: #4c7518;
  --icv-dark: #232325;
  --icv-ink: #333333;
  --icv-ink2: #555555;
  --icv-muted: #787c72;
  --icv-line: #e0e0e0;
  --icv-line2: #d9d9d9;
  --icv-bg: #f7f7f7;
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: Arial, "Helvetica Neue", Helvetica, "Microsoft YaHei", sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: var(--icv-ink);
}
.icv-auth.is-open {
  display: flex;
}
.icv-auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 20, 18, .55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.icv-auth-panel {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--icv-line2);
  border-radius: 3px;
  padding: 26px 28px 24px;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .55);
  animation: icvAuthIn .2s ease-out;
}
@keyframes icvAuthIn {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: none; }
}
.icv-auth-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.icv-auth-head h2 {
  margin: 7px 0 0;
  font-size: 21px;
  line-height: 1.3;
  font-weight: bold;
  letter-spacing: -.01em;
  color: var(--icv-dark);
}
.icv-auth-head p {
  margin: 6px 0 0;
  font-size: 12px;
  color: #777;
}
.icv-auth-close {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--icv-line2);
  border-radius: 2px;
  background: #fff;
  color: var(--icv-ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.icv-auth-close:hover {
  background: #f3f3f3;
  border-color: #c5c5c5;
  color: var(--icv-dark);
}
.icv-auth-tabs {
  display: flex;
  gap: 20px;
  margin: 18px 0 14px;
  border-bottom: 1px solid #e0e0e0;
}
.icv-auth-tab {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  padding: 0 0 10px;
  margin-bottom: -1px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: bold;
  color: #777;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.icv-auth-tab:hover {
  color: var(--icv-ink);
}
.icv-auth-tab.is-active {
  color: var(--icv-green);
  border-bottom-color: var(--icv-green);
}
.icv-auth-form {
  display: none;
}
.icv-auth-form.is-active {
  display: block;
}
.icv-auth-form label {
  display: block;
  margin: 0 0 13px;
  font-size: 10.5px;
  font-weight: bold;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #666;
}
.icv-auth-form input:not([type="checkbox"]) {
  display: block;
  width: 100%;
  height: 44px;
  margin-top: 6px;
  border: 1px solid var(--icv-line2);
  border-radius: 2px;
  background: #fff;
  padding: 0 12px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.4;
  color: var(--icv-ink);
  text-transform: none;
  letter-spacing: normal;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.icv-auth-form input::placeholder {
  color: #a5a5a5;
}
.icv-auth-form input:focus {
  border-color: var(--icv-green);
  box-shadow: 0 0 0 3px rgba(94, 142, 30, .12);
}
.icv-auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}
.icv-auth-otp {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin: 0 0 13px;
}
.icv-auth-otp label {
  flex: 1;
  min-width: 0;
  margin: 0;
}
.icv-auth-otp-btn {
  flex: none;
  height: 44px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #c5c5c5;
  border-radius: 2px;
  background: #f3f3f3;
  color: var(--icv-ink);
  font-family: inherit;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: .02em;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.icv-auth-otp-btn:hover:not(:disabled) {
  background: #fff;
  border-color: var(--icv-green);
  color: var(--icv-green);
}
.icv-auth-otp-btn:disabled {
  opacity: .6;
  cursor: default;
}
.icv-auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -2px 0 14px;
}
.icv-auth-check {
  display: flex !important;
  align-items: center;
  gap: 7px;
  margin: 0 !important;
  font-size: 12px !important;
  font-weight: normal !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: #555 !important;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}
.icv-auth-check input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--icv-green);
  cursor: pointer;
}
.icv-auth-row .icv-link {
  font-size: 12px;
  font-weight: normal;
  white-space: nowrap;
}
.icv-auth-form .icv-btn {
  width: 100%;
  height: 44px;
  margin-top: 4px;
  border: 1px solid var(--icv-green);
  border-radius: 2px;
  background: var(--icv-green);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}
.icv-auth-form .icv-btn:hover:not([disabled]) {
  background: var(--icv-dark);
  border-color: var(--icv-dark);
  color: #fff;
  transform: translateY(-1px);
}
.icv-auth-form .icv-btn[disabled] {
  transform: none;
}
.icv-auth-switch {
  margin: 14px 0 0;
  font-size: 12px;
  color: #777;
  text-align: center;
}
.icv-auth-switch .icv-link {
  color: var(--icv-green);
  font-weight: bold;
  text-decoration: none;
}
.icv-auth-switch .icv-link:hover {
  text-decoration: underline;
}
.icv-auth-note {
  margin: 0 0 13px;
  font-size: 12px;
  line-height: 1.65;
  color: #777;
}
.icv-auth-note-bottom {
  margin: 12px 0 0;
  font-size: 10.5px;
  line-height: 1.7;
  color: #999;
  text-align: center;
}
.icv-auth-msg {
  min-height: 18px;
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.6;
}
.icv-auth-msg:not(:empty) {
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 2px;
}
.icv-auth-msg.is-error {
  background: #fdecea;
  border-color: #f5c2c0;
  color: #a4281f;
}
.icv-auth-msg.is-success {
  background: #eef4e4;
  border-color: #cfe0b4;
  color: #3d6114;
}
.icv-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Reset page */
.icv-reset-wrap {
  padding-top: 32px;
}
.icv-reset-card {
  max-width: 520px;
  margin: 0 auto;
  padding: 28px;
}
.icv-reset-card h1 {
  font-size: 24px;
  margin: 6px 0 14px;
}

/* Responsive */
@media (max-width: 1100px) {
  .icv-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .icv-overview-grid .icv-card:last-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 900px) {
  .icv-portal-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .icv-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .icv-portal-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
  .icv-portal-head h1 {
    font-size: 23px;
  }
  .icv-stats,
  .icv-overview-grid,
  .icv-form-grid,
  .icv-quote-grid,
  .icv-auth-grid {
    grid-template-columns: 1fr;
  }
  .icv-overview-grid .icv-card:last-child {
    grid-column: auto;
  }
  .icv-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  .icv-tab {
    white-space: nowrap;
    padding: 11px 12px;
  }
  .icv-record summary {
    flex-wrap: wrap;
  }
  .icv-record-date {
    margin-left: 0;
  }
  .icv-auth {
    padding: 14px;
  }
  .icv-auth-panel {
    padding: 22px 18px 20px;
    max-height: calc(100vh - 28px);
  }
  .icv-auth-head h2 {
    font-size: 19px;
  }
  .icv-auth-otp-btn {
    padding: 0 10px;
    font-size: 11.5px;
  }
  .icv-auth-gate {
    padding: 32px 20px;
  }
}

/* Portal pages: let the portal own the content width */
.icv-portal-page #brx-content {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

/* Hide the WordPress page title above the portal content */
.icv-portal-page #brx-content > h1:first-child {
  display: none;
}

/* Force the portal page content to full width */
.icv-portal-page #brx-content {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

