:root {
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --bg-base: #f4efe5;
  --bg-accent: #e4f2ee;
  --bg-soft: #fbf8f2;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --surface-dark: #12324a;
  --surface-dark-soft: #1b4765;
  --text-main: #183041;
  --text-soft: #5f7384;
  --text-inverse: #f6fbff;
  --border: rgba(24, 48, 65, 0.11);
  --border-strong: rgba(24, 48, 65, 0.2);
  --primary: #0f6c74;
  --primary-dark: #0b5760;
  --accent: #f0ab53;
  --accent-soft: #fff0d6;
  --success: #1c8d59;
  --warning: #d38a1f;
  --danger: #c24f43;
  --info: #2f74b7;
  --shadow-soft: 0 22px 50px rgba(18, 50, 74, 0.12);
  --shadow-card: 0 14px 36px rgba(18, 50, 74, 0.08);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --sidebar-width: 296px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--text-main);
  font-family: var(--font-body);
}

a {
  color: inherit;
}

body.app-body {
  background:
    radial-gradient(circle at top left, rgba(240, 171, 83, 0.24), transparent 32%),
    radial-gradient(circle at top right, rgba(15, 108, 116, 0.18), transparent 28%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg-base) 100%);
  overflow: hidden;
}

.app-shell {
  height: 100vh;
  display: flex;
  position: relative;
  overflow: hidden;
}

.app-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 50, 74, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  z-index: 80;
}

.app-sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 25%),
    linear-gradient(180deg, var(--surface-dark) 0%, #0f283a 100%);
  color: var(--text-inverse);
  padding: 0 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 18px 0 48px rgba(8, 22, 34, 0.18);
  transition: width 0.24s ease, min-width 0.24s ease, transform 0.24s ease, padding 0.24s ease;
  z-index: 90;
  overflow: hidden;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 81px;
  padding: 0;
  text-decoration: none;
}

.sidebar-brand:hover,
.sidebar-brand:focus {
  text-decoration: none;
  outline: none;
}

.sidebar-brand__logo {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 56px;
  padding: 0 42px;
  object-fit: contain;
}

.app-sidebar__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.app-sidebar__body::-webkit-scrollbar {
  width: 6px;
}

.app-sidebar__body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.sidebar-group + .sidebar-group {
  margin-top: 18px;
}

