
/* ============================================================
   .COM INTERNET ACS - DEVICE UI V2.1
   ============================================================ */

.com-device-dashboard {
    margin: 0 0 22px 0;
    font-family: "Segoe UI", Arial, sans-serif;
}

.com-device-hero {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    padding: 22px 24px;
    margin-bottom: 18px;

    background:
        linear-gradient(135deg, #ffffff 0%, #fffafa 100%);

    border: 1px solid #e5e7eb;
    border-radius: 14px;

    box-shadow:
        0 4px 18px rgba(30,40,60,.06);

    overflow: hidden;
}

.com-device-hero::before {
    content: "";
    position: absolute;

    left: 0;
    top: 0;
    bottom: 0;

    width: 5px;

    background: #c90000;
}

.com-device-hero-title {
    min-width: 0;
}

.com-device-hero-title .com-kicker {
    color: #c50000;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .8px;
}

.com-device-hero-title h2 {
    margin: 3px 0 5px 0 !important;

    color: #202124 !important;

    font-size: 23px !important;
    line-height: 28px !important;
    font-weight: 750 !important;
}

.com-device-hero-subtitle {
    color: #73777f;
    font-size: 12px;
    line-height: 18px;
}

.com-device-hero-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.com-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 7px 11px;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 700;
}

.com-status::before {
    content: "";
    width: 8px;
    height: 8px;

    border-radius: 50%;
}

.com-status.online {
    color: #157a35;
    background: #ecf9f0;
    border: 1px solid #cfeeda;
}

.com-status.online::before {
    background: #16a34a;
    box-shadow: 0 0 0 3px rgba(22,163,74,.12);
}

.com-status.offline {
    color: #b42318;
    background: #fff1f0;
    border: 1px solid #ffd3cf;
}

.com-status.offline::before {
    background: #dc2626;
}

.com-v21-button {
    appearance: none;
    cursor: pointer;

    min-height: 34px;

    padding: 7px 12px;

    color: #4d5156;
    background: #ffffff;

    border: 1px solid #dfe1e5 !important;
    border-radius: 7px !important;

    font-size: 12px;
    font-weight: 650;
}

.com-v21-button:hover {
    color: #b60000;
    border-color: #e5b2b2 !important;
    background: #fff8f8;
}

.com-v21-button.primary {
    color: #ffffff !important;
    background: #cc0000 !important;
    border-color: #cc0000 !important;
}

.com-device-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0,1fr));

    gap: 16px;
}

.com-device-card {
    position: relative;

    min-width: 0;

    padding: 18px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 12px;

    box-shadow:
        0 3px 14px rgba(30,40,60,.045);

    overflow: hidden;
}

.com-device-card::before {
    content: "";

    position: absolute;

    left: 18px;
    top: 0;

    width: 36px;
    height: 4px;

    background: #cc0000;

    border-radius:
        0 0 5px 5px;
}

.com-device-card-title {
    margin-bottom: 13px;

    color: #272a2f;

    font-size: 14px;
    font-weight: 750;
}

.com-device-card-subtitle {
    margin-top: -8px;
    margin-bottom: 12px;

    color: #8a8d93;

    font-size: 11px;
}

.com-device-field {
    display: grid;

    grid-template-columns:
        minmax(115px, 35%)
        minmax(0,1fr);

    gap: 10px;

    align-items: start;

    min-height: 34px;

    padding: 8px 0;

    border-bottom:
        1px solid #f0f1f3;
}

.com-device-field:last-child {
    border-bottom: 0;
}

.com-device-label {
    color: #747980;

    font-size: 11px;
    font-weight: 650;
}

.com-device-value {
    min-width: 0;

    color: #26292e;

    font-size: 12px;
    font-weight: 600;

    overflow-wrap: anywhere;
    word-break: break-word;
}

.com-device-value.ipv6 {
    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 11px;
}

.com-device-value.signal-good {
    color: #17823b;
    font-size: 18px;
    font-weight: 800;
}

.com-device-value.signal-warning {
    color: #d97706;
    font-size: 18px;
    font-weight: 800;
}

.com-device-value.signal-critical {
    color: #c90000;
    font-size: 18px;
    font-weight: 800;
}

/* Wi-Fi */

.com-wifi-card .com-wifi-name {
    display: block;

    margin-bottom: 4px;

    color: #202124;

    font-size: 17px;
    font-weight: 750;

    overflow-wrap: anywhere;
}

.com-wifi-band {
    display: inline-block;

    margin-bottom: 12px;

    padding: 3px 7px;

    color: #a50000;
    background: #fff0f0;

    border-radius: 5px;

    font-size: 10px;
    font-weight: 750;
}

/* Card óptico/rede ocupa largura total */

.com-device-card.com-network-card {
    grid-column: 1 / -1;
}

.com-network-card .com-network-fields {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0,1fr));

    column-gap: 24px;
}

/* Esconde somente a tabela-resumo original.
   Ela pode ser reaberta pelo botão Detalhes técnicos. */

.com-v21-original-table {
    display: none !important;
}

#content.com-v21-details-open
.com-v21-original-table {
    display: table !important;

    width: 100% !important;

    margin:
        18px 0 22px 0 !important;
}

/* Mantém LAN hosts, Falhas e Todos os parâmetros */

#content h3 {
    margin-top: 19px !important;
}

/* Bloco LAN */

#content .com-v21-section-highlight {
    position: relative;

    padding-top: 5px;
}

/* ============================================================
   RESPONSIVO
   ============================================================ */

@media (max-width: 1050px) {

    .com-device-grid {
        grid-template-columns: 1fr;
    }

    .com-device-card.com-network-card {
        grid-column: auto;
    }

    .com-network-card .com-network-fields {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {

    .com-device-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .com-device-hero-right {
        justify-content: flex-start;
    }

    .com-device-field {
        grid-template-columns: 1fr;
        gap: 3px;
    }
}

