/* SGC: opt-in visual layer. Every rule is scoped; business state remains with legacy JS. */
@font-face{font-family:"SGC Chamados Sans";src:url('/fonts/login/dm-sans-latin.woff2') format('woff2');font-style:normal;font-weight:400 700;font-display:swap}
@font-face{font-family:"SGC Chamados Heading";src:url('/fonts/login/manrope-latin.woff2') format('woff2');font-style:normal;font-weight:400 800;font-display:swap}

.sgc-chamados-modern {
    --sgc-ink:#18314b;
    --sgc-muted:#617286;
    --sgc-surface:#fff;
    --sgc-soft:#eff3f8;
    --sgc-border:#dce3eb;
    --sgc-brand:#102b46;
    --sgc-accent:#ef962f;
    color:var(--sgc-ink);
    font-family:"SGC Chamados Sans",Arial,sans-serif;
    font-size:14px;
    line-height:1.5;
    min-width:0;
}
.sgc-chamados-modern .content-header {padding:24px 8px 16px}
.sgc-chamados-modern .content-header h1 {font-family:"SGC Chamados Heading",Arial,sans-serif;font-size:28px;font-weight:800;letter-spacing:-.7px;color:var(--sgc-ink)}
.sgc-chamados-modern .sgc-eyebrow {font-size:10px;font-weight:700;letter-spacing:1.7px;text-transform:uppercase;color:var(--sgc-muted);margin:0 0 7px}
.sgc-chamados-modern .sgc-page-description {margin:9px 0 0;color:var(--sgc-muted);font-size:14px;max-width:540px}
.sgc-chamados-modern .breadcrumb {font-size:12px;margin-top:12px}
.sgc-chamados-modern .breadcrumb a {color:var(--sgc-ink)}
.sgc-chamados-modern .content {padding:0 8px}
.sgc-chamados-modern .card {background:var(--sgc-surface);border:1px solid var(--sgc-border);border-radius:12px;box-shadow:0 2px 8px rgba(16,43,70,.025);color:var(--sgc-ink)}
.sgc-chamados-modern .card-header {background:transparent;border-bottom:1px solid var(--sgc-border)}
.sgc-chamados-modern .card-title {font-size:15px;font-weight:700;color:var(--sgc-ink)}
.sgc-chamados-modern .sgc-section-heading {border-top:1px solid var(--sgc-border);margin:25px 0 19px;padding:21px 0 0}
.sgc-chamados-modern .sgc-section-heading h2 {font-family:"SGC Chamados Heading",Arial,sans-serif;font-size:17px;line-height:1.4;font-weight:800;margin:0 0 5px;color:var(--sgc-ink)}
.sgc-chamados-modern .sgc-section-heading p {font-size:12px;color:var(--sgc-muted);margin:0}
.sgc-chamados-modern .form-group {margin-bottom:16px;min-width:0}
.sgc-chamados-modern label.control-label {display:inline-block;font-size:12px;font-weight:700;line-height:1.5;margin-bottom:7px;color:var(--sgc-ink)}
.sgc-chamados-modern .form-control {background:var(--sgc-surface);border:1px solid var(--sgc-border);border-radius:7px;box-shadow:none;color:var(--sgc-ink);font-family:inherit;font-size:13px;min-height:41px;padding:9px 12px}
.sgc-chamados-modern .form-control::placeholder {color:#7b8998;opacity:1}
.sgc-chamados-modern .form-control:disabled,.sgc-chamados-modern .form-control[readonly] {background:var(--sgc-soft)}
.sgc-chamados-modern .form-control:focus {border-color:#b47a35;box-shadow:0 0 0 3px rgba(239,150,47,.18)}
.sgc-chamados-modern .select2-container {max-width:100%}
.sgc-chamados-modern .select2-container .select2-selection {border:1px solid var(--sgc-border);border-radius:7px;background:var(--sgc-surface);color:var(--sgc-ink);min-height:41px;font-size:13px}
.sgc-chamados-modern .select2-container--default .select2-selection--single .select2-selection__rendered {color:var(--sgc-ink);line-height:39px;padding-left:12px;padding-right:28px}
.sgc-chamados-modern .select2-container--default .select2-selection--single .select2-selection__arrow {height:39px}
.sgc-chamados-modern .select2-container--default .select2-selection--multiple .select2-selection__choice {background:var(--sgc-soft);border:1px solid var(--sgc-border);color:var(--sgc-ink);border-radius:5px}
.sgc-chamados-modern .select2-container--focus .select2-selection {border-color:#b47a35;box-shadow:0 0 0 3px rgba(239,150,47,.18)}
.sgc-chamados-modern .btn {font-family:inherit;font-size:12px;font-weight:700;border-radius:7px;padding:10px 15px;line-height:1.5;box-shadow:none;white-space:normal}
.sgc-chamados-modern .btn-primary,.sgc-chamados-modern .btn-success {background:var(--sgc-brand);border-color:var(--sgc-brand);color:#fff}
.sgc-chamados-modern .btn-primary:hover,.sgc-chamados-modern .btn-success:hover {background:#1d4367;border-color:#1d4367}
.sgc-chamados-modern .btn-warning,.sgc-chamados-modern .btn-outline-secondary {background:var(--sgc-surface);color:var(--sgc-ink)!important;border:1px solid var(--sgc-border)}
.sgc-chamados-modern .btn-warning:hover,.sgc-chamados-modern .btn-outline-secondary:hover {background:var(--sgc-soft)}
.sgc-chamados-modern .btn-outline-primary {color:var(--sgc-ink);border-color:var(--sgc-border);background:var(--sgc-surface)}
.sgc-chamados-modern .btn-outline-primary:hover {background:var(--sgc-soft);border-color:#8a9bad}
.sgc-chamados-modern .btn:focus-visible,.sgc-chamados-modern a:focus-visible,.sgc-chamados-modern button:focus-visible {outline:3px solid var(--sgc-accent);outline-offset:3px}
.sgc-chamados-modern .btn-group {gap:8px}
.sgc-chamados-modern .btn-group>.btn {border-radius:7px!important;margin-left:0!important}
.sgc-chamados-modern .table {font-size:13px;color:var(--sgc-ink);margin-bottom:0}
.sgc-chamados-modern .table thead th {background:var(--sgc-soft);font-size:11px;font-weight:700;color:var(--sgc-muted);border:0;border-bottom:1px solid var(--sgc-border);padding:13px 12px;vertical-align:middle;white-space:nowrap}
.sgc-chamados-modern .table td {border-top:1px solid var(--sgc-border);padding:14px 12px;vertical-align:middle}
.sgc-chamados-modern .table-striped tbody tr:nth-of-type(odd) {background:transparent}
.sgc-chamados-modern .table tbody tr:hover {background:var(--sgc-soft)}
.sgc-chamados-modern .table .btn {padding:7px 10px}
.sgc-chamados-modern .dataTables_wrapper .dataTables_length,.sgc-chamados-modern .dataTables_wrapper .dataTables_filter,.sgc-chamados-modern .dataTables_info {font-size:12px;color:var(--sgc-muted)}
.sgc-chamados-modern .page-link {color:var(--sgc-ink);background:var(--sgc-surface);border-color:var(--sgc-border);font-size:12px}
.sgc-chamados-modern .page-item.active .page-link {background:var(--sgc-brand);border-color:var(--sgc-brand);color:#fff!important}
.sgc-chamados-modern .progress {height:4px;background:var(--sgc-soft);border-radius:3px}
.sgc-chamados-modern .progress-bar {background:var(--sgc-accent)}
.sgc-chamados-modern .sgc-context-banner {border-left:4px solid var(--sgc-accent);margin-bottom:24px}
.sgc-chamados-modern .sgc-context-banner .card-body {padding:24px}
.sgc-chamados-modern .sgc-context-banner h2 {font-family:"SGC Chamados Heading",Arial,sans-serif;font-weight:800}
.sgc-chamados-modern .sgc-context-actions {display:flex;align-items:center;flex-wrap:wrap;gap:8px}

/* Ticket list: filters and server-side table share the established visual tokens. */
.sgc-ticket-list {padding:4px 0}
.sgc-ticket-list-heading {gap:16px}
.sgc-ticket-list-heading h2 {font-family:"SGC Chamados Heading",Arial,sans-serif;font-weight:800;color:var(--sgc-ink)}
.sgc-ticket-list .sgc-list-description {font-size:12px;color:var(--sgc-muted);line-height:1.6}
.sgc-ticket-list .sgc-ticket-list-actions {display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.sgc-ticket-list .sgc-ticket-filter-header {display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 20px}
.sgc-ticket-list .sgc-ticket-filter-header .card-title {float:none;margin:0}
.sgc-ticket-list .sgc-ticket-filter-header .nav {gap:4px}
.sgc-ticket-list .sgc-ticket-filter-header .nav-link {font-size:12px;font-weight:700;color:var(--sgc-muted);border-radius:7px;padding:8px 12px}
.sgc-ticket-list .sgc-ticket-filter-header .nav-link.active {background:var(--sgc-soft);color:var(--sgc-ink);box-shadow:inset 0 -2px 0 var(--sgc-accent)}
.sgc-ticket-list .sgc-ticket-filter-card>.card-body {padding:20px}
.sgc-ticket-list .sgc-ticket-code-search {display:flex;align-items:flex-end;gap:24px;flex-wrap:wrap}
.sgc-ticket-list .sgc-ticket-code-search>.form-group {width:340px;max-width:100%}
.sgc-ticket-list .sgc-ticket-code-search>p {flex:1;min-width:200px;padding-bottom:9px}
.sgc-ticket-list .input-group .btn {height:41px;min-width:85px;border-top-left-radius:0;border-bottom-left-radius:0}
.sgc-ticket-list .sgc-ticket-filter-bottom {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;border-top:1px solid var(--sgc-border);padding-top:16px}
.sgc-ticket-list .sgc-ticket-filter-checks {display:flex;align-items:center;flex-wrap:wrap;gap:20px;font-size:12px;color:var(--sgc-ink)}
.sgc-ticket-list .sgc-ticket-results>.card-body {padding:18px 20px}
.sgc-ticket-list .dataTables_wrapper {min-width:0}
.sgc-ticket-list .dataTables_wrapper .dataTables_filter {display:flex;align-items:flex-end;flex-direction:column;gap:8px;margin:0 0 16px}
.sgc-ticket-list .dataTables_wrapper .dataTables_filter label {margin:0;font-size:12px}
.sgc-ticket-list .dataTables_wrapper .dataTables_filter input {background:var(--sgc-surface);color:var(--sgc-ink);border:1px solid var(--sgc-border);border-radius:7px;min-height:36px;padding:6px 10px;max-width:230px}
.sgc-ticket-list .dataTables_wrapper .dataTables_length select {background:var(--sgc-surface);color:var(--sgc-ink);border:1px solid var(--sgc-border);border-radius:6px;min-height:34px}
.sgc-ticket-list #sgc-chamados-list-status {font-size:11px;font-weight:600;line-height:1.5;color:var(--sgc-muted);text-align:right;max-width:540px;display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.sgc-ticket-list #sgc-chamados-list-status[data-state="ready"]>span {padding:4px 9px;background:#e8f4ed;color:#285c3e;border:1px solid #bad8c5;border-radius:6px}
.sgc-ticket-list #sgc-chamados-list-status[data-state="loading"]>span {padding:4px 9px;background:#e4f1fa;color:#16364b;border:1px solid #9bbcd3;border-radius:6px}
.sgc-ticket-list #sgc-chamados-list-status[data-state="error"] {padding:8px 10px;background:#fff0e2;color:#713a12;border:1px solid #d7ae8c;border-radius:7px}
.sgc-ticket-list #sgc-chamados-list-status .btn {padding:5px 9px;font-size:11px;margin:0!important}
.sgc-ticket-list .table {width:100%!important}
.sgc-ticket-list .table td {padding:12px 10px;vertical-align:middle;overflow-wrap:anywhere}
.sgc-ticket-list #tb-chamados > thead > tr > th:first-child,
.sgc-ticket-list #tb-chamados > tbody > tr:not(.child) > td:first-child,
.sgc-ticket-list #tb-chamados .dtr-details [data-dt-column="0"] .dtr-data {white-space:nowrap;overflow-wrap:normal;word-break:normal}
.sgc-ticket-list .table .btn {padding:6px 8px;font-size:11px;min-height:30px}
.sgc-ticket-list .table td .btn-group {gap:5px;flex-wrap:wrap}
.sgc-ticket-list .table tbody tr.child td {white-space:normal}
.sgc-ticket-list .dataTables_info {padding-top:16px}
.sgc-ticket-list .dataTables_paginate {padding-top:12px}
body.dark-mode .sgc-ticket-list #sgc-chamados-list-status[data-state="ready"]>span {background:#1c4032;color:#ceefdb;border-color:#658f78}
body.dark-mode .sgc-ticket-list #sgc-chamados-list-status[data-state="loading"]>span {background:#183d54;color:#e0f2ff;border-color:#628ba6}
body.dark-mode .sgc-ticket-list #sgc-chamados-list-status[data-state="error"] {background:#4b381a;color:#fff0cd;border-color:#b99350}
@media(max-width:767px){
    .sgc-ticket-list .sgc-ticket-filter-header {align-items:flex-start;flex-wrap:wrap;padding:14px}
    .sgc-ticket-list .sgc-ticket-filter-card>.card-body,.sgc-ticket-list .sgc-ticket-results>.card-body {padding:14px}
    .sgc-ticket-list .sgc-ticket-code-search {gap:12px}
    .sgc-ticket-list .sgc-ticket-code-search>.form-group {width:100%}
    .sgc-ticket-list .sgc-ticket-code-search>p {padding-bottom:0}
    .sgc-ticket-list .dataTables_wrapper .dataTables_filter {align-items:stretch;clear:both;margin-top:14px}
    .sgc-ticket-list .dataTables_wrapper .dataTables_filter label {display:flex;align-items:center;gap:8px}
    .sgc-ticket-list .dataTables_wrapper .dataTables_filter input {flex:1;min-width:0;max-width:none;width:100%;margin:0}
    .sgc-ticket-list #sgc-chamados-list-status {max-width:100%;text-align:left;justify-content:flex-start}
    .sgc-ticket-list .sgc-ticket-filter-bottom {align-items:stretch}
    .sgc-ticket-list .sgc-ticket-filter-bottom>.sgc-ticket-list-actions {margin-left:auto}
}

/* List: remove visual nesting while preserving the legacy DOM and selectors. */
.sgc-pre-chamados>.content>.container-fluid>.row>.col-12>.card {border:0;background:transparent;box-shadow:none}
.sgc-pre-chamados>.content>.container-fluid>.row>.col-12>.card>.card {border:0;background:transparent;box-shadow:none;margin-bottom:0}
.sgc-pre-chamados>.content>.container-fluid>.row>.col-12>.card>.card>.card-body {padding:0}
.sgc-pre-chamados .sgc-list-filters {padding:20px 24px 0}
.sgc-pre-chamados .sgc-list-filters .card-title {padding-top:0!important;padding-bottom:0!important}
.sgc-pre-chamados .sgc-list-filters .card-title i {color:var(--sgc-accent)}
.sgc-pre-chamados .sgc-list-filters .form-group .form-group {margin-bottom:0}
.sgc-pre-chamados .sgc-filter-actions {margin-top:0!important;margin-bottom:20px!important}
.sgc-pre-chamados .sgc-filter-actions .col-sm-4 {flex:0 0 auto;max-width:100%;width:280px}
.sgc-pre-chamados .sgc-list-filters+.card-body {padding:0 24px 20px}
.sgc-pre-chamados .sgc-list-filters+.card-body .card {border:0;border-radius:0;box-shadow:none;margin-bottom:0}
.sgc-pre-chamados .sgc-list-filters+.card-body .card-body {padding:0}
.sgc-pre-chamados .sgc-list-heading {border-top:0;padding-top:22px;margin-top:0;margin-bottom:18px}
.sgc-pre-chamados .table-responsive {border:1px solid var(--sgc-border);border-radius:8px}
.sgc-pre-chamados .table-responsive .dataTables_wrapper {padding:12px}
.sgc-pre-chamados .table-responsive .table {border-collapse:collapse!important}
.sgc-pre-chamados .sgc-list-filters .select2-container {width:100%!important}

/* Form: headings and two calm columns; no visibility overrides for conditional fields. */
.sgc-chamado-form {background:var(--sgc-surface);border:1px solid var(--sgc-border);border-radius:12px;padding:24px}
.sgc-chamado-form .sgc-form-intro {margin-left:-12px;margin-right:-12px}
.sgc-chamado-form .sgc-form-panel {padding-left:12px;padding-right:12px}
.sgc-chamado-form .sgc-form-panel>.sgc-section-heading:first-child {border-top:0;margin-top:0;padding-top:0}
.sgc-chamado-form .sgc-form-panel>.row {margin-left:0;margin-right:0}
.sgc-chamado-form .sgc-form-panel>.row>.form-group>.fg-line>.col-sm-12 {padding-left:0;padding-right:0}
.sgc-chamado-form .sgc-form-panel>.row>.col-sm-12 {padding-left:0;padding-right:0}
.sgc-chamado-form .icone-ajuda {font-size:12px;float:right;line-height:18px;color:#aa6a20!important}
.sgc-chamado-form .icheck-primary>label {font-size:12px;font-weight:500!important;line-height:1.6}
.sgc-chamado-form .input-group-text-green {background:var(--sgc-brand);border-color:var(--sgc-brand);border-radius:0 7px 7px 0}
.sgc-chamado-form .note-editor {border:1px solid var(--sgc-border)!important;border-radius:8px;overflow:hidden}
.sgc-chamado-form .note-toolbar {background:var(--sgc-soft)!important;border-bottom:1px solid var(--sgc-border)}
.sgc-chamado-form .note-toolbar .btn {padding:5px 8px;font-size:12px;background:var(--sgc-surface);color:var(--sgc-ink);border:1px solid var(--sgc-border)}
.sgc-chamado-form .note-editing-area {background:var(--sgc-surface);color:var(--sgc-ink)}
.sgc-chamado-form .note-editable {min-height:200px}
.sgc-chamado-form .file-container {max-width:100%;border:1px dashed #a9b8c7;border-radius:9px;background:var(--sgc-soft);padding:12px}
.sgc-chamado-form .file-container input[type=file] {max-width:100%}
.sgc-chamado-form .file-container table {max-width:100%;font-size:12px}
.sgc-chamado-form .file-container td {overflow-wrap:anywhere}
.sgc-chamado-form .sgc-notification-choice {border:1px solid var(--sgc-border);border-left:3px solid var(--sgc-accent);border-radius:8px;box-shadow:none;background:var(--sgc-soft);margin-top:20px;padding:17px 20px}
.sgc-chamado-form .sgc-notification-choice p {font-size:12px!important;color:var(--sgc-muted);margin-bottom:12px}
.sgc-chamado-form .sgc-notification-choice .form-group {margin-bottom:0}
.sgc-chamado-form .sgc-form-actions {border-top:1px solid var(--sgc-border);padding-top:20px;margin-top:12px!important;margin-bottom:0!important}
.sgc-chamado-form #btn-save-chamado {box-shadow:inset 0 3px 0 var(--sgc-accent)}
.sgc-chamado-form #btn-limpar-data-fechamento {display:inline-flex;align-items:center;justify-content:center;flex:0 0 41px;width:41px;min-width:41px;height:41px;padding:0;border-radius:0 7px 7px 0;font-size:14px;line-height:1}
.sgc-chamado-form #btn-limpar-data-fechamento i {margin:0!important}
.sgc-chamado-form #data_fechamento {border-top-right-radius:0;border-bottom-right-radius:0}

/* The detail renderer may move this modal to body. Do not depend on list ancestry. */
body.sgc-chamados-page .sgc-pre-detail .modal-dialog {width:calc(100% - 32px);max-width:920px;margin-left:auto;margin-right:auto}
body.sgc-chamados-page .sgc-pre-detail .modal-content {background:var(--sgc-surface);color:var(--sgc-ink);border:1px solid var(--sgc-border);border-radius:12px;box-shadow:0 20px 60px rgba(16,43,70,.18)}
body.sgc-chamados-page .sgc-pre-detail .modal-header {align-items:flex-start;gap:10px;padding:20px 24px;border-bottom:1px solid var(--sgc-border)}
body.sgc-chamados-page .sgc-pre-detail .modal-title {flex:1 1 auto;min-width:0;font-family:"SGC Chamados Heading",Arial,sans-serif;font-size:18px;font-weight:800;line-height:1.4;overflow-wrap:anywhere;margin:4px 0 0}
body.sgc-chamados-page .sgc-pre-detail #btnPrintPrCh,body.sgc-chamados-page .sgc-pre-detail .modal-header .close {position:static!important;flex:0 0 34px;width:34px;height:34px;padding:5px;margin:0!important;color:var(--sgc-muted);background:transparent;border:0;opacity:1;line-height:24px;font-size:20px}
body.sgc-chamados-page .sgc-pre-detail #btnPrintPrCh:hover,body.sgc-chamados-page .sgc-pre-detail .modal-header .close:hover {background:var(--sgc-soft);border-radius:7px;color:var(--sgc-ink)}
body.sgc-chamados-page .sgc-pre-detail .modal-body {padding:24px}
body.sgc-chamados-page .sgc-pre-detail .modal-body label {font-size:12px;font-weight:700;color:var(--sgc-ink);margin-bottom:7px}
body.sgc-chamados-page .sgc-pre-detail #view-description {background:var(--sgc-soft);color:var(--sgc-ink);overflow-y:auto;min-height:80px;max-height:280px;padding:12px;white-space:normal;overflow-wrap:anywhere}
body.sgc-chamados-page .sgc-pre-detail .modal-body>.row:last-child {border-top:1px solid var(--sgc-border);padding-top:18px;margin-top:24px!important;margin-bottom:0!important}
body.sgc-chamados-page .sgc-pre-detail .btn-group .btn-group {gap:8px}

/* Ticket details: compact actions stay visible while the content scrolls. */
#modalViewChamado.sgc-chamado-detail .modal-content {background:var(--sgc-surface);color:var(--sgc-ink);border:1px solid var(--sgc-border);border-radius:12px;overflow:hidden}
#modalViewChamado.sgc-chamado-detail .modal-header {align-items:center;gap:8px;padding:16px 20px;border-bottom:1px solid var(--sgc-border)}
#modalViewChamado.sgc-chamado-detail .modal-title {flex:1;min-width:0;font-family:"SGC Chamados Heading",Arial,sans-serif;font-size:17px;font-weight:800;line-height:1.4}
#modalViewChamado.sgc-chamado-detail .modal-header .sgc-detail-icon {position:static;flex:0 0 36px;display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;margin:0!important;border:1px solid var(--sgc-border);border-radius:7px;background:var(--sgc-surface);color:var(--sgc-ink);font-size:17px;opacity:1;text-shadow:none}
#modalViewChamado.sgc-chamado-detail .modal-header .sgc-detail-icon:hover {background:var(--sgc-soft)}
#modalViewChamado.sgc-chamado-detail .modal-body {padding:16px 20px}
#modalViewChamado.sgc-chamado-detail .sgc-chamado-detail-footer {display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;padding:12px 20px;border-top:1px solid var(--sgc-border);background:var(--sgc-soft)}
#modalViewChamado.sgc-chamado-detail .sgc-chamado-detail-footer>.btn {display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;gap:7px;width:auto;min-height:38px;padding:8px 12px;margin:0;line-height:20px;font-size:12px;white-space:nowrap}
@media(max-width:575px){
    #modalViewChamado.sgc-chamado-detail .modal-header,#modalViewChamado.sgc-chamado-detail .modal-body {padding:12px}
    #modalViewChamado.sgc-chamado-detail .modal-title {font-size:15px}
    #modalViewChamado.sgc-chamado-detail .sgc-chamado-detail-footer {padding:12px 12px calc(20px + env(safe-area-inset-bottom, 0px));gap:8px}
}

.dark-mode .sgc-chamados-modern {--sgc-ink:#e4edf6;--sgc-muted:#adbdcc;--sgc-surface:#182b3f;--sgc-soft:#122236;--sgc-border:#33485e;--sgc-brand:#244e73;color-scheme:dark}
.dark-mode .sgc-chamados-modern .form-control::placeholder {color:#a0b1c2}
.dark-mode .sgc-chamados-modern .modal-content {background:var(--sgc-surface);color:var(--sgc-ink)}

/* Dark theme: the legacy stylesheet is loaded later and also styles these plugins.
   Keep the overrides inside the opted-in pages; dropdowns are appended to body. */
body.dark-mode.sgc-chamados-page .sgc-chamados-modern {
    --sgc-ink:#edf3fa;
    --sgc-muted:#c0cedc;
    --sgc-surface:#182b3f;
    --sgc-soft:#122236;
    --sgc-border:#60778e;
    --sgc-brand:#28577e;
}
body.dark-mode.sgc-chamados-page .sgc-chamados-modern .card,
body.dark-mode.sgc-chamados-page .sgc-chamados-modern .form-control,
body.dark-mode.sgc-chamados-page .sgc-chamados-modern .select2-selection {
    background-color:var(--sgc-surface);color:var(--sgc-ink);border-color:var(--sgc-border);
}
body.dark-mode.sgc-chamados-page .sgc-chamados-modern .form-control:disabled,
body.dark-mode.sgc-chamados-page .sgc-chamados-modern .form-control[readonly] {background-color:var(--sgc-soft);color:var(--sgc-ink);opacity:1}
body.dark-mode.sgc-chamados-page .sgc-chamados-modern .form-control::placeholder {color:var(--sgc-muted)}
body.dark-mode.sgc-chamados-page .sgc-chamados-modern .custom-select {background-color:var(--sgc-surface);color:var(--sgc-ink);color-scheme:dark}
body.dark-mode.sgc-chamados-page .sgc-chamados-modern .select2-selection__rendered,
body.dark-mode.sgc-chamados-page .sgc-chamados-modern .select2-selection__choice,
body.dark-mode.sgc-chamados-page .sgc-chamados-modern .select2-selection__choice__remove {color:var(--sgc-ink)!important}
body.dark-mode.sgc-chamados-page .sgc-chamados-modern .select2-selection__placeholder {color:var(--sgc-muted)}
body.dark-mode.sgc-chamados-page .sgc-chamados-modern .select2-search--inline .select2-search__field {color:var(--sgc-ink)}
body.dark-mode.sgc-chamados-page .sgc-chamados-modern .select2-search--inline .select2-search__field::placeholder {color:var(--sgc-muted);opacity:1}
body.dark-mode.sgc-chamados-page .sgc-chamados-modern .table-striped tbody tr:nth-of-type(odd) {background-color:var(--sgc-soft)}
body.dark-mode.sgc-chamados-page .sgc-chamados-modern .table tbody tr:hover {background-color:#28435c;color:var(--sgc-ink)}
body.dark-mode.sgc-chamados-page .sgc-chamados-modern .table .text-primary {color:#9acbff!important}
body.dark-mode.sgc-chamados-page .sgc-chamados-modern .table .text-info {color:#82dcec!important}
body.dark-mode.sgc-chamados-page .sgc-chamados-modern .table .text-success {color:#90e0b0!important}
body.dark-mode.sgc-chamados-page .sgc-chamados-modern .table .text-warning {color:#ffd27d!important}
body.dark-mode.sgc-chamados-page .sgc-chamados-modern .text-muted {color:var(--sgc-muted)!important}
body.dark-mode.sgc-chamados-page .sgc-chamados-modern .btn-primary,
body.dark-mode.sgc-chamados-page .sgc-chamados-modern .btn-success {background:var(--sgc-brand);border-color:#7396b7;color:#fff}
body.dark-mode.sgc-chamados-page .sgc-chamados-modern .btn-primary:hover,
body.dark-mode.sgc-chamados-page .sgc-chamados-modern .btn-success:hover {background:#32658e;border-color:#9bb9d4}
body.dark-mode.sgc-chamados-page .sgc-chamados-modern .btn-warning,
body.dark-mode.sgc-chamados-page .sgc-chamados-modern .btn-outline-secondary,
body.dark-mode.sgc-chamados-page .sgc-chamados-modern .btn-outline-primary {background:var(--sgc-soft);color:var(--sgc-ink)!important;border-color:var(--sgc-border)}
body.dark-mode.sgc-chamados-page .sgc-chamados-modern .btn-warning:hover,
body.dark-mode.sgc-chamados-page .sgc-chamados-modern .btn-outline-secondary:hover,
body.dark-mode.sgc-chamados-page .sgc-chamados-modern .btn-outline-primary:hover {background:#28435c}
body.dark-mode.sgc-chamados-page .sgc-chamado-form .note-editable {background:var(--sgc-surface);color:var(--sgc-ink)}
body.dark-mode.sgc-chamados-page .sgc-chamado-form .note-toolbar .note-btn {background:var(--sgc-surface);color:var(--sgc-ink);border-color:var(--sgc-border)}
body.dark-mode.sgc-chamados-page .sgc-chamado-form .note-toolbar .note-btn:hover,
body.dark-mode.sgc-chamados-page .sgc-chamado-form .note-toolbar .note-btn.active {background:#28435c;color:#fff}
body.dark-mode.sgc-chamados-page .sgc-chamado-form .note-dropdown-menu {background:var(--sgc-surface);color:var(--sgc-ink)}
body.dark-mode.sgc-chamados-page .sgc-chamado-form .note-dropdown-item {color:var(--sgc-ink)}
body.dark-mode.sgc-chamados-page .sgc-chamado-form .icone-ajuda {color:#ffc575!important}
body.dark-mode.sgc-chamados-page .sgc-chamado-form .file-container {--file-bg:#182b3f;--file-color:#edf3fa;--file-border-color:#60778e;--table-border-color:#60778e;color:var(--sgc-ink)}
body.dark-mode.sgc-chamados-page .sgc-chamado-form .file-upload {color:var(--sgc-ink)}
body.dark-mode.sgc-chamados-page .sgc-chamado-form .file-upload>div {background:var(--file-bg);color:var(--file-color)}
body.dark-mode.sgc-chamados-page .sgc-chamado-form .file-upload>div>i,
body.dark-mode.sgc-chamados-page .sgc-chamado-form .file-upload>div>p {color:var(--file-color)}
body.dark-mode.sgc-chamados-page .sgc-chamado-form .file-upload .text-secondary {color:var(--file-color)!important}
body.dark-mode.sgc-chamados-page .content-header .breadcrumb a {color:#d6e7f8}
body.dark-mode.sgc-chamados-page .content>.container-fluid>.card.card-outline .btn-outline-primary,
body.dark-mode.sgc-chamados-page .content>.container-fluid>.card.card-outline .btn-outline-secondary {color:#edf3fa;border-color:#7892aa;background:#182b3f}
body.dark-mode.sgc-chamados-page #pre-chamado-load-status.alert-info {background:#183d54;border-color:#628ba6;color:#e0f2ff}
body.sgc-chamados-page #chamado-edit-load-status.alert-info {background:#e4f1fa;border-color:#628ba6;color:#16364b}
body.sgc-chamados-page #chamado-edit-load-status.alert-danger {background:#fde8e7;border-color:#bd6a65;color:#6c211e}
body.dark-mode.sgc-chamados-page #chamado-edit-load-status.alert-info {background:#183d54;border-color:#628ba6;color:#e0f2ff}
body.dark-mode.sgc-chamados-page #chamado-edit-load-status.alert-danger {background:#542523;border-color:#c47b74;color:#ffe6e2}
body.dark-mode.sgc-chamados-page #pre-chamado-load-status.alert-warning {background:#4b381a;border-color:#b99350;color:#fff0cd}
body.dark-mode.sgc-chamados-page .select2-dropdown {background:#182b3f;color:#edf3fa;border-color:#60778e}
body.dark-mode.sgc-chamados-page .select2-dropdown .select2-search__field {background:#122236;color:#edf3fa;border-color:#7892aa}
body.dark-mode.sgc-chamados-page .select2-dropdown .select2-results__option[aria-selected=true] {background:#28435c;color:#edf3fa}
body.dark-mode.sgc-chamados-page .select2-dropdown .select2-results__option--highlighted[aria-selected] {background:#32658e;color:#fff}
body.dark-mode.sgc-chamados-page .select2-dropdown .select2-results__option[aria-disabled=true] {color:#c0cedc}

@media(min-width:1100px){
    .sgc-chamado-form .sgc-form-panel:first-child {padding-right:24px}
    .sgc-chamado-form .sgc-form-panel+.sgc-form-panel {border-left:1px solid var(--sgc-border);padding-left:24px}
}
@media(max-width:767px){
    .sgc-chamados-modern .content-header {padding:18px 0 10px}
    .sgc-chamados-modern .content-header h1 {font-size:24px}
    .sgc-chamados-modern .breadcrumb {float:none!important;margin-bottom:0}
    .sgc-chamados-modern .content {padding:0}
    .sgc-chamados-modern .sgc-context-banner .card-body {padding:18px}
    .sgc-pre-chamados .sgc-list-filters {padding:18px 16px 0}
    .sgc-pre-chamados .sgc-list-filters+.card-body {padding:0 16px 16px}
    .sgc-pre-chamados .sgc-list-filters>.row>.col-sm {flex:0 0 50%;max-width:50%;margin-bottom:8px!important}
    .sgc-pre-chamados .sgc-filter-actions>.col-sm {flex-basis:100%;max-width:100%}
    .sgc-pre-chamados .table-responsive {padding:0!important}
    .sgc-chamado-form {padding:18px}
    .sgc-chamado-form .sgc-form-intro>.sgc-form-panel {flex:0 0 100%;max-width:100%}
    .sgc-chamado-form .sgc-form-panel+.sgc-form-panel>.sgc-section-heading:first-child {border-top:1px solid var(--sgc-border);padding-top:20px;margin-top:10px}
    .sgc-chamado-form .sgc-form-actions .col-sm-6 {flex:0 0 100%;max-width:100%}
    .sgc-chamado-form .sgc-form-actions .btn-group {flex-wrap:wrap}
    .sgc-chamado-form .sgc-form-actions .btn {flex:1 1 auto}
    .sgc-chamado-form .sgc-form-actions .fileupload-process {margin-top:12px}
}
@media(max-width:479px){
    .sgc-pre-chamados .sgc-list-filters>.row>.col-sm {flex:0 0 100%;max-width:100%}
    .sgc-chamados-modern .sgc-context-actions>.btn {width:100%}
    .sgc-chamado-form {padding:14px}
    .sgc-chamado-form .sgc-form-actions .btn {min-width:120px}
    body.sgc-chamados-page .sgc-pre-detail .modal-dialog {width:calc(100% - 16px);max-width:none;margin:8px}
    body.sgc-chamados-page .sgc-pre-detail .modal-header {padding:16px;gap:6px}
    body.sgc-chamados-page .sgc-pre-detail .modal-title {font-size:16px}
    body.sgc-chamados-page .sgc-pre-detail .modal-body {padding:16px}
    body.sgc-chamados-page .sgc-pre-detail #printPrCh>.col-sm-12 {padding-left:0;padding-right:0}
}
