@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap");

:root {
  --sq-bg: #edf4fb;
  --sq-bg-strong: #dceef8;
  --sq-surface: #ffffff;
  --sq-surface-soft: #f5fbfe;
  --sq-line: #cde4f0;
  --sq-line-strong: #99c8dd;
  --sq-text: #10263c;
  --sq-muted: #56708a;
  --sq-brand: #00aeef;
  --sq-brand-strong: #007fae;
  --sq-brand-soft: rgba(0, 174, 239, 0.12);
  --sq-secondary: #0097d1;
  --sq-accent: #ffd700;
  --sq-accent-soft: rgba(255, 215, 0, 0.16);
  --sq-warning: #c79a00;
  --sq-success: #1f7a62;
  --sq-danger: #e30613;
  --sq-shadow: 0 18px 44px rgba(0, 91, 128, 0.12);
  --sq-shadow-soft: 0 10px 24px rgba(0, 91, 128, 0.08);
  --sq-radius-xl: 28px;
  --sq-radius-lg: 22px;
  --sq-radius-md: 16px;
  --sq-radius-sm: 12px;
  --sq-sidebar-width: 288px;
}

html.theme-dark,
body.theme-dark {
  --sq-bg: #071521;
  --sq-bg-strong: #0d2133;
  --sq-surface: #10263a;
  --sq-surface-soft: #163149;
  --sq-line: #244862;
  --sq-line-strong: #3189ac;
  --sq-text: #ebf4fd;
  --sq-muted: #9eb4c9;
  --sq-brand: #23c0fb;
  --sq-brand-strong: #0097d1;
  --sq-brand-soft: rgba(35, 192, 251, 0.18);
  --sq-secondary: #55d4ff;
  --sq-accent: #ffd700;
  --sq-accent-soft: rgba(255, 215, 0, 0.18);
  --sq-warning: #ffd24d;
  --sq-success: #2fa882;
  --sq-danger: #ff5f68;
  --sq-shadow: 0 18px 44px rgba(1, 9, 15, 0.42);
  --sq-shadow-soft: 0 12px 28px rgba(1, 9, 15, 0.32);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--sq-text);
  background:
    radial-gradient(circle at top left, rgba(0, 174, 239, 0.18), transparent 26%),
    radial-gradient(circle at bottom right, rgba(255, 215, 0, 0.08), transparent 28%),
    linear-gradient(180deg, #f7fbff 0%, var(--sq-bg) 100%);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}

html.theme-dark body,
body.theme-dark {
  background:
    radial-gradient(circle at top left, rgba(35, 192, 251, 0.16), transparent 24%),
    radial-gradient(circle at bottom right, rgba(255, 215, 0, 0.08), transparent 26%),
    linear-gradient(180deg, #08131d 0%, var(--sq-bg) 100%);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  font-family: "Manrope", "IBM Plex Sans", sans-serif;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
}

.btn,
.form-control,
.form-select {
  border-radius: 14px;
}

.btn-primary {
  border-color: var(--sq-brand);
  background: linear-gradient(135deg, var(--sq-brand) 0%, var(--sq-secondary) 100%);
  box-shadow: 0 10px 24px rgba(0, 174, 239, 0.2);
}

.btn-primary:hover,
.btn-primary:focus {
  border-color: var(--sq-brand-strong);
  background: linear-gradient(135deg, var(--sq-brand-strong) 0%, var(--sq-brand) 100%);
  box-shadow: 0 12px 28px rgba(0, 174, 239, 0.24);
}

.btn-outline-primary {
  color: var(--sq-brand);
  border-color: rgba(0, 174, 239, 0.34);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: var(--sq-brand);
  border-color: var(--sq-brand);
  color: #ffffff;
}

.btn-outline-secondary {
  color: #9b7800;
  border-color: rgba(255, 215, 0, 0.42);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  background: var(--sq-accent);
  border-color: var(--sq-accent);
  color: #5b4500;
}

.btn-light {
  color: var(--sq-brand-strong);
}

.topbar__theme-toggle {
  width: 46px;
  height: 46px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  font-size: 1rem;
}

.form-control,
.form-select {
  min-height: 48px;
  border: 1px solid var(--sq-line);
  background: #fbfdff;
  color: var(--sq-text);
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(0, 174, 239, 0.46);
  box-shadow: 0 0 0 0.2rem rgba(0, 174, 239, 0.12);
}

.form-label {
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--sq-text);
}

.table-surface {
  width: 100%;
  overflow: hidden;
  border-radius: var(--sq-radius-lg);
  border: 1px solid rgba(20, 58, 92, 0.08);
  background: var(--sq-surface);
  box-shadow: var(--sq-shadow-soft);
}

.table-surface .table {
  margin-bottom: 0;
}

.table-surface thead th {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(0, 174, 239, 0.12);
  background: linear-gradient(180deg, rgba(0, 174, 239, 0.08) 0%, #f4f9fd 100%);
  color: var(--sq-text);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.table-surface tbody td {
  padding: 1rem 1.1rem;
  border-color: rgba(20, 58, 92, 0.07);
  vertical-align: middle;
}

.table-surface tbody tr:hover {
  background: #fbfdff;
}

html.theme-dark .auth-card,
body.theme-dark .auth-card,
html.theme-dark .topbar,
body.theme-dark .topbar,
html.theme-dark .footer-bar,
body.theme-dark .footer-bar,
html.theme-dark .table-surface,
body.theme-dark .table-surface {
  background: rgba(16, 38, 58, 0.88);
  border-color: rgba(255, 255, 255, 0.06);
}

html.theme-dark .content-card,
body.theme-dark .content-card,
html.theme-dark .hero-card,
body.theme-dark .hero-card,
html.theme-dark .metric-card,
body.theme-dark .metric-card,
html.theme-dark .doc-card,
body.theme-dark .doc-card,
html.theme-dark .feature-card,
body.theme-dark .feature-card,
html.theme-dark .empty-state,
body.theme-dark .empty-state {
  background: var(--sq-surface);
  border-color: rgba(255, 255, 255, 0.06);
}

html.theme-dark .form-control,
body.theme-dark .form-control,
html.theme-dark .form-select,
body.theme-dark .form-select {
  background: rgba(13, 33, 51, 0.96);
  border-color: var(--sq-line);
  color: var(--sq-text);
}

html.theme-dark .form-control::placeholder,
body.theme-dark .form-control::placeholder {
  color: #86a1b8;
}

html.theme-dark .table-surface thead th,
body.theme-dark .table-surface thead th {
  background: rgba(255, 255, 255, 0.04);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  color: var(--sq-text);
}

html.theme-dark .table-surface .table,
body.theme-dark .table-surface .table {
  --bs-table-color: var(--sq-text);
  --bs-table-bg: transparent;
  --bs-table-border-color: rgba(255, 255, 255, 0.05);
  --bs-table-striped-bg: rgba(255, 255, 255, 0.025);
  --bs-table-striped-color: var(--sq-text);
  --bs-table-active-bg: rgba(255, 255, 255, 0.04);
  --bs-table-active-color: var(--sq-text);
  --bs-table-hover-bg: rgba(255, 255, 255, 0.04);
  --bs-table-hover-color: var(--sq-text);
  --bs-table-accent-bg: transparent;
  color: var(--sq-text);
}

html.theme-dark .table-surface .table > :not(caption) > * > *,
body.theme-dark .table-surface .table > :not(caption) > * > * {
  background-color: rgba(10, 27, 42, 0.94);
  color: var(--sq-text);
}

html.theme-dark .table-surface .table tbody tr:nth-child(even) > *,
body.theme-dark .table-surface .table tbody tr:nth-child(even) > * {
  background-color: rgba(12, 31, 48, 0.98);
}

html.theme-dark .table-surface tbody td,
body.theme-dark .table-surface tbody td {
  border-color: rgba(255, 255, 255, 0.05);
}

html.theme-dark .table-surface tbody tr:hover,
body.theme-dark .table-surface tbody tr:hover,
html.theme-dark .display-call-row,
body.theme-dark .display-call-row,
html.theme-dark .display-announcement,
body.theme-dark .display-announcement {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
}

html.theme-dark .table-surface tbody tr:hover > *,
body.theme-dark .table-surface tbody tr:hover > * {
  background-color: rgba(255, 255, 255, 0.05);
}

html.theme-dark .selection-card,
body.theme-dark .selection-card {
  background: linear-gradient(180deg, rgba(18, 42, 63, 0.96) 0%, rgba(12, 31, 48, 0.96) 100%);
  border-color: rgba(255, 255, 255, 0.06);
}

html.theme-dark .alert,
body.theme-dark .alert {
  background: rgba(16, 38, 58, 0.9);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--sq-text);
}

html.theme-dark .alert-success,
body.theme-dark .alert-success {
  background: rgba(47, 168, 130, 0.18);
  border-color: rgba(47, 168, 130, 0.3);
  color: #baf1dd;
}

html.theme-dark .alert-danger,
body.theme-dark .alert-danger {
  background: rgba(225, 109, 118, 0.16);
  border-color: rgba(225, 109, 118, 0.28);
  color: #ffd7db;
}

html.theme-dark .alert-warning,
body.theme-dark .alert-warning {
  background: rgba(255, 184, 77, 0.16);
  border-color: rgba(255, 184, 77, 0.28);
  color: #ffe5b1;
}

html.theme-dark .alert-info,
body.theme-dark .alert-info {
  background: rgba(122, 200, 255, 0.16);
  border-color: rgba(122, 200, 255, 0.28);
  color: #d8f1ff;
}

.metric-card,
.content-card,
.hero-card,
.feature-card,
.doc-card,
.empty-state {
  border: 1px solid rgba(0, 174, 239, 0.1);
  border-radius: var(--sq-radius-lg);
  background: var(--sq-surface);
  box-shadow: var(--sq-shadow-soft);
}

.metric-card {
  height: 100%;
  padding: 1.35rem;
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sq-brand) 0%, var(--sq-accent) 100%);
}

