/* file: data/static/charger_status.css */

.charger-layout {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0;
}

.charger-info-td {
    width: 65%;
    vertical-align: top;
    padding-right: 16px;
}

.charger-actions-td {
    width: 35%;
    min-width: 210px;
    vertical-align: top;
    text-align: right;
}

.charger-info-table {
    width: 100%;
    font-size: 1.08em;
    border-collapse: collapse;
}
.charger-info-table td.label {
    color: #bcd;
    font-weight: 500;
    padding-right: 6px;
    font-size: 1em;
    min-width: 36px;
}
.charger-info-table td.value {
    font-family: monospace;
    padding-right: 10px;
    font-size: 1em;
    min-width: 40px;
}
.charger-info-table td.dot {
    font-size: 1.36em;
    padding-left: 11px;
    text-align: left;
}
.charger-info-table td {
    padding-bottom: 2px;
    vertical-align: middle;
}

.charger-action-form {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    margin-top: 2px;
}

.charger-action-form select {
    font-size: 1em;
    padding: 0.44em 1.7em 0.44em 0.9em;
    border-radius: 0.32em;
    border: 1px solid #333;
    background: #283344;
    color: #e8f2ff;
    margin-bottom: 9px;
    min-width: 130px;
    max-width: 190px;
}

.charger-actions-btns {
    display: flex;
    flex-direction: row;
    gap: 12px;
    justify-content: flex-end;
}

.charger-actions-btns button,
.charger-actions-btns a.graph-btn {
    font-size: 1em;
    padding: 0.27em 1.3em;
    border-radius: 0.32em;
    border: 1px solid #333;
    background: #283344;
    color: #e8f2ff;
    min-width: 66px;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    margin: 0 2px 0 0;
}

.charger-actions-btns .details-btn {
    min-width: 74px;
}

.charger-actions-btns .graph-btn {
    color: #7ff;
    background: #242b32;
    border: 1px solid #444;
    text-decoration: underline;
    min-width: 62px;
    padding-left: 1.1em;
    padding-right: 1.1em;
}

.charger-details-panel.hidden {
    display: none;
}
.charger-card {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 28px auto;
    background: #242b32;
    color: #fff;
    border-radius: 1rem;
    box-shadow: 0 2px 18px #0002;
    border: 1.5px solid #3a4b5c;
    /* Right border color comes from status class */
    border-right-width: 25px;
    border-right-style: solid;
    padding: 1.3em 2.1em 2.3em 2.1em;
    display: block;
    box-sizing: border-box;
    transition: border-right-color 0.3s;
}

/* Green for online, red for offline */
.charger-card.status-online   { border-right-color: #48e16c; }
.charger-card.status-offline  { border-right-color: #ff3e3e; }


/* Responsive adjustments */
@media (max-width: 1300px) {
    .charger-card {
        max-width: 97vw;
        padding-left: 1em; padding-right: 1em;
    }
}
@media (max-width: 800px) {
    .charger-layout, .charger-info-table {
        font-size: 0.98em;
    }
    .charger-actions-td {
        min-width: 120px;
        font-size: 0.97em;
    }
}
@media (max-width: 600px) {
    .charger-card { padding: 0.8em 0.3em 1.2em 0.3em; }
    .charger-actions-td, .charger-info-td { width: 100%; display: block; }
    .charger-layout { display: block; }
    .charger-action-form { align-items: stretch; }
    .charger-actions-btns { justify-content: stretch; gap: 4px; }
}


/* OCPP status tables */
.ocpp-status {
    border-collapse: collapse;
    width: 100%;
}
.ocpp-status th, .ocpp-status td {
    border: 1px solid #ccc;
    padding: 4px;
}
.ocpp-status form.inline { display: inline; }

/* Summary table for stored charger data */
.ocpp-summary {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.94em;
}
.ocpp-summary th, .ocpp-summary td {
    border: 1px solid #bbb;
    padding: 4px 6px;
}
.ocpp-summary td {
    vertical-align: top;
}
