/* ========================================
   BIVA V2 — CLIENT OFFERS
======================================== */


/* ========================================
   HERO
======================================== */

.client-offer-directory-hero {
  position: relative;

  width: 100%;
  min-height: 180px;

  padding: 30px 34px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 28px;

  border:
    1px solid
    rgba(255, 255, 255, 0.08);

  border-radius: 22px;

  color: #ffffff;

  background:
    radial-gradient(
      circle at 94% 0%,
      rgba(53, 112, 243, 0.35),
      transparent 36%
    ),
    radial-gradient(
      circle at 4% 100%,
      rgba(255, 200, 46, 0.07),
      transparent 30%
    ),
    linear-gradient(
      145deg,
      var(--biva-black),
      var(--biva-black-soft) 58%,
      #173675
    );

  box-shadow:
    0 22px 58px
    rgba(7, 11, 20, 0.16);

  overflow: hidden;
}

.client-offer-directory-hero::before {
  content: "";

  position: absolute;
  inset: 0 0 auto 0;

  height: 4px;

  background:
    linear-gradient(
      90deg,
      var(--biva-blue-500),
      var(--biva-yellow-400),
      transparent 84%
    );
}

.client-offer-directory-hero::after {
  content: "";

  position: absolute;

  width: 230px;
  height: 230px;

  right: -95px;
  bottom: -175px;

  border:
    1px solid
    rgba(255, 255, 255, 0.05);

  border-radius: 50%;

  box-shadow:
    0 0 0 42px
    rgba(255, 255, 255, 0.018),

    0 0 0 84px
    rgba(255, 255, 255, 0.009);

  pointer-events: none;
}

.client-offer-directory-hero > * {
  position: relative;
  z-index: 1;
}

.client-offer-directory-hero > div {
  min-width: 0;
}