.metric-card__icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(0, 174, 239, 0.16), rgba(255, 215, 0, 0.16));
  color: var(--sq-brand);
  font-size: 1.2rem;
  border: 1px solid rgba(0, 174, 239, 0.14);
}

.metric-card__value {
  margin: 1rem 0 0.3rem;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.metric-card__label {
  margin: 0;
  color: var(--sq-muted);
  font-size: 0.95rem;
}

.content-card,
.hero-card,
.doc-card {
  padding: 1.5rem;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.section-heading h4,
.section-heading h5 {
  margin-bottom: 0.25rem;
}

.section-heading p {
  margin: 0;
  color: var(--sq-muted);
}

.status-pill,
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}

.status-pill {
  background: var(--sq-brand-soft);
  color: var(--sq-brand);
}

.meta-pill {
  background: rgba(20, 58, 92, 0.07);
  color: var(--sq-muted);
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(29, 111, 184, 0.12);
  color: var(--sq-brand);
  font-size: 0.78rem;
  font-weight: 700;
}

.empty-state {
  padding: 2rem;
  text-align: center;
}

.empty-state__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(15, 76, 129, 0.12), rgba(77, 157, 224, 0.16));
  color: var(--sq-brand);
  font-size: 1.6rem;
}

.empty-state p {
  margin: 0.6rem auto 0;
  max-width: 520px;
  color: var(--sq-muted);
}

