@font-face {
  font-family: Montserrat;
  src: url("fonts/montserrat-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@import url("new-ticket-modern.css?v=20261009-1");

:root {
  --z-ink: #172235;
  --z-navy: #10253e;
  --z-blue: #075f88;
  --z-blue-dark: #064d70;
  --z-cyan: #19b9b0;
  --z-violet: #635bff;
  --z-muted: #748198;
  --z-line: #e6ebf2;
  --z-bg: #f5f7fb;
  --z-paper: #fff;
  --z-success: #138a62;
  --z-warning: #b66b08;
  --z-danger: #d94359;
  --z-shadow: 0 14px 42px rgba(27, 39, 64, .07);
  --z-title-gradient: linear-gradient(105deg, var(--z-navy) 0%, var(--z-blue) 55%, #149ca2 100%);
}

* { box-sizing: border-box; }
html { background: var(--z-bg); }
body {
  min-height: 100vh;
  margin: 0;
  background: var(--z-bg) !important;
  color: var(--z-ink);
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-size: 14px;
}
a { color: var(--z-blue); text-decoration: none; }
a:hover { color: var(--z-cyan); }

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  min-height: 76px;
  border-bottom: 1px solid rgba(230, 235, 242, .92);
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(16px);
}
.app-topbar-inner {
  width: min(1440px, 100%);
  min-height: 76px;
  margin: 0 auto;
  padding: 0 38px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.app-brand { display: flex; align-items: center; gap: 12px; color: var(--z-ink); white-space: nowrap; }
.app-brand:hover { color: var(--z-ink); }
.app-brand-logo { display: block; width: 122px; max-height: 46px; object-fit: contain; }
.app-brand-divider { width: 1px; height: 32px; background: var(--z-line); }
.app-brand-product { color: var(--z-ink); font-size: 15px; font-weight: 850; letter-spacing: -.035em; }
.app-brand-product small { display: block; margin-top: 4px; color: var(--z-muted); font-size: 8px; font-weight: 700; letter-spacing: .05em; }
.app-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.app-nav a {
  padding: 10px 12px;
  border-radius: 10px;
  color: #66738a;
  font-size: 12px;
  font-weight: 750;
  transition: .2s;
}
.app-nav a:hover,
.app-nav a.active { background: #eaf5f9; color: var(--z-blue); }
.app-user { padding-left: 18px; border-left: 1px solid var(--z-line); color: var(--z-muted); font-size: 11px; }
.app-user strong { display: block; max-width: 170px; overflow: hidden; color: var(--z-ink); text-overflow: ellipsis; white-space: nowrap; }

.app-main { width: min(1440px, 100%); margin: 0 auto; padding: 38px 38px 70px; }
.app-main-narrow { width: min(1080px, 100%); }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.page-heading h1,
.identity-title {
  margin: 5px 0 7px;
  background: var(--z-title-gradient);
  color: var(--z-blue);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: clamp(29px, 4vw, 38px);
  font-weight: 850;
  letter-spacing: -.055em;
}
.eyebrow { margin: 0; color: var(--z-blue); font-size: 9px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.page-subtitle { margin: 0; color: var(--z-muted); font-size: 12px; line-height: 1.55; }

.card {
  border: 1px solid var(--z-line) !important;
  border-radius: 18px !important;
  background: var(--z-paper);
  box-shadow: var(--z-shadow) !important;
}
.card-body { padding: 24px; }
.card h2, .card h3 { color: var(--z-navy); font-weight: 800; letter-spacing: -.025em; }

/* Identidade visual dos títulos */
main h1,
main h2,
.auth-page h1,
.auth-page h2 {
  width: fit-content;
  max-width: 100%;
  background: var(--z-title-gradient);
  color: var(--z-blue);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn {
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  transition: .2s;
}
.btn-primary {
  border-color: var(--z-blue);
  background: linear-gradient(110deg, var(--z-blue), #087da0);
  box-shadow: 0 8px 18px rgba(7, 95, 136, .18);
}
.btn-primary:hover, .btn-primary:focus { border-color: var(--z-blue-dark); background: linear-gradient(110deg, var(--z-blue-dark), #06718f); transform: translateY(-1px); }
.btn-outline-primary { border-color: #a8cfdb; color: var(--z-blue); }
.btn-outline-primary:hover { border-color: var(--z-blue); background: #eaf5f9; color: var(--z-blue); }
.btn-outline-secondary, .btn-outline-dark { border-color: var(--z-line); color: #526078; background: #fff; }
.btn-outline-secondary:hover, .btn-outline-dark:hover { border-color: #9fcbd9; background: #eef8fa; color: var(--z-blue); }
.btn-outline-success { border-color: #b7dfcf; color: var(--z-success); }
.btn-outline-danger { border-color: #f2bac3; color: var(--z-danger); }

.form-label { margin-bottom: 7px; color: #41586a; font-size: 11px; font-weight: 800; }
.form-control, .form-select {
  min-height: 43px;
  border: 1px solid #d8e5ea;
  border-radius: 11px;
  background-color: #fff;
  color: var(--z-ink);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 13px;
}
.form-control:focus, .form-select:focus {
  border-color: var(--z-blue);
  box-shadow: 0 0 0 4px rgba(8, 117, 155, .11);
}
.form-control[readonly] { background: #f4f8fa; color: #5d7483; }
.form-text { color: #8a98a7; font-size: 10px; }
textarea.form-control { line-height: 1.55; }

.table-responsive { border-radius: 18px; }
.table { --bs-table-bg: transparent; color: var(--z-ink); }
.table > :not(caption) > * > * { padding: 15px 13px; border-bottom-color: #edf1f5; font-size: 12px; vertical-align: middle; }
.table thead th {
  border-bottom: 1px solid var(--z-line);
  background: #fbfcfd;
  color: var(--z-muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.table-hover > tbody > tr:hover > * { --bs-table-bg-state: #f8fbfc; }
.table-success > * { --bs-table-bg: #f4fcf8 !important; }
.table-warning > * { --bs-table-bg: #fffaf0 !important; }
.table-danger > * { --bs-table-bg: #fff5f6 !important; }
.sla-progress { width: 142px; min-width: 142px; }
.sla-progress-meta { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 5px; color: var(--z-muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.sla-progress-meta strong { color: var(--z-ink); font-size: 9px; white-space: nowrap; text-transform: none; letter-spacing: 0; }
.sla-progress-track { height: 7px; overflow: hidden; border-radius: 999px; background: #e9eef2; box-shadow: inset 0 1px 2px rgba(16, 42, 67, .08); }
.sla-progress-track span { display: block; height: 100%; min-width: 3px; border-radius: inherit; transition: width .5s ease, background-color .25s ease; }
.sla-progress-value-0 { width: 0; }
.sla-progress-value-5 { width: 5%; }
.sla-progress-value-10 { width: 10%; }
.sla-progress-value-15 { width: 15%; }
.sla-progress-value-20 { width: 20%; }
.sla-progress-value-25 { width: 25%; }
.sla-progress-value-30 { width: 30%; }
.sla-progress-value-35 { width: 35%; }
.sla-progress-value-40 { width: 40%; }
.sla-progress-value-45 { width: 45%; }
.sla-progress-value-50 { width: 50%; }
.sla-progress-value-55 { width: 55%; }
.sla-progress-value-60 { width: 60%; }
.sla-progress-value-65 { width: 65%; }
.sla-progress-value-70 { width: 70%; }
.sla-progress-value-75 { width: 75%; }
.sla-progress-value-80 { width: 80%; }
.sla-progress-value-85 { width: 85%; }
.sla-progress-value-90 { width: 90%; }
.sla-progress-value-95 { width: 95%; }
.sla-progress-value-100 { width: 100%; }
.sla-progress-safe .sla-progress-track span, .sla-progress-complete .sla-progress-track span { background: linear-gradient(90deg, #17a673, #37c98a); }
.sla-progress-warning .sla-progress-track span { background: linear-gradient(90deg, #e59a20, #f4bd48); }
.sla-progress-critical .sla-progress-track span, .sla-progress-overdue .sla-progress-track span { background: linear-gradient(90deg, #d74359, #ef6b78); }
.sla-progress-critical .sla-progress-track span { animation: slaPulse 1s ease-in-out infinite alternate; }
.sla-progress-critical .sla-progress-meta strong, .sla-progress-overdue .sla-progress-meta strong { color: #c9364e; }
.sla-progress-warning .sla-progress-meta strong { color: #b8790d; }
@keyframes slaPulse { from { opacity: .62; box-shadow: 0 0 0 rgba(215, 67, 89, 0); } to { opacity: 1; box-shadow: 0 0 8px rgba(215, 67, 89, .5); } }
.sla-overview { width: 188px; min-width: 188px; }
.sla-overview-row { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; color: var(--z-muted); font-size: 8px; }
.sla-overview-row strong { font-size: 8px; white-space: nowrap; }
.sla-ok { color: var(--z-success); }.sla-warn { color: #bd7b0d; }.sla-bad { color: var(--z-danger); }.sla-neutral { color: var(--z-muted); }
.sla-overview-current { margin-top: 6px; padding-top: 6px; border-top: 1px solid #edf1f5; }
.sla-overview-current .sla-progress { width: 100%; min-width: 0; }.sla-overview-current .sla-progress-meta { margin-bottom: 3px; }
.dashboard-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 17px; border-top: 1px solid var(--z-line); color: var(--z-muted); font-size: 10px; }
.ticket-list-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 4px 2px 16px; }
.ticket-list-heading span { display: block; margin-bottom: 3px; color: var(--z-cyan); font-size: 8px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.ticket-list-heading h2 { margin: 0; color: var(--z-navy); font-size: 20px; font-weight: 850; letter-spacing: -.035em; }
.ticket-list-heading > strong { padding: 7px 11px; border: 1px solid #dce9ee; border-radius: 999px; background: #fff; color: #66808e; font-size: 9px; }
.ticket-list-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ticket-list-card { position: relative; min-width: 0; padding: 20px; overflow: hidden; border: 1px solid #e1eaee; border-radius: 19px; background: #fff; box-shadow: 0 9px 28px rgba(24, 61, 82, .065); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.ticket-list-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: #2fb779; }
.ticket-list-card:hover { transform: translateY(-2px); border-color: #bed9e1; box-shadow: 0 15px 35px rgba(24, 61, 82, .11); }
.ticket-list-card-warning::before { background: linear-gradient(#e69b25, #f0bd4d); }
.ticket-list-card-critical::before { background: linear-gradient(#d63d55, #ed6574); }
.ticket-list-card-critical { border-color: #f0d6db; }
.ticket-list-card-status-resolvido { border-color: #cfeadf; background: linear-gradient(145deg, #fff 0%, #fbfffd 70%, #effaf5 100%); }
.ticket-list-card-status-resolvido::before { background: linear-gradient(180deg, #2bc78c, #16845f); }
.ticket-list-card-status-fechado { border-color: #d8e4ea; background: linear-gradient(145deg, #fff 0%, #fbfdfe 70%, #eef5f8 100%); }
.ticket-list-card-status-fechado::before { background: linear-gradient(180deg, #187ba0, #0a4969); }
.ticket-list-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.ticket-list-kicker { display: block; margin-bottom: 3px; color: #91a1ab; font-size: 7px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.ticket-list-protocol { color: var(--z-blue); font-size: 12px; font-weight: 900; text-decoration: none; }
.ticket-list-protocol:hover, .ticket-list-title:hover { color: var(--z-cyan); }
.ticket-list-priority { display: grid; flex: 0 0 auto; justify-items: end; gap: 4px; }
.ticket-list-priority > span { color: #91a1ab; font-size: 7px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.ticket-priority { flex: 0 0 auto; padding: 6px 10px; border-radius: 999px; font-size: 8px; font-weight: 900; letter-spacing: .025em; }
.ticket-priority-critical { background: #fff0f2; color: #c93149; }
.ticket-priority-high { background: #fff3e8; color: #cc6819; }
.ticket-priority-medium { background: #fff8dd; color: #9f7407; }
.ticket-priority-low { background: #e8f8f0; color: #16845f; }
.ticket-list-title { display: block; min-height: 26px; margin: 13px 0 16px; overflow: hidden; color: var(--z-navy); font-size: 17px; font-weight: 850; line-height: 1.25; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.ticket-list-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ticket-list-meta > div { min-width: 0; padding: 10px 12px; border: 1px solid #edf1f4; border-radius: 12px; background: #f9fbfc; }
.ticket-list-meta span, .ticket-list-meta strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-list-meta span { margin-bottom: 3px; color: #92a2ad; font-size: 7px; font-weight: 900; letter-spacing: .065em; text-transform: uppercase; }
.ticket-list-meta strong { color: #3e5664; font-size: 10px; }
.ticket-list-meta .ticket-unassigned { color: #a7781b; }
.ticket-list-status-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 1px; }
.ticket-status-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid transparent; border-radius: 999px; background: #edf4f7; color: #5e7480; font-size: 9px; font-weight: 900; letter-spacing: .015em; line-height: 1; white-space: nowrap; }
.ticket-status-chip i { position: relative; display: inline-grid; place-items: center; width: 15px; height: 15px; flex: 0 0 15px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(255,255,255,.72); }
.ticket-status-chip i::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #fff; }
.ticket-status-chip-novo { border-color: #cfe8f3; background: #eaf6fb; color: #137aa2; }
.ticket-status-chip-em_andamento { border-color: #ccecdf; background: #e8f8f3; color: #147d60; }
.ticket-status-chip-em_andamento i { animation: statusChipPulse 1.8s ease-in-out infinite; }
.ticket-status-chip-aguardando { border-color: #f1dfad; background: #fff7e2; color: #9c6c05; }
.ticket-status-chip-resolvido { border-color: #bfe6d4; background: linear-gradient(135deg, #eaf9f2, #dcf5e9); color: #117b58; box-shadow: 0 5px 14px rgba(17,123,88,.10); }
.ticket-status-chip-fechado { border-color: #c9dfe8; background: linear-gradient(135deg, #edf7fa, #e2f0f5); color: #0a6589; box-shadow: 0 5px 14px rgba(10,101,137,.10); }
.ticket-status-chip-resolvido i::after, .ticket-status-chip-fechado i::after { width: 6px; height: 3px; border: 0 solid #fff; border-width: 0 0 2px 2px; border-radius: 0; background: transparent; transform: translateY(-1px) rotate(-45deg); }
.ticket-list-card .ticket-status-chip, .kanban-ticket .ticket-status-chip { gap: 9px; min-height: 34px; padding: 8px 13px 8px 9px; font-size: 10px; box-shadow: 0 6px 16px rgba(33,72,91,.08); }
.ticket-list-card .ticket-status-chip i, .kanban-ticket .ticket-status-chip i { width: 19px; height: 19px; flex-basis: 19px; }
.ticket-list-card .ticket-status-chip-resolvido, .ticket-list-card .ticket-status-chip-fechado { min-height: 37px; padding-right: 15px; font-size: 11px; letter-spacing: .025em; }
@keyframes statusChipPulse { 50% { box-shadow: 0 0 0 6px rgba(20,125,96,.08); } }
.ticket-list-created { color: #94a3ad; font-size: 8px; }
.ticket-list-sla { padding: 13px 14px 12px; border: 1px solid #dfe9ed; border-radius: 14px; background: linear-gradient(135deg, #f9fcfd, #f4f9fa); }
.ticket-list-sla-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.ticket-list-sla-title > span { color: #758b97; font-size: 7px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.ticket-list-sla-title a { color: var(--z-blue); font-size: 8px; font-weight: 850; text-decoration: none; }
.ticket-list-sla-title b { margin-left: 3px; font-size: 11px; }
.ticket-list-card .sla-overview { width: 100%; min-width: 0; }
.ticket-list-card .sla-overview-row, .ticket-list-card .sla-overview-row strong { font-size: 9px; }
.ticket-list-card .sla-overview-current { margin-top: 8px; padding-top: 8px; }
.ticket-list-card .sla-progress-track { height: 8px; }
.ticket-list-empty { grid-column: 1 / -1; display: grid; place-items: center; min-height: 220px; padding: 35px; border: 1px dashed #cddde3; border-radius: 19px; background: rgba(255,255,255,.65); color: var(--z-muted); text-align: center; }
.ticket-list-empty span { font-size: 30px; }.ticket-list-empty strong { color: var(--z-navy); font-size: 14px; }.ticket-list-empty p { margin: 0; font-size: 10px; }
.ticket-list-grid + .dashboard-pagination { margin-top: 16px; border: 1px solid var(--z-line); border-radius: 14px; background: #fff; }
.badge { border-radius: 999px; padding: 6px 10px; font-size: 9px; font-weight: 850; letter-spacing: .02em; }
.user-email { color: var(--z-muted); font-size: .75rem; }
.status-help { color: var(--z-muted); font-size: .72rem; }
.text-bg-primary { background: #e8f4f8 !important; color: var(--z-blue) !important; }
.text-bg-success { background: #e7f8f0 !important; color: var(--z-success) !important; }
.text-bg-secondary { background: #edf1f5 !important; color: #66738a !important; }
.text-bg-danger { background: #fff0f2 !important; color: var(--z-danger) !important; }

.metric { position: relative; overflow: hidden; border-left: 0 !important; }
.metric::after { content: ""; position: absolute; top: -31px; right: -28px; width: 106px; height: 106px; border-radius: 0; background: url("login-star.png") center / contain no-repeat; opacity: .34; transform: rotate(7deg); pointer-events: none; }
.metric small { color: var(--z-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.metric .display-6 { position: relative; z-index: 1; margin-top: 12px; color: var(--z-navy); font-weight: 850; letter-spacing: -.06em; }
.metric-sla-alert-number { display: block; width: max-content; transform-origin: 50% 100%; will-change: transform; }
.metric-sla-alert-number.is-alerting { animation: slaAlertShakeJump 1.3s cubic-bezier(.2,.8,.25,1) both; }
@keyframes slaAlertShakeJump {
  0%, 100% { transform: translate3d(0,0,0) rotate(0) scale(1); }
  9% { transform: translate3d(-3px,0,0) rotate(-5deg) scale(1.02); }
  18% { transform: translate3d(4px,0,0) rotate(5deg) scale(1.03); }
  27% { transform: translate3d(-4px,0,0) rotate(-4deg) scale(1.03); }
  36% { transform: translate3d(3px,0,0) rotate(3deg) scale(1.02); }
  48% { transform: translate3d(0,-11px,0) rotate(0) scale(1.1); text-shadow: 0 9px 18px rgba(226,54,79,.24); }
  62% { transform: translate3d(0,0,0) scale(.98); }
  74% { transform: translate3d(0,-4px,0) scale(1.04); }
  86% { transform: translate3d(0,0,0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .metric-sla-alert-number.is-alerting { animation: none; }
}
.report-alert-card { position: relative; overflow: hidden; border-left: 4px solid #2b9b78 !important; }
.report-alert-card::after { content: ""; position: absolute; right: -20px; bottom: -27px; width: 82px; height: 82px; background: url("login-star.png") center / contain no-repeat; opacity: .22; transform: rotate(8deg); pointer-events: none; }
.report-alert-card span, .report-alert-card strong, .report-alert-card small { position: relative; z-index: 1; display: block; }
.report-alert-card span { color: var(--z-muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }.report-alert-card strong { margin: 7px 0 1px; color: var(--z-navy); font-size: 28px; font-weight: 850; letter-spacing: -.05em; }.report-alert-card small { color: #82939e; font-size: 9px; }
.report-alert-critical { border-left-color: #d94359 !important; background: #fff6f7; }.report-alert-critical strong { color: #c9364e; }.report-alert-high { border-left-color: #ed7d31 !important; background: #fff9f3; }.report-alert-high strong { color: #cf6d25; }.report-alert-medium { border-left-color: #e5ae28 !important; background: #fffdf3; }.report-alert-medium strong { color: #ad800a; }.report-alert-backlog { border-left-color: #075f88 !important; background: #f4fafc; }.report-alert-backlog strong { color: #075f88; }
.sla-legend { position: sticky; top: 72px; z-index: 10; display: flex; align-items: center; flex-wrap: wrap; gap: 9px 16px; margin: -10px 0 22px; padding: 11px 15px; border: 1px solid #dfe9ee; border-radius: 13px; background: rgba(255,255,255,.94); color: #627986; font-size: 10px; box-shadow: 0 6px 18px rgba(24, 61, 82, .06); backdrop-filter: blur(10px); }
.sla-legend-title { color: var(--z-navy); font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.sla-legend > span:not(.sla-legend-title) { display: inline-flex; align-items: center; gap: 6px; }
.sla-legend-dot { width: 8px; height: 8px; display: inline-block; border-radius: 50%; box-shadow: 0 0 0 3px rgba(13, 64, 81, .05); }
.sla-legend-safe { background: #20b47d; }.sla-legend-warning { background: #e7a62b; }.sla-legend-critical { background: #e34c62; animation: slaPulse 1s ease-in-out infinite alternate; }.sla-legend-overdue { background: #a92b43; }
.attention-panel { padding: 18px; border: 1px solid #f0d8dc; border-radius: 18px; background: linear-gradient(135deg, #fff9fa, #fff); box-shadow: 0 10px 30px rgba(112, 35, 52, .06); }
.attention-panel-empty { border-color: #dce9ee; background: linear-gradient(135deg, #f8fcfd, #fff); }
.attention-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 13px; }.attention-heading .eyebrow { margin-bottom: 4px; color: #d34a60; }.attention-heading h2 { margin: 0; color: var(--z-navy); font-size: 18px; font-weight: 850; }.attention-counter { padding: 7px 10px; border-radius: 999px; background: #fff0f2; color: #c9364e; font-size: 9px; font-weight: 900; }
.attention-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }.attention-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding: 12px 13px; border: 1px solid #f0dce0; border-left: 4px solid #e34c62; border-radius: 13px; background: #fff; color: var(--z-ink); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }.attention-item:hover { color: var(--z-ink); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(112, 35, 52, .09); }.attention-item-warning { border-left-color: #e3a226; border-color: #f1e3c1; }.attention-item-medium { border-left-color: #277f9d; border-color: #d7e9ef; }.attention-item > div:first-child { min-width: 0; }.attention-item-protocol, .attention-item strong, .attention-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.attention-item-protocol { color: var(--z-blue); font-size: 9px; font-weight: 900; }.attention-item strong { margin: 3px 0; color: var(--z-navy); font-size: 11px; }.attention-item small { color: var(--z-muted); font-size: 9px; }.attention-item-time { flex: 0 0 auto; text-align: right; }.attention-item-time b { display: block; color: #c9364e; font-size: 11px; }.attention-item-warning .attention-item-time b { color: #b8790d; }.attention-item-medium .attention-item-time b { color: #26748b; }.attention-item-time span { color: var(--z-muted); font-size: 8px; }.attention-empty { color: var(--z-muted); font-size: 11px; }
.report-loading { position: fixed; z-index: 20; top: 82px; right: 28px; display: inline-flex; align-items: center; gap: 9px; padding: 10px 13px; border: 1px solid #cfe4ea; border-radius: 999px; background: rgba(255,255,255,.95); color: var(--z-blue); box-shadow: 0 10px 25px rgba(26, 78, 99, .13); font-size: 10px; font-weight: 850; }.report-loading.d-none { display: none !important; }.loading-spinner { width: 13px; height: 13px; border: 2px solid #cde5e9; border-top-color: var(--z-cyan); border-radius: 50%; animation: loadingSpin .75s linear infinite; }@keyframes loadingSpin { to { transform: rotate(360deg); } }
.table-skeleton { display: grid; gap: 9px; padding: 10px 0; }.table-skeleton span { display: block; height: 12px; border-radius: 999px; background: linear-gradient(90deg, #edf3f5 20%, #f8fbfc 50%, #edf3f5 80%); background-size: 200% 100%; animation: skeletonMove 1.2s ease-in-out infinite; }.table-skeleton span:nth-child(2) { width: 88%; }.table-skeleton span:nth-child(3) { width: 72%; }.table-skeleton span:nth-child(4) { width: 94%; }@keyframes skeletonMove { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* Dashboard gerencial */
.report-page-heading { align-items: center; }
.report-live-status { display: flex; align-items: center; gap: 10px; min-width: 172px; padding: 11px 14px; border: 1px solid #dce9ed; border-radius: 14px; background: rgba(255,255,255,.82); box-shadow: 0 8px 25px rgba(31,71,91,.055); }
.report-live-status > i { width: 9px; height: 9px; border-radius: 50%; background: #22ad7b; box-shadow: 0 0 0 5px rgba(34,173,123,.11); animation: reportLive 1.8s ease-in-out infinite; }
.report-live-status strong, .report-live-status span { display: block; }
.report-live-status strong { color: #365367; font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; }
.report-live-status span { margin-top: 2px; color: #8a9aa4; font-size: 9px; }
@keyframes reportLive { 50% { box-shadow: 0 0 0 8px rgba(34,173,123,.04); } }

.report-filter-card { overflow: hidden; border: 1px solid #dce8ed !important; border-radius: 22px !important; background: #fff; box-shadow: 0 16px 44px rgba(25,61,81,.07) !important; }
.report-filter-card::before { content: ""; display: block; height: 3px; background: linear-gradient(90deg,var(--z-blue),var(--z-cyan) 48%,var(--z-violet)); }
.report-filter-card .card-body { padding: 23px 24px 20px; }
.report-filter-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid #eaf0f3; }
.report-filter-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.report-filter-mark { display: grid !important; align-content: center; gap: 4px; flex: 0 0 auto; width: 38px; height: 38px; margin: 0 !important; padding: 10px; border: 1px solid #d8ecef; border-radius: 12px; background: linear-gradient(145deg,#f4fbfc,#e8f7f8); box-shadow: 0 7px 16px rgba(25,129,143,.08); }
.report-filter-mark i { display: block; width: 100%; height: 2px; border-radius: 999px; background: linear-gradient(90deg,var(--z-blue),var(--z-cyan)); }
.report-filter-mark i:nth-child(2) { width: 72%; }.report-filter-mark i:nth-child(3) { width: 46%; }
.report-filter-title > div > span, .report-filter-title > div > strong { display: block; }
.report-filter-title > div > span { margin-bottom: 3px; color: var(--z-cyan); font-size: 8px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.report-filter-title > div > strong { color: var(--z-navy); font-size: 16px; font-weight: 850; letter-spacing: -.03em; }
.report-filter-context { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid #e5edef; border-radius: 999px; background: #f8fbfc; color: #80919b; font-size: 8px; white-space: nowrap; }
.report-filter-context i { width: 6px; height: 6px; border-radius: 50%; background: #23ad7b; box-shadow: 0 0 0 3px rgba(35,173,123,.09); }
.report-filter-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 12px; }
.report-filter-field { min-width: 0; }
.report-filter-field .form-label { margin-bottom: 7px; color: #526c7a; font-size: 9px; font-weight: 850; letter-spacing: .015em; }
.report-filter-field .form-control, .report-filter-field .form-select { min-height: 46px; border: 1px solid #dbe7eb; border-radius: 12px; background-color: #fbfdfe; color: #18384c; font-size: 11px; box-shadow: 0 4px 12px rgba(25,61,81,.025); transition: border-color .18s ease,box-shadow .18s ease,background-color .18s ease; }
.report-filter-field .form-control:hover, .report-filter-field .form-select:hover { border-color: #c9dde3; background-color: #fff; }
.report-filter-field .form-control:focus, .report-filter-field .form-select:focus { border-color: #58b7c0; background-color: #fff; box-shadow: 0 0 0 4px rgba(26,166,174,.1); }
.report-filter-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid #edf2f4; }
.report-filter-submit { min-width: 190px; padding: 11px 20px; border: 0; border-radius: 12px; background: linear-gradient(135deg,#08749c,#1094a5); box-shadow: 0 10px 22px rgba(8,116,156,.18); font-size: 10px; font-weight: 850; }
.report-filter-submit:hover { background: linear-gradient(135deg,#076b90,#0b8798); box-shadow: 0 12px 24px rgba(8,116,156,.24); transform: translateY(-1px); }
.report-filter-export-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.report-filter-export { padding: 10px 15px; border: 1px solid #dce6ea; border-radius: 11px; background: #fff; color: #496270; font-size: 9px; font-weight: 850; box-shadow: 0 5px 14px rgba(25,61,81,.035); }
.report-filter-export:hover { border-color: #cbdce2; background: #f8fbfc; color: var(--z-blue); transform: translateY(-1px); }
.report-filter-export-xlsx { border-color: #cde8dc; background: #f6fcf9; color: #16815f; }
.report-filter-export-xlsx:hover { border-color: #b7dccd; background: #effaf5; color: #117253; }
.report-filter-card > .sla-legend { position: static; top: auto; z-index: auto; margin: 0; padding: 13px 24px; border: 0; border-top: 1px solid #e8eff2; border-radius: 0; background: #f8fbfc; box-shadow: none; backdrop-filter: none; }

.report-metrics-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.report-metric { min-height: 156px; box-shadow: 0 10px 32px rgba(25,61,81,.055) !important; transition: transform .2s ease,box-shadow .2s ease; }
.report-metric:hover { transform: translateY(-2px); box-shadow: 0 15px 36px rgba(25,61,81,.09) !important; }
.report-metric::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--report-accent,#08749c); }
.report-metric::after { width: 88px; height: 88px; top: -24px; right: -25px; opacity: .22; }
.report-metric .card-body { display: flex; flex-direction: column; justify-content: space-between; padding: 21px 19px 18px; }
.report-metric-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.report-metric-top > span { width: 8px; height: 8px; border-radius: 50%; background: var(--report-accent,#08749c); box-shadow: 0 0 0 4px color-mix(in srgb,var(--report-accent,#08749c) 14%,transparent); }
.report-metric .display-6 { margin: 9px 0 3px; font-size: clamp(27px,2.4vw,35px); }
.report-metric p { position: relative; z-index: 1; margin: 0; color: #8a9aa5; font-size: 8px; line-height: 1.4; }
.report-metric-blue { --report-accent:#08749c; }.report-metric-cyan { --report-accent:#20aaa6; }.report-metric-green { --report-accent:#24a776; }.report-metric-violet { --report-accent:#7167d9; }.report-metric-gold { --report-accent:#d99d2c; }.report-metric-navy { --report-accent:#193f5c; }.report-metric-red { --report-accent:#d94359; }
.reports-dashboard.is-loading .report-metric .display-6 { color: transparent; width: 62%; border-radius: 8px; background: linear-gradient(90deg,#edf3f5 20%,#f9fbfc 50%,#edf3f5 80%); background-size: 200% 100%; animation: skeletonMove 1.2s ease-in-out infinite; }

.report-operational-card { overflow: hidden; border-color: #dfe9ee !important; box-shadow: 0 10px 32px rgba(25,61,81,.045) !important; }
.report-operational-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 20px 23px 16px; border-bottom: 1px solid #e9eff2; background: linear-gradient(110deg,#fff,#f8fcfd); }
.report-operational-head span { display: block; margin-bottom: 3px; color: var(--z-cyan); font-size: 8px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.report-operational-head h2 { margin: 0; color: var(--z-navy); font-size: 16px; font-weight: 850; letter-spacing: -.03em; }
.report-operational-head small { color: #8899a4; font-size: 9px; }
.report-operational-grid { display: grid; grid-template-columns: repeat(9,minmax(0,1fr)); }
.report-operational-grid > div { min-width: 0; padding: 16px 14px; border-right: 1px solid #e9eff2; background: #fff; }
.report-operational-grid > div:last-child { border-right: 0; }
.report-operational-grid small,.report-operational-grid strong,.report-operational-grid span { display: block; }
.report-operational-grid small { min-height: 24px; color: #718692; font-size: 8px; font-weight: 850; line-height: 1.35; text-transform: uppercase; }
.report-operational-grid strong { margin: 5px 0 2px; color: var(--z-navy); font-size: 20px; font-weight: 900; letter-spacing: -.04em; }
.report-operational-grid span { overflow: hidden; color: #9aa7ae; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.reports-dashboard.is-loading .report-operational-grid strong { color: transparent; border-radius: 6px; background: linear-gradient(90deg,#edf3f5 20%,#f9fbfc 50%,#edf3f5 80%); background-size: 200% 100%; animation: skeletonMove 1.2s ease-in-out infinite; }

.report-health-panel { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 118px; padding: 22px 25px; overflow: hidden; border: 1px solid #dbeae7; border-radius: 18px; background: linear-gradient(115deg,#f5fcf9,#fff 62%); box-shadow: 0 10px 32px rgba(25,61,81,.05); }
.report-health-panel::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: #23a879; }
.report-health-panel::after { content: ""; position: absolute; width: 210px; height: 210px; right: -58px; top: -76px; background: url("login-star.png") center / contain no-repeat; opacity: .1; transform: rotate(9deg); pointer-events: none; }
.report-health-panel.is-warning { border-color: #eee2c4; background: linear-gradient(115deg,#fffbef,#fff 62%); }.report-health-panel.is-warning::before { background: #dba32f; }.report-health-panel.is-warning::after { opacity: .09; }
.report-health-panel.is-danger { border-color: #f0d8dc; background: linear-gradient(115deg,#fff6f7,#fff 62%); }.report-health-panel.is-danger::before { background: #d94359; }.report-health-panel.is-danger::after { opacity: .09; }
.report-health-copy { position: relative; z-index: 1; max-width: 610px; }
.report-health-copy > span { color: #24a776; font-size: 8px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }.report-health-panel.is-warning .report-health-copy > span { color: #b77c0e; }.report-health-panel.is-danger .report-health-copy > span { color: #c9364e; }
.report-health-copy strong { display: block; margin: 4px 0 5px; color: var(--z-navy); font-size: 18px; font-weight: 850; letter-spacing: -.035em; }
.report-health-copy p { margin: 0; color: #738791; font-size: 10px; line-height: 1.5; }
.report-health-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3,minmax(100px,1fr)); min-width: 440px; overflow: hidden; border: 1px solid #e4edef; border-radius: 14px; background: rgba(255,255,255,.8); }
.report-health-stats > div { padding: 13px 16px; border-right: 1px solid #e9eff1; }.report-health-stats > div:last-child { border-right: 0; }
.report-health-stats small,.report-health-stats strong { display: block; }.report-health-stats small { color: #8999a4; font-size: 8px; font-weight: 800; text-transform: uppercase; }.report-health-stats strong { margin-top: 4px; color: var(--z-navy); font-size: 20px; font-weight: 850; }

.report-alert-card { min-height: 120px; box-shadow: 0 9px 26px rgba(25,61,81,.045) !important; }
.report-alert-card::after { width: 74px; height: 74px; opacity: .2; }
.report-alert-card .card-body { padding: 19px 17px; }
.report-alert-overdue { border-left-color: #a92b43 !important; background: #fff3f5; }.report-alert-overdue strong { color: #a92b43; }

.report-comparison-card { overflow: hidden; border-color: #dfe9ee !important; box-shadow: 0 10px 32px rgba(25,61,81,.045) !important; }
.report-comparison-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; padding: 20px 23px 16px; border-bottom: 1px solid #e9eff2; background: linear-gradient(110deg,#f8fcfd,#fff 72%); }
.report-comparison-head span { display: block; margin-bottom: 3px; color: var(--z-cyan); font-size: 8px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.report-comparison-head h2 { margin: 0; color: var(--z-navy); font-size: 16px; font-weight: 850; letter-spacing: -.03em; }
.report-comparison-head p { margin: 4px 0 0; color: #8999a4; font-size: 9px; }
.report-comparison-key { display: flex; align-items: center; gap: 7px; color: #8b9ba6; font-size: 8px; white-space: nowrap; }
.report-comparison-key i { width: 7px; height: 7px; border-radius: 50%; background: #25a779; }.report-comparison-key i:last-of-type { background: #d94b62; }
.report-comparison-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); background: #fff; }
.report-comparison-item { min-width: 0; padding: 17px 18px; border-right: 1px solid #e9eff2; }.report-comparison-item:last-child { border-right: 0; }
.report-comparison-item small,.report-comparison-item strong,.report-comparison-item span,.report-comparison-item b { display: block; }
.report-comparison-item small { min-height: 20px; color: #718692; font-size: 8px; font-weight: 850; line-height: 1.3; text-transform: uppercase; }
.report-comparison-item strong { margin: 4px 0 2px; color: var(--z-navy); font-size: 22px; font-weight: 900; letter-spacing: -.04em; }
.report-comparison-item span { color: #93a1aa; font-size: 8px; }.report-comparison-item b { margin-top: 7px; font-size: 9px; font-weight: 850; }
.report-comparison-item b.is-positive { color: #168c63; }.report-comparison-item b.is-negative { color: #d24359; }.report-comparison-item b.is-neutral { color: #8999a4; }
.report-comparison-empty { grid-column: 1 / -1; padding: 20px; color: #8999a4; font-size: 10px; text-align: center; }

.report-chart-grid > div { min-height: 380px; }
.report-chart-card { overflow: hidden; border-color: #e1e9ee !important; box-shadow: 0 12px 36px rgba(25,61,81,.055) !important; }
.report-chart-card .card-body { display: flex; min-height: 100%; flex-direction: column; padding: 23px 24px 20px; }
.report-chart-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 11px; }
.report-chart-head span { display: block; margin-bottom: 4px; color: var(--z-cyan); font-size: 8px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.report-chart-head h2 { margin: 0; font-size: 16px; font-weight: 850; letter-spacing: -.035em; }
.report-chart-head p { margin: 4px 0 0; color: #8999a4; font-size: 9px; }
.report-chart-head > b { display: grid; flex: 0 0 auto; width: 31px; height: 31px; place-items: center; border: 1px solid #dfeaed; border-radius: 10px; background: #f7fbfc; color: #91a3ad; font-size: 8px; }
.report-chart-canvas { position: relative; flex: 1; min-height: 280px; }
.report-chart-canvas-wide { min-height: 285px; }
.report-chart-canvas-backlog { min-height: 300px; }

.report-details-card { overflow: hidden; border: 1px solid #dfe9ed !important; border-radius: 22px !important; box-shadow: 0 14px 40px rgba(25,61,81,.055) !important; }
.report-details-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px 19px; border-bottom: 1px solid #e8eef2; background: linear-gradient(120deg,#fff,#f8fcfd); }
.report-details-head span { display: block; margin-bottom: 3px; color: var(--z-cyan); font-size: 8px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.report-details-head h2 { margin: 0; font-size: 16px; font-weight: 850; }
.report-details-head > strong { padding: 7px 11px; border: 1px solid #dce9ed; border-radius: 999px; background: #f8fbfc; color: #667e8a; font-size: 9px; }
.report-details-list { display: grid; gap: 10px; padding: 14px; background: #f6f9fa; }
.report-ticket-card { position: relative; display: grid; grid-template-columns: minmax(220px,1.45fr) minmax(140px,.85fr) minmax(125px,.72fr) repeat(2,minmax(160px,1fr)) minmax(100px,.62fr); align-items: center; gap: 16px; min-width: 0; padding: 17px 18px; overflow: hidden; border: 1px solid #e2eaee; border-radius: 16px; background: rgba(255,255,255,.98); box-shadow: 0 7px 20px rgba(25,61,81,.035); transition: transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.report-ticket-card::before { content: ""; position: absolute; inset: 14px auto 14px 0; width: 3px; border-radius: 0 99px 99px 0; background: linear-gradient(var(--z-cyan),var(--z-blue)); opacity: .65; }
.report-ticket-card:hover { border-color: #cee0e5; box-shadow: 0 12px 27px rgba(25,61,81,.075); transform: translateY(-1px); }
.report-ticket-card > div { min-width: 0; }
.report-detail-label { display: block; margin-bottom: 7px; color: #91a1aa; font-size: 7px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.report-ticket-link { display: inline-block; color: var(--z-blue); font-size: 10px; font-weight: 900; text-decoration: none; }
.report-ticket-link:hover { color: var(--z-cyan); }
.report-ticket-subject { display: block; margin-top: 4px; overflow: hidden; color: var(--z-navy); font-size: 11px; font-weight: 800; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.report-ticket-requester { display: block; margin-top: 5px; overflow: hidden; color: #82959f; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.report-ticket-owner strong,.report-ticket-owner > span:not(.report-detail-label) { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-ticket-owner strong { color: #3c5868; font-size: 10px; }.report-ticket-owner > span:not(.report-detail-label) { margin-top: 4px; color: #899aa3; font-size: 8px; }
.report-time-value { color: var(--z-navy); font-size: 12px; font-weight: 900; white-space: nowrap; }
.report-priority-status { display: flex; align-items: flex-start; flex-direction: column; gap: 7px; }
.report-sla-cell { min-width: 0; }
.report-sla-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 999px; font-size: 8px; font-weight: 900; white-space: nowrap; }
.report-sla-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.report-sla-badge-dentro { background: #e8f8f1; color: #18865f; }.report-sla-badge-pendente { background: #fff6dc; color: #aa7412; }.report-sla-badge-estourado { background: #ffe9ed; color: #c9364e; }
.report-sla-cell > strong { display: block; margin-top: 7px; overflow: hidden; color: #496473; font-size: 8px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.report-sla-meta { display: block; margin-top: 3px; overflow: hidden; color: #91a0a8; font-size: 7px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.report-time-stack { min-width: 0; }.report-time-stack strong,.report-time-stack > span:not(.report-detail-label) { display: block; }.report-time-stack > span:not(.report-detail-label) { margin-top: 4px; color: #8496a1; font-size: 8px; white-space: nowrap; }
.report-details-skeleton { padding: 16px 8px; }
.report-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 22px; border-top: 1px solid #e8eef2; background: #fcfdfe; }
.report-pagination span { color: #7e909c; font-size: 9px; }
.report-empty-state { min-height: 150px; display: grid; align-content: center; justify-items: center; color: #81939e !important; text-align: center; }.report-empty-state strong,.report-empty-state span { display: block; }.report-empty-state strong { color: #3c5869; font-size: 12px; }.report-empty-state span { margin-top: 5px; font-size: 9px; }
.ticket-list-card-critical .ticket-list-priority .ticket-priority { box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(217, 67, 89, .24); }
.kanban-board { display: grid; grid-template-columns: repeat(5,minmax(245px,1fr)); gap: 14px; padding: 2px 1px 14px; overflow-x: auto; scrollbar-color: #b9d5de transparent; scrollbar-width: thin; }
.kanban { --kanban-accent:#1480a2; min-height: 450px; padding: 13px; border: 1px solid #dfe8ed; border-top: 3px solid var(--kanban-accent); border-radius: 18px; background: linear-gradient(180deg,#f8fbfc,#f4f8fa); box-shadow: 0 10px 28px rgba(25,61,81,.045); }
.kanban-novo { --kanban-accent:#268eb0; }.kanban-em_andamento { --kanban-accent:#655bd6; }.kanban-aguardando { --kanban-accent:#dea32d; }.kanban-resolvido { --kanban-accent:#25a879; }.kanban-fechado { --kanban-accent:#5d7482; }
.kanban-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; padding: 3px 3px 10px; border-bottom: 1px solid #e2eaee; }
.kanban-heading h2 { margin: 0; color: var(--z-navy); font-size: 12px; font-weight: 900; letter-spacing: .055em; text-transform: uppercase; }
.kanban-heading span { display: grid; min-width: 25px; height: 25px; padding: 0 7px; place-items: center; border-radius: 999px; background: color-mix(in srgb,var(--kanban-accent) 11%,#fff); color: var(--kanban-accent); font-size: 9px; font-weight: 900; }
.kanban-cards { display: grid; align-content: start; gap: 11px; }
.kanban-ticket { position: relative; padding: 15px; overflow: hidden; border: 1px solid #e0e9ed; border-radius: 15px; background: #fff; box-shadow: 0 8px 22px rgba(25,61,81,.06); transition: transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.kanban-ticket::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--kanban-accent); }
.kanban-ticket:hover { transform: translateY(-2px); border-color: #c7dce3; box-shadow: 0 12px 28px rgba(25,61,81,.1); }
.kanban-ticket-novo { --kanban-accent:#268eb0; }.kanban-ticket-em_andamento { --kanban-accent:#655bd6; }.kanban-ticket-aguardando { --kanban-accent:#dea32d; }.kanban-ticket-resolvido { --kanban-accent:#25a879; }.kanban-ticket-fechado { --kanban-accent:#5d7482; }
.kanban-ticket-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kanban-ticket-top > a { min-width: 0; overflow: hidden; color: var(--z-blue); font-size: 9px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.kanban-ticket-top .ticket-priority { padding: 5px 7px; font-size: 7px; }
.kanban-ticket-title { display: block; margin: 11px 0 13px; overflow: hidden; color: var(--z-navy); font-size: 13px; font-weight: 850; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.kanban-ticket-meta { display: grid; grid-template-columns: 1fr; gap: 7px; padding: 10px; border: 1px solid #edf2f4; border-radius: 11px; background: #f9fbfc; }
.kanban-ticket-meta span,.kanban-ticket-meta strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kanban-ticket-meta span { color: #91a0a9; font-size: 7px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.kanban-ticket-meta strong { margin-top: 2px; color: #455f6e; font-size: 9px; text-transform: none; letter-spacing: 0; }
.kanban-ticket-meta .ticket-unassigned { color: #a7781b; }
.kanban-ticket-status { margin: 10px 0; }
.kanban-ticket > .sla-progress { width: 100%; min-width: 0; }
.kanban-empty { display: grid; min-height: 112px; place-items: center; align-content: center; border: 1px dashed #ccdce2; border-radius: 14px; background: rgba(255,255,255,.55); text-align: center; }
.kanban-empty span { color: #6c8290; font-size: 10px; font-weight: 850; }.kanban-empty small { margin-top: 4px; color: #9aa8b0; font-size: 8px; }

.timeline { margin-left: 7px; padding-left: 1.4rem; border-left: 2px solid #dce9ee; }
.timeline-item { position: relative; margin-bottom: 8px; padding: .8rem 1rem 1rem; border: 1px solid #edf1f5; border-radius: 13px; background: #fbfcfd; }
.timeline-item::before { content: ""; position: absolute; top: 1rem; left: -1.72rem; width: .72rem; height: .72rem; border: 3px solid #fff; border-radius: 50%; background: var(--z-cyan); box-shadow: 0 0 0 1px #b9dfe1; }
.ticket-description { padding: 18px; border: 1px solid #e8eef3; border-radius: 14px; background: #f8fbfc; white-space: pre-wrap; line-height: 1.7; }

.ticket-page { max-width: 1240px; }
.ticket-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 190px;
  padding: 34px 38px;
  overflow: hidden;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, #102f4c 0%, #075f88 58%, #087d99 100%);
  box-shadow: 0 22px 46px rgba(7, 62, 91, .18);
}
.ticket-hero::after { content: ""; position: absolute; right: -34px; bottom: -92px; width: 270px; height: 270px; background: url("login-star.png") center / contain no-repeat; opacity: .11; transform: rotate(8deg); pointer-events: none; }
.ticket-hero-copy, .ticket-hero-actions { position: relative; z-index: 1; }
.ticket-hero-copy { flex: 1 1 auto; min-width: 0; }
.ticket-protocol-row { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; margin-bottom: 13px; color: #bde9ed; font-size: 11px; letter-spacing: .06em; }
.ticket-protocol-row .ticket-status { padding: 6px 11px; color: #fff; font-size: 9px; line-height: 1.3; white-space: nowrap; }
.ticket-label { padding: 5px 9px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(255,255,255,.09); font-size: 8px; font-weight: 900; text-transform: uppercase; }
.ticket-hero h1 { width: 100%; max-width: 760px; margin: 0 0 7px; padding: .06em .14em .16em 0; background: linear-gradient(105deg,#fff 0%,#d9f7f5 58%,#72ddd8 100%); color: #fff; background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-size: clamp(25px, 3vw, 38px); line-height: 1.28; letter-spacing: -.045em; overflow-wrap: anywhere; }
.ticket-hero p { margin: 0; color: #c7dde7; font-size: 11px; }
.ticket-hero-actions { display: flex; flex: 0 0 auto; flex-direction: column; align-items: flex-end; gap: 14px; min-width: 185px; }
.ticket-action-buttons { display: grid; gap: 8px; width: 185px; max-width: 100%; }
.ticket-hero-actions .ticket-action { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 38px; padding: 9px 15px; border: 1px solid transparent; border-radius: 11px; font-size: 11px; font-weight: 650; line-height: 1.4; letter-spacing: .01em; text-decoration: none; transition: background-color .2s, border-color .2s, box-shadow .2s; }
.ticket-hero-actions .ticket-action-primary { border-color: rgba(255,255,255,.9); background: #f4fbfc; color: #104c66; box-shadow: 0 4px 12px rgba(6,37,58,.12); }
.ticket-hero-actions .ticket-action-primary:hover { border-color: #fff; background: #fff; color: #08394f; box-shadow: 0 6px 16px rgba(6,37,58,.2); }
.ticket-hero-actions .ticket-action-secondary { border-color: rgba(221,244,249,.3); background: rgba(255,255,255,.07); color: #f0f9fc; }
.ticket-hero-actions .ticket-action-secondary:hover { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.16); color: #fff; }
.ticket-hero-actions .ticket-action:focus-visible { outline: 3px solid #8de1e5; outline-offset: 3px; }
.ticket-pdf-dialog { width: min(1120px, 94vw); max-width: none; height: min(900px, 92vh); max-height: none; padding: 0; border: 1px solid #dce9ee; border-radius: 20px; color: #18354b; background: #fff; box-shadow: 0 28px 80px rgba(7,33,52,.28); overflow: hidden; }
.ticket-pdf-dialog[open] { display: flex; flex-direction: column; }
.ticket-pdf-dialog::backdrop { background: rgba(6,28,46,.68); backdrop-filter: blur(4px); }
.ticket-pdf-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 20px 24px; border-bottom: 1px solid #e4edf1; }
.ticket-pdf-header span { color: #008f9c; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.ticket-pdf-header h2 { margin: 3px 0; color: #12324b; font-size: 21px; }
.ticket-pdf-header p { margin: 0; color: #67808e; font-size: 12px; }
.ticket-pdf-close { flex: 0 0 38px; height: 38px; border: 0; border-radius: 11px; background: #eef5f7; color: #36586b; font-size: 25px; cursor: pointer; }
.ticket-pdf-close:hover, .ticket-pdf-close:focus-visible { color: #075c78; background: #dbeef2; outline: 2px solid #0988a0; }
.ticket-pdf-frame { display: block; flex: 1 1 auto; width: 100%; min-height: 0; border: 0; background: #eef3f6; }
.ticket-pdf-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 24px; border-top: 1px solid #e4edf1; color: #68808c; font-size: 11px; }
.ticket-pdf-footer a { flex-shrink: 0; color: #076b88; font-weight: 700; text-decoration: none; }
@media (max-width: 600px) { .ticket-pdf-dialog { width: 100%; height: 100%; height: 100dvh; border: 0; border-radius: 0; } .ticket-pdf-header { padding: 16px; } .ticket-pdf-header h2 { font-size: 18px; } .ticket-pdf-footer { align-items: flex-start; flex-direction: column; padding: 10px 16px; } }
.ticket-back { border: 1px solid rgba(255,255,255,.36); background: rgba(255,255,255,.12); color: #fff; font-size: 10px; font-weight: 750; backdrop-filter: blur(5px); }
.ticket-back:hover { border-color: #fff; background: #fff; color: var(--z-blue); }
.ticket-status { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(255,255,255,.13); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .045em; }
.ticket-status i { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.12); }
.ticket-status-new i { background: #73d7ff; }
.ticket-status-progress i { background: #46e6b2; animation: statusPulse 1.5s ease-in-out infinite; }
.ticket-status-waiting i { background: #ffc65c; }
.ticket-status-resolved i, .ticket-status-closed i { background: #8ce8bd; }
@keyframes statusPulse { 50% { box-shadow: 0 0 0 7px rgba(70,230,178,0); } }

.ticket-indicators { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.ticket-indicator { display: flex; align-items: center; gap: 13px; min-width: 0; padding: 17px 18px; border: 1px solid var(--z-line); border-radius: 17px; background: #fff; box-shadow: 0 8px 25px rgba(28, 62, 82, .055); }
.ticket-indicator-icon { display: grid; place-items: center; flex: 0 0 39px; width: 39px; height: 39px; border-radius: 12px; background: #e9f5f8; color: var(--z-blue); font-size: 9px; font-weight: 900; letter-spacing: .04em; }
.ticket-indicator > div { min-width: 0; }
.ticket-indicator small, .ticket-sla-copy small { display: block; margin-bottom: 2px; color: var(--z-muted); font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: .065em; }
.ticket-indicator strong, .ticket-indicator > div > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-indicator strong { color: var(--z-navy); font-size: 12px; }
.ticket-indicator > div > span { margin-top: 2px; color: #8b9ca8; font-size: 9px; }
.priority-critical .ticket-indicator-icon { background: #fff0f2; color: #cf344c; }
.priority-high .ticket-indicator-icon { background: #fff4e9; color: #d67222; }
.priority-medium .ticket-indicator-icon { background: #fff8df; color: #aa7900; }
.priority-low .ticket-indicator-icon { background: #e9f8f1; color: #138a62; }

.ticket-sla-panel { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 17px 20px; border: 1px solid #dce9ee; border-radius: 17px; background: linear-gradient(90deg, #fff 0%, #f7fbfc 100%); box-shadow: 0 8px 25px rgba(28, 62, 82, .045); }
.ticket-sla-copy { display: flex; align-items: center; gap: 13px; }
.ticket-sla-copy strong { color: var(--z-navy); font-size: 12px; }
.ticket-sla-progress { width: min(430px, 45%); }
.ticket-sla-progress .sla-progress { width: 100%; min-width: 0; }
.ticket-sla-progress .sla-progress-track { height: 9px; }

.ticket-section { padding: 0; overflow: hidden; }
.ticket-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 23px 17px; border-bottom: 1px solid #edf1f5; }
.ticket-section-heading h2 { margin: 2px 0 0; color: var(--z-navy); font-size: 16px; font-weight: 850; letter-spacing: -.025em; }
.ticket-section-kicker { color: var(--z-cyan); font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: .09em; }
.ticket-section-count { padding: 6px 10px; border-radius: 999px; background: #eef5f7; color: #63808e; font-size: 9px; font-weight: 800; }
.ticket-section .ticket-description { margin: 20px 23px 23px; padding: 21px; border: 0; border-left: 4px solid var(--z-cyan); border-radius: 4px 13px 13px 4px; background: #f7fafb; color: #354f5e; font-size: 13px; line-height: 1.75; }
.ticket-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 360px)); gap: 16px; padding: 20px 23px 23px; }
.ticket-image { overflow: hidden; border: 1px solid #dfe9ed; border-radius: 16px; background: #fff; box-shadow: 0 8px 22px rgba(31, 66, 84, .055); transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.ticket-image:hover { transform: translateY(-2px); border-color: #b8d9e1; box-shadow: 0 13px 28px rgba(31, 66, 84, .1); }
.ticket-image-preview { position: relative; display: block; width: 100%; height: 168px; padding: 0; overflow: hidden; border: 0; background: linear-gradient(145deg, #edf4f6, #f8fbfc); cursor: zoom-in; }
.ticket-image-preview img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease, filter .3s ease; }
.ticket-image-preview:hover img { transform: scale(1.035); filter: brightness(.76); }
.ticket-image-overlay { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 3px; opacity: 0; color: #fff; background: linear-gradient(180deg, transparent, rgba(5, 40, 61, .68)); transform: translateY(8px); transition: opacity .25s ease, transform .25s ease; }
.ticket-image-preview:hover .ticket-image-overlay, .ticket-image-preview:focus-visible .ticket-image-overlay { opacity: 1; transform: translateY(0); }
.ticket-image-overlay b { font-size: 11px; }.ticket-image-overlay small { font-size: 8px; }
.ticket-image > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; }
.ticket-image > div > span { min-width: 0; overflow: hidden; }
.ticket-image > div strong, .ticket-image > div small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-image > div strong { color: #405867; font-size: 9px; }.ticket-image > div small { margin-top: 2px; color: var(--z-muted); font-size: 8px; }
.ticket-image > div button { flex: 0 0 auto; padding: 5px 9px; border: 0; border-radius: 8px; background: #eaf5f8; color: var(--z-blue); font-size: 8px; font-weight: 850; }
.ticket-files { display: grid; gap: 9px; padding: 18px 23px 22px; }
.ticket-file { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid #e8eef2; border-radius: 12px; color: inherit; text-decoration: none; }
.ticket-file:hover { border-color: #b9dce5; background: #f7fbfc; }
.ticket-file-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #edf5f8; color: var(--z-blue); font-size: 8px; font-weight: 900; }
.ticket-file > span:nth-child(2) { min-width: 0; flex: 1; }
.ticket-file strong, .ticket-file small { display: block; }
.ticket-file strong { overflow: hidden; color: var(--z-navy); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.ticket-file small { margin-top: 2px; color: var(--z-muted); font-size: 8px; }
.ticket-file b { color: var(--z-blue); font-size: 9px; }
.timeline-attachments { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 9px; margin-top: 13px; }
.timeline-attachment-image, .timeline-attachment-file { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px; border: 1px solid #e2eaee; border-radius: 11px; background: #f9fbfc; color: inherit; text-align: left; text-decoration: none; }
.timeline-attachment-image { cursor: zoom-in; }.timeline-attachment-image:hover, .timeline-attachment-file:hover { border-color: #b9d9e1; background: #f1f8fa; }
.timeline-attachment-image img { flex: 0 0 58px; width: 58px; height: 46px; border-radius: 7px; object-fit: cover; background: #e8eff2; }
.timeline-attachment-image > span, .timeline-attachment-file > span:nth-child(2) { min-width: 0; flex: 1; }
.timeline-attachment-image strong, .timeline-attachment-image small, .timeline-attachment-file strong, .timeline-attachment-file small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timeline-attachment-image strong, .timeline-attachment-file strong { color: #405867; font-size: 8px; }.timeline-attachment-image small, .timeline-attachment-file small { margin-top: 2px; color: var(--z-blue); font-size: 7px; }
.timeline-attachment-file b { color: var(--z-blue); }

.attachment-modal[hidden] { display: none; }
.attachment-modal { position: fixed; z-index: 2000; inset: 0; display: grid; place-items: center; padding: 24px; }
.attachment-modal-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(5, 24, 38, .82); backdrop-filter: blur(7px); cursor: zoom-out; }
.attachment-modal-panel { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: min(1120px, 94vw); height: min(820px, 92vh); overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: 22px; background: #fff; box-shadow: 0 35px 90px rgba(0,0,0,.38); animation: attachmentModalIn .22s ease-out; }
@keyframes attachmentModalIn { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
.attachment-modal-header, .attachment-modal-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 19px; }
.attachment-modal-header { border-bottom: 1px solid #e6edf1; }.attachment-modal-footer { border-top: 1px solid #e6edf1; }
.attachment-modal-header span, .attachment-modal-header strong { display: block; }.attachment-modal-header span { margin-bottom: 2px; color: var(--z-cyan); font-size: 7px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }.attachment-modal-header strong { max-width: 75vw; overflow: hidden; color: var(--z-navy); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.attachment-modal-header > button { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 10px; background: #edf3f5; color: #506976; font-size: 22px; line-height: 1; }
.attachment-modal-header > button:hover { background: #ffecef; color: var(--z-danger); }
.attachment-modal-body { display: grid; place-items: center; min-height: 0; padding: 18px; overflow: auto; background: #132a39; background-image: linear-gradient(45deg, rgba(255,255,255,.025) 25%, transparent 25%), linear-gradient(-45deg, rgba(255,255,255,.025) 25%, transparent 25%); background-size: 24px 24px; }
.attachment-modal-body img { display: block; max-width: 100%; max-height: 100%; border-radius: 6px; object-fit: contain; box-shadow: 0 12px 36px rgba(0,0,0,.3); }
.attachment-modal-footer > span { color: var(--z-muted); font-size: 9px; }.attachment-modal-footer .btn { padding: 9px 15px; font-size: 9px; }
body.attachment-modal-open { overflow: hidden; }

/* Anexos pendentes antes do envio */
.attachment-preview-list { display: flex; flex-wrap: wrap; gap: 10px; }
.attachment-preview-card { position: relative; display: flex; flex-direction: column; width: 190px; min-height: 104px; overflow: hidden; border: 1px solid #dbe7eb; border-radius: 14px; background: #fff; box-shadow: 0 8px 22px rgba(22,60,80,.07); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.attachment-preview-card:hover { transform: translateY(-2px); border-color: #b9dbe2; box-shadow: 0 12px 28px rgba(22,60,80,.11); }
.attachment-preview-card img { display: block; width: 100%; height: 126px; order: 1; object-fit: cover; background: #eef4f6; }
.attachment-preview-meta { position: relative; z-index: 1; display: grid; gap: 2px; order: 2; min-width: 0; padding: 10px 12px; border-top: 1px solid #e8eff2; background: #fff; }
.attachment-preview-meta strong { overflow: hidden; color: #315264; font-size: 9px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.attachment-preview-meta span { color: #8ba0aa; font-size: 8px; }
.attachment-preview-remove { position: absolute; z-index: 3; top: 8px; right: 8px; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid rgba(255,255,255,.82); border-radius: 9px; background: rgba(17,40,53,.78); color: #fff; font-size: 20px; font-weight: 400; line-height: 1; box-shadow: 0 5px 14px rgba(0,0,0,.2); backdrop-filter: blur(5px); transition: transform .16s ease, background .16s ease; }
.attachment-preview-remove:hover,.attachment-preview-remove:focus-visible { background: #dc4960; color: #fff; transform: scale(1.06); outline: none; }
.attachment-preview-filetype { display: grid; place-items: center; order: 1; min-height: 95px; background: linear-gradient(145deg,#edf7f9,#f3f2ff); color: #177893; font-size: 18px; font-weight: 900; letter-spacing: .05em; }
.attachment-duplicate-notice { flex: 1 0 100%; padding: 9px 12px; border: 1px solid #f0dfab; border-radius: 11px; background: #fff9e8; color: #8f6708; font-size: 9px; font-weight: 750; }
.attachment-validation-notice { flex: 1 0 100%; padding: 10px 12px; border: 1px solid #f3cbd1; border-radius: 11px; background: #fff3f5; color: #a62f45; font-size: 9px; font-weight: 750; line-height: 1.5; }

@media (max-width: 520px) {
  .attachment-preview-card { width: calc(50% - 5px); }
  .attachment-preview-card img { height: 108px; }
}

.ticket-timeline-card { min-height: 100%; }
.ticket-timeline { margin: 22px 23px 25px 43px; padding-left: 28px; }
.ticket-timeline .timeline-item { margin-bottom: 14px; padding: 16px 17px; border-radius: 15px; background: #fff; box-shadow: 0 5px 16px rgba(29, 62, 81, .045); }
.ticket-timeline .timeline-item::before { display: none; }
.timeline-avatar { position: absolute; top: 13px; left: -50px; display: grid; place-items: center; width: 35px; height: 35px; border: 3px solid #fff; border-radius: 50%; background: linear-gradient(145deg, var(--z-blue), var(--z-cyan)); color: #fff; font-size: 9px; font-weight: 900; box-shadow: 0 0 0 1px #cfe2e8; }
.timeline-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.timeline-head > div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.timeline-head strong { color: var(--z-navy); font-size: 11px; }
.timeline-head time { flex: 0 0 auto; color: #92a2ad; font-size: 8px; }
.timeline-message { color: #415a68; font-size: 11px; line-height: 1.65; }
.ticket-reply-card { position: sticky; top: 94px; }
.ticket-reply-card form { padding: 0 23px 23px; }
.ticket-reply-help { margin: 17px 23px; color: var(--z-muted); font-size: 10px; line-height: 1.55; }
.ticket-reply-textarea { min-height: 145px; resize: vertical; }
.ticket-closed-card { border-color: #dce6ea; background: linear-gradient(180deg, #fff, #f9fbfc); }
.ticket-lock-badge { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 999px; background: #edf1f4; color: #687b86; font-size: 8px; font-weight: 850; }
.ticket-closed-state { display: flex; align-items: center; gap: 14px; margin: 21px 23px 14px; padding: 17px; border: 1px solid #dce8e4; border-radius: 15px; background: linear-gradient(135deg, #f1faf6, #f8fcfa); }
.ticket-closed-icon { display: grid; place-items: center; flex: 0 0 43px; width: 43px; height: 43px; border-radius: 13px; background: #daf3e7; color: #14835f; font-size: 19px; font-weight: 900; }
.ticket-closed-state strong, .ticket-closed-state p { display: block; }.ticket-closed-state strong { color: #245342; font-size: 11px; }.ticket-closed-state p { margin: 4px 0 0; color: #6f8980; font-size: 9px; line-height: 1.55; }
.ticket-reopen-panel { margin: 0 23px 23px; padding: 16px; border: 1px solid #cfe3ea; border-radius: 15px; background: #f4fafc; }
.ticket-reopen-panel > div { margin-bottom: 13px; }.ticket-reopen-panel strong, .ticket-reopen-panel span { display: block; }.ticket-reopen-panel strong { color: var(--z-navy); font-size: 10px; }.ticket-reopen-panel span { margin-top: 3px; color: #758b97; font-size: 8px; line-height: 1.5; }
.ticket-locked-notice { display: flex; align-items: center; gap: 10px; margin: 0 23px 23px; padding: 12px 13px; border: 1px solid #e3e9ed; border-radius: 12px; background: #f5f7f8; color: #768894; }
.ticket-locked-notice span { font-size: 15px; }.ticket-locked-notice p { margin: 0; font-size: 9px; line-height: 1.5; }
.ticket-upload { display: grid; place-items: center; min-height: 82px; padding: 13px; border: 1px dashed #a9cad4; border-radius: 13px; background: #f7fbfc; color: var(--z-blue); text-align: center; cursor: pointer; transition: .2s ease; }
.ticket-upload:hover { border-color: var(--z-cyan); background: #eef9fa; }
.ticket-upload strong { font-size: 10px; }
.ticket-upload span { color: var(--z-muted); font-size: 8px; }
.ticket-permission-note { padding: 10px 12px; border-radius: 11px; background: #edf6f8; color: #567382; font-size: 9px; }
.ticket-pause-list { display: grid; gap: 8px; padding: 17px 23px 21px; }
.ticket-pause { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border: 1px solid #f0e4c5; border-radius: 12px; background: #fffbf1; }
.ticket-pause-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: #fff1c9; color: #af7e14; font-size: 13px; }
.ticket-pause div { flex: 1; min-width: 0; }.ticket-pause strong, .ticket-pause small { display: block; }.ticket-pause strong { color: #6c5725; font-size: 10px; }.ticket-pause small { margin-top: 2px; color: #9a8860; font-size: 8px; }.ticket-pause b { color: #ad7910; font-size: 10px; }
.ticket-internal-toggle { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid #f0dda5; border-radius: 12px; background: #fffaf0; cursor: pointer; }
.ticket-internal-toggle input { width: 17px; height: 17px; accent-color: #b57a0f; }.ticket-internal-toggle strong, .ticket-internal-toggle small { display: block; }.ticket-internal-toggle strong { color: #755614; font-size: 10px; }.ticket-internal-toggle small { margin-top: 2px; color: #a08752; font-size: 8px; }

.auth-page {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(260px, 430px) minmax(390px, 438px);
  align-items: center;
  justify-content: center;
  gap: clamp(42px, 7vw, 110px);
  padding: 56px 32px;
  background: linear-gradient(135deg, #f5fafb 0%, #eef5f7 52%, #fafbfe 100%) !important;
}
.auth-page::before { content: ""; position: absolute; z-index: -1; left: -92px; top: -108px; width: 430px; height: 430px; background: url("login-star.png") center / contain no-repeat; opacity: .08; transform: rotate(-7deg); pointer-events: none; }
.auth-showcase { display: grid; align-content: center; gap: 18px; max-width: 410px; color: #123448; }
.auth-showcase-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 2px; }
.auth-showcase-brand img { display: block; width: 165px; height: auto; }
.auth-showcase h2 { margin: 0; color: #102b3d; font-size: clamp(28px, 3.4vw, 42px); font-weight: 850; line-height: 1.07; letter-spacing: -.06em; }
.auth-showcase p { margin: 0; color: #758d9a; font-size: 13px; line-height: 1.7; }
.auth-card { position: relative; width: min(438px, 100%); padding: 42px 44px 30px; overflow: hidden; border-radius: 26px !important; background: rgba(255, 255, 255, .95); box-shadow: 0 24px 70px rgba(25, 62, 82, .14) !important; }
.auth-card::before { content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 4px; border-radius: 0 0 99px 99px; background: linear-gradient(90deg, var(--z-blue), var(--z-cyan), var(--z-violet)); }
.auth-brand { display: flex; flex-direction: column; align-items: center; gap: 7px; margin-bottom: 28px; }
.auth-brand img { display: block; width: 150px; height: auto; }
.auth-brand span { color: #6b8290; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.auth-card h1 { margin: 7px 0 8px; color: #102b3d; font-size: 28px; font-weight: 850; letter-spacing: -.045em; }
.auth-notice { border: 1px solid #f0d89b; border-radius: 12px; background: #fff9e9; color: #7b5b11; font-size: 10px; line-height: 1.5; }
.auth-footer { margin: 26px 0 0; padding-top: 17px; border-top: 1px solid #edf2f4; color: #9aaab3; text-align: center; font-size: 9px; }
.auth-card-wide { width: min(470px, 100%); padding-top: 34px; }
.auth-card-wide .auth-brand { margin-bottom: 19px; }
.auth-method { padding: 17px; border: 1px solid #dfe9ed; border-radius: 16px; background: #fbfdfe; }
.auth-method-sso { position: relative; padding: 20px; overflow: hidden; border-color: #d9e8ed; background: linear-gradient(145deg, #ffffff 0%, #f6fbfc 100%); box-shadow: 0 12px 32px rgba(22, 73, 96, .07); }
.auth-method-sso::before { content: ""; position: absolute; top: 0; left: 20px; right: 20px; height: 3px; border-radius: 0 0 99px 99px; background: linear-gradient(90deg, #f35325 0 25%, #81bc06 25% 50%, #05a6f0 50% 75%, #ffba08 75%); opacity: .9; }
.auth-sso-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 13px; }
.auth-sso-heading { min-width: 0; margin: 0; }
.auth-sso-copy { min-width: 0; }
.auth-sso-copy .auth-sso-kicker { margin: 0 0 3px; color: #6f8490; font-size: 6.5px; font-weight: 850; letter-spacing: .11em; line-height: 1.2; text-transform: uppercase; }
.auth-sso-copy strong { color: #102f43; font-size: 13px; letter-spacing: -.01em; }
.auth-sso-badge { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; margin-top: 4px; padding: 6px 9px; border: 1px solid #d6ebe5; border-radius: 999px; background: #f0faf7; color: #25755f; font-size: 7px; font-weight: 850; letter-spacing: .02em; white-space: nowrap; }
.auth-sso-badge i { width: 5px; height: 5px; border-radius: 50%; background: #2c9b78; box-shadow: 0 0 0 3px rgba(44, 155, 120, .11); }
.auth-sso-description { margin: 15px 0 16px; color: #687f8c; font-size: 9px; line-height: 1.55; }
.auth-method-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.auth-method-heading strong, .auth-method-heading small { display: block; }
.auth-method-heading strong { color: var(--z-navy); font-size: 11px; }
.auth-method-heading small { margin-top: 3px; color: var(--z-muted); font-size: 8px; line-height: 1.4; }
.auth-method-icon { display: grid; place-items: center; flex: 0 0 39px; width: 39px; height: 39px; border-radius: 11px; background: linear-gradient(145deg, var(--z-blue), var(--z-cyan)); color: #fff; font-size: 10px; font-weight: 900; box-shadow: 0 8px 18px rgba(7,95,136,.15); }
.auth-method-icon-ms { grid-template-columns: repeat(2, 10px); grid-template-rows: repeat(2, 10px); gap: 2px; place-content: center; flex-basis: 46px; width: 46px; height: 46px; border-radius: 14px; background: #fff; border: 1px solid #e0e9ed; box-shadow: 0 8px 22px rgba(28,55,72,.09); }
.auth-method-icon-ms i { display: block; width: 10px; height: 10px; line-height: 0; }
.auth-method-icon-ms i:nth-child(1) { background: #f35325; }.auth-method-icon-ms i:nth-child(2) { background: #81bc06; }.auth-method-icon-ms i:nth-child(3) { background: #05a6f0; }.auth-method-icon-ms i:nth-child(4) { background: #ffba08; }
.auth-ms-button { display: flex; align-items: center; justify-content: center; min-height: 45px; padding: 12px 18px; border: 0; border-radius: 12px; background: linear-gradient(135deg, #075f88, #087f98); color: #fff; font-family: Montserrat,"Segoe UI",Arial,sans-serif; font-size: 11px; font-weight: 800; line-height: 1.35; letter-spacing: -.015em; text-align: center; box-shadow: 0 10px 22px rgba(7, 95, 136, .18); transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.auth-ms-button:hover:not(:disabled), .auth-ms-button:focus:not(:disabled) { background: linear-gradient(135deg, #064f72, #07748c); color: #fff; box-shadow: 0 13px 27px rgba(7, 95, 136, .24); transform: translateY(-1px); }
.auth-ms-button:disabled { border-style: dashed; background: #f1f4f6; color: #91a0a8; }
.auth-divider { display: flex; align-items: center; gap: 11px; margin: 15px 0; color: #9bacb4; font-size: 7px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: #e6edef; }
.auth-transition-note { margin: 11px 0 0; color: #8a9aa4; font-size: 8px; line-height: 1.5; text-align: center; }
.auth-code-input { height: 62px; text-align: center; font-size: 25px; font-weight: 850; letter-spacing: .32em; font-variant-numeric: tabular-nums; }
.auth-code-actions { display: flex; justify-content: center; gap: 5px; margin-top: 11px; }
.auth-code-actions form { margin: 0; }.auth-code-actions .btn { padding: 5px 8px; font-size: 9px; }

.priority-picker { position: relative; }
.priority-picker-native { display: none !important; }
.priority-picker-toggle { min-height: 64px; display: flex; align-items: center; justify-content: space-between; text-align: left; white-space: normal; background: #fff; border: 1px solid #d8e5ea; color: var(--z-ink); }
.priority-picker-toggle:hover, .priority-picker-toggle:focus { border-color: var(--z-blue); box-shadow: 0 0 0 4px rgba(8, 117, 155, .11); }
.priority-picker-toggle::after { margin-left: 1rem; }
.priority-picker-menu { position: absolute; z-index: 1050; top: calc(100% + .25rem); left: 0; right: 0; display: none; padding: .4rem; background: #fff; border: 1px solid #dfe8ed; border-radius: 14px; box-shadow: 0 .8rem 2rem rgba(16, 42, 67, .15); }
.priority-picker-menu.show { display: block; }
.priority-picker-option { display: block; width: 100%; padding: .75rem .85rem; border: 0; border-radius: 10px; background: transparent; color: var(--z-ink); text-align: left; }
.priority-picker-option:hover, .priority-picker-option:focus { background: #eef8fa; }
.priority-picker-option-title, .priority-picker-selected-title { display: block; color: var(--z-blue); font-weight: 850; }
.priority-picker-option-description, .priority-picker-selected-description { display: block; margin-top: .18rem; color: var(--z-muted); font-size: .78rem; line-height: 1.4; }
.priority-picker-option-sla, .priority-picker-selected-sla { display: block; margin-top: .25rem; color: #496675; font-size: .72rem; font-weight: 800; }
.priority-picker-option-description-only { margin-top: 0; color: #46535c; font-size: .8rem; font-weight: 600; line-height: 1.45; letter-spacing: -.01em; }
.priority-picker-selected-description-only { margin-top: 0; color: #3f4d56; font-size: .82rem; font-weight: 650; line-height: 1.4; letter-spacing: -.01em; }

@media (max-width: 1240px) {
  .report-filter-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .report-ticket-card { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .report-ticket-main { grid-column: span 2; }
  .report-metrics-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .report-operational-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .report-operational-grid > div { border-bottom: 1px solid #e9eff2; }
  .report-comparison-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .report-comparison-item:nth-child(2) { border-right: 0; }.report-comparison-item:nth-child(-n+2) { border-bottom: 1px solid #e9eff2; }
  .report-health-stats { min-width: 390px; }
}

@media (max-width: 960px) {
  .app-topbar-inner { padding: 0 22px; gap: 14px; }
  .app-brand-product small, .app-user { display: none; }
  .app-nav { overflow-x: auto; }
  .app-main { padding: 32px 22px 60px; }
  .ticket-indicators { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ticket-list-grid { grid-template-columns: 1fr; }
  .attention-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ticket-reply-card { position: static; }
  .report-health-panel { align-items: stretch; flex-direction: column; }
  .report-health-stats { width: 100%; min-width: 0; }
  .report-operational-head { align-items: flex-start; flex-direction: column; gap: 7px; }
  .report-comparison-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .report-chart-grid > div { min-height: 350px; }
}
@media (max-width: 760px) {
  .app-topbar { position: relative; }
  .app-topbar-inner { min-height: 68px; flex-wrap: wrap; padding: 12px 16px; }
  .app-brand-logo { width: 105px; }
  .app-nav { order: 3; width: 100%; padding-top: 8px; border-top: 1px solid var(--z-line); }
  .app-nav a { padding: 8px; font-size: 10px; }
  .app-main { padding: 27px 16px 48px; }
  .page-heading { display: grid; }
  .report-live-status { width: 100%; }
  .report-filter-card .card-body { padding: 20px 18px 17px; }
  .report-filter-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .report-filter-context { white-space: normal; }
  .report-filter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
  .report-filter-actions { align-items: stretch; flex-direction: column; }
  .report-filter-submit { width: 100%; min-width: 0; }
  .report-filter-export-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .report-filter-export { text-align: center; }
  .report-filter-card > .sla-legend { padding: 13px 18px; gap: 10px 15px; }
  .report-metrics-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
  .report-metric { min-height: 142px; }
  .report-metric .card-body { padding: 18px 16px 16px; }
  .report-operational-grid { grid-template-columns: 1fr; }
  .report-operational-grid > div { border-right: 0; }
  .report-comparison-grid { grid-template-columns: 1fr; }
  .report-comparison-item,.report-comparison-item:nth-child(2) { border-right: 0; border-bottom: 1px solid #e9eff2; }.report-comparison-item:last-child { border-bottom: 0; }
  .report-health-stats { grid-template-columns: 1fr; }
  .report-health-stats > div { border-right: 0; border-bottom: 1px solid #e9eff1; }.report-health-stats > div:last-child { border-bottom: 0; }
  .report-alerts { --bs-gutter-x: .65rem; }
  .report-alert-card .card-body { padding: 17px 14px; }
  .report-chart-grid > div { min-height: 330px; }
  .report-chart-card .card-body { padding: 19px 17px 16px; }
  .report-chart-head p { max-width: 250px; }
  .report-details-head { align-items: flex-start; flex-direction: column; }
  .report-ticket-card { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px 14px; }
  .report-ticket-main { grid-column: 1 / -1; }
  .auth-page { grid-template-columns: minmax(0, 438px); padding: 30px 16px; }
  .auth-showcase { display: none; }
  .auth-card { padding: 36px 26px 26px; }
  .ticket-hero { display: grid; min-height: 0; padding: 27px 23px; }
  .ticket-hero-actions { align-items: stretch; min-width: 0; }
  .ticket-action-buttons { width: 100%; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .ticket-status { align-self: flex-start; }
  .ticket-indicators { grid-template-columns: 1fr; }
  .ticket-list-card { padding: 17px; }
  .ticket-list-meta { grid-template-columns: 1fr; }
  .ticket-list-status-row { align-items: flex-start; flex-direction: column; gap: 8px; }
  .ticket-list-heading { align-items: flex-start; }
  .attention-grid { grid-template-columns: 1fr; }.attention-heading { align-items: flex-start; flex-direction: column; }
  .ticket-sla-panel { align-items: stretch; flex-direction: column; gap: 16px; }
  .ticket-sla-progress { width: 100%; }
  .ticket-section-heading { align-items: flex-start; padding: 18px; }
  .ticket-section .ticket-description { margin: 17px 18px 20px; }
  .ticket-gallery, .ticket-files { padding: 17px 18px 20px; }
  .ticket-gallery { grid-template-columns: 1fr; }
  .attachment-modal { padding: 0; }
  .attachment-modal-panel { width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
  .attachment-modal-footer { align-items: stretch; flex-direction: column; }
  .attachment-modal-footer .btn { width: 100%; }
  .ticket-timeline { margin: 18px 18px 22px 37px; padding-left: 20px; }
  .timeline-head { display: grid; }
  .timeline-avatar { left: -41px; width: 31px; height: 31px; }
  .ticket-reply-card form { padding: 0 18px 20px; }
  .ticket-reply-help { margin: 16px 18px; }
}

/* Auditoria */
.audit-page { max-width: 1540px; }
.audit-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 184px;
  margin-bottom: 18px;
  padding: clamp(28px, 4vw, 46px);
  overflow: hidden;
  border: 1px solid rgba(210, 226, 233, .9);
  border-radius: 26px;
  background: linear-gradient(135deg, #fff 0%, #f8fbfc 58%, #f1f8fa 100%);
  box-shadow: 0 18px 48px rgba(22, 60, 80, .08);
}
.audit-hero::before { content: ""; position: absolute; z-index: -1; top: -106px; right: 34px; width: 360px; height: 360px; background: url("login-star.png") center / contain no-repeat; opacity: .13; transform: rotate(8deg); pointer-events: none; }
.audit-hero .eyebrow { margin: 0 0 9px; color: var(--z-cyan); font-size: 10px; }
.audit-hero h1 { margin: 0; font-size: clamp(31px, 4vw, 48px); font-weight: 900; letter-spacing: -.055em; line-height: 1; }
.audit-hero p:not(.eyebrow) { max-width: 690px; margin: 14px 0 0; color: var(--z-muted); font-size: 13px; line-height: 1.65; }
.audit-hero-seal { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; padding: 10px 14px; border: 1px solid #cfe8e0; border-radius: 999px; background: rgba(255,255,255,.82); color: #19785f; box-shadow: 0 8px 22px rgba(33,104,88,.08); font-size: 9px; font-weight: 850; backdrop-filter: blur(8px); }
.audit-hero-seal i { width: 7px; height: 7px; border-radius: 50%; background: #28b584; box-shadow: 0 0 0 4px rgba(40,181,132,.12); }

.audit-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.audit-metric { display: flex; align-items: center; gap: 15px; min-height: 112px; padding: 20px 22px; border: 1px solid #e1eaee; border-radius: 20px; background: rgba(255,255,255,.95); box-shadow: 0 11px 30px rgba(22,60,80,.055); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.audit-metric:hover { transform: translateY(-2px); border-color: #d3e4e9; box-shadow: 0 16px 36px rgba(22,60,80,.085); }
.audit-metric-icon { display: grid; place-items: center; flex: 0 0 46px; width: 46px; height: 46px; border-radius: 14px; }
.audit-metric-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.audit-metric-icon.is-blue { color: #08759b; background: #eaf7fb; }
.audit-metric-icon.is-green { color: #128668; background: #e9f8f2; }
.audit-metric-icon.is-violet { color: #6453d9; background: #f0efff; }
.audit-metric small, .audit-metric strong, .audit-metric div > span { display: block; }
.audit-metric small { color: #748c98; font-size: 9px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.audit-metric strong { margin-top: 4px; color: var(--z-navy); font-size: 28px; font-weight: 900; letter-spacing: -.05em; line-height: 1; }
.audit-metric div > span { margin-top: 5px; color: #91a2aa; font-size: 9px; }

.audit-directory { overflow: hidden; border: 1px solid #dfe9ed; border-radius: 22px; background: rgba(255,255,255,.97); box-shadow: 0 16px 42px rgba(26,63,82,.07); }
.audit-directory-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 24px 25px 20px; border-bottom: 1px solid #e8eff2; background: linear-gradient(145deg, #fbfdfe, #fff); }
.audit-directory-head div > span { display: block; margin-bottom: 6px; color: var(--z-cyan); font-size: 8px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.audit-directory-head h2 { margin: 0; font-size: 21px; font-weight: 900; letter-spacing: -.035em; }
.audit-directory-head p { margin: 7px 0 0; color: #8498a3; font-size: 10px; }
.audit-directory-head > strong { flex: 0 0 auto; padding: 7px 11px; border: 1px solid #d9e9ee; border-radius: 999px; background: #f1fafb; color: #17768c; font-size: 9px; font-weight: 850; }
.audit-toolbar { display: grid; grid-template-columns: minmax(260px, 1fr) 220px; gap: 10px; padding: 16px 20px; border-bottom: 1px solid #e8eff2; background: #f9fbfc; }
.audit-search { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 13px; border: 1px solid #dce7ec; border-radius: 11px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.audit-search:focus-within { border-color: var(--z-cyan); box-shadow: 0 0 0 4px rgba(2,174,180,.09); }
.audit-search svg { flex: 0 0 17px; width: 17px; height: 17px; fill: none; stroke: #78909b; stroke-width: 1.8; stroke-linecap: round; }
.audit-search input { width: 100%; border: 0; outline: 0; background: transparent; color: #284858; font-size: 11px; }
.audit-search input::placeholder { color: #99a9b0; }
.audit-toolbar .form-select { min-height: 42px; border-color: #dce7ec; border-radius: 11px; background-color: #fff; color: #3e5a68; font-size: 11px; }
.audit-table { min-width: 1080px; }
.audit-table thead th { padding: 13px 15px; border-bottom: 1px solid #dfe8ec; background: #fff; color: #77909b; font-size: 8px; letter-spacing: .11em; white-space: nowrap; }
.audit-table tbody tr[data-audit-item] { transition: background-color .16s ease; }
.audit-table tbody tr[data-audit-item]:hover { background: #f8fcfd; }
.audit-table tbody tr[data-audit-item][hidden] { display: none !important; }
.audit-table tbody td { padding: 15px; border-color: #edf2f4; color: #496675; font-size: 10px; }
.audit-date { color: #4e6977; font-size: 9px; font-weight: 750; white-space: nowrap; }
.audit-user { display: flex; align-items: center; gap: 9px; min-width: 150px; }
.audit-user > span { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border: 1px solid #d9e9ed; border-radius: 10px; background: linear-gradient(145deg, #eaf8fa, #f5f4ff); color: #08759b; font-size: 11px; font-weight: 900; }
.audit-user strong { max-width: 180px; overflow: hidden; color: #244657; font-size: 10px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.audit-entity-badge { display: inline-flex; padding: 6px 9px; border: 1px solid #dde9ed; border-radius: 8px; background: #f8fbfc; color: #466371; font-size: 9px; font-weight: 800; }
.audit-entity-id { display: block; margin-top: 4px; color: #93a4ac; font-size: 8px; }
.audit-action-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 999px; background: #edf6f8; color: #2c7487; font-size: 8px; font-weight: 850; white-space: nowrap; }
.audit-action-badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.audit-action-badge.is-bloqueio, .audit-action-badge.is-login-falhou, .audit-action-badge.is-login-sso-falhou { background: #fff0f2; color: #cf4056; }
.audit-action-badge.is-download, .audit-action-badge.is-criacao, .audit-action-badge.is-abertura { background: #e9f8f2; color: #11805f; }
.audit-action-badge.is-alteracao, .audit-action-badge.is-atualizacao, .audit-action-badge[class*="is-alteracao-"] { background: #f0efff; color: #6252cf; }
.audit-details { position: relative; min-width: 120px; }
.audit-details summary { width: fit-content; cursor: pointer; list-style: none; color: #19758e; font-size: 9px; font-weight: 850; }
.audit-details summary::-webkit-details-marker { display: none; }
.audit-details summary::after { content: " +"; color: #69a1af; }
.audit-details[open] summary::after { content: " −"; }
.audit-details pre { max-width: 410px; max-height: 210px; margin: 9px 0 0; padding: 11px 12px; overflow: auto; border: 1px solid #dfe9ed; border-radius: 10px; background: #f6f9fa; color: #496572; font: 9px/1.55 Consolas, monospace; white-space: pre-wrap; word-break: break-word; }
.audit-no-details { color: #9aabb2; font-size: 9px; }
.audit-ip { display: inline-flex; padding: 5px 7px; border-radius: 7px; background: #f3f6f8; color: #647b87; font-size: 8px; }
.audit-empty { display: grid; gap: 5px; justify-items: center; padding: 42px 20px; color: #8ca0a9; text-align: center; }
.audit-empty strong { color: #315061; font-size: 13px; }
.audit-empty span { font-size: 10px; }
.audit-directory .dashboard-pagination { padding: 16px 20px; background: #fbfcfd; }
.audit-directory .dashboard-pagination > span strong { color: #355665; }

@media (max-width: 900px) {
  .audit-hero { align-items: flex-start; flex-direction: column; min-height: 0; }
  .audit-hero::before { right: -85px; opacity: .1; }
  .audit-metrics { grid-template-columns: 1fr; }
  .audit-metric { min-height: 98px; }
}
@media (max-width: 640px) {
  .audit-hero { padding: 27px 22px; }
  .audit-hero-seal { align-self: flex-start; }
  .audit-directory-head { flex-direction: column; padding: 21px 18px 18px; }
  .audit-toolbar { grid-template-columns: 1fr; padding: 14px 16px; }
  .audit-directory .dashboard-pagination { align-items: stretch; flex-direction: column; }
  .audit-directory .dashboard-pagination .d-flex { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .audit-directory .dashboard-pagination .btn { width: 100%; }
}

@media (max-width: 520px) {
  .report-filter-grid { grid-template-columns: 1fr; }
  .report-filter-export-actions { grid-template-columns: 1fr; }
  .report-filter-card > .sla-legend { align-items: flex-start; flex-direction: column; }
  .report-details-list { padding: 10px; }
  .report-ticket-card { grid-template-columns: 1fr; padding: 17px 16px; }
  .report-ticket-main { grid-column: auto; }
}

@media print {
  .app-topbar, .no-print { display: none !important; }
  .app-main { width: 100%; padding: 0; }
  main h1, main h2, .identity-title { background: none; color: var(--z-navy); -webkit-text-fill-color: initial; }
}

/* Gestão de usuários */
.users-page { max-width: 1540px; }
.users-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 190px;
  margin-bottom: 18px;
  padding: clamp(28px, 4vw, 48px);
  overflow: hidden;
  border: 1px solid rgba(210, 226, 233, .9);
  border-radius: 26px;
  background: linear-gradient(135deg, #fff 0%, #f7fbfc 58%, #f1f8fa 100%);
  box-shadow: 0 18px 48px rgba(22, 60, 80, .08);
}
.users-hero::before,
.users-hero::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
.users-hero::before { right: 46px; top: -94px; width: 370px; height: 370px; border: 0; border-radius: 0; background: url("login-star.png") center / contain no-repeat; opacity: .16; transform: rotate(8deg); }
.users-hero::after { display: none; }
.users-hero .eyebrow { margin: 0 0 9px; color: var(--z-cyan); font-size: 10px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.users-hero h1 { margin: 0; color: var(--z-navy); font-size: clamp(30px, 4vw, 48px); font-weight: 900; letter-spacing: -.055em; line-height: 1; }
.users-hero p:not(.eyebrow) { max-width: 620px; margin: 14px 0 0; color: var(--z-muted); font-size: 14px; line-height: 1.65; }
.users-primary-action { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 9px; min-width: 166px; justify-content: center; padding: 13px 20px; border: 0; border-radius: 13px; box-shadow: 0 13px 26px rgba(7, 95, 136, .2); }
.users-primary-action span { font-size: 21px; font-weight: 400; line-height: .7; }
.users-hero-actions { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; }
.users-import-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 156px; padding: 12px 18px; border: 1px solid #cfe1e7; border-radius: 13px; background: rgba(255,255,255,.86); color: #17627d; font-size: 11px; font-weight: 850; box-shadow: 0 10px 26px rgba(22,60,80,.08); backdrop-filter: blur(6px); }
.users-import-action:hover { border-color: #9fcbd6; background: #fff; color: #075f88; transform: translateY(-1px); }
.users-import-action svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.user-import-result { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; padding: 17px 20px; border: 1px solid #cce9df; border-radius: 17px; background: linear-gradient(135deg,#f4fcf8,#fff); box-shadow: 0 10px 28px rgba(25,105,83,.06); }
.user-import-result.is-error { border-color: #f1d0cd; background: linear-gradient(135deg,#fff7f6,#fff); }
.user-import-result-icon { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 12px; background: #e5f7f0; color: #138265; font-size: 16px; font-weight: 900; }
.user-import-result.is-error .user-import-result-icon { background: #ffedeb; color: #d84f49; }
.user-import-result-copy { min-width: 0; }
.user-import-result h2 { margin: 1px 0 4px; color: #183b4e; font-size: 15px; font-weight: 900; }
.user-import-result p { margin: 0; color: #6f8793; font-size: 10px; }
.user-import-result details { margin-top: 9px; }
.user-import-result summary { color: #176d84; cursor: pointer; font-size: 10px; font-weight: 850; }
.user-import-result ul { display: grid; gap: 4px; margin: 8px 0 0; padding-left: 18px; color: #677f8b; font-size: 10px; }

.users-import-dialog { width: min(680px, calc(100vw - 30px)); max-height: calc(100vh - 30px); padding: 0; overflow: auto; border: 0; border-radius: 24px; background: #fff; color: #244858; box-shadow: 0 30px 90px rgba(10,39,55,.28); }
.users-import-dialog::backdrop { background: rgba(8,31,44,.55); backdrop-filter: blur(5px); }
.users-import-form { margin: 0; }
.users-import-dialog-head { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 25px 26px 21px; border-bottom: 1px solid #e7eff2; background: linear-gradient(135deg,#f7fcfd,#fff 62%); }
.users-import-dialog-head::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg,#08759b,#0fb4b5,#6c5cff); }
.users-import-dialog-icon { display: grid; place-items: center; flex: 0 0 45px; width: 45px; height: 45px; border-radius: 14px; background: linear-gradient(145deg,#e8f8fa,#eef0ff); color: #08759b; }
.users-import-dialog-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.users-import-dialog-head h2 { margin: 0; color: var(--z-navy); font-size: 21px; font-weight: 900; letter-spacing: -.035em; }
.users-import-dialog-head p { margin: 6px 0 0; color: #7d939e; font-size: 10px; line-height: 1.5; }
.users-import-close { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; margin-left: auto; border: 1px solid #dbe7eb; border-radius: 11px; background: #fff; color: #76909b; font-size: 22px; line-height: 1; }
.users-import-close:hover { background: #f5fafb; color: #254b5d; }
.users-import-dialog-body { display: grid; gap: 16px; padding: 22px 26px; }
.users-import-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.users-import-steps article { display: flex; align-items: flex-start; gap: 9px; padding: 12px; border: 1px solid #e2ecef; border-radius: 13px; background: #fbfdfe; }
.users-import-steps article > span { display: grid; place-items: center; flex: 0 0 23px; width: 23px; height: 23px; border-radius: 8px; background: #e8f7fa; color: #08759b; font-size: 9px; font-weight: 900; }
.users-import-steps strong,.users-import-steps small { display: block; }
.users-import-steps strong { color: #284c5c; font-size: 9px; font-weight: 900; }
.users-import-steps small { margin-top: 3px; color: #8aa0aa; font-size: 8px; line-height: 1.45; }
.users-template-link { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border: 1px solid #cfe7e8; border-radius: 14px; background: #f2fbf9; color: #176c75; text-decoration: none; }
.users-template-link:hover { border-color: #9dd6d5; background: #ecf9f7; color: #075f70; }
.users-template-link svg { flex: 0 0 20px; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.users-template-link span,.users-template-link strong,.users-template-link small { display: block; }
.users-template-link strong { font-size: 10px; font-weight: 900; }
.users-template-link small { margin-top: 2px; color: #77949b; font-size: 8px; }
.users-file-drop { position: relative; display: grid; justify-items: center; padding: 26px 20px; border: 1.5px dashed #aacdd7; border-radius: 17px; background: linear-gradient(145deg,#fbfdfe,#f4fafb); cursor: pointer; text-align: center; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.users-file-drop:hover { border-color: #36aeb6; background: #f2fbfc; transform: translateY(-1px); }
.users-file-drop-icon { display: grid; place-items: center; width: 52px; height: 42px; margin-bottom: 10px; border-radius: 12px; background: linear-gradient(145deg,#0b875e,#20ad78); color: #fff; font-size: 9px; font-weight: 900; letter-spacing: .05em; box-shadow: 0 10px 22px rgba(16,139,96,.18); }
.users-file-drop strong { max-width: 100%; overflow: hidden; color: #294c5d; font-size: 11px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.users-file-drop small { margin-top: 5px; color: #8ba0aa; font-size: 9px; }
.users-file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.users-import-security { display: flex; align-items: flex-start; gap: 9px; padding: 11px 13px; border-radius: 12px; background: #f7fafb; color: #78909b; }
.users-import-security > span { display: grid; place-items: center; flex: 0 0 19px; width: 19px; height: 19px; border-radius: 50%; background: #e4f6ef; color: #138265; font-size: 9px; font-weight: 900; }
.users-import-security p { margin: 0; font-size: 8px; line-height: 1.55; }
.users-import-security strong { color: #456570; }
.users-import-dialog-actions { display: flex; justify-content: flex-end; gap: 9px; padding: 17px 26px 22px; border-top: 1px solid #e8eff2; background: #fbfdfe; }
.users-import-dialog-actions .btn { min-width: 130px; padding: 10px 15px; border-radius: 11px; font-size: 10px; font-weight: 850; }

.users-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.users-metric-card { display: flex; align-items: center; gap: 16px; min-height: 126px; padding: 22px; border: 1px solid #e1eaee; border-radius: 20px; background: rgba(255,255,255,.94); box-shadow: 0 12px 32px rgba(22, 60, 80, .06); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.users-metric-card:hover { transform: translateY(-2px); border-color: #d3e4e9; box-shadow: 0 18px 38px rgba(22, 60, 80, .09); }
.users-metric-card > div { min-width: 0; }
.users-metric-card small,
.users-metric-card strong,
.users-metric-card div > span { display: block; }
.users-metric-card small { margin-bottom: 4px; color: #748c98; font-size: 10px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.users-metric-card strong { color: var(--z-navy); font-size: 30px; font-weight: 900; letter-spacing: -.05em; line-height: 1.05; }
.users-metric-card div > span { margin-top: 5px; color: #91a2aa; font-size: 10px; }
.users-metric-icon { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 15px; }
.users-metric-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.users-metric-icon-blue { color: #08759b; background: #eaf7fb; }
.users-metric-icon-green { color: #128668; background: #e9f8f2; }
.users-metric-icon-amber { color: #bd7a08; background: #fff5dd; }
.users-metric-icon-violet { color: #6453d9; background: #f0efff; }

.users-layout { align-items: flex-start; }
.users-form-card,
.users-directory-card { overflow: hidden; border: 1px solid #dfe9ed; border-radius: 22px; background: rgba(255,255,255,.97); box-shadow: 0 16px 42px rgba(26, 63, 82, .07); }
.users-form-card { position: sticky; top: 94px; }
.users-panel-heading,
.users-directory-head { padding: 24px 25px 20px; border-bottom: 1px solid #e8eff2; background: linear-gradient(145deg, #fbfdfe, #fff); }
.users-panel-kicker { display: block; margin-bottom: 6px; color: var(--z-cyan); font-size: 8px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.users-panel-heading h2,
.users-directory-head h2 { margin: 0; color: var(--z-navy); font-size: 20px; font-weight: 900; letter-spacing: -.035em; }
.users-panel-heading p,
.users-directory-head p { margin: 7px 0 0; color: #8498a3; font-size: 11px; line-height: 1.55; }
.users-form-body { padding: 22px 25px 26px; }
.users-form-body .form-label { margin: 7px 0 6px; color: #3a5665; font-size: 10px; font-weight: 850; }
.users-form-body .form-control,
.users-form-body .form-select { min-height: 43px; border-color: #dce7ec; border-radius: 11px; background-color: #fbfdfe; font-size: 12px; }
.users-form-body .form-control:focus,
.users-form-body .form-select:focus { border-color: var(--z-cyan); background: #fff; box-shadow: 0 0 0 4px rgba(2, 174, 180, .1); }
.users-form-body .status-help,
.users-form-body .form-text { color: #879ba6; font-size: 9px; line-height: 1.55; }
.users-save-button { min-width: 156px; padding: 11px 16px; border: 0; border-radius: 11px; box-shadow: 0 10px 22px rgba(7, 95, 136, .16); }

.users-directory-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.users-directory-head > strong { flex: 0 0 auto; padding: 7px 11px; border: 1px solid #d9e9ee; border-radius: 999px; background: #f1fafb; color: #17768c; font-size: 9px; font-weight: 850; }
.users-toolbar { display: grid; grid-template-columns: minmax(220px, 1fr) 190px 165px; gap: 10px; padding: 17px 20px; border-bottom: 1px solid #e8eff2; background: #f9fbfc; }
.users-toolbar .form-select { min-height: 42px; border-color: #dce7ec; border-radius: 11px; background-color: #fff; color: #3e5a68; font-size: 11px; }
.users-search { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 13px; border: 1px solid #dce7ec; border-radius: 11px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.users-search:focus-within { border-color: var(--z-cyan); box-shadow: 0 0 0 4px rgba(2, 174, 180, .09); }
.users-search svg { flex: 0 0 17px; width: 17px; height: 17px; fill: none; stroke: #78909b; stroke-width: 1.8; stroke-linecap: round; }
.users-search input { width: 100%; border: 0; outline: 0; background: transparent; color: #284858; font-size: 11px; }
.users-search input::placeholder { color: #99a9b0; }

.users-table { --bs-table-bg: transparent; min-width: 900px; }
.users-table thead th { padding: 13px 15px; border-bottom: 1px solid #dfe8ec; background: #fff; color: #77909b; font-size: 8px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; white-space: nowrap; }
.users-table tbody tr[data-user-item] { transition: background-color .16s ease; }
.users-table tbody tr[data-user-item]:hover { background: #f8fcfd; }
.users-table tbody tr[data-user-item][hidden] { display: none !important; }
.users-table tbody td { padding: 15px; border-color: #edf2f4; color: #496675; font-size: 10px; vertical-align: middle; }
.user-identity { display: flex; align-items: center; gap: 11px; min-width: 190px; }
.user-initial { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border: 1px solid #d9e9ed; border-radius: 12px; background: linear-gradient(145deg, #eaf8fa, #f5f4ff); color: #08759b; font-size: 13px; font-weight: 900; }
.user-identity strong { display: block; margin-bottom: 3px; color: #183b4e; font-size: 11px; font-weight: 850; }
.user-email { display: block; max-width: 230px; overflow: hidden; color: #8ba0aa; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.user-role-label { display: inline-flex; padding: 6px 9px; border: 1px solid #dde9ed; border-radius: 8px; background: #f8fbfc; color: #466371; font-size: 9px; font-weight: 800; white-space: nowrap; }
.user-auth-badge { display: inline-flex; align-items: center; gap: 9px; min-height: 36px; color: #526e7b; font-size: 9px; font-weight: 750; white-space: nowrap; }
.user-auth-copy { color: #3d6071; font-weight: 850; letter-spacing: -.01em; }
.user-auth-symbol { position: relative; display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 11px; }
.user-auth-symbol-code { background: linear-gradient(145deg, #08759b, #0fb4b5); color: #fff; font-size: 9px; font-weight: 900; box-shadow: 0 7px 16px rgba(8,117,155,.16); }
.user-auth-symbol-microsoft { grid-template-columns: repeat(2, 8px); grid-template-rows: repeat(2, 8px); gap: 2px; place-content: center; overflow: hidden; border: 1px solid #dce7eb; background: linear-gradient(145deg,#fff,#f7fafb); box-shadow: 0 7px 18px rgba(27,62,79,.10), inset 0 1px 0 rgba(255,255,255,.95); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.user-auth-symbol-microsoft::after { content: ""; position: absolute; inset: 1px; border-radius: 9px; background: linear-gradient(135deg,rgba(255,255,255,.5),transparent 48%); pointer-events: none; }
.user-auth-symbol-microsoft i { position: relative; z-index: 1; display: block; width: 8px; height: 8px; border-radius: 1px; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.035); }
.user-auth-symbol-microsoft i:nth-child(1) { background: #f35325; }
.user-auth-symbol-microsoft i:nth-child(2) { background: #81bc06; }
.user-auth-symbol-microsoft i:nth-child(3) { background: #05a6f0; }
.user-auth-symbol-microsoft i:nth-child(4) { background: #ffba08; }
.users-table tbody tr:hover .user-auth-symbol-microsoft { border-color: #cadde4; box-shadow: 0 10px 22px rgba(27,62,79,.14), inset 0 1px 0 rgba(255,255,255,.95); transform: translateY(-1px); }
.user-status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 999px; font-size: 9px; font-weight: 850; white-space: nowrap; }
.user-status-badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px currentColor; opacity: .78; }
.user-status-badge.is-ativo { background: #e9f8f2; color: #11805f; }
.user-status-badge.is-inativo { background: #eef2f4; color: #71848d; }
.user-status-badge.is-bloqueado { background: #fff0ee; color: #d84f49; }
.users-actions-cell { min-width: 250px; white-space: nowrap; }
.users-actions-cell .btn { padding: 6px 9px; border-radius: 8px; font-size: 9px; font-weight: 800; }
.user-quick-status { vertical-align: middle; }
.user-quick-status .form-select { width: 102px; min-height: 31px; border-color: #dce6ea; border-radius: 8px; font-size: 9px; }
.users-empty-row td { padding: 44px 20px !important; text-align: center; }
.users-empty-row div { display: grid; gap: 5px; justify-items: center; color: #8ca0a9; }
.users-empty-row strong { color: #315061; font-size: 13px; }
.users-empty-row span { font-size: 10px; }

@media (max-width: 1200px) {
  .users-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .users-form-card { position: static; }
  .users-toolbar { grid-template-columns: 1fr 1fr; }
  .users-search { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .users-hero { align-items: flex-start; flex-direction: column; min-height: 0; padding: 27px 22px; }
  .users-hero::before { right: -94px; top: -52px; width: 300px; height: 300px; opacity: .1; }
  .users-primary-action { width: 100%; }
  .users-hero-actions { width: 100%; flex-direction: column-reverse; }
  .users-import-action { width: 100%; }
  .users-import-steps { grid-template-columns: 1fr; }
  .users-import-dialog-head,.users-import-dialog-body { padding-left: 19px; padding-right: 19px; }
  .users-import-dialog-actions { padding-left: 19px; padding-right: 19px; }
  .users-metrics { grid-template-columns: 1fr; }
  .users-metric-card { min-height: 105px; }
  .users-directory-head { flex-direction: column; }
  .users-toolbar { grid-template-columns: 1fr; }
  .users-search { grid-column: auto; }
  .users-form-body,
  .users-panel-heading,
  .users-directory-head { padding-left: 19px; padding-right: 19px; }
}

/* Gestão de usuários — experiência premium */
.users-page { max-width: 1660px; }
.users-hero {
  min-height: 208px;
  margin-bottom: 20px;
  padding: clamp(32px, 4vw, 54px);
  border-color: rgba(201, 222, 230, .86);
  border-radius: 30px;
  background:
    radial-gradient(circle at 84% 28%, rgba(14, 177, 181, .12), transparent 23%),
    radial-gradient(circle at 72% 86%, rgba(105, 91, 244, .08), transparent 25%),
    linear-gradient(135deg, #fff 0%, #f9fcfd 56%, #eef8fa 100%);
  box-shadow: 0 22px 65px rgba(24, 63, 82, .10);
}
.users-hero::before { right: 70px; top: -104px; width: 410px; height: 410px; opacity: .12; filter: drop-shadow(0 22px 32px rgba(0, 120, 150, .08)); }
.users-hero .eyebrow { margin-bottom: 11px; font-size: 11px; }
.users-hero h1 { font-size: clamp(36px, 4.2vw, 55px); }
.users-hero p:not(.eyebrow) { margin-top: 16px; color: #637d8b; font-size: 15px; }
.users-primary-action,
.users-import-action { min-height: 48px; font-size: 12px; }
.users-primary-action { min-width: 178px; background: linear-gradient(135deg, #086e99, #089db0); box-shadow: 0 15px 34px rgba(7, 95, 136, .24); }
.users-primary-action:hover { transform: translateY(-2px); box-shadow: 0 20px 40px rgba(7, 95, 136, .28); }
.users-import-action { min-width: 164px; }

.users-metrics { gap: 16px; margin-bottom: 24px; }
.users-metric-card { position: relative; min-height: 118px; padding: 21px 23px; overflow: hidden; border-color: rgba(215, 230, 235, .92); border-radius: 22px; box-shadow: 0 14px 38px rgba(22, 60, 80, .07); }
.users-metric-card::after { content: ""; position: absolute; right: -26px; bottom: -38px; width: 105px; height: 105px; border-radius: 50%; background: currentColor; opacity: .035; }
.users-metric-card small { color: #667f8c; font-size: 11px; letter-spacing: .075em; }
.users-metric-card strong { font-size: 34px; }
.users-metric-card div > span { color: #81949d; font-size: 11px; }
.users-metric-icon { flex-basis: 52px; width: 52px; height: 52px; border-radius: 17px; }
.users-metric-icon svg { width: 24px; height: 24px; }

.users-layout { display: block; }
.users-directory-card { border: 1px solid rgba(210, 226, 232, .9); border-radius: 25px; box-shadow: 0 20px 58px rgba(22, 60, 80, .08); }
.users-directory-head { align-items: center; padding: 28px 30px 24px; background: linear-gradient(145deg, #fbfdfe, #fff 72%); }
.users-directory-head h2 { font-size: 24px; }
.users-directory-head p { max-width: 640px; color: #718995; font-size: 12px; }
.users-panel-kicker { margin-bottom: 7px; font-size: 9px; }
.users-directory-status { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; padding: 9px 13px; border: 1px solid #d5e8eb; border-radius: 999px; background: linear-gradient(135deg, #f2fbfb, #f7fcfd); }
.users-directory-status > span { width: 8px; height: 8px; border-radius: 50%; background: #19ae86; box-shadow: 0 0 0 4px rgba(25,174,134,.12); }
.users-directory-status > strong { color: #176e82; font-size: 11px; font-weight: 850; }
.users-sector-overview { position: relative; padding: 25px 27px 28px; overflow: hidden; border-block: 1px solid #e7eff2; background: radial-gradient(circle at 94% 8%,rgba(15,170,177,.08),transparent 26%),linear-gradient(145deg,#f9fcfd 0%,#f3f9fb 100%); }
.users-sector-overview::after { content: ""; position: absolute; top: -42px; right: 42px; width: 138px; height: 138px; background: linear-gradient(145deg,#0baab1,#695bf4); clip-path: polygon(50% 0,62% 36%,100% 50%,62% 64%,50% 100%,38% 64%,0 50%,38% 36%); opacity: .025; pointer-events: none; }
.users-sector-overview-head { position: relative; z-index: 1; display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 19px; }
.users-sector-overview-head h3 { margin: 0; color: #153c50; font-size: 19px; font-weight: 900; letter-spacing: -.035em; }
.users-sector-overview-head p { max-width: 400px; margin: 0; color: #718995; font-size: 11px; line-height: 1.45; text-align: right; }
.users-sector-list { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fill,minmax(180px,1fr)); gap: 12px; }
.users-sector-card { position: relative; display: flex; flex-direction: column; align-items: stretch; min-width: 0; min-height: 136px; padding: 16px 16px 15px; overflow: hidden; border: 1px solid rgba(211,228,234,.96); border-radius: 18px; background: linear-gradient(155deg,rgba(255,255,255,.98),rgba(249,252,253,.96)); color: #365866; text-align: left; box-shadow: 0 10px 27px rgba(26,61,79,.06),inset 0 1px 0 rgba(255,255,255,.9); transition: transform .2s ease,border-color .2s ease,box-shadow .2s ease,background .2s ease; }
.users-sector-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg,#08769a,#10b5b4,#6b5cf4); opacity: 0; transition: opacity .2s ease; }
.users-sector-card::after { content: ""; position: absolute; right: -27px; bottom: -30px; width: 88px; height: 88px; background: linear-gradient(145deg,#11afb2,#6b5cf4); clip-path: polygon(50% 0,62% 36%,100% 50%,62% 64%,50% 100%,38% 64%,0 50%,38% 36%); opacity: .025; transition: opacity .2s ease,transform .2s ease; }
.users-sector-card:hover { transform: translateY(-3px); border-color: #a9d5dc; background: #fff; box-shadow: 0 17px 34px rgba(22,66,84,.10); }
.users-sector-card:hover::before,.users-sector-card.is-active::before { opacity: 1; }
.users-sector-card:hover::after { opacity: .045; transform: rotate(7deg) scale(1.04); }
.users-sector-card.is-active { border-color: #71c4ce; background: linear-gradient(145deg,#effafb,#fff 72%); box-shadow: 0 16px 34px rgba(8,117,155,.13),inset 0 0 0 1px rgba(15,170,177,.08); }
.users-sector-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.users-sector-icon { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border: 1px solid rgba(199,226,232,.72); border-radius: 13px; background: linear-gradient(145deg,#e8f7fa,#f0efff); color: #08799b; font-size: 10px; font-weight: 900; letter-spacing: -.02em; box-shadow: inset 0 1px 0 rgba(255,255,255,.9); }
.users-sector-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.users-sector-card.is-active .users-sector-icon { border-color: transparent; background: linear-gradient(145deg,#08769a,#0ca9b0); color: #fff; box-shadow: 0 8px 18px rgba(8,117,155,.20); }
.users-sector-count { display: grid; place-items: center; min-width: 39px; height: 28px; padding: 0 10px; border: 1px solid #d8e7eb; border-radius: 999px; background: #f6fafb; color: #173e52; font-size: 16px; font-weight: 900; line-height: 1; }
.users-sector-card.is-active .users-sector-count { border-color: rgba(12,160,171,.20); background: rgba(12,160,171,.09); color: #077895; }
.users-sector-name { position: relative; z-index: 1; display: block; min-width: 0; overflow: hidden; color: #173e52; font-size: 12px; font-weight: 850; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.users-sector-card small { position: relative; z-index: 1; display: block; margin-top: 4px; color: #7b909b; font-size: 9px; font-weight: 650; line-height: 1.35; }
.users-sector-arrow { position: absolute; right: 15px; bottom: 13px; z-index: 1; color: #8ca2ac; font-size: 14px; font-weight: 700; opacity: 0; transform: translateX(-4px); transition: opacity .2s ease,transform .2s ease,color .2s ease; }
.users-sector-card:hover .users-sector-arrow,.users-sector-card.is-active .users-sector-arrow { color: #087d9b; opacity: 1; transform: translateX(0); }
.users-toolbar { grid-template-columns: minmax(300px, 1fr) minmax(190px, 230px) minmax(170px, 205px) auto; gap: 12px; padding: 19px 22px; background: linear-gradient(180deg, #f8fbfc, #fbfdfe); }
.users-toolbar .form-select,
.users-search { min-height: 46px; border-color: #d6e4e9; border-radius: 13px; box-shadow: 0 5px 14px rgba(28,66,84,.025); }
.users-toolbar .form-select { padding-left: 14px; color: #304f5f; font-size: 12px; font-weight: 650; }
.users-search { padding: 0 15px; }
.users-search svg { width: 18px; height: 18px; }
.users-search input { font-size: 12px; }
.users-clear-filters { min-height: 46px; padding: 0 16px; border: 1px solid transparent; border-radius: 13px; background: transparent; color: #607b89; font-size: 11px; font-weight: 800; white-space: nowrap; transition: background .18s ease, color .18s ease, border-color .18s ease; }
.users-clear-filters:hover { border-color: #d5e4e8; background: #fff; color: #07698e; }

.users-table { min-width: 1080px; }
.users-table thead th { padding: 15px 20px; background: #fcfefe; color: #6e8793; font-size: 9px; }
.users-table tbody td { padding: 17px 20px; color: #3f5f6e; font-size: 12px; }
.users-table tbody tr[data-user-item] { background: #fff; transition: background-color .16s ease, box-shadow .16s ease; }
.users-table tbody tr[data-user-item]:hover { background: linear-gradient(90deg, #f7fcfd, #fff); box-shadow: inset 3px 0 0 #0da9b1; }
.user-identity { gap: 13px; min-width: 230px; }
.user-initial { flex-basis: 42px; width: 42px; height: 42px; border-radius: 14px; font-size: 14px; box-shadow: inset 0 1px 0 #fff; }
.user-identity strong { margin-bottom: 4px; color: #15384b; font-size: 12px; }
.user-email { max-width: 280px; font-size: 10px; }
.user-role-label { padding: 7px 10px; border-radius: 9px; font-size: 10px; }
.user-auth-badge { gap: 10px; min-height: 40px; font-size: 10px; }
.user-auth-symbol { flex-basis: 38px; width: 38px; height: 38px; border-radius: 12px; }
.user-auth-copy { font-size: 10px; }
.user-status-badge { gap: 7px; padding: 7px 11px; font-size: 10px; }
.users-actions-cell { min-width: 270px; }
.users-actions-cell .btn { min-height: 34px; padding: 7px 11px; border-radius: 9px; font-size: 10px; }
.user-quick-status .form-select { width: 112px; min-height: 34px; border-radius: 9px; font-size: 10px; }

.users-pagination { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 22px; border-top: 1px solid #e8eff2; background: #fbfdfe; }
.users-pagination p { margin: 0; color: #758c97; font-size: 11px; }
.users-pagination > div { display: flex; align-items: center; gap: 9px; }
.users-pagination button { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 12px; border: 1px solid #d5e4e9; border-radius: 10px; background: #fff; color: #315666; font-size: 10px; font-weight: 800; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.users-pagination button:hover:not(:disabled) { border-color: #9bcbd5; background: #f3fbfc; transform: translateY(-1px); }
.users-pagination button:disabled { cursor: not-allowed; opacity: .45; }
.users-pagination strong { min-width: 100px; color: #183f52; font-size: 10px; text-align: center; }

.users-editor-dialog { width: min(820px, calc(100vw - 30px)); max-height: calc(100dvh - 30px); padding: 0; overflow: auto; border: 0; border-radius: 26px; background: #fff; color: #244858; box-shadow: 0 32px 100px rgba(8, 35, 50, .32); }
.users-editor-dialog::backdrop { background: rgba(7, 29, 42, .58); backdrop-filter: blur(7px); }
.users-editor-form { margin: 0; }
.users-editor-head { position: relative; display: flex; align-items: flex-start; gap: 15px; padding: 28px 30px 24px; border-bottom: 1px solid #e7eff2; background: radial-gradient(circle at 84% 10%, rgba(14,177,181,.11), transparent 25%), linear-gradient(135deg,#f7fcfd,#fff 67%); }
.users-editor-head::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg,#08759b,#0fb4b5,#6c5cff); }
.users-editor-icon { display: grid; place-items: center; flex: 0 0 50px; width: 50px; height: 50px; border-radius: 16px; background: linear-gradient(145deg,#e5f8fa,#f1f0ff); color: #08799c; box-shadow: 0 10px 24px rgba(8,117,155,.11); }
.users-editor-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.users-editor-head h2 { margin: 0; color: var(--z-navy); font-size: 25px; font-weight: 900; letter-spacing: -.04em; }
.users-editor-head p { margin: 7px 0 0; color: #728a96; font-size: 11px; line-height: 1.55; }
.users-editor-close { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; margin-left: auto; border: 1px solid #d9e6ea; border-radius: 12px; background: rgba(255,255,255,.88); color: #6c8794; font-size: 24px; line-height: 1; text-decoration: none; }
.users-editor-close:hover { border-color: #bfd7de; background: #fff; color: #174b62; }
.users-editor-body { display: grid; gap: 18px; padding: 25px 30px; }
.users-editor-alert { margin: 0; border-radius: 13px; font-size: 11px; }
.users-editor-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.users-field { display: grid; align-content: start; gap: 7px; margin: 0; }
.users-field > span { color: #335463; font-size: 11px; font-weight: 850; }
.users-field .form-control,
.users-field .form-select { min-height: 48px; border-color: #d8e6ea; border-radius: 13px; background-color: #fbfdfe; color: #284958; font-size: 12px; }
.users-field .form-control:focus,
.users-field .form-select:focus { border-color: #10a5ad; background: #fff; box-shadow: 0 0 0 4px rgba(15,169,177,.10); }
.users-field small { color: #8298a2; font-size: 9px; line-height: 1.45; }
.users-auth-guide { display: flex; align-items: flex-start; gap: 11px; padding: 14px 16px; border: 1px solid #d5ece8; border-radius: 14px; background: linear-gradient(135deg,#f2fbf8,#fbfefe); }
.users-auth-guide > span { display: grid; place-items: center; flex: 0 0 25px; width: 25px; height: 25px; border-radius: 9px; background: #dff4ec; color: #0e8b65; font-size: 11px; font-weight: 900; }
.users-auth-guide p { margin: 0; color: #6c858f; font-size: 10px; line-height: 1.55; }
.users-auth-guide strong { display: block; margin-bottom: 2px; color: #285365; font-size: 10px; }
.users-editor-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 18px 30px 24px; border-top: 1px solid #e8eff2; background: #fbfdfe; }
.users-editor-actions .btn { min-width: 150px; min-height: 44px; padding: 10px 17px; border-radius: 12px; font-size: 11px; font-weight: 850; }

@media (max-width: 1200px) {
  .users-toolbar { grid-template-columns: 1fr 1fr 1fr; }
  .users-search { grid-column: 1 / -1; }
  .users-clear-filters { justify-self: start; }
}
@media (max-width: 760px) {
  .users-hero { padding: 30px 23px; border-radius: 23px; }
  .users-hero h1 { font-size: 36px; }
  .users-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .users-metric-card { min-height: 112px; padding: 18px; }
  .users-directory-head { align-items: flex-start; padding: 23px 20px 20px; }
  .users-sector-overview { padding: 21px 16px 23px; }
  .users-sector-overview-head { align-items: flex-start; flex-direction: column; gap: 5px; }
  .users-sector-overview-head p { max-width: none; text-align: left; }
  .users-sector-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .users-sector-card { min-height: 128px; padding: 14px; }
  .users-toolbar { grid-template-columns: 1fr; padding: 15px; }
  .users-search { grid-column: auto; }
  .users-clear-filters { width: 100%; }
  .users-pagination { align-items: stretch; flex-direction: column; }
  .users-pagination > div { display: grid; grid-template-columns: 1fr auto 1fr; }
  .users-pagination button { justify-content: center; }
  .users-editor-head { padding: 25px 20px 20px; }
  .users-editor-icon { display: none; }
  .users-editor-body { padding: 21px 20px; }
  .users-editor-grid { grid-template-columns: 1fr; }
  .users-editor-actions { display: grid; grid-template-columns: 1fr; padding: 16px 20px 21px; }
  .users-editor-actions .btn { width: 100%; }
}
@media (max-width: 480px) {
  .users-metrics { grid-template-columns: 1fr; }
  .users-metric-card { min-height: 102px; }
  .users-sector-list { grid-template-columns: 1fr; }
  .users-sector-card { min-height: 118px; }
  .users-pagination > div { grid-template-columns: 1fr 1fr; }
  .users-pagination strong { grid-column: 1 / -1; grid-row: 1; }
}

/* Experiência responsiva global — tablet e celular */
.app-nav-toggle,
.app-nav-mobile-head,
.app-nav-mobile-user,
.app-nav-backdrop { display: none; }

button,
.btn,
a,
input,
select,
textarea { touch-action: manipulation; }

@media (max-width: 900px) {
  html,
  body { max-width: 100%; overflow-x: clip; }
  body.app-nav-open { overflow: hidden; }

  .app-topbar { position: sticky; min-height: 66px; }
  .app-topbar-inner { min-height: 66px; padding: 10px 20px; flex-wrap: nowrap; }
  .app-brand { min-width: 0; gap: 9px; }
  .app-brand-logo { width: 103px; }
  .app-brand-divider { height: 27px; }
  .app-brand-product { overflow: hidden; font-size: 13px; text-overflow: ellipsis; }
  .app-brand-product small { display: none; }
  .app-user { display: none; }

  .app-nav-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 11px;
    place-content: center;
    gap: 5px;
    flex: 0 0 44px;
    border: 1px solid #d8e7eb;
    border-radius: 13px;
    background: #f7fbfc;
    color: var(--z-blue);
    box-shadow: 0 7px 18px rgba(22,60,80,.07);
  }
  .app-nav-toggle span { display: block; width: 20px; height: 2px; border-radius: 99px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
  .app-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .app-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .app-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .app-nav {
    position: fixed;
    z-index: 1065;
    inset: 0 0 0 auto;
    display: flex;
    width: min(86vw, 350px);
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    border-left: 1px solid rgba(219,231,236,.95);
    background: rgba(255,255,255,.985);
    box-shadow: -24px 0 60px rgba(15,42,58,.18);
    transform: translateX(104%);
    visibility: hidden;
    transition: transform .25s ease, visibility .25s;
    overscroll-behavior: contain;
  }
  .app-nav.is-open { transform: translateX(0); visibility: visible; }
  .app-nav a { display: flex; align-items: center; min-height: 48px; padding: 12px 14px; border: 1px solid transparent; border-radius: 13px; font-size: 13px; }
  .app-nav a:hover,
  .app-nav a.active { border-color: #d8e9ee; background: linear-gradient(135deg,#edf8fa,#f4f9fb); }
  .app-nav a.active::before { content: ""; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; background: var(--z-cyan); box-shadow: 0 0 0 4px rgba(25,185,176,.11); }
  .app-nav a[href="logout.php"] { margin-top: auto; border-color: #f0dfe2; background: #fff8f9; color: #b94154; }
  .app-nav-mobile-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; padding: 4px 2px 16px; border-bottom: 1px solid var(--z-line); }
  .app-nav-mobile-head span,
  .app-nav-mobile-head strong { display: block; }
  .app-nav-mobile-head span { color: #8ca0aa; font-size: 8px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
  .app-nav-mobile-head strong { margin-top: 3px; color: var(--z-navy); font-size: 15px; }
  .app-nav-mobile-head button { display: grid; width: 40px; height: 40px; padding: 0; place-items: center; border: 0; border-radius: 12px; background: #edf4f6; color: #54707d; font-size: 25px; line-height: 1; }
  .app-nav-mobile-user { display: block; margin-top: 8px; padding: 14px; border: 1px solid #e0ebef; border-radius: 13px; background: #f8fbfc; }
  .app-nav-mobile-user strong,
  .app-nav-mobile-user span { display: block; }
  .app-nav-mobile-user strong { overflow: hidden; color: var(--z-navy); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
  .app-nav-mobile-user span { margin-top: 3px; color: var(--z-muted); font-size: 9px; }
  .app-nav-backdrop { position: fixed; z-index: 1060; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(7,30,44,.45); opacity: 0; visibility: hidden; backdrop-filter: blur(3px); transition: opacity .22s ease, visibility .22s; }
  body.app-nav-open .app-nav-backdrop { display: block; opacity: 1; visibility: visible; }

  .app-main { width: 100%; padding: 28px 20px 56px; }
  .page-heading { align-items: stretch; }
  .page-heading > .btn { min-height: 44px; }
  .auth-page { grid-template-columns: minmax(0, 470px); padding: 34px 20px; }
  .auth-showcase { display: none; }
  .auth-card { margin: 0 auto; }
  .kanban-board { scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
  .kanban { scroll-snap-align: start; }
}

@media (max-width: 640px) {
  :root { --z-shadow: 0 9px 28px rgba(27,39,64,.065); }
  body { font-size: 13px; }
  .app-topbar-inner { padding: 9px 14px; }
  .app-brand-logo { width: 92px; }
  .app-brand-divider { display: none; }
  .app-brand-product { font-size: 12px; }
  .app-main { padding: 22px 13px calc(42px + env(safe-area-inset-bottom)); }
  .app-main-narrow { width: 100%; }
  .page-heading { gap: 15px; margin-bottom: 20px; }
  .page-heading h1,
  .identity-title { margin-top: 4px; font-size: clamp(27px, 9vw, 34px); line-height: 1.08; }
  .page-subtitle { font-size: 11px; }
  .page-heading > .btn { width: 100%; display: flex; align-items: center; justify-content: center; }

  .card { border-radius: 16px !important; }
  .card-body { padding: 18px 16px; }
  .btn { min-height: 44px; padding: 10px 14px; }
  .btn-sm { min-height: 40px; }
  .form-control,
  .form-select { min-height: 48px; font-size: 16px; }
  textarea.form-control { min-height: 150px; }
  input[type="file"].form-control { padding: 9px 10px; }
  .alert { border-radius: 13px; font-size: 11px; }

  #dashboard-metrics { --bs-gutter-x: .65rem; --bs-gutter-y: .65rem; }
  #dashboard-metrics .card-body { padding: 16px 13px; }
  .metric { min-height: 118px; }
  .metric .display-6 { margin-top: 9px; font-size: 30px; }
  .metric small { font-size: 8px; line-height: 1.35; }
  .sla-legend { align-items: flex-start; gap: 10px 14px; padding: 13px 14px; overflow: hidden; }
  .sla-legend-title { width: 100%; }
  .attention-panel { padding: 16px 14px; }
  .attention-item { align-items: flex-start; flex-direction: column; }
  .attention-item-time { width: 100%; text-align: left; }

  .ticket-list-heading { gap: 10px; }
  .ticket-list-heading h2 { font-size: 18px; }
  .ticket-list-card { padding: 16px 14px; border-radius: 16px; }
  .ticket-list-title { min-height: 0; overflow: visible; font-size: 16px; white-space: normal; }
  .ticket-list-created { line-height: 1.45; }
  .ticket-list-sla { padding: 12px; }
  .ticket-list-sla-title { align-items: flex-start; }
  .ticket-status-chip { white-space: normal; }
  .dashboard-pagination { align-items: stretch; flex-direction: column; gap: 12px; }
  .dashboard-pagination .d-flex { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-pagination .btn { width: 100%; }

  .ticket-hero { padding: 23px 18px; border-radius: 20px; }
  .ticket-hero h1 { font-size: 27px; }
  .ticket-hero-actions .btn { width: 100%; }
  .ticket-indicator { padding: 15px; }
  .ticket-section-heading { gap: 10px; flex-wrap: wrap; }
  .ticket-timeline { margin-right: 13px; margin-left: 34px; padding-left: 16px; }
  .ticket-timeline .timeline-item { padding: 14px; }
  .timeline-message { overflow-wrap: anywhere; }
  .timeline-attachments { grid-template-columns: 1fr; }
  .ticket-pause { align-items: flex-start; flex-wrap: wrap; }
  .ticket-pause b { width: 100%; padding-left: 44px; }
  .ticket-closed-state { align-items: flex-start; margin-right: 16px; margin-left: 16px; }
  .ticket-reopen-panel,
  .ticket-locked-notice { margin-right: 16px; margin-left: 16px; }

  .attachment-preview-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; }
  .attachment-preview-card { width: 100%; }
  .attachment-preview-card img { height: 110px; }
  .attachment-preview-remove { width: 34px; height: 34px; }
  .attachment-modal-header,
  .attachment-modal-footer { padding-right: 14px; padding-left: 14px; }

  .auth-page { min-height: 100dvh; padding: 18px 12px; }
  .auth-card { padding: 31px 20px 23px; border-radius: 22px !important; }
  .auth-card h1 { font-size: 27px; }
  .auth-method,
  .auth-method-sso { padding: 16px; }
  .auth-sso-head { align-items: center; }
  .auth-sso-badge { display: none; }
  .auth-code-input { height: 60px; font-size: 23px; }

  .report-live-status { min-width: 0; }
  .report-metrics-grid { grid-template-columns: 1fr; }
  .report-metric { min-height: 126px; }
  .report-chart-grid > div { min-height: 300px; }
  .report-chart-canvas,
  .report-chart-canvas-wide,
  .report-chart-canvas-backlog { min-height: 245px; }
  .report-chart-head { align-items: flex-start; }
  .report-chart-head > b { display: none; }
  .report-details-list { padding: 9px; }
  .report-ticket-card { gap: 15px; }

  .users-hero,
  .audit-hero { border-radius: 20px; }
  .users-hero h1,
  .audit-hero h1 { font-size: 32px; }
  .users-hero-actions { gap: 9px; }
  .users-import-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 24px); margin: auto; border-radius: 19px; }
  .users-import-dialog-actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .users-import-dialog-actions .btn { width: 100%; }
  .users-file-drop { min-height: 125px; }

  .app-main .card-body > .d-flex { align-items: stretch !important; flex-direction: column; }
  .app-main .card-body > .d-flex form.d-flex { width: 100%; align-items: stretch !important; flex-wrap: wrap; }
  .app-main .card-body > .d-flex form.d-flex > div { flex: 1 1 120px; }
  .app-main .card-body > .d-flex form.d-flex input[style] { width: 100% !important; }

  .table-responsive:has(.mobile-card-table) { overflow: visible; border-radius: 0; }
  table.mobile-card-table { display: block; min-width: 0 !important; margin: 0 !important; padding: 9px; background: transparent; }
  table.mobile-card-table thead { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  table.mobile-card-table tbody { display: grid; gap: 10px; width: 100%; }
  table.mobile-card-table tbody tr { display: grid; width: 100%; overflow: hidden; border: 1px solid #e1eaee; border-radius: 14px; background: #fff; box-shadow: 0 6px 18px rgba(22,60,80,.045); }
  table.mobile-card-table tbody tr[hidden] { display: none !important; }
  table.mobile-card-table tbody td { display: grid; grid-template-columns: minmax(104px,36%) minmax(0,1fr); align-items: center; gap: 10px; width: 100%; min-width: 0 !important; padding: 11px 12px !important; border: 0 !important; border-bottom: 1px solid #edf2f4 !important; text-align: left !important; white-space: normal !important; }
  table.mobile-card-table tbody td:last-child { border-bottom: 0 !important; }
  table.mobile-card-table tbody td::before { content: attr(data-label); color: #81949f; font-size: 8px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
  table.mobile-card-table tbody td[data-label=""] { display: block; }
  table.mobile-card-table tbody td[data-label=""]::before { display: none; }
  table.mobile-card-table tbody td .btn { width: 100%; }
  table.mobile-card-table .users-actions-cell { display: flex; flex-wrap: wrap; }
  table.mobile-card-table .users-actions-cell::before { width: 100%; }
  table.mobile-card-table .user-quick-status { display: block; width: 100%; }
  table.mobile-card-table .user-quick-status .form-select { width: 100%; }
  table.mobile-card-table .audit-details pre { max-width: 100%; }
  table.mobile-card-table .audit-user,
  table.mobile-card-table .user-identity { min-width: 0; }
  table.mobile-card-table .user-email { max-width: 100%; overflow-wrap: anywhere; white-space: normal; }
}

@media (max-width: 380px) {
  .app-brand-product { display: none; }
  #dashboard-metrics { display: grid; grid-template-columns: 1fr; margin-right: 0; margin-left: 0; }
  #dashboard-metrics > .col { width: 100%; padding: 0; }
  .attachment-preview-list { grid-template-columns: 1fr; }
  .report-filter-export-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .app-nav,
  .app-nav-backdrop,
  .app-nav-toggle span { transition: none; }
}

/* Calendário de feriados */
.holiday-page { width: min(1180px, 100%); }
.holiday-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 190px;
  margin-bottom: 18px;
  padding: clamp(28px, 4vw, 46px);
  overflow: hidden;
  border: 1px solid #dce9ee;
  border-radius: 26px;
  background: linear-gradient(135deg, #fff 0%, #f8fcfd 56%, #eef8fa 100%);
  box-shadow: 0 18px 48px rgba(22,60,80,.075);
}
.holiday-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -88px;
  bottom: -138px;
  width: 370px;
  height: 370px;
  background: url("login-star.png") center / contain no-repeat;
  opacity: .12;
  transform: rotate(10deg);
  pointer-events: none;
}
.holiday-hero-copy { max-width: 700px; }
.holiday-hero h1 { margin: 5px 0 10px; font-size: clamp(30px, 4vw, 45px); line-height: 1.03; }
.holiday-hero p:not(.eyebrow) { max-width: 650px; margin: 0; color: #778e9b; font-size: 13px; line-height: 1.65; }
.holiday-hero-mark { display: grid; place-items: center; flex: 0 0 108px; width: 108px; height: 108px; border: 1px solid #cfe5eb; border-radius: 30px; background: rgba(255,255,255,.68); color: #0b7e9b; box-shadow: 0 14px 30px rgba(20,94,117,.1); backdrop-filter: blur(7px); }
.holiday-hero-mark svg { width: 48px; height: 48px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.holiday-hero-mark span { margin-top: -15px; color: #7c95a0; font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.holiday-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-bottom: 18px; }
.holiday-stat { display: flex; align-items: center; gap: 13px; min-width: 0; padding: 16px 17px; border: 1px solid #e0ebef; border-radius: 17px; background: rgba(255,255,255,.95); box-shadow: 0 9px 25px rgba(22,60,80,.045); }
.holiday-stat-icon { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 13px; }
.holiday-stat-icon svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.holiday-stat-icon.is-blue { background: #eaf7fb; color: #08789e; }
.holiday-stat-icon.is-green { background: #e9f8f2; color: #158462; }
.holiday-stat-icon.is-violet { background: #f0efff; color: #6255d5; }
.holiday-stat small, .holiday-stat strong, .holiday-stat div > span { display: block; }
.holiday-stat small { color: #778e9a; font-size: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.holiday-stat strong { margin: 4px 0 2px; color: var(--z-navy); font-size: 25px; font-weight: 900; letter-spacing: -.05em; line-height: 1; }
.holiday-stat div > span { color: #94a4ac; font-size: 8px; }
.holiday-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.holiday-action { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 14px; padding: 20px; overflow: hidden; border: 1px solid #dfeaed; border-radius: 20px; background: #fff; box-shadow: 0 11px 30px rgba(22,60,80,.055); }
.holiday-action-sync { background: linear-gradient(145deg, #fff, #f5fbfc); }
.holiday-action-add { background: linear-gradient(145deg, #fff, #fbfaff); }
.holiday-action-icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 12px; background: linear-gradient(145deg, #eaf8fa, #f0efff); color: #08779a; }
.holiday-action-add .holiday-action-icon { color: #6255d5; }
.holiday-action-icon svg { width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.holiday-action-copy { min-width: 0; }
.holiday-action-kicker { display: block; color: var(--z-cyan); font-size: 8px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.holiday-action h2 { margin: 3px 0 4px; font-size: 16px; letter-spacing: -.035em; }
.holiday-action p { margin: 0; color: #8297a1; font-size: 9px; line-height: 1.55; }
.holiday-action-form, .holiday-add-form { grid-column: 1 / -1; }
.holiday-action-form .form-label, .holiday-add-form .form-label { margin-bottom: 6px; font-size: 9px; }
.holiday-action-controls { display: grid; grid-template-columns: 125px 1fr; gap: 9px; }
.holiday-action-controls .form-control { min-height: 42px; font-size: 12px; }
.holiday-action-controls .btn { min-height: 42px; }
.holiday-add-form { display: grid; grid-template-columns: 135px minmax(0, 1fr) auto; align-items: end; gap: 9px; }
.holiday-add-form .form-control { min-height: 42px; font-size: 12px; }
.holiday-add-form > .btn { min-height: 42px; white-space: nowrap; }
.holiday-directory { overflow: hidden; border: 1px solid #dfe9ed; border-radius: 22px; background: rgba(255,255,255,.98); box-shadow: 0 16px 42px rgba(26,63,82,.065); }
.holiday-directory-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 24px 25px 20px; border-bottom: 1px solid #e8eff2; background: linear-gradient(145deg, #fbfdfe, #fff); }
.holiday-directory-head h2 { margin: 3px 0 0; font-size: 20px; letter-spacing: -.04em; }
.holiday-directory-head p { margin: 7px 0 0; color: #8498a3; font-size: 10px; }
.holiday-directory-head > strong { flex: 0 0 auto; padding: 8px 12px; border: 1px solid #d6ebe3; border-radius: 999px; background: #f0faf6; color: #187a5e; font-size: 9px; font-weight: 900; }
.holiday-table-wrap { border-radius: 0; }
.holiday-table thead th { padding: 13px 18px; }
.holiday-table-wrap table thead th { padding: 13px 18px; }
.holiday-table-wrap table tbody td { padding: 15px 18px; color: #4a6674; font-size: 11px; }
.holiday-table-wrap table tbody tr { transition: background .18s ease; }
.holiday-table-wrap table tbody tr:hover { background: #f8fcfd; }
.holiday-date, .holiday-weekday, .holiday-description { display: block; }
.holiday-date { color: var(--z-blue); font-size: 11px; font-weight: 900; }
.holiday-weekday { margin-top: 3px; color: #98a8af; font-size: 8px; }
.holiday-description { color: #345565; font-size: 11px; font-weight: 800; }
.holiday-status { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 999px; font-size: 9px; font-weight: 900; white-space: nowrap; }
.holiday-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px currentColor; opacity: .2; }
.holiday-status.is-active { background: #e9f8f2; color: #11805f; }
.holiday-status.is-inactive { background: #eef2f4; color: #71848d; }
.holiday-no-action { color: #a2afb5; font-size: 9px; }
.holiday-empty { display: grid; gap: 5px; justify-items: center; padding: 42px 20px; color: #8ca0a9; text-align: center; }
.holiday-empty span { color: #1aa9a8; font-size: 28px; }
.holiday-empty strong { color: #315061; font-size: 13px; }
.holiday-empty small { font-size: 10px; }

@media (max-width: 900px) {
  .holiday-page { width: 100%; }
  .holiday-hero { align-items: flex-start; }
  .holiday-actions { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .holiday-hero { min-height: 0; padding: 27px 21px; }
  .holiday-hero h1 { font-size: 32px; }
  .holiday-hero p:not(.eyebrow) { font-size: 11px; }
  .holiday-hero-mark { position: absolute; right: -20px; bottom: -25px; width: 110px; height: 110px; opacity: .65; }
  .holiday-stats { grid-template-columns: 1fr; gap: 9px; }
  .holiday-stat { min-height: 83px; padding: 14px; }
  .holiday-action { padding: 17px 15px; }
  .holiday-action-controls { grid-template-columns: 1fr; }
  .holiday-add-form { grid-template-columns: 1fr; }
  .holiday-add-form > .btn { width: 100%; }
  .holiday-directory-head { flex-direction: column; padding: 20px 17px 17px; }
  .holiday-directory-head > strong { align-self: flex-start; }
  .holiday-table-wrap { overflow: visible; }
  .holiday-table-wrap table.mobile-card-table { padding: 9px; }
  .holiday-table-wrap table.mobile-card-table tbody td { grid-template-columns: minmax(92px, 33%) minmax(0, 1fr); padding: 11px 12px !important; }
}

/* Cards de chamados — hierarquia visual e leitura rápida */
.ticket-list-card {
  padding: 20px 22px;
  border-color: #e2ebef;
  border-radius: 21px;
  background: linear-gradient(145deg,#fff 0%,#fff 72%,#f9fcfd 100%);
  box-shadow: 0 14px 38px rgba(24,61,82,.07);
}
.ticket-list-card::before { inset: 16px auto 16px 0; width: 5px; border-radius: 0 99px 99px 0; }
.ticket-list-card:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(24,61,82,.11); }
.ticket-list-card-critical { border-color: #efd9de; background: linear-gradient(145deg,#fff 0%,#fff 72%,#fff8f9 100%); }
.ticket-list-card-warning { border-color: #eee2c7; background: linear-gradient(145deg,#fff 0%,#fff 72%,#fffcf5 100%); }
.ticket-list-card-status-resolvido { border-color: #cfe8dc; background: linear-gradient(145deg,#fff 0%,#fff 72%,#f3fbf7 100%); }
.ticket-list-card-status-fechado { border-color: #d6e4ea; background: linear-gradient(145deg,#fff 0%,#fff 72%,#f4f9fb 100%); }
.ticket-list-top { align-items: center; }
.ticket-list-kicker { margin-bottom: 6px; color: #718894; font-size: 11px; letter-spacing: .1em; }
.ticket-list-protocol { font-size: 16px; letter-spacing: -.02em; }
.ticket-list-subject { margin: 16px 0 14px; }
.ticket-list-subject .ticket-list-kicker { margin-bottom: 5px; }
.ticket-list-title { min-height: 0; margin: 0; overflow: hidden; font-size: 24px; font-weight: 900; line-height: 1.16; letter-spacing: -.045em; }
.ticket-list-priority > span { font-size: 11px; letter-spacing: .1em; }
.ticket-priority { padding: 9px 15px; font-size: 12px; }
.ticket-list-meta { gap: 12px; }
.ticket-list-meta > div { padding: 12px 14px; border-color: #e7eef1; border-radius: 14px; background: linear-gradient(145deg,#fcfefe,#f6fafb); }
.ticket-list-meta span { margin-bottom: 6px; color: #708793; font-size: 10.5px; letter-spacing: .075em; }
.ticket-list-meta strong { color: #304f5f; font-size: 14px; }
.ticket-list-status-row { margin: 12px 0 14px; padding: 8px 10px; border: 1px solid #e7eef1; border-radius: 13px; background: rgba(248,251,252,.78); }
.ticket-list-card .ticket-status-chip { min-height: 36px; padding: 7px 14px 7px 8px; font-size: 12.5px; box-shadow: none; }
.ticket-list-card .ticket-status-chip i { width: 20px; height: 20px; flex-basis: 20px; }
.ticket-list-created { display: flex; align-items: center; gap: 8px; color: #607985; font-size: 12px; }
.ticket-list-created strong { color: #758b96; font-size: 10.5px; font-weight: 900; letter-spacing: .075em; text-transform: uppercase; }
.ticket-list-sla { padding: 14px 16px 13px; border-color: #dce8ec; border-radius: 16px; background: linear-gradient(135deg,#fbfdfe,#f2f8fa); }
.ticket-list-sla-title { margin-bottom: 9px; }
.ticket-list-sla-title > span { color: #496b7b; font-size: 11px; letter-spacing: .085em; }
.ticket-list-sla-title a { display: inline-flex; flex-shrink: 0; align-items: center; min-height: 36px; padding: 7px 12px; border: 1px solid #d5e7ec; border-radius: 10px; background: rgba(255,255,255,.82); font-size: 12px; white-space: nowrap; }
.ticket-list-sla-title a:hover { border-color: #a8d3dc; background: #fff; }
.ticket-list-card .sla-overview-row,
.ticket-list-card .sla-overview-row strong { font-size: 13px; }
.ticket-list-card .sla-overview-row { min-height: 25px; color: #617985; }
.ticket-list-card .sla-overview-row strong { font-weight: 900; }
.ticket-list-card .sla-overview-current { margin-top: 8px; padding-top: 9px; }
.ticket-list-card .sla-progress-meta { margin-bottom: 7px; font-size: 11px; }
.ticket-list-card .sla-progress-meta strong { font-size: 13px; }
.ticket-list-card .sla-progress-track { height: 10px; }
.ticket-list-card-critical .ticket-list-sla { border-color: #f0d8dd; background: linear-gradient(135deg,#fffafb,#fff3f5); }
.ticket-list-card-warning .ticket-list-sla { border-color: #f1e3c1; background: linear-gradient(135deg,#fffdfa,#fff9ee); }
.ticket-list-card-status-resolvido .ticket-list-sla { border-color: #cce9db; background: linear-gradient(135deg,#fbfffd,#f1fbf6); }
.ticket-list-card-status-fechado .ticket-list-sla { border-color: #d6e5eb; background: linear-gradient(135deg,#fcfeff,#f1f8fa); }

/* Cards de chamados — acabamento contemporâneo e leve */
.ticket-list-card {
  --ticket-accent-start: #087da1;
  --ticket-accent-end: #24bea9;
  --ticket-glow: rgba(36,190,169,.16);
  isolation: isolate;
  border: 1px solid rgba(194,214,222,.82);
  background: linear-gradient(145deg,rgba(255,255,255,.99) 0%,rgba(252,254,255,.99) 60%,rgba(247,251,252,.98) 100%);
  box-shadow: 0 18px 46px rgba(22,58,78,.09), 0 3px 10px rgba(22,58,78,.04), inset 0 1px 0 #fff;
}
.ticket-list-card-critical { --ticket-accent-start: #c92f4a; --ticket-accent-end: #ef6578; --ticket-glow: rgba(232,71,95,.14); border-color: rgba(235,190,199,.86); }
.ticket-list-card-warning { --ticket-accent-start: #cf8514; --ticket-accent-end: #f1bc45; --ticket-glow: rgba(236,174,54,.15); border-color: rgba(235,216,172,.9); }
.ticket-list-card-status-resolvido { --ticket-accent-start: #0f8561; --ticket-accent-end: #35c793; --ticket-glow: rgba(45,190,137,.15); border-color: rgba(181,222,203,.9); }
.ticket-list-card-status-fechado { --ticket-accent-start: #075f84; --ticket-accent-end: #239fbd; --ticket-glow: rgba(35,159,189,.14); border-color: rgba(185,215,226,.9); }
.ticket-list-card::before { z-index: 2; width: 4px; background: linear-gradient(180deg,var(--ticket-accent-start),var(--ticket-accent-end)); box-shadow: 3px 0 15px var(--ticket-glow); }
.ticket-list-card::after { content: ""; position: absolute; z-index: 0; top: -84px; right: -66px; width: 210px; height: 210px; border-radius: 50%; background: radial-gradient(circle,var(--ticket-glow) 0%,rgba(255,255,255,0) 70%); pointer-events: none; }
.ticket-list-card > * { position: relative; z-index: 1; }
.ticket-list-card:hover { transform: translateY(-4px); border-color: rgba(148,188,202,.9); box-shadow: 0 24px 58px rgba(22,58,78,.13), 0 5px 16px rgba(22,58,78,.06), inset 0 1px 0 #fff; }
.ticket-list-kicker,
.ticket-list-priority > span { color: #6d8490; font-weight: 850; }
.ticket-list-protocol { color: #076f95; text-shadow: 0 1px 0 rgba(255,255,255,.85); }
.ticket-list-title { color: #0b2943; background: linear-gradient(92deg,#0b2943 0%,#075d7a 62%,#119b9b 100%); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-wrap: balance; }
.ticket-priority { border: 1px solid rgba(255,255,255,.9); box-shadow: 0 8px 20px rgba(22,58,78,.09), inset 0 1px 0 rgba(255,255,255,.85); }
.ticket-list-meta > div { border-color: rgba(211,226,232,.9); background: linear-gradient(145deg,rgba(255,255,255,.94),rgba(244,249,250,.92)); box-shadow: 0 7px 20px rgba(28,68,88,.045), inset 0 1px 0 #fff; }
.ticket-list-meta span { color: #6f8792; }
.ticket-list-meta strong { color: #29495a; font-weight: 750; }
.ticket-list-status-row { border-color: rgba(211,226,232,.88); background: linear-gradient(120deg,rgba(248,252,253,.96),rgba(255,255,255,.9)); box-shadow: inset 0 1px 0 #fff, 0 6px 18px rgba(28,68,88,.035); }
.ticket-list-card .ticket-status-chip { box-shadow: 0 7px 18px rgba(28,68,88,.08), inset 0 1px 0 rgba(255,255,255,.8); }
.ticket-list-created { color: #617985; }
.ticket-list-sla { border-color: rgba(204,222,229,.92); background: linear-gradient(140deg,rgba(251,254,255,.98),rgba(240,248,250,.94)); box-shadow: 0 10px 26px rgba(25,66,86,.06), inset 0 1px 0 #fff; }
.ticket-list-card-critical .ticket-list-sla { border-color: rgba(239,205,212,.92); background: linear-gradient(140deg,rgba(255,252,253,.98),rgba(255,242,245,.94)); box-shadow: 0 10px 26px rgba(201,47,74,.055), inset 0 1px 0 #fff; }
.ticket-list-card-warning .ticket-list-sla { border-color: rgba(238,220,181,.94); background: linear-gradient(140deg,rgba(255,254,251,.98),rgba(255,248,234,.94)); box-shadow: 0 10px 26px rgba(207,133,20,.055), inset 0 1px 0 #fff; }
.ticket-list-card-status-resolvido .ticket-list-sla { border-color: rgba(191,226,209,.94); background: linear-gradient(140deg,rgba(252,255,254,.98),rgba(239,250,245,.94)); }
.ticket-list-card-status-fechado .ticket-list-sla { border-color: rgba(196,220,229,.94); background: linear-gradient(140deg,rgba(252,254,255,.98),rgba(238,247,250,.94)); }
.ticket-list-sla-title > span { color: #3e6172; }
.ticket-list-sla-title a { border-color: rgba(191,216,225,.95); background: linear-gradient(145deg,rgba(255,255,255,.98),rgba(244,250,252,.96)); box-shadow: 0 6px 18px rgba(24,74,96,.07), inset 0 1px 0 #fff; transition: transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.ticket-list-sla-title a:hover { transform: translateY(-1px); border-color: #8fc8d5; box-shadow: 0 9px 22px rgba(24,74,96,.11), inset 0 1px 0 #fff; }
.ticket-list-card .sla-overview-row + .sla-overview-row { border-top: 1px dashed rgba(184,205,214,.52); }
.ticket-list-card .sla-progress-track { background: rgba(218,231,236,.78); box-shadow: inset 0 1px 3px rgba(25,66,86,.1); }

@media (max-width: 640px) {
  .ticket-list-card { padding: 17px 14px; border-radius: 18px; }
  .ticket-list-kicker,
  .ticket-list-priority > span { font-size: 10.5px; }
  .ticket-list-protocol { font-size: 15px; }
  .ticket-list-subject { margin-top: 13px; }
  .ticket-list-title { font-size: 21px; }
  .ticket-list-meta > div { padding: 11px 12px; }
  .ticket-list-meta strong { font-size: 13.5px; }
  .ticket-list-status-row { margin: 10px 0 12px; padding: 7px 8px; }
  .ticket-list-card .ticket-status-chip { min-height: 34px; font-size: 12px; }
  .ticket-list-created { width: 100%; font-size: 11.5px; }
  .ticket-list-sla { padding: 13px 12px 12px; }
  .ticket-list-sla-title { align-items: center; }
  .ticket-list-sla-title > span { font-size: 10.5px; }
  .ticket-list-sla-title a { min-height: 38px; font-size: 11.5px; }
  .ticket-list-card .sla-overview-row,
  .ticket-list-card .sla-overview-row strong { font-size: 12.5px; }
  .ticket-list-card::after { top: -72px; right: -62px; width: 170px; height: 170px; }
}

/* Cards de chamados — edição compacta premium */
.ticket-list-grid { gap: 14px; }
.ticket-list-card {
  padding: 16px 18px 15px;
  border-radius: 18px;
  background:
    linear-gradient(145deg,rgba(255,255,255,.995) 0%,rgba(251,254,255,.99) 66%,rgba(244,250,251,.985) 100%);
  box-shadow:
    0 14px 34px rgba(18,53,72,.075),
    0 2px 7px rgba(18,53,72,.035),
    inset 0 1px 0 rgba(255,255,255,.98);
}
.ticket-list-card::before { inset: 14px auto 14px 0; width: 3px; }
.ticket-list-card::after {
  top: -47px;
  right: -42px;
  width: 154px;
  height: 154px;
  border-radius: 0;
  background: url("login-star.png") center / contain no-repeat;
  opacity: .045;
  transform: rotate(7deg);
}
.ticket-list-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 19px 42px rgba(18,53,72,.105),
    0 4px 11px rgba(18,53,72,.045),
    inset 0 1px 0 #fff;
}
.ticket-list-top { gap: 10px; }
.ticket-list-kicker,
.ticket-list-priority > span {
  margin-bottom: 4px;
  color: #748995;
  font-size: 8.5px;
  font-weight: 850;
  letter-spacing: .095em;
}
.ticket-list-protocol {
  font-size: 13.5px;
  font-weight: 900;
  letter-spacing: -.015em;
}
.ticket-list-priority { gap: 2px; }
.ticket-priority {
  padding: 7px 11px;
  font-size: 10.5px;
  letter-spacing: .01em;
  box-shadow: 0 5px 14px rgba(22,58,78,.07), inset 0 1px 0 rgba(255,255,255,.9);
}
.ticket-list-subject { margin: 11px 0 12px; }
.ticket-list-subject .ticket-list-kicker { margin-bottom: 3px; }
.ticket-list-title {
  font-size: 19px;
  font-weight: 850;
  line-height: 1.17;
  letter-spacing: -.035em;
}
.ticket-list-meta { gap: 9px; }
.ticket-list-meta > div {
  padding: 9px 11px;
  border-radius: 12px;
  box-shadow: 0 5px 14px rgba(28,68,88,.035), inset 0 1px 0 #fff;
}
.ticket-list-meta span {
  margin-bottom: 4px;
  font-size: 8.5px;
  letter-spacing: .07em;
}
.ticket-list-meta strong { font-size: 11.5px; font-weight: 750; }
.ticket-list-status-row {
  margin: 9px 0 10px;
  padding: 6px 8px;
  border-radius: 11px;
  box-shadow: inset 0 1px 0 #fff;
}
.ticket-list-card .ticket-status-chip,
.ticket-list-card .ticket-status-chip-resolvido,
.ticket-list-card .ticket-status-chip-fechado {
  min-height: 30px;
  padding: 6px 11px 6px 7px;
  font-size: 10.5px;
  letter-spacing: .01em;
  box-shadow: 0 5px 13px rgba(28,68,88,.065), inset 0 1px 0 rgba(255,255,255,.82);
}
.ticket-list-card .ticket-status-chip i {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
}
.ticket-list-created { gap: 6px; font-size: 9.5px; }
.ticket-list-created strong { font-size: 8.5px; letter-spacing: .07em; }
.ticket-list-sla {
  padding: 10px 12px 9px;
  border-radius: 13px;
  box-shadow: 0 7px 19px rgba(25,66,86,.045), inset 0 1px 0 #fff;
}
.ticket-list-sla-title { margin-bottom: 6px; }
.ticket-list-sla-title > span { font-size: 9px; letter-spacing: .075em; }
.ticket-list-sla-title a {
  min-height: 31px;
  padding: 5px 9px;
  border-radius: 9px;
  font-size: 9.5px;
  box-shadow: 0 4px 12px rgba(24,74,96,.055), inset 0 1px 0 #fff;
}
.ticket-list-card .sla-overview-row,
.ticket-list-card .sla-overview-row strong {
  min-height: 20px;
  font-size: 10.5px;
}
.ticket-list-card .sla-overview-current { margin-top: 5px; padding-top: 6px; }
.ticket-list-card .sla-progress-meta { margin-bottom: 5px; font-size: 9px; }
.ticket-list-card .sla-progress-meta strong { font-size: 10.5px; }
.ticket-list-card .sla-progress-track { height: 7px; }

@media (max-width: 640px) {
  .ticket-list-card { padding: 15px 13px 13px; border-radius: 16px; }
  .ticket-list-card::before { inset-block: 12px; }
  .ticket-list-card::after { top: -38px; right: -38px; width: 128px; height: 128px; }
  .ticket-list-kicker,
  .ticket-list-priority > span { font-size: 8px; }
  .ticket-list-protocol { font-size: 13px; }
  .ticket-list-title { font-size: 18px; }
  .ticket-list-meta { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ticket-list-meta > div { padding: 8px 9px; }
  .ticket-list-meta strong { font-size: 10.5px; }
  .ticket-list-status-row { align-items: center; flex-direction: row; }
  .ticket-list-created { width: auto; font-size: 8.5px; }
  .ticket-list-sla { padding: 9px 10px 8px; }
  .ticket-list-sla-title { align-items: center; }
  .ticket-list-sla-title > span { font-size: 8.5px; }
  .ticket-list-sla-title a { min-height: 30px; font-size: 9px; }
  .ticket-list-card .sla-overview-row,
  .ticket-list-card .sla-overview-row strong { font-size: 10px; }
}

@media (max-width: 430px) {
  .ticket-list-meta { grid-template-columns: 1fr; }
  .ticket-list-status-row { align-items: flex-start; flex-direction: column; }
  .ticket-list-created { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .ticket-list-card { transition: none; }
  .ticket-list-card:hover { transform: none; }
}
