/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.5.15_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.5.15_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
:root {
  --background: #f6f7f9;
  --surface: #ffffff;
  --surface-soft: #eef4f1;
  --text: #18211f;
  --muted: #66706d;
  --line: #dce3e0;
  --primary: #176b5b;
  --primary-dark: #0f4f43;
  --danger: #b42318;
  --warning: #a15c07;
  --ok: #16794c;
  --shadow: 0 14px 45px rgba(24, 33, 31, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--background);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  align-items: center;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  transition:
    background 140ms ease,
    border 140ms ease,
    color 140ms ease;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

input,
select,
textarea {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  min-height: 40px;
  padding: 9px 11px;
  width: 100%;
}

textarea {
  min-height: 80px;
  resize: vertical;
}

label {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  grid-gap: 6px;
  gap: 6px;
}

.auth-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.login-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-width: 420px;
  padding: 28px;
  width: 100%;
}

.login-panel h1,
.page-title h1 {
  font-size: 28px;
  line-height: 1.15;
  margin: 0;
}

.login-panel p,
.page-title p {
  color: var(--muted);
  margin: 8px 0 0;
}

.form-stack {
  display: grid;
  grid-gap: 16px;
  gap: 16px;
  margin-top: 24px;
}

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

.topbar {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 40px);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: grid;
  grid-gap: 2px;
  gap: 2px;
}

.brand strong {
  font-size: 16px;
}

.brand span,
.small-muted {
  color: var(--muted);
  font-size: 13px;
}

.nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav a,
.secondary-button {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text);
}

.nav a {
  border-radius: 8px;
  font-size: 14px;
  padding: 10px 12px;
}

.primary-button {
  background: var(--primary);
  color: #fff;
}

.primary-button:hover {
  background: var(--primary-dark);
}

.danger-button {
  background: #fff2f0;
  color: var(--danger);
}

.ghost-button {
  background: transparent;
  color: var(--muted);
}

.content {
  display: grid;
  grid-gap: 22px;
  gap: 22px;
  margin: 0 auto;
  max-width: 1220px;
  padding: 28px clamp(16px, 4vw, 40px) 48px;
}

.page-title {
  align-items: flex-end;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.toolbar {
  align-items: flex-end;
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.stats-grid {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
}

.stat {
  background: var(--surface-soft);
  border-radius: 8px;
  padding: 14px;
}

.stat span {
  color: var(--muted);
  display: block;
  font-size: 13px;
}

.stat strong {
  display: block;
  font-size: 24px;
  margin-top: 6px;
}

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

table {
  border-collapse: collapse;
  min-width: 860px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  padding: 12px 10px;
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 9px;
}

.status.ASSIGNED,
.status.OPENED {
  background: #fff7ed;
  color: var(--warning);
}

.status.ATTENDED {
  background: #ecfdf3;
  color: var(--ok);
}

.status.CLOSED_NO_RESPONSE,
.status.EXPIRED,
.status.REASSIGN_REQUESTED {
  background: #fff2f0;
  color: var(--danger);
}

.error {
  background: #fff2f0;
  border-radius: 8px;
  color: var(--danger);
  padding: 10px 12px;
}

.success {
  background: #ecfdf3;
  border-radius: 8px;
  color: var(--ok);
  padding: 10px 12px;
}

.two-column {
  display: grid;
  grid-gap: 16px;
  gap: 16px;
  grid-template-columns: 360px 1fr;
}

@media (max-width: 900px) {
  .page-title,
  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar,
  .stats-grid,
  .two-column {
    grid-template-columns: 1fr;
  }
}

