:root {
    --bg: #f4f7fb;
    --card: #fff;
    --text: #172033;
    --muted: #667085;
    --line: #e5eaf1;
    --primary: #2459d3;
    --wait: #6b7280;
    --ready: #2563eb;
    --work: #d49a00;
    --error: #dc2626;
    --done: #16a34a;
    --nav: #0f1f3d;
}

* {
    box-sizing: border-box
}

html {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: var(--bg)
}

body {
    margin: 0
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 20px
}

.topbar {
    background: var(--nav);
    color: white;
    position: sticky;
    top: 0;
    z-index: 30;
    box-shadow: 0 2px 10px #0002
}

.topbar-inner {
    max-width: 1500px;
    margin: auto;
    padding: 9px 20px;
    display: flex;
    align-items: center;
    gap: 24px
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    min-width: 235px
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #fff;
    color: var(--nav);
    font-weight: 900
}

.brand strong {
    display: block;
    font-size: 15px
}

.brand small {
    display: block;
    color: #b9c5da;
    font-size: 11px
}

.nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    justify-content: flex-end;
    flex-wrap: wrap
}

.nav a {
    color: #dbe6f7;
    text-decoration: none;
    padding: 9px 11px;
    border-radius: 8px;
    font-size: 13px
}

.nav a:hover,
.nav a.active {
    background: #ffffff16;
    color: #fff
}

.user-chip {
    font-size: 12px;
    color: #cbd5e1;
    padding: 0 8px
}

h1 {
    font-size: 25px;
    margin: 0 0 4px
}

h2 {
    font-size: 18px;
    margin: 0
}

h3 {
    font-size: 14px;
    margin: 0
}

.sub {
    color: var(--muted);
    font-size: 13px
}

.page-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 15px;
    margin-bottom: 16px
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 13px;
    box-shadow: 0 2px 8px #1c2d4d08
}

.card-pad {
    padding: 16px
}

.grid {
    display: grid;
    gap: 12px
}

.g2 {
    grid-template-columns: repeat(2, minmax(0, 1fr))
}

.g3 {
    grid-template-columns: repeat(3, minmax(0, 1fr))
}

.g4 {
    grid-template-columns: repeat(4, minmax(0, 1fr))
}

.g5 {
    grid-template-columns: repeat(5, minmax(0, 1fr))
}

.g6 {
    grid-template-columns: 1.25fr repeat(5, minmax(0, 1fr))
}

.kpi {
    padding: 15px
}

.kpi b {
    display: block;
    font-size: 29px;
    line-height: 1.1;
    margin-top: 5px
}

.kpi small {
    color: var(--muted)
}

.kpi-progress b {
    font-size: 44px;
    color: var(--done)
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap
}

.st-wait {
    background: #f1f5f9;
    color: #526071
}

.st-ready {
    background: #eaf1ff;
    color: #1d4ed8
}

.st-work {
    background: #fff7d8;
    color: #966900
}

.st-support {
    background: #f1eafe;
    color: #6d28d9
}

.st-error {
    background: #feecec;
    color: #b91c1c
}

.st-done {
    background: #e9f9ee;
    color: #15803d
}

.btn {
    border: 1px solid #ccd5e2;
    background: #fff;
    color: #28384f;
    border-radius: 8px;
    padding: 9px 12px;
    text-decoration: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 650;
    display: inline-flex;
    align-items: center;
    gap: 6px
}

.btn:hover {
    background: #f8fafc
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff
}

.btn-danger {
    background: #fff1f2;
    color: #b91c1c;
    border-color: #fecdd3
}

.btn-sm {
    padding: 6px 9px;
    font-size: 12px
}

.btn-wide {
    width: 100%;
    justify-content: center
}

form.inline {
    display: inline
}

.table-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap
}

.table:not(.similarity-table) th:last-child,
.table:not(.similarity-table) td:last-child {
    min-width: 150px;
    white-space: nowrap
}

.orders-table {
    min-width: 1100px
}

.orders-table th:last-child,
.orders-table td:last-child {
    position: sticky;
    right: 0;
    box-shadow: -6px 0 12px rgba(15, 23, 42, .08)
}