.sidebar-group-title {
  display: block;
  padding: 0 10px;
  margin-bottom: 10px;
  color: rgba(246, 251, 255, 0.56);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav-item + .sidebar-nav-item {
  margin-top: 6px;
}

.sidebar-link,
.sidebar-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: rgba(246, 251, 255, 0.88);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.sidebar-link:hover,
.sidebar-link:focus,
.sidebar-toggle:hover,
.sidebar-toggle:focus {
  color: var(--text-inverse);
  background: rgba(255, 255, 255, 0.11);
  text-decoration: none;
  outline: none;
}

.sidebar-link.is-active,
.sidebar-toggle.is-active {
  background: linear-gradient(135deg, rgba(240, 171, 83, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
  color: var(--text-inverse);
  box-shadow: inset 0 0 0 1px rgba(240, 171, 83, 0.22);
}

.sidebar-link-main {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.sidebar-icon {
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-label {
  min-width: 0;
}

.sidebar-caret {
  font-size: 0.86rem;
  color: rgba(246, 251, 255, 0.58);
}

.sidebar-submenu {
  list-style: none;
  margin: 8px 0 0;
  padding: 0 0 0 18px;
}

.sidebar-submenu .sidebar-link,
.sidebar-submenu .sidebar-toggle {
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 0.9rem;
  color: rgba(246, 251, 255, 0.72);
}

.app-sidebar__footer {
  display: grid;
  gap: 10px;
  flex-shrink: 0;
}

.sidebar-quick-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(246, 251, 255, 0.9);
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.sidebar-quick-toggle {
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  cursor: pointer;
  justify-content: space-between;
  text-align: left;
}

.sidebar-quick-toggle .sidebar-link-main {
  gap: 12px;
}

.sidebar-submenu--quick {
  margin-top: 4px;
  padding-left: 10px;
}

.sidebar-quick-link:hover,
.sidebar-quick-link:focus,
.sidebar-quick-link.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-inverse);
  text-decoration: none;
  transform: translateY(-1px);
}

.sidebar-quick-link--danger {
  color: #ffe2de;
}

.app-main {
  flex: 1;
  min-width: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 28px 14px;
  background: rgba(251, 248, 242, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(24, 48, 65, 0.06);
}

.app-topbar__left,
.app-topbar__right {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.topbar-toggle {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-card);
}

.topbar-toggle:hover,
.topbar-toggle:focus {
  background: #ffffff;
  outline: none;
}

.topbar-context {
  min-width: 0;
}

.topbar-context span {
  display: block;
  margin-bottom: 2px;
  color: var(--text-soft);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.topbar-context strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.2;
}

.topbar-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}

.topbar-chip--accent {
  background: var(--accent-soft);
  color: #8b5a11;
  border-color: rgba(240, 171, 83, 0.28);
}

.topbar-chip--danger {
  background: rgba(194, 79, 67, 0.12);
  color: #8f3128;
  border-color: rgba(194, 79, 67, 0.26);
}

.topbar-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px 7px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border);
  color: var(--text-main);
}

.topbar-user__avatar {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, #49a7aa 100%);
  color: var(--text-inverse);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.topbar-user__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar-user__copy small {
  color: var(--text-soft);
  font-size: 0.7rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.topbar-user__copy strong {
  font-size: 0.86rem;
  line-height: 1.3;
  white-space: nowrap;
}

.topbar-logout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 15px;
  border-radius: 999px;
  background: rgba(194, 79, 67, 0.1);
  border: 1px solid rgba(194, 79, 67, 0.16);
  color: var(--danger);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.topbar-logout:hover,
.topbar-logout:focus {
  background: rgba(194, 79, 67, 0.16);
  color: #9e382f;
  text-decoration: none;
  outline: none;
}

.app-page {
  padding: 26px 28px 34px;
}

.page-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 32px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(240, 171, 83, 0.22), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(228, 242, 238, 0.78) 100%);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.page-kicker {
  display: inline-block;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(15, 108, 116, 0.12);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.page-hero p {
  margin: 12px 0 0;
  max-width: 760px;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.7;
}

.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.page-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(24, 48, 65, 0.08);
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 600;
}

.page-content {
  margin-top: 0;
}

.app-page .container,
.app-page .container-fluid {
  padding-left: 0;
  padding-right: 0;
  max-width: none;
}

.panel-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(20px, 2vw, 28px);
  backdrop-filter: blur(16px);
}

.panel-card + .panel-card,
.app-page .container-fluid > .stack-grid + .panel-card,
.app-page .container-fluid > .panel-card + .stack-grid,
.app-page .container-fluid > .stack-grid + .stack-grid,
.app-page .container-fluid > .alert + .panel-card,
.app-page .container-fluid > .alert + .stack-grid {
  margin-top: 24px;
}

#table-data.panel-card {
  margin-top: 24px;
}

