html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body.auth-page {
  background: #f6f7fb;
  color: #1f2933;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.auth-page {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(135deg, rgba(11, 95, 115, 0.12), rgba(145, 90, 43, 0.10)),
    #f7f9fb;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-panel {
  width: min(100%, 420px);
  background: #ffffff;
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(24, 39, 75, 0.12);
  padding: 32px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  background: #0b5f73;
  color: #ffffff;
  font-weight: 700;
}

.eyebrow {
  margin-bottom: 4px;
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.auth-brand h1,
.dashboard-header h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0 24px;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.status-card {
  background: #ffffff;
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  padding: 20px;
}

.status-label {
  display: block;
  color: #667085;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.status-card strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.status-card p {
  color: #667085;
  margin: 0;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0 20px;
}

.page-title {
  margin: 16px 0 20px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.admin-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  padding: 18px;
  color: #1f2933;
  text-decoration: none;
}

.admin-card strong {
  font-size: 2rem;
}

.admin-form {
  max-width: 760px;
  display: grid;
  gap: 14px;
  background: #ffffff;
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  padding: 20px;
}

.admin-form label {
  font-weight: 600;
}

.admin-form .form-check {
  font-weight: 400;
}

.admin-checkbox-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
}

.admin-brand-mark,
.admin-user-avatar {
  align-items: center;
  background: #1f67ba;
  color: #fff;
  display: inline-flex;
  font-weight: 600;
  justify-content: center;
}

.admin-brand-mark {
  border-radius: 6px;
  height: 33px;
  width: 33px;
}

.admin-user-avatar {
  border-radius: 50%;
  height: 34px;
  width: 34px;
}

.dashboard-metric {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 18px 12px;
  text-align: center;
}

.dashboard-metric-value,
.dashboard-metric-label {
  display: block;
}

.dashboard-metric-value {
  color: #0d6efd;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.dashboard-metric-label {
  color: #6c757d;
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 8px;
}