.orders-table th:last-child {
    z-index: 4;
    background: #f7f9fc
}

.orders-table td:last-child {
    z-index: 3;
    background: #fff
}

.orders-table tr:hover td:last-child {
    background: #fafcff
}

.duplicate-review {
    border-color: #f3c6c6
}

.duplicate-review .section-head {
    align-items: center
}

.review-note {
    margin: 0 14px 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fffaf0;
    color: #92400e;
    font-size: 13px
}

.similarity-table th,
.similarity-table td {
    vertical-align: top
}

.similarity-table .badge {
    white-space: nowrap
}

.filters {
    display: grid;
    grid-template-columns: 180px 1fr 220px auto;
    gap: 8px;
    padding: 12px
}

.input,
.select,
textarea {
    width: 100%;
    border: 1px solid #ccd5e2;
    background: #fff;
    border-radius: 8px;
    padding: 9px 10px;
    font: inherit;
    font-size: 13px;
    color: var(--text)
}

textarea {
    min-height: 90px;
    resize: vertical
}

.label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .045em;
    font-weight: 800;
    color: #667085;
    margin-bottom: 5px
}

.table-wrap {
    overflow: auto
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px
}

.table:not(.report-table) th:nth-child(2),
.table:not(.report-table) td:nth-child(2) {
    min-width: 125px;
    white-space: nowrap
}

.table th {
    background: #f7f9fc;
    color: #5c6b7d;
    text-align: left;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 10px;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0
}

.table td {
    padding: 10px;
    border-bottom: 1px solid #edf1f6;
    vertical-align: middle
}

.table tr:hover td {
    background: #fafcff
}

.ip-link {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-weight: 800;
    color: #153d9f;
    text-decoration: none
}

.truncate {
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.tabs {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin: 12px 0
}

.tab {
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    text-decoration: none;
    color: var(--text);
    font-size: 12px;
    font-weight: 700
}

.tab.active {
    outline: 2px solid #a8c2ff;
    border-color: #5684ed
}

.tab b {
    margin-left: 5px
}

.detail-head {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 15px;
    align-items: start
}

.detail-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap
}

.detail-title .ip-main {
    font-size: 24px;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    color: #153d9f;
    font-weight: 900
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0
}

.info {
    padding: 12px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    min-height: 73px
}

.info:nth-child(4n) {
    border-right: 0
}

.info .k {
    font-size: 10px;
    color: #768398;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: .04em
}

.info .v {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 650;
    word-break: break-word
}

.info .v.mono {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace
}

.section {
    margin-top: 12px
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 15px;
    border-bottom: 1px solid var(--line)
}

.section-body {
    padding: 14px
}

.status-actions {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 7px
}

.status-btn {
    padding: 12px 8px;
    border-radius: 9px;
    border: 1px solid var(--line);
    background: #fff;
    font-weight: 800;
    cursor: pointer;
    font-size: 12px
}

.status-btn.current {
    outline: 2px solid #8fb0ff
}

.status-btn[data-status="SUPORTE"] {
    color: #6d28d9
}

.status-btn[data-status="ERRO"] {
    color: #b91c1c
}

.status-btn[data-status="CONCLUIDO"] {
    color: #15803d
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, .75fr);
    gap: 12px
}

.sticky {
    position: sticky;
    top: 76px
}

.contact {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid #edf1f6
}

.contact:last-child {
    border: 0
}

.contact strong {
    font-size: 13px
}

.contact small {
    display: block;
    color: var(--muted);
    margin-top: 3px
}

.contact-actions {
    display: flex;
    gap: 5px;
    align-items: start
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 9px
}

.timeline-item {
    border-left: 3px solid #d9e1ec;
    padding: 2px 0 2px 10px
}

.timeline-item strong {
    font-size: 12px
}

.timeline-item p {
    margin: 3px 0;
    font-size: 12.5px
}

.timeline-item small {
    color: var(--muted)
}

.history-toggle {
    align-self: flex-start;
    margin-top: 2px
}

