:root{--nav:#101b2f;--nav2:#0b1424;--cyan:#12c8d8;--cyan2:#08b7c7;--bg:#f1f5f9;--text:#172033;--muted:#6f7c8f;--line:#e4eaf1;--violet:#5c55ff;--danger:#ff5a32}*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,Segoe UI,Arial,sans-serif;color:var(--text);background:var(--bg)}body{font-size:13px}.app-shell{min-height:100vh}.sidebar{position:fixed;left:0;top:0;bottom:0;width:235px;background:radial-gradient(circle at 65% 15%,rgba(32,78,123,.28),transparent 28%),linear-gradient(180deg,var(--nav),var(--nav2));color:#fff;z-index:30;display:flex;flex-direction:column;border-right:1px solid rgba(255,255,255,.05);box-shadow:8px 0 28px rgba(12,25,45,.08)}.sidebar:after{content:"";position:absolute;right:0;top:89px;bottom:330px;width:6px;background:linear-gradient(#0ee4ee,#08bccc);box-shadow:0 0 16px rgba(13,219,231,.45)}.brand-wrap{height:88px;padding:19px 20px;display:flex;align-items:center;gap:11px;border-bottom:1px solid rgba(255,255,255,.06)}.brand-symbol{width:43px;height:43px;border:2px solid #dfe7f1;border-radius:13px;display:grid;place-items:center;font-size:24px;transform:rotate(45deg)}.brand-symbol i{transform:rotate(-45deg)}.brand-copy{display:flex;flex-direction:column;line-height:1}.brand-copy strong{font-size:15px;letter-spacing:.7px}.brand-copy span{font-size:7px;letter-spacing:2.4px;margin-top:5px;color:#9cadc1}.sidebar-scroll{overflow:auto;padding:15px 10px 100px}.sidebar-scroll::-webkit-scrollbar{width:4px}.sidebar-scroll::-webkit-scrollbar-thumb{background:#27384f;border-radius:10px}.menu-label{font-size:10px;letter-spacing:.7px;color:#708098;margin:12px 7px 8px}.side-nav{display:flex;flex-direction:column;gap:2px}.side-link{position:relative;display:flex;align-items:center;gap:10px;padding:8px 12px;color:#d9e1ec;text-decoration:none;border-radius:7px;font-size:11px;transition:.18s}.side-link i{width:18px;text-align:center;color:#dfe7f2}.side-link:hover{color:#fff;background:rgba(255,255,255,.06);transform:translateX(2px)}.side-link.active{background:linear-gradient(90deg,#14c8d7,#0cb8c8);color:#fff;box-shadow:0 6px 16px rgba(7,194,207,.22)}.side-link.nested{padding-left:31px;font-size:10px}.profile-box{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:center;gap:9px;padding:14px 14px;background:#0b1526;border-top:1px solid rgba(255,255,255,.08)}.avatar{width:35px;height:35px;background:linear-gradient(135deg,#7454ed,#a778ff);border-radius:50%;display:grid;place-items:center;font-weight:700}.profile-copy{min-width:0;flex:1;display:flex;flex-direction:column}.profile-copy strong{font-size:11px}.profile-copy span{font-size:9px;color:#8190a6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.main-area{margin-left:235px;min-height:100vh}.topbar{height:74px;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 26px;border-bottom:1px solid #e7ebf0}.page-heading h1{font-size:17px;margin:0 0 4px;font-weight:800}.page-heading p{margin:0;color:#727f90;font-size:11px}.top-actions{display:flex;align-items:center;gap:10px}.top-search{width:260px;height:42px;display:flex;align-items:center;gap:8px;padding:0 13px;border:1px solid #dce3eb;border-radius:10px;background:#fff}.top-search i{color:#778496}.top-search input{border:0;outline:none;width:100%;font-size:11px;color:#647386}.icon-btn{width:34px;height:34px;border:0;background:transparent;color:#445264;border-radius:8px;position:relative}.icon-btn:hover{background:#f2f5f8}.icon-btn.notify span{position:absolute;right:0;top:-3px;width:17px;height:17px;background:#ee554e;color:#fff;border-radius:50%;font-size:9px;display:grid;place-items:center;border:2px solid #fff}.workspace{padding:22px}.content-card,.tracking-card{background:#fff;border:1px solid #edf1f5;border-radius:16px;box-shadow:0 8px 26px rgba(35,51,74,.04)}.content-card{padding:22px 22px 16px}.card-titlebar,.tracking-head{display:flex;align-items:center;justify-content:space-between;gap:18px}.card-titlebar h2,.tracking-head h3{margin:0;font-size:14px;font-weight:800}.card-titlebar p,.tracking-head p{margin:5px 0 0;color:#6f7d90;font-size:11px}.title-actions{display:flex;gap:10px}.btn-soft,.btn-cyan{border:0;border-radius:9px;padding:10px 15px;font-size:11px;font-weight:700;display:inline-flex;align-items:center;gap:7px;transition:.18s}.btn-soft{background:#f2f5f8;color:#475669;border:1px solid #e0e6ed}.btn-soft:hover{background:#eaf0f5}.btn-cyan{background:linear-gradient(180deg,#13d1df,#06b9c9);color:#fff;box-shadow:0 7px 15px rgba(9,194,207,.18)}.btn-cyan:hover{filter:brightness(.98);transform:translateY(-1px)}.advanced-filter{display:none;grid-template-columns:250px 220px auto;gap:10px;padding:14px 0 2px}.advanced-filter.show{display:grid}.advanced-filter .form-control,.advanced-filter .form-select{height:38px;border-color:#dce3ea;font-size:11px}.table-wrap{overflow:auto;margin-top:18px}.crm-table{width:100%;border-collapse:separate;border-spacing:0;min-width:1200px}.crm-table thead th{font-size:10px;letter-spacing:.2px;color:#5f6d80;background:#f5f7fa;padding:13px 10px;border-bottom:1px solid #dfe6ed;white-space:nowrap}.crm-table tbody td{padding:11px 10px;border-bottom:1px solid #edf1f4;vertical-align:middle;font-size:12px}.crm-table tbody tr:hover{background:#fbfdff}.client-link{color:#5757ff;font-weight:700;cursor:pointer}.client-link:hover{text-decoration:underline}.logo-chip{width:30px;height:30px;border-radius:6px;background:linear-gradient(145deg,#0f4d3c,#062d24);display:grid;place-items:center;color:#fff;font-size:7px;font-weight:800;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)}.status-pill{display:inline-flex;align-items:center;justify-content:center;padding:5px 10px;border-radius:999px;font-size:10px;font-weight:700}.s-aguardando_aprovacao{background:#fff0bd;color:#946400}.s-aprovado,.s-concluido{background:#d8f7e3;color:#2b9a5a}.s-em_logistica,.s-agendado{background:#dceaff;color:#3d66a7}.s-em_transporte{background:#ebe1ff;color:#7351b9}.s-em_instalacao{background:#d7f6f3;color:#16877f}.s-garantia_aberta{background:#ffe0e1;color:#b73b43}.s-cancelado{background:#edf0f3;color:#66717d}.action-wrap{display:flex;gap:8px}.action-edit,.action-delete{width:30px;height:25px;border:0;border-radius:12px;display:grid;place-items:center;font-size:11px}.action-edit{background:#edf2f7;color:#607086}.action-delete{background:#ff5a2f;color:#fff}.cyan-line{height:5px;background:#0ee0e6;border-radius:999px;margin-top:0}.table-footer{display:flex;justify-content:space-between;align-items:center;padding-top:17px;color:#778496;font-size:11px}.pagination-mini{display:flex;gap:7px}.pagination-mini button{width:36px;height:36px;border:1px solid #e1e7ee;background:#f4f7fa;border-radius:10px;color:#667789}.pagination-mini button.active{background:#10bdce;color:#fff;border-color:#10bdce}.tracking-card{margin-top:18px;padding:18px}.kanban{display:grid;grid-template-columns:repeat(5,minmax(230px,1fr));gap:12px;overflow:auto;margin-top:15px;padding-bottom:4px}.kanban.compact{grid-template-columns:repeat(5,180px)}.kanban-col{background:#f5f8fb;border:1px solid #edf1f5;border-radius:13px;padding:11px;min-height:190px}.kanban-col-head{display:flex;justify-content:space-between;align-items:center;font-size:11px;margin-bottom:9px}.kanban-card{background:#fff;border:1px solid #e8edf2;border-radius:10px;padding:10px;margin-bottom:8px;cursor:pointer;box-shadow:0 4px 10px rgba(35,50,70,.04)}.kanban-card:hover{transform:translateY(-1px)}.small-muted{font-size:10px;color:#8190a0}.offcanvas{--bs-offcanvas-width:min(860px,96vw)}.offcanvas-header{border-bottom:1px solid #edf1f5}.eyebrow{font-size:9px;color:#0fb8c8;letter-spacing:1.1px;font-weight:800;margin-bottom:4px}.detail-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:14px}.detail-tab{border:1px solid #e1e7ee;background:#f7f9fb;color:#576678;padding:7px 10px;border-radius:8px;font-size:10px}.detail-tab.active{background:#10bdce;color:#fff;border-color:#10bdce}.detail-grid{display:grid;grid-template-columns:1.4fr .9fr;gap:14px}.detail-box{background:#fff;border:1px solid #e7edf2;border-radius:13px;padding:14px}.detail-box h6{font-size:12px;font-weight:800}.timeline{position:relative;padding-left:23px}.timeline:before{content:"";position:absolute;left:7px;top:5px;bottom:5px;width:2px;background:#d8e2eb}.timeline-item{position:relative;margin-bottom:17px}.timeline-item:before{content:"";position:absolute;left:-20px;top:4px;width:10px;height:10px;border-radius:50%;background:#10bdce;box-shadow:0 0 0 4px #dbf8fa}.crm-modal{border-radius:16px;overflow:hidden;border:0}.crm-modal .modal-header{background:#fff;border-bottom:1px solid #edf1f5}.crm-modal .modal-body{background:#f6f8fb}.form-section{background:#fff;border:1px solid #e6ecf2;border-radius:13px;padding:16px;margin-bottom:14px}.form-section h6{font-size:11px;text-transform:uppercase;letter-spacing:.7px;color:#657487;margin-bottom:12px}.form-section label{font-size:10px;color:#637184;margin-bottom:5px}.form-control,.form-select{border-radius:8px;border-color:#dce4eb;font-size:12px}.form-control:focus,.form-select:focus{border-color:#10bdce;box-shadow:0 0 0 .2rem rgba(16,189,206,.12)}footer{text-align:center;color:#9aa6b5;font-size:9px;padding:60px 0 20px}@media(max-width:1050px){.sidebar{width:205px}.main-area{margin-left:205px}.top-search{width:210px}.workspace{padding:15px}}@media(max-width:820px){.sidebar{transform:translateX(-100%)}.main-area{margin-left:0}.topbar{padding:0 14px}.top-search{display:none}.workspace{padding:10px}.content-card{padding:14px}.card-titlebar{align-items:flex-start;flex-direction:column}.title-actions{width:100%}.title-actions button{flex:1}.tracking-card{display:none}.detail-grid{grid-template-columns:1fr}.advanced-filter{grid-template-columns:1fr}}


/* Fotos dos chamados / suporte */
.ticket-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:12px}
.ticket-photo-card{position:relative;border:1px solid #e3eaf1;border-radius:14px;background:#fff;padding:7px;box-shadow:0 7px 20px rgba(21,38,56,.06);overflow:hidden}
.ticket-photo-card.pending{background:#f8fbfd}
.ticket-photo-thumb{display:block;width:100%;height:92px;border:0;padding:0;background:#eef4f7;border-radius:10px;overflow:hidden;cursor:zoom-in}
.ticket-doc-thumb{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-decoration:none;color:#0b6f82;background:#eefcff;cursor:pointer;font-size:11px;font-weight:800}.ticket-doc-thumb i{font-size:28px;color:#0894a8}.ticket-doc-thumb:hover{color:#064d5b;background:#ddf8fc}
.ticket-photo-card img{display:block;width:100%;height:92px;object-fit:cover;border-radius:10px}
.ticket-photo-thumb img{transition:transform .22s ease}
.ticket-photo-thumb:hover img{transform:scale(1.06)}
.photo-caption{font-size:11px;line-height:1.25;color:#607180;margin-top:7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.photo-remove{position:absolute;top:11px;right:11px;width:28px;height:28px;border:0;border-radius:9px;background:rgba(21,38,56,.78);color:#fff;display:grid;place-items:center;z-index:2;box-shadow:0 4px 12px rgba(0,0,0,.16)}
.photo-remove:hover{background:#d9534f}
.photo-count{font-size:11px;font-weight:700;color:#0db8d4;background:#e8fafe;border-radius:999px;padding:5px 9px}
.support-photo-upload{border-top:1px dashed #d7e1e8;padding-top:13px}
.photo-viewer-modal{border:0;border-radius:18px;overflow:hidden;box-shadow:0 30px 80px rgba(8,24,38,.32)}
.photo-viewer-modal .modal-body{padding:10px;background:#0b1620;text-align:center;max-height:82vh}
.photo-viewer-modal img{max-width:100%;max-height:78vh;object-fit:contain;border-radius:10px}
@media(max-width:640px){.ticket-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ticket-photo-card img,.ticket-photo-thumb{height:105px}}
.commercial-reference-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.commercial-reference-item{background:#f7fafc;border:1px solid #e7edf3;border-radius:12px;padding:11px 12px}.commercial-reference-item small{display:block;color:#8793a2;font-size:11px;text-transform:uppercase;letter-spacing:.04em;margin-bottom:3px}.commercial-reference-item strong{display:block;color:#243447;font-size:13px;word-break:break-word}@media(max-width:991px){.commercial-reference-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:575px){.commercial-reference-grid{grid-template-columns:1fr}}

/* Miniaturas das fotos diretamente no histórico do chamado */
.timeline-item.history-with-media{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;min-height:54px}
.history-copy{min-width:0;flex:1}
.history-photo-strip{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px;max-width:250px;margin-left:auto}
.history-photo-thumb{width:58px;height:58px;padding:0;border:2px solid #fff;border-radius:10px;background:#f3f7fa;overflow:hidden;box-shadow:0 3px 10px rgba(19,42,63,.15);cursor:pointer;transition:.18s}
.history-photo-thumb:hover{transform:translateY(-2px) scale(1.03);box-shadow:0 6px 14px rgba(19,42,63,.20);border-color:#14c8d7}
.history-photo-thumb img{width:100%;height:100%;display:block;object-fit:cover}
.history-doc-thumb{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;text-decoration:none;background:linear-gradient(180deg,#eefcff,#f8fbff);color:#087f91;font-weight:900;font-size:9px;letter-spacing:.03em}
.history-doc-thumb i{font-size:22px;line-height:1;color:#0793aa}
.history-doc-thumb:hover{color:#064d5b;background:#ddf8fc}
@media(max-width:640px){.timeline-item.history-with-media{flex-direction:column}.history-photo-strip{justify-content:flex-start;margin-left:0;max-width:100%;padding-top:5px}.history-photo-thumb{width:64px;height:64px}}

/* Página Instalação */
.installation-row{cursor:pointer;transition:background .16s ease,box-shadow .16s ease}.installation-row:hover{background:#f6fcfd!important;box-shadow:inset 4px 0 0 var(--cyan)}.installation-row:focus{outline:2px solid rgba(18,200,216,.35);outline-offset:-2px}.installation-modal-header{align-items:center}.installation-head-actions{display:flex;align-items:center;gap:12px}.installation-view-footer{justify-content:space-between}.installation-summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.installation-summary-grid .detail-box b{font-size:10px;color:#738194;text-transform:uppercase;letter-spacing:.04em}.installation-summary-grid .detail-box b+div{font-size:13px;color:#1f2b3a;margin-top:3px}.installation-table{min-width:1350px}@media(max-width:820px){.installation-summary-grid{grid-template-columns:1fr}.installation-head-actions .btn-cyan{padding:9px 11px}.installation-view-footer{position:sticky;bottom:0;background:#fff;z-index:2}}


/* CRM cadastro forms as right-side drawers */
.crm-side-form.modal {
  --bs-modal-margin: 0;
  padding-right: 0 !important;
}
.crm-side-form .modal-dialog {
  width: min(720px, 94vw);
  max-width: min(720px, 94vw);
  min-height: 100%;
  height: 100%;
  margin: 0 0 0 auto;
  display: flex;
  align-items: stretch;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.22,.61,.36,1);
}
.crm-side-form.modal.show .modal-dialog {
  transform: translateX(0);
}
.crm-side-form.modal.fade .modal-dialog {
  transform: translateX(100%);
}
.crm-side-form.modal.show.fade .modal-dialog {
  transform: translateX(0);
}
.crm-side-form .modal-content {
  height: 100%;
  max-height: 100%;
  border: 0;
  border-radius: 20px 0 0 20px;
  box-shadow: -22px 0 55px rgba(15, 31, 47, .20);
  overflow: hidden;
}
.crm-side-form .modal-header {
  flex: 0 0 auto;
  padding: 20px 22px 16px;
  border-bottom: 1px solid rgba(15, 31, 47, .08);
  background: #fff;
}
.crm-side-form .modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 20px 22px 28px;
  background: #f7f9fb;
}
.crm-side-form .modal-footer {
  flex: 0 0 auto;
  position: sticky;
  bottom: 0;
  z-index: 4;
  padding: 14px 22px;
  background: rgba(255,255,255,.98);
  border-top: 1px solid rgba(15, 31, 47, .08);
  box-shadow: 0 -8px 24px rgba(15,31,47,.06);
}
.crm-side-form .form-section {
  background: #fff;
  border: 1px solid rgba(15, 31, 47, .07);
  border-radius: 15px;
  padding: 17px;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(15,31,47,.045);
}
.crm-side-form .form-section h6 {
  margin-bottom: 14px;
  font-weight: 800;
  color: #173149;
}
.crm-side-form .form-control,
.crm-side-form .form-select,
.crm-side-form .input-group-text {
  border-radius: 10px;
}
.crm-side-form .btn-close {
  margin-left: auto;
}
@media (max-width: 767.98px) {
  .crm-side-form .modal-dialog {
    width: 100%;
    max-width: 100%;
  }
  .crm-side-form .modal-content {
    border-radius: 0;
  }
  .crm-side-form .modal-header,
  .crm-side-form .modal-body,
  .crm-side-form .modal-footer {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Suporte técnico e notificações */
.sp-aberto{background:#e8f9fc!important;color:#087f91!important}.sp-escalado{background:#fff0dc!important;color:#9b5b00!important}.sp-resolvido{background:#e4f7ec!important;color:#1d7b47!important}.support-row{cursor:pointer;transition:.16s}.support-row:hover{background:#f6fcfd!important;box-shadow:inset 4px 0 0 var(--cyan)}.notification-panel{position:fixed;right:22px;top:64px;width:min(390px,calc(100vw - 24px));max-height:470px;overflow:auto;background:#fff;border:1px solid #e4eaf1;border-radius:14px;box-shadow:0 20px 55px rgba(17,34,51,.22);z-index:2000;display:none}.notification-panel.show{display:block}.notification-head{position:sticky;top:0;background:#fff;padding:13px 14px;border-bottom:1px solid #edf1f5;display:flex;justify-content:space-between;align-items:center;z-index:2}.notification-head button{border:0;background:transparent;color:#0baebe;font-size:11px;font-weight:700}.notification-list{display:grid}.notification-item{text-align:left;border:0;border-bottom:1px solid #edf1f5;background:#fff;padding:12px 14px;display:grid;gap:4px;color:#223247}.notification-item.unread{background:#f1fcfd}.notification-item b{font-size:12px}.notification-item span{font-size:11px;color:#617185}.notification-item small{font-size:9px;color:#93a0af}.notification-item:hover{background:#f7fbfc}.support-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}@media(max-width:900px){.support-summary{grid-template-columns:repeat(2,1fr)}}@media(max-width:520px){.support-summary{grid-template-columns:1fr}}
.support-summary .stat-mini{background:#fff;border:1px solid #e8edf3;border-radius:14px;padding:16px 18px;box-shadow:0 8px 22px rgba(32,51,74,.05)}.support-summary .stat-mini small{display:block;color:#8b96a5;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.support-summary .stat-mini strong{font-size:25px;color:#172535}
.sp-em_atendimento{background:#e6edff!important;color:#315fc7!important}.sp-aguardando_cliente{background:#fff1d8!important;color:#a56600!important}.sp-aguardando_retorno{background:#f3e8ff!important;color:#7b45ad!important}.sp-enviado_assistencia{background:#e0f2fe!important;color:#0369a1!important}.sp-atendimento_finalizado{background:#dcfce7!important;color:#166534!important}.sp-cancelado{background:#eef1f4!important;color:#66717d!important}
.crm-readonly-disabled{opacity:.45!important;cursor:not-allowed!important;filter:grayscale(.25)}
.crm-chat-widget{position:fixed;right:22px;bottom:22px;z-index:1080}.crm-chat-toggle{width:52px;height:52px;border:0;border-radius:50%;background:#12c8d8;color:#fff;display:grid;place-items:center;box-shadow:0 16px 38px rgba(8,174,189,.28);font-size:22px;position:relative}.crm-chat-toggle span{position:absolute;right:-3px;top:-4px;min-width:21px;height:21px;border-radius:999px;background:#16233a;border:2px solid #fff;color:#fff;font-size:10px;font-weight:900;display:grid;place-items:center}.crm-chat-popover{position:absolute;right:0;bottom:64px;width:290px;max-height:390px;background:#fff;border:1px solid #dfe7f1;border-radius:14px;box-shadow:0 22px 55px rgba(29,43,62,.18);overflow:hidden;display:none}.crm-chat-widget.open .crm-chat-popover{display:block}.crm-chat-head{height:48px;display:flex;align-items:center;justify-content:space-between;padding:0 14px;border-bottom:1px solid #edf1f6}.crm-chat-head strong{font-size:13px;color:#13213a}.crm-chat-head a{font-size:11px;font-weight:800;color:#08aebd;text-decoration:none}.crm-chat-list{max-height:330px;overflow:auto;padding:8px}.crm-chat-user{display:flex;align-items:center;gap:10px;padding:9px;border-radius:11px;text-decoration:none;color:#18263a}.crm-chat-user:hover{background:#f3f8fb}.crm-chat-avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#e7eef8;color:#475a72;font-size:10px;font-weight:900;overflow:hidden;position:relative}.crm-chat-avatar img{width:100%;height:100%;object-fit:cover}.crm-chat-dot{width:9px;height:9px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 0 rgba(34,197,94,.55);animation:crmPulse 1.25s infinite;position:absolute;right:0;bottom:1px;border:2px solid #fff}.crm-chat-user b{display:block;font-size:12px}.crm-chat-user small{display:block;color:#728199;font-size:10px}.crm-chat-empty{padding:18px;text-align:center;color:#78879a;font-size:12px}@keyframes crmPulse{70%{box-shadow:0 0 0 8px rgba(34,197,94,0)}100%{box-shadow:0 0 0 0 rgba(34,197,94,0)}}
.support-media-preview{display:flex;gap:8px;flex-wrap:wrap}.support-preview-chip{display:flex;align-items:center;gap:7px;padding:8px 10px;border:1px solid #dfe7ee;border-radius:10px;background:#f8fafc;font-size:10px;color:#506073;max-width:240px}.support-preview-chip span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.support-media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:10px}.support-media-card{position:relative;border:1px solid #e2e8ef;border-radius:12px;background:#f9fbfd;padding:8px;min-width:0}.support-media-thumb{border:0;padding:0;background:transparent;width:100%;height:92px;border-radius:9px;overflow:hidden;display:block}.support-media-thumb img{width:100%;height:100%;object-fit:cover;display:block}.support-media-video{width:100%;height:92px;object-fit:cover;border-radius:9px;background:#101827}.support-media-audio{width:100%;height:34px}.support-audio-icon{height:54px;border-radius:9px;background:#edf8fa;display:grid;place-items:center;color:#10aebd;font-size:24px;margin-bottom:6px}.support-doc-card{height:92px;border-radius:9px;background:#fff4f2;color:#d85642;text-decoration:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;font-size:10px;font-weight:700}.support-doc-card i{font-size:25px}.support-media-name{font-size:9px;color:#617185;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:6px}.support-media-remove{position:absolute;right:4px;top:4px;width:24px;height:24px;border:0;border-radius:50%;background:rgba(20,31,44,.78);color:#fff;display:grid;place-items:center;font-size:10px}.support-upload-box{border-top:1px dashed #dfe6ed;padding-top:12px}.support-image-viewer{position:fixed;inset:0;background:rgba(10,18,28,.88);display:none;align-items:center;justify-content:center;z-index:3000;padding:30px}.support-image-viewer.show{display:flex}.support-image-viewer img{max-width:92vw;max-height:88vh;object-fit:contain;border-radius:10px;box-shadow:0 20px 60px rgba(0,0,0,.4)}.support-image-close{position:absolute;right:26px;top:22px;width:42px;height:42px;border:0;border-radius:50%;background:#fff;color:#223247;font-size:18px}.support-timeline .timeline-copy{min-width:0;flex:1}.support-timeline .timeline-copy b{font-size:11px}.support-timeline .timeline-copy div{font-size:10px;color:#536274;margin-top:2px;white-space:pre-wrap}.support-timeline .timeline-copy small{font-size:9px;color:#8d99a8}.history-media-chip{width:42px;height:42px;border:1px solid #dfe7ee;border-radius:9px;background:#f3f7fa;display:grid;place-items:center;color:#10aebd}.history-photo-thumb{border:0;padding:0;background:transparent}.history-photo-thumb img{width:100%;height:100%;object-fit:cover;border-radius:8px}
@media(max-width:640px){.support-media-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.support-image-viewer{padding:14px}.support-image-close{right:12px;top:12px}}

/* CORREÇÃO: formulários em sidebar direita com rolagem completa */
.crm-side-form .modal-dialog {
  height: 100%;
  max-height: 100%;
}
.crm-side-form .modal-content {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  max-height: 100%;
}
.crm-side-form .modal-content > form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
.crm-side-form .modal-header {
  flex: 0 0 auto;
}
.crm-side-form .modal-body {
  flex: 1 1 0%;
  min-height: 0;
  overflow-y: auto !important;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #b9c7d3 #eef3f7;
  padding-bottom: 34px;
}
.crm-side-form .modal-body::-webkit-scrollbar {
  width: 8px;
}
.crm-side-form .modal-body::-webkit-scrollbar-track {
  background: #eef3f7;
  border-radius: 10px;
}
.crm-side-form .modal-body::-webkit-scrollbar-thumb {
  background: #b9c7d3;
  border-radius: 10px;
  border: 2px solid #eef3f7;
}
.crm-side-form .modal-body::-webkit-scrollbar-thumb:hover {
  background: #8fa4b5;
}
.crm-side-form .modal-footer {
  flex: 0 0 auto;
  position: relative;
  bottom: auto;
}

/* O Suporte possui formulários longos; mantém cabeçalho e ações sempre visíveis */
#supportModal .modal-content > form,
#designateModal .modal-content > form {
  min-height: 0;
}
#supportModal .modal-body,
#designateModal .modal-body {
  scroll-behavior: smooth;
}

/* =========================================================
   KRATOSTECH CRM · SIDEBAR CLOUD DOCK
   Visual azul em degradê, menu ativo ciano e submenus roxos.
   Mantém a estrutura e todos os links existentes do sistema.
   ========================================================= */
:root{
  --dock-navy-1:#071321;
  --dock-navy-2:#0a1b34;
  --dock-navy-3:#10294f;
  --dock-cyan:#13d8e7;
  --dock-cyan-2:#08bccc;
  --dock-purple:#7653f4;
  --dock-purple-2:#9a73ff;
  --dock-purple-deep:#362760;
  --dock-text:#edf7ff;
  --dock-muted:#91a9c5;
}

.sidebar{
  width:270px;
  overflow:hidden;
  background:
    radial-gradient(circle at 22% 3%,rgba(19,216,231,.18),transparent 23%),
    radial-gradient(circle at 100% 72%,rgba(118,83,244,.23),transparent 30%),
    linear-gradient(165deg,var(--dock-navy-1) 0%,var(--dock-navy-2) 48%,var(--dock-navy-3) 100%);
  border-right:1px solid rgba(126,218,255,.11);
  box-shadow:18px 0 44px rgba(4,18,38,.18);
}
.sidebar::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(120deg,rgba(255,255,255,.035),transparent 32%),
    radial-gradient(circle at 70% 18%,rgba(84,142,255,.10),transparent 19%);
  mix-blend-mode:screen;
}
.sidebar:after{
  right:0;
  top:104px;
  bottom:auto;
  width:4px;
  height:74px;
  border-radius:5px 0 0 5px;
  background:linear-gradient(180deg,#5ff8ff,var(--dock-cyan));
  box-shadow:0 0 16px rgba(19,216,231,.85),0 0 34px rgba(19,216,231,.35);
}

.brand-wrap{
  height:94px;
  padding:18px 18px;
  gap:12px;
  position:relative;
  z-index:1;
  border-bottom:1px solid rgba(255,255,255,.07);
  background:linear-gradient(180deg,rgba(255,255,255,.025),rgba(255,255,255,0));
}
.brand-symbol{
  width:46px;
  height:46px;
  border:1px solid rgba(113,231,255,.38);
  border-radius:15px;
  color:#e8fbff;
  background:linear-gradient(145deg,rgba(19,216,231,.20),rgba(118,83,244,.15));
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.05),0 8px 22px rgba(4,14,31,.30),0 0 18px rgba(19,216,231,.08);
}
.brand-copy strong{font-size:14px;letter-spacing:1px;color:#f7fbff}
.brand-copy span{font-size:7px;letter-spacing:2.8px;color:#7fa1c4;margin-top:6px}

.sidebar-scroll{
  position:relative;
  z-index:1;
  padding:14px 12px 116px;
  scrollbar-width:thin;
  scrollbar-color:rgba(95,183,222,.25) transparent;
}
.sidebar-scroll::-webkit-scrollbar{width:5px}
.sidebar-scroll::-webkit-scrollbar-track{background:transparent}
.sidebar-scroll::-webkit-scrollbar-thumb{background:rgba(99,178,218,.22);border-radius:20px}
.sidebar-scroll::-webkit-scrollbar-thumb:hover{background:rgba(99,178,218,.36)}

.menu-label{
  margin:15px 9px 9px;
  color:#6f8eae;
  font-size:9px;
  font-weight:800;
  letter-spacing:1.25px;
}
.side-nav{gap:5px}
.side-link{
  min-height:43px;
  padding:10px 13px;
  gap:11px;
  border-radius:13px;
  border:1px solid transparent;
  color:#b8cbe0;
  font-size:11px;
  font-weight:600;
  letter-spacing:.05px;
  transition:transform .18s ease,background .18s ease,color .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.side-link i{
  width:21px;
  font-size:14px;
  color:#b9d6eb;
  transition:.18s ease;
}
.side-link:hover{
  color:#fff;
  transform:translateX(3px);
  background:linear-gradient(90deg,rgba(255,255,255,.075),rgba(255,255,255,.025));
  border-color:rgba(143,214,255,.08);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.015);
}
.side-link:hover i{color:#5aeaf4}
.side-link.active{
  color:#041a25;
  background:linear-gradient(105deg,#38ecf3 0%,#13d7e5 45%,#09bccd 100%);
  border-color:rgba(137,252,255,.64);
  box-shadow:0 9px 24px rgba(9,188,205,.27),inset 0 1px 0 rgba(255,255,255,.55),0 0 18px rgba(19,216,231,.13);
  transform:translateX(1px);
  font-weight:800;
}
.side-link.active i{color:#041a25}
.side-link.active::before{
  content:"";
  position:absolute;
  left:8px;
  top:50%;
  width:4px;
  height:4px;
  border-radius:50%;
  background:#fff;
  transform:translateY(-50%);
  opacity:.82;
}
.side-link.active i{margin-left:5px}

/* Submenus existentes (Compras > Papelaria / Adesivos / Multimídia) */
.side-link.nested{
  margin-left:18px;
  width:calc(100% - 18px);
  min-height:38px;
  padding:8px 12px 8px 18px;
  border-radius:10px;
  color:#ddd5ff;
  font-size:10px;
  background:linear-gradient(90deg,rgba(118,83,244,.19),rgba(81,58,142,.10));
  border-color:rgba(153,116,255,.08);
}
.side-link.nested::after{
  content:"";
  position:absolute;
  left:-10px;
  top:-8px;
  bottom:-8px;
  width:1px;
  background:linear-gradient(180deg,rgba(169,143,255,.46),rgba(111,82,214,.10));
}
.side-link.nested i{font-size:12px;color:#b7a2ff}
.side-link.nested:hover{
  color:#fff;
  background:linear-gradient(90deg,rgba(118,83,244,.34),rgba(87,59,163,.18));
  border-color:rgba(167,136,255,.16);
}
.side-link.nested.active{
  color:#041a25;
  background:linear-gradient(105deg,#38ecf3 0%,#13d7e5 45%,#09bccd 100%);
  border-color:rgba(137,252,255,.64);
}
.side-link.nested.active i{color:#041a25}
.side-link.nested.active::after{background:linear-gradient(180deg,#a989ff,#7454ed)}

.profile-box{
  left:12px;
  right:12px;
  bottom:12px;
  padding:12px;
  border-radius:18px;
  background:
    radial-gradient(circle at 86% 5%,rgba(151,108,255,.28),transparent 32%),
    linear-gradient(145deg,rgba(57,44,104,.94),rgba(28,35,73,.96));
  border:1px solid rgba(161,128,255,.15);
  box-shadow:0 16px 32px rgba(3,10,25,.30),inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter:blur(10px);
}
.profile-box .avatar{
  width:38px;
  height:38px;
  background:linear-gradient(135deg,var(--dock-purple),var(--dock-purple-2));
  box-shadow:0 6px 15px rgba(107,70,218,.30);
}
.profile-copy strong{color:#f7f3ff;font-size:10px}
.profile-copy span{color:#9d9fc0}
.profile-box>i{color:#c8bbff;font-size:15px}

.main-area{margin-left:270px}

@media(max-width:1050px){
  .sidebar{width:235px}
  .main-area{margin-left:235px}
}
@media(max-width:820px){
  .sidebar{width:270px;transform:translateX(-102%);transition:transform .24s ease}
  .sidebar.show{transform:translateX(0)}
  .main-area{margin-left:0}
}

/* ==========================================================
   SIDEBAR CLOUD DOCK — AZUL / CIANO / ROXO
   Mantém menus e submenus originais do CRM
   ========================================================== */
:root{
  --dock-bg-1:#050b18;
  --dock-bg-2:#0a1830;
  --dock-bg-3:#11284a;
  --dock-cyan:#19d5e6;
  --dock-cyan-2:#2ef0ff;
  --dock-purple:#7652ff;
  --dock-purple-2:#9b6fff;
  --dock-text:#eef6ff;
  --dock-muted:#98aac2;
}
.sidebar{
  width:255px;
  background:
    radial-gradient(circle at 14% 8%,rgba(25,213,230,.15),transparent 26%),
    radial-gradient(circle at 85% 78%,rgba(118,82,255,.18),transparent 32%),
    linear-gradient(180deg,var(--dock-bg-1) 0%,var(--dock-bg-2) 48%,var(--dock-bg-3) 100%) !important;
  border-right:1px solid rgba(255,255,255,.06);
  box-shadow:18px 0 45px rgba(0,12,30,.20);
  overflow:hidden;
}
.sidebar::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(115deg,rgba(255,255,255,.025),transparent 26%,rgba(25,213,230,.025) 55%,transparent 78%);
}
.sidebar:after{
  width:3px !important;
  top:0 !important;
  bottom:0 !important;
  background:linear-gradient(180deg,transparent 3%,rgba(25,213,230,.38) 18%,var(--dock-cyan) 48%,rgba(25,213,230,.38) 82%,transparent 97%) !important;
  box-shadow:0 0 22px rgba(25,213,230,.55) !important;
}
.brand-wrap{
  height:92px;
  padding:20px 18px;
  background:rgba(255,255,255,.018);
  border-bottom:1px solid rgba(255,255,255,.065);
  backdrop-filter:blur(14px);
}
.brand-symbol{
  width:45px;height:45px;
  border-color:rgba(230,247,255,.88);
  border-radius:14px;
  box-shadow:0 0 0 5px rgba(25,213,230,.035),0 8px 22px rgba(0,0,0,.22);
}
.brand-copy strong{font-size:15px;letter-spacing:1px;color:#fff}.brand-copy span{color:#79b7d2}
.sidebar-scroll{padding:14px 12px 112px}
.menu-label{margin:16px 8px 9px;color:#6f8bab;font-size:9px;letter-spacing:1.25px;font-weight:800}
.side-nav{gap:5px}
.side-link{
  min-height:42px;
  padding:9px 12px;
  border-radius:12px;
  font-size:11px;
  font-weight:650;
  color:#c9d7e8;
  border:1px solid transparent;
  transition:background .2s ease,color .2s ease,transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.side-link i{color:#d6e3f1;transition:color .2s ease}.side-link span{flex:1}
.side-link:hover{
  color:#fff;
  background:linear-gradient(90deg,rgba(255,255,255,.075),rgba(255,255,255,.028));
  border-color:rgba(255,255,255,.055);
  transform:translateX(2px);
}
.side-link.active{
  color:#061520 !important;
  background:linear-gradient(100deg,var(--dock-cyan) 0%,#19c7dd 62%,#28dcec 100%) !important;
  border-color:rgba(255,255,255,.30);
  box-shadow:0 10px 24px rgba(19,205,224,.26),inset 0 1px 0 rgba(255,255,255,.32);
}
.side-link.active i{color:#061520 !important}
.side-group{margin:2px 0 1px}
.side-toggle{border:0;width:100%;text-align:left}
.side-toggle.active-parent{
  color:#fff;
  background:linear-gradient(90deg,rgba(25,213,230,.13),rgba(118,82,255,.10));
  border:1px solid rgba(25,213,230,.10);
}
.side-chevron{width:auto!important;margin-left:auto;font-size:9px;transition:transform .22s ease;color:#91a9c1!important}
.side-group.open .side-chevron{transform:rotate(180deg)}
.side-submenu{
  display:none;
  margin:7px 3px 7px 18px;
  padding:8px;
  position:relative;
  border-radius:15px;
  background:linear-gradient(150deg,rgba(118,82,255,.28),rgba(72,45,145,.23));
  border:1px solid rgba(154,111,255,.18);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 10px 24px rgba(20,11,60,.14);
}
.side-submenu:before{
  content:"";
  position:absolute;
  left:-10px;top:8px;bottom:8px;width:2px;border-radius:99px;
  background:linear-gradient(180deg,var(--dock-purple-2),rgba(155,111,255,.12));
  box-shadow:0 0 10px rgba(118,82,255,.40);
}
.side-submenu.show{display:flex;flex-direction:column;gap:3px;animation:dockSub .18s ease}
@keyframes dockSub{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
.sub-link{
  display:flex;align-items:center;gap:9px;
  padding:8px 10px;border-radius:10px;text-decoration:none;
  color:#e6ddff;font-size:10px;font-weight:600;
  transition:.18s ease;
}
.sub-link i{width:16px;text-align:center;color:#c6b6ff}.sub-link:hover{background:rgba(255,255,255,.075);color:#fff;transform:translateX(2px)}
.sub-link.active{background:linear-gradient(90deg,rgba(155,111,255,.36),rgba(118,82,255,.24));color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.07)}
.profile-box{
  left:10px;right:10px;bottom:10px;
  padding:12px;border-radius:17px;
  background:linear-gradient(145deg,rgba(33,55,92,.92),rgba(60,37,116,.82));
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 12px 30px rgba(0,0,0,.25),inset 0 1px 0 rgba(255,255,255,.045);
  backdrop-filter:blur(14px);
}
.avatar{background:linear-gradient(135deg,var(--dock-cyan),var(--dock-purple));box-shadow:0 6px 16px rgba(23,198,217,.22)}
.profile-copy strong{color:#fff}.profile-copy span{color:#9eb0c9}
.main-area{margin-left:255px}
@media(max-width:1050px){.sidebar{width:225px}.main-area{margin-left:225px}}
@media(max-width:820px){.sidebar{width:270px}.main-area{margin-left:0}}

/* =========================================================
   SIDEBAR · CLOUD DOCK LAYOUT WITH ICON RAIL
   Inspired by the reference image, preserving all CRM menus.
   ========================================================= */
.dock-sidebar{
  width:318px;
  display:flex;
  flex-direction:row;
  align-items:stretch;
  padding:12px;
  gap:14px;
  overflow:hidden;
  background:
    radial-gradient(circle at 18% 6%, rgba(93, 241, 255, .15), transparent 16%),
    radial-gradient(circle at 82% 88%, rgba(135, 89, 255, .18), transparent 22%),
    linear-gradient(180deg, #070d1a 0%, #0a1430 47%, #0f2048 100%);
  box-shadow: 18px 0 48px rgba(4,14,32,.24);
  transition:width .32s cubic-bezier(.22,.61,.36,1), box-shadow .32s ease;
}
.dock-sidebar::before{display:none}
.dock-sidebar::after{display:none}
.dock-rail{
  width:54px;
  min-width:54px;
  border-radius:20px;
  background:rgba(255,255,255,.92);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  align-items:center;
  padding:12px 8px;
  box-shadow: inset 0 0 0 1px rgba(11,30,55,.05), 0 10px 22px rgba(0,0,0,.16);
}
.rail-top,.rail-bottom{display:flex;flex-direction:column;align-items:center;gap:12px;width:100%}
.rail-logo,
.rail-btn{
  width:38px;height:38px;border-radius:13px;border:0;text-decoration:none;
  display:grid;place-items:center;
  color:#6c7588;background:#fff;position:relative;transition:.2s ease;
  box-shadow:0 4px 10px rgba(27,37,59,.08);
}
.rail-logo{font-size:21px;color:#7d4cff;background:linear-gradient(180deg,#fff,#f4f0ff);overflow:hidden}
.rail-logo img{width:31px;height:31px;object-fit:contain;display:block}
.rail-expand-btn{display:none;color:#0f2140;background:#edf8fb}
.rail-btn:hover{transform:translateY(-1px);color:#232d45;background:#f7f8fc}
.rail-btn.active{background:#12102c;color:#fff;box-shadow:0 10px 18px rgba(0,0,0,.22)}
.rail-btn.active::before{
  content:"";position:absolute;left:-14px;top:7px;bottom:7px;width:4px;border-radius:10px;
  background:linear-gradient(180deg,#9b73ff,#7b4dff);box-shadow:0 0 14px rgba(123,77,255,.5);
}
.dock-panel{
  flex:1;
  min-width:0;
  border-radius:24px;
  background:linear-gradient(180deg,#0b0718 0%, #0c0720 100%);
  color:#edf7ff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05), 0 14px 28px rgba(0,0,0,.18);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  position:relative;
  transition:opacity .24s ease, transform .32s cubic-bezier(.22,.61,.36,1), width .32s cubic-bezier(.22,.61,.36,1), flex-basis .32s cubic-bezier(.22,.61,.36,1), margin-left .32s ease;
}
.dock-panel::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(circle at 22% 14%, rgba(138, 95, 255, .20), transparent 22%),
             radial-gradient(circle at 82% 18%, rgba(90, 223, 255, .08), transparent 18%);
}
.dock-panel-head{position:relative;z-index:1;padding:14px 16px 12px;border-bottom:1px solid rgba(255,255,255,.08)}
.dock-head-top{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.dock-back-btn,.dock-gear-btn{
  width:30px;height:30px;border-radius:50%;border:0;color:#dfe6ff;background:rgba(255,255,255,.08);
  display:grid;place-items:center;box-shadow:inset 0 0 0 1px rgba(255,255,255,.05)
}
.dock-head-title{flex:1;display:flex;align-items:center;min-width:0}
.dock-head-title img{width:148px;max-width:100%;height:auto;display:block;object-fit:contain}
.dock-search-wrap{
  display:flex;align-items:center;gap:8px;height:38px;padding:0 12px;border-radius:12px;
  background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08)
}
.dock-search-wrap i{color:#dfe6ff;font-size:14px}
.dock-search-wrap input{flex:1;border:0;outline:none;background:transparent;color:#fff;font-size:12px}
.dock-search-wrap input::placeholder{color:#adb8cf}
.dock-shortcut{font-size:10px;padding:3px 6px;border-radius:8px;background:rgba(255,255,255,.08);color:#d4dcf3;border:1px solid rgba(255,255,255,.05)}
.dock-scroll{position:relative;z-index:1;padding:12px 14px 18px;overflow:auto}
.dock-scroll::-webkit-scrollbar{width:6px}.dock-scroll::-webkit-scrollbar-thumb{background:#2c2744;border-radius:99px}
.dock-nav{display:flex;flex-direction:column;gap:5px}
.dock-section-title{margin:6px 4px 8px;color:#c8d2e9;font-size:11px;font-weight:800}
.dock-section-title.small-gap{margin-top:16px}
.dock-link{
  min-height:42px;padding:10px 12px;border-radius:12px;color:#dde8ff;font-size:13px;
  background:transparent;border:1px solid transparent;position:relative
}
.dock-link i:first-child{color:#f0f5ff;opacity:.95}
.dock-link:hover{background:rgba(255,255,255,.05);color:#fff;transform:none}
.dock-link.active,.dock-parent.active-parent{
  background:linear-gradient(90deg,#9b65ff 0%, #7f4dff 100%);
  color:#fff;box-shadow:0 10px 18px rgba(127,77,255,.22);
}
.dock-link.active i:first-child,.dock-parent.active-parent i{color:#fff}
.dock-group{display:block}
.dock-submenu{
  display:none;position:relative;margin:8px 0 2px 16px;padding:8px 0 0 18px;background:transparent;border:0
}
.dock-submenu.show{display:block}
.dock-submenu::before{
  content:"";position:absolute;left:6px;top:2px;bottom:12px;width:1.5px;border-radius:99px;
  background:linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.10));
}
.dock-submenu .sub-link{
  position:relative;display:flex;align-items:center;gap:10px;min-height:38px;padding:8px 12px 8px 14px;
  color:#d1d8ed;text-decoration:none;border-radius:12px;font-size:12px;font-weight:600
}
.dock-submenu .sub-link::before{
  content:"";position:absolute;left:-12px;top:50%;width:12px;height:12px;transform:translateY(-50%);
  border-left:1.5px solid rgba(255,255,255,.45);border-bottom:1.5px solid rgba(255,255,255,.45);
  border-bottom-left-radius:10px;
}
.dock-submenu .sub-link:hover{background:rgba(255,255,255,.045);color:#fff}
.dock-submenu .sub-link.active{
  background:rgba(255,255,255,.08);color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.06)
}
.dock-submenu .sub-link i{font-size:13px;color:#edf5ff}
.side-chevron{margin-left:auto;transition:transform .2s ease}
.dock-group.open .side-chevron{transform:rotate(180deg)}
.dock-promo-card{
  position:relative;margin-top:18px;padding:20px 16px 16px;border-radius:22px;
  background:linear-gradient(180deg, rgba(77,33,138,.82), rgba(54,29,105,.9));
  border:1px solid rgba(255,255,255,.06);color:#fff;overflow:hidden
}
.dock-promo-card::before{content:"";position:absolute;right:-20px;top:-20px;width:120px;height:120px;border-radius:50%;background:rgba(255,255,255,.06)}
.dock-rocket{font-size:52px;line-height:1;margin-bottom:14px}
.dock-promo-more{position:absolute;right:12px;top:12px;width:30px;height:30px;border-radius:50%;border:0;background:rgba(255,255,255,.08);color:#fff}
.dock-promo-card h4{margin:0 0 8px;font-size:14px;font-weight:800}
.dock-promo-card p{margin:0 0 14px;font-size:11px;line-height:1.45;color:#dadff4}
.dock-promo-btn{
  width:100%;height:40px;border-radius:12px;border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.08);color:#fff;font-weight:700
}
.main-area{margin-left:318px}
.main-area{transition:margin-left .32s cubic-bezier(.22,.61,.36,1)}
.topbar{margin-left:0}
@media(max-width:991px){
  .dock-sidebar{transform:translateX(-100%);transition:transform .25s ease}
  .dock-sidebar.show{transform:translateX(0)}
  .main-area{margin-left:0}
}

/* Separadores ciano entre departamentos do menu */
.dock-menu-separator{
  height:1px;
  width:100%;
  margin:14px 0 8px;
  border:0;
  background:linear-gradient(90deg, transparent 0%, rgba(19,216,231,.92) 16%, rgba(19,216,231,.92) 84%, transparent 100%);
  box-shadow:0 0 8px rgba(19,216,231,.28);
}
.dock-nav > .dock-menu-separator:first-child{margin-top:2px;}
.dock-menu-separator + .dock-section-title{margin-top:0;}

/* Administrativo */
.dock-online-link .dock-online-badge{margin-left:auto;min-width:22px;height:22px;padding:0 7px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:#20d76b;color:#fff;font-size:11px;font-weight:800;box-shadow:0 0 0 3px rgba(32,215,107,.08),0 5px 12px rgba(32,215,107,.18)}

/* =========================================================
   SIDEBAR COMPACTO · mais itens visíveis sem perder o estilo
   ========================================================= */
.dock-panel-head{padding:10px 14px 9px}
.dock-head-top{margin-bottom:8px}
.dock-back-btn,.dock-gear-btn{width:27px;height:27px}
.dock-head-title{font-size:14px}
.dock-search-wrap{height:34px;padding:0 10px}
.dock-scroll{padding:8px 12px 14px}
.dock-nav{gap:2px}
.dock-section-title{margin:4px 4px 5px;font-size:10px;line-height:1.1}
.dock-section-title.small-gap{margin-top:10px}
.dock-menu-separator{margin:7px 0 6px!important}
.dock-menu-separator + .dock-section-title{margin-top:0}
.dock-link{
  min-height:34px;
  padding:7px 10px;
  border-radius:10px;
  font-size:11px;
  gap:8px;
}
.dock-link > i:first-child{font-size:12px}
.dock-submenu{
  margin:4px 0 1px 14px;
  padding:4px 0 1px 15px;
}
.dock-submenu::before{left:5px;top:0;bottom:8px}
.dock-submenu .sub-link{
  min-height:30px;
  padding:5px 9px 5px 12px;
  border-radius:9px;
  font-size:10px;
  gap:7px;
}
.dock-submenu .sub-link::before{left:-10px;width:10px;height:9px}
.dock-submenu .sub-link i{font-size:11px}
.side-chevron{font-size:10px}
.dock-promo-card{margin-top:12px;padding:14px 13px 12px;border-radius:18px}
.dock-rocket{font-size:38px;margin-bottom:8px}
.dock-promo-card h4{font-size:12px;margin-bottom:5px}
.dock-promo-card p{font-size:9px;line-height:1.35;margin-bottom:10px}
.dock-promo-btn{height:34px;font-size:10px}
.dock-rail{padding:9px 7px}
.rail-top,.rail-bottom{gap:8px}
.rail-logo,.rail-btn{width:34px;height:34px;border-radius:11px}

body.sidebar-collapsed .dock-sidebar{
  width:78px;
  gap:0;
  padding-right:12px;
  box-shadow:10px 0 28px rgba(4,14,32,.18);
}
body.sidebar-collapsed .dock-panel{
  flex:0 0 0;
  width:0;
  opacity:0;
  transform:translateX(-18px);
  pointer-events:none;
  margin-left:-14px;
}
body.sidebar-collapsed .rail-expand-btn{display:grid}
body.sidebar-collapsed .main-area{margin-left:78px}
@media(max-width:991px){
  body.sidebar-collapsed .dock-sidebar{
    width:78px;
    transform:translateX(0);
  }
  body.sidebar-collapsed .main-area{margin-left:78px}
}

/* Login */
.login-body{
  min-height:100vh;
  background:
    radial-gradient(circle at 18% 18%, rgba(18,200,216,.20), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(92,85,255,.18), transparent 28%),
    linear-gradient(135deg,#071221 0%,#0d1b31 48%,#eef5f8 48%,#eef5f8 100%);
  display:grid;
  place-items:center;
  padding:28px;
}
.login-shell{
  width:min(1040px,100%);
  min-height:640px;
  display:grid;
  grid-template-columns:minmax(360px,430px) 1fr;
  background:#fff;
  border-radius:24px;
  overflow:hidden;
  box-shadow:0 30px 80px rgba(7,18,33,.25);
}
.login-panel{padding:42px;display:flex;flex-direction:column;justify-content:center}
.login-brand{display:flex;align-items:center;gap:12px;margin-bottom:58px}
.login-mark{width:48px;height:48px;border-radius:15px;background:linear-gradient(180deg,#13d1df,#06b9c9);display:grid;place-items:center;color:#fff;font-size:24px;box-shadow:0 12px 22px rgba(9,194,207,.24)}
.login-brand strong{display:block;font-size:17px;font-weight:900;color:#172033}
.login-brand span{display:block;font-size:10px;color:#78869a;text-transform:uppercase;letter-spacing:.18em;margin-top:3px}
.login-copy h1{font-size:34px;line-height:1.05;margin:0 0 12px;color:#142033;font-weight:900}
.login-copy p:not(.eyebrow){margin:0 0 24px;color:#69778a;line-height:1.55;font-size:13px}
.login-alert{display:flex;align-items:center;gap:9px;background:#fff2f0;color:#b33c2d;border:1px solid #ffd4cd;border-radius:12px;padding:12px 13px;margin-bottom:16px;font-size:12px;font-weight:700}
.login-form{display:grid;gap:14px}
.login-form label{position:relative;display:block}
.login-form label span{display:block;font-size:11px;font-weight:800;color:#4e5e72;margin-bottom:7px}
.login-form label i{position:absolute;left:14px;bottom:13px;color:#7d8ca0;font-size:15px}
.login-form input{width:100%;height:48px;border:1px solid #dbe4ec;border-radius:13px;padding:0 14px 0 40px;font-size:13px;outline:none;transition:.18s;background:#fbfdff;color:#172033}
.login-form input:focus{border-color:#10bdce;box-shadow:0 0 0 4px rgba(16,189,206,.12);background:#fff}
.login-form button{height:50px;border:0;border-radius:14px;margin-top:4px;background:linear-gradient(180deg,#13d1df,#06b9c9);color:#fff;font-weight:900;display:flex;align-items:center;justify-content:center;gap:8px;box-shadow:0 12px 24px rgba(9,194,207,.22);cursor:pointer}
.login-form button:hover{filter:brightness(.98);transform:translateY(-1px)}
.login-hint{margin:18px 0 0;color:#7d8998;font-size:11px;line-height:1.45}
.login-hint strong{color:#223045}
.login-visual{position:relative;background:linear-gradient(145deg,#101b2f,#0b1424);overflow:hidden}
.login-visual::before{content:"";position:absolute;inset:0;background:linear-gradient(120deg,rgba(18,200,216,.22),transparent 42%),radial-gradient(circle at 70% 35%,rgba(255,255,255,.10),transparent 22%)}
.login-visual::after{content:"";position:absolute;right:-80px;bottom:-90px;width:360px;height:360px;border-radius:50%;border:70px solid rgba(18,200,216,.18)}
.login-status-card{position:absolute;left:46px;right:46px;top:70px;padding:28px;border:1px solid rgba(255,255,255,.12);border-radius:22px;background:rgba(255,255,255,.08);backdrop-filter:blur(12px);color:#fff;box-shadow:0 24px 50px rgba(0,0,0,.22)}
.login-status-card span{display:block;color:#33ddea;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.14em;margin-bottom:10px}
.login-status-card strong{display:block;font-size:31px;line-height:1.05;margin-bottom:12px}
.login-status-card small{display:block;color:#d8e1ed;font-size:13px;line-height:1.55;max-width:340px}
.login-metric{position:absolute;width:128px;height:128px;border-radius:22px;background:#fff;display:flex;flex-direction:column;justify-content:center;align-items:center;box-shadow:0 22px 44px rgba(0,0,0,.22);z-index:2}
.login-metric strong{font-size:34px;color:#112139;line-height:1}
.login-metric span{font-size:11px;color:#6f7c8f;text-transform:uppercase;font-weight:800;letter-spacing:.08em;margin-top:8px}
.login-metric.one{left:54px;bottom:96px}
.login-metric.two{left:210px;bottom:154px}
.login-metric.three{right:54px;bottom:88px}
@media(max-width:860px){
  .login-body{padding:14px;background:#eef5f8}
  .login-shell{grid-template-columns:1fr;min-height:auto}
  .login-panel{padding:30px 22px}
  .login-brand{margin-bottom:38px}
  .login-copy h1{font-size:29px}
  .login-visual{display:none}
}

/* Modais centralizados em todas as páginas */
.modal.show .modal-dialog{
  display:flex;
  align-items:center;
  min-height:calc(100% - var(--bs-modal-margin) * 2);
}
.modal .modal-dialog-scrollable{
  height:auto;
  max-height:calc(100% - var(--bs-modal-margin) * 2);
}
.modal .modal-dialog-scrollable .modal-content{
  max-height:calc(100vh - var(--bs-modal-margin) * 2);
}
.crm-side-form.modal{
  --bs-modal-margin:1.75rem;
  padding-right:0!important;
}
.crm-side-form .modal-dialog{
  width:auto;
  min-height:calc(100% - var(--bs-modal-margin) * 2);
  height:auto;
  margin:var(--bs-modal-margin) auto;
  display:flex;
  align-items:center;
  transform:none!important;
}
.crm-side-form .modal-dialog:not(.modal-lg):not(.modal-xl){
  max-width:min(640px,94vw);
}
.crm-side-form .modal-dialog.modal-lg{
  max-width:min(820px,94vw);
}
.crm-side-form .modal-dialog.modal-xl{
  max-width:min(1140px,94vw);
}
.crm-side-form .modal-content{
  height:auto;
  max-height:calc(100vh - var(--bs-modal-margin) * 2);
  border:0;
  border-radius:16px;
  box-shadow:0 22px 55px rgba(15,31,47,.18);
  overflow:hidden;
}
@media(max-width:640px){
  .crm-side-form.modal{--bs-modal-margin:.7rem}
  .modal.show .modal-dialog{align-items:center}
}

/* Views centralizadas: os offcanvas de visualização deixam de abrir como gaveta.
   O painel lateral direito do sistema usa .crm-right-sidebar e permanece separado. */
.offcanvas:not(.crm-right-sidebar){
  --bs-offcanvas-width:min(920px,94vw);
  --bs-offcanvas-height:auto;
  position:fixed!important;
  top:50%!important;
  right:auto!important;
  bottom:auto!important;
  left:50%!important;
  width:var(--bs-offcanvas-width)!important;
  max-width:94vw!important;
  height:auto!important;
  max-height:92vh!important;
  border:0!important;
  border-radius:18px!important;
  box-shadow:0 26px 72px rgba(7,20,38,.28)!important;
  transform:translate(-50%,-50%) scale(.96)!important;
  opacity:0;
  overflow:hidden;
}
.offcanvas.show:not(.crm-right-sidebar){
  transform:translate(-50%,-50%) scale(1)!important;
  opacity:1;
}
.offcanvas:not(.crm-right-sidebar) .offcanvas-body{
  max-height:calc(92vh - 74px);
  overflow:auto;
  background:#f6f8fb;
}
.offcanvas:not(.crm-right-sidebar) .offcanvas-header{
  background:#fff;
}
@media(max-width:640px){
  .offcanvas:not(.crm-right-sidebar){
    --bs-offcanvas-width:calc(100vw - 18px);
    max-height:94vh!important;
    border-radius:14px!important;
  }
  .offcanvas:not(.crm-right-sidebar) .offcanvas-body{
    max-height:calc(94vh - 70px);
  }
}
