/* ═══════════════════════════════════════════════════════════════
   RAAH ENERGIE – Design System
   Primary: #1A6B4A (Dark Green)  |  Accent: #F5A623 (Orange)
═══════════════════════════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #1A6B4A;
  --navy-dark:  #0F4D34;
  --navy-light: #E6F4ED;
  --orange:     #F5A623;
  --orange-dark:#CC7A00;
  --orange-light:#FFF8E7;
  --green:      #10B981;
  --red:        #EF4444;
  --purple:     #7C3AED;
  --text:       #1F2937;
  --text-muted: #6B7280;
  --border:     #E5E7EB;
  --bg:         #F8FAFC;
  --white:      #FFFFFF;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.10);
  --shadow-md:  0 4px 16px rgba(0,0,0,.12);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.16);
  --radius:     10px;
  --radius-sm:  6px;
  --radius-lg:  16px;
  font-family: 'Inter', system-ui, sans-serif;
}

html { font-size: 15px; }
body { color: var(--text); background: var(--bg); min-height: 100vh; }
a { color: var(--navy); text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }


/* ═══════════════════════════════════════════════════════════════
   LOGIN PAGE
═══════════════════════════════════════════════════════════════ */

.login-body { display: flex; align-items: stretch; min-height: 100vh; overflow: hidden; }

.login-bg {
  position: fixed; inset: 0; display: flex;
  pointer-events: none; z-index: 0;
}

.bg-panel { flex: 1; }