.network-box {
    background: #0d1b34;
    color: #e6eefc;
    border-radius: 11px;
    padding: 14px
}

.network-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px
}

.network-box .k {
    color: #91a4c4;
    font-size: 9.5px;
    text-transform: uppercase;
    font-weight: 800
}

.network-box .v {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 13px;
    font-weight: 800;
    margin-top: 3px
}

.ping-online {
    color: #6ee7a0
}

.ping-offline,
.ping-error {
    color: #ff8c8c
}

.ping-nao_testado {
    color: #cbd5e1
}

.bar-row {
    display: grid;
    grid-template-columns: 170px 1fr 55px;
    gap: 8px;
    align-items: center;
    margin: 8px 0;
    font-size: 12px
}

.bar {
    height: 11px;
    background: #edf1f6;
    border-radius: 10px;
    overflow: hidden
}

.bar>span {
    display: block;
    height: 100%;
    background: #3973e6;
    border-radius: 10px
}

.bar.done>span {
    background: #1faa59
}

.flash {
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid
}

.flash.success {
    background: #edf9f1;
    border-color: #bfe6ca;
    color: #166534
}

.flash.error {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #9f1239
}

.flash.info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af
}

.hidden {
    display: none !important
}

.empty {
    padding: 30px;
    text-align: center;
    color: var(--muted)
}

.pager {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px
}

.muted {
    color: var(--muted)
}

.warn {
    color: #b45309;
    font-weight: 700
}

.danger {
    color: #b91c1c
}

.success-text {
    color: #15803d
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace
}

.footer {
    text-align: center;
    color: #98a2b3;
    font-size: 11px;
    padding: 28px
}

.login-wrap {
    max-width: 420px;
    margin: 7vh auto
}

.login-card {
    padding: 24px
}

.login-card h1 {
    margin-bottom: 4px
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px
}

.phone-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
    gap: 10px;
    align-items: end;
    padding: 10px;
    margin-bottom: 8px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #f8fafc
}

.phone-row-options {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    white-space: nowrap
}

.phone-row-options label {
    color: var(--muted);
    font-size: 13px
}

.form-grid .full {
    grid-column: 1/-1
}

.progress {
    height: 12px;
    background: #e8edf4;
    border-radius: 999px;
    overflow: hidden
}

.progress>span {
    display: block;
    height: 100%;
    background: #1faa59
}

@media(max-width:1000px) {

    .g6,
    .g5,
    .g4 {
        grid-template-columns: repeat(2, 1fr)
    }

    .split {
        grid-template-columns: 1fr
    }

    .sticky {
        position: static
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .info:nth-child(4n) {
        border-right: 1px solid var(--line)
    }

    .info:nth-child(2n) {
        border-right: 0
    }

    .network-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .filters {
        grid-template-columns: 1fr 1fr
    }

    .status-actions {
        grid-template-columns: repeat(3, 1fr)
    }

    .topbar-inner {
        align-items: flex-start
    }

    .nav {
        justify-content: flex-start
    }

    .brand {
        min-width: auto
    }
}

@media(max-width:650px) {
    .container {
        padding: 12px
    }

    .topbar-inner {
        padding: 8px 12px;
        display: block
    }

    .nav {
        margin-top: 7px
    }

    .g2,
    .g3,
    .g4,
    .g5,
    .g6,
    .info-grid,
    .network-grid,
    .form-grid {
        grid-template-columns: 1fr
    }

    .phone-row {
        grid-template-columns: 1fr
    }

    .phone-row-options {
        justify-content: space-between
    }

    .filters {
        grid-template-columns: 1fr
    }

    .page-head,
    .detail-head {
        display: block
    }

    .page-head .actions {
        margin-top: 10px
    }

    .info {
        border-right: 0 !important
    }

    .bar-row {
        grid-template-columns: 110px 1fr 40px
    }

    .status-actions {
        grid-template-columns: 1fr
    }
}

.report-filters {
    grid-template-columns: 170px 200px 200px 1fr 150px 150px auto
}

.field-picker {
    grid-column: 1/-1
}

.field-picker-body {
    padding: 12px 15px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px
}

.field-group {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px;
    min-width: 0
}

.field-group legend {
    padding: 0 5px;
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: .04em
}

.field-options {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 12px
}

.field-option {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--text);
    cursor: pointer
}