.auth-body,
.public-body {
  min-height: 100vh;
}

.public-shell {
  min-height: 100vh;
  padding: 36px;
}

.public-grid {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(420px, 0.8fr);
  gap: 24px;
}

.public-panel,
.auth-card {
  border-radius: 32px;
  box-shadow: var(--sq-shadow);
}

.public-panel {
  position: relative;
  overflow: hidden;
  padding: 3rem;
  color: #fff;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.08), transparent 42%),
    linear-gradient(135deg, var(--sq-brand-strong) 0%, var(--sq-brand) 54%, var(--sq-secondary) 100%);
}

.public-panel::after {
  content: "";
  position: absolute;
  inset: auto -8% -28% auto;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 157, 224, 0.34), transparent 68%);
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: inline-block;
  border-radius: 14px;
  background-color: #ffffff;
  background-image: url("../images/logo-cadeco.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  box-shadow: 0 10px 24px rgba(9, 55, 94, 0.18);
  color: transparent;
  font-size: 0;
  overflow: hidden;
}

.public-panel__title {
  max-width: 680px;
  margin: 1.4rem 0 1rem;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 1.02;
}

.public-panel__lead {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
}

.public-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.2rem;
}

.public-metric {
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.public-metric strong {
  display: block;
  font-size: 1.45rem;
  font-family: "Manrope", sans-serif;
}

.public-metric span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
}

.auth-card {
  align-self: stretch;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
}