.bg-panel--left {
  background: linear-gradient(145deg, #0F4D34 0%, #1A6B4A 60%, #228B5A 100%);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 4rem 3rem 4rem 5rem;
  pointer-events: auto;
  position: relative; overflow: hidden;
}

.bg-panel--left::before {
  content: '';
  position: absolute; top: -120px; right: -80px;
  width: 380px; height: 380px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
}
.bg-panel--left::after {
  content: '';
  position: absolute; bottom: -100px; left: -60px;
  width: 280px; height: 280px;
  background: rgba(243,113,33,.12);
  border-radius: 50%;
}

.bg-panel--right {
  background: var(--bg);
}

.brand-mark { display: flex; align-items: center; gap: 1rem; margin-bottom: 2.5rem; }
.brand-icon { width: 56px; height: 56px; }
.brand-name { display: flex; flex-direction: column; }
.brand-main { font-size: 1.3rem; font-weight: 700; color: white; letter-spacing: .04em; }
.brand-sub  { font-size: .85rem; font-weight: 400; color: rgba(255,255,255,.7); letter-spacing: .08em; }

.brand-tagline {
  font-size: 1.6rem; font-weight: 600; color: white;
  line-height: 1.3; margin-bottom: 3rem; max-width: 300px;
}

.brand-features { display: flex; flex-direction: column; gap: .9rem; }
.feature-item {
  display: flex; align-items: center; gap: .7rem;
  color: rgba(255,255,255,.85); font-size: .9rem;
}
.feature-icon { font-size: 1.1rem; }

/* Login Card */
.login-container {
  position: relative; z-index: 1;
  width: 50%; margin-left: 50%;
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 2rem;
}

.login-card {
  width: 100%; max-width: 440px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.login-card__header {
  background: linear-gradient(135deg, #0F4D34 0%, #1A6B4A 100%);
  padding: 2.2rem 2.5rem 2rem;
  text-align: center;
}

.login-logo {
  display: flex; justify-content: center; margin-bottom: 1rem;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.3));
}

.login-title {
  font-size: 1.5rem; font-weight: 700; color: white; margin-bottom: .3rem;
}
.login-subtitle { font-size: .85rem; color: rgba(255,255,255,.7); }

.login-form { padding: 2rem 2.5rem; }

.login-card__footer {
  background: var(--bg);
  padding: .9rem 2.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: .75rem; color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   FORM COMPONENTS
═══════════════════════════════════════════════════════════════ */

.form-group { display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.form-group--full { flex: 0 0 100%; width: 100%; }

.form-label {
  font-size: .8rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .04em;
}
.form-label small { text-transform: none; font-weight: 400; font-size: .75rem; }

.form-row { display: flex; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.form-row--3 > .form-group { flex: 1 1 calc(33.333% - .67rem); min-width: 120px; }

.input-wrapper { position: relative; display: flex; align-items: center; }

.input-icon {
  position: absolute; left: .8rem; color: var(--text-muted);
  display: flex; align-items: center; pointer-events: none;
}

.toggle-password {
  position: absolute; right: .8rem; color: var(--text-muted);
  display: flex; align-items: center;
  transition: color .2s;
}
.toggle-password:hover { color: var(--navy); }

.form-input, .form-select {
  width: 100%; height: 44px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem; color: var(--text);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  padding: 0 .8rem;
}

.form-input { padding-left: 2.6rem; }
.form-input:not(.input-wrapper .form-input) { padding-left: .8rem; }

.form-select { padding-left: .8rem; appearance: none; cursor: pointer; }

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(0,59,111,.1);
}

.form-input::placeholder { color: #B0B8C4; }

.form-select--lg { height: 50px; font-size: 1rem; }


/* ═══════════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .45rem; padding: .6rem 1.2rem;
  border-radius: var(--radius-sm); font-size: .88rem; font-weight: 600;
  transition: all .18s; white-space: nowrap;
}

.btn--primary {
  background: var(--navy); color: white;
  box-shadow: 0 2px 8px rgba(0,59,111,.3);
}
.btn--primary:hover { background: var(--navy-dark); transform: translateY(-1px); }

.btn--orange {
  background: var(--orange); color: white;
  box-shadow: 0 2px 8px rgba(243,113,33,.35);
}
.btn--orange:hover { background: var(--orange-dark); transform: translateY(-1px); }

.btn--outline {
  border: 1.5px solid rgba(255,255,255,.6); color: white;
  background: rgba(255,255,255,.1);
}
.btn--outline:hover { background: rgba(255,255,255,.2); }

.btn--ghost {
  color: var(--text-muted); background: var(--bg);
  border: 1.5px solid var(--border);
}
.btn--ghost:hover { background: var(--border); color: var(--text); }

.btn--full { width: 100%; height: 48px; font-size: 1rem; }
.btn--sm { padding: .4rem .85rem; font-size: .8rem; }
.btn--lg { height: 50px; padding: .6rem 1.8rem; font-size: .95rem; }


/* ═══════════════════════════════════════════════════════════════
   ALERTS
═══════════════════════════════════════════════════════════════ */

.alert {
  display: flex; align-items: center; gap: .6rem;
  padding: .75rem 1rem; border-radius: var(--radius-sm);
  font-size: .875rem; margin: .5rem 2.5rem 0;
}
.alert--danger  { background: #FEF2F2; color: #991B1B; border-left: 3px solid var(--red); }
.alert--success { background: #ECFDF5; color: #065F46; border-left: 3px solid var(--green); }
.alert--info    { background: #EFF6FF; color: #1E40AF; border-left: 3px solid #3B82F6; }
.alert--warning { background: #FFFBEB; color: #92400E; border-left: 3px solid #F59E0B; }

.alert--dismissible {
  display: flex; justify-content: space-between; align-items: center;
  margin: 0 0 .5rem 0; border-radius: var(--radius-sm);
}
.alert--dismissible button {
  font-size: 1rem; line-height: 1; color: inherit; opacity: .6; padding: 0 .2rem;
}
.alert--dismissible button:hover { opacity: 1; }
.alert__icon { font-size: 1rem; flex-shrink: 0; }


/* ═══════════════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════════════ */

.navbar {
  height: 64px;
  background: linear-gradient(90deg, #0F4D34 0%, #1A6B4A 100%);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}

.navbar__brand { display: flex; align-items: center; gap: .8rem; }
.navbar__brand-text { display: flex; flex-direction: column; }
.navbar__brand-main { font-size: .95rem; font-weight: 700; color: white; letter-spacing: .03em; }
.navbar__brand-sub  { font-size: .7rem; color: rgba(255,255,255,.65); font-weight: 400; }

.navbar__actions { display: flex; align-items: center; gap: 1.2rem; }

.navbar__user { display: flex; align-items: center; gap: .6rem; }
.user-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--orange); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem;
  border: 2px solid rgba(255,255,255,.3);
}
.user-info { display: flex; flex-direction: column; }
.user-name { font-size: .85rem; font-weight: 600; color: white; }
.user-role { font-size: .72rem; color: rgba(255,255,255,.65); }


/* ═══════════════════════════════════════════════════════════════
   DASHBOARD LAYOUT
═══════════════════════════════════════════════════════════════ */

.dashboard-body { background: var(--bg); }

.main-content {
  max-width: 1400px; margin: 0 auto;
  padding: 1.5rem 2rem 3rem;
}

#flash-container { margin-bottom: .5rem; }

/* Stats */
.stats-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem; margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--white); border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  display: flex; align-items: center; gap: 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow .2s;
}
.stat-card:hover { box-shadow: var(--shadow-md); }

.stat-card__icon {
  width: 50px; height: 50px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-card__icon--blue   { background: var(--navy-light); color: var(--navy); }
.stat-card__icon--orange { background: var(--orange-light); color: var(--orange); }
.stat-card__icon--green  { background: #ECFDF5; color: var(--green); }

.stat-card__body { display: flex; flex-direction: column; }
.stat-card__value { font-size: 1.8rem; font-weight: 700; color: var(--text); line-height: 1; }
.stat-card__label { font-size: .8rem; color: var(--text-muted); margin-top: .2rem; }

/* Action Row */
.action-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem; flex-wrap: wrap; gap: .8rem;
}
.action-row__right { display: flex; gap: .75rem; }

.section-title {
  display: flex; align-items: center; gap: .5rem;
  font-size: 1.1rem; font-weight: 700; color: var(--text);
}

/* Search */
.search-bar {
  display: flex; align-items: center; gap: 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .5rem .75rem .5rem .5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}
.search-bar__input-wrap { flex: 1; display: flex; align-items: center; gap: .5rem; }
.search-icon { color: var(--text-muted); flex-shrink: 0; }
.search-input {
  border: none; outline: none; width: 100%;
  font-size: .9rem; color: var(--text);
  background: transparent;
}
.search-input::placeholder { color: #B0B8C4; }
.search-count { font-size: .8rem; color: var(--text-muted); white-space: nowrap; }


/* ═══════════════════════════════════════════════════════════════
   DATA TABLE
═══════════════════════════════════════════════════════════════ */

.table-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.data-table {
  width: 100%; border-collapse: collapse;
  font-size: .855rem;
}

.data-table thead tr {
  background: var(--navy);
}
.data-table thead th {
  padding: .8rem 1rem;
  text-align: left;
  font-weight: 600; font-size: .78rem;
  color: rgba(255,255,255,.9);
  letter-spacing: .04em; text-transform: uppercase;
  white-space: nowrap;
}

.data-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background .12s;
}
.data-table tbody tr:hover { background: var(--navy-light); }
.data-table tbody tr:last-child { border-bottom: none; }

.data-table td {
  padding: .75rem 1rem;
  color: var(--text);
  vertical-align: middle;
}

.td-num { color: var(--text-muted); font-size: .8rem; width: 40px; }
.td-mono { font-family: 'Courier New', monospace; font-size: .83rem; }
.td-name { min-width: 180px; }

.client-name { font-weight: 600; color: var(--text); }
.client-email { font-size: .78rem; color: var(--text-muted); }

/* Badges */
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .2rem .55rem; border-radius: 99px;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
}
.badge--blue   { background: var(--navy-light); color: var(--navy); }
.badge--purple { background: #EDE9FE; color: var(--purple); }

/* Action buttons */
.td-actions { display: flex; gap: .35rem; }

.action-btn {
  width: 30px; height: 30px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.action-btn--view { background: var(--navy-light); color: var(--navy); }
.action-btn--view:hover { background: var(--navy); color: white; }
.action-btn--edit { background: #EEF2FF; color: #4F46E5; }
.action-btn--edit:hover { background: #4F46E5; color: white; }
.action-btn--doc  { background: var(--orange-light); color: var(--orange); }
.action-btn--doc:hover  { background: var(--orange); color: white; }
.action-btn--del  { background: #FEF2F2; color: var(--red); }
.action-btn--del:hover  { background: var(--red); color: white; }

/* Empty State */
.empty-state {
  padding: 4rem 2rem; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: .8rem;
}
.empty-state__icon { font-size: 3.5rem; }
.empty-state h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.empty-state p { color: var(--text-muted); font-size: .9rem; }


/* ═══════════════════════════════════════════════════════════════
   MODALS
═══════════════════════════════════════════════════════════════ */

.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.modal-overlay.is-open {
  opacity: 1; pointer-events: auto;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%; max-width: 640px;
  max-height: 92vh; overflow-y: auto;
  transform: translateY(20px);
  transition: transform .25s;
  display: flex; flex-direction: column;
}
.modal--medium { max-width: 700px; }
.modal-overlay.is-open .modal { transform: translateY(0); }

.modal__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.3rem 1.5rem;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--white); z-index: 2;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.modal__title {
  display: flex; align-items: center; gap: .6rem;
  font-size: 1.05rem; font-weight: 700; color: var(--navy);
}
.modal__close {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--text-muted);
  transition: all .15s;
}
.modal__close:hover { background: var(--border); color: var(--text); }

.modal__body {
  padding: 1.5rem;
  flex: 1;
}

.modal__footer {
  display: flex; justify-content: flex-end; gap: .75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  position: sticky; bottom: 0; background: var(--white); z-index: 2;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Form Tabs */
.form-tabs {
  display: flex; gap: 0; margin-bottom: 1.5rem;
  background: var(--bg); border-radius: var(--radius-sm);
  padding: 3px; border: 1px solid var(--border);
}
.tab-btn {
  flex: 1; padding: .5rem .8rem;
  border-radius: 6px; font-size: .82rem; font-weight: 500;
  color: var(--text-muted); transition: all .15s;
}
.tab-btn--active { background: var(--navy); color: white; font-weight: 600; }
.tab-btn:hover:not(.tab-btn--active) { background: var(--border); color: var(--text); }

.tab-content { display: none; }
.tab-content--active { display: block; }


/* Document Type Grid */
.gendoc-step { margin-bottom: 1.8rem; }
.gendoc-step__label {
  display: flex; align-items: center; gap: .7rem;
  font-size: .9rem; font-weight: 700; color: var(--text);
  margin-bottom: .9rem;
}
.step-badge {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--navy); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; flex-shrink: 0;
}

.doc-type-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
}

.doc-type-card {
  position: relative; display: flex; flex-direction: column;
  align-items: center; text-align: center;
  padding: 1.2rem .9rem;
  border: 2px solid var(--border); border-radius: var(--radius);
  cursor: pointer; transition: all .18s;
  background: var(--white);
}
.doc-type-card:hover:not(.doc-type-card--disabled) {
  border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0,59,111,.08);
}
.doc-type-card--selected {
  border-color: var(--navy); background: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(0,59,111,.1);
}
.doc-type-card--disabled {
  opacity: .6; cursor: not-allowed;
  background: var(--bg);
}

.doc-type-radio { position: absolute; opacity: 0; pointer-events: none; }

.doc-type-card__icon { font-size: 1.8rem; margin-bottom: .4rem; }
.doc-type-card__title { font-size: .88rem; font-weight: 700; color: var(--text); margin-bottom: .2rem; }
.doc-type-card__desc { font-size: .75rem; color: var(--text-muted); line-height: 1.4; }
.doc-type-card__badge {
  margin-top: .5rem; padding: .15rem .55rem;
  border-radius: 99px; font-size: .7rem; font-weight: 700;
  background: var(--orange); color: white;
}
.doc-type-card__badge--soon { background: var(--border); color: var(--text-muted); }

/* View Client Detail */
.client-detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem;
}
.detail-section { background: var(--bg); border-radius: var(--radius-sm); padding: 1rem; }
.detail-section__title {
  font-size: .75rem; font-weight: 700; color: var(--navy);
  text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: .7rem; padding-bottom: .4rem;
  border-bottom: 2px solid var(--orange);
}
.detail-row { display: flex; flex-direction: column; gap: .1rem; margin-bottom: .55rem; }
.detail-row:last-child { margin-bottom: 0; }
.detail-label { font-size: .73rem; color: var(--text-muted); font-weight: 500; }
.detail-value { font-size: .88rem; color: var(--text); font-weight: 500; }


/* ═══════════════════════════════════════════════════════════════
   TOAST
═══════════════════════════════════════════════════════════════ */

.toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999;
  padding: .9rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: .88rem; font-weight: 500; color: white;
  box-shadow: var(--shadow-lg);
  transition: all .3s;
  max-width: 380px;
}
.toast--hidden { opacity: 0; transform: translateY(10px); pointer-events: none; }
.toast--success { background: var(--green); }
.toast--error   { background: var(--red); }
.toast--info    { background: var(--navy); }


/* ═══════════════════════════════════════════════════════════════
   USER DROPDOWN
═══════════════════════════════════════════════════════════════ */

.user-dropdown { position: relative; }

.user-dropdown__trigger {
  display: flex; align-items: center; gap: .6rem;
  padding: .4rem .7rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  transition: background .15s;
  cursor: pointer;
}
.user-dropdown__trigger:hover { background: rgba(255,255,255,.2); }

.dropdown-arrow { color: rgba(255,255,255,.8); transition: transform .2s; flex-shrink:0; }
.user-dropdown.is-open .dropdown-arrow { transform: rotate(180deg); }

.user-dropdown__menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  width: 230px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0; pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .18s, transform .18s;
  z-index: 200;
}
.user-dropdown.is-open .user-dropdown__menu {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}

.dropdown-item {
  display: flex; align-items: center; gap: .65rem;
  width: 100%; padding: .7rem 1rem;
  font-size: .875rem; font-weight: 500; color: var(--text);
  text-align: left; text-decoration: none;
  background: none; border: none; cursor: pointer;
  transition: background .12s;
}
.dropdown-item:hover { background: var(--navy-light); color: var(--navy); }
.dropdown-item svg { flex-shrink: 0; opacity: .7; }
.dropdown-item--danger { color: var(--red); }
.dropdown-item--danger:hover { background: #FEF2F2; }

.dropdown-divider {
  height: 1px; background: var(--border); margin: .25rem 0;
}


/* ═══════════════════════════════════════════════════════════════
   PROFILE CARD
═══════════════════════════════════════════════════════════════ */

.profile-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 1.2rem; text-align: center; padding: .5rem 0 1rem;
}

.profile-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--orange));
  color: white; font-size: 1.8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(26,107,74,.3);
}

.profile-info { width: 100%; }

.profile-detail-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: .8rem; text-align: left; margin-top: .5rem;
}