.field-option input {
    accent-color: var(--primary)
}

.report-table {
    min-width: 0;
    table-layout: fixed
}

.report-table th,
.report-table td {
    padding: 6px 7px;
    font-size: 11px
}

.report-table th {
    white-space: normal
}

.report-table td {
    vertical-align: top
}

.etiqueta-value {
    color: #6d28d9;
    word-break: normal;
    white-space: nowrap
}

.chamado-inline {
    color: #6d28d9;
    font-weight: 700
}

.detail-etiqueta {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d8c5fb;
    background: #f6f0ff;
    color: #6d28d9;
    border-radius: 7px;
    padding: 5px 8px;
    font: 700 11px ui-monospace, SFMono-Regular, Consolas, monospace
}

.support-ticket-box {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #ddd0fb;
    border-radius: 9px;
    background: #fbf9ff
}

.support-ticket-box .label {
    color: #6d28d9
}

.support-notice {
    background: #f6f0ff;
    border-color: #ddd0fb;
    color: #5b21b6
}

.priority {
    display: inline-flex;
    border-radius: 999px;
    padding: 4px 7px;
    font-size: 10px;
    font-weight: 800
}

.priority-critica {
    background: #fee2e2;
    color: #b91c1c
}

.priority-alta {
    background: #ffedd5;
    color: #c2410c
}

.priority-normal {
    background: #eaf1ff;
    color: #1d4ed8
}

.priority-baixa {
    background: #f1f5f9;
    color: #526071
}

.public-request-wrap {
    max-width: 950px;
    margin: 0 auto
}

.public-request-card {
    overflow: hidden
}

.public-request-note {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
    padding: 12px 15px;
    border: 1px solid #cfe0fb;
    background: #eff6ff;
    color: #1e40af;
    border-radius: 10px;
    font-size: 12px
}

.public-request-note span {
    color: #526071
}

.honeypot {
    display: none !important
}

@media(max-width:1200px) {
    .report-filters {
        grid-template-columns: repeat(3, 1fr)
    }

    .field-picker-body {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media(max-width:650px) {
    .report-filters {
        grid-template-columns: 1fr
    }

    .field-picker-body {
        grid-template-columns: 1fr
    }

    .field-picker .section-head {
        display: block
    }

    .field-picker .actions {
        margin-top: 9px
    }

    .public-request-note {
        display: block
    }

    .public-request-note span {
        display: block;
        margin-top: 4px
    }
}

/* Pesquisa AJAX */
.ajax-results {
    position: relative;
    min-height: 80px;
    transition: opacity .15s ease
}

.ajax-results.ajax-loading {
    opacity: .55;
    pointer-events: none
}

.ajax-results.ajax-loading:after {
    content: "";
    position: absolute;
    top: 18px;
    right: 18px;
    width: 20px;
    height: 20px;
    border: 3px solid #d7dfeb;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: ajax-spin .7s linear infinite;
    z-index: 5
}

.ajax-error {
    margin: 12px
}

.ajax-live-search {
    padding-right: 34px
}

@keyframes ajax-spin {
    to {
        transform: rotate(360deg)
    }
}

/* Painel de monitoramento de ping em lote */
.ping-control-card {
    padding: 0;
    margin: 12px 0
}

.ping-control-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 15px;
    border-bottom: 1px solid var(--line)
}

.ping-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    padding: 12px 15px
}

.ping-summary-item {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    padding: 10px 12px;
    text-align: left;
    cursor: pointer;
    color: var(--text)
}

.ping-summary-item:hover {
    background: #f8fafc
}

.ping-summary-item.active {
    outline: 2px solid #a8c2ff;
    border-color: #5684ed
}

.ping-summary-item span {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--muted);
    font-weight: 800
}

.ping-summary-item strong {
    display: block;
    font-size: 24px;
    line-height: 1.15;
    margin-top: 4px
}

.ping-summary-item[data-ping="ONLINE"] strong {
    color: #15803d
}

