/* PumpBook theme layer on top of the locally hosted Tabler Core 1.4.0 assets. */
:root {
  --tblr-primary: #0b8b6b;
  --tblr-primary-rgb: 11, 139, 107;
  --tblr-body-bg: #f3f6f8;
  --tblr-body-color: #1d2939;
  --tblr-border-color: #dce4ea;
  --accent: #0b8b6b;
  --accent-dark: #076c54;
  --accent-soft: #e8f7f2;
  --ink: #1d2939;
  --muted: #667085;
  --border: #dce4ea;
  --surface: #ffffff;
  --canvas: #f3f6f8;
  --danger: #c4322b;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-md: 0 12px 30px rgba(16, 24, 40, .08);
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 0, rgba(11, 139, 107, .055), transparent 26rem),
    var(--canvas);
  color: var(--ink);
}

.pumpbook-navbar {
  min-height: 68px;
  padding: 0;
  background: rgba(255, 255, 255, .96);
  border: 0;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(16, 24, 40, .045);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 1040;
}

.pumpbook-navbar-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  min-height: 68px;
  padding: 8px 20px;
}

.pumpbook-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  margin: 0;
  padding: 0;
  color: #123b35;
  text-decoration: none;
}

.pumpbook-brand:hover { color: #123b35; }

.pumpbook-brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(145deg, #0b9873, #07684f);
  box-shadow: 0 7px 16px rgba(11, 139, 107, .24);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}

.pumpbook-brand > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.pumpbook-brand strong {
  font-size: 19px;
  letter-spacing: -.035em;
}

.pumpbook-brand small {
  margin-top: 4px;
  color: #768396;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.pumpbook-logo-viewport {
  position: relative;
  display: block;
  width: 202px;
  height: 48px;
  overflow: hidden;
}

.pumpbook-logo-viewport img {
  position: absolute;
  width: 211px;
  max-width: none;
  height: auto;
  left: -10px;
  top: -29px;
}

.pumpbook-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}

.pumpbook-nav .nav-link {
  position: relative;
  padding: 9px 12px;
  border-radius: 8px;
  color: #526071;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.pumpbook-nav .nav-link:hover {
  background: #f0f5f4;
  color: var(--accent-dark);
}

.pumpbook-nav .nav-link.active {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.pumpbook-nav .nav-link.active::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 3px;
  left: 12px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
}

.pumpbook-station-switcher { margin: 0; }
.pumpbook-station-switcher label {
  display: block;
  margin: 0;
  color: #768396;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .09em;
  line-height: 1.2;
  text-transform: uppercase;
}

.pumpbook-station-switcher select {
  min-width: 176px;
  height: 34px;
  margin-top: 2px;
  padding-top: 5px;
  padding-bottom: 5px;
  border-color: #cfd9df;
  background-color: #f9fbfc;
  color: #243444;
  font-weight: 700;
}

.pumpbook-signout { margin: 0; }
.pumpbook-signout .btn {
  min-height: 36px;
  border: 1px solid #dce4ea;
  background: #fff;
  color: #526071;
}

.pumpbook-signout .btn:hover {
  border-color: #bdd6ce;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.pumpbook-main {
  width: 100%;
  max-width: 1210px;
  margin: 0 auto;
  padding: 34px 20px 64px;
}

.pumpbook-footer {
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: #092733;
  color: #a9c1c5;
}

.pumpbook-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 10px 20px;
}

.pumpbook-footer-logo {
  display: block;
  padding: 3px 9px;
  border-radius: 9px;
  background: #fff;
}

.pumpbook-footer-logo .pumpbook-logo-viewport { width: 169px; height: 40px; }
.pumpbook-footer-logo .pumpbook-logo-viewport img { width: 177px; left: -9px; top: -24px; }
.prosys-footer-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #b9cdd1;
  font-size: 12px;
  letter-spacing: .02em;
  text-decoration: none;
}