.client-offer-directory-kicker {
  display: block;

  margin-bottom: 9px;

  color:
    var(--biva-yellow-400);

  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.client-offer-directory-hero h1 {
  margin: 0;

  color: #ffffff;

  font-size:
    clamp(2.25rem, 4vw, 3.8rem);

  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.client-offer-directory-hero p {
  max-width: 740px;

  margin: 14px 0 0;

  color:
    rgba(255, 255, 255, 0.67);

  font-size: 0.82rem;
  line-height: 1.6;
}

.client-offer-directory-hero p strong {
  color: #ffffff;
}


/* ========================================
   REFRESH BUTTON
======================================== */

.client-offer-directory-refresh-btn {
  width: fit-content;
  min-height: 44px;

  padding: 0 16px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  border:
    1px solid
    rgba(255, 255, 255, 0.16);

  border-radius: 13px;

  color: #ffffff;

  background:
    rgba(255, 255, 255, 0.08);

  font: inherit;

  font-size: 0.69rem;
  font-weight: 830;

  white-space: nowrap;

  cursor: pointer;

  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    opacity 160ms ease;
}

.client-offer-directory-refresh-btn:hover {
  border-color:
    rgba(255, 255, 255, 0.3);

  background:
    rgba(255, 255, 255, 0.14);
}

.client-offer-directory-refresh-btn:disabled {
  opacity: 0.56;

  cursor: wait;
}

.client-offer-directory-refresh-btn svg {
  width: 17px;
  height: 17px;

  fill: none;

  stroke: currentColor;

  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ========================================
   SUMMARY GRID
======================================== */

.client-offer-directory-summary {
  margin-top: 22px;

  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 14px;
}

.client-offer-directory-summary-card {
  min-width: 0;
  min-height: 112px;

  padding: 17px;

  display: flex;
  align-items: center;

  gap: 13px;

  border:
    1px solid
    var(--biva-line);

  border-radius: 18px;

  background:
    linear-gradient(
      180deg,
      #ffffff,
      #f8faff
    );

  box-shadow:
    0 8px 24px
    rgba(15, 31, 58, 0.055);

  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.client-offer-directory-summary-card:hover {
  border-color:
    rgba(53, 112, 243, 0.2);

  box-shadow:
    0 12px 30px
    rgba(15, 31, 58, 0.085);

  transform:
    translateY(-2px);
}

.client-offer-directory-summary-card > span {
  width: 45px;
  height: 45px;

  flex: 0 0 45px;

  display: grid;
  place-items: center;

  border-radius: 15px;

  color:
    var(--biva-blue-700);

  background:
    var(--biva-blue-50);
}

.client-offer-directory-summary-card.is-pending > span {
  color: #805800;

  background:
    var(--biva-yellow-50);
}

.client-offer-directory-summary-card.is-accepted > span {
  color:
    var(--biva-success);

  background:
    var(--biva-success-soft);
}

.client-offer-directory-summary-card.is-closed > span {
  color:
    var(--biva-danger);

  background:
    var(--biva-danger-soft);
}

.client-offer-directory-summary-card svg {
  width: 21px;
  height: 21px;

  fill: none;

  stroke: currentColor;

  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.client-offer-directory-summary-card > div {
  min-width: 0;

  display: grid;

  gap: 6px;
}

.client-offer-directory-summary-card small {
  color:
    var(--biva-muted);

  font-size: 0.64rem;
  font-weight: 800;
}

.client-offer-directory-summary-card strong {
  color:
    var(--biva-ink);

  font-size:
    clamp(1.5rem, 2.5vw, 2.2rem);

  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
}


/* ========================================
   DIRECTORY PANEL
======================================== */

.client-offer-directory-panel {
  margin-top: 22px;

  border:
    1px solid
    var(--biva-line);

  border-radius: 20px;

  background: #ffffff;

  box-shadow:
    0 10px 30px
    rgba(15, 31, 58, 0.07);

  overflow: hidden;
}

.client-offer-directory-panel__header {
  padding: 24px 26px;

  display: grid;

  grid-template-columns:
    minmax(0, 0.85fr)
    minmax(480px, 1.15fr);

  align-items: end;

  gap: 28px;

  border-bottom:
    1px solid
    var(--biva-line);

  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(53, 112, 243, 0.06),
      transparent 38%
    ),
    var(--biva-surface-soft);
}

.client-offer-directory-panel__header
> div:first-child
> span {
  display: block;

  margin-bottom: 6px;

  color:
    var(--biva-blue-600);

  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.client-offer-directory-panel__header h2 {
  margin: 0;

  color:
    var(--biva-ink);

  font-size:
    clamp(1.35rem, 2.3vw, 2rem);

  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.client-offer-directory-panel__header p {
  margin: 8px 0 0;

  color:
    var(--biva-muted);

  font-size: 0.71rem;
  line-height: 1.55;
}


/* ========================================
   TOOLBAR
======================================== */

.client-offer-directory-toolbar {
  min-width: 0;

  display: grid;

  grid-template-columns:
    minmax(220px, 1.35fr)
    minmax(180px, 0.85fr)
    auto;

  align-items: center;

  gap: 10px;
}

.client-offer-directory-search,
.client-offer-directory-filter {
  position: relative;

  min-width: 0;

  display: flex;
  align-items: center;
}

.client-offer-directory-search > span,
.client-offer-directory-filter > span {
  position: absolute;

  left: 13px;

  z-index: 2;

  width: 18px;
  height: 18px;

  display: grid;
  place-items: center;

  color:
    var(--biva-muted);

  pointer-events: none;
}

.client-offer-directory-search svg,
.client-offer-directory-filter svg,
.client-offer-directory-reset-btn svg {
  width: 17px;
  height: 17px;

  fill: none;

  stroke: currentColor;

  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.client-offer-directory-search input,
.client-offer-directory-filter select {
  width: 100%;
  min-height: 44px;

  padding:
    0 14px 0 42px;

  border:
    1px solid
    var(--biva-line);

  border-radius: 13px;

  color:
    var(--biva-text);

  background: #ffffff;

  font: inherit;

  font-size: 0.71rem;

  outline: none;

  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.client-offer-directory-filter select {
  padding-right: 34px;

  font-weight: 700;

  cursor: pointer;
}

.client-offer-directory-search input:focus,
.client-offer-directory-filter select:focus {
  border-color:
    var(--biva-blue-500);

  box-shadow:
    var(--biva-focus-ring);
}

.client-offer-directory-search input::placeholder {
  color:
    var(--biva-subtle);
}

.client-offer-directory-reset-btn {
  min-height: 44px;

  padding: 0 14px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 7px;

  border:
    1px solid
    var(--biva-line);

  border-radius: 13px;

  color:
    var(--biva-text);

  background: #ffffff;

  font: inherit;

  font-size: 0.66rem;
  font-weight: 820;

  white-space: nowrap;

  cursor: pointer;
}

.client-offer-directory-reset-btn:hover {
  border-color:
    rgba(53, 112, 243, 0.22);

  color:
    var(--biva-blue-700);

  background:
    var(--biva-blue-50);
}


/* ========================================
   RESULT BAR
======================================== */

.client-offer-directory-result-bar {
  padding: 14px 24px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 18px;

  border-bottom:
    1px solid
    var(--biva-line);

  background: #ffffff;
}

.client-offer-directory-result-bar > span {
  color:
    var(--biva-muted);

  font-size: 0.67rem;
}

.client-offer-directory-result-bar > strong {
  min-width: 62px;

  padding: 5px 10px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border:
    1px solid
    rgba(53, 112, 243, 0.14);

  border-radius: 999px;

  color:
    var(--biva-blue-700);

  background:
    var(--biva-blue-50);

  font-size: 0.65rem;
  font-weight: 850;
}


/* ========================================
   TABLE
======================================== */

.client-offer-directory-results {
  min-width: 0;
}

.client-offer-directory-table-wrap {
  width: 100%;

  overflow-x: auto;
}

.client-offer-directory-table {
  width: 100%;
  min-width: 1120px;

  border-collapse: collapse;
}

.client-offer-directory-table th,
.client-offer-directory-table td {
  padding: 17px 15px;

  border-bottom:
    1px solid
    var(--biva-line);

  text-align: left;
  vertical-align: middle;
}

.client-offer-directory-table th {
  color:
    var(--biva-muted);

  background:
    var(--biva-surface-soft);

  font-size: 0.61rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.client-offer-directory-table td {
  color:
    var(--biva-text);

  font-size: 0.69rem;
}

.client-offer-directory-table
tbody tr:last-child td {
  border-bottom: 0;
}

.client-offer-directory-table
tbody tr {
  transition:
    background-color 160ms ease;
}

.client-offer-directory-table
tbody tr:hover {
  background:
    rgba(53, 112, 243, 0.035);
}

.client-offer-directory-table
td > strong {
  color:
    var(--biva-ink);

  font-size: 0.72rem;
  font-weight: 860;
}


/* ========================================
   OFFER IDENTITY
======================================== */

.client-offer-directory-identity {
  min-width: 210px;

  display: flex;
  align-items: center;

  gap: 11px;
}

.client-offer-directory-identity > span {
  width: 40px;
  height: 40px;

  flex: 0 0 40px;

  display: grid;
  place-items: center;

  border-radius: 13px;

  color:
    var(--biva-blue-700);

  background:
    var(--biva-blue-50);
}

.client-offer-directory-identity svg {
  width: 19px;
  height: 19px;

  fill: none;

  stroke: currentColor;

  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.client-offer-directory-identity > div {
  min-width: 0;
}

.client-offer-directory-identity strong {
  display: block;

  overflow-wrap: anywhere;

  color:
    var(--biva-ink);

  font-size: 0.77rem;
  font-weight: 880;
}

.client-offer-directory-identity small {
  display: block;

  margin-top: 4px;

  color:
    var(--biva-muted);

  font-size: 0.58rem;
}


/* ========================================
   POSITION
======================================== */

.client-offer-directory-position {
  min-width: 190px;

  display: grid;

  gap: 4px;
}

.client-offer-directory-position strong {
  overflow-wrap: anywhere;

  color:
    var(--biva-ink);

  font-size: 0.74rem;
  font-weight: 850;
}

.client-offer-directory-position span {
  color:
    var(--biva-muted);

  font-size: 0.59rem;
}


/* ========================================
   ASSOCIATE
======================================== */

.client-offer-directory-associate {
  min-width: 180px;

  display: flex;
  align-items: center;

  gap: 10px;
}

.client-offer-directory-associate > span {
  width: 40px;
  height: 40px;

  flex: 0 0 40px;

  display: grid;
  place-items: center;

  border:
    1px solid
    rgba(53, 112, 243, 0.14);

  border-radius: 13px;

  color:
    var(--biva-blue-700);

  background:
    var(--biva-blue-50);

  font-size: 0.67rem;
  font-weight: 900;
}

.client-offer-directory-associate > strong {
  overflow-wrap: anywhere;

  color:
    var(--biva-ink);

  font-size: 0.72rem;
  font-weight: 850;
}


/* ========================================
   STATUS
======================================== */

.client-offer-directory-status {
  width: fit-content;
  min-height: 28px;

  padding: 4px 10px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border:
    1px solid
    rgba(53, 112, 243, 0.14);

  border-radius: 999px;

  color:
    var(--biva-blue-700);

  background:
    var(--biva-blue-50);

  font-size: 0.59rem;
  font-weight: 850;

  white-space: nowrap;
}

.client-offer-directory-status[data-status="received"],
.client-offer-directory-status[data-status="pending"],
.client-offer-directory-status[data-status="pending_review"],
.client-offer-directory-status[data-status="reviewing"] {
  color: #805800;

  border-color:
    rgba(242, 183, 5, 0.18);

  background:
    var(--biva-yellow-50);
}

.client-offer-directory-status[data-status="accepted"],
.client-offer-directory-status[data-status="approved"],
.client-offer-directory-status[data-status="converted"] {
  color:
    var(--biva-success);

  border-color:
    rgba(7, 148, 85, 0.14);

  background:
    var(--biva-success-soft);
}

.client-offer-directory-status[data-status="revision_requested"] {
  color:
    #6549d6;

  border-color:
    rgba(101, 73, 214, 0.15);

  background:
    #f3efff;
}

.client-offer-directory-status[data-status="declined"],
.client-offer-directory-status[data-status="rejected"] {
  color:
    var(--biva-danger);

  border-color:
    rgba(217, 45, 32, 0.14);

  background:
    var(--biva-danger-soft);
}

.client-offer-directory-status[data-status="cancelled"] {
  color:
    var(--biva-muted);

  border-color:
    var(--biva-line);

  background:
    var(--biva-surface-muted);
}


/* ========================================
   VIEW BUTTON
======================================== */

.client-offer-directory-view-btn {
  width: fit-content;
  min-height: 38px;

  padding: 0 12px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 7px;

  border:
    1px solid
    rgba(53, 112, 243, 0.15);

  border-radius: 11px;

  color:
    var(--biva-blue-700);

  background:
    var(--biva-blue-50);

  font: inherit;

  font-size: 0.63rem;
  font-weight: 830;

  white-space: nowrap;

  cursor: pointer;
}

.client-offer-directory-view-btn:hover {
  background:
    var(--biva-blue-100);
}

.client-offer-directory-view-btn svg {
  width: 16px;
  height: 16px;

  fill: none;

  stroke: currentColor;

  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ========================================
   EMPTY STATE
======================================== */

.client-offer-directory-empty {
  min-height: 320px;

  padding: 44px 24px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
}

.client-offer-directory-empty > span {
  width: 62px;
  height: 62px;

  margin-bottom: 16px;

  display: grid;
  place-items: center;

  border-radius: 19px;

  color:
    var(--biva-blue-700);

  background:
    var(--biva-blue-50);
}

.client-offer-directory-empty svg {
  width: 29px;
  height: 29px;

  fill: none;

  stroke: currentColor;

  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.client-offer-directory-empty h3 {
  margin: 0;

  color:
    var(--biva-ink);

  font-size: 1rem;
  font-weight: 880;
}

.client-offer-directory-empty p {
  max-width: 470px;

  margin: 8px auto 0;

  color:
    var(--biva-muted);

  font-size: 0.71rem;
  line-height: 1.55;
}


/* ========================================
   MODAL BODY LOCK
======================================== */

body.client-offer-modal-open {
  overflow: hidden;
}


/* ========================================
   MODAL SHELL
======================================== */

.client-offer-modal {
  position: fixed;
  inset: 0;

  z-index: 10000;

  padding: 24px;

  display: grid;
  place-items: center;
}

.client-offer-modal-backdrop {
  position: absolute;
  inset: 0;

  background:
    rgba(8, 13, 24, 0.72);

  backdrop-filter:
    blur(8px);
}

.client-offer-dialog {
  position: relative;
  z-index: 1;

  width:
    min(940px, 100%);

  max-height:
    calc(100vh - 48px);

  overflow-y: auto;

  border:
    1px solid
    rgba(255, 255, 255, 0.14);

  border-radius: 22px;

  background: #ffffff;

  box-shadow:
    0 32px 90px
    rgba(0, 0, 0, 0.3);
}


/* ========================================
   MODAL HEADER
======================================== */

.client-offer-dialog-header {
  padding: 20px 24px;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 20px;

  border-bottom:
    1px solid
    var(--biva-line);
}

.client-offer-dialog-header > div {
  min-width: 0;
}

.client-offer-modal-kicker {
  display: block;

  margin-bottom: 5px;

  color:
    var(--biva-blue-600);

  font-size: 0.61rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.client-offer-dialog-header h2 {
  margin: 0;

  overflow-wrap: anywhere;

  color:
    var(--biva-ink);

  font-size:
    clamp(1.55rem, 2.8vw, 2.35rem);

  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
}

.client-offer-dialog-header p {
  margin: 7px 0 0;

  color:
    var(--biva-muted);

  font-size: 0.69rem;
  line-height: 1.5;
}

.client-offer-modal-close {
  width: 38px;
  height: 38px;

  flex: 0 0 38px;

  display: grid;
  place-items: center;

  border:
    1px solid
    var(--biva-line);

  border-radius: 12px;

  color:
    var(--biva-text);

  background: #ffffff;

  cursor: pointer;
}

.client-offer-modal-close:hover {
  color:
    var(--biva-danger);

  background:
    var(--biva-danger-soft);
}

.client-offer-modal-close svg {
  width: 18px;
  height: 18px;

  fill: none;

  stroke: currentColor;

  stroke-width: 2;
  stroke-linecap: round;
}


/* ========================================
   MODAL HEADING
======================================== */

.client-offer-dialog-heading {
  padding: 24px;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 18px;

  border-bottom:
    1px solid
    var(--biva-line);

  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(53, 112, 243, 0.06),
      transparent 38%
    ),
    var(--biva-surface-soft);
}

.client-offer-dialog-heading > div {
  min-width: 0;
}

.client-offer-dialog-heading > div > span {
  display: block;

  margin-bottom: 6px;

  color:
    var(--biva-muted);

  font-size: 0.6rem;
  font-weight: 820;
}

.client-offer-dialog-heading h3 {
  margin: 0;

  overflow-wrap: anywhere;

  color:
    var(--biva-ink);

  font-size:
    clamp(1.25rem, 2.4vw, 1.9rem);

  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.04em;
}


/* ========================================
   MODAL DETAILS
======================================== */

.client-offer-modal-details {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 10px;
}

.client-offer-modal-details article,
.client-offer-commercial-grid article {
  min-width: 0;
  min-height: 86px;

  padding: 14px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  gap: 6px;

  border:
    1px solid
    var(--biva-line);

  border-radius: 14px;

  background:
    var(--biva-surface-soft);
}

.client-offer-modal-details article > span,
.client-offer-commercial-grid article > span {
  color:
    var(--biva-muted);

  font-size: 0.58rem;
  font-weight: 800;
}

.client-offer-modal-details article > strong,
.client-offer-commercial-grid article > strong {
  overflow-wrap: anywhere;

  color:
    var(--biva-ink);

  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.45;
}


/* ========================================
   FIRST DETAILS GROUP
======================================== */

.client-offer-dialog-heading
+ .client-offer-modal-details {
  margin: 22px 24px 0;
}


/* ========================================
   ASSOCIATE PANEL
======================================== */

.client-offer-associate-panel,
.client-offer-commercial-panel,
.client-offer-notes-panel {
  margin:
    22px 24px 0;

  padding: 20px;

  border:
    1px solid
    var(--biva-line);

  border-radius: 17px;

  background: #ffffff;
}

.client-offer-associate-panel > header,
.client-offer-commercial-panel > header {
  margin-bottom: 15px;
}

.client-offer-associate-panel > header > span,
.client-offer-commercial-panel > header > span {
  display: block;

  margin-bottom: 5px;

  color:
    var(--biva-blue-600);

  font-size: 0.6rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.client-offer-associate-panel > header h3,
.client-offer-commercial-panel > header h3 {
  margin: 0;

  color:
    var(--biva-ink);

  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.client-offer-associate-profile {
  padding: 16px;

  display: flex;
  align-items: center;

  gap: 13px;

  border:
    1px solid
    var(--biva-line);

  border-radius: 15px;

  background:
    var(--biva-surface-soft);
}

.client-offer-associate-avatar {
  width: 52px;
  height: 52px;

  flex: 0 0 52px;

  display: grid;
  place-items: center;

  border:
    1px solid
    rgba(53, 112, 243, 0.14);

  border-radius: 16px;

  color:
    var(--biva-blue-700);

  background:
    var(--biva-blue-50);

  font-size: 0.8rem;
  font-weight: 900;
}

.client-offer-associate-profile > div:last-child {
  min-width: 0;
}

.client-offer-associate-profile strong {
  display: block;

  overflow-wrap: anywhere;

  color:
    var(--biva-ink);

  font-size: 0.86rem;
  font-weight: 880;
}

.client-offer-associate-profile span {
  display: block;

  margin-top: 4px;

  color:
    var(--biva-blue-600);

  font-size: 0.62rem;
  font-weight: 800;
}

.client-offer-associate-profile p {
  margin: 5px 0 0;

  color:
    var(--biva-muted);

  font-size: 0.61rem;
  line-height: 1.45;
}

.client-offer-associate-panel
.client-offer-modal-details {
  margin-top: 14px;
}


/* ========================================
   SKILLS
======================================== */

.client-offer-skills {
  margin-top: 16px;
}

.client-offer-skills > span {
  display: block;

  margin-bottom: 9px;

  color:
    var(--biva-muted);

  font-size: 0.61rem;
  font-weight: 820;
}

.client-offer-skills > div {
  display: flex;
  flex-wrap: wrap;

  gap: 7px;
}

.client-offer-skills small {
  min-height: 28px;

  padding: 5px 10px;

  display: inline-flex;
  align-items: center;

  border:
    1px solid
    rgba(53, 112, 243, 0.14);

  border-radius: 999px;

  color:
    var(--biva-blue-700);

  background:
    var(--biva-blue-50);

  font-size: 0.57rem;
  font-weight: 800;
}


/* ========================================
   COMMERCIAL TERMS
======================================== */

.client-offer-commercial-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 10px;
}

.client-offer-commercial-grid
article:first-child {
  border-color:
    rgba(53, 112, 243, 0.17);

  background:
    var(--biva-blue-50);
}

.client-offer-commercial-grid
article:first-child strong {
  color:
    var(--biva-blue-700);

  font-size: 0.83rem;
}


/* ========================================
   NOTES
======================================== */

.client-offer-notes-panel > span {
  display: block;

  margin-bottom: 7px;

  color:
    var(--biva-blue-600);

  font-size: 0.6rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.client-offer-notes-panel p {
  margin: 0;

  color:
    var(--biva-text);

  font-size: 0.71rem;
  line-height: 1.7;

  white-space: pre-line;
}


/* ========================================
   MODAL FOOTER
======================================== */

.client-offer-dialog-footer {
  margin-top: 22px;
  padding: 18px 24px 22px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 18px;

  border-top:
    1px solid
    var(--biva-line);
}

.client-offer-dialog-footer > span {
  color:
    var(--biva-muted);

  font-size: 0.62rem;
}

.client-offer-modal-done-btn {
  min-height: 41px;

  padding: 0 16px;

  border:
    1px solid
    var(--biva-blue-600);

  border-radius: 12px;

  color: #ffffff;

  background:
    var(--biva-blue-600);

  font: inherit;

  font-size: 0.66rem;
  font-weight: 840;

  cursor: pointer;
}

.client-offer-modal-done-btn:hover {
  background:
    var(--biva-blue-700);
}


/* ========================================
   ERROR ACTIONS
======================================== */

.client-offer-error-actions {
  margin-top: 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 10px;
}


/* ========================================
   MEDIUM DESKTOP
======================================== */

@media (max-width: 1150px) {

  .client-offer-directory-panel__header {
    grid-template-columns: 1fr;

    align-items: stretch;
  }

  .client-offer-directory-toolbar {
    grid-template-columns:
      minmax(220px, 1.3fr)
      minmax(180px, 0.8fr)
      auto;
  }

  .client-offer-commercial-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

}


/* ========================================
   TABLET
======================================== */

@media (max-width: 900px) {

  .client-offer-directory-summary {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .client-offer-directory-toolbar {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .client-offer-directory-search {
    grid-column:
      1 / -1;
  }

  .client-offer-directory-reset-btn {
    width: 100%;
  }

  .client-offer-modal-details {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

}


/* ========================================
   MOBILE TABLE
======================================== */

@media (max-width: 700px) {

  .client-offer-directory-table-wrap {
    padding: 14px;
  }

  .client-offer-directory-table {
    min-width: 0;
  }

  .client-offer-directory-table thead {
    display: none;
  }

  .client-offer-directory-table,
  .client-offer-directory-table tbody,
  .client-offer-directory-table tr,
  .client-offer-directory-table td {
    display: block;
    width: 100%;
  }

  .client-offer-directory-table tr {
    margin-bottom: 14px;

    padding: 4px 14px;

    border:
      1px solid
      var(--biva-line);

    border-radius: 16px;

    background: #ffffff;

    box-shadow:
      0 6px 18px
      rgba(15, 31, 58, 0.055);
  }

  .client-offer-directory-table
  tr:last-child {
    margin-bottom: 0;
  }

  .client-offer-directory-table td {
    padding: 12px 0;

    display: grid;

    grid-template-columns:
      minmax(115px, 0.38fr)
      minmax(0, 1fr);

    align-items: center;

    gap: 14px;

    border-bottom:
      1px solid
      var(--biva-line);
  }

  .client-offer-directory-table
  td:last-child {
    border-bottom: 0;
  }

  .client-offer-directory-table
  td::before {
    content:
      attr(data-label);

    color:
      var(--biva-muted);

    font-size: 0.58rem;
    font-weight: 850;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .client-offer-directory-identity,
  .client-offer-directory-position,
  .client-offer-directory-associate {
    min-width: 0;
  }

  .client-offer-directory-view-btn {
    width: 100%;
  }

}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 680px) {

  .client-offer-directory-hero {
    min-height: auto;

    padding: 24px 18px;

    align-items: stretch;
    flex-direction: column;

    gap: 18px;

    border-radius: 19px;
  }

  .client-offer-directory-hero h1 {
    font-size:
      clamp(2rem, 10vw, 3rem);
  }

  .client-offer-directory-hero p {
    font-size: 0.75rem;
  }

  .client-offer-directory-refresh-btn {
    width: 100%;
  }

  .client-offer-directory-summary {
    margin-top: 16px;

    gap: 10px;
  }

  .client-offer-directory-summary-card {
    min-height: 98px;

    padding: 15px;
  }

  .client-offer-directory-panel {
    margin-top: 16px;

    border-radius: 17px;
  }

  .client-offer-directory-panel__header {
    padding: 19px 16px;
  }

  .client-offer-directory-toolbar {
    grid-template-columns: 1fr;
  }

  .client-offer-directory-search {
    grid-column: auto;
  }

  .client-offer-directory-result-bar {
    padding: 12px 16px;
  }

  .client-offer-modal {
    padding: 10px;
  }

  .client-offer-dialog {
    max-height:
      calc(100vh - 20px);

    border-radius: 17px;
  }

  .client-offer-dialog-header,
  .client-offer-dialog-heading {
    padding: 18px 16px;
  }

  .client-offer-dialog-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .client-offer-dialog-heading
  + .client-offer-modal-details {
    margin:
      16px 16px 0;
  }

  .client-offer-modal-details,
  .client-offer-commercial-grid {
    grid-template-columns: 1fr;
  }

  .client-offer-associate-panel,
  .client-offer-commercial-panel,
  .client-offer-notes-panel {
    margin:
      16px 16px 0;

    padding: 16px;
  }

  .client-offer-associate-profile {
    align-items: flex-start;
  }

  .client-offer-dialog-footer {
    margin-top: 16px;
    padding: 17px 16px;

    align-items: stretch;
    flex-direction: column;
  }

  .client-offer-modal-done-btn {
    width: 100%;
  }

  .client-offer-error-actions {
    width: 100%;

    flex-direction: column;
  }

  .client-offer-error-actions
  .client-management-back-btn {
    width: 100%;
  }

}


/* ========================================
   SMALL PHONES
======================================== */

@media (max-width: 420px) {

  .client-offer-directory-summary {
    grid-template-columns: 1fr;
  }

  .client-offer-directory-summary-card {
    min-height: 88px;
  }

  .client-offer-directory-table td {
    grid-template-columns: 1fr;

    gap: 6px;
  }

  .client-offer-associate-profile {
    flex-direction: column;
  }

}


/* ========================================
   REDUCED MOTION
======================================== */

@media (prefers-reduced-motion: reduce) {

  .client-offer-directory-refresh-btn,
  .client-offer-directory-summary-card,
  .client-offer-directory-reset-btn,
  .client-offer-directory-view-btn,
  .client-offer-directory-table tbody tr,
  .client-offer-modal-done-btn {
    transition: none;
  }

}