/* Layout transposto de layout-central-chamados-lf/styles.css para o sistema real.
   Camada visual apenas: preserva IDs, names, data attributes e listeners existentes. */
:root {
  color-scheme: dark;
  --bg: #071217;
  --surface: #132229d9;
  --surface-2: #192b32;
  --line: #35515a;
  --text: #f5f7f4;
  --muted: #aebbc1;
  --green: #70c94b;
  --green-2: #2f7138;
  --blue: #4697ff;
  --red: #ff4d59;
  --yellow: #f1c84a;
  --radius: 16px;
  --shadow: 0 22px 55px #0007;
  --brand: var(--green);
  --brand-dark: var(--green-2);
  --brand-strong: #a8ef97;
  --ink: var(--text);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 40%, #16391f55, transparent 24%),
    radial-gradient(circle at 92% 20%, #173f2450, transparent 22%),
    linear-gradient(145deg, #071217, #0b181d 55%, #071115);
  font-family: Inter, system-ui, sans-serif;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: -2;
  opacity: .32;
  background-image:
    linear-gradient(#61c64b12 1px, transparent 1px),
    linear-gradient(90deg, #61c64b12 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.topbar {
  width: 100%;
  height: 72px;
  margin: 0;
  padding: 0 max(32px, calc((100vw - 1440px) / 2));
  display: flex;
  align-items: center;
  gap: 30px;
  border-bottom: 1px solid #42604d88;
  background: #0b171cd9;
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar::before {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  min-width: 220px;
}

.brand-logo-small {
  width: 56px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand span {
  color: #fff;
  font-weight: 900;
}

.company-tagline {
  margin-left: auto;
  color: #dce7e9;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: 0;
}

.admin-nav {
  display: flex;
  border: 1px solid #34474f;
  border-radius: 10px;
  padding: 4px;
  background: transparent;
}

.admin-nav-button,
.client-role-filter-button {
  border: 0;
  background: transparent;
  color: #b8c3c7;
  padding: 10px 18px;
  border-radius: 7px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
}

.admin-nav-button.active,
.admin-nav-button:hover,
.client-role-filter-button.active,
.client-role-filter-button:hover {
  color: var(--green);
  background: #173b25;
  box-shadow: inset 0 0 0 1px #52b83e;
}

.notification-button,
.secondary-button,
.danger-button {
  background: linear-gradient(180deg, #192c34, #111e24);
  border: 1px solid #40565e;
  color: var(--text);
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 #ffffff12, 0 10px 24px #0004;
}

.notification-button {
  min-width: 46px;
  min-height: 46px;
  display: inline-grid;
  place-items: center;
  color: #ffdf75;
  border-color: #4c6670;
  background: linear-gradient(180deg, #1d333c, #13252c);
}

#logoutBtn {
  margin-left: 0;
  padding-inline: 18px;
  border-color: #58717b;
}

.notification-button:hover,
#logoutBtn:hover,
.secondary-button:hover {
  border-color: #70c94b99;
  background: linear-gradient(180deg, #203942, #15292f);
}

main {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: none;
  padding: 0;
}

.hidden {
  display: none !important;
}

.login-screen {
  max-width: 1440px;
  min-height: calc(100vh - 72px);
  margin: auto;
  padding: 70px 56px;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  align-items: center;
  gap: 90px;
  border: 0;
  background: transparent !important;
  box-shadow: none;
  overflow: visible;
}

.login-copy {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent !important;
  box-shadow: none;
  overflow: visible;
  text-align: left;
}

.eyebrow {
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--green);
  margin: 0 14px 4px 0;
}

.login-copy h1 {
  max-width: none;
  color: #fff;
  font-size: clamp(54px, 5vw, 80px);
  line-height: 1.04;
  margin: 28px 0 20px;
  letter-spacing: 0;
}

.login-copy h1 span,
.login-copy h1 span {
  color: #a8ef97;
}

.login-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 20px;
}

.login-copy::before,
.login-copy::after {
  display: none;
}

.ticket-art {
  margin: 55px 0 0 85px;
  width: 220px;
  height: 120px;
  border: 4px solid #285939;
  border-radius: 22px;
  position: relative;
  opacity: .7;
}

.ticket-art::before,
.ticket-art::after {
  content: "";
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg);
  top: 36px;
}

.ticket-art::before {
  left: -25px;
}

.ticket-art::after {
  right: -25px;
}

.ticket-art b {
  position: absolute;
  right: -45px;
  bottom: -35px;
  width: 92px;
  height: 92px;
  border: 4px solid #285939;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 38px;
  color: var(--green);
  background: #0b181d;
}

.login-card,
.panel,
.metrics article,
.ticket-card,
.ticket-dialog,
.image-dialog,
.dialog-section,
.signature-panel,
.client-card,
.notification-panel,
.file-drop {
  background: linear-gradient(145deg, #223239dd, #101d22ee) !important;
  border: 1px solid #52705f !important;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  color: var(--text);
}

.login-card {
  width: auto;
  max-width: 480px;
  justify-self: stretch;
  padding: 44px;
}

.login-card h2 {
  color: #fff;
  font-size: 40px;
  margin: 0 0 8px;
}

.login-card > p,
.hint {
  color: var(--muted);
  margin: 16px 0 0;
}

.stack-form,
.ticket-form,
.ticket-admin-actions {
  display: grid;
  gap: 0;
}

.login-card label,
.ticket-admin-actions label,
.ticket-form label,
.client-edit-form label,
.client-password-form label,
.comment-form label,
#completionForm label {
  display: grid;
  gap: 9px;
  color: #edf7f4 !important;
  font-size: 14px;
  font-weight: 700;
  margin: 18px 0;
}

input,
select,
textarea {
  width: 100%;
  min-height: 54px;
  border: 1px solid #4a5e65 !important;
  border-radius: 10px;
  background: #142329 !important;
  color: #fff !important;
  padding: 0 16px;
  outline: none;
}

textarea {
  padding: 14px 16px;
}

input::placeholder,
textarea::placeholder {
  color: #b4c4c8;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green) !important;
  box-shadow: 0 0 0 3px #70c94b1f;
}

select option {
  color: #071217;
  background: #f5f7f4;
}

.primary-button {
  min-height: 54px;
  border: 0;
  border-radius: 11px;
  padding: 0 24px;
  background: linear-gradient(135deg, #91ef6b, #55cc50);
  color: #07120a;
  font-weight: 900;
  font-size: 15px;
  box-shadow: 0 10px 24px #50d14725;
  cursor: pointer;
}

.login-card .primary-button {
  width: 100%;
  margin-top: 10px;
}

.login-card .primary-button span {
  float: right;
}

.form-row,
.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.login-options .check {
  display: flex;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.check input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  accent-color: var(--green);
}

a {
  color: var(--green);
}


.app-screen {
  max-width: 1440px;
  margin: auto;
  padding: 44px 40px 70px;
  display: grid;
  gap: 22px;
  border: 0;
  background: transparent;
}

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 0;
}

.page-heading h1,
.admin-heading-copy h1 {
  color: #fff;
  font-size: 40px;
  margin: 0 0 4px;
}

.page-heading p,
.panel-subtitle,
.ticket-meta,
.ticket-description,
.ticket-attachments,
.muted,
.client-card span,
.client-card small {
  color: var(--muted);
}

#clientApp .page-heading .eyebrow {
  font-size: 16px;
}

#clientApp .page-heading h1 {
  display: block;
  font-size: 46px;
  line-height: 1;
  margin: 10px 0 12px;
  color: #fff;
}

#clientApp #clientSessionLabel {
  color: #dce7ea;
  font-size: 17px;
}

.metrics {
  display: grid;
  gap: 20px;
  width: 100%;
  grid-template-columns: repeat(5, 1fr);
}

.metrics article {
  min-height: 105px;
  padding: 20px 24px;
  background: linear-gradient(145deg, #172a31dd, #0f1e23dd) !important;
  border: 1px solid #426057 !important;
  border-radius: 14px;
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  box-shadow: none;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.metrics article::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px var(--green);
}

.metrics article:hover,
.metrics article:focus-visible,
.metrics article.active {
  border-color: var(--green) !important;
  box-shadow: 0 0 0 1px rgba(110, 242, 92, .35), 0 14px 32px rgba(61, 214, 77, .14);
}

.metrics article:focus-visible {
  outline: 2px solid rgba(110, 242, 92, .85);
  outline-offset: 3px;
}

.metrics article.active {
  background: linear-gradient(145deg, rgba(37, 88, 52, .92), rgba(16, 38, 31, .95)) !important;
}

.metrics span {
  color: #bdc8cc;
  font-weight: 600;
}

.metrics strong {
  grid-column: 1 / 3;
  color: #fff;
  font-size: 28px;
}

.panel {
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none;
  backdrop-filter: none;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 0 0 16px;
}

#adminTicketsPanel .panel-header.admin-header {
  display: block;
}

#adminTicketsPanel .panel-header.admin-header > div:first-child {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.panel h2,
.ticket-card h3,
.section-title {
  color: #fff;
}

.toolbar,
.admin-search-row,
.client-search-row {
  background: linear-gradient(145deg, #223239dd, #101d22ee) !important;
  border: 1px solid #52705f !important;
  border-radius: var(--radius);
  box-shadow: none;
  backdrop-filter: blur(22px);
}

.toolbar {
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 12px;
}

.admin-search-row {
  padding: 18px;
  display: grid;
  grid-template-columns: 2.2fr;
  margin: 0 0 12px;
}

.toolbar select,
.toolbar button,
.admin-search-row input {
  width: 100%;
}

.panel-divider {
  display: none;
}

.ticket-list,
.client-list {
  display: grid;
  gap: 12px;
}

.ticket-card {
  padding: 26px 30px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 30px;
  border-left: 4px solid var(--green) !important;
}

.client-ticket .ticket-card {
  grid-template-columns: 1fr;
}

.ticket-topline {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.ticket-protocol {
  color: #fff;
}

.ticket-status,
.ticket-urgency,
.new-reply-badge {
  padding: 7px 14px;
  min-height: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  border: 0;
}

.ticket-status,
.ticket-status.done,
.ticket-urgency.sla-done {
  background: #2d6f35;
  color: #9bf081;
}

.ticket-status.progress {
  background: #173c61;
  color: #8ec7ff;
}

.client-card .ticket-status.progress {
  background: #233e57;
  color: #b8dcff;
  box-shadow: inset 0 0 0 1px #5ea7e555;
}

.client-card .ticket-status.open {
  background: #4a2e66;
  color: #e4c7ff;
  box-shadow: inset 0 0 0 1px #b76cff66;
}

.ticket-status.waiting,
.ticket-urgency,
.ticket-urgency.sla-warning {
  background: #66551b;
  color: #ffdc5e;
}

.ticket-status.cancelled,
.ticket-urgency.sla-overdue,
.new-reply-badge {
  border: 1px solid #eb4a52;
  color: #ff7a81;
  background: #5f252a66;
}

.ticket-card h3 {
  font-size: 22px;
  margin: 12px 0 6px;
}

.ticket-main p {
  line-height: 1.5;
}

.ticket-images {
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

.ticket-image {
  border: 1px solid #455d64;
  border-radius: 9px;
  background: #142329;
}

details,
.details-action {
  width: 100%;
}

summary,
.history {
  width: 100%;
  text-align: left;
  margin-top: 20px;
  padding: 18px 0 0;
  border: 0;
  border-top: 1px solid #3b5058;
  background: transparent;
  color: #dce5e7;
  cursor: pointer;
}

.ticket-admin-actions {
  padding: 6px 0 6px 28px;
  border-left: 1px solid #3d535b;
  background: transparent !important;
  border-top: 0 !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.ticket-admin-actions .primary-button {
  width: 100%;
}

.file-drop {
  padding: 26px;
}

.file-icon {
  color: #07120a;
  background: var(--green);
}

.client-ticket .ticket-card {
  grid-template-columns: 1fr;
}

.client-ticket .ticket-admin-actions {
  display: none;
}

.client-ticket .ticket-card .ticket-main {
  display: block;
}

.client-ticket .ticket-card .ticket-main::after {
  display: none;
}

.info-strip {
  padding: 15px 24px;
  border: 1px solid #3d6d4b;
  background: #132a22;
  border-radius: 12px;
  color: #c7d2d5;
}

.info-strip strong {
  color: var(--green);
}

.section-title {
  margin: 0;
}

.client-search-row {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(260px, 420px);
  gap: 12px;
}

.client-role-filter {
  border: 1px solid #34474f;
  border-radius: 10px;
  padding: 4px;
  background: transparent;
}

.notification-panel {
  right: 0;
  width: min(390px, calc(100vw - 24px));
  padding: 16px;
}

.notification-panel strong,
.notification-panel small,
.notification-list article strong,
.notification-list article span,
.notification-list article small {
  color: #f2fbf7 !important;
}

.notification-list article {
  padding: 12px;
  border: 1px solid #4b6970;
  border-radius: 10px;
  background: #182b32;
}

.notification-list article.unread {
  border-color: #70c94b;
  background: #173527;
}

.ticket-dialog,
.image-dialog {
  border-radius: var(--radius);
  background: linear-gradient(145deg, #21343b, #132329) !important;
  color: #f7fbf8 !important;
}

.dialog-header {
  background: #0b171c;
  border-bottom: 1px solid #42604d88;
  color: #fff;
}

.dialog-body,
.image-dialog-body {
  background: transparent;
  color: #edf5f2;
}

.dialog-section {
  background: #16292fee !important;
  border-color: #639071 !important;
}

.dialog-section h3,
.dialog-section strong,
.dialog-body h3,
.dialog-body strong,
.ticket-dialog h2 {
  color: #ffffff !important;
}

.dialog-section p,
.dialog-section li,
.dialog-section span,
.dialog-body p,
.dialog-body li,
.comment-list,
.comment-item {
  color: #d7e4e1 !important;
}

.dialog-section small,
.dialog-body small {
  color: #b6c8c7 !important;
}

.message-bubble,
.chat-thread .message-bubble {
  border: 1px solid #53737b;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 10px 0;
  color: #f4faf8 !important;
}

.message-bubble strong,
.message-bubble p {
  color: #f4faf8 !important;
}

.admin-message {
  background: #17395c !important;
}

.client-message {
  background: #f3f8f5 !important;
  color: #102027 !important;
}

.client-message strong,
.client-message p {
  color: #102027 !important;
}

.comment-form textarea {
  background: #102229 !important;
  color: #ffffff !important;
  min-height: 96px;
}

.readonly-message {
  border: 1px dashed #5c7880;
  border-radius: 10px;
  padding: 12px 14px;
  color: #dbe8e5 !important;
}

.client-card {
  display: grid;
  gap: 18px;
}

.client-card-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.client-card-title strong {
  display: block;
  color: #fff;
  font-size: 17px;
}

.client-card-title span {
  display: block;
}

.client-password-form {
  border-top: 1px solid #3d5962;
  padding-top: 18px;
}

.client-password-form.hidden {
  display: none;
}

.readonly-ticket-box {
  border-color: #5b737b;
  background: #182a31;
}

.completion-dialog,
.completion-dialog .dialog-body,
.completion-dialog .dialog-section,
.completion-dialog form,
.completion-dialog label,
.completion-dialog p,
.completion-dialog span,
.completion-dialog h3 {
  color: #f5fbf8 !important;
}

.completion-dialog canvas,
.signature-pad,
canvas.signature-pad {
  background: #ffffff !important;
  border: 2px solid #70c94b !important;
  border-radius: 12px;
}

.signature-panel {
  background: #172b32 !important;
}

.completion-summary,
.completion-summary p,
.completion-summary span,
.completion-summary strong,
.completion-summary figcaption {
  color: #f3fbf7 !important;
}

@media (max-width: 980px) {
  .company-tagline {
    display: none;
  }

  .login-screen {
    grid-template-columns: 1fr;
    padding: 40px 24px;
    gap: 30px;
  }

  .login-copy h1 {
    font-size: 48px;
  }

  .ticket-art {
    display: none;
  }

  .app-screen {
    padding: 28px 18px;
  }

  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .toolbar,
  .client-search-row {
    grid-template-columns: 1fr 1fr;
  }

  .admin-search-row,
  .toolbar input,
  .client-search-row input {
    grid-column: 1 / -1;
  }

  .ticket-card {
    grid-template-columns: 1fr;
  }

  .ticket-admin-actions {
    border-left: 0 !important;
    border-top: 1px solid #3d535b !important;
    padding: 22px 0 0;
  }

  .page-heading,
  .panel-header {
    align-items: flex-start;
    gap: 18px;
  }
}

@media (max-width: 600px) {
  .topbar {
    height: auto;
    min-height: 92px;
    padding: 10px 12px;
    gap: 8px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    overflow: visible;
  }

  .topbar .brand {
    grid-column: 1;
    min-width: 0;
  }

  .notification-center {
    grid-column: 2;
    position: relative;
  }

  #logoutBtn {
    grid-column: 3;
    min-width: 64px;
    padding-inline: 12px;
  }

  .notification-button {
    width: 48px;
    min-width: 48px;
  }

  .notification-panel {
    position: fixed;
    top: 82px;
    left: 10px;
    right: 10px;
    width: auto;
    max-width: none;
    max-height: min(520px, calc(100dvh - 104px));
    overflow: auto;
    z-index: 1000;
  }

  .brand span {
    font-size: 14px;
  }

  .page-heading,
  .panel-header {
    display: grid;
  }

  .page-heading h1 {
    font-size: 30px;
  }

  .metrics,
  .toolbar,
  .client-search-row {
    grid-template-columns: 1fr;
  }

  .ticket-card {
    padding: 20px;
  }

  .login-card {
    padding: 28px;
  }
}

@media (max-width: 720px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .brand {
    min-width: max-content;
  }

  .brand-logo-small {
    width: 46px !important;
    height: 38px !important;
  }

  .nav-tabs,
  .user-actions,
  .topbar-actions {
    flex-wrap: nowrap;
    min-width: max-content;
  }

  .app-screen,
  .admin-screen,
  .client-screen {
    width: min(100% - 18px, 100%);
    padding: 18px 0 28px !important;
    margin-inline: auto;
  }

  .page-heading,
  .panel-header,
  .admin-header,
  .client-header {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .page-heading h1,
  .panel-header h1,
  .admin-header h1,
  .client-header h1 {
    font-size: clamp(1.65rem, 9vw, 2.15rem) !important;
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
  }

  .metrics article {
    min-height: 84px;
    padding: 12px;
    grid-template-columns: 14px 1fr;
  }

  .metrics article::before {
    width: 11px;
    height: 11px;
  }

  .metrics span {
    font-size: 12px;
    line-height: 1.2;
  }

  .metrics strong {
    font-size: 24px;
  }

  .toolbar,
  .admin-search-row,
  .client-search-row,
  .filters,
  .form-grid,
  .dialog-grid,
  .ticket-card,
  .ticket-card .ticket-main,
  .ticket-admin-actions,
  .client-card,
  .client-card-summary,
  .client-password-reset {
    grid-template-columns: 1fr !important;
    min-width: 0;
    max-width: 100%;
  }

  .toolbar,
  .admin-search-row,
  .client-search-row,
  .filters {
    gap: 10px;
  }

  input,
  select,
  textarea,
  button {
    max-width: 100%;
    font-size: 16px;
  }

  .ticket-card,
  .client-ticket .ticket-card,
  .client-card,
  .dialog-section {
    padding: 16px !important;
    border-radius: 10px;
  }

  .ticket-card h3,
  .client-card-title strong {
    font-size: 1.05rem !important;
    line-height: 1.24;
  }

  .ticket-meta,
  .ticket-tags,
  .client-card-actions,
  .actions,
  .conversation-section form {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
  }

  .ticket-status,
  .ticket-card button,
  .client-card-actions button,
  .primary-button,
  .secondary-button {
    width: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }

  .ticket-images {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .ticket-image {
    width: 100%;
    min-width: 0;
  }

  .ticket-dialog,
  .image-dialog {
    width: min(100% - 14px, 100%) !important;
    max-width: calc(100vw - 14px) !important;
    max-height: calc(100dvh - 14px) !important;
    margin: auto;
    border-radius: 10px !important;
  }

  .dialog-header {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px !important;
  }

  .dialog-header h2 {
    font-size: clamp(1.25rem, 6vw, 1.65rem) !important;
    overflow-wrap: anywhere;
  }

  .dialog-body,
  .image-dialog-body {
    padding: 14px !important;
    gap: 12px !important;
  }

  .message-bubble {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
  }

  .completion-summary-grid,
  .signature-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 420px) {
  .topbar {
    padding-inline: 8px;
    grid-template-columns: minmax(0, 1fr) 46px 58px;
  }

  .brand span {
    font-size: 12px;
  }

  .notification-panel {
    top: 76px;
    left: 6px;
    right: 6px;
    width: auto;
  }

  .app-screen,
  .admin-screen,
  .client-screen {
    width: min(100% - 10px, 100%);
  }

  .ticket-images {
    grid-template-columns: 1fr !important;
  }

  .ticket-card,
  .client-ticket .ticket-card,
  .client-card,
  .dialog-section {
    padding: 12px !important;
  }
}

/* Remover o efeito decorativo verde da parte inferior. */
body::after { content: none !important; display: none !important; background: none !important; }

/* Fundo inferior sem desenho decorativo em todas as telas. */
body::after { content: none !important; display: none !important; background: none !important; }