.prosys-footer-link:hover { color: #fff; text-decoration: none; }
.prosys-footer-link img {
  display: block;
  width: 154px;
  height: auto;
  padding: 3px 6px;
  border-radius: 6px;
  background: #fff;
}

.page-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.page-title h1 {
  margin: 2px 0 4px;
  color: #172433;
  font-size: clamp(27px, 3vw, 34px);
  font-weight: 750;
  letter-spacing: -.045em;
}

.page-title p:not(.eyebrow) { margin: 0; color: var(--muted); }
.title-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

main section,
.grid article,
.account-summary article,
.admin-metrics article {
  border-color: var(--border);
  border-radius: 13px;
  box-shadow: var(--shadow-sm);
}

main section:not(.landing-hero):not(.landing-proof):not(.landing-features):not(.landing-workflow) {
  transition: border-color .18s ease, box-shadow .18s ease;
}

main section:not(.landing-hero):not(.landing-proof):not(.landing-features):not(.landing-workflow):hover {
  border-color: #cfdbe1;
}

button,
.button-link {
  min-height: 38px;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: -.005em;
}

button:not(.secondary):not(.accordion-toggle):not(.danger-link),
.button-link:not(.secondary) {
  background: var(--accent);
  color: #fff;
}

button:not(.secondary):not(.accordion-toggle):not(.danger-link):hover:not(:disabled),
.button-link:not(.secondary):hover {
  background: var(--accent-dark);
  color: #fff;
}

.secondary,
.button-link.secondary {
  border: 1px solid #d8e2e7;
  background: #f8fafb;
  color: #385064;
}

.secondary:hover:not(:disabled),
.button-link.secondary:hover {
  border-color: #bdd6ce;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  min-height: 40px;
  border: 1px solid #cbd8df;
  border-radius: 8px;
  background-color: #fff;
  color: #233343;
  box-shadow: inset 0 1px 1px rgba(16, 24, 40, .018);
}

input:not([type="checkbox"]):not([type="radio"]):hover,
select:hover,
textarea:hover { border-color: #aebfc8; }

input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
  border-color: rgba(11, 139, 107, .75);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(11, 139, 107, .13);
}

input:disabled,
select:disabled,
textarea:disabled {
  background-color: #f2f5f6;
  color: #667382;
  opacity: 1;
}

label { color: #405266; font-weight: 700; }
label small { color: #7b8795; font-weight: 500; }

.table-wrap {
  overflow: auto;
  border: 1px solid #e0e7eb;
  border-radius: 10px;
}

.table-wrap table { margin: 0; }
table { width: 100%; border-collapse: separate; border-spacing: 0; }
table thead th {
  padding: 11px 10px;
  border-bottom: 1px solid #dce5e9;
  background: #f7f9fa;
  color: #647182;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
  white-space: nowrap;
}

table tbody td { padding: 11px 10px; border-bottom-color: #e7ecef; vertical-align: middle; }
table tbody tr:last-child td { border-bottom: 0; }

.flash {
  border: 0;
  border-left: 4px solid currentColor;
  border-radius: 9px;
  padding: 13px 15px;
  box-shadow: var(--shadow-sm);
}

.eyebrow {
  color: var(--accent-dark);
  font-size: 10px;
  letter-spacing: .13em;
}

.accordion-section {
  border-color: #d4dfe5;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(16, 24, 40, .045);
}

.accordion-section > .section-title {
  min-height: 60px;
  background: linear-gradient(105deg, #163d58, #135b69);
}

.accordion-section > .section-title:hover { background: linear-gradient(105deg, #12364f, #0f5260); }
.accordion-body { background: #fff; }
.sticky-summary { top: 68px; border: 1px solid #d8e2e7; border-radius: 13px; }

dialog {
  border: 0;
  border-radius: 15px;
  box-shadow: 0 28px 80px rgba(16, 24, 40, .25);
}

dialog::backdrop { background: rgba(16, 32, 46, .58); backdrop-filter: blur(3px); }

.toast {
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(16, 24, 40, .18);
}

@media (max-width: 980px) {
  .pumpbook-navbar-inner { flex-wrap: wrap; gap: 8px 12px; padding: 8px 14px; }
  .pumpbook-nav { order: 4; width: 100%; margin: 0; padding-top: 7px; border-top: 1px solid #e6ebee; }
  .pumpbook-nav .nav-link { flex: 1; text-align: center; }
  .pumpbook-station-switcher { margin-left: auto; }
  .pumpbook-main { padding: 24px 14px 48px; }
  .sticky-summary { top: 112px; }
}

@media (max-width: 620px) {
  .pumpbook-navbar { position: relative; }
  .pumpbook-navbar-inner { padding: 8px 10px; }
  .pumpbook-brand small { display: none; }
  .pumpbook-brand-mark { width: 34px; height: 34px; border-radius: 9px; font-size: 18px; }
  .pumpbook-brand strong { font-size: 17px; }
  .pumpbook-logo-viewport { width: 152px; height: 38px; }
  .pumpbook-logo-viewport img { width: 160px; left: -8px; top: -22px; }
  .pumpbook-station-switcher { order: 3; width: calc(100% - 82px); margin-left: 0; }
  .pumpbook-station-switcher select { width: 100%; min-width: 0; }
  .pumpbook-signout { margin-left: auto; }
  .pumpbook-nav { overflow-x: auto; justify-content: flex-start; }
  .pumpbook-nav .nav-link { flex: 0 0 auto; min-width: 100px; }
  .pumpbook-main { padding: 20px 10px 42px; }
  .pumpbook-footer-inner { min-height: 68px; padding: 9px 12px; }
  .pumpbook-footer-logo .pumpbook-logo-viewport { width: 135px; height: 32px; }
  .pumpbook-footer-logo .pumpbook-logo-viewport img { width: 142px; left: -7px; top: -19px; }
  .prosys-footer-link { gap: 7px; font-size: 10px; }
  .prosys-footer-link img { width: 120px; padding: 2px 4px; }
  .page-title { flex-direction: column; gap: 14px; }
  .title-actions { display: grid; grid-template-columns: 1.35fr .8fr .8fr; width: 100%; justify-content: stretch; }
  .title-actions > * { min-width: 0; text-align: center; white-space: nowrap; }
  .title-actions form button { width: 100%; }
  .sticky-summary { top: 0; }
}