.ping-summary-item[data-ping="OFFLINE"] strong,
.ping-summary-item[data-ping="ERRO"] strong {
    color: #b91c1c
}

.ping-summary-item[data-ping="NAO_TESTADO"] strong {
    color: #64748b
}

.ping-run-panel {
    border-top: 1px solid var(--line);
    padding: 13px 15px;
    background: #fbfcfe
}

.ping-run-line {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    font-size: 12px
}

.ping-progress {
    margin-top: 8px;
    height: 10px
}

.ping-live-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 10px;
    font-size: 11px;
    color: var(--muted)
}

.ping-live-stats b {
    font-size: 13px;
    color: inherit
}

.ping-live-log {
    margin-top: 10px;
    max-height: 230px;
    overflow: auto;
    border: 1px solid #e3e9f1;
    border-radius: 9px;
    background: #fff
}

.ping-log-row {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 11px;
    padding: 7px 9px;
    border-bottom: 1px solid #edf1f6;
    word-break: break-word
}

.ping-log-row:last-child {
    border-bottom: 0
}

.ping-log-online {
    color: #166534
}

.ping-log-offline,
.ping-log-erro {
    color: #b91c1c
}

@media(max-width:900px) {
    .ping-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .ping-control-head {
        align-items: flex-start
    }

    .ping-control-head .actions {
        flex-shrink: 0
    }
}

@media(max-width:650px) {
    .ping-control-head {
        display: block
    }

    .ping-control-head .actions {
        margin-top: 10px
    }

    .ping-summary {
        grid-template-columns: 1fr 1fr
    }

    .ping-summary-item:first-child {
        grid-column: 1/-1
    }
}

/* Testes de velocidade e mensagem de conclusão */
.speed-test-entry {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line)
}

.speed-result-link {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    word-break: break-all
}

.speed-test-help {
    margin-top: 7px;
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.4
}

.completion-share {
    scroll-margin-top: 86px;
    border-color: #bbdfc6;
    box-shadow: 0 0 0 2px #e9f9ee inset
}

.speed-links {
    display: grid;
    gap: 7px;
    margin-bottom: 10px
}

.speed-links>div {
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    font-size: 11px
}

.speed-links span {
    display: block;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 800;
    font-size: 9px;
    margin-bottom: 3px
}

.speed-links a {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    word-break: break-all;
    color: var(--primary);
    font-weight: 700
}

.share-message {
    min-height: 330px;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 11.5px;
    line-height: 1.5;
    background: #fbfcfe
}

.share-actions {
    margin-top: 8px
}

.copy-feedback {
    min-height: 18px;
    margin-top: 6px;
    font-size: 11px;
    color: #15803d;
    font-weight: 700;
    text-align: center
}

@media(max-width:650px) {
    .speed-test-entry {
        grid-template-columns: 1fr
    }

    .share-message {
        min-height: 390px
    }
}

/* Consulta em lote por coluna copiada do Excel */
.batch-lookup-card {
    padding: 15px;
    margin-bottom: 14px
}

.batch-lookup-form {
    display: grid;
    grid-template-columns: minmax(250px, .8fr) minmax(250px, .8fr);
    gap: 12px
}

.batch-lookup-form .full {
    grid-column: 1/-1
}

.batch-paste {
    min-height: 220px;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 13px;
    line-height: 1.55;
    resize: vertical
}

.batch-hint {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px;
    color: var(--muted);
    font-size: 10.5px
}

.batch-form-actions {
    display: flex;
    gap: 8px;
    align-items: center
}

.batch-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 10px
}

.batch-summary-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 12px 14px
}

.batch-summary-card span {
    display: block;
    color: var(--muted);
    font-size: 9.5px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: .04em
}

.batch-summary-card strong {
    display: block;
    font-size: 25px;
    margin-top: 3px
}

.batch-summary-card.missing strong {
    color: #b91c1c
}

.batch-summary-card.found strong {
    color: #15803d
}

.batch-summary-card.multi strong {
    color: #b45309
}

.batch-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin-bottom: 10px
}

.batch-filter-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap
}

