@font-face {
  font-family: 'Bell MT';
  src: url('./assets/BellMT.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bell MT';
  src: url('./assets/BellMT-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand: #006C69;
  --brand-dark: #004E4C;
  --brand-soft: #E0F2F1;
  --brand-border: rgba(0, 108, 105, 0.18);
  --secondary: #51AF77;
  --accent: #FDB515;
  --surface: #FFFFFF;
  --surface-soft: #F6FBF9;
  --surface-alt: #EDF6F4;
  --text: #113533;
  --muted: #58726F;
  --border: #D5E5E3;
  --warning: #FDB515;
  --danger: #D9383A;
  --success: #51AF77;
  --shadow: 0 22px 60px rgba(0, 62, 60, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(11, 125, 121, 0.16), transparent 26%),
    linear-gradient(180deg, #eff8f7 0%, #f8fcfc 100%);
  color: var(--text);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p,
strong {
  margin: 0;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  max-width: 100%;
  overflow-x: hidden;
}

.login-layout {
  width: min(1120px, 100%);
  max-width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 28px;
  align-items: center;
}

.login-layout > *,
.brand-lockup > * {
  min-width: 0;
  max-width: 100%;
}

.login-hero,
.login-card,
.sidebar,
.topbar,
.panel-card,
.list-item,
.metric-card,
.profile-card,
.status-card,
.highlight-card,
.helper-block {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(216, 231, 229, 0.92);
  box-shadow: var(--shadow);
}

.login-hero,
.login-card,
.sidebar,
.panel-card,
.topbar,
.metric-card {
  border-radius: var(--radius-xl);
}

.login-hero {
  padding: 36px;
  display: grid;
  gap: 32px;
  align-content: center;
  min-height: calc(100vh - 56px);
  background:
    linear-gradient(135deg, rgba(11, 125, 121, 0.97), rgba(6, 93, 90, 0.96)),
    #0b7d79;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.08);
}

.login-hero-compact {
  min-height: 560px;
}

.login-hero .eyebrow,
.login-hero .hero-text {
  color: rgba(255, 255, 255, 0.8);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-mark {
  width: 82px;
  height: 82px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
  flex-shrink: 0;
}

.brand-mark-small {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  font-size: 22px;
}

.hero-text {
  max-width: 700px;
  font-size: 18px;
  line-height: 1.6;
}

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

.login-hero-points {
  display: grid;
  gap: 14px;
}

.login-hero-point {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.login-hero-point span {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}

.highlight-card {
  border-radius: var(--radius-lg);
  padding: 20px;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.highlight-card p {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}

.highlight-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.login-card {
  padding: 30px;
  align-self: center;
}

.login-card-reference {
  max-width: 430px;
  width: 100%;
  padding: 0;
  overflow: hidden;
}

.login-card-inner {
  padding: 30px;
  display: grid;
  gap: 22px;
}

.login-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.login-brand-mini {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-size: 18px;
}

.login-card-title {
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}

.login-card-subtitle {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.login-form-stack {
  display: grid;
  gap: 16px;
}

.floating-field {
  position: relative;
  display: block;
}

.floating-field input {
  padding: 22px 15px 10px;
  background: #ffffff;
}

.floating-field span {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  pointer-events: none;
  transition: all 0.18s ease;
  background: transparent;
}

.floating-field input:focus + span,
.floating-field input:not(:placeholder-shown) + span {
  top: 11px;
  transform: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
}

.login-form-meta {
  display: grid;
  gap: 10px;
}

.inline-check {
  grid-column: auto;
  width: fit-content;
}

.login-meta-text {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.login-submit-btn {
  width: 100%;
}

.login-footnote {
  border-radius: var(--radius-lg);
  padding: 18px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
}

.login-footnote strong {
  display: block;
  margin-bottom: 8px;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

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

.field,
.check-row {
  display: grid;
  gap: 8px;
}

.field span,
.check-row span {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.field.full,
.check-row.full {
  grid-column: 1 / -1;
}

.check-row {
  grid-column: 1 / -1;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  border-radius: var(--radius-sm);
  padding: 14px 15px;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  background: #ffffff;
  border-color: rgba(11, 125, 121, 0.46);
  box-shadow: 0 0 0 4px rgba(11, 125, 121, 0.1);
}

textarea {
  resize: vertical;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.danger-btn,
.logout-btn {
  border: 0;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover,
.danger-btn:hover,
.logout-btn:hover,
.nav-item:hover,
.icon-btn:hover {
  transform: translateY(-1px);
}

.primary-btn:disabled,
.secondary-btn:disabled,
.ghost-btn:disabled,
.danger-btn:disabled,
.logout-btn:disabled,
.nav-item:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.primary-btn {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #ffffff;
  box-shadow: 0 18px 32px rgba(11, 125, 121, 0.18);
}

.secondary-btn {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.ghost-btn {
  background: transparent;
  color: var(--brand-dark);
  border: 1px solid var(--border);
}

.danger-btn {
  background: linear-gradient(135deg, #d65b5b, #aa3737);
  color: #ffffff;
  box-shadow: 0 18px 32px rgba(170, 55, 55, 0.18);
}

.helper-block {
  margin-top: 18px;
  border-radius: var(--radius-lg);
  padding: 18px;
  background: var(--surface-alt);
}

.helper-block strong {
  display: block;
  margin-bottom: 8px;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 16px;
  max-width: 100%;
}

.sidebar {
  padding: 16px 14px;
  display: grid;
  align-content: start;
  gap: 12px;
  position: sticky;
  top: 14px;
  max-height: calc(100vh - 28px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 108, 105, 0.28) transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 251, 251, 0.96)),
    #ffffff;
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(0, 108, 105, 0.25);
  border-radius: 999px;
}

.sidebar-head {
  display: grid;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(216, 231, 229, 0.9);
}

.sidebar-brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.sidebar-copy {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.profile-card {
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: grid;
  gap: 6px;
  background: linear-gradient(180deg, #f6fbfb 0%, #eef7f6 100%);
  border: 1px solid var(--border);
  box-shadow: none;
}

.role-chip,
.nav-count,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.role-chip {
  width: fit-content;
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.nav-groups {
  display: grid;
  gap: 12px;
}

.sidebar-section-label {
  margin-top: 0;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-single {
  gap: 6px;
}

.nav-group {
  display: grid;
  gap: 6px;
}

.nav-title {
  margin: 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-item {
  width: 100%;
  border: 1px solid rgba(216, 231, 229, 0.88);
  background: rgba(246, 251, 251, 0.9);
  padding: 9px 11px;
  border-radius: 13px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 700;
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.nav-item-main {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.nav-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 125, 121, 0.1);
  color: var(--brand-dark);
  flex-shrink: 0;
}

.nav-icon svg {
  width: 16px;
  height: 16px;
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(11, 125, 121, 0.14), rgba(11, 125, 121, 0.08));
  border-color: var(--brand-border);
  color: var(--brand-dark);
  box-shadow: inset 0 0 0 1px rgba(11, 125, 121, 0.06);
}

.nav-item.active .nav-icon {
  background: linear-gradient(135deg, rgba(11, 125, 121, 0.18), rgba(11, 125, 121, 0.1));
}

.nav-count {
  min-height: 24px;
  min-width: 26px;
  padding: 2px 8px;
  font-size: 11px;
  background: var(--surface-alt);
  color: var(--brand-dark);
}

.nav-badges {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.nav-pending-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: #D97706;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.28);
}

.sidebar-note {
  border-radius: var(--radius-md);
  padding: 12px 14px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  display: grid;
  gap: 4px;
}

.sidebar-note strong {
  font-size: 13px;
}

.sidebar-note p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.main-shell {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
}

.topbar {
  padding: 10px 16px;
  min-height: 58px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 12px;
  z-index: 10;
  box-shadow: 0 8px 24px rgba(0, 62, 60, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 251, 251, 0.96)),
    #ffffff;
}

.topbar-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  justify-content: flex-end;
  flex-shrink: 0;
}

.topbar-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.topbar h2 {
  font-size: 17px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-desc {
  font-size: 12.5px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-title-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 125, 121, 0.1);
  color: var(--brand-dark);
  flex-shrink: 0;
}

.topbar-title-icon svg {
  width: 17px;
  height: 17px;
}

.status-card {
  border-radius: 999px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  max-width: 230px;
  border: 1px solid var(--border);
  box-shadow: none;
  background: linear-gradient(180deg, #ffffff 0%, #f4faf9 100%);
}

#sessionSummary {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(15, 143, 106, 0.14);
}

.logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  min-height: 38px;
  border-radius: 11px;
  font-size: 13px;
  background: rgba(204, 77, 77, 0.12);
  color: #8a2f2f;
  border: 1px solid rgba(204, 77, 77, 0.14);
}

.logout-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.icon-btn {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  border-radius: 11px;
  width: 38px;
  height: 38px;
  display: none;
  place-items: center;
  padding: 0;
  flex-shrink: 0;
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--brand-dark);
  margin: 2px 0;
}

.content-shell {
  display: grid;
  gap: 18px;
  min-width: 0;
  max-width: 100%;
}

.view {
  display: grid;
  gap: 18px;
  min-width: 0;
  max-width: 100%;
}

.panel-card,
.metric-card {
  min-width: 0;
  max-width: 100%;
}

.stats-grid,
.content-grid {
  display: grid;
  gap: 20px;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-grid {
  align-items: start;
}

.settings-column-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.password-match-hint {
  margin: -4px 0 2px;
  font-size: 12.5px;
  font-weight: 700;
}

.password-match-hint.ok {
  color: #0d8a5a;
}

.password-match-hint.error {
  color: #c9372c;
}

.form-layout {
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
}

.metric-card,
.panel-card {
  padding: 22px;
}

.panel-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 252, 0.96)),
    #ffffff;
  border: 1px solid rgba(216, 231, 229, 0.9);
}

.metric-card {
  display: grid;
  gap: 18px;
}

.metric-title-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.metric-title-icon,
.section-title-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 125, 121, 0.1);
  color: var(--brand-dark);
  flex-shrink: 0;
}

.metric-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.metric-title-icon svg,
.section-title-icon svg,
.metric-icon svg {
  width: 17px;
  height: 17px;
}

.metric-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  display: grid;
  place-items: center;
}

.metric-value {
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.metric-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.metric-link {
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.panel-head,
.panel-actions,
.item-row,
.item-actions,
.profile-summary,
.summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.panel-head {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(216, 231, 229, 0.88);
}

.panel-head > div:first-child {
  display: grid;
  gap: 4px;
}

.section-title-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.panel-head h3 {
  font-size: 20px;
  line-height: 1.25;
}

.toolbar-filters {
  margin-bottom: 18px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 249, 0.96)),
    #ffffff;
  border: 1px solid rgba(216, 231, 229, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.toolbar-filters .field span,
.panel-card .form-grid .field span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.filter-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 14px;
}

.filter-grid-wide {
  grid-template-columns: 2fr 1fr 1fr;
}

.filter-grid-carte {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.list-toolbar,
.toolbar-actions,
.summary-badges,
.pagination-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.list-toolbar {
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(244, 250, 249, 0.96);
  border: 1px solid rgba(216, 231, 229, 0.88);
}

.summary-badge,
.pagination-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
}

.pagination-bar {
  justify-content: flex-end;
  margin-top: 18px;
}

.list {
  display: grid;
  gap: 14px;
}

.table-shell {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(216, 231, 229, 0.9);
  background: var(--surface);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: linear-gradient(180deg, #f8fcfc 0%, #eef7f6 100%);
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.data-table td {
  font-size: 14px;
  line-height: 1.5;
}

.data-table tbody tr:nth-child(even) {
  background: rgba(246, 251, 251, 0.72);
}

.data-table tbody tr:hover {
  background: rgba(11, 125, 121, 0.04);
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.table-action-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.icon-action-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--brand-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.icon-action-btn:hover {
  transform: translateY(-1px);
}

.icon-action-btn svg {
  width: 18px;
  height: 18px;
}

.icon-action-btn.primary {
  background: rgba(11, 125, 121, 0.12);
  border-color: rgba(11, 125, 121, 0.18);
}

.icon-action-btn.success {
  background: rgba(15, 143, 106, 0.12);
  color: var(--success);
  border-color: rgba(15, 143, 106, 0.18);
}

.icon-action-btn.warning {
  background: rgba(240, 166, 59, 0.14);
  color: #8b5b07;
  border-color: rgba(240, 166, 59, 0.22);
}

.icon-action-btn.danger {
  background: rgba(204, 77, 77, 0.12);
  color: #8a2f2f;
  border-color: rgba(204, 77, 77, 0.18);
}

.icon-action-btn.neutral {
  background: var(--surface-soft);
}

.icon-action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.table-action-empty {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.list-item {
  border-radius: var(--radius-lg);
  padding: 18px;
  background: var(--surface);
  border: 1px solid rgba(216, 231, 229, 0.9);
}

.item-row + .item-row {
  margin-top: 8px;
}

.item-copy {
  color: var(--muted);
  line-height: 1.55;
}

.item-actions {
  margin-top: 14px;
}

.pill {
  width: fit-content;
  background: var(--surface-alt);
  color: var(--brand-dark);
}

.pill.warning {
  background: rgba(240, 166, 59, 0.16);
  color: #8b5b07;
}

.pill.danger {
  background: rgba(204, 77, 77, 0.14);
  color: #8a2f2f;
}

.pill.success {
  background: rgba(15, 143, 106, 0.14);
  color: #0f6c51;
}

.pill.neutral {
  background: rgba(94, 117, 114, 0.12);
  color: #47615d;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.accent-card {
  background: linear-gradient(180deg, #f2faf9 0%, #e7f4f3 100%);
}

.form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 6px;
}

.panel-card .form-grid {
  padding: 18px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 251, 251, 0.96)),
    #ffffff;
  border: 1px solid rgba(216, 231, 229, 0.9);
}

.split-actions .secondary-btn,
.split-actions .primary-btn {
  flex: 1 1 180px;
}

.profile-summary {
  flex-direction: column;
  align-items: stretch;
}

.summary-line {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: 360px;
  padding: 15px 18px;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 18px 34px rgba(8, 52, 50, 0.24);
  z-index: 60;
}

.toast.error {
  background: linear-gradient(135deg, #d65b5b, #aa3737);
}

.action-tooltip {
  position: absolute;
  z-index: 90;
  max-width: 240px;
  padding: 8px 10px;
  border-radius: 10px;
  color: #ffffff;
  background: rgba(20, 50, 48, 0.96);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  pointer-events: none;
  box-shadow: 0 14px 28px rgba(7, 26, 25, 0.22);
}

.empty-state {
  padding: 24px 16px;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border);
  background: var(--surface-soft);
  color: var(--muted);
  text-align: center;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 26, 25, 0.45);
  border: 0;
  padding: 0;
  margin: 0;
  z-index: 25;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 26, 25, 0.5);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 80;
}

.confirm-modal {
  width: min(100%, 480px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 22px;
  display: grid;
  gap: 18px;
}

.documents-modal {
  width: min(100%, 980px);
}

.documents-modal-content {
  display: grid;
  gap: 16px;
}

.documents-modal-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.document-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-soft);
}

.document-preview-link {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #ffffff;
}

.document-preview-image {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.document-empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 18px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
  background: #ffffff;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

.document-open-btn {
  width: 100%;
  justify-content: center;
}

.confirm-modal-head,
.confirm-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.confirm-modal-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.realtime-map-container {
  width: 100%;
  height: 380px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  background: #eaf4f3;
  z-index: 1;
}

.realtime-map-large {
  height: 540px;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dot.online {
  background: #148a3b;
  box-shadow: 0 0 0 3px rgba(20, 138, 59, 0.2);
}

.legend-dot.mission {
  background: #e67e22;
  box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.22);
}

.legend-dot.offline {
  background: #6c7a89;
}

.legend-dot.client {
  background: #1b6ca8;
  box-shadow: 0 0 0 3px rgba(27, 108, 168, 0.2);
}

.portfolio-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-soft);
}

.portfolio-check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.portfolio-check-item:hover {
  border-color: var(--brand);
}

.portfolio-check-item input[type='checkbox'] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--brand);
}

.portfolio-check-copy {
  display: grid;
  gap: 2px;
  font-size: 13px;
}

.portfolio-check-copy strong {
  color: var(--ink);
}

.portfolio-check-copy span {
  color: var(--muted);
  font-size: 12px;
}

.map-pin-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  color: #ffffff;
  font-weight: 800;
  font-size: 12px;
  box-shadow: 0 6px 14px rgba(10, 35, 34, 0.32);
}

.map-pin-badge.online {
  background: #51AF77;
}

.map-pin-badge.mission {
  background: #FDB515;
  color: #113533;
}

.map-pin-badge.offline {
  background: #64748B;
}

.map-pin-badge.client {
  background: #006C69;
}

.brand-wordmark-row {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.brand-wordmark-img {
  height: 28px;
  width: auto;
  display: block;
}

.brand-wordmark-img-light-bg {
  background: #ffffff;
  padding: 6px 12px;
  border-radius: 14px;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.brand-bell-suffix {
  font-family: 'Bell MT', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  color: #006C69;
  line-height: 1;
}

.notif-wrapper {
  position: relative;
}

.notif-bell-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--brand);
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.notif-bell-btn:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
}

.notif-bell-btn svg {
  width: 18px;
  height: 18px;
}

.notif-badge-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--danger);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

.notif-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(390px, calc(100vw - 32px));
  max-height: 460px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  z-index: 60;
}

.notif-dropdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
}

.notif-dropdown-list {
  overflow-y: auto;
  max-height: 390px;
  display: grid;
}

.notif-item {
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: #ffffff;
  padding: 12px 16px;
  display: grid;
  gap: 4px;
}

.notif-item.unread {
  background: #F0FAF6;
  border-left: 4px solid var(--secondary);
}

.notif-item:hover {
  background: var(--surface-alt);
}

.danger-btn {
  border: 1px solid #F3C4C4;
  background: #FFF1F1;
  color: #B4232C;
  border-radius: 12px;
  padding: 11px 18px;
  font-weight: 700;
}

.danger-btn:hover {
  background: #FFE2E2;
}

.danger-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.reject-box {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #F5C2C2;
  background: #FFF8F8;
  display: grid;
  gap: 8px;
}

.reject-box textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #E5B4B4;
  padding: 10px 12px;
  resize: vertical;
}