.panel-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.panel-card__header h2,
.panel-card__header h3,
.panel-card__header h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.panel-card__header p {
  margin: 8px 0 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.panel-card__body > :last-child {
  margin-bottom: 0;
}

.panel-note {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.toolbar-row,
.search-toolbar,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.search-toolbar .form-group,
.search-toolbar .input-group,
.toolbar-grow {
  flex: 1 1 260px;
  margin-bottom: 0;
}

.search-toolbar--with-label {
  align-items: flex-end;
}

.search-toolbar__button {
  min-height: calc(1.5em + 1rem + 2px);
}

.stack-grid {
  display: grid;
  gap: 24px;
}

.stack-grid--two {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.stack-grid--split {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
}

.simulado-entry-grid {
  align-items: start;
}

.simulado-entry-grid > .panel-card {
  align-self: start;
}

.simulado-entry-grid > .panel-card + .panel-card {
  margin-top: 0;
}

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

.inline-form-grid > * {
  grid-column: span 12;
}

.inline-form-grid .span-3 {
  grid-column: span 3;
}

.inline-form-grid .span-4 {
  grid-column: span 4;
}

.inline-form-grid .span-5 {
  grid-column: span 5;
}

.inline-form-grid .span-6 {
  grid-column: span 6;
}

.inline-form-grid .span-7 {
  grid-column: span 7;
}

.inline-form-grid .span-8 {
  grid-column: span 8;
}

.inline-form-grid .span-12 {
  grid-column: span 12;
}

.metric-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.metric-card {
  min-width: 180px;
  flex: 1 1 0;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.metric-card small {
  display: block;
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 1.65rem;
  line-height: 1;
}

.metric-card span {
  display: block;
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.table-shell {
  overflow: hidden;
  border-radius: 22px;
}

.table-responsive {
  border-radius: 22px;
}

.table {
  margin-bottom: 0;
  color: var(--text-main);
}

.table thead th {
  border-top: 0;
  border-bottom: 0;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0 18px 12px;
  white-space: nowrap;
}

.table tbody td {
  vertical-align: middle;
  padding: 15px 18px;
  background: rgba(255, 255, 255, 0.88);
  border-top: 1px solid rgba(24, 48, 65, 0.04);
  border-bottom: 1px solid rgba(24, 48, 65, 0.04);
}

.table tbody tr td:first-child {
  border-left: 1px solid rgba(24, 48, 65, 0.04);
  border-radius: 18px 0 0 18px;
}

.table tbody tr td:last-child {
  border-right: 1px solid rgba(24, 48, 65, 0.04);
  border-radius: 0 18px 18px 0;
}

.table tbody tr + tr td {
  border-top-color: transparent;
}

.table.table-borderless tbody td,
.table.table-borderless thead th {
  border: 0;
}

.table tbody tr[style*="display:none"] td {
  background: transparent;
  border: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.table tbody tr[style*="display: none"] td {
  background: transparent;
  border: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.table .table {
  background: transparent;
}

.table .table tbody td {
  background: rgba(246, 251, 255, 0.92);
}

.mobile-card-table__detail.collapse.show {
  display: table-row;
}

.table-actions {
  min-width: 154px;
  white-space: nowrap;
}

.row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  white-space: nowrap;
}

.row-actions .btn {
  flex: 0 0 auto;
}

.students-table {
  table-layout: fixed;
  min-width: 980px;
}

.students-table__name {
  width: 20%;
}

.students-table__class {
  width: 16%;
}

.students-table__year {
  width: 7%;
}

.students-table__actions {
  width: 160px;
}

td.students-table__parents {
  white-space: normal;
  overflow-wrap: anywhere;
}

.badge-round {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--success) 0%, #51b982 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 12px 24px rgba(28, 141, 89, 0.18);
}

.badge-round--button {
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.badge-round--button::-moz-focus-inner {
  border: 0;
  padding: 0;
}

.badge-round--button:hover,
.badge-round--button:focus,
.badge-round--button:focus-visible,
.badge-round--button.is-active {
  color: #fff;
  filter: brightness(1.05);
  outline: 0;
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(28, 141, 89, 0.24);
}

.usage-details-row > td {
  padding-top: 0;
}

.usage-details-panel {
  margin: 10px 0 18px;
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-card);
}

.usage-details-title {
  margin-bottom: 12px;
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
}

.usage-details-list {
  display: grid;
  gap: 12px;
}

.simulado-attempts-list {
  display: grid;
  gap: 18px;
}

.simulado-attempt-card {
  padding: 18px;
  border: 1px solid rgba(15, 108, 116, 0.16);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 34px rgba(24, 48, 65, 0.08);
}

.simulado-attempt-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.simulado-answer-list {
  display: grid;
  gap: 10px;
}

.simulado-answer-card {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(248, 251, 252, 0.92);
}

.usage-day {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(15, 108, 116, 0.06);
}

.usage-day__date {
  margin-bottom: 8px;
  color: var(--primary-dark);
  font-weight: 800;
}

.usage-day ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-main);
}

.usage-day li + li {
  margin-top: 6px;
}

.report-chart-card {
  margin: 10px 0 18px;
  padding: 22px;
}

.report-chart-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.report-chart-toolbar h3 {
  margin: 0;
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 1.22rem;
  letter-spacing: -0.03em;
}

.report-chart-toolbar p {
  margin: 6px 0 0;
  color: var(--text-soft);
}

.report-chart-toolbar label {
  min-width: 190px;
  margin: 0;
}

.report-chart-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(280px, 1fr);
  gap: 24px;
  align-items: center;
  min-width: 0;
}

.report-chart-canvas {
  position: relative;
  min-height: 340px;
  min-width: 0;
}

.report-chart-canvas canvas {
  width: 100% !important;
  height: 340px !important;
}

.report-chart-total {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  color: var(--text-soft);
  pointer-events: none;
  text-align: center;
  width: 140px;
}

.report-chart-total strong {
  color: var(--primary-dark);
  font-family: var(--font-display);
  font-size: 2.1rem;
  line-height: 1;
}

.report-chart-total span {
  margin-top: 4px;
  font-size: 0.82rem;
}

.report-chart-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  min-width: 0;
}

.report-chart-table .table {
  margin: 0;
}

.report-chart-table th,
.report-chart-table td {
  padding: 0.72rem 0.9rem;
}

.report-chart-table__total {
  background: rgba(15, 108, 116, 0.08);
  color: var(--primary-dark);
  font-weight: 800;
}

.report-responsavel-chart-card {
  margin-top: 18px;
}

.report-responsavel-chart {
  position: relative;
  min-height: 320px;
  width: 100%;
  min-width: 0;
}

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

.responsavel-usage-meter {
  width: min(180px, 100%);
  height: 10px;
  margin-bottom: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(24, 48, 65, 0.09);
}

.responsavel-usage-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--primary) 0%, #51b982 100%);
}