.auth-card__inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-kicker {
  margin-bottom: 0.8rem;
  color: var(--sq-brand);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-title {
  margin-bottom: 0.75rem;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
}

.auth-lead {
  margin-bottom: 1.5rem;
  color: var(--sq-muted);
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.auth-note {
  margin-top: 1rem;
  color: var(--sq-muted);
  font-size: 0.92rem;
}

.auth-card .alert {
  border-radius: 16px;
}

.admin-shell {
  overflow-x: hidden;
}

.app-shell {
  min-height: 100vh;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(6, 19, 31, 0.52);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  width: var(--sq-sidebar-width);
  height: 100vh;
  padding: 24px 18px 20px;
  overflow-y: auto;
  color: #eef5fb;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 28%),
    linear-gradient(180deg, #063a56 0%, #007fae 26%, var(--sq-brand) 58%, #07415f 100%);
  box-shadow: 24px 0 48px rgba(9, 55, 94, 0.2);
  transition: transform 0.25s ease;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 2rem;
  padding: 0.85rem 0.9rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-brand__mark {
  width: 52px;
  height: 52px;
  display: inline-block;
  border-radius: 16px;
  background-color: #ffffff;
  background-image: url("../images/logo-cadeco.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  box-shadow: 0 10px 24px rgba(9, 55, 94, 0.22);
  color: transparent;
  font-size: 0;
  overflow: hidden;
}

.sidebar-brand small {
  display: block;
  color: rgba(238, 245, 251, 0.7);
}

.sidebar-section {
  margin-bottom: 1.3rem;
}

.sidebar-stack {
  display: grid;
  gap: 0.55rem;
}

.sidebar-group {
  --sidebar-tone: rgba(0, 174, 239, 0.92);
  --sidebar-tone-soft: rgba(0, 174, 239, 0.18);
  --sidebar-tone-shadow: rgba(0, 174, 239, 0.28);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-tone--dashboard {
  --sidebar-tone: #00aeef;
  --sidebar-tone-soft: rgba(0, 174, 239, 0.2);
  --sidebar-tone-shadow: rgba(0, 174, 239, 0.32);
}

.sidebar-tone--operations {
  --sidebar-tone: #ffd700;
  --sidebar-tone-soft: rgba(255, 215, 0, 0.22);
  --sidebar-tone-shadow: rgba(255, 215, 0, 0.32);
}

.sidebar-tone--display {
  --sidebar-tone: #00c2ff;
  --sidebar-tone-soft: rgba(0, 194, 255, 0.18);
  --sidebar-tone-shadow: rgba(0, 194, 255, 0.28);
}

.sidebar-tone--borne {
  --sidebar-tone: #ffd700;
  --sidebar-tone-soft: rgba(255, 215, 0, 0.22);
  --sidebar-tone-shadow: rgba(255, 215, 0, 0.3);
}

.sidebar-tone--supervision {
  --sidebar-tone: #53cfff;
  --sidebar-tone-soft: rgba(83, 207, 255, 0.2);
  --sidebar-tone-shadow: rgba(83, 207, 255, 0.3);
}

.sidebar-tone--alerts {
  --sidebar-tone: #e30613;
  --sidebar-tone-soft: rgba(227, 6, 19, 0.18);
  --sidebar-tone-shadow: rgba(227, 6, 19, 0.26);
}

.sidebar-tone--reports {
  --sidebar-tone: #00aeef;
  --sidebar-tone-soft: rgba(0, 174, 239, 0.18);
  --sidebar-tone-shadow: rgba(0, 174, 239, 0.28);
}

.sidebar-tone--settings {
  --sidebar-tone: #ffd700;
  --sidebar-tone-soft: rgba(255, 215, 0, 0.18);
  --sidebar-tone-shadow: rgba(255, 215, 0, 0.28);
}

.sidebar-tone--admin {
  --sidebar-tone: #2cc7ff;
  --sidebar-tone-soft: rgba(44, 199, 255, 0.2);
  --sidebar-tone-shadow: rgba(44, 199, 255, 0.3);
}

.sidebar-tone--support {
  --sidebar-tone: #ffd966;
  --sidebar-tone-soft: rgba(255, 217, 102, 0.2);
  --sidebar-tone-shadow: rgba(255, 217, 102, 0.28);
}

.sidebar-group__button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.86rem 0.95rem;
  border: 0;
  border-radius: 18px;
  color: rgba(238, 245, 251, 0.88);
  background: transparent;
  text-align: left;
}

.sidebar-group__button:hover {
  background: rgba(255, 255, 255, 0.07);
}

.sidebar-group__arrow {
  color: rgba(255, 255, 255, 0.7);
  transition: transform 0.2s ease;
  margin-left: auto;
}

.sidebar-group.is-open .sidebar-group__arrow {
  transform: rotate(180deg);
}

.sidebar-group__panel {
  display: none;
  padding: 0 0.8rem 0.8rem 0.8rem;
}

.sidebar-group.is-open .sidebar-group__panel {
  display: grid;
  gap: 0.3rem;
}

.sidebar-sublink {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  column-gap: 1.1rem;
  padding: 0.7rem 0.95rem 0.7rem 3rem;
  border-radius: 14px;
  color: rgba(238, 245, 251, 0.74);
  text-decoration: none;
  font-size: 0.9rem;
}

.sidebar-sublink__icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  flex: 0 0 32px;
  border-radius: 10px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04)),
    var(--sidebar-tone);
  box-shadow: 0 8px 18px var(--sidebar-tone-shadow);
  font-size: 0.8rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.sidebar-sublink__label {
  min-width: 0;
  display: block;
  padding-left: 0.28rem;
  line-height: 1.25;
}

.sidebar-sublink:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--sidebar-tone-soft) 0%, rgba(255, 255, 255, 0.08) 100%);
}

