:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  color: #172033;
  background: #f3f6fa;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;

  background:
    radial-gradient(
      circle at top left,
      #214fa0 0,
      #102548 45%,
      #081426 100%
    );
}

.login-card {
  width: min(430px, 100%);
  padding: 38px;
  border-radius: 18px;
  background: #fff;

  box-shadow:
    0 24px 70px
    rgba(0, 0, 0, .28);
}

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 32px;
}

.brand h1 {
  margin: 0;
  font-size: 23px;
}

.brand p {
  margin: 4px 0 0;
  color: #788499;
}

.brand-icon {
  width: 56px;
  height: 56px;

  display: grid;
  place-items: center;

  border-radius: 15px;

  background: #174a96;
  color: #fff;

  font-weight: 800;
}

.brand-icon.small {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  font-size: 13px;
}

form label {
  display: block;
  margin-bottom: 18px;

  font-size: 13px;
  font-weight: 600;
  color: #47546a;
}

input,
select {
  width: 100%;

  margin-top: 7px;
  padding: 11px 13px;

  border: 1px solid #d7deea;
  border-radius: 9px;

  background: #fff;
  color: #172033;

  outline: none;
}

input:focus,
select:focus {
  border-color: #2a64ba;

  box-shadow:
    0 0 0 3px
    rgba(42, 100, 186, .12);
}

.primary-button {
  width: 100%;
  border: 0;

  padding: 12px 16px;
  border-radius: 9px;

  background: #174a96;
  color: #fff;

  font-weight: 700;
}

.primary-button:hover {
  background: #113b7d;
}

.error-message {
  min-height: 20px;
  margin-top: 15px;

  color: #b3261e;
  font-size: 13px;
}

.app {
  min-height: 100vh;
  display: flex;
}

.sidebar {
  position: fixed;

  width: 240px;
  height: 100vh;

  display: flex;
  flex-direction: column;

  padding: 22px 14px;

  background: #102548;
  color: #fff;
}

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

  padding: 0 8px 28px;
}

.sidebar-brand div:last-child {
  display: flex;
  flex-direction: column;
}

.sidebar-brand span {
  margin-top: 2px;
  color: #9cb2d3;
  font-size: 12px;
}

nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav-item {
  width: 100%;

  display: flex;
  align-items: center;
  gap: 11px;

  padding: 11px 13px;

  border: 0;
  border-radius: 8px;

  background: transparent;
  color: #b9c9df;

  text-align: left;
}

.nav-item:hover,
.nav-item.active {
  background: #1b3966;
  color: #fff;
}

.nav-item.disabled {
  opacity: .45;
  cursor: default;
}

.sidebar-footer {
  margin-top: auto;
  padding: 14px 8px 0;

  border-top:
    1px solid rgba(255,255,255,.1);
}

#sidebarUser {
  margin-bottom: 12px;

  color: #bdc9da;
  font-size: 12px;

  overflow: hidden;
  text-overflow: ellipsis;
}

.logout-button {
  width: 100%;
  padding: 8px;

  border:
    1px solid rgba(255,255,255,.18);

  border-radius: 7px;

  background: transparent;
  color: #fff;
}

.main {
  flex: 1;
  min-width: 0;

  margin-left: 240px;
  padding: 28px 32px 48px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 25px;
}

.topbar h1 {
  margin: 0;
  font-size: 25px;
}

.topbar p {
  margin: 5px 0 0;
  color: #768296;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;

  font-size: 13px;
}

.role-badge {
  padding: 5px 8px;

  border-radius: 999px;

  background: #e6eefb;
  color: #194b93;

  font-size: 11px;
  font-weight: 700;
}

.filters {
  display: grid;

  grid-template-columns:
    1.2fr
    1.2fr
    1fr
    2fr
    auto;

  gap: 12px;
  align-items: end;

  padding: 17px;

  border: 1px solid #e0e5ee;
  border-radius: 12px;

  background: #fff;

  margin-bottom: 18px;
}

.filter-field label {
  display: block;

  font-size: 11px;
  font-weight: 700;

  text-transform: uppercase;
  color: #69768a;
}

.secondary-button {
  min-height: 40px;

  padding: 9px 15px;

  border: 1px solid #ccd5e2;
  border-radius: 8px;

  background: #fff;
  color: #27364b;

  font-weight: 600;
}

.secondary-button:hover {
  background: #f5f7fa;
}

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

  gap: 14px;
  margin-bottom: 18px;
}

.card {
  padding: 20px;

  border: 1px solid #e0e5ee;
  border-radius: 12px;

  background: #fff;
}

.card-label {
  display: block;

  margin-bottom: 8px;

  color: #788499;
  font-size: 12px;
}

.card strong {
  font-size: 30px;
  letter-spacing: -1px;
}

.panel {
  border: 1px solid #e0e5ee;
  border-radius: 12px;

  overflow: hidden;

  background: #fff;
}

.panel-header {
  display: flex;

  align-items: center;
  justify-content: space-between;

  padding: 18px 20px;

  border-bottom: 1px solid #e5e9f0;
}

.panel-header h2 {
  margin: 0;
  font-size: 17px;
}

.panel-header p {
  margin: 4px 0 0;

  color: #7c8798;
  font-size: 12px;
}

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

table {
  width: 100%;

  border-collapse: collapse;

  font-size: 13px;
}

th {
  padding: 12px 14px;

  background: #f7f9fc;

  color: #667488;

  font-size: 11px;
  text-transform: uppercase;

  text-align: left;
}

td {
  padding: 13px 14px;

  border-top: 1px solid #edf0f4;

  vertical-align: top;
}

tbody tr:hover {
  background: #fafbfd;
}

.ticket-subject {
  min-width: 270px;
  max-width: 420px;
}

.ticket-subject strong {
  display: block;
  font-weight: 600;
}

.ticket-subject small {
  display: block;

  margin-top: 5px;

  color: #8490a1;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  max-width: 420px;
}

.status {
  display: inline-block;

  padding: 5px 8px;
  border-radius: 999px;

  background: #eef2f7;

  font-size: 11px;
  font-weight: 700;

  white-space: nowrap;
}

.status-finalizado {
  background: #e7f5ec;
  color: #207044;
}

.status-a-fazer {
  background: #fff2d8;
  color: #8c5a00;
}

.status-atendendo {
  background: #e5efff;
  color: #1e579d;
}

.status-pausado {
  background: #f2e9ff;
  color: #7040a2;
}

.pagination {
  display: flex;

  align-items: center;
  justify-content: center;

  gap: 15px;

  padding: 16px;

  border-top: 1px solid #e5e9f0;

  color: #687589;
  font-size: 12px;
}

@media (max-width: 1050px) {

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

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

@media (max-width: 760px) {

  .sidebar {
    display: none;
  }

  .main {
    margin-left: 0;
    padding: 20px 14px;
  }

  .topbar {
    align-items: flex-start;
    gap: 20px;
  }

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

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