.batch-filter {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    color: var(--text)
}

.batch-filter.active {
    background: #eff6ff;
    border-color: #93b4ff;
    color: #174bb4
}

.batch-filter b {
    margin-left: 4px
}

.batch-results-card {
    padding: 0
}

.batch-table {
    min-width: 1350px
}

.batch-table td {
    vertical-align: top
}

.batch-query-value {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-weight: 800;
    word-break: break-word
}

.lookup-result {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 7px;
    font-size: 9px;
    font-weight: 900;
    white-space: nowrap
}

.lookup-found {
    background: #e9f8ee;
    color: #166534
}

.lookup-missing {
    background: #fff0f1;
    color: #b91c1c
}

.lookup-multi {
    background: #fff7e6;
    color: #92400e
}

.lookup-repeat {
    display: block;
    margin-top: 5px;
    color: #b45309;
    font-size: 9px;
    font-weight: 700
}

.batch-row-missing {
    background: #fffafb
}

.batch-row-multiple {
    background: #fffdf7
}

.batch-unit strong {
    display: block
}

.batch-unit small,
.batch-sub {
    display: block;
    color: var(--muted);
    font-size: 10px;
    margin-top: 2px
}

.batch-match-list {
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px dashed #dce3ec
}

.batch-match-list div {
    margin-top: 4px
}

.batch-copy-ok {
    color: #15803d;
    font-size: 10px;
    font-weight: 700;
    margin-left: 6px
}

.batch-loading {
    position: relative;
    opacity: .55;
    pointer-events: none
}

.batch-loading:after {
    content: "";
    position: absolute;
    top: 20px;
    right: 20px;
    width: 22px;
    height: 22px;
    border: 3px solid #d7dfeb;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: ajax-spin .7s linear infinite
}

.batch-error {
    margin-bottom: 12px
}

@media(max-width:1050px) {
    .batch-summary {
        grid-template-columns: repeat(3, 1fr)
    }

    .batch-toolbar {
        align-items: flex-start;
        flex-direction: column
    }
}

@media(max-width:650px) {
    .batch-lookup-form {
        grid-template-columns: 1fr
    }

    .batch-summary {
        grid-template-columns: 1fr 1fr
    }

    .batch-summary-card:first-child {
        grid-column: 1/-1
    }

    .batch-hint {
        display: block
    }

    .batch-hint span {
        display: block;
        margin-top: 3px
    }

    .batch-toolbar .actions {
        width: 100%
    }

    .batch-toolbar .actions .btn {
        flex: 1
    }

    .batch-paste {
        min-height: 260px
    }
}

.support-message-card {
    border-color: #ddd0fb
}

.support-share-message {
    min-height: 300px
}

.ticket-url-preview {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    padding: 9px 10px;
    min-height: 38px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--primary);
    font-size: 12px
}

/* Monitoramento dos links concluídos */
.monitor-head {
    margin-bottom: 12px
}

.monitor-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px
}

.monitor-summary-card {
    display: block;
    min-width: 0;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--card);
    color: var(--text);
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease
}

.monitor-summary-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px #1b31590d
}

.monitor-summary-card span {
    display: block;
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 800
}

.monitor-summary-card strong {
    display: block;
    margin-top: 4px;
    font-size: 27px;
    line-height: 1.1
}

.monitor-summary-card.is-online strong {
    color: #15803d
}

.monitor-summary-card.is-offline strong,
.monitor-summary-card.is-error strong {
    color: #b91c1c
}

.monitor-summary-card.is-untested strong {
    color: #64748b
}

.monitor-filters {
    grid-template-columns: 200px 200px minmax(240px, 1fr) 220px auto;
    align-items: end;
    margin-bottom: 12px
}

.monitor-filter-action {
    align-self: end
}

.monitor-history {
    overflow: hidden
}

.monitor-history-filters {
    display: grid;
    grid-template-columns: minmax(170px, 210px) auto;
    align-items: end;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line)
}

.monitor-history-filters .input {
    min-width: 0
}

.monitor-history-filter-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px
}