.sidebar-sublink:hover .sidebar-sublink__icon,
.sidebar-sublink.is-active .sidebar-sublink__icon {
  color: #fff;
  transform: translateY(-1px);
  filter: saturate(1.08);
}

.sidebar-sublink.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--sidebar-tone-soft) 0%, rgba(255, 255, 255, 0.11) 100%);
}

.sidebar-sublink.is-active .sidebar-sublink__icon {
  box-shadow: 0 10px 22px var(--sidebar-tone-shadow);
}

.sidebar-sublink.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--sidebar-tone-soft) 0%, rgba(255, 255, 255, 0.11) 100%);
  outline: 1px solid rgba(255, 215, 0, 0.22);
}

.sidebar-link__icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.09);
  font-size: 0.92rem;
}

.sidebar-link__body {
  min-width: 0;
  flex: 1;
}

.sidebar-link__title {
  display: block;
  font-weight: 700;
}

.content-shell {
  min-height: 100vh;
  margin-left: var(--sq-sidebar-width);
  padding: 24px;
  transition: margin-left 0.25s ease;
}

body.sidebar-collapsed .admin-sidebar {
  transform: translateX(-100%);
}

body.sidebar-collapsed .content-shell {
  margin-left: 0;
}

html.sq-sidebar-collapsed-preload .admin-sidebar {
  transform: translateX(-100%);
}

html.sq-sidebar-collapsed-preload .content-shell {
  margin-left: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(20, 58, 92, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--sq-shadow-soft);
  backdrop-filter: blur(10px);
}

.topbar__left,
.topbar__right {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.topbar__menu {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--sq-brand), var(--sq-secondary));
}

.topbar__eyebrow {
  display: block;
  color: var(--sq-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
}

.topbar__clock,
.topbar__user {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.95rem;
  border-radius: 16px;
  background: var(--sq-surface-soft);
  color: var(--sq-muted);
}

.topbar__user strong {
  color: var(--sq-text);
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 1.3rem;
  padding: 1.7rem 1.8rem;
  border: 1px solid rgba(20, 58, 92, 0.08);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(77, 157, 224, 0.18), transparent 26%),
    linear-gradient(135deg, rgba(9, 55, 94, 0.98) 0%, rgba(15, 76, 129, 0.95) 56%, rgba(29, 111, 184, 0.93) 100%);
  box-shadow: var(--sq-shadow);
  color: #fff;
}

.page-hero::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -18px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 68%);
}

.page-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.2rem;
}

.page-hero__copy {
  max-width: 760px;
}

.page-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.8rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-hero__title {
  margin-bottom: 0.55rem;
  font-size: clamp(1.75rem, 3vw, 2.8rem);
}

.page-hero__lead {
  margin: 0;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
}

.page-hero__aside {
  position: relative;
  z-index: 1;
  min-width: 220px;
  display: grid;
  gap: 0.9rem;
}

.hero-stat {
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-stat strong {
  display: block;
  font-size: 1.6rem;
  line-height: 1;
}

.hero-stat span {
  color: rgba(255, 255, 255, 0.76);
}

.page-body {
  display: grid;
  gap: 1.2rem;
}

.page-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 1.2rem;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.action-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}

.section-heading--compact {
  align-items: center;
  gap: 1rem;
}