.missing-fields-box {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #FCA5A5;
  background: #FEF2F2;
  color: #991B1B;
  display: grid;
  gap: 6px;
  font-size: 13px;
}

.missing-fields-box ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 3px;
}

.pending-summary-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(217, 119, 6, 0.35);
  background: #FFFBEB;
  color: #92400E;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.pending-summary-btn:hover {
  background: #FEF3C7;
}

.pending-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #D97706;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.2);
}

.profile-edit-divider {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 14px;
}

.profile-edit-divider h4 {
  margin: 0;
  font-size: 15px;
  color: var(--brand-dark);
}

[hidden] {
  display: none !important;
}

@media (max-width: 1220px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid,
  .two-columns,
  .form-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1120px) {
  .filter-grid-carte {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .status-card {
    max-width: 175px;
  }
}

@media (max-width: 960px) {
  .login-screen {
    padding: 14px;
    align-content: start;
  }

  .login-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .login-hero,
  .login-hero-compact {
    min-height: auto;
    padding: 20px 18px;
    gap: 16px;
  }

  .login-card-reference {
    max-width: 100%;
  }

  .admin-shell {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .sidebar {
    position: fixed;
    top: 10px;
    left: 10px;
    bottom: 10px;
    width: min(290px, calc(100vw - 20px));
    max-height: calc(100dvh - 20px);
    overflow-y: auto;
    z-index: 30;
    transform: translateX(-120%);
    transition: transform 0.24s ease;
  }

  .admin-shell.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .icon-btn {
    display: grid;
  }

  .topbar {
    top: 10px;
  }
}

@media (max-width: 720px) {
  .form-grid,
  .stats-grid,
  .quick-actions,
  .filter-grid,
  .filter-grid-wide,
  .filter-grid-carte {
    grid-template-columns: 1fr;
  }

  .login-hero,
  .login-card,
  .panel-card,
  .metric-card,
  .sidebar {
    border-radius: 18px;
  }

  .panel-card,
  .metric-card {
    padding: 16px;
  }

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

  .brand-lockup {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }

  .brand-wordmark-img {
    height: 22px;
  }

  .brand-bell-suffix {
    font-size: 20px;
  }

  .login-hero h1 {
    font-size: 20px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .hero-text {
    font-size: 13.5px;
    line-height: 1.45;
  }

  .login-hero-points {
    display: none;
  }

  .login-card-reference {
    max-width: 100%;
  }

  .login-card-reference .login-card-inner {
    padding: 18px 16px;
    gap: 16px;
  }

  .admin-shell {
    padding: 10px;
    gap: 12px;
  }

  .topbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    gap: 8px;
    border-radius: 16px;
    top: 8px;
    min-height: 52px;
  }

  .topbar-main {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    width: auto;
    flex: 1;
    min-width: 0;
  }

  .topbar-title-icon,
  .topbar-desc,
  .status-card {
    display: none;
  }

  .pending-summary-btn {
    padding: 5px 8px;
    min-height: 32px;
    font-size: 11px;
  }

  .topbar h2 {
    font-size: 15px;
  }

  .topbar-actions {
    flex-direction: row;
    align-items: center;
    gap: 6px;
    width: auto;
    flex-shrink: 0;
  }

  .logout-btn {
    width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    justify-content: center;
  }

  .logout-btn .logout-label {
    display: none;
  }

  .notif-dropdown {
    position: fixed;
    top: 66px;
    left: 10px;
    right: 10px;
    width: auto;
    max-height: 70vh;
  }

  .toolbar-filters {
    padding: 14px;
  }

  .realtime-map-container {
    height: 280px;
  }

  .realtime-map-large {
    height: 360px;
  }

  .list-toolbar,
  .toolbar-actions,
  .summary-badges,
  .pagination-bar,
  .metric-footer,
  .panel-head,
  .panel-actions,
  .item-row,
  .item-actions,
  .table-action-group,
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .login-card-head {
    align-items: flex-start;
  }

  .metric-value {
    font-size: 28px;
  }

  .data-table {
    min-width: 720px;
  }

  .confirm-modal-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .confirm-modal-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }
}