.profile-detail {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
}
.profile-detail__label {
  font-size: .72rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .04em; margin-bottom: .2rem;
}
.profile-detail__value {
  font-size: .92rem; font-weight: 600; color: var(--text);
}
.profile-detail__value--mono { font-family: monospace; font-size: .85rem; }

.profile-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .25rem .7rem; border-radius: 99px;
  font-size: .75rem; font-weight: 700;
}
.profile-badge--admin    { background: var(--orange-light); color: var(--orange-dark); }
.profile-badge--operator { background: var(--navy-light);   color: var(--navy); }


/* ═══════════════════════════════════════════════════════════════
   PASSWORD DISPLAY
═══════════════════════════════════════════════════════════════ */

.password-display {
  padding: .5rem 0;
}
.password-label {
  font-size: .8rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .04em; margin-bottom: .5rem;
}
.password-box {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: .75rem 1rem;
  font-size: 1rem;
}
.password-hidden { font-family: monospace; font-size: 1.2rem; letter-spacing: .1em; color: var(--text-muted); }
.password-plain  { font-family: monospace; font-size: 1rem; font-weight: 700; color: var(--navy); letter-spacing: .05em; }
.password-toggle {
  color: var(--text-muted); display: flex; align-items: center;
  transition: color .15s;
}
.password-toggle:hover { color: var(--navy); }