.btn-action-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 40px;
  padding: 0.58rem 0.9rem;
  border-radius: 14px;
  font-weight: 600;
}

.btn-action-chip i {
  font-size: 0.92rem;
}

.btn-action-chip.is-active {
  background: var(--sq-brand);
  border-color: var(--sq-brand);
  color: #ffffff;
}

.btn-action-chip.is-active:hover,
.btn-action-chip.is-active:focus {
  background: var(--sq-brand-strong);
  border-color: var(--sq-brand-strong);
  color: #ffffff;
}

.icon-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.icon-actions form {
  margin: 0;
}

.icon-actions .form-select,
.icon-actions .form-select-sm {
  min-width: 112px;
}

.btn-icon-action {
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
}

.btn-icon-action i {
  font-size: 0.95rem;
}

.btn-icon-action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.status-badge--success {
  background: rgba(35, 125, 65, 0.14);
  color: #1f6d39;
}

.status-badge--warning {
  background: rgba(255, 215, 0, 0.2);
  color: #8a6900;
}

.status-badge--danger {
  background: rgba(227, 6, 19, 0.14);
  color: #b10f19;
}

.user-cell {
  display: grid;
  gap: 0.2rem;
}

.user-cell__name {
  font-weight: 700;
  color: var(--sq-ink);
}

.user-cell__meta {
  font-size: 0.82rem;
  color: var(--sq-muted);
}

.footer-bar {
  margin-top: 1.35rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(20, 58, 92, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--sq-muted);
  font-size: 0.92rem;
  box-shadow: var(--sq-shadow-soft);
}

