:root {
  --client-bg: #07141c;
  --client-bg-2: #0b1d27;
  --client-panel: #102732;
  --client-card: #ffffff;
  --client-soft: #f4f7f8;
  --client-text: #15242b;
  --client-muted: #6f8088;
  --client-line: #dce5e8;
  --client-cyan: #16d3c5;
  --client-cyan-dark: #0aa79d;
  --client-yellow: #f4cf3a;
  --client-green: #29c781;
  --client-red: #ef5965;
  --client-shadow: 0 18px 60px rgba(2, 15, 21, .15);
  --client-radius: 22px;
  --client-max: 1480px;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; color: var(--client-text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body.client-login-body, body.client-app-body { background: #eef3f4; }
body.client-app-body { overflow-x: hidden; }
a { color: inherit; }
.client-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.client-eyebrow { margin: 0 0 8px; color: var(--client-cyan-dark); font-size: 11px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.client-muted { color: var(--client-muted); }

/* Login e recuperação */
.client-login-page { min-height: 100vh; display: grid; grid-template-columns: 1.15fr .85fr; background: var(--client-bg); color: #fff; }
.client-login-visual { position: relative; overflow: hidden; padding: 6vh 8vw; display: flex; flex-direction: column; justify-content: center; background: radial-gradient(circle at 30% 35%, #123844 0%, #091a23 47%, #061219 100%); }
.client-login-logo-link { display: inline-flex; align-items: center; width: fit-content; margin: 0 0 26px; position: relative; z-index: 2; }
.client-login-logo { position: relative; z-index: 2; width: 188px; height: auto; display: block; }
.client-login-visual > *:not(.client-orb) { position: relative; z-index: 2; }
.client-login-visual .client-eyebrow { color: var(--client-cyan); }
.client-login-visual h1 { margin: 0; max-width: 850px; font-size: clamp(52px, 7vw, 102px); line-height: .94; letter-spacing: -.072em; }
.client-login-visual h1 span { color: var(--client-yellow); }
.client-login-copy { max-width: 620px; margin: 25px 0 0; color: #aec6cf; font-size: 18px; line-height: 1.65; }
.client-login-features { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
.client-login-features span { padding: 10px 13px; border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.05); border-radius: 11px; display: flex; align-items: center; gap: 8px; color: #ccdde3; font-size: 13px; font-weight: 700; }
.client-login-features .client-icon { color: var(--client-cyan); }
.client-orb { position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.client-orb-one { width: 430px; height: 430px; right: -180px; top: -100px; background: radial-gradient(circle, rgba(22,211,197,.22), transparent 70%); }
.client-orb-two { width: 350px; height: 350px; left: -150px; bottom: -140px; background: radial-gradient(circle, rgba(244,207,58,.16), transparent 70%); }
.client-login-panel { padding: 35px; display: grid; place-items: center; background: #eef4f5; color: var(--client-text); }
.client-login-card { width: min(445px, 100%); padding: 36px; background: #fff; border: 1px solid #dce6e9; border-radius: 24px; box-shadow: var(--client-shadow); }
.client-login-card h2 { margin: 0; font-size: 38px; letter-spacing: -.045em; }
.client-login-card > p:not(.client-eyebrow) { margin: 9px 0 26px; color: var(--client-muted); }
.client-form { display: grid; gap: 17px; }
.client-field { display: grid; gap: 7px; color: #41565e; font-size: 13px; font-weight: 750; }
.client-field input { width: 100%; min-height: 50px; margin: 0 !important; padding: 11px 13px !important; border: 1px solid var(--client-line) !important; border-radius: 12px !important; background: #fafcfc !important; color: var(--client-text); outline: none; box-shadow: none !important; }
.client-field input:focus { border-color: var(--client-cyan-dark) !important; box-shadow: 0 0 0 3px rgba(22,211,197,.12) !important; }
.client-password-field { position: relative; }
.client-password-field input { padding-right: 72px !important; }
.client-password-toggle { position: absolute; top: 5px; right: 5px; min-width: 58px; height: 40px; border: 0; border-radius: 9px; background: #edf3f4; color: #536a72; font-weight: 800; cursor: pointer; }
.client-primary-button { min-height: 49px; padding: 11px 18px; border: 0; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; background: var(--client-yellow); color: #14262e; font-weight: 850; cursor: pointer; box-shadow: 0 10px 24px rgba(244,207,58,.2); transition: transform .18s, background .18s; }
.client-primary-button:hover { transform: translateY(-1px); background: #ffe168; }
.client-primary-button:disabled { opacity: .65; cursor: wait; transform: none; }
.client-secondary-link { display: inline-flex; align-items: center; gap: 6px; color: var(--client-cyan-dark); font-weight: 780; }
.client-login-help { margin-top: 18px; color: var(--client-muted); font-size: 13px; line-height: 1.55; }
.client-login-help a { color: var(--client-cyan-dark); font-weight: 800; }
.client-production-note { margin-top: 24px; display: flex; align-items: center; justify-content: center; gap: 8px; color: #7c8d94; font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.client-production-note span { width: 8px; height: 8px; border-radius: 50%; background: var(--client-green); box-shadow: 0 0 0 4px rgba(41,199,129,.12); }
.client-feedback { display: none; margin: 0 0 18px; padding: 12px 14px; border-radius: 11px; font-size: 13px; font-weight: 700; line-height: 1.45; }
.client-feedback.show { display: block; }
.client-feedback.error { background: #fee7e9; color: #a52b37; border: 1px solid #f3b7bc; }
.client-feedback.success { background: #dff8ed; color: #08734a; border: 1px solid #a5e6ca; }
.client-login-back { margin-top: 18px; text-align: center; }

/* Barra de carregamento */
.client-app-body .progress, .client-login-body .progress { position: fixed; z-index: 2000; top: 0; left: 0; right: 0; width: 100%; height: 3px; margin: 0; overflow: hidden; background: rgba(244,207,58,.22); }
.client-app-body .progress .indeterminate, .client-login-body .progress .indeterminate { height: 100%; background: var(--client-yellow); animation: client-progress 1.2s infinite ease-in-out; transform-origin: left; }
@keyframes client-progress { 0% { transform: translateX(-100%) scaleX(.35); } 50% { transform: translateX(35%) scaleX(.65); } 100% { transform: translateX(130%) scaleX(.35); } }

/* Área interna */
.client-topbar { position: sticky; top: 0; left: 0; right: 0; z-index: 90; width: 100%; min-height: 76px; height: 76px; display: flex; align-items: center; gap: 26px; padding: 0 max(22px, calc((100vw - var(--client-max))/2)); background: rgba(7,20,28,.98); color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(18px); line-height: normal; }
.client-brand { display: flex; flex: 0 0 auto; align-items: center; gap: 13px; min-width: 220px; text-decoration: none; }
.client-brand-logo, .client-brand-title { display: flex; align-items: center; color: inherit; text-decoration: none; }
.client-brand-logo { flex: 0 0 auto; }
.client-brand-title { flex: 0 0 auto; }
.client-brand img { display: block; flex: 0 0 auto; width: 112px; height: auto; }
.client-brand span { color: var(--client-yellow); padding-left: 12px; border-left: 1px solid rgba(255,255,255,.22); font-size: 14px; font-weight: 760; white-space: nowrap; }
.client-top-nav { position: static; width: auto; min-width: 0; height: auto; min-height: 0; line-height: normal; display: flex; align-items: center; gap: 6px; flex: 1 1 auto; background: transparent; box-shadow: none; }
.client-top-nav a { padding: 10px 13px; border-radius: 10px; color: #bcd0d8; text-decoration: none; font-weight: 680; }
.client-top-nav a:hover, .client-top-nav a.active { background: rgba(255,255,255,.08); color: #fff; }
.client-top-actions { min-width: 0; display: flex; flex: 0 1 auto; align-items: center; gap: 12px; }
.client-user-menu { position: relative; }
.client-user-menu summary { min-width: 0; list-style: none; display: flex; align-items: center; gap: 9px; cursor: pointer; }
.client-user-menu summary::-webkit-details-marker { display: none; }
.client-avatar { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 50%; background: linear-gradient(135deg, var(--client-cyan), #63e1d6); color: #062024; font-weight: 900; }
.client-user-name { min-width: 0; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 680; }
.client-user-popover { position: absolute; top: 52px; right: 0; width: 225px; padding: 8px; background: #fff; color: var(--client-text); border-radius: 15px; box-shadow: var(--client-shadow); }
.client-user-popover a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 9px; text-decoration: none; }
.client-user-popover a:hover { background: #f0f5f6; }
.client-menu-button { display: none; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 12px; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; place-items: center; }

.client-page-shell { width: min(calc(100% - 42px), var(--client-max)); margin: 0 auto; padding: 34px 0 95px; }
.client-welcome { position: relative; overflow: hidden; min-height: 186px; padding: 34px 40px; border-radius: var(--client-radius); display: flex; align-items: center; justify-content: space-between; gap: 28px; background: linear-gradient(130deg, #091a23 0%, #102f3a 72%, #0b4548 100%); color: #fff; box-shadow: var(--client-shadow); }
.client-welcome::after { content: ""; position: absolute; width: 330px; height: 330px; right: -110px; top: -150px; border-radius: 50%; background: radial-gradient(circle, rgba(22,211,197,.3), transparent 68%); }
.client-welcome > * { position: relative; z-index: 1; }
.client-welcome .client-eyebrow { color: var(--client-yellow); }
.client-welcome h1 { margin: 0; overflow-wrap: anywhere; font-size: clamp(29px, 4vw, 48px); letter-spacing: -.045em; }
.client-welcome p:not(.client-eyebrow) { margin: 9px 0 0; color: #b7ccd4; font-size: 15px; }
.client-date-badge { padding: 12px 15px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(255,255,255,.06); color: #d4e2e7; font-size: 13px; font-weight: 700; white-space: nowrap; }

.client-layout { margin-top: 18px; display: grid; grid-template-columns: 285px minmax(0,1fr); gap: 18px; align-items: start; }
.client-sidebar { position: sticky; top: 94px; padding: 17px; background: #fff; border: 1px solid #dde7e9; border-radius: 20px; box-shadow: 0 10px 34px rgba(20,47,57,.06); }
.client-sidebar-toggle { width: 100%; min-height: 42px; margin: 0 0 12px; padding: 9px 11px; border: 1px solid #d9e4e7; border-radius: 11px; display: flex; align-items: center; gap: 10px; background: #f7fbfb; color: #536971; font-weight: 760; cursor: pointer; transition: background .18s, border-color .18s, color .18s; }
.client-sidebar-toggle:hover { background: #eef5f6; border-color: #cddcdf; color: #1f353e; }
.client-sidebar-toggle .client-icon { width: 18px; color: #6c848d; flex: 0 0 auto; }
.client-sidebar-toggle-collapsed { display: none; }
.client-sidebar-toggle span { white-space: nowrap; }
.client-sidebar-title { margin: 5px 8px 8px; color: #84969d; font-size: 10px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.client-sidebar-nav { position: static; width: 100%; height: auto; min-height: 0; line-height: normal; display: grid; gap: 4px; background: transparent; box-shadow: none; }
.client-sidebar-nav a { min-height: 43px; padding: 10px 11px; border-radius: 11px; display: flex; align-items: center; gap: 11px; color: #526870; text-decoration: none; font-weight: 720; }
.client-sidebar-nav a .client-icon { width: 19px; color: #759099; }
.client-sidebar-nav a:hover { background: #f2f7f8; color: #1f353e; }
.client-sidebar-nav a.active { background: #e0f8f5; color: #087e77; }
.client-sidebar-nav a.active .client-icon { color: #087e77; }
.client-sidebar-divider { height: 1px; margin: 12px 5px; background: #e7edef; }
.client-sidebar-nav a.client-signout { color: #bb3f4a; }
.client-drawer-backdrop { display: none; }

.client-content-card { min-width: 0; min-height: 560px; padding: 27px; background: #fff; border: 1px solid #dde7e9; border-radius: 20px; box-shadow: 0 10px 34px rgba(20,47,57,.06); }
.client-content-head { margin: 0 0 22px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.client-content-head h2 { margin: 0; font-size: 27px; letter-spacing: -.035em; }
.client-content-head p { margin: 5px 0 0; color: var(--client-muted); font-size: 13px; }
.client-content { min-width: 0; }
.client-loading { min-height: 390px; display: grid; place-items: center; color: var(--client-muted); text-align: center; }
.client-loading span { display: block; margin-top: 11px; font-weight: 700; }
.client-loading-orb { width: 38px; height: 38px; margin: auto; border: 4px solid #dce8ea; border-top-color: var(--client-cyan-dark); border-radius: 50%; animation: client-spin .8s linear infinite; }
@keyframes client-spin { to { transform: rotate(360deg); } }

.client-intro-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.client-action-card { min-height: 145px; padding: 21px; border: 1px solid #dfe8ea; border-radius: 17px; background: #f9fbfb; text-decoration: none; transition: transform .18s, border-color .18s, background .18s; }
.client-action-card:hover { transform: translateY(-2px); border-color: #b9d2d7; background: #fff; }
.client-action-icon { width: 43px; height: 43px; border-radius: 13px; display: grid; place-items: center; background: #dff7f4; color: #087e77; }
.client-action-card:nth-child(2) .client-action-icon { background: #fff3c3; color: #886a00; }
.client-action-card:nth-child(3) .client-action-icon { background: #e7edff; color: #4964a7; }
.client-action-card:nth-child(4) .client-action-icon { background: #ffe7ea; color: #b83d48; }
.client-action-card h3 { margin: 16px 0 5px; font-size: 17px; }
.client-action-card p { margin: 0; color: var(--client-muted); font-size: 13px; }
.client-note { margin-top: 15px; padding: 16px 18px; border-radius: 14px; background: #edf7f7; color: #3b5961; }
.client-note strong { color: #17313a; }
.client-help-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.client-help-card { padding: 22px; border: 1px solid #dfe8ea; border-radius: 17px; background: #f9fbfb; }
.client-help-card img { width: 66px; height: 66px; border-radius: 16px; object-fit: cover; }
.client-help-card h3 { margin: 15px 0 6px; }
.client-help-card p { color: var(--client-muted); }
.client-help-card .client-primary-button { text-decoration: none; }

/* Compatibilidade visual com o conteúdo legado carregado por AJAX */
.client-content .card-panel { margin: 0 !important; padding: 18px !important; border: 1px solid #dce7e9 !important; border-radius: 14px !important; background: #f2f7f8 !important; color: #3b555e !important; box-shadow: none !important; }
.client-content .card-panel .white-text { color: #3b555e !important; }
.client-content table { width: 100%; border-collapse: collapse; border: 1px solid #dfe7e9; border-radius: 14px; overflow: hidden; }
.client-content table thead { background: #f3f7f8; }
.client-content table th { padding: 13px 14px; color: #627780; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.client-content table td { padding: 13px 14px; border-top: 1px solid #e7edef; color: #33474f; vertical-align: middle; }
.client-content table tr:hover { background: #f7fafb !important; }
.client-content label { color: #71848b; }
.client-content .btn, .client-content .btn-large, .client-content .btn-floating, .modal .btn, .modal .btn-large, .modal .btn-floating { background: #0c2a34 !important; color: #fff !important; box-shadow: none !important; }
.client-content .btn, .client-content .btn-large, .modal .btn, .modal .btn-large { border-radius: 11px !important; text-transform: none; font-weight: 780; }
.client-content .btn-floating, .modal .btn-floating { display: inline-flex; align-items: center; justify-content: center; }
.client-content input[type=text], .client-content input[type=password], .client-content input[type=email], .client-content input[type=date], .client-content textarea, .modal input[type=text], .modal input[type=password], .modal input[type=email], .modal input[type=date], .modal textarea { min-height: 46px; padding: 9px 12px !important; border: 1px solid var(--client-line) !important; border-radius: 11px !important; background: #fafcfc !important; box-shadow: none !important; }
.client-content textarea, .modal textarea { min-height: 120px; }
.client-content .input-field label, .modal .input-field label { position: static !important; display: block; width: auto !important; margin-bottom: 7px; transform: none !important; color: #41565e !important; font-size: 13px !important; font-weight: 750; }
.client-content .input-field .prefix, .modal .input-field .prefix { display: none; }
.client-content .input-field, .modal .input-field { margin-top: 8px; }
.client-content select.browser-default { border: 1px solid var(--client-line); border-radius: 11px; }
.client-content .pagination li.active { background: var(--client-cyan-dark); }
.client-content blockquote, .modal blockquote { border-left-color: var(--client-cyan-dark); }
.client-content h4, .modal h4 { color: var(--client-text); font-size: 26px; letter-spacing: -.03em; }
.client-content .truncate { max-width: 100%; }
.client-invoice-agreement { display: block; margin-top: 9px; max-width: 760px; padding: 10px 12px; border: 1px solid #9dded8; border-radius: 10px; background: #eefaf9; color: #285b58; font-size: 12px; line-height: 1.45; white-space: normal; overflow: visible; text-overflow: clip; }
.client-invoice-agreement > span { display: block; margin-top: 3px; }
.client-invoice-agreement-title { display: inline-block; margin-bottom: 2px; color: #087c75; font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .055em; }
.client-invoice-agreement-original { color: #536f74; }
.client-invoice-agreement-description { margin-top: 6px !important; padding-top: 6px; border-top: 1px dashed #b7dad7; color: #315b59; }

/* Modais legados com acabamento novo */
.modal { border-radius: 20px 20px 0 0 !important; box-shadow: 0 30px 90px rgba(0,0,0,.35) !important; }
.modal:not(.bottom-sheet) { border-radius: 20px !important; }
.modal .modal-content { padding: 27px !important; }
.modal .modal-footer { min-height: 64px; padding: 10px 18px !important; border-top: 1px solid #e4ecee; background: #fff !important; }
.modal .modal-footer .btn-flat { min-height: 42px; padding: 0 15px; border-radius: 10px; color: #334b54; font-weight: 780; text-transform: none; }
.modal .modal-top { min-height: 58px; border-bottom: 1px solid #e4ecee; background: #fff; }
#dialog, #question, #login_ticket, #confirmacao_visual, #anexos_ticket { max-width: 560px; }
#question #yes { background: var(--client-yellow); color: #18272e; }
#question #no { background: #eef3f4; }

.client-mobile-nav { position: static; width: auto; height: auto; min-height: 0; line-height: normal; display: none; background: transparent; box-shadow: none; }

@media (max-width: 1050px) {
  .client-top-nav { display: none; }
  .client-brand { flex: 1; }
  .client-layout { grid-template-columns: 245px minmax(0,1fr); }
}

@media (max-width: 900px) {
  body.client-app-body { padding-bottom: 76px; }
  .client-login-page { grid-template-columns: 1fr; min-height: auto; }
  .client-login-visual { min-height: 48vh; padding: 42px 28px 45px; }
  .client-login-logo-link { margin-bottom: 18px; }
  .client-login-logo { width: 142px; }
  .client-login-visual h1 { font-size: clamp(46px, 13vw, 72px); }
  .client-login-copy { font-size: 15px; }
  .client-login-panel { padding: 20px 16px 35px; }
  .client-login-card { padding: 28px 23px; }

  .client-topbar { height: 64px; padding: 0 17px; }
  .client-brand { min-width: 0; }
  .client-brand img { width: 96px; }
  .client-brand span, .client-user-name { display: none; }
  .client-menu-button { display: grid; }
  .client-page-shell { width: min(calc(100% - 24px), var(--client-max)); padding-top: 20px; padding-bottom: 25px; }
  .client-welcome { min-height: 168px; padding: 27px; align-items: flex-start; flex-direction: column; }
  .client-date-badge { white-space: normal; }
  .client-layout { display: block; }
  .client-sidebar { position: fixed; z-index: 120; top: 0; bottom: 0; left: 0; width: min(330px, 88vw); border-radius: 0 20px 20px 0; transform: translateX(-105%); transition: transform .22s ease; overflow-y: auto; padding-top: 22px; }
  body.client-drawer-open .client-sidebar { transform: translateX(0); }
  .client-drawer-backdrop { position: fixed; z-index: 110; inset: 0; background: rgba(3,15,21,.64); backdrop-filter: blur(3px); }
  body.client-drawer-open .client-drawer-backdrop { display: block; }
  .client-content-card { min-height: 480px; padding: 20px 16px; }
  .client-content-head { align-items: flex-start; }
  .client-content table { display: block; overflow-x: auto; }
  .client-intro-grid, .client-help-grid { grid-template-columns: 1fr; }
  .client-mobile-nav { position: fixed; z-index: 100; left: 0; right: 0; bottom: 0; height: 69px; display: grid; grid-template-columns: repeat(4,1fr); background: #07141c; color: #b6cbd3; border-top: 1px solid rgba(255,255,255,.1); padding-bottom: env(safe-area-inset-bottom); }
  .client-mobile-nav a, .client-mobile-nav button { min-width: 0; min-height: 0; line-height: 1.15; border: 0; background: transparent; color: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10px; font-weight: 750; text-decoration: none; }
  .client-mobile-nav .client-icon { width: 21px; }
  .client-mobile-nav a.active { color: var(--client-yellow); }
}

@media (max-width: 580px) {
  .client-login-features { display: grid; }
  .client-login-card h2 { font-size: 33px; }
  .client-welcome h1 { font-size: 31px; }
  .client-content-head h2 { font-size: 23px; }
  .client-content-card { border-radius: 17px; }
  .client-content table th, .client-content table td { padding: 11px; }
  .modal { width: calc(100% - 18px) !important; max-height: 94% !important; }
  .modal.bottom-sheet { width: 100% !important; }
}

@media print {
  .client-topbar, .client-sidebar, .client-mobile-nav, .client-welcome { display: none !important; }
  body.client-app-body { background: #fff; padding: 0; }
  .client-page-shell { width: 100%; padding: 0; }
  .client-layout { display: block; }
  .client-content-card { border: 0; box-shadow: none; padding: 0; }
}


/* v52 - melhora de legibilidade da logo no topo */
.client-topbar { min-height: 86px; height: 86px; }
.client-brand { gap: 16px; min-width: 250px; }
.client-brand img { width: 176px; height: auto; display: block; filter: drop-shadow(0 2px 10px rgba(0,0,0,.24)); }
.client-brand span { padding-left: 14px; font-size: 15px; }

@media (max-width: 980px) {
  .client-topbar { height: 74px; }
  .client-brand img { width: 146px; }
}

@media (max-width: 720px) {
  .client-topbar { height: 68px; }
  .client-brand img { width: 132px; }
}


/* v53 - recolher/expandir menu lateral da Área do Cliente */
@media (min-width: 901px) {
  body.client-sidebar-collapsed .client-layout { grid-template-columns: 88px minmax(0,1fr); }
  body.client-sidebar-collapsed .client-sidebar { padding: 14px 10px; }
  body.client-sidebar-collapsed .client-sidebar-toggle { justify-content: center; padding: 9px; }
  body.client-sidebar-collapsed .client-sidebar-toggle-open { display: none; }
  body.client-sidebar-collapsed .client-sidebar-toggle-collapsed { display: block; }
  body.client-sidebar-collapsed .client-sidebar-toggle span { display: none; }
  body.client-sidebar-collapsed .client-sidebar-title,
  body.client-sidebar-collapsed .client-sidebar-divider { display: none; }
  body.client-sidebar-collapsed .client-sidebar-nav { gap: 8px; }
  body.client-sidebar-collapsed .client-sidebar-nav a { justify-content: center; padding: 10px 8px; }
  body.client-sidebar-collapsed .client-sidebar-nav a span { width: 0; opacity: 0; overflow: hidden; }
  body.client-sidebar-collapsed .client-sidebar-nav a .client-icon { width: 21px; margin: 0; }
}

@media (max-width: 900px) {
  .client-sidebar-toggle { display: none; }
}

/* v54 - conversa de tickets da Área do Cliente em formato de chat */
#visualizar_ticket .modal-content {
  padding: 0 !important;
  background: #eef3f4;
}
#visualizar_ticket .modal-top {
  position: relative;
  z-index: 20;
  box-shadow: 0 1px 0 rgba(7,20,28,.08);
}
#visualizar_ticket .modal-footer {
  position: relative;
  z-index: 20;
}
#visualizar_ticket #ticket {
  width: 100%;
  min-height: 100%;
}
.client-ticket-chat {
  width: min(1220px, 100%);
  min-height: 100%;
  margin: 0 auto;
  color: var(--client-text);
  background: #eef3f4;
}
.client-ticket-chat-head {
  position: sticky;
  z-index: 8;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  border-bottom: 1px solid #dce6e8;
  background: rgba(255,255,255,.97);
  box-shadow: 0 8px 28px rgba(7,20,28,.06);
  backdrop-filter: blur(14px);
}
.client-ticket-chat-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 15px;
}
.client-ticket-chat-number {
  flex: 0 0 auto;
  min-width: 72px;
  padding: 9px 11px;
  border-radius: 12px;
  background: #0a2530;
  color: #fff;
  text-align: center;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .02em;
}
.client-ticket-chat-kicker {
  margin: 0 0 2px;
  color: #71858c;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.client-ticket-chat-title h3 {
  margin: 0;
  color: #17272e;
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.12;
  letter-spacing: -.025em;
}
.client-ticket-chat-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}
.client-ticket-chat-meta span {
  padding: 4px 8px;
  border: 1px solid #e0e8ea;
  border-radius: 999px;
  background: #f8fafb;
  color: #667a82;
  font-size: 11px;
  font-weight: 700;
}
.client-ticket-chat-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.client-ticket-chat-action {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #d7e2e5;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #fff;
  color: #28424b;
  font: inherit;
  font-size: 12px;
  font-weight: 820;
  cursor: pointer;
}
.client-ticket-chat-action:hover { background: #f3f7f8; }
.client-ticket-chat-action.danger { border-color: #f1c6cb; color: #b23b48; background: #fff8f8; }
.client-ticket-chat-action i { font-size: 18px; }
.client-ticket-chat-statusbar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 10px 20px;
  border-bottom: 1px solid #dfe8ea;
  background: #f8fbfb;
  color: #63777f;
  font-size: 11px;
}
.client-ticket-chat-statusbar strong { color: #334b54; }
.client-ticket-chat-status,
.client-ticket-chat-progress {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 850;
}
.client-ticket-chat-status { background: #e7f8f1; color: #16744f; }
.client-ticket-chat-status.is-closed { background: #eef1f2; color: #637078; }
.client-ticket-chat-status i { width: 7px; height: 7px; border-radius: 50%; background: #29c781; }
.client-ticket-chat-status.is-closed i { background: #9ba8ad; }
.client-ticket-chat-progress { background: #fff8db; color: #806811; }
.client-ticket-chat-thread {
  min-height: 420px;
  padding: 28px clamp(18px, 5vw, 58px) 34px;
  display: flex;
  flex-direction: column;
  gap: 17px;
  background-color: #edf3f4;
  background-image: radial-gradient(rgba(37,74,84,.08) .7px, transparent .7px);
  background-size: 17px 17px;
}
.client-ticket-chat-message {
  width: 100%;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.client-ticket-chat-message.is-staff { flex-direction: row-reverse; }
.client-ticket-chat-avatar,
.client-ticket-chat-compose-avatar {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #10303b;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 3px 10px rgba(7,20,28,.12);
}
.client-ticket-chat-message.is-staff .client-ticket-chat-avatar {
  background: linear-gradient(135deg, #0d817b, #16b9ae);
}
.client-ticket-chat-bubble {
  position: relative;
  width: fit-content;
  max-width: min(76%, 820px);
  padding: 10px 12px 7px;
  border: 1px solid #dbe4e6;
  border-radius: 5px 17px 17px 17px;
  background: #fff;
  box-shadow: 0 5px 15px rgba(12,35,43,.07);
}
.client-ticket-chat-message.is-staff .client-ticket-chat-bubble {
  border-color: #bfe6df;
  border-radius: 17px 5px 17px 17px;
  background: #dff7f2;
}
.client-ticket-chat-author {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
}
.client-ticket-chat-author strong {
  min-width: 0;
  color: #1d3841;
  font-size: 12px;
  font-weight: 900;
  overflow-wrap: anywhere;
}
.client-ticket-chat-author span {
  padding: 2px 6px;
  border-radius: 999px;
  background: #edf2f3;
  color: #6a7b82;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.client-ticket-chat-message.is-staff .client-ticket-chat-author span {
  background: rgba(0,119,109,.10);
  color: #08776e;
}
.client-ticket-chat-text {
  color: #263b43;
  font-size: 14px;
  line-height: 1.52;
  overflow-wrap: anywhere;
}
.client-ticket-chat-subject {
  display: block;
  margin-bottom: 6px;
  color: #102f39;
}
.client-ticket-chat-bubble time {
  display: block;
  margin-top: 5px;
  color: #89999f;
  font-size: 9px;
  line-height: 1.2;
  text-align: right;
}
.client-ticket-chat-message.is-staff .client-ticket-chat-bubble time { color: #64847f; }
.client-ticket-chat-system {
  align-self: center;
  max-width: min(88%, 760px);
  padding: 7px 11px;
  border: 1px solid #d8e2e4;
  border-radius: 9px;
  background: rgba(255,255,255,.88);
  color: #52676f;
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
  box-shadow: 0 3px 12px rgba(13,37,45,.05);
}
.client-ticket-chat-system span { font-weight: 760; }
.client-ticket-chat-system time {
  display: block;
  margin-top: 2px;
  color: #93a0a5;
  font-size: 9px;
}
.client-ticket-chat-attachments {
  align-self: center;
  width: min(92%, 860px);
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid #d7e3e5;
  border-radius: 13px;
  background: rgba(255,255,255,.92);
}
.client-ticket-chat-attachments > strong {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #415861;
  font-size: 11px;
}
.client-ticket-chat-attachments > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}
.client-ticket-chat-attachments a {
  max-width: 100%;
  padding: 7px 9px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eef5f6;
  color: #27505a;
  font-size: 11px;
  font-weight: 760;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.client-ticket-chat-attachments a:hover { background: #e1eeee; }
.client-ticket-chat-compose {
  position: sticky;
  z-index: 7;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 15px clamp(18px, 5vw, 58px) 16px;
  border-top: 1px solid #d5e1e4;
  background: rgba(248,251,251,.97);
  box-shadow: 0 -10px 28px rgba(7,20,28,.07);
  backdrop-filter: blur(14px);
}
.client-ticket-chat-compose-box {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 9px;
  padding: 7px 8px 7px 12px;
  border: 1px solid #cedcdf;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(9,34,42,.06);
}
.client-ticket-chat-compose textarea {
  min-width: 0;
  flex: 1;
  min-height: 54px;
  max-height: 160px;
  margin: 0 !important;
  padding: 9px 2px !important;
  border: 0 !important;
  background: transparent !important;
  color: #20363e;
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
  resize: vertical;
  outline: none;
  box-shadow: none !important;
}
.client-ticket-chat-compose textarea:focus { border: 0 !important; box-shadow: none !important; }
.client-ticket-chat-compose-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.client-ticket-chat-attach,
.client-ticket-chat-send {
  min-height: 39px;
  padding: 8px 11px;
  border: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}
.client-ticket-chat-attach { background: #edf3f4; color: #50666e; }
.client-ticket-chat-send { background: #0d817b; color: #fff; }
.client-ticket-chat-attach:hover { background: #e2ebed; }
.client-ticket-chat-send:hover { background: #096f69; }
.client-ticket-chat-attach i,
.client-ticket-chat-send i { font-size: 18px; }
.client-ticket-chat-closed-note {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px clamp(18px, 5vw, 58px);
  border-top: 1px solid #d8e2e4;
  background: #f7f9fa;
  color: #51666e;
}
.client-ticket-chat-closed-note > i { font-size: 24px; color: #84959b; }
.client-ticket-chat-closed-note > div { min-width: 0; flex: 1; display: grid; gap: 2px; }
.client-ticket-chat-closed-note strong { color: #334b54; }
.client-ticket-chat-closed-note span { font-size: 11px; }
.client-ticket-chat-closed-note button {
  padding: 9px 12px;
  border: 1px solid #cad8db;
  border-radius: 9px;
  background: #fff;
  color: #2f5059;
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

@media (max-width: 760px) {
  .client-ticket-chat-head { align-items: flex-start; padding: 14px; }
  .client-ticket-chat-title { align-items: flex-start; gap: 10px; }
  .client-ticket-chat-number { min-width: 60px; padding: 8px; font-size: 13px; }
  .client-ticket-chat-title h3 { font-size: 20px; }
  .client-ticket-chat-meta { display: none; }
  .client-ticket-chat-actions { gap: 5px; }
  .client-ticket-chat-action { width: 39px; min-height: 39px; padding: 0; }
  .client-ticket-chat-action span { display: none; }
  .client-ticket-chat-statusbar { justify-content: flex-start; padding: 9px 14px; overflow-x: auto; flex-wrap: nowrap; }
  .client-ticket-chat-statusbar > span { flex: 0 0 auto; white-space: nowrap; }
  .client-ticket-chat-thread { padding: 18px 10px 24px; gap: 13px; }
  .client-ticket-chat-avatar { width: 31px; height: 31px; font-size: 11px; }
  .client-ticket-chat-bubble { max-width: calc(100% - 48px); padding: 9px 10px 6px; }
  .client-ticket-chat-text { font-size: 13px; }
  .client-ticket-chat-compose { padding: 10px; }
  .client-ticket-chat-compose-avatar { display: none; }
  .client-ticket-chat-compose-box { padding-left: 10px; }
  .client-ticket-chat-attach { width: 38px; padding: 0; }
  .client-ticket-chat-attach span { display: none; }
  .client-ticket-chat-send span { display: none; }
  .client-ticket-chat-send { width: 40px; padding: 0; border-radius: 50%; }
  .client-ticket-chat-closed-note { padding: 12px 14px; }
}

/* v55 - refinamentos exclusivos do modal de Ticket / Área do Cliente
   Mantido totalmente escopado em #visualizar_ticket para não interferir em outras telas. */
#visualizar_ticket {
  overflow: hidden !important;
}
#visualizar_ticket .modal-footer {
  display: none !important;
}
#visualizar_ticket.modal.modal-fixed-footer .modal-content {
  position: absolute;
  top: 58px;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}
#visualizar_ticket .modal-top {
  height: 58px;
  min-height: 58px;
}
#visualizar_ticket .client-ticket-chat {
  min-height: 100%;
}
#visualizar_ticket .client-ticket-chat-thread {
  overflow-x: hidden;
}

@media (max-width: 760px) {
  #visualizar_ticket {
    width: calc(100% - 10px) !important;
    max-height: calc(100% - 10px) !important;
    height: calc(100% - 10px) !important;
    border-radius: 22px !important;
  }
  #visualizar_ticket .modal-top {
    height: 58px;
    min-height: 58px;
  }
  #visualizar_ticket.modal.modal-fixed-footer .modal-content {
    top: 58px;
  }
  #visualizar_ticket .client-ticket-chat-head {
    position: sticky;
    top: 0;
    gap: 8px;
    padding: 10px 12px;
  }
  #visualizar_ticket .client-ticket-chat-title {
    min-width: 0;
    flex: 1 1 auto;
    gap: 9px;
  }
  #visualizar_ticket .client-ticket-chat-number {
    min-width: 52px;
    padding: 7px 8px;
    border-radius: 10px;
    font-size: 12px;
  }
  #visualizar_ticket .client-ticket-chat-kicker {
    display: none;
  }
  #visualizar_ticket .client-ticket-chat-title h3 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 16px;
    line-height: 1.18;
  }
  #visualizar_ticket .client-ticket-chat-actions {
    flex: 0 0 auto;
  }
  #visualizar_ticket .client-ticket-chat-action {
    width: 35px;
    min-height: 35px;
    border-radius: 9px;
  }
  #visualizar_ticket .client-ticket-chat-statusbar {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px 8px;
    padding: 8px 10px;
    overflow-x: hidden;
    white-space: normal;
  }
  #visualizar_ticket .client-ticket-chat-statusbar > span {
    flex: 0 1 auto;
    white-space: normal;
  }
  #visualizar_ticket .client-ticket-chat-status,
  #visualizar_ticket .client-ticket-chat-progress {
    white-space: nowrap !important;
  }
  #visualizar_ticket .client-ticket-chat-thread {
    min-height: 260px;
    padding: 14px 9px 18px;
    gap: 11px;
  }
  #visualizar_ticket .client-ticket-chat-message {
    gap: 7px;
  }
  #visualizar_ticket .client-ticket-chat-avatar {
    width: 29px;
    height: 29px;
    font-size: 10px;
  }
  #visualizar_ticket .client-ticket-chat-bubble {
    max-width: calc(100% - 40px);
  }
  #visualizar_ticket .client-ticket-chat-author {
    flex-wrap: wrap;
    gap: 4px 6px;
  }
  #visualizar_ticket .client-ticket-chat-compose {
    position: sticky;
    bottom: 0;
    padding: 8px;
  }
  #visualizar_ticket .client-ticket-chat-compose-box {
    min-height: 58px;
    border-radius: 16px;
  }
  #visualizar_ticket .client-ticket-chat-compose textarea {
    min-height: 46px;
    max-height: 120px;
    padding: 7px 2px !important;
  }
}

@media (max-width: 430px) {
  #visualizar_ticket {
    width: 100% !important;
    max-height: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
  }
  #visualizar_ticket .client-ticket-chat-head {
    padding: 9px 10px;
  }
  #visualizar_ticket .client-ticket-chat-number {
    min-width: 48px;
  }
  #visualizar_ticket .client-ticket-chat-title h3 {
    font-size: 15px;
  }
  #visualizar_ticket .client-ticket-chat-statusbar {
    font-size: 10px;
  }
  #visualizar_ticket .client-ticket-chat-bubble {
    max-width: calc(100% - 36px);
  }
  #visualizar_ticket .client-ticket-chat-text {
    font-size: 12.5px;
  }
}


/* v56 - feedback imediato ao enviar resposta no Ticket.
   Totalmente restrito ao modal #visualizar_ticket para não alterar outras áreas. */
#visualizar_ticket .client-ticket-processing {
  position: absolute;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(7, 20, 28, .62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .08s ease, visibility .08s ease;
}
#visualizar_ticket .client-ticket-processing.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}
#visualizar_ticket .client-ticket-processing-card {
  width: min(430px, calc(100vw - 42px));
  padding: 28px 26px 24px;
  border-radius: 20px;
  background: #fff;
  color: var(--client-text);
  text-align: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .30);
}
#visualizar_ticket .client-ticket-processing-card h4 {
  margin: 14px 0 7px;
  font-size: 22px;
}
#visualizar_ticket .client-ticket-processing-card p {
  margin: 0;
  color: #40565f;
  font-size: 14px;
  line-height: 1.45;
}
#visualizar_ticket .client-ticket-processing-card small {
  display: block;
  margin-top: 9px;
  color: #7a8c93;
  font-size: 12px;
}
#visualizar_ticket .client-ticket-processing-spinner {
  width: 46px;
  height: 46px;
  margin: 0 auto;
  border: 4px solid #dbe8e8;
  border-top-color: #2f8f88;
  border-radius: 50%;
  animation: client-ticket-processing-spin .7s linear infinite;
}
@keyframes client-ticket-processing-spin {
  to { transform: rotate(360deg); }
}
@media (max-width: 430px) {
  #visualizar_ticket .client-ticket-processing { padding: 16px; }
  #visualizar_ticket .client-ticket-processing-card {
    width: 100%;
    padding: 24px 18px 21px;
    border-radius: 18px;
  }
  #visualizar_ticket .client-ticket-processing-card h4 { font-size: 20px; }
}

/* v57 - atualização silenciosa do chat de Ticket / Área do Cliente.
   Tudo escopado em #visualizar_ticket para não interferir nas demais áreas. */
#visualizar_ticket .client-ticket-chat-refresh.is-loading {
  cursor: wait;
  opacity: .72;
}
#visualizar_ticket .client-ticket-chat-refresh.is-loading i {
  animation: client-ticket-refresh-spin .7s linear infinite;
}
@keyframes client-ticket-refresh-spin {
  to { transform: rotate(360deg); }
}

#visualizar_ticket .client-ticket-refresh-notice {
  position: absolute;
  inset: 0;
  z-index: 85;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(7, 20, 28, .16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .12s ease, visibility .12s ease;
}
#visualizar_ticket .client-ticket-refresh-notice.is-visible {
  opacity: 1;
  visibility: visible;
}
#visualizar_ticket .client-ticket-refresh-notice-card {
  width: min(390px, calc(100vw - 42px));
  min-height: 82px;
  padding: 16px 18px;
  border: 1px solid #d8e7e7;
  border-radius: 17px;
  display: flex;
  align-items: center;
  gap: 13px;
  background: #fff;
  color: #28424b;
  box-shadow: 0 18px 55px rgba(7, 20, 28, .22);
}
#visualizar_ticket .client-ticket-refresh-notice-card > i {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e3f6f1;
  color: #168174;
  font-size: 23px;
}
#visualizar_ticket .client-ticket-refresh-notice-card > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}
#visualizar_ticket .client-ticket-refresh-notice-card strong {
  color: #18343d;
  font-size: 14px;
  font-weight: 900;
}
#visualizar_ticket .client-ticket-refresh-notice-card span {
  color: #667b82;
  font-size: 12px;
  line-height: 1.4;
}
#visualizar_ticket .client-ticket-refresh-notice.is-error .client-ticket-refresh-notice-card {
  border-color: #f0cfd3;
}
#visualizar_ticket .client-ticket-refresh-notice.is-error .client-ticket-refresh-notice-card > i {
  background: #fff0f1;
  color: #b33c48;
}

@media (max-width: 760px) {
  #visualizar_ticket .client-ticket-chat-refresh {
    width: 35px;
    min-width: 35px;
    padding: 0;
  }
  #visualizar_ticket .client-ticket-chat-refresh span {
    display: none !important;
  }
}

@media (max-width: 430px) {
  #visualizar_ticket .client-ticket-refresh-notice { padding: 14px; }
  #visualizar_ticket .client-ticket-refresh-notice-card {
    width: 100%;
    min-height: 76px;
    padding: 14px 15px;
    border-radius: 15px;
  }
}

/* v58 - cabeçalho persistente do chat e fechamento apenas da janela.
   Regras totalmente restritas ao Ticket da Área do Cliente. */
#visualizar_ticket .client-ticket-chat-head {
  position: sticky;
  top: 0;
  z-index: 24;
  display: block;
  padding: 0;
  background: rgba(255,255,255,.985);
}
#visualizar_ticket .client-ticket-chat-head-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px 12px;
}
#visualizar_ticket .client-ticket-chat-head .client-ticket-chat-statusbar {
  justify-content: flex-start;
  padding: 8px 24px 10px;
  border-top: 1px solid #edf2f3;
  border-bottom: 1px solid #dce6e8;
  background: rgba(248,251,251,.98);
}
#visualizar_ticket .client-ticket-chat-close-modal {
  color: #40575f;
  border-color: #d7e2e5;
  background: #fff;
}
#visualizar_ticket .client-ticket-chat-close-modal:hover {
  background: #f3f7f8;
}

@media (max-width: 760px) {
  #visualizar_ticket .client-ticket-chat-head {
    padding: 0;
  }
  #visualizar_ticket .client-ticket-chat-head-main {
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px 8px;
  }
  #visualizar_ticket .client-ticket-chat-head .client-ticket-chat-statusbar {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 5px 8px;
    padding: 7px 12px 8px;
    overflow: hidden;
  }
}

@media (max-width: 430px) {
  #visualizar_ticket .client-ticket-chat-head-main {
    padding: 9px 10px 7px;
  }
  #visualizar_ticket .client-ticket-chat-head .client-ticket-chat-statusbar {
    padding: 6px 10px 7px;
  }
  #visualizar_ticket .client-ticket-chat-actions {
    gap: 4px;
  }
  #visualizar_ticket .client-ticket-chat-action {
    width: 34px;
    min-height: 34px;
  }
}
