/* =======================================================
   EVERMORE — GLOBAL BUTTON SYSTEM
   Polished, consistent, production-grade
======================================================= */

/* BASE BUTTON (applies to all types) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;

  padding: 10px 22px;

  cursor: pointer;
  user-select: none;

  border: none;
  border-radius: 50px;

  text-decoration: none;

  transition:
      background 0.22s ease,
      box-shadow 0.25s ease,
      transform 0.18s ease,
      color 0.2s ease;

  /* ⭐ Add natural spacing around the button */
  margin: 0px 0;        /* ← space above + below */
}


/* =======================================================
   PRIMARY BUTTON — Blue, glowing, 3D lift
======================================================= */
.btn-primary {
  background: var(--accent);
  color: #fff;

  box-shadow:
      0 4px 12px rgba(47,122,229,0.35),
      0 1px 3px rgba(0,0,0,0.15);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);

  box-shadow:
      0 8px 20px rgba(47,122,229,0.45),
      0 2px 6px rgba(0,0,0,0.18);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow:
      0 3px 6px rgba(47,122,229,0.35),
      0 1px 3px rgba(0,0,0,0.14);
}

/* =======================================================
   SECONDARY BUTTON — White w/ blue hover
======================================================= */
.btn-secondary {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--ink-900);

  box-shadow:
      0 1px 3px rgba(0,0,0,0.08);
}

.btn-secondary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;

  transform: translateY(-2px);

  box-shadow:
      0 6px 16px rgba(47,122,229,0.35),
      0 2px 6px rgba(0,0,0,0.12);
}

.btn-secondary:active {
  transform: translateY(0);
  box-shadow:
      0 3px 8px rgba(47,122,229,0.28),
      0 1px 3px rgba(0,0,0,0.12);
}

/* =======================================================
   NEUTRAL BUTTON — Light gray
======================================================= */
.btn-neutral {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--ink-700);
}

.btn-neutral:hover {
  background: var(--hover);
}

/* =======================================================
   LINK BUTTON — inline text button
======================================================= */
.btn-link {
  background: none;
  border: none;
  padding: 0;

  font-size: 1rem;
  font-weight: 600;

  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;

  cursor: pointer;
}

.btn-link:hover {
  color: var(--accent-hover);
  opacity: 0.85;
}

.btn-link:active {
  opacity: 0.65;
}

/* =======================================================
   TAB BUTTONS — Job Type squares
======================================================= */
.btn-tab {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 3rem;
  padding: 0;

  background: #fff;
  border: 1px solid #c9daff;

  font-weight: 600;
  color: var(--ink-700);

  border-radius: 8px;

  cursor: pointer;

  transition:
      background 0.22s ease,
      border-color 0.22s ease,
      box-shadow 0.25s ease,
      transform 0.18s ease;
}

.btn-tab:hover {
  background: #e8efff;
  border-color: #bcd1ff;

  transform: translateY(-2px);

  box-shadow:
      0 8px 20px rgba(47,122,229,0.18),
      0 3px 6px rgba(0,0,0,0.08);
}

.btn-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;

  transform: none;

  box-shadow:
      0 10px 26px rgba(47,122,229,0.35),
      0 4px 8px rgba(0,0,0,0.12);
}

.btn-tab.active:hover {
  background: var(--accent-hover);
}

/* =======================================================
   SMALL BUTTON —
======================================================= */
.btn-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-weight: 600;
  font-size: 0.675rem;


  background: var(--accent);
  color: #fff;

  
 

}

.btn-small:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);

  box-shadow:
      0 6px 16px rgba(47,122,229,0.45),
      0 2px 4px rgba(0,0,0,0.15);
}

.btn-small:active {
  transform: translateY(0);

  box-shadow:
      0 3px 6px rgba(47,122,229,0.35),
      0 1px 3px rgba(0,0,0,0.14);
}
/* Dark solid Evermore button */
.btn-solid {
    background: #173B99;
    color: white;
    border: none;
    border-radius:6px;
    padding: 10px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 3px 8px rgba(23, 59, 153, 0.25);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.btn-solid:hover {
    background: #0f2f7a;
    box-shadow: 0 4px 12px rgba(23, 59, 153, 0.35);
}
/* =======================================================
   BUTTON ICON WRAPPER — Ensures perfect icon alignment
======================================================= */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
}

.btn-icon svg {
    width: 1rem;
    height: 1rem;
    stroke-width: 2;
    display: block;
}


/* =======================================================
   EVERMORE SOLID BUTTON — Deep Navy, for key actions
======================================================= */
.btn-solid {
    background: #173B99;               /* Evermore Navy */
    color: #fff;
    border: none;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;

    border-radius: 6px;

    cursor: pointer;
    text-decoration: none;

    box-shadow:
        0 4px 12px rgba(23, 59, 153, 0.28),
        0 1px 2px rgba(0,0,0,0.1);

    transition:
        background 0.22s ease,
        transform 0.18s ease,
        box-shadow 0.25s ease;
}

.btn-solid:hover {
    background: #0F2F7A;
    transform: translateY(-2px);
    box-shadow:
        0 8px 20px rgba(23, 59, 153, 0.37),
        0 3px 6px rgba(0,0,0,0.15);
}

.btn-solid:active {
    transform: translateY(0);
    box-shadow:
        0 3px 6px rgba(23, 59, 153, 0.25),
        0 1px 3px rgba(0,0,0,0.1);
}


/* =======================================================
   BACK BUTTON — Minimal, clean, subtle
======================================================= */
.btn-back {
    background: transparent;
    color: #173B99;
    font-weight: 600;

    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;

    transition: opacity 0.2s ease, color 0.2s ease;
    text-decoration: none;
}

.btn-back:hover {
    opacity: 0.75;
}

.btn-back .btn-icon svg {
    stroke: #173B99;
}


/* =======================================================
   MATCH TOPBAR BACK BUTTON AESTHETICS
======================================================= */
.topbar-back-btn.btn-back {
    background: none;
    border: none;
    padding: 0;
    font-size: 1rem;
}

/* ===========================================================
   PORTAL BUTTON — PRIMARY ACTION
=========================================================== */

.btn-portal {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0px .1rem;
  border-radius: 0px;

  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;

  color: #ffffff;
  background: var(--accent);
 

  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

.btn-portal:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.btn-portal:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ===========================================================
   PORTAL BUTTON — AUTO-FILL TABLE CELL
=========================================================== */

.ui-table td .btn-portal {
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  box-sizing: border-box;
}

/* When buttons are stacked (Open / Download) */
.ui-table td {
  padding: 0; /* let button control spacing */
}

.ui-table td .btn-portal + .btn-portal {
  border-top: 1px solid rgba(255,255,255,0.15);
}
/* ===========================================================
   UI TABLE — FORCE ROW & CELL STRETCH
=========================================================== */

.ui-table table {
  border-collapse: separate;
  border-spacing: 0;
}

.ui-table tr {
  height: 100%;
}

.ui-table td,
.ui-table th {
  vertical-align: stretch;
  padding: 0;
}

/* ===========================================================
   PORTAL BUTTON — FULL CELL FILL (UP + DOWN + SIDE TO SIDE)
=========================================================== */

.ui-table td .btn-portal {
  width: 100%;
  height: 100%;
  min-height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  box-sizing: border-box;
}
