/* -------------------------------------------------
   PermitMaster — Board, Cards, Button Tabs, Buttons
   ------------------------------------------------- */

/* Prevent column collapse when empty */
.board-3col .board-col { min-height: 120px; }

/* Card polish */
.permit-card {
  border-radius: .6rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.permit-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 .45rem 1rem rgba(0,0,0,.08);
}

/* Solid borders by column (no animation) */
#col-request .permit-card {
  border: 2px solid var(--bs-warning) !important;     /* yellow */
  box-shadow: 0 0 0 .12rem rgba(255,193,7,.14);
}
#col-inproc .permit-card {
  border: 2px solid var(--bs-primary) !important;     /* blue */
  box-shadow: 0 0 0 .12rem rgba(13,110,253,.14);
}
#col-closed .permit-card {
  border: 2px solid var(--bs-success) !important;     /* green */
  box-shadow: 0 0 0 .10rem rgba(25,135,84,.12);
}
.permit-card.border-success { border-width: 2px !important; }
.permit-card .badge + .small { display: block; }

/* ---------------------------
   High-contrast Button Selectors (tabs-like)
   --------------------------- */
.pm-tabbtns {
  display: flex;
  align-items: center;
  gap: .7rem;
}
.pm-tabbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.1;
  padding: .5rem .95rem;
  border-radius: .6rem;
  background: transparent;
  border: 2px solid currentColor;   /* border inherits from text color */
  color: #111;
  transition: transform .1s ease, box-shadow .1s ease, background-color .1s ease, color .1s ease, border-color .1s ease;
}
.pm-tabbtn:hover { transform: translateY(-1px); box-shadow: 0 .35rem .8rem rgba(0,0,0,.08); }
.pm-tabbtn:active { transform: translateY(0); box-shadow: none; }
.pm-tabbtn:focus-visible { outline: 0; box-shadow: 0 0 0 .2rem rgba(0,0,0,.15); }

.pm-tabbtn--elec { color: #ff7a00; border-color: #ff7a00; }
.pm-tabbtn--fa   { color: #dc3545; border-color: #dc3545; }

.pm-tabbtn.is-active.pm-tabbtn--elec { background: rgba(255,122,0,.12); }
.pm-tabbtn.is-active.pm-tabbtn--fa   { background: rgba(220,53,69,.12); }

.pm-tabbtn--elec:hover { background: rgba(255,122,0,.10); }
.pm-tabbtn--fa:hover   { background: rgba(220,53,69,.10); }

@media (max-width: 420px) {
  .pm-tabbtn { font-size: .95rem; padding: .45rem .8rem; }
}

/* ---------------------------
   "New … Permit" button (compact)
   --------------------------- */
.permitmaster-new-btn {
  display: inline-block !important;
  width: auto !important;
  white-space: nowrap;
  padding: 0.35rem 0.6rem;
  line-height: 1.2;
  font-size: .9rem;
  border-radius: .45rem;
}

/* ---------------------------
   Upload area + actions
   --------------------------- */
.permit-upload .form-control[type="file"] { width: 100%; }
.permit-upload .form-select { min-width: 180px; }
.permit-upload .pm-kind-select { max-width: 260px; }
.permit-upload button { flex: 0 0 auto; }

.pm-action-btn {
  display: inline-block !important;
  width: auto !important;
  white-space: nowrap;
  padding: 0.6rem 0.95rem;
  line-height: 1.25;
  font-size: 1rem;
  border-radius: .6rem;
}

/* Don’t let globals force full-width buttons */
.permit-card .btn { width: auto !important; }

/* Upload emphasis (subtle) */
.pm-upload-btn {
  background: linear-gradient(180deg, rgba(255,255,255,.15), rgba(255,255,255,0)) !important;
  border: 1px solid var(--bs-secondary);
  color: var(--bs-body-color);
  box-shadow: 0 .2rem .5rem rgba(0,0,0,.06);
}

/* Inspector Arrives: readable yellow button with edge + black text */
.btn-inspector {
  background-color: var(--bs-warning) !important; /* yellow fill */
  color: #111 !important;                         /* black text */
  border: 2px solid #d39e00;                      /* yellow/brown edge */
  border-radius: .6rem;                           /* match your action buttons */
  padding: 0.6rem 0.95rem;                        /* same size as pm-action-btn */
  line-height: 1.25;
  font-weight: 700;
}

.btn-inspector:hover {
  filter: saturate(1.05);
  box-shadow: 0 .35rem .8rem rgba(0,0,0,.10);
}

.btn-inspector:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 .2rem rgba(211,158,0,.35);
}

.btn-inspector:active {
  filter: none;
  box-shadow: 0 .15rem .4rem rgba(0,0,0,.12) inset;
}

.pm-action-btn {
  display: inline-block !important;
  width: auto !important;
  white-space: nowrap;
  padding: 0.6rem 0.95rem;
  line-height: 1.25;
  font-size: 1rem;
  border-radius: .6rem;
}