.responsavel-details-card {
  margin: 10px 0 18px;
  padding: 18px;
  min-width: 0;
}

.form-group label,
label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.form-control,
.custom-select,
select.form-control {
  height: calc(1.5em + 1rem + 2px);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-main);
  padding-left: 15px;
  padding-right: 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

textarea.form-control {
  min-height: 132px;
  height: auto;
  padding-top: 12px;
  padding-bottom: 12px;
}

.form-control:focus,
.custom-select:focus,
select.form-control:focus {
  border-color: rgba(15, 108, 116, 0.42);
  box-shadow: 0 0 0 0.22rem rgba(15, 108, 116, 0.12);
}

.input-group-text {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.88);
}

.btn {
  border-radius: 14px;
  border-width: 1px;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 0.72rem 1.15rem;
  box-shadow: none;
}

.btn-with-spinner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 178px;
}

.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  animation: app-spin 0.75s linear infinite;
}

.btn-with-spinner.is-loading .btn-spinner {
  display: inline-block;
}

.btn-with-spinner:disabled {
  cursor: wait;
  opacity: 0.78;
}

.btn-sm {
  border-radius: 12px;
  padding: 0.42rem 0.76rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #15868f 100%);
  border-color: transparent;
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #11757d 100%);
  border-color: transparent;
}

.btn-secondary {
  background: rgba(24, 48, 65, 0.08);
  color: var(--text-main);
  border-color: rgba(24, 48, 65, 0.06);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: rgba(24, 48, 65, 0.14);
  color: var(--text-main);
  border-color: rgba(24, 48, 65, 0.08);
}