.monitor-history-default {
    color: var(--muted);
    font-size: 11px;
    white-space: nowrap
}

.monitor-link-title {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0
}

.monitor-link-title h2 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.ping-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    border-radius: 50%
}

.ping-dot.online {
    background: #22a45a;
    box-shadow: 0 0 0 4px #def5e6
}

.ping-dot.offline {
    background: #dc2626;
    box-shadow: 0 0 0 4px #fee2e2
}

.monitor-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    align-items: center;
    margin-bottom: 9px;
    color: var(--muted);
    font-size: 11px
}

.legend-line {
    display: inline-block;
    width: 18px;
    height: 3px;
    margin-right: 4px;
    vertical-align: middle;
    border-radius: 3px
}

.legend-line.online {
    background: #16a34a
}

.legend-line.offline {
    background: #dc2626
}

.monitor-chart-wrap {
    overflow-x: auto;
    border: 1px solid #e3e9f1;
    border-radius: 10px;
    background: #fbfdff
}

.monitor-chart {
    display: block;
    min-width: 680px;
    width: 100%;
    height: auto
}

.monitor-chart-plot {
    fill: #fff;
    stroke: #edf1f6
}

.monitor-chart-grid {
    stroke: #e9eef5;
    stroke-width: 1
}

.monitor-chart-hour-grid {
    stroke: #eef2f7;
    stroke-width: 1
}

.monitor-chart-label,
.monitor-chart-date {
    fill: #7b8798;
    font-size: 11px;
    font-weight: 800
}

.monitor-chart-date {
    font-size: 10px;
    font-weight: 600
}

.monitor-chart-point-date,
.monitor-chart-axis-date {
    fill: #718096;
    font-size: 10px;
    font-weight: 700;
    pointer-events: none
}

.monitor-chart-latency {
    fill: #fff;
    font-size: 8px;
    font-weight: 900;
    pointer-events: none
}

.monitor-chart-line {
    fill: none;
    stroke-width: 3;
    stroke-linejoin: round
}

.monitor-chart-line.ecg {
    stroke: #475569;
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round
}

.monitor-chart-line.online {
    stroke: #16a34a
}

.monitor-chart-line.offline {
    stroke: #dc2626
}

.monitor-chart-point.online {
    fill: #16a34a;
    stroke: #fff;
    stroke-width: 2
}

.monitor-chart-point.offline {
    fill: #dc2626;
    stroke: #fff;
    stroke-width: 2
}

.monitor-chart-point {
    cursor: help
}

.monitor-events {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 11px
}

.monitor-events>strong {
    margin-right: 3px
}

.monitor-event {
    padding: 5px 7px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569
}

.monitor-event.online {
    background: #eaf8ee;
    color: #166534
}

.monitor-event.offline,
.monitor-event.erro {
    background: #fff0f1;
    color: #b91c1c
}

.monitor-table {
    min-width: 1180px
}

.monitor-table td {
    vertical-align: middle
}

.monitor-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 5px 8px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .02em
}

.monitor-status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor
}

.monitor-status.online {
    background: #eaf8ee;
    color: #166534
}

.monitor-status.offline {
    background: #fff0f1;
    color: #b91c1c
}

.monitor-status.untested {
    background: #f1f5f9;
    color: #64748b
}

.monitor-unit {
    color: var(--text);
    font-weight: 800;
    text-decoration: none
}

.monitor-unit:hover {
    color: var(--primary);
    text-decoration: underline
}

@media(max-width:1100px) {
    .monitor-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }

    .monitor-filters {
        grid-template-columns: 1fr 1fr
    }
}

@media(max-width:650px) {
    .monitor-summary,
    .monitor-filters {
        grid-template-columns: 1fr 1fr
    }

    .monitor-summary-card:first-child {
        grid-column: 1/-1
    }

    .monitor-filter-action {
        grid-column: 1/-1
    }

    .monitor-filter-action .btn {
        width: 100%
    }

    .monitor-history .section-head {
        display: block
    }

    .monitor-history .section-head .actions {
        margin-top: 9px
    }

    .monitor-history-filters {
        grid-template-columns: 1fr auto
    }
}