.list-clean {
  display: grid;
  gap: 0.9rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.list-clean li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.list-clean i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 16px;
  background: var(--sq-brand-soft);
  color: var(--sq-brand);
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.doc-card p,
.content-card p,
.hero-card p,
.feature-card p {
  color: var(--sq-muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.feature-card {
  padding: 1.35rem;
}

.feature-card__icon {
  width: 50px;
  height: 50px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(15, 76, 129, 0.1), rgba(77, 157, 224, 0.18));
  color: var(--sq-brand);
  font-size: 1.15rem;
}

.quick-form {
  display: grid;
  gap: 1rem;
}

.selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.selection-card {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(20, 58, 92, 0.1);
  border-radius: var(--sq-radius-md);
  background: linear-gradient(180deg, #ffffff 0%, var(--sq-surface-soft) 100%);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.selection-card:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 76, 129, 0.18);
  box-shadow: var(--sq-shadow-soft);
}

.selection-card input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  accent-color: var(--sq-brand);
  flex: 0 0 auto;
}

.selection-card__body {
  display: grid;
  gap: 0.3rem;
}

.selection-card__body strong {
  font-family: "Manrope", "IBM Plex Sans", sans-serif;
}

.selection-card__body span,
.selection-card__body small {
  color: var(--sq-muted);
}

.field-is-hidden {
  display: none !important;
}

.public-display-shell {
  padding-block: 24px;
}

.display-screen-mode .public-shell {
  max-width: none;
  padding: 0;
}

.display-screen-mode .public-display-shell {
  padding: 10px;
}

.display-grid {
  min-height: calc(100vh - 48px);
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(380px, 0.75fr);
  gap: 24px;
}

.display-grid--fullscreen {
  min-height: calc(100vh - 20px);
  grid-template-columns: 1fr;
}

.display-hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.display-screen-mode .display-hero {
  min-height: calc(100vh - 20px);
  justify-content: flex-start;
}

.display-screen-mode .public-panel.display-hero {
  padding: 2rem 2.2rem 2.4rem;
}

.display-screen-content {
  width: 100%;
}

.display-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.3rem;
}

.display-title-centered {
  text-align: center;
}

.display-screen-mode .public-panel__title {
  max-width: 100%;
  font-size: clamp(3.3rem, 6vw, 5.4rem);
}

.display-screen-mode .public-panel__lead {
  max-width: 1100px;
  font-size: 1.2rem;
}

.display-screen-mode .display-hero__meta {
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.display-screen-mode .display-context-pill {
  padding: 0.9rem 1.2rem;
  font-size: 1rem;
}

.display-screen-mode .display-context-pill:last-child {
  padding: 1rem 1.35rem;
  font-size: 1.6rem;
  font-weight: 800;
}

.display-context-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  font-weight: 600;
}

.display-main-call {
  margin-top: 2rem;
  padding: 1.6rem;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.display-main-call__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.2rem;
}

.display-main-call__number {
  margin: 0;
  font-size: clamp(4rem, 11vw, 7.5rem);
  line-height: 0.95;
  color: #ffffff;
}

.display-main-call__badges {
  display: grid;
  gap: 0.75rem;
  justify-items: end;
}

.display-priority-badge,
.display-guichet-badge,
.display-mini-priority {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.display-priority-badge,
.display-mini-priority {
  background: linear-gradient(135deg, #ffd700 0%, #ffe16a 100%);
  color: #6d5000;
}

.display-guichet-badge {
  background: rgba(0, 174, 239, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
}

.display-main-call__details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}

.display-detail-card {
  padding: 1rem 1.05rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.display-detail-card span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
}

.display-detail-card strong {
  display: block;
  margin-top: 0.35rem;
  color: #fff;
  font-size: 1.15rem;
}

.display-main-call__empty {
  text-align: center;
  color: rgba(255, 255, 255, 0.86);
}

.display-main-call__empty h3 {
  margin-top: 1rem;
}

.display-main-call__empty p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.display-ticket-wall {
  margin-top: 1.8rem;
  padding: 1.8rem 1.9rem;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.display-ticket-wall__heading {
  margin-bottom: 1.2rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.display-ticket-wall__list {
  display: grid;
  gap: 1rem;
}

.display-ticket-line {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 1.1rem 1.3rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.display-ticket-line__number,
.display-ticket-line__guichet {
  color: #fff;
  font-family: "Manrope", "IBM Plex Sans", sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.05;
}

.display-ticket-line__guichet {
  color: rgba(255, 255, 255, 0.92);
}

.display-waiting-strip {
  margin-top: 1.4rem;
  padding: 1rem 1.2rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.display-waiting-strip__title {
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.display-waiting-strip__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.display-waiting-ticket {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-family: "Manrope", "IBM Plex Sans", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
}

.display-waiting-strip__empty {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
}

.display-message-ticker {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  margin-top: auto;
  padding: 1rem 1.2rem;
  border-radius: 24px;
  background: rgba(5, 16, 27, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -14px 36px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.display-message-ticker__label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.display-message-ticker__viewport {
  overflow: hidden;
  min-width: 0;
}

.display-message-ticker__track {
  display: inline-flex;
  align-items: center;
  gap: 5rem;
  min-width: max-content;
  color: #fff;
  font-family: "Manrope", "IBM Plex Sans", sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  font-weight: 700;
  white-space: nowrap;
  will-change: transform;
  animation: displayTickerScroll 34s linear infinite;
}

.display-message-ticker__track span {
  display: inline-block;
}

@keyframes displayTickerScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.display-metrics {
  margin-top: 1.6rem;
}

.display-screen-mode .public-metric strong {
  font-size: 2.4rem;
}

.display-screen-mode .public-metric span {
  font-size: 1rem;
}

.display-guichets-board {
  margin-top: 1.8rem;
}

.display-public-strip {
  margin-top: 1.8rem;
}

.display-guichets-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.display-guichet-card {
  padding: 1.25rem 1.35rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  color: #fff;
}

.display-guichet-card__layout {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.9fr) minmax(150px, 0.7fr) minmax(150px, 0.7fr);
  align-items: center;
  gap: 1rem;
}

.display-guichet-card__label {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.display-guichet-card__identity h3 {
  margin: 0.3rem 0 0;
  font-size: 1.35rem;
  color: #fff;
}

.display-guichet-card__number {
  margin-top: 0.2rem;
  font-family: "Manrope", "IBM Plex Sans", sans-serif;
  font-size: clamp(2.6rem, 4.2vw, 4.4rem);
  font-weight: 800;
  line-height: 1;
  color: #fff;
}

.display-guichet-card__service {
  margin-top: 0.45rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
}

.display-screen-mode .display-guichet-card__identity h3 {
  font-size: 1.85rem;
}

.display-screen-mode .display-guichet-card__number {
  font-size: clamp(3.3rem, 5vw, 5.4rem);
}

.display-screen-mode .display-guichet-card__service,
.display-screen-mode .display-guichet-card__metric strong,
.display-screen-mode .display-status-pill {
  font-size: 1.08rem;
}

.display-guichet-card__metric {
  display: grid;
  gap: 0.25rem;
  justify-items: start;
}

.display-guichet-card__metric span {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.display-guichet-card__metric strong {
  display: block;
  color: #fff;
  font-size: 1.2rem;
}

.display-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
}

.display-status--brand {
  background: rgba(122, 200, 255, 0.2);
  border: 1px solid rgba(122, 200, 255, 0.28);
  color: #e3f4ff;
}

.display-status--success {
  background: rgba(47, 168, 130, 0.22);
  border: 1px solid rgba(47, 168, 130, 0.32);
  color: #d3ffef;
}

.display-status--warning {
  background: rgba(246, 207, 43, 0.24);
  border: 1px solid rgba(246, 207, 43, 0.34);
  color: #fff0bb;
}

.display-status--muted {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.86);
}

.display-sidecard {
  background: rgba(255, 255, 255, 0.94);
}

.display-announcement {
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: var(--sq-surface-soft);
  border: 1px solid rgba(15, 76, 129, 0.08);
}

.display-announcement strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--sq-brand);
}

.display-announcement p {
  margin: 0;
  color: var(--sq-muted);
}

.display-call-list {
  display: grid;
  gap: 0.75rem;
}

.display-call-list--grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.display-call-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid rgba(15, 76, 129, 0.08);
}

.display-call-row.is-main {
  background: linear-gradient(135deg, rgba(15, 76, 129, 0.1), rgba(77, 157, 224, 0.16));
  border-color: rgba(15, 76, 129, 0.12);
}

.display-call-row strong {
  display: block;
}

.display-call-row span {
  color: var(--sq-muted);
  font-size: 0.92rem;
}

.display-call-row__right {
  display: grid;
  gap: 0.4rem;
  justify-items: end;
}

.display-screen-mode .display-main-call {
  margin-top: 1.6rem;
  padding: 2rem;
}

.display-screen-mode .display-main-call__number {
  font-size: clamp(5rem, 12vw, 8.6rem);
}

.display-screen-mode .display-detail-card strong {
  font-size: 1.45rem;
}

.chart-card {
  min-height: 100%;
  position: relative;
  overflow: hidden;
}

.chart-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sq-brand) 0%, var(--sq-accent) 100%);
}

.chart-canvas-wrap {
  position: relative;
  min-height: 320px;
}

.chart-canvas-wrap--compact {
  min-height: 280px;
}

.chart-canvas-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

.text-muted-soft {
  color: var(--sq-muted);
}

@media (max-width: 1199px) {
  .display-guichets-grid {
    grid-template-columns: 1fr;
  }

  .display-call-list--grid {
    grid-template-columns: 1fr;
  }

  .display-grid,
  .public-grid,
  .page-grid-2,
  .page-hero__content {
    grid-template-columns: 1fr;
  }

  .page-hero__aside {
    min-width: 0;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

@media (max-width: 991px) {
  .public-shell {
    padding: 18px;
  }

  .display-grid,
  .public-grid {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .display-screen-mode .display-hero,
  .display-screen-mode .public-panel.display-hero {
    min-height: auto;
    padding: 1.5rem;
  }

  .public-panel,
  .auth-card {
    padding: 1.5rem;
  }

  .public-metrics {
    grid-template-columns: 1fr;
  }

  .chart-canvas-wrap,
  .chart-canvas-wrap--compact {
    min-height: 260px;
  }

  .display-main-call__header,
  .display-main-call__details {
    display: grid;
    grid-template-columns: 1fr;
  }

  .display-ticket-line {
    flex-direction: column;
    align-items: flex-start;
  }

  .display-message-ticker {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .display-main-call__badges,
  .display-call-row__right {
    justify-items: start;
  }

  .display-guichet-card__layout {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .content-shell {
    margin-left: 0;
    padding: 16px;
  }

  .admin-sidebar {
    transform: translateX(-100%);
  }

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

  body.sidebar-open .sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .topbar {
    padding: 0.9rem 1rem;
    border-radius: 20px;
  }

  .topbar__left,
  .topbar__right {
    flex-wrap: wrap;
  }

  .page-hero {
    padding: 1.4rem;
    border-radius: 24px;
  }

  .page-hero__content {
    align-items: stretch;
  }
}

@media (max-width: 575px) {
  .auth-actions,
  .page-actions {
    flex-direction: column;
  }

  .topbar__clock,
  .topbar__user {
    width: 100%;
    justify-content: center;
  }

  .table-surface {
    overflow-x: auto;
  }
}