.btn-success {
  background: linear-gradient(135deg, var(--success) 0%, #3ba96f 100%);
  border-color: transparent;
}

.btn-info {
  background: linear-gradient(135deg, var(--info) 0%, #4d97df 100%);
  border-color: transparent;
  color: #fff;
}

.btn-warning {
  background: linear-gradient(135deg, var(--warning) 0%, #ebb64a 100%);
  border-color: transparent;
  color: #503200;
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger) 0%, #dc7367 100%);
  border-color: transparent;
}

.btn-outline-secondary {
  border-color: var(--border);
  color: var(--text-soft);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  background: rgba(24, 48, 65, 0.06);
  color: var(--text-main);
  border-color: var(--border-strong);
}

.alert {
  border: 0;
  border-radius: 18px;
  padding: 14px 18px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.alert-info {
  background: rgba(47, 116, 183, 0.12);
  color: #235487;
}

.alert-success {
  background: rgba(28, 141, 89, 0.12);
  color: #1d6d49;
}

.alert-danger {
  background: rgba(194, 79, 67, 0.12);
  color: #8d332a;
}

.pagination {
  gap: 8px;
}

.page-item .page-link {
  border: 0;
  border-radius: 14px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--text-main);
  box-shadow: var(--shadow-card);
}

.page-item.active .page-link,
.page-link:hover {
  background: var(--primary);
  color: #fff;
}

.modal-content {
  border: 0;
  border-radius: 24px;
  box-shadow: 0 30px 70px rgba(18, 50, 74, 0.22);
}

.modal-header,
.modal-footer {
  border-color: rgba(24, 48, 65, 0.08);
  padding-left: 24px;
  padding-right: 24px;
}

.modal-body {
  padding: 22px 24px;
}

.close {
  opacity: 0.45;
}

.close:hover {
  opacity: 0.82;
}

#loading {
  position: fixed;
  inset: 0;
  background: rgba(251, 248, 242, 0.74);
  backdrop-filter: blur(8px);
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner {
  width: 54px;
  height: 54px;
  border-width: 6px;
  border-style: solid;
  border-radius: 999px;
  border-color: rgba(15, 108, 116, 0.12);
  border-top-color: var(--primary);
  animation: app-spin 0.9s linear infinite;
}

.photo-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.photo-container,
.student-photo-frame {
  width: min(280px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  background: linear-gradient(180deg, #f7fbff 0%, #e7eef3 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.student-photo,
.student-photo-large {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#pendingCount {
  margin: 0 0 18px;
  padding: 18px 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(15, 108, 116, 0.12) 0%, rgba(240, 171, 83, 0.18) 100%);
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  text-align: left;
}

.ticket-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.ticket {
  min-height: 124px;
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(160deg, #14796c 0%, #0f5c67 100%);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  box-shadow: 0 20px 32px rgba(15, 92, 103, 0.24);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.5s ease;
}

.ticket:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 40px rgba(15, 92, 103, 0.28);
}

.ticket .photo {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.22);
}

.ticket .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transition: opacity 0.18s ease;
}

.ticket .photo img.is-positioning {
  opacity: 0;
}

.ticket .aluno-nome {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.date-navigation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.solicitacoes-overview {
  align-items: center;
  margin-bottom: 0;
}

.solicitacoes-overview__content {
  min-width: 280px;
}

.solicitacoes-overview .date-navigation {
  margin-top: 18px;
}

.corridor-tv {
  flex: 0 0 min(320px, 32vw);
  width: min(320px, 32vw);
  min-width: 280px;
  display: grid;
  justify-items: center;
  align-self: center;
}

.corridor-tv__screen {
  width: 100%;
  aspect-ratio: 16 / 9;
  box-sizing: border-box;
  padding: 5px;
  border-radius: 18px;
  background: #111923;
  border: 1px solid #060a0f;
  box-shadow:
    0 18px 32px rgba(18, 48, 65, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.corridor-tv__viewport {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 13px;
  overflow: hidden;
  background: #0d1822;
}

.corridor-tv__viewport iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1280px;
  height: 720px;
  display: block;
  border: 0;
  background: #0d1822;
  pointer-events: none;
  transform-origin: 0 0;
}

.corridor-tv__stand {
  width: 36%;
  height: 16px;
  position: relative;
}

.corridor-tv__stand::before,
.corridor-tv__stand::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #253342 0%, #111923 100%);
}

.corridor-tv__stand::before {
  top: 0;
  width: 22%;
  height: 16px;
  border-radius: 0 0 6px 6px;
}

.corridor-tv__stand::after {
  bottom: 0;
  width: 100%;
  height: 5px;
  border-radius: 999px;
}

.details-content ul {
  margin: 0;
  padding-left: 18px;
}

.details-content li + li {
  margin-top: 6px;
}

.empty-state {
  padding: 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed rgba(24, 48, 65, 0.16);
  color: var(--text-soft);
  text-align: center;
}

.login-body {
  min-height: 100vh;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-shell {
  width: min(468px, 100%);
  transform: translateY(-2vh);
}

.login-hero,
.login-card {
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.login-hero {
  position: relative;
  padding: 42px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
    linear-gradient(150deg, #12324a 0%, #0f6c74 100%);
  color: #fff;
}

.login-hero::before,
.login-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(240, 171, 83, 0.18);
}

.login-hero::before {
  width: 240px;
  height: 240px;
  top: -70px;
  right: -40px;
}

.login-hero::after {
  width: 180px;
  height: 180px;
  bottom: -70px;
  left: -50px;
}

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

.login-hero__brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}

.login-hero__badge {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.login-hero__badge img {
  width: 72%;
}

.login-hero h1 {
  max-width: 520px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.login-hero p {
  max-width: 520px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1rem;
  line-height: 1.8;
}

.login-points {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.login-point {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.login-point i {
  font-size: 1.15rem;
  color: #ffd58e;
}

.login-card {
  background: transparent;
  padding: 0;
  border: 0;
  backdrop-filter: none;
}

.login-card--simple {
  width: 100%;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.login-logo {
  display: block;
  width: min(310px, 72vw);
  height: auto;
  margin: 0 auto 34px;
}

.login-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 108, 116, 0.1);
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.login-card h2 {
  margin: 18px 0 10px;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.login-card p {
  color: var(--text-soft);
  line-height: 1.7;
}

.login-form {
  margin-top: 0;
}

.login-form .form-group + .form-group {
  margin-top: 26px;
}

.login-form label {
  display: block;
  margin-bottom: 12px;
  color: #111827;
  font-size: 1.28rem;
  font-weight: 400;
  line-height: 1.2;
}

.login-form .form-control {
  height: 51px;
  border-radius: 4px;
  border: 1px solid #b9c1cc;
  background: #eaf2ff;
  color: #000;
  font-size: 0.98rem;
  padding: 0 16px;
}

.login-form .form-control:focus {
  border-color: #8aa7cf;
  background: #eaf2ff;
  box-shadow: 0 0 0 0.18rem rgba(13, 132, 255, 0.14);
}

.login-form .input-group .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.login-form .input-group-append .btn {
  width: 64px;
  height: 51px;
  border-radius: 0 4px 4px 0;
  border-color: #67717f;
  background: #fff;
  color: #111827;
  font-size: 1rem;
  box-shadow: none;
}

.login-form .btn-primary {
  width: 100%;
  height: 50px;
  margin-top: 22px;
  border-radius: 4px;
  background: #0d84ff;
  border-color: #0d84ff;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0;
  box-shadow: none;
}

.login-form .btn-primary:hover,
.login-form .btn-primary:focus {
  background: #0877ea;
  border-color: #0877ea;
}

.login-help {
  margin-top: 20px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

@media (min-width: 992px) {
  body.app-body.sidebar-collapsed .app-sidebar {
    width: 0;
    min-width: 0;
    padding-left: 0;
    padding-right: 0;
    border-right-width: 0;
    overflow: hidden;
  }
}

@media (max-width: 1199.98px) {
  .stack-grid--two,
  .stack-grid--split,
  .login-shell {
    grid-template-columns: 1fr;
  }

  .topbar-chip:nth-child(2) {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    height: 100dvh;
    max-height: 100dvh;
    max-width: min(86vw, var(--sidebar-width));
    transform: translateX(-104%);
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: max(22px, env(safe-area-inset-bottom));
  }

  .app-sidebar__body {
    flex: 0 0 auto;
    min-height: auto;
    overflow: visible;
  }

  .app-sidebar__footer {
    flex-shrink: 0;
    padding-bottom: 4px;
  }

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

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

  .app-topbar,
  .app-page {
    padding-left: 20px;
    padding-right: 20px;
  }

  .page-hero {
    padding: 24px;
  }
}

@media (max-width: 767.98px) {
  .app-topbar {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .app-topbar__right {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .topbar-logout {
    min-height: 46px;
    padding: 0 13px;
  }

  .page-hero {
    display: block;
  }

  .page-hero__meta {
    justify-content: flex-start;
    margin-top: 18px;
  }

  .panel-card {
    padding: 18px;
  }

  .panel-card__header {
    display: grid;
    gap: 10px;
  }

  .solicitacoes-overview {
    justify-items: stretch;
    align-items: stretch;
  }

  .solicitacoes-overview__content {
    min-width: 0;
  }

  .corridor-tv {
    width: min(360px, 100%);
    min-width: 0;
    justify-self: center;
    margin-top: 8px;
  }

  .panel-card__header h2,
  .panel-card__header h3,
  .panel-card__header h4 {
    font-size: 1.12rem;
  }

  .panel-card__header p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .inline-form-grid .span-3,
  .inline-form-grid .span-4,
  .inline-form-grid .span-5,
  .inline-form-grid .span-6,
  .inline-form-grid .span-7,
  .inline-form-grid .span-8 {
    grid-column: span 12;
  }

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

  .report-chart-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .report-chart-toolbar label {
    min-width: 0;
  }

  .report-chart-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .report-chart-canvas {
    min-height: 300px;
  }

  .report-chart-canvas canvas {
    height: 300px !important;
  }

  .report-chart-total {
    width: 82px;
  }

  .report-chart-total span {
    max-width: 76px;
    font-size: 0.72rem;
    line-height: 1.15;
    white-space: normal;
  }

  .report-responsavel-chart {
    min-width: 0;
    min-height: 360px;
  }

  .report-responsavel-chart-card {
    overflow: hidden;
  }

  .report-chart-card {
    width: 100%;
    padding: 16px;
    margin: 8px 0 12px;
    border-radius: 18px;
    box-shadow: none;
  }

  .report-chart-table {
    width: 100%;
    border: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
  }

  .report-chart-data-table,
  .report-chart-data-table > tbody,
  .report-chart-data-table > tbody > tr,
  .report-chart-data-table > tbody > tr > td {
    display: block;
    width: 100%;
    min-width: 0 !important;
  }

  .report-chart-data-table > thead {
    display: none;
  }

  .report-chart-data-table > tbody {
    display: grid;
    gap: 8px;
  }

  .report-chart-data-table > tbody > tr {
    padding: 10px 12px;
    border: 1px solid rgba(24, 48, 65, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
  }

  .report-chart-data-table > tbody > tr > td {
    display: grid !important;
    grid-template-columns: minmax(92px, 42%) minmax(0, 1fr);
    align-items: flex-start;
    gap: 12px;
    padding: 4px 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    text-align: right !important;
    white-space: normal;
  }

  .report-chart-data-table > tbody > tr > td::before {
    content: attr(data-label);
    display: block !important;
    min-width: 0;
    color: var(--text-soft);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-align: left;
    text-transform: uppercase;
  }

  .report-chart-data-table > tbody > tr > td > .report-chart-value {
    display: block;
    min-width: 0;
    color: var(--text-main);
    font-weight: 700;
    text-align: right;
    overflow-wrap: anywhere;
  }

  .report-chart-table__total {
    background: rgba(15, 108, 116, 0.08) !important;
  }

  .responsavel-usage-meter {
    width: min(150px, 48vw);
    margin-left: auto;
  }

  .responsavel-details-card {
    width: 100%;
    margin: 8px 0 12px;
    border-radius: 18px;
    box-shadow: none;
  }

  .usage-day {
    padding: 12px;
  }

  .usage-day ul {
    padding-left: 16px;
  }

  .usage-day li {
    overflow-wrap: anywhere;
  }

  .table-responsive {
    -webkit-overflow-scrolling: touch;
  }

  .table-responsive .usage-details-list,
  .table-responsive .empty-state {
    white-space: normal;
  }

  .mobile-card-table-wrap {
    overflow-x: visible;
  }

  .mobile-card-table,
  .students-table.mobile-card-table {
    display: block;
    min-width: 0;
    table-layout: auto;
  }

  .mobile-card-table thead {
    display: none;
  }

  .mobile-card-table tbody,
  .mobile-card-table tr,
  .mobile-card-table td {
    display: block;
    width: 100% !important;
  }

  .mobile-card-table tbody tr {
    margin-bottom: 14px;
    padding: 16px;
    border: 1px solid rgba(24, 48, 65, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 30px rgba(8, 22, 34, 0.08);
  }

  .mobile-card-table tbody tr.mobile-card-table__detail {
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .mobile-card-table tbody tr.mobile-card-table__detail.collapse.show {
    display: block;
  }

  .mobile-card-table tbody td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent;
    text-align: right !important;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .mobile-card-table tbody td::before {
    content: attr(data-label);
    flex: 0 0 36%;
    color: var(--text-soft);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-align: left;
    text-transform: uppercase;
  }

  .mobile-card-table tbody td.table-actions {
    display: block;
    min-width: 0;
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(24, 48, 65, 0.08) !important;
    text-align: left !important;
  }

  .mobile-card-table tbody td.table-actions::before {
    display: block;
    margin-bottom: 10px;
  }

  .mobile-card-table .row-actions {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
  }

  .mobile-card-table .row-actions .btn {
    flex: 1 1 120px;
  }

  .mobile-card-table .table-actions form,
  .mobile-card-table .table-actions form .btn {
    width: 100%;
  }

  .mobile-card-table td[colspan] {
    display: block;
    width: 100% !important;
    padding: 0;
    text-align: left !important;
  }

  .mobile-card-table td[colspan]::before {
    display: none;
  }

  .login-body {
    padding: 24px 18px;
  }

  .login-shell {
    transform: none;
  }

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

  .login-hero,
  .login-card {
    padding: 24px;
  }

  .login-card--simple {
    padding: 0;
    border-radius: 0;
  }

  .login-logo {
    width: min(280px, 76vw);
    margin-bottom: 30px;
  }

  .login-form .form-group + .form-group {
    margin-top: 24px;
  }

  .login-hero h1 {
    font-size: 2.4rem;
  }
}

@media (max-width: 575.98px) {
  .app-topbar,
  .app-page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-hero,
  .panel-card {
    border-radius: 22px;
  }

  .solicitacoes-overview {
    gap: 16px;
  }

  .solicitacoes-overview .date-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .solicitacoes-overview .date-navigation .form-control {
    grid-column: 1 / -1;
    grid-row: 1;
    max-width: none !important;
    width: 100%;
  }

  .solicitacoes-overview .date-navigation .btn {
    width: 100%;
    min-height: 44px;
    padding-left: 10px;
    padding-right: 10px;
    white-space: normal;
  }

  .corridor-tv {
    width: min(100%, 320px);
  }

  .corridor-tv__screen {
    padding: 4px;
    border-radius: 15px;
  }

  .corridor-tv__viewport {
    border-radius: 10px;
  }

  .corridor-tv__stand {
    height: 13px;
  }

  .corridor-tv__stand::before {
    height: 13px;
  }

  .search-toolbar {
    display: grid;
    gap: 12px;
  }

  .search-toolbar .form-group,
  .search-toolbar .input-group,
  .toolbar-grow,
  .search-toolbar__button {
    width: 100%;
    flex-basis: auto;
  }

  .metric-card {
    min-width: 0;
    padding: 16px;
  }

  .metric-card strong {
    font-size: 1.35rem;
    overflow-wrap: anywhere;
  }

  .report-responsavel-chart {
    min-width: 0;
    min-height: 380px;
  }

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

  .report-chart-canvas canvas {
    height: 280px !important;
  }

  .report-chart-total strong {
    font-size: 1.45rem;
  }

  .report-chart-total span {
    max-width: 70px;
    font-size: 0.68rem;
    line-height: 1.2;
  }

  .report-chart-table th,
  .report-chart-table td {
    padding: 0.62rem 0.7rem;
    font-size: 0.86rem;
  }

  .report-chart-data-table > tbody > tr {
    padding: 9px 10px;
  }

  .report-chart-data-table > tbody > tr > td {
    grid-template-columns: minmax(86px, 43%) minmax(0, 1fr);
    gap: 10px;
  }

  .mobile-card-table tbody tr {
    padding: 14px;
    border-radius: 18px;
  }

  .mobile-card-table tbody td {
    display: grid;
    grid-template-columns: minmax(96px, 36%) minmax(0, 1fr);
    gap: 10px;
  }

  .mobile-card-table tbody td::before {
    flex-basis: auto;
  }

  .usage-details-panel,
  .responsavel-details-card {
    padding: 14px;
  }

  .topbar-chip {
    display: none;
  }

  .topbar-user {
    max-width: calc(100% - 58px);
  }

  .topbar-user__copy strong {
    white-space: normal;
  }

  .topbar-logout {
    width: 48px;
    min-width: 48px;
    padding: 0;
    justify-content: center;
  }

  .topbar-logout span {
    display: none;
  }
}

@keyframes app-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}
