﻿html, body {
    min-height: 100%;
}

body {
    background: #f1f2f7;
}

.left-panel .navbar .navbar-brand {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0;
    padding-left: 16px;
}

.page-label {
    color: #2f3640;
    display: inline-block;
    font-weight: 600;
    margin-left: 14px;
    padding-top: 9px;
}

.sdk-badge {
    background: #eef7f2;
    border: 1px solid #c9ead7;
    border-radius: 4px;
    color: #207346;
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    margin-top: 8px;
    padding: 6px 10px;
}

.terminal-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
}

.terminal-card {
    background: #fff;
    border: 1px solid #e6e9ef;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(35, 44, 57, 0.04);
}

.terminal-card .card-header {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #e6e9ef;
    display: flex;
    justify-content: space-between;
    min-height: 54px;
}

.status-pill {
    border-radius: 4px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    gap: 6px;
    padding: 6px 9px;
}

.status-pill.connected {
    background: #eaf8ef;
    color: #1e7c45;
}

.status-pill.disconnected {
    background: #f7eceb;
    color: #9a332b;
}

.info-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(170px, 1fr));
}

.info-field label,
.form-group label {
    color: #6c7785;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.info-field .value-box {
    background: #f8fafc;
    border: 1px solid #e1e7ef;
    border-radius: 4px;
    color: #2b3440;
    min-height: 38px;
    padding: 8px 10px;
    word-break: break-word;
}

.metric-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
}

.metric-box {
    border: 1px solid #e6e9ef;
    border-radius: 6px;
    padding: 12px;
}

.metric-box span {
    color: #6c7785;
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.metric-box strong {
    color: #1f2933;
    display: block;
    font-size: 24px;
    line-height: 1.2;
    margin-top: 6px;
}

.terminal-log {
    background: #202734;
    border-radius: 6px;
    color: #d6dde8;
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
    height: 260px;
    margin: 0;
    overflow: auto;
    padding: 12px;
    white-space: pre-wrap;
}

.nav-tabs .nav-link {
    color: #495463;
}

.nav-tabs .nav-link.active {
    color: #207346;
    font-weight: 700;
}

.btn i {
    margin-right: 6px;
}

@media (max-width: 991px) {
    .terminal-grid,
    .info-grid,
    .metric-grid {
        grid-template-columns: 1fr;
    }
}
.monitor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.monitor-summary .metric-box strong {
    font-size: 20px;
}

.monitor-table {
    min-width: 1180px;
    table-layout: fixed;
}

.monitor-table th {
    color: #5b6572;
    font-size: 12px;
    text-transform: uppercase;
    white-space: nowrap;
}

.monitor-table td {
    max-width: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    white-space: nowrap;
}

.monitor-table .monitor-error {
    max-width: 180px;
}


.monitor-table th:nth-child(1),
.monitor-table td:nth-child(1) { width: 42px; }

.monitor-table th:nth-child(2),
.monitor-table td:nth-child(2) { width: 230px; }

.monitor-table th:nth-child(3),
.monitor-table td:nth-child(3) { width: 120px; }

.monitor-table th:nth-child(4),
.monitor-table td:nth-child(4) { width: 95px; }

.monitor-table th:nth-child(5),
.monitor-table td:nth-child(5) { width: 105px; }

.monitor-table th:nth-child(6),
.monitor-table td:nth-child(6) { width: 115px; }

.monitor-table th:nth-child(7),
.monitor-table td:nth-child(7),
.monitor-table th:nth-child(8),
.monitor-table td:nth-child(8),
.monitor-table th:nth-child(9),
.monitor-table td:nth-child(9) { width: 150px; }

.monitor-table th:nth-child(10),
.monitor-table td:nth-child(10) { width: 80px; }

.monitor-table th:nth-child(11),
.monitor-table td:nth-child(11) { width: 190px; }

.monitor-check {
    text-align: center;
    width: 42px;
}

.monitor-check input {
    cursor: pointer;
    height: 16px;
    width: 16px;
}

.monitor-excluded td {
    color: #8a94a3;
}

.monitor-excluded td:not(.monitor-check) {
    background: #fafafa;
}


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

.sync-panel {
    border: 1px solid #dde3ea;
    border-radius: 6px;
    overflow: hidden;
}

.sync-panel-header {
    align-items: center;
    background: #f7f9fb;
    border-bottom: 1px solid #dde3ea;
    display: flex;
    gap: 8px;
    padding: 12px 14px;
}

.sync-panel-header label {
    font-weight: 600;
    margin: 0;
}

.sync-panel-body {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    padding: 14px;
}

.sync-check {
    align-items: center;
    display: inline-flex;
    gap: 6px;
    margin: 0;
}

.sync-check-col {
    text-align: center;
    width: 48px;
}

.sync-device-table th,
.sync-device-table td {
    vertical-align: middle;
    white-space: nowrap;
}

.sync-actions {
    display: flex;
    justify-content: flex-end;
}

.nested-tool {
    box-shadow: none;
}

@media (max-width: 991px) {
    .sync-panels {
        grid-template-columns: 1fr;
    }
}

.employee-tools {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 12px;
}

.employee-tools .form-control {
    max-width: 320px;
}

.employee-picker-table-wrap {
    border: 1px solid #dde3ea;
    max-height: 320px;
    overflow: auto;
}

.employee-picker-table th,
.employee-picker-table td {
    vertical-align: middle;
    white-space: nowrap;
}

.sync-filter-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 991px) {
    .sync-filter-grid {
        grid-template-columns: 1fr;
    }
}