@media (max-width: 767px) {
  .auth-panel {
    padding: 24px;
  }

  .status-grid {
    grid-template-columns: 1fr;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-checkbox-list {
    grid-template-columns: 1fr;
  }
}

.iam-hero{background:linear-gradient(135deg,#102a43,#0b7285 55%,#f08c00);border-radius:24px;color:#fff;padding:30px;display:flex;align-items:center;justify-content:space-between;gap:20px;box-shadow:0 24px 60px rgba(16,42,67,.18)}
.iam-hero h1{font-weight:800;margin:.2rem 0;font-size:2.1rem}.iam-hero p{margin:0;color:rgba(255,255,255,.82);max-width:760px}.iam-eyebrow{font-size:.75rem;text-transform:uppercase;letter-spacing:.12em;font-weight:800;color:#ffe8cc}.iam-stat{background:#fff;border:1px solid #e9ecef;border-radius:18px;padding:20px;box-shadow:0 12px 34px rgba(16,42,67,.07);min-height:130px}.iam-stat i{font-size:1.7rem;color:#0b7285}.iam-stat span{display:block;color:#667085;font-weight:700;margin-top:14px}.iam-stat strong{display:block;font-size:2rem;color:#102a43}.iam-card{border:0;border-radius:18px;box-shadow:0 12px 34px rgba(16,42,67,.07)}.iam-flow{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.iam-flow span{background:#eef8fb;color:#0b7285;border-radius:999px;padding:8px 14px;font-weight:700}.iam-tabs .nav-link{border-radius:999px;font-weight:700}.iam-form{border:0;border-radius:20px;box-shadow:0 16px 44px rgba(16,42,67,.08);width:100%}.iam-form label{width:100%}.iam-form .form-control,.iam-form .form-select{border-radius:12px}.table thead th{font-size:.78rem;text-transform:uppercase;letter-spacing:.04em;color:#667085}.btn{border-radius:10px}

/* Professional IAM Area UI */
:root {
  --iam-ink: #102033;
  --iam-muted: #667085;
  --iam-border: #e6ebf2;
  --iam-surface: #ffffff;
  --iam-soft: #f4f7fb;
  --iam-primary: #155eef;
  --iam-primary-dark: #0b2f6b;
  --iam-accent: #f79009;
}

.app-main { background: linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%); }

.iam-command-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 18%, rgba(247,144,9,.28), transparent 24%),
    linear-gradient(135deg, #081b33 0%, #0b3b78 48%, #155eef 100%);
  border-radius: 28px;
  color: #fff;
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 24px 70px rgba(16, 32, 51, .22);
}

.iam-command-hero:after {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 280px;
  height: 280px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
}

.iam-command-hero h1 {
  margin: .25rem 0 .65rem;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.05;
  font-weight: 850;
  letter-spacing: -.04em;
}

.iam-command-hero p { max-width: 820px; margin: 0; color: rgba(255,255,255,.78); font-size: 1.02rem; }
.iam-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }

.iam-page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 12px 0 22px;
}
.iam-page-title h2 { margin: 2px 0 4px; color: var(--iam-ink); font-size: 1.75rem; font-weight: 800; letter-spacing: -.03em; }
.iam-page-title p { margin: 0; color: var(--iam-muted); }
.iam-section-label, .iam-eyebrow { color: #8a4b04; font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 850; }
.iam-command-hero .iam-eyebrow { color: #ffdda8; }

.iam-kpi-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(230,235,242,.9);
  border-radius: 22px;
  padding: 18px;
  min-height: 128px;
  box-shadow: 0 16px 42px rgba(16,32,51,.07);
  backdrop-filter: blur(8px);
}
.iam-kpi-icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #eaf1ff;
  color: var(--iam-primary);
  font-size: 1.35rem;
}
.iam-kpi-card span { display:block; color: var(--iam-muted); font-weight: 750; }
.iam-kpi-card strong { display:block; color: var(--iam-ink); font-size: 2rem; line-height: 1; margin: 8px 0 6px; }
.iam-kpi-card small { color: #98a2b3; font-weight: 600; }

.iam-panel, .iam-card, .iam-table-shell {
  background: var(--iam-surface);
  border: 1px solid var(--iam-border);
  border-radius: 22px;
  box-shadow: 0 16px 42px rgba(16,32,51,.07);
}
.iam-panel { padding: 20px; }
.iam-panel-header { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.iam-panel-header h5 { color: var(--iam-ink); font-weight: 800; }

.iam-flow-pro { display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding-top: 18px; }
.iam-flow-pro div { display:flex; align-items:center; gap:10px; background:#f3f7ff; border:1px solid #dbe7ff; border-radius:999px; padding:8px 12px; color:#1849a9; font-weight:800; }
.iam-flow-pro b { background:#fff; border-radius:999px; padding:3px 7px; font-size:.72rem; box-shadow: inset 0 0 0 1px #dbe7ff; }
.iam-flow-pro i { color:#98a2b3; }

.iam-tabs { background:#eef3f8; border-radius:999px; display:inline-flex; max-width:100%; overflow-x:auto; }
.iam-tabs .nav-link { color:#475467; border-radius:999px; font-weight:800; padding:.7rem 1rem; }
.iam-tabs .nav-link.active { background:#fff; color:var(--iam-primary); box-shadow:0 8px 20px rgba(16,32,51,.08); }

.iam-data-table thead th {
  background:#f8fafc;
  color:#667085;
  font-size:.72rem;
  font-weight:850;
  letter-spacing:.08em;
  text-transform:uppercase;
  border-bottom:1px solid var(--iam-border);
  padding:14px 16px;
}
.iam-data-table tbody td { padding:14px 16px; color:#344054; border-color:#eef2f6; }
.iam-data-table tbody tr:hover { background:#f8fbff; }
.iam-code-pill { display:inline-flex; padding:5px 10px; border-radius:999px; background:#eef4ff; color:#1849a9; font-weight:850; font-size:.8rem; }
.iam-icon-btn { width:34px; height:34px; display:inline-grid; place-items:center; border-radius:12px; }

.iam-form, .iam-access-form {
  width: 100%;
  border: 1px solid var(--iam-border);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(16,32,51,.08);
  padding: 24px;
  background: #fff;
}
.iam-form h4 { font-weight: 850; color: var(--iam-ink); margin-bottom: 4px; }
.iam-form label, .iam-access-form label { display:block; color:#344054; font-weight:750; margin-bottom:14px; }
.iam-form .form-control, .iam-form .form-select, .iam-access-form .form-control, .iam-access-form .form-select {
  margin-top:6px;
  min-height:44px;
  border-radius:14px;
  border-color:#d0d5dd;
  box-shadow:none;
}
.iam-form textarea.form-control { min-height: 110px; }
.form-check .form-check-input { margin-top: .22rem; }
.btn { border-radius: 12px; font-weight: 700; }
.dropdown-menu { border:1px solid var(--iam-border); border-radius:16px; padding:8px; }
.dropdown-item { border-radius:10px; font-weight:650; }

@media (max-width: 991px) {
  .iam-command-hero, .iam-page-title { flex-direction: column; align-items: flex-start; }
  .iam-hero-actions { width:100%; }
  .iam-hero-actions .btn { flex: 1 1 auto; }
}

/* IAM Professional UI v2 */
.app-sidebar { background: linear-gradient(180deg,#071d35 0%,#0b2748 55%,#071a30 100%) !important; }
.app-header { border-bottom: 1px solid #e6ebf2; box-shadow: 0 8px 26px rgba(16,32,51,.04); }
.app-main { background: #f6f9fd; }
.iam-topbar, .iam-list-header { display:flex; justify-content:space-between; align-items:flex-start; gap:24px; background:linear-gradient(135deg,#ffffff 0%,#f6f9ff 100%); border:1px solid #e6ebf2; border-radius:24px; padding:22px 24px; box-shadow:0 16px 42px rgba(16,32,51,.06); }
.iam-topbar h1, .iam-list-header h1 { font-size:1.65rem; font-weight:850; color:#0b1f3a; margin:4px 0; letter-spacing:-.03em; }
.iam-topbar p, .iam-list-header p { margin:0; color:#667085; max-width:760px; }
.iam-breadcrumb { color:#155eef; font-size:.82rem; font-weight:800; }
.iam-top-actions, .iam-list-tools { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.iam-search-box { min-width:320px; }
.iam-search-box .input-group-text, .iam-search-box .form-control { border-color:#d9e2ef; background:#fff; }
.iam-kpi-link { text-decoration:none; color:inherit; transition:.18s ease; position:relative; overflow:hidden; }
.iam-kpi-link:hover { transform:translateY(-4px); box-shadow:0 22px 52px rgba(21,94,239,.13); border-color:#c7d7fe; }
.iam-kpi-link:hover .iam-card-arrow { transform:translateX(4px); opacity:1; }
.iam-card-arrow { margin-left:auto; color:#0b1f3a; opacity:.8; transition:.18s ease; align-self:end; }
.iam-kpi-card { min-height:150px; align-items:flex-start; }
.iam-kpi-icon { background:linear-gradient(135deg,#eaf1ff,#f4f7ff); }
.iam-quick-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.iam-quick-grid a { min-height:92px; border:1px solid #e6ebf2; border-radius:16px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-decoration:none; color:#0b1f3a; background:#fff; transition:.18s ease; font-weight:750; }
.iam-quick-grid a i { color:#155eef; font-size:1.7rem; margin-bottom:8px; }
.iam-quick-grid a:hover { border-color:#b9cdfd; background:#f7faff; transform:translateY(-2px); box-shadow:0 12px 30px rgba(21,94,239,.10); }
.iam-timeline { display:grid; gap:12px; }
.iam-timeline a { display:grid; grid-template-columns:48px 1fr; column-gap:14px; align-items:center; padding:14px; border:1px solid #e6ebf2; border-radius:16px; background:#fff; color:#0b1f3a; text-decoration:none; }
.iam-timeline a:hover { background:#f8fbff; border-color:#c7d7fe; }
.iam-timeline b { grid-row:1/3; width:42px; height:42px; border-radius:14px; display:grid; place-items:center; color:#155eef; background:#eef4ff; }
.iam-timeline span { font-weight:850; }
.iam-timeline small { color:#667085; }
.iam-metric span { display:block; color:#667085; font-weight:700; }
.iam-metric strong { display:block; font-size:1.8rem; color:#0b1f3a; }
.iam-ring { display:flex; align-items:center; gap:16px; justify-content:center; }
.iam-ring i { width:72px; height:72px; display:grid; place-items:center; border-radius:50%; color:#155eef; background:#eef4ff; font-size:2rem; box-shadow:inset 0 0 0 10px #d9e6ff; }
.iam-ring b, .iam-ring small { display:block; }
.iam-ring small { color:#667085; }
.iam-table-shell { overflow:hidden; }
.iam-data-table thead th { background:#f8fafc; color:#667085; font-size:.73rem; font-weight:850; text-transform:uppercase; letter-spacing:.08em; padding:14px 16px; white-space:nowrap; }
.iam-data-table td { vertical-align:middle; }
.iam-data-table code { background:#f1f5f9; padding:.25rem .45rem; border-radius:.5rem; color:#0f172a; }
.iam-icon-btn { border:1px solid #e6ebf2; color:#155eef; }
.iam-icon-btn:hover { background:#155eef; color:#fff; }
.iam-form-page { display:block; width:100%; }
.iam-form-visual { position:sticky; top:88px; background:linear-gradient(160deg,#08213f,#155eef); color:#fff; border-radius:26px; padding:28px; min-height:360px; box-shadow:0 24px 60px rgba(21,94,239,.22); overflow:hidden; }
.iam-form-visual:after { content:""; position:absolute; width:220px; height:220px; border-radius:50%; right:-80px; bottom:-70px; background:rgba(255,255,255,.09); }
.iam-form-icon { width:64px; height:64px; border-radius:20px; background:rgba(255,255,255,.14); display:grid; place-items:center; font-size:2rem; margin-bottom:22px; }
.iam-form-visual h2 { font-weight:850; letter-spacing:-.03em; }
.iam-form-visual p { color:rgba(255,255,255,.78); }
.iam-form-note { margin-top:28px; padding:14px; border-radius:16px; background:rgba(255,255,255,.10); display:flex; gap:10px; color:rgba(255,255,255,.85); position:relative; z-index:1; }
.iam-form-pro, .iam-access-form { padding:0; overflow:hidden; }
.iam-form-header { display:flex; justify-content:space-between; gap:18px; align-items:center; padding:22px 24px; border-bottom:1px solid #e6ebf2; background:#fbfdff; }
.iam-form-header h4 { font-weight:850; color:#0b1f3a; }
.iam-form-pro > .row, .iam-form-pro > .alert, .iam-access-form > label, .iam-access-form > .alert { margin-left:24px; margin-right:24px; }
.iam-form-pro > .row { padding:22px 0; }
.iam-form-pro label, .iam-access-form label { color:#344054; font-size:.9rem; }
.iam-form-pro .form-control, .iam-form-pro .form-select, .iam-access-form .form-control, .iam-access-form .form-select { min-height:44px; border-radius:12px; border-color:#d9e2ef; background:#fff; }
.iam-form-pro .form-control:focus, .iam-form-pro .form-select:focus, .iam-access-form .form-control:focus, .iam-access-form .form-select:focus { border-color:#84adff; box-shadow:0 0 0 .2rem rgba(21,94,239,.12); }
.iam-multi { min-height:180px !important; }
.iam-check { padding:14px 14px 14px 42px; border:1px solid #e6ebf2; border-radius:14px; background:#fff; }
.iam-form-footer { display:flex; justify-content:flex-end; gap:10px; padding:18px 24px; border-top:1px solid #e6ebf2; background:#fbfdff; }
.iam-switch { display:flex!important; align-items:center; gap:10px; margin:0!important; cursor:pointer; white-space:nowrap; }
.iam-switch input { display:none; }
.iam-switch span { width:46px; height:26px; border-radius:999px; background:#d0d5dd; position:relative; transition:.18s; }
.iam-switch span:after { content:""; position:absolute; width:20px; height:20px; top:3px; left:3px; border-radius:50%; background:#fff; transition:.18s; box-shadow:0 2px 6px rgba(0,0,0,.18); }
.iam-switch input:checked + span { background:#155eef; }
.iam-switch input:checked + span:after { transform:translateX(20px); }
.iam-switch b { color:#344054; font-size:.88rem; }
.nav-sidebar .nav-header { color:#94a3b8; font-size:.72rem; letter-spacing:.08em; padding:12px 1rem 4px; text-transform:uppercase; }
@media (max-width: 1200px){ .iam-quick-grid{grid-template-columns:repeat(2,1fr);} .iam-form-visual{position:relative;top:auto;min-height:auto;} }
@media (max-width: 768px){ .iam-topbar,.iam-list-header{flex-direction:column;} .iam-list-tools,.iam-search-box{width:100%;} .iam-quick-grid{grid-template-columns:1fr;} }

/* IAM professional pagination and previous-navigation polish */
.iam-pager {
    background: #fff;
    border: 1px solid rgba(148,163,184,.22);
    border-radius: 18px;
    padding: .85rem 1rem;
    box-shadow: 0 12px 30px rgba(15,23,42,.04);
}
.iam-pager .page-link {
    border-radius: 10px;
    margin: 0 2px;
    border-color: rgba(148,163,184,.28);
    color: #1e40af;
    font-weight: 600;
}
.iam-pager .page-item.active .page-link {
    background: linear-gradient(135deg,#2563eb,#4f46e5);
    border-color: #2563eb;
    color: #fff;
}
.iam-form-footer .btn-light {
    border: 1px solid rgba(148,163,184,.35);
    background: #f8fafc;
    font-weight: 600;
}
.iam-list-tools .iam-search-box {
    min-width: 320px;
}

/* Professional login page */
body.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 12%, rgba(37, 99, 235, .18), transparent 28%),
    radial-gradient(circle at 88% 22%, rgba(14, 165, 233, .16), transparent 24%),
    linear-gradient(135deg, #eef5ff 0%, #f8fbff 45%, #eef3f8 100%);
  color: #0f172a;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 44px);
}

.login-pro-shell {
  width: min(1120px, 100%);
}

.login-pro-card {
  display: grid;
  grid-template-columns: minmax(360px, .95fr) minmax(360px, .8fr);
  min-height: 680px;
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(226, 232, 240, .92);
  border-radius: 34px;
  box-shadow: 0 34px 90px rgba(15, 23, 42, .16);
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.login-pro-visual {
  position: relative;
  overflow: hidden;
  padding: 36px;
  color: #ffffff;
  background:
    linear-gradient(145deg, rgba(8, 24, 48, .98) 0%, rgba(15, 64, 125, .98) 52%, rgba(37, 99, 235, .96) 100%);
}

.login-pro-visual:before,
.login-pro-visual:after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .09);
}

.login-pro-visual:before {
  width: 330px;
  height: 330px;
  right: -130px;
  top: -90px;
}

.login-pro-visual:after {
  width: 260px;
  height: 260px;
  left: -110px;
  bottom: -95px;
}

.login-pro-brand,
.login-pro-mobile-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.login-pro-brand {
  position: relative;
  z-index: 1;
}

.login-pro-logo {
  height: 62px;
}

.login-pro-brand strong,
.login-pro-mobile-brand strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 850;
}

.login-pro-brand small,
.login-pro-mobile-brand small {
  display: block;
  color: rgba(255,255,255,.68);
  font-weight: 650;
}

.login-pro-copy {
  position: relative;
  z-index: 1;
  margin-top: 32px;
  max-width: 530px;
}

.login-pro-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  color: #dbeafe;
  font-weight: 800;
  font-size: .82rem;
}

.login-pro-copy h1 {
margin: 24px 0 16px;
  font-size: 61px;
  font-weight: 900;
}

.login-pro-copy p {
  margin: 0;
  max-width: 470px;
  color: rgba(255,255,255,.72);
  font-size: 1.06rem;
  line-height: 1.7;
}

.login-pro-highlights {
  position: absolute;
  z-index: 1;
  left: 36px;
  right: 36px;
  bottom: 36px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.login-pro-highlights div {
  min-height: 104px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 20px;
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
}

.login-pro-highlights i {
  display: block;
  margin-bottom: 12px;
  color: #bfdbfe;
  font-size: 1.55rem;
}

.login-pro-highlights span {
  display: block;
  color: rgba(255,255,255,.86);
  font-weight: 750;
  line-height: 1.25;
}

.login-pro-form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 54px);
  background:
    linear-gradient(180deg, rgba(255,255,255,.95), rgba(248,250,252,.96));
}

.login-pro-mobile-brand {
  display: none;
  margin-bottom: 28px;
}

.login-pro-mobile-brand small {
  color: #64748b;
}

.login-pro-heading span {
  color: #2563eb;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.login-pro-heading h2 {
  margin: 8px 0 8px;
  color: #0f172a;
  font-weight: 700;
}

.login-pro-heading p {
  margin: 0 0 28px;
  color: #64748b;
  font-weight: 600;
}

.login-pro-form {
  display: grid;
  gap: 18px;
}

.login-pro-field > span:first-child {
  display: block;
  margin-bottom: 8px;
  color: #334155;
  font-weight: 800;
  font-size: .92rem;
}

.login-pro-input {
  position: relative;
}

.login-pro-input i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 1.05rem;
}

.login-pro-input .form-control {
  min-height: 54px;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  padding-left: 46px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15,23,42,.04);
  font-weight: 650;
}

.login-pro-input .form-control:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 .25rem rgba(37,99,235,.12), 0 12px 28px rgba(37,99,235,.08);
}

.login-pro-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #64748b;
  font-size: .9rem;
  font-weight: 650;
}

.login-pro-safe {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2563eb;
  white-space: nowrap;
}

.login-pro-submit {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 48%, #0f2f73 100%);
  box-shadow: 0 18px 36px rgba(37, 99, 235, .28);
  font-weight: 850;
}

.login-pro-submit:hover,
.login-pro-submit:focus {
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 22px 44px rgba(37, 99, 235, .34);
}

.login-pro-footer {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #e2e8f0;
  color: #64748b;
  font-size: .88rem;
  font-weight: 650;
}

.login-pro-footer span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 992px) {
  .login-pro-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .login-pro-visual {
    display: none;
  }

  .login-pro-mobile-brand {
    display: flex;
  }
}

@media (max-width: 576px) {
  .auth-shell {
    padding: 12px;
  }

  .login-pro-card {
    border-radius: 24px;
  }

  .login-pro-form-panel {
    padding: 26px 20px;
  }

  .login-pro-options {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Enterprise service console */
.service-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, #ffffff 0%, #eef5ff 100%);
    box-shadow: 0 0.75rem 2rem rgba(15, 23, 42, .06);
}
.service-panel {
    border-radius: 1.25rem;
    overflow: hidden;
}
.service-kpi-card {
    display: flex;
    align-items: center;
    gap: .9rem;
    border: 0;
    border-radius: 1.25rem;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 .65rem 1.8rem rgba(15,23,42,.06);
}
.service-kpi-icon {
    width: 46px;
    height: 46px;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.service-category-list .list-group-item {
    display: flex;
    align-items: center;
    gap: .7rem;
    border: 0;
    border-radius: .95rem;
    margin-bottom: .4rem;
    color: #334155;
}
.service-category-list .list-group-item.active {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #fff;
}
.service-cat-icon {
    width: 34px;
    height: 34px;
    border-radius: .8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, .1);
}
.service-category-list .active .service-cat-icon {
    background: rgba(255,255,255,.18);
}
.service-category-tree {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}
.service-category-tree-item {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: .35rem;
    padding-left: var(--category-indent);
}
.service-category-tree-item.has-parent::before {
    content: "";
    position: absolute;
    left: var(--category-connector-left);
    top: -0.35rem;
    bottom: 50%;
    width: .7rem;
    border-left: 1px solid #cbd5e1;
    border-bottom: 1px solid #cbd5e1;
    border-bottom-left-radius: .35rem;
}
.service-category-toggle,
.service-category-toggle-spacer {
    position: relative;
    z-index: 1;
    width: 1.4rem;
    min-width: 1.4rem;
    border: 0;
    background: transparent;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.service-category-toggle:hover {
    color: #2563eb;
}
.service-category-link {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: .7rem;
    flex: 1 1 auto;
    min-width: 0;
    border-radius: .95rem;
    padding: .5rem .6rem;
    color: #334155;
    text-decoration: none;
}
.service-category-link:hover {
    background: #f8fafc;
    color: #1d4ed8;
}
.service-category-link.active {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #fff;
}
.service-category-link.active .service-cat-icon {
    background: rgba(255,255,255,.18);
}
.service-table thead th {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #64748b;
    background: #f8fafc;
    border-bottom: 0;
}
.service-table tbody td {
    padding-top: .9rem;
    padding-bottom: .9rem;
}
.service-table-wrap {
    min-height: 430px;
}
.service-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
}
.service-mini-grid > div {
    border: 1px solid #e2e8f0;
    border-radius: .9rem;
    padding: .7rem;
    background: #f8fafc;
}
.service-mini-grid span {
    display: block;
    color: #64748b;
    font-size: .75rem;
}
.service-mini-grid strong {
    font-size: .95rem;
}
.service-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: .9rem;
    padding: .65rem .75rem;
    margin-bottom: .5rem;
    background: #fff;
}
.service-edit-page .card {
    border-radius: 1.25rem;
}

/* Service detail split-panel tabs */
.service-detail-panel {
    position: sticky;
    top: 1rem;
}
.service-detail-header {
    padding: 1rem 1rem .75rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border-bottom: 1px solid #e2e8f0;
}
.service-detail-tabs {
    gap: .35rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    border-bottom: 1px solid #e2e8f0;
}
.service-detail-tabs .nav-link {
    border: 0;
    color: #64748b;
    font-size: .78rem;
    font-weight: 600;
    padding: .75rem .55rem;
    white-space: nowrap;
}
.service-detail-tabs .nav-link.active {
    color: #2563eb;
    border-bottom: 2px solid #2563eb;
    background: transparent;
}
.service-detail-content {
    padding: 1rem;
    min-height: 430px;
    max-height: 640px;
    overflow-y: auto;
}
.service-info-list {
    display: grid;
    grid-template-columns: 42% 58%;
    gap: .75rem .5rem;
    margin: 0;
    font-size: .86rem;
}
.service-info-list dt {
    color: #64748b;
    font-weight: 600;
}
.service-info-list dd {
    margin: 0;
    color: #0f172a;
    font-weight: 600;
}
.service-price-card {
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: .8rem;
    background: #ffffff;
    box-shadow: 0 .35rem 1rem rgba(15, 23, 42, .04);
    margin-bottom: .75rem;
}
.service-pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .35rem .6rem;
}
.service-pricing-grid span {
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: .55rem;
    color: #475569;
    font-size: .75rem;
    padding: .35rem .45rem;
}
.service-requirement-grid {
    display: grid;
    gap: .55rem;
}
.service-requirement-card {
    display: flex;
    align-items: center;
    gap: .7rem;
    border: 1px solid #e2e8f0;
    border-radius: .9rem;
    padding: .7rem;
    background: #f8fafc;
}
.service-requirement-card > span {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .8rem;
}
.service-requirement-card.enabled > span {
    background: #dcfce7;
    color: #16a34a;
}
.service-requirement-card.disabled > span {
    background: #f1f5f9;
    color: #94a3b8;
}
.service-requirement-card strong,
.service-requirement-card small {
    display: block;
}
.service-requirement-card small {
    color: #64748b;
}
.service-empty-state {
    border: 1px dashed #cbd5e1;
    border-radius: 1rem;
    color: #64748b;
    padding: 1.25rem;
    text-align: center;
}
.service-empty-state i {
    display: block;
    font-size: 1.75rem;
    margin-bottom: .5rem;
}
.service-timeline {
    display: grid;
    gap: .85rem;
}
.service-timeline-item {
    display: grid;
    grid-template-columns: 16px 1fr;
    gap: .65rem;
    position: relative;
}
.service-timeline-item:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 20px;
    bottom: -14px;
    width: 1px;
    background: #e2e8f0;
}
.service-timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
    margin-top: 4px;
}
.service-detail-actions {
    display: flex;
    gap: .6rem;
    padding: 1rem;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
}


/* Service console refinements - price entry + stable detail tabs */
.service-detail-tabs-shell {
    padding-top: .75rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
    overflow-x: auto;
    scrollbar-width: thin;
}
.service-detail-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(84px, 1fr));
    gap: .45rem;
    min-width: 410px;
    border: 0 !important;
    overflow: visible !important;
}
.service-detail-tabs .nav-item {
    min-width: 0;
}
.service-detail-tabs .nav-link {
    width: 100%;
    border: 1px solid #e2e8f0 !important;
    border-radius: .8rem !important;
    color: #475569;
    font-size: .76rem;
    font-weight: 700;
    padding: .55rem .45rem !important;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    background: #f8fafc;
}
.service-detail-tabs .nav-link span {
    overflow: hidden;
    text-overflow: ellipsis;
}
.service-detail-tabs .nav-link em {
    font-style: normal;
    font-size: .68rem;
    line-height: 1;
    padding: .15rem .38rem;
    border-radius: 999px;
    background: #e0e7ff;
    color: #2563eb;
}
.service-detail-tabs .nav-link.active {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
    box-shadow: 0 .5rem 1rem rgba(37, 99, 235, .18);
}
.service-detail-tabs .nav-link.active em {
    background: rgba(255,255,255,.22);
    color: #ffffff;
}
.service-detail-actions {
    align-items: stretch;
}
.service-detail-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.service-switch-list {
    display: grid;
    gap: .75rem;
}
.service-switch-list .form-check {
    margin: 0;
    padding: .75rem .85rem .75rem 2.85rem;
    border: 1px solid #e2e8f0;
    border-radius: .9rem;
    background: #f8fafc;
}
.service-switch-list .form-check-input {
    margin-left: -2rem;
}
@media (max-width: 1399.98px) {
    .service-info-list {
        grid-template-columns: 1fr;
        gap: .25rem;
    }
    .service-mini-grid,
    .service-pricing-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 1199.98px) {
    .service-detail-panel {
        position: static;
    }
    .service-detail-tabs {
        min-width: 520px;
    }
}
.action-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
/* Technician console - aligned with Admin/IAM blue theme */
.technician-console-page {
    --tech-primary: #2563eb;
    --tech-primary-dark: #1d4ed8;
    --tech-primary-soft: #eef5ff;
    --tech-primary-border: #dbe7ff;
    --tech-surface: #ffffff;
    --tech-muted: #64748b;
    --tech-text: #0f172a;
    color: var(--tech-text);
}
.tech-toolbar h1 { color:#071b3a; font-weight:800; }
.technician-console-page .btn-primary { background:linear-gradient(135deg, var(--tech-primary), #4f46e5); border-color:var(--tech-primary); color:#fff; font-weight:700; }
.technician-console-page .btn-outline-primary { border-color:var(--tech-primary); color:var(--tech-primary); font-weight:700; }
.technician-console-page .btn-outline-primary:hover { background:var(--tech-primary); border-color:var(--tech-primary); color:#fff; }
.tech-panel, .tech-grid-card, .tech-profile-card { border-radius:1.25rem; background:var(--tech-surface); box-shadow:0 .75rem 2rem rgba(15,23,42,.06); }
.tech-kpi { display:flex; align-items:center; gap:12px; padding:14px 16px; border-radius:1.25rem; background:var(--tech-surface); border:1px solid #e6ebf2; min-height:78px; box-shadow:0 .65rem 1.8rem rgba(15,23,42,.05); }
.tech-kpi i { width:40px; height:40px; display:grid; place-items:center; background:rgba(37,99,235,.10); color:var(--tech-primary); border-radius:1rem; font-size:1.15rem; }
.tech-kpi span { color:var(--tech-muted); font-size:.8rem; text-transform:uppercase; letter-spacing:.05em; }
.tech-kpi strong { display:block; color:#071b3a; font-size:1.5rem; line-height:1; }

.tech-filter-row {
    display:flex;
    align-items:center;
    gap:.5rem;
    flex-wrap:nowrap;
    width:100%;
}
.tech-filter-row .tech-search-box {
    flex:1 1 auto;
    min-width:0;
}
.tech-filter-row > .form-select {
    flex:0 0 155px;
}
.tech-filter-row > .btn {
    flex:0 0 auto;
    min-height:44px;
}
.tech-filter-row .tech-search-box select[name="column"] {
    flex:0 0 230px;
}
.tech-filter-row .tech-search-box select[name="op"] {
    flex:0 0 130px;
}
.tech-filter-row .tech-search-box input[name="value"] {
    min-width:260px;
}
@media (max-width: 992px) {
    .tech-filter-row { flex-wrap:wrap; }
    .tech-filter-row .tech-search-box { flex-basis:100%; }
    .tech-filter-row > .form-select { flex:1 1 155px; }
}

.tech-search-box .input-group-text, .tech-search-box .form-select, .tech-search-box .form-control { border-color:#d9e2ef; background:#fff; min-height:44px; }
.tech-search-box .form-control:focus, .tech-search-box .form-select:focus { border-color:#60a5fa; box-shadow:0 0 0 .20rem rgba(37,99,235,.12); }
.tech-table-wrap { max-height:530px; overflow:auto; border-radius:.95rem; }
.tech-table thead th { position:sticky; top:0; z-index:2; background:#f8fafc !important; color:#64748b !important; font-size:.82rem; text-transform:uppercase; letter-spacing:.04em; border-color:#e2e8f0; }
.tech-table tbody td { border-color:#e6ebf2; }
.tech-table tbody tr:nth-child(even) td { background:#f8fbff; }
.tech-table tbody tr.table-primary td { background:#eef5ff !important; }
.tech-hot-dot { width:15px; height:15px; border-radius:50%; display:inline-block; background:#dc3545; box-shadow:0 0 0 3px #ffe0e3; flex-shrink:0; }
.tech-hot-dot.active { background:#12a94d; box-shadow:0 0 0 3px #d9f7e4; }
.tech-hot-dot.inactive { background:#dc3545; box-shadow:0 0 0 3px #ffe0e3; }
.tech-pager { padding:10px 12px; background:#fff; border-top:1px solid #e6ebf2; border-radius:0 0 1.25rem 1.25rem; }
.tech-profile-header { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 18px; border-radius:1.25rem; background:linear-gradient(135deg,#ffffff 0%,#eef5ff 100%); border:1px solid #e6ebf2; }
.tech-profile-header .text-uppercase { color:var(--tech-primary); letter-spacing:.06em; }
.tech-profile-header h2, .tech-profile-header h1 { color:#071b3a; font-weight:800; }
.tech-tabs { gap:2px; padding-left:16px; margin-top:8px; scrollbar-width:none; }
.tech-tabs .nav-link { border:1px solid #dbe7ff; border-bottom:0; color:var(--tech-primary); border-radius:.75rem .75rem 0 0; background:#fff; padding:.55rem 1rem; white-space:nowrap; font-weight:700; }
.tech-tabs .nav-link.active { background:linear-gradient(135deg, var(--tech-primary), #4f46e5); color:#fff; border-color:var(--tech-primary); font-weight:800; }
.tech-tabs em { font-style:normal; background:#e0e7ff; color:#2563eb; border-radius:999px; padding:1px 7px; margin-left:4px; font-size:.75rem; }
.tech-tabs .nav-link.active em { background:rgba(255,255,255,.22); color:#fff; }
.tech-tab-content { border:1px solid #dbe7ff; border-radius:.75rem; padding:16px; min-height:430px; background:#fff; }
.tech-info-list { display:grid; grid-template-columns:150px 1fr; gap:8px 14px; }
.tech-info-list dt { color:var(--tech-muted); font-weight:700; }
.tech-info-list dd { margin:0; }
.tech-photo-box { border:2px solid #dbe7ff; border-radius:.95rem; background:#f8fafc; min-height:250px; display:flex; flex-direction:column; align-items:center; justify-content:center; color:#64748b; overflow:hidden; }
.tech-photo-box img { width:100%; height:260px; object-fit:cover; }
.tech-photo-box i { font-size:4rem; color:var(--tech-primary); }
.tech-mini-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.tech-mini-grid div { background:#f8fbff; border:1px solid #dbe7ff; border-radius:.95rem; padding:12px; }
.tech-mini-grid span { display:block; color:var(--tech-muted); font-size:.78rem; }
.tech-mini-grid strong { display:block; font-size:1rem; color:#071b3a; }
.tech-detail-row { display:flex; justify-content:space-between; gap:16px; border:1px solid #e6ebf2; background:#ffffff; border-radius:.95rem; padding:12px; margin-bottom:10px; box-shadow:0 .25rem .9rem rgba(15,23,42,.03); }
.tech-detail-row p { margin:.2rem 0; color:#394457; }
.tech-empty-state, .tech-detail-empty { border:1px dashed #cbd5e1; background:#f8fafc; border-radius:1rem; padding:28px; text-align:center; color:#8791a3; }
.tech-detail-empty { min-height:360px; display:grid; place-items:center; }
.tech-timeline-item { display:grid; grid-template-columns:20px 1fr; gap:10px; margin-bottom:14px; }
.tech-timeline-item span { width:13px; height:13px; border-radius:50%; background:var(--tech-primary); margin-top:6px; box-shadow:0 0 0 4px #dbe7ff; }
.tech-timeline-item p { margin:0; color:#394457; }
.tech-edit-form .form-control, .tech-edit-form .form-select { border-radius:.75rem; min-height:44px; background:#fff; border-color:#d9e2ef; }
.tech-edit-form .form-control:focus, .tech-edit-form .form-select:focus { border-color:#60a5fa; box-shadow:0 0 0 .20rem rgba(37,99,235,.12); }
@media (max-width: 992px) { .tech-mini-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .tech-info-list { grid-template-columns:1fr; } }
.tech-address-editor { display:grid; grid-template-columns:1fr; gap:16px; }
.tech-address-list { display:grid; gap:14px; }
.tech-address-card { border:1px solid #dbe7ff; background:#ffffff; border-radius:1rem; padding:16px; box-shadow:0 .45rem 1.2rem rgba(15,23,42,.04); }
.tech-address-card .form-check { display:flex; align-items:center; gap:6px; }
.tech-address-card .form-check-input { margin-top:0; }
@media (max-width: 992px) { .tech-address-card .d-flex { align-items:flex-start !important; } }

/* Technician address split editor */
.tech-address-split-editor {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}
.tech-address-left-panel {
    border: 1px solid #dbe7ff;
    border-radius: 1rem;
    background: #f8fbff;
    padding: .75rem;
    max-height: 620px;
    overflow-y: auto;
}
.tech-address-list-item {
    width: 100%;
    display: block;
    text-align: left;
    border: 1px solid #e2e8f0;
    border-radius: .9rem;
    padding: .75rem;
    background: #fff;
    color: #0f172a;
    margin-bottom: .65rem;
    box-shadow: 0 .35rem 1rem rgba(15,23,42,.04);
}
.tech-address-list-item:hover,
.tech-address-list-item.active {
    border-color: var(--tech-primary);
    box-shadow: 0 .45rem 1.25rem rgba(37,99,235,.15);
}
.tech-address-list-item.active {
    background: linear-gradient(135deg, #eef5ff 0%, #ffffff 100%);
}
.tech-address-list-title {
    display: block;
    color: #1d4ed8;
    font-weight: 800;
    margin-bottom: .2rem;
}
.tech-address-list-summary {
    display: block;
    color: #64748b;
    font-size: .82rem;
    margin-bottom: .2rem;
}
.tech-address-list-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-top: .45rem;
}
.tech-address-right-panel {
    border: 1px solid #dbe7ff;
    border-radius: 1rem;
    background: #fff;
    padding: 1rem;
    min-height: 520px;
    box-shadow: 0 .55rem 1.5rem rgba(15,23,42,.05);
}
.tech-address-entry-panel .form-check {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}
.tech-address-entry-panel .form-check-input {
    margin-top: 0;
}
@media (max-width: 992px) {
    .tech-address-split-editor {
        grid-template-columns: 1fr;
    }
    .tech-address-left-panel {
        max-height: 280px;
    }
}

.tech-profile-photo-preview {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid #dbe7ff;
    box-shadow: 0 .45rem 1.2rem rgba(37,99,235,.12);
}

.tech-profile-photo-empty {
    width: 96px;
    height: 96px;
    border-radius: 18px;
    border: 1px dashed #93c5fd;
    background: #eef5ff;
    color: #2563eb;
    display: grid;
    place-items: center;
    font-size: 2rem;
}

/* Technician onboarding status block */
.tech-status-shell {
    border: 1px solid #dbe7ff;
    border-radius: 1.1rem;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
    padding: 1rem;
    box-shadow: 0 .45rem 1.25rem rgba(15,23,42,.04);
}
.tech-score-pill {
    min-width: 118px;
    border-radius: 999px;
    padding: .55rem .85rem;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #fff;
    text-align: center;
    box-shadow: 0 .4rem 1rem rgba(37,99,235,.18);
}
.tech-score-pill span { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.tech-score-pill strong { display: block; font-size: 1.15rem; line-height: 1.1; }
.tech-status-card {
    border-radius: 1rem;
    padding: .85rem;
    border: 1px solid #dbe7ff;
    min-height: 106px;
}
.tech-status-card .form-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .045em; font-weight: 800; margin-bottom: .45rem; }
.tech-status-card.status-blue { background: #eff6ff; border-color: #bfdbfe; }
.tech-status-card.status-indigo { background: #eef2ff; border-color: #c7d2fe; }
.tech-status-card.status-green { background: #ecfdf5; border-color: #bbf7d0; }
.tech-status-card.status-slate { background: #f8fafc; border-color: #cbd5e1; }
.tech-check-card {
    border: 1px solid #dbe7ff;
    border-radius: .9rem;
    padding: .85rem 1rem .85rem 2.5rem;
    background: #f8fbff;
    min-height: 58px;
    display: flex;
    align-items: center;
    font-weight: 700;
}

.tech-completion-cell {
    min-width: 120px;
}
.tech-completion-progress {
    height: .45rem;
    margin-top: .35rem;
    border-radius: 999px;
    background: #dbeafe;
    overflow: hidden;
}
.tech-completion-progress .progress-bar {
    background: linear-gradient(90deg, #2563eb, #4f46e5);
    border-radius: 999px;
}


/* Customer area styles */
.customer-console-page { --cp-blue:#3454e8; --cp-blue-dark:#1d3fd0; --cp-soft:#eef5ff; --cp-border:#d7e5ff; color:#102040; }
.customer-hero,.customer-edit-hero { display:flex; justify-content:space-between; align-items:center; gap:1rem; padding:1.2rem 1.4rem; border:1px solid var(--cp-border); background:linear-gradient(135deg,#f8fbff,#eef5ff); border-radius:1.25rem; box-shadow:0 16px 36px rgba(30,64,175,.08); }
.customer-kpi { border:1px solid var(--cp-border); border-radius:1.1rem; padding:1rem; min-height:92px; background:#fff; box-shadow:0 12px 24px rgba(30,64,175,.06); }
.customer-kpi span { display:block; color:#64748b; font-size:.86rem; margin-bottom:.35rem; }
.customer-kpi strong { color:#102040; font-size:1.5rem; }
.customer-search-shell { border:1px solid var(--cp-border); border-radius:1.1rem; padding:.75rem; background:#fff; box-shadow:0 12px 24px rgba(30,64,175,.06); }
.customer-search-row { display:flex; align-items:center; gap:.6rem; flex-wrap:nowrap; }
.customer-search-group { flex:1 1 auto; min-width:420px; }
.customer-search-column { max-width:230px; }
.customer-search-op { max-width:130px; }
.customer-status-filter { width:180px; flex:0 0 180px; }
.customer-panel,.customer-detail-shell,.customer-edit-card { border:1px solid var(--cp-border); border-radius:1.2rem; background:#fff; box-shadow:0 18px 38px rgba(30,64,175,.08); overflow:hidden; }
.customer-table thead th { background:#f8fbff; color:#64748b; text-transform:uppercase; letter-spacing:.04em; font-size:.78rem; border-bottom:1px solid var(--cp-border); white-space:nowrap; }
.customer-table tbody tr.table-primary td { background:#dfeaff !important; }
.customer-icon-btn { border-radius:.9rem; }
.customer-pager { display:flex; justify-content:space-between; align-items:center; padding:.7rem 1rem; border:1px solid var(--cp-border); border-radius:1rem; background:#fff; color:#64748b; }
.customer-detail-header { display:flex; justify-content:space-between; align-items:center; gap:1rem; padding:1.25rem; background:linear-gradient(135deg,#f8fbff,#eef5ff); border-bottom:1px solid var(--cp-border); border-radius:1.2rem; }
.customer-status-dot { width:20px; height:20px; border-radius:999px; display:inline-block; box-shadow:0 0 0 5px rgba(37,99,235,.1); flex:0 0 auto; }
.customer-status-dot.active { background:#16a34a; }
.customer-status-dot.inactive { background:#94a3b8; }
.customer-tabs { padding:.65rem 1rem 0; gap:.25rem; flex-wrap:nowrap; overflow-x:auto; }
.customer-tabs .nav-link { border:1px solid var(--cp-border); border-bottom:0; border-radius:.9rem .9rem 0 0; font-weight:700; color:#2563eb; background:#fff; }
.customer-tabs .nav-link.active { color:#fff; background:linear-gradient(135deg,var(--cp-blue),#4f46e5); }
.customer-tabs .nav-link span { display:inline-flex; align-items:center; justify-content:center; min-width:1.35rem; height:1.35rem; padding:0 .35rem; margin-left:.25rem; border-radius:999px; background:#e0e7ff; color:#2563eb; font-size:.8rem; }
.customer-detail-card { padding:1.25rem; border-top:1px solid var(--cp-border); min-height:420px; }
.customer-info-list { display:grid; grid-template-columns:150px 1fr; gap:.55rem 1rem; margin:0; }
.customer-info-list dt { color:#64748b; font-weight:700; }
.customer-info-list dd { margin:0; min-width:0; overflow:hidden; text-overflow:ellipsis; }
.customer-profile-photo,.customer-edit-photo { width:100%; max-height:260px; object-fit:cover; border-radius:1rem; border:1px solid var(--cp-border); background:#f8fbff; }
.customer-photo-empty { min-height:220px; border:1px dashed var(--cp-border); background:#f8fbff; border-radius:1rem; display:flex; align-items:center; justify-content:center; color:#94a3b8; font-size:4rem; }
.customer-mini-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.75rem; }
.customer-mini-grid div { border:1px solid var(--cp-border); border-radius:1rem; padding:.8rem; background:#f8fbff; }
.customer-mini-grid span { display:block; color:#64748b; font-size:.8rem; }
.customer-mini-grid strong { display:block; font-size:1.05rem; margin-top:.25rem; }
.customer-address-card { border:1px solid var(--cp-border); border-radius:1rem; padding:.9rem; background:#f8fbff; margin-bottom:.75rem; }
.customer-empty-state { border:1px dashed var(--cp-border); border-radius:1rem; padding:1.2rem; color:#64748b; background:#f8fbff; text-align:center; }
.customer-edit-tabs { padding-left:1rem; }
.customer-edit-card { padding:1.25rem; border-radius:0 1.2rem 1.2rem 1.2rem; }
.customer-flag-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.75rem; }
.customer-check { border:1px solid var(--cp-border); border-radius:1rem; padding:.8rem 1rem; background:#f8fbff; display:flex; align-items:center; gap:.5rem; font-weight:700; }
.customer-photo-panel { border:1px solid var(--cp-border); border-radius:1rem; padding:1rem; background:#f8fbff; }
.customer-split-list,.customer-split-editor { border:1px solid var(--cp-border); border-radius:1rem; padding:1rem; background:#fff; min-height:420px; }
.customer-address-list { display:flex; flex-direction:column; gap:.55rem; }
.customer-address-list-item { text-align:left; border:1px solid var(--cp-border); background:#f8fbff; border-radius:.9rem; padding:.8rem; color:#102040; }
.customer-address-list-item.active { border-color:#3454e8; background:#eaf1ff; box-shadow:0 0 0 3px rgba(52,84,232,.12); }
.customer-address-list-item strong,.customer-address-list-item span { display:block; }
.customer-address-list-item span { color:#64748b; font-size:.85rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.customer-address-list-item em { display:inline-flex; margin-top:.35rem; border-radius:999px; padding:.15rem .5rem; background:#dbeafe; color:#2563eb; font-style:normal; font-size:.75rem; font-weight:700; }
@media (max-width: 992px) { .customer-search-row { flex-wrap:wrap; } .customer-search-group { min-width:100%; } .customer-status-filter { flex:1 1 180px; } .customer-mini-grid,.customer-flag-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }

/* Customer area common styling */
.customer-console-page { --cp-blue:#2563eb; --cp-blue-dark:#1d4ed8; --cp-soft:#eef5ff; --cp-border:#dbe7ff; color:#102040; }
.customer-hero,.customer-edit-hero { display:flex; justify-content:space-between; align-items:center; gap:1rem; padding:1.15rem 1.35rem; border:1px solid var(--cp-border); background:linear-gradient(135deg,#f8fbff,#eef5ff); border-radius:1.15rem; box-shadow:0 16px 36px rgba(30,64,175,.08); }
.customer-kpi { border:1px solid var(--cp-border); border-radius:1rem; padding:1rem; background:#fff; min-height:86px; box-shadow:0 12px 24px rgba(30,64,175,.06); }
.customer-kpi span { display:block; color:#64748b; font-size:.86rem; margin-bottom:.35rem; }
.customer-kpi strong { color:#102040; font-size:1.45rem; }
.customer-panel { border:1px solid var(--cp-border) !important; border-radius:1rem !important; overflow:hidden; }
.customer-search-shell { border:1px solid var(--cp-border); border-radius:1rem; padding:.75rem; background:#fff; box-shadow:0 12px 24px rgba(30,64,175,.06); }
.customer-search-row,.customer-filter-line { display:flex; align-items:center; gap:.6rem; flex-wrap:nowrap; }
.customer-search-group,.customer-filter-group { flex:1 1 auto; min-width:420px; }
.customer-search-column { max-width:230px; }
.customer-search-op { max-width:130px; }
.customer-status-select { max-width:160px; }
.customer-table thead th { background:#f8fbff; color:#334155; font-size:.78rem; text-transform:uppercase; letter-spacing:.03em; border-bottom:1px solid var(--cp-border); }
.customer-table td { border-color:#edf2ff; }
.customer-detail-card { border:1px solid var(--cp-border); border-radius:1rem; background:#fff; box-shadow:0 14px 30px rgba(30,64,175,.08); overflow:hidden; }
.customer-detail-header { padding:1.1rem; background:linear-gradient(135deg,#2563eb,#4f46e5); color:#fff; }
.customer-detail-body { padding:1rem; }
.customer-tabs .nav-link,.customer-edit-tabs .nav-link { color:#475569; border-radius:.8rem; font-weight:600; }
.customer-tabs .nav-link.active,.customer-edit-tabs .nav-link.active { color:#fff; background:linear-gradient(135deg,#2563eb,#4f46e5); }
.customer-address-shell,.customer-family-shell { display:grid; grid-template-columns:minmax(240px,32%) 1fr; gap:1rem; }
.customer-list-panel { border:1px solid var(--cp-border); border-radius:1rem; background:#f8fbff; padding:.75rem; max-height:520px; overflow:auto; }
.customer-list-item { width:100%; text-align:left; border:1px solid #e5edff; background:#fff; border-radius:.85rem; padding:.75rem; margin-bottom:.55rem; }
.customer-list-item.active { border-color:#2563eb; box-shadow:0 0 0 .18rem rgba(37,99,235,.12); }
.customer-entry-panel { border:1px solid var(--cp-border); border-radius:1rem; background:#fff; padding:1rem; }
@media (max-width: 991.98px) { .customer-search-row,.customer-filter-line { flex-wrap:wrap; } .customer-search-group,.customer-filter-group { min-width:100%; } .customer-address-shell,.customer-family-shell { grid-template-columns:1fr; } }
.customer-edit-card { background:#fff; border:1px solid var(--cp-border); border-radius:0 0 1rem 1rem; padding:1.1rem; }
.customer-status-dot { width:.85rem; height:.85rem; border-radius:999px; display:inline-block; background:#94a3b8; box-shadow:0 0 0 .25rem rgba(148,163,184,.15); }
.customer-status-dot.active { background:#16a34a; box-shadow:0 0 0 .25rem rgba(22,163,74,.15); }
.customer-flag-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.75rem; }
.customer-check { border:1px solid var(--cp-border); border-radius:.85rem; padding:.7rem .8rem; background:#f8fbff; display:flex; align-items:center; gap:.5rem; }
.customer-photo-panel,.customer-split-list,.customer-split-editor { border:1px solid var(--cp-border); border-radius:1rem; padding:1rem; background:#fff; }
.customer-edit-photo { width:100%; max-height:260px; object-fit:cover; border-radius:.95rem; border:1px solid var(--cp-border); }
.customer-photo-empty,.customer-empty-state { border:1px dashed var(--cp-border); border-radius:1rem; padding:2rem; text-align:center; color:#64748b; background:#f8fbff; }
.customer-photo-empty i { font-size:4rem; color:#94a3b8; }
.customer-address-list { display:flex; flex-direction:column; gap:.65rem; max-height:520px; overflow:auto; }
.customer-address-list-item { border:1px solid #dbe7ff; border-radius:.9rem; background:#fff; text-align:left; padding:.75rem; }
.customer-address-list-item strong,.customer-address-list-item span { display:block; }
.customer-address-list-item span { color:#64748b; font-size:.85rem; }
.customer-address-list-item em { display:inline-block; margin-top:.4rem; color:#2563eb; font-size:.78rem; font-style:normal; font-weight:700; }
.customer-address-list-item.active { border-color:#2563eb; background:#eef5ff; }
@media (max-width: 991.98px) { .customer-flag-grid { grid-template-columns:1fr 1fr; } }