/* ═══════════════════════════════════════════════════════════════
   USERS TABLE (in modal)
═══════════════════════════════════════════════════════════════ */

.add-user-section {
  background: var(--bg); border-radius: var(--radius-sm);
  padding: 1rem; margin-bottom: 1.2rem;
  border: 1px solid var(--border);
}
.add-user-section__title {
  font-size: .85rem; font-weight: 700; color: var(--navy);
  margin-bottom: .8rem;
}

.users-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.users-table thead tr { background: var(--navy); }
.users-table thead th {
  padding: .65rem .9rem; text-align: left;
  font-size: .75rem; font-weight: 600;
  color: rgba(255,255,255,.9); letter-spacing: .04em; text-transform: uppercase;
}
.users-table tbody tr { border-bottom: 1px solid var(--border); transition: background .12s; }
.users-table tbody tr:last-child { border-bottom: none; }
.users-table tbody tr:hover { background: var(--navy-light); }
.users-table td { padding: .65rem .9rem; vertical-align: middle; }
.user-pass-cell { font-family: monospace; }


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .bg-panel--left { display: none; }
  .login-container { width: 100%; margin-left: 0; }
  .stats-row { grid-template-columns: 1fr; }
  .doc-type-grid { grid-template-columns: 1fr; }
  .client-detail-grid { grid-template-columns: 1fr; }
  .navbar__brand-sub { display: none; }
  .user-info { display: none; }
}

@media (max-width: 600px) {
  .main-content { padding: 1rem; }
  .action-row { flex-direction: column; align-items: stretch; }
  .action-row__right { flex-direction: column; }
  .modal { margin: .5rem; }
  .form-row { flex-direction: column; }
  .form-group { flex: unset; }
}
