:root {
    --cmc-bg: #07111f;
    --cmc-bg-soft: #0c1b2e;
    --cmc-sidebar: #06172b;
    --cmc-card: rgba(14, 31, 53, 0.94);
    --cmc-card-border: rgba(255,255,255,0.08);
    --cmc-blue: #1e88ff;
    --cmc-green: #00c875;
    --cmc-yellow: #ffc857;
    --cmc-red: #ff4d4d;
    --cmc-text: #f5f7fa;
    --cmc-muted: #8fa3bf;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: radial-gradient(circle at top left, #12345a 0, #07111f 38%, #050b14 100%);
    color: var(--cmc-text);
    font-family: 'Segoe UI', Arial, sans-serif;
    overflow-x: hidden;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #031326 0%, #020b16 100%);
    color: white;
    display: flex;
    flex-direction: column;
    padding: 18px 16px;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow: hidden;
}

.brand {
    height: 150px;
    margin-bottom: 6px;
    padding-top: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: visible;
}

.brand-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    transform: scale(3.8);
    transform-origin: center center;
    margin-top: 20px;
    margin-bottom: 2px;
    display: block;
}

.brand-system {
    font-size: 20px;
    font-weight: 800;
    color: white;
    margin-top: 18px;
}

.brand-subtitle {
    font-size: 13px;
    color: var(--cmc-muted);
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    margin-top: 6px;
    min-height: 0;
    overflow-y: auto;
    padding-right: 4px;
}

.menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 13px;
    color: #b7c6d9 !important;
    text-decoration: none !important;
    border-radius: 13px;
    font-size: 14px;
    font-weight: 600;
    transition: .2s;
}

.menu a:hover,
.menu a.active {
    background: rgba(30, 136, 255, .16);
    color: white;
}

.sidebar-footer {
    position: static;
    flex-shrink: 0;
    color: var(--cmc-muted);
    font-size: 12px;
    margin-top: 10px;
}

.admin-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
    padding: 8px 10px;
    border-radius: 15px;
    margin-bottom: 8px;
    min-height: 64px;
}


.admin-box strong {
    display: block;
    color: white;
    font-size: 13px;
    line-height: 1.1;
    margin-bottom: 3px;
}

.admin-box small {
    display: block;
    color: #8fa3bf;
    font-size: 11px;
    line-height: 1;
}

.admin-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(30,136,255,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7db7ff;
    font-size: 16px;
    flex-shrink: 0;
}

.version-box {
    padding-left: 4px;
}

.version-box strong {
    color: white;
    font-size: 12px;
}

.version-box small {
    display: block;
}

.main {
    margin-left: 280px;
    width: calc(100% - 280px);
    padding: 22px 24px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    gap: 18px;
}

.topbar-title h2 {
    margin: 0;
    font-size: 25px;
    font-weight: 800;
}

.topbar-title p {
    margin: 5px 0 0;
    color: var(--cmc-muted);
    font-size: 13px;
}

.topbar-widgets {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.top-pill {
    display: flex;
    align-items: center;
    gap: 9px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.075);
    padding: 9px 12px;
    border-radius: 999px;
    min-width: 150px;
}

.top-pill strong {
    display: block;
    font-size: 12px;
    color: white;
    line-height: 1.1;
}

.top-pill small {
    color: var(--cmc-muted);
    font-size: 11px;
}

.top-pill i {
    color: #8fc4ff;
}

.online-dot {
    width: 10px;
    height: 10px;
    background: var(--cmc-green);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 200, 117, .75);
}

.content {
    min-height: calc(100vh - 145px);
}

.footer-app {
    margin-top: 18px;
    padding: 14px 2px 0;
    display: flex;
    justify-content: space-between;
    color: var(--cmc-muted);
    font-size: 12px;
    border-top: 1px solid rgba(255,255,255,.06);
}

.cmc-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.cmc-card {
    background: var(--cmc-card);
    border: 1px solid var(--cmc-card-border);
    border-radius: 18px;
    padding: 17px;
    box-shadow: 0 18px 45px rgba(0,0,0,.25);
    min-height: 92px;
}

.cmc-card small {
    color: var(--cmc-muted);
    font-size: 12px;
}

.cmc-card h2 {
    margin: 8px 0 0;
    font-size: 27px;
    line-height: 1;
}

.cmc-card-icon {
    float: right;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(30, 136, 255, .16);
}

.cmc-grid {
    display: grid;
    grid-template-columns: 1.35fr .65fr;
    gap: 16px;
}

.cmc-panel {
    background: rgba(10, 24, 42, .94);
    border: 1px solid var(--cmc-card-border);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 18px 45px rgba(0,0,0,.22);
}

.cmc-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.cmc-panel-header h3 {
    margin: 0;
    font-size: 16px;
}

.cmc-panel-header span {
    color: var(--cmc-muted);
    font-size: 12px;
}

.cmc-chart-box {
    height: 260px;
}

.cmc-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cmc-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.06);
    padding: 11px 12px;
    border-radius: 14px;
}

.cmc-list-item strong {
    font-size: 13px;
}

.cmc-list-item span {
    font-size: 12px;
    color: var(--cmc-muted);
}

.cmc-badge {
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    background: rgba(30,136,255,.16);
    color: #8fc4ff;
}

.cmc-table {
    width: 100%;
    border-collapse: collapse;
}

.cmc-table thead tr {
    background: rgba(255,255,255,.04);
}

.cmc-table th {
    text-align: left;
    padding: 14px;
    color: var(--cmc-muted);
    font-size: 12px;
    font-weight: 600;
}

.cmc-table td {
    padding: 15px 14px;
    border-top: 1px solid rgba(255,255,255,.06);
    color: #e8eef7;
    font-size: 13px;
}

.cmc-table tbody tr:hover {
    background: rgba(255,255,255,.03);
}

.cmc-btn {
    border: none;
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cmc-btn-primary {
    background: var(--cmc-blue);
    color: white;
}

.cmc-btn-primary:hover {
    background: #3a97ff;
    color: white;
}

.cmc-btn-success {
    background: var(--cmc-green);
    color: white;
}

.cmc-btn-danger {
    background: var(--cmc-red);
    color: white;
}

@media (max-width: 1200px) {
    .cmc-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .cmc-grid {
        grid-template-columns: 1fr;
    }

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

    .topbar-widgets {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 78px;
        padding: 18px 10px;
    }

    .brand-logo {
        max-width: 48px;
    }

    .brand-system,
    .brand-subtitle,
    .menu a span,
    .sidebar-footer {
        display: none;
    }

    .menu a {
        justify-content: center;
    }

    .main {
        margin-left: 78px;
        width: calc(100% - 78px);
        padding: 16px;
    }

    .cmc-cards {
        grid-template-columns: 1fr;
    }

    .footer-app {
        flex-direction: column;
        gap: 6px;
    }
}
.metric-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: 22px;
    min-height: 150px;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
}

.metric-card::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    right: -30px;
    top: -30px;
    background: rgba(255,255,255,.08);
}

.metric-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 12px;
    background: rgba(255,255,255,.12);
}

.metric-title {
    font-size: 15px;
    font-weight: 600;
}

.metric-value {
    font-size: 54px;
    font-weight: 800;
    line-height: 1;
    margin-top: 10px;
}

.metric-sub {
    margin-top: 8px;
    opacity: .9;
    font-size: 14px;
}

.metric-trend {
    position: absolute;
    right: 22px;
    bottom: 20px;
    background: rgba(255,255,255,.12);
    padding: 6px 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
}

.bg-kpi-blue-dark {
    background: linear-gradient(135deg, #002f86, #003fb4);
}

.bg-kpi-blue {
    background: linear-gradient(135deg, #0057d9, #006eff);
}

.bg-kpi-green {
    background: linear-gradient(135deg, #009e46, #00b050);
}

.bg-kpi-purple {
    background: linear-gradient(135deg, #5d1fcf, #7d39ff);
}

.panel-card {
    background: white;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 4px 15px rgba(0,0,0,.05);
    height: 100%;
}

.panel-title {
    font-size: 16px;
    font-weight: 700;
    color: #172554;
}

.dashboard-bottom-panels .panel-card {
    min-height: 440px;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    border-bottom: 1px solid #e9edf5;
    color: #1e293b;
    font-size: 13px;
    font-weight: 700;
}

.table td {
    vertical-align: middle;
    border-color: #edf1f7;
    font-size: 13px;
    color: #334155;
}

.media-thumb-small {
    width: 52px;
    height: 36px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 10px;
}

.vinculo-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid #eef2f7;
}

.vinculo-item:last-child {
    border-bottom: none;
}

.vinculo-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #eef4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #003fb4;
    font-size: 24px;
}

.vinculo-item strong {
    color: #172554;
}

.vinculo-item small {
    color: #64748b;
}

.content {
    background: #f4f7fb;
    border-radius: 28px;
    padding: 6px;
}

@media (max-width: 1400px) {

    .metric-card {
        min-height: 125px;
        padding: 18px;
    }

    .metric-value {
        font-size: 42px;
    }

    .dashboard-bottom-panels .panel-card {
        min-height: auto;
    }
}
.page-panel {
    background: #ffffff;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 8px 26px rgba(15, 23, 42, .06);
    border: 1px solid #e7edf7;
}

.page-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

.page-panel-header h3 {
    margin: 0;
    color: #0f1f4d;
    font-size: 21px;
    font-weight: 800;
}

.page-panel-header p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 13px;
}

.cmc-action-btn {
    background: #0057d9;
    color: white;
    border-radius: 14px;
    padding: 11px 17px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(0,87,217,.25);
    box-shadow: 0 10px 20px rgba(0,87,217,.16);
}

.cmc-action-btn:hover {
    background: #004ec2;
    color: white;
}

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

.media-library-card {
    background: #f8fafc;
    border: 1px solid #e6edf7;
    border-radius: 20px;
    overflow: hidden;
    transition: .2s;
}

.media-library-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .10);
}

.media-preview-box {
    height: 145px;
    background: #eaf0f8;
    overflow: hidden;
}

.media-library-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #dce5f2;
}

.media-library-info {
    padding: 14px 14px 10px;
}

.media-library-title {
    color: #10224f;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.media-library-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #64748b;
    font-size: 12px;
    margin-top: 9px;
}

.media-library-date {
    color: #64748b;
    font-size: 12px;
    margin-top: 8px;
}

.media-library-footer {
    padding: 0 14px 14px;
}

.media-badge {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.media-badge-image {
    background: #dcfce7;
    color: #15803d;
}

.media-badge-video {
    background: #dbeafe;
    color: #0057d9;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 22px;
}

.empty-state i {
    font-size: 42px;
    color: #0057d9;
}

.empty-state h4 {
    margin-top: 14px;
    color: #10224f;
    font-weight: 800;
}

.empty-state p {
    color: #64748b;
    margin-bottom: 18px;
}

@media (max-width: 1400px) {
    .media-grid-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .media-preview-box {
        height: 125px;
    }
}

@media (max-width: 992px) {
    .media-grid-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-panel-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .media-grid-list {
        grid-template-columns: 1fr;
    }
}
.cmc-modal {
    border: none;
    border-radius: 28px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 30px 80px rgba(15, 23, 42, .25);
}

.cmc-modal-header {
    background: linear-gradient(135deg, #002f86, #0057d9);
    color: white;
    padding: 26px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.cmc-modal-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
}

.cmc-modal-header p {
    margin-top: 6px;
    margin-bottom: 0;
    opacity: .85;
    font-size: 13px;
}

.cmc-modal-body {
    padding: 28px;
}

.cmc-modal-footer {
    padding: 20px 28px 28px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.upload-dropzone {
    border: 2px dashed #c7d7ee;
    border-radius: 24px;
    padding: 50px 25px;
    text-align: center;
    background: #f8fbff;
    transition: .2s;
}

.upload-dropzone:hover {
    border-color: #0057d9;
    background: #f1f7ff;
}

.upload-dropzone i {
    font-size: 58px;
    color: #0057d9;
}

.upload-dropzone h4 {
    margin-top: 18px;
    margin-bottom: 8px;
    color: #10224f;
    font-weight: 800;
}

.upload-dropzone p {
    color: #64748b;
    margin-bottom: 22px;
}

.cmc-file-input {
    max-width: 420px;
    margin: auto;
    border-radius: 14px;
    padding: 12px;
    border: 1px solid #d7e2f0;
}

.upload-info {
    margin-top: 16px;
    font-size: 12px;
    color: #64748b;
}

.cmc-btn-secondary {
    background: #eef2f7;
    color: #334155;
    border: none;
    border-radius: 14px;
    padding: 11px 18px;
    font-weight: 700;
}

.cmc-btn-secondary:hover {
    background: #e2e8f0;
}

.modal-backdrop.show {
    opacity: .72;
    backdrop-filter: blur(5px);
}
.cmc-form-label {
    display: block;
    color: #10224f;
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 8px;
}

.cmc-select {
    max-width: 420px;
    margin: auto;
    border-radius: 14px;
    padding: 12px;
    border: 1px solid #d7e2f0;
}
.playlist-grid-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.playlist-card {
    background: #f8fafc;
    border: 1px solid #e6edf7;
    border-radius: 22px;
    padding: 20px;
    transition: .2s;
}

.playlist-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .10);
}

.playlist-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.playlist-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: #dbeafe;
    color: #0057d9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.playlist-status {
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.status-active {
    background: #dcfce7;
    color: #15803d;
}

.status-inactive {
    background: #fee2e2;
    color: #b91c1c;
}

.playlist-info {
    margin-top: 18px;
}

.playlist-info h4 {
    margin: 0;
    color: #10224f;
    font-size: 18px;
    font-weight: 800;
}

.playlist-info p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 12px;
}

.playlist-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 18px 0;
}

.playlist-metrics div {
    background: white;
    border: 1px solid #e6edf7;
    border-radius: 16px;
    padding: 12px;
    text-align: center;
}

.playlist-metrics strong {
    display: block;
    color: #10224f;
    font-size: 22px;
    font-weight: 900;
}

.playlist-metrics span {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.playlist-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cmc-btn-outline {
    background: white;
    color: #0057d9;
    border: 1px solid #c7d7ee;
    border-radius: 14px;
    padding: 11px 15px;
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cmc-btn-outline:hover {
    background: #f1f7ff;
    color: #004ec2;
}

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

.playlist-media-item {
    background: #f8fafc;
    border: 1px solid #e6edf7;
    border-radius: 18px;
    overflow: hidden;
}

.playlist-media-preview {
    height: 135px;
    background: #eaf0f8;
}

.playlist-media-preview img,
.playlist-media-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.playlist-media-info {
    padding: 12px;
}

.playlist-media-info strong {
    display: block;
    color: #10224f;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-media-info span {
    color: #64748b;
    font-size: 12px;
}

.playlist-media-picker {
    margin-top: 8px;
}

.playlist-media-picker-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.playlist-media-choice {
    display: none;
    position: relative;
    min-height: 108px;
    padding: 8px;
    gap: 10px;
    align-items: center;
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .07);
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.playlist-media-choice.is-visible {
    display: flex;
}

.playlist-media-choice:hover {
    border-color: rgba(0, 87, 217, .45);
    box-shadow: 0 12px 26px rgba(15, 23, 42, .11);
    transform: translateY(-1px);
}

.playlist-media-choice input {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 18px;
    height: 18px;
    z-index: 2;
}

.playlist-media-choice:has(input:checked) {
    border-color: #0057d9;
    box-shadow: 0 12px 28px rgba(0, 87, 217, .18);
}

.playlist-media-choice.is-disabled {
    opacity: .62;
    cursor: not-allowed;
}

.playlist-media-choice-preview {
    position: relative;
    display: block;
    flex: 0 0 128px;
    height: 72px;
    overflow: hidden;
    border-radius: 10px;
    background: #eaf0f8;
}

.playlist-media-choice-preview img,
.playlist-media-choice-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.playlist-video-indicator {
    position: absolute;
    right: 8px;
    bottom: 7px;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, .72);
}

.playlist-media-choice-info {
    min-width: 0;
}

.playlist-media-choice-info strong {
    display: block;
    color: #10224f;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.18;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.playlist-media-choice-info small,
.playlist-media-choice-info em {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
}

.playlist-media-choice-info em {
    color: #0057d9;
}

.playlist-media-picker-pagination {
    margin-top: 12px;
}

.playlist-media-page-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    pointer-events: none;
}

@media (max-width: 1400px) {
    .playlist-grid-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .playlist-grid-list,
    .playlist-media-modal-grid,
    .playlist-media-picker-grid {
        grid-template-columns: 1fr;
    }

    .playlist-media-choice-preview {
        flex-basis: 110px;
    }
}
.vinculos-grid-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.vinculo-card {
    background: #f8fafc;
    border: 1px solid #e6edf7;
    border-radius: 22px;
    padding: 20px;
    transition: .2s;
}

.vinculo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .10);
}

.vinculo-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.vinculo-card-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: #dbeafe;
    color: #0057d9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.vinculo-status {
    background: #dcfce7;
    color: #15803d;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.vinculo-card-body {
    display: grid;
    grid-template-columns: 1fr 46px 1fr;
    align-items: center;
    gap: 12px;
}

.vinculo-side {
    background: white;
    border: 1px solid #e6edf7;
    border-radius: 16px;
    padding: 14px;
    min-height: 92px;
}

.vinculo-side small {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.vinculo-side strong {
    display: block;
    color: #10224f;
    font-size: 15px;
    font-weight: 900;
}

.vinculo-side span {
    display: block;
    color: #64748b;
    font-size: 12px;
    margin-top: 4px;
}

.vinculo-arrow {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: #eef4ff;
    color: #0057d9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.vinculo-card-footer {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e6edf7;
    color: #64748b;
    font-size: 12px;
}

@media (max-width: 1200px) {
    .vinculos-grid-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .vinculo-card-body {
        grid-template-columns: 1fr;
    }

    .vinculo-arrow {
        transform: rotate(90deg);
        margin: auto;
    }
}
.report-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.report-mini-card {
    background: #f8fafc;
    border: 1px solid #e6edf7;
    border-radius: 18px;
    padding: 22px;
    text-align: center;
}

.report-mini-card strong {
    display: block;
    font-size: 42px;
    font-weight: 900;
    color: #10224f;
}

.report-mini-card span {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}
.login-body {
    min-height: 100vh;
    background: radial-gradient(circle at top left, #12345a 0, #07111f 38%, #050b14 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 420px;
    background: linear-gradient(180deg, #06172b, #020912);
    border-radius: 28px;
    padding: 34px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0,0,0,.35);
    border: 1px solid rgba(255,255,255,.10);
}

.login-logo {
    width: 160px;
    height: 160px;
    object-fit: contain;
    transform: scale(1.8);
    margin-bottom: 15px;
}

.login-card h2 {
    color: white;
    font-weight: 900;
}

.login-card p {
    color: #8fa3bf;
}

.login-card label {
    display: block;
    text-align: left;
    margin-top: 14px;
    margin-bottom: 6px;
    color: white;
    font-weight: 800;
    font-size: 13px;
}

.login-card .form-control {
    border-radius: 14px;
    padding: 12px;
}
.storage-box {
    background: #f8fafc;
    border: 1px solid #e6edf7;
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 20px;
}

.storage-box strong {
    display: block;
    color: #10224f;
    font-size: 14px;
    font-weight: 900;
}

.storage-box span {
    color: #64748b;
    font-size: 12px;
}

.storage-bar {
    margin-top: 12px;
    height: 10px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.storage-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #0057d9, #00b050);
    border-radius: 999px;
}

.cmc-delete-btn {
    width: calc(100% - 28px);
    margin: 0 14px 14px;
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: 14px;
    padding: 9px 12px;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
}

.cmc-delete-btn:hover {
    background: #fecaca;
}
.pontos-grid-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.ponto-card {
    background: #f8fafc;
    border: 1px solid #e6edf7;
    border-radius: 22px;
    padding: 20px;
    transition: .2s;
}

.ponto-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .10);
}

.ponto-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ponto-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: #dbeafe;
    color: #0057d9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.ponto-status {
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.ponto-info {
    margin-top: 18px;
}

.ponto-info h4 {
    margin: 0;
    color: #10224f;
    font-size: 18px;
    font-weight: 900;
}

.ponto-info p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 12px;
}

.ponto-code-box {
    margin: 18px 0;
    background: white;
    border: 1px solid #e6edf7;
    border-radius: 16px;
    padding: 14px;
}

.ponto-code-box small {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.ponto-code-box strong {
    color: #10224f;
    font-size: 21px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

@media (max-width: 1400px) {
    .pontos-grid-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .pontos-grid-list {
        grid-template-columns: 1fr;
    }
}
.logout-btn {
    width: 100%;
    margin-top: 8px;
    border: none;
    background: rgba(255,255,255,.08);
    color: white;
    border-radius: 14px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: .2s;
}

.logout-btn:hover {
    background: rgba(255,255,255,.14);
}

.sidebar-version {
    margin-top: 18px;
    text-align: center;
    color: #8fa3bf;
    font-size: 12px;
}
.sidebar .menu a,
.sidebar .menu a:link,
.sidebar .menu a:visited,
.sidebar .menu a:hover,
.sidebar .menu a:focus,
.sidebar .menu a:active {
    color: #b7c6d9;
    text-decoration: none !important;
}

.sidebar .menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
}

.sidebar .menu a:hover,
.sidebar .menu a.active {
    background: rgba(30, 136, 255, .16);
    color: #ffffff;
}

.sidebar .menu a i {
    width: 22px;
    text-align: center;
    font-size: 17px;
    color: inherit;
}

/* =========================================================
   CMC CONEXÃO - AJUSTE FINAL DA SIDEBAR / MENU / LOGOUT
   Bloco final com prioridade para corrigir alinhamento.
   ========================================================= */

.sidebar {
    width: 280px !important;
    background: linear-gradient(180deg, #031326 0%, #020b16 100%) !important;
    color: white !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 16px 14px !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    overflow: hidden !important;
}

.main {
    margin-left: 280px !important;
    width: calc(100% - 280px) !important;
}

.brand {
    height: 215px !important;
    min-height: 215px !important;
    max-height: 215px !important;
    margin: 0 0 8px 0 !important;
    padding-top: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    overflow: visible !important;
    flex-shrink: 0 !important;
}

.brand-logo {
    width: 118px !important;
    height: 118px !important;
    object-fit: contain !important;
    transform: scale(3.05) !important;
    transform-origin: center center !important;
    margin: 8px auto 26px auto !important;
    display: block !important;
    filter: drop-shadow(0 0 14px rgba(255,255,255,.08)) !important;
    flex-shrink: 0 !important;
}

.brand-system {
    font-size: 20px !important;
    font-weight: 900 !important;
    color: white !important;
    margin: 0 !important;
    line-height: 1.1 !important;
    text-align: center !important;
}

.brand-subtitle {
    font-size: 13px !important;
    color: var(--cmc-muted) !important;
    margin-top: 6px !important;
    line-height: 1.1 !important;
    text-align: center !important;
}

.menu {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.sidebar .menu a,
.sidebar .menu a:link,
.sidebar .menu a:visited,
.sidebar .menu a:focus,
.sidebar .menu a:active {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    height: 38px !important;
    padding: 0 12px !important;
    border-radius: 13px !important;
    color: #b7c6d9 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 650 !important;
    line-height: 1 !important;
    transition: background .18s ease, color .18s ease, transform .18s ease !important;
}

.sidebar .menu a:hover,
.sidebar .menu a.active {
    background: rgba(30, 136, 255, .18) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.sidebar .menu a:hover {
    transform: translateX(2px) !important;
}

.sidebar .menu a i {
    width: 22px !important;
    min-width: 22px !important;
    text-align: center !important;
    font-size: 16px !important;
    color: inherit !important;
    line-height: 1 !important;
}

.sidebar .menu a span {
    color: inherit !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

.sidebar-footer {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    flex: 0 0 auto !important;
    margin: 10px 0 0 0 !important;
    color: var(--cmc-muted) !important;
    font-size: 12px !important;
}

.admin-box {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: 58px !important;
    padding: 8px 10px !important;
    margin: 0 0 8px 0 !important;
    border-radius: 15px !important;
    background: rgba(255,255,255,.045) !important;
    border: 1px solid rgba(255,255,255,.07) !important;
}

.admin-avatar {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border-radius: 12px !important;
    background: rgba(30,136,255,.18) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #7db7ff !important;
    font-size: 15px !important;
    flex-shrink: 0 !important;
}

.admin-box > div:last-child {
    min-width: 0 !important;
}

.admin-box strong {
    display: block !important;
    color: #ffffff !important;
    font-size: 13px !important;
    line-height: 1.15 !important;
    margin: 0 0 5px 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.admin-box small {
    display: block !important;
    color: #8fa3bf !important;
    font-size: 11px !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.logout-btn {
    width: 100% !important;
    height: 43px !important;
    margin: 0 !important;
    border: none !important;
    background: rgba(255,255,255,.08) !important;
    color: white !important;
    border-radius: 14px !important;
    padding: 0 14px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: .2s !important;
}

.logout-btn:hover {
    background: rgba(255,255,255,.14) !important;
}

.sidebar-version {
    margin-top: 12px !important;
    text-align: center !important;
    color: #8fa3bf !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
}

.sidebar-version strong {
    color: #b7c6d9 !important;
    font-size: 12px !important;
}

.sidebar-version small {
    color: #8fa3bf !important;
    font-size: 11px !important;
}

@media (max-height: 760px) {
    .brand {
        height: 190px !important;
        min-height: 190px !important;
        max-height: 190px !important;
        padding-top: 6px !important;
    }

    .brand-logo {
        width: 108px !important;
        height: 108px !important;
        transform: scale(2.75) !important;
        margin-bottom: 20px !important;
    }

    .brand-system {
        font-size: 18px !important;
    }

    .brand-subtitle {
        font-size: 12px !important;
        margin-top: 4px !important;
    }

    .sidebar .menu a,
    .sidebar .menu a:link,
    .sidebar .menu a:visited,
    .sidebar .menu a:focus,
    .sidebar .menu a:active {
        height: 35px !important;
        font-size: 13px !important;
    }

    .admin-box {
        min-height: 54px !important;
        padding: 7px 9px !important;
    }

    .logout-btn {
        height: 40px !important;
    }

    .sidebar-version {
        margin-top: 8px !important;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 78px !important;
        padding: 18px 10px !important;
    }

    .main {
        margin-left: 78px !important;
        width: calc(100% - 78px) !important;
    }

    .brand {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        padding-top: 0 !important;
        margin-bottom: 18px !important;
    }

    .brand-logo {
        width: 48px !important;
        height: 48px !important;
        transform: none !important;
        margin: 0 auto !important;
    }

    .brand-system,
    .brand-subtitle,
    .sidebar .menu a span,
    .sidebar-footer {
        display: none !important;
    }

    .sidebar .menu a {
        justify-content: center !important;
        padding: 0 !important;
    }
}
.brand,
.brand-logo {
    pointer-events: none;
}

.menu {
    position: relative;
    z-index: 10;
}

.menu a {
    position: relative;
    z-index: 11;
}
.config-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cmc-table-wrap {
    overflow-x: auto;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.035);
}

.cmc-table {
    color: var(--cmc-text);
    margin-bottom: 0;
}

.cmc-table thead th {
    color: #d7e6f8;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.045);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.cmc-table tbody td {
    color: var(--cmc-text);
    border-bottom: 1px solid rgba(255,255,255,.06);
    font-size: 13px;
}

.config-badge {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(30,136,255,.35);
    background: rgba(30,136,255,.14);
    color: #cfe6ff;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.config-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.config-reset-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.config-reset-form .cmc-select {
    width: 140px;
    min-height: 36px;
}

.config-unit-card {
    min-height: 180px;
}

.unit-storage-form {
    margin-top: 14px;
}

.unit-storage-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.unit-storage-row .cmc-select {
    width: 100%;
    max-width: none;
    margin: 0;
    min-height: 42px;
}

.unit-storage-row .cmc-action-btn {
    min-height: 42px;
    padding: 9px 13px;
    border-radius: 12px;
}

@media (max-width: 1100px) {
    .config-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .config-cards {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Correção visual da tela Configurações / Gestão administrativa
   Mantém o tema premium claro dentro do painel branco.
   ========================================================= */
.config-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0 20px;
}

.config-stat-card {
    min-height: 112px;
    background: #ffffff;
    border: 1px solid #e6edf7;
    border-radius: 18px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
}

.config-stat-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 25px;
    flex: 0 0 58px;
}

.config-stat-card small,
.config-stat-card strong,
.config-stat-card span {
    display: block;
    line-height: 1.15;
}

.config-stat-card small {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 6px;
}

.config-stat-card strong {
    color: #0f172a;
    font-size: 21px;
    font-weight: 900;
    white-space: nowrap;
}

.config-stat-card span {
    color: #64748b;
    font-size: 13px;
    margin-top: 4px;
}

.config-stat-card.blue .config-stat-icon { background: #eaf2ff; color: #0057d9; }
.config-stat-card.green .config-stat-icon { background: #e9fbf2; color: #00a85a; }
.config-stat-card.purple .config-stat-icon { background: #f2eaff; color: #7c3aed; }
.config-stat-card.orange .config-stat-icon { background: #fff2e2; color: #f97316; }

.page-panel .cmc-table-wrap {
    border: 1px solid #e6edf7;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .04);
}

.page-panel .cmc-table {
    min-width: 940px;
}

.page-panel .cmc-table thead th {
    color: #64748b;
    background: #f8fafc;
    border-bottom: 1px solid #e6edf7;
    padding: 14px 16px;
}

.page-panel .cmc-table tbody td {
    color: #334155;
    background: #ffffff;
    border-bottom: 1px solid #eef2f7;
    padding: 16px;
    vertical-align: middle;
}

.page-panel .cmc-table tbody tr:hover td {
    background: #f8fbff;
}

.config-user-name {
    display: block;
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
}

.config-user-login {
    display: block;
    color: #64748b;
    font-size: 12px;
    margin-top: 3px;
}

.config-badge {
    background: #eaf2ff;
    border-color: #b8d6ff;
    color: #0057d9;
}

.config-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #475569;
    font-weight: 600;
}

.config-status i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}

.config-status.is-active i { background: #22c55e; }
.config-status.is-inactive i { background: #ef4444; }

.config-actions {
    gap: 10px;
    flex-wrap: nowrap;
}

.config-actions form {
    margin: 0;
}

.config-reset-form .cmc-select {
    width: 150px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid #d7e2f2;
    background: #ffffff;
    color: #0f172a;
}

.config-reset-btn,
.config-actions .cmc-btn-secondary {
    height: 44px;
    white-space: nowrap;
}

@media (max-width: 1300px) {
    .config-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .config-cards-grid { grid-template-columns: 1fr; }
    .page-panel-header { align-items: flex-start; flex-direction: column; }
    .config-actions { flex-wrap: wrap; }
}

/* =========================================================
   Configurações globais
   ========================================================= */
.config-global-form .cmc-form-label {
    color: #475569;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.config-global-form .cmc-select {
    min-height: 46px;
    border-radius: 14px;
    border: 1px solid #d7e2f2;
    background: #ffffff;
    color: #0f172a;
}

.config-switch-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.config-switch-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 1px solid #e6edf7;
    border-radius: 18px;
    background: #f8fbff;
    cursor: pointer;
}

.config-switch-card input {
    width: 20px;
    height: 20px;
    accent-color: #0057d9;
}

.config-switch-card strong,
.config-switch-card small {
    display: block;
}

.config-switch-card strong {
    color: #0f172a;
    font-weight: 900;
}

.config-switch-card small {
    color: #64748b;
    margin-top: 3px;
}

.config-switch-card.warning {
    background: #fff8ed;
}

.config-global-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e6edf7;
}

.config-global-footer small {
    color: #64748b;
}

@media (max-width: 1000px) {
    .config-switch-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .config-global-footer { align-items: stretch; flex-direction: column; }
}

/* Monitoramento de players */
.status-warning {
    background: rgba(245, 158, 11, .14);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, .28);
}

.ponto-monitor-box {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, .22);
    background: linear-gradient(180deg, rgba(248, 250, 252, .92), rgba(241, 245, 249, .72));
    display: grid;
    gap: 3px;
}

.ponto-monitor-box small {
    color: #64748b;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.ponto-monitor-box strong {
    color: #0f172a;
    font-size: .92rem;
}

.ponto-monitor-box span {
    color: #64748b;
    font-size: .82rem;
}

/* =========================================================
   CMC TV - Correção visual dos cards de Pontos/TVs
   Corrige alinhamento entre Abrir player e Excluir.
   ========================================================= */
.ponto-card {
    display: flex;
    flex-direction: column;
}

.ponto-actions {
    width: 100%;
    display: grid;
    gap: 12px;
    margin: 14px 0 0;
}

.ponto-main-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
}

.ponto-command-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ponto-actions form {
    width: 100%;
    margin: 0;
}

.ponto-actions .cmc-action-btn,
.ponto-actions .cmc-btn-secondary,
.ponto-actions .cmc-delete-btn {
    width: 100%;
    min-height: 48px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1;
    white-space: nowrap;
}

.ponto-actions .cmc-delete-btn {
    border-radius: 14px;
    padding: 12px 14px;
}

.cmc-danger-soft {
    background: #fff1f2 !important;
    border-color: #fecdd3 !important;
    color: #be123c !important;
}

@media (max-width: 520px) {
    .ponto-main-actions,
    .ponto-command-actions {
        grid-template-columns: 1fr;
    }
}

/* Agenda / Timeline */
.agenda-form-panel {
    padding: 20px;
}

.agenda-form-panel .page-panel-header {
    margin-bottom: 16px;
}

.agenda-form-panel .page-panel-header h3 {
    font-size: 19px;
}

.agenda-form {
    max-width: 980px;
}

.agenda-form-grid {
    row-gap: 14px !important;
}

.agenda-form .cmc-form-label {
    margin-bottom: 6px;
    color: #475569;
    font-size: 11px;
    line-height: 1.1;
}

.agenda-form .cmc-select {
    width: 100%;
    max-width: none;
    height: 40px;
    min-height: 40px;
    margin: 0;
    padding: 7px 11px;
    border-radius: 11px;
    font-size: 13px;
}

.agenda-status-card {
    width: 100%;
    min-height: 40px;
    margin: 0;
    padding: 7px 11px;
    border-radius: 11px;
}

.agenda-status-card input {
    width: 17px;
    height: 17px;
}

.agenda-status-card strong {
    font-size: 13px;
}

.agenda-status-card small {
    font-size: 11px;
}

.agenda-form .config-global-footer {
    margin-top: 18px;
    padding-top: 14px;
}

.agenda-footer-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.agenda-footer-actions .cmc-action-btn,
.agenda-footer-actions .cmc-btn-secondary {
    min-height: 40px;
    padding: 9px 15px;
    border-radius: 12px;
}

@media (max-width: 640px) {
    .agenda-form {
        max-width: none;
    }

    .agenda-footer-actions {
        justify-content: flex-end;
        width: 100%;
    }
}

/* Armazenamento por ponto */
.storage-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.storage-table-wrap {
    overflow-x: auto;
}

.storage-table {
    min-width: 1120px;
}

.storage-point-name {
    display: block;
    color: #0f172a;
    font-size: 14px;
}

.storage-usage {
    display: grid;
    grid-template-columns: minmax(96px, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-width: 160px;
}

.storage-usage strong {
    color: #334155;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.storage-usage-bar {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}

.storage-usage-bar span {
    display: block;
    height: 100%;
    min-width: 2px;
    border-radius: inherit;
    background: linear-gradient(90deg, #0057d9, #00b050);
}

.storage-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
}

.storage-status-ok {
    background: #dcfce7;
    color: #15803d;
}

.storage-status-alerta {
    background: #fef3c7;
    color: #b45309;
}

.storage-status-excedido {
    background: #fee2e2;
    color: #b91c1c;
}

.storage-details {
    min-width: 260px;
}

.storage-details summary {
    color: #0057d9;
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
}

.storage-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 12px;
    padding: 14px;
    border: 1px solid #e6edf7;
    border-radius: 16px;
    background: #f8fbff;
}

.storage-detail-grid h4 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
}

.storage-detail-grid ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.storage-detail-grid li {
    display: grid;
    gap: 2px;
    padding: 8px 10px;
    border: 1px solid #e6edf7;
    border-radius: 12px;
    background: #ffffff;
}

.storage-detail-grid li strong {
    color: #0f172a;
    font-size: 12px;
    font-weight: 900;
}

.storage-detail-grid li span,
.storage-detail-grid p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
}

.storage-empty-state {
    border: 0;
    background: transparent;
    padding: 42px 20px;
}

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

@media (max-width: 760px) {
    .storage-summary-grid {
        grid-template-columns: 1fr;
    }

    .storage-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* Streaming MVP */
.streaming-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.streaming-camera-panel {
    display: grid;
    grid-template-columns: minmax(240px, .65fr) minmax(320px, 1fr) minmax(210px, .45fr);
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}

.streaming-camera-copy {
    display: grid;
    gap: 12px;
}

.streaming-camera-copy h3 {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    font-weight: 900;
}

.streaming-camera-copy p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 13px;
}

.streaming-live-badge-muted {
    background: #eaf2ff;
    color: #0057d9;
}

.streaming-camera-preview-wrap {
    position: relative;
    min-height: 180px;
    overflow: hidden;
    border: 1px solid #dbe6f5;
    border-radius: 18px;
    background: #020617;
    aspect-ratio: 16 / 9;
}

.streaming-camera-preview-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
}

.streaming-camera-preview-wrap video.is-active {
    opacity: 1;
}

.streaming-camera-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 8px;
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.streaming-camera-placeholder i {
    font-size: 34px;
}

.streaming-camera-placeholder[hidden] {
    display: none;
}

.streaming-camera-actions {
    display: grid;
    gap: 10px;
    align-content: center;
}

.streaming-camera-actions .cmc-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 42px;
    justify-content: center;
}

.streaming-webrtc-status {
    display: block;
    min-height: 36px;
    padding: 9px 11px;
    border-radius: 12px;
    background: #f8fbff;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.streaming-webrtc-status[data-status="success"] {
    background: #ecfdf3;
    color: #15803d;
}

.streaming-webrtc-status[data-status="warning"] {
    background: #fff7ed;
    color: #c2410c;
}

.streaming-webrtc-status[data-status="danger"] {
    background: #fef2f2;
    color: #b91c1c;
}

.streaming-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr);
    gap: 18px;
    align-items: start;
}

.streaming-form-panel,
.streaming-active-panel {
    min-height: 100%;
}

.streaming-form .cmc-select {
    width: 100%;
    max-width: none;
    margin: 0;
    min-height: 42px;
}

.streaming-points-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 20px 0 12px;
}

.streaming-points-header h4 {
    margin: 0;
    color: #0f172a;
    font-size: 15px;
    font-weight: 900;
}

.streaming-points-header span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

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

.streaming-point-card {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 13px 14px;
    border: 1px solid #e6edf7;
    border-radius: 16px;
    background: #f8fbff;
    cursor: pointer;
}

.streaming-point-card input {
    width: 18px;
    height: 18px;
    accent-color: #0057d9;
}

.streaming-point-card span,
.streaming-point-card strong,
.streaming-point-card small {
    display: block;
}

.streaming-point-card strong {
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
}

.streaming-point-card small {
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
}

.streaming-footer {
    margin-top: 18px;
}

.streaming-info {
    padding: 12px 14px;
    border: 1px solid #e6edf7;
    border-radius: 14px;
    background: #f8fbff;
}

.streaming-live-card {
    display: grid;
    gap: 14px;
}

.streaming-live-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 8px;
    padding: 7px 11px;
    border-radius: 999px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 12px;
    font-weight: 900;
}

.streaming-live-card h4 {
    margin: 0;
    color: #0f172a;
    font-size: 19px;
    font-weight: 900;
}

.streaming-live-card p {
    margin: -8px 0 0;
    color: #64748b;
    font-size: 13px;
}

.streaming-live-points {
    display: grid;
    gap: 10px;
}

.streaming-live-point {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 13px;
    border: 1px solid #e6edf7;
    border-radius: 15px;
    background: #ffffff;
}

.streaming-live-point strong,
.streaming-live-point span {
    display: block;
}

.streaming-live-point strong {
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
}

.streaming-live-point span {
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
}

.streaming-live-point em {
    flex: 0 0 auto;
    padding: 5px 9px;
    border-radius: 999px;
    background: #eaf2ff;
    color: #0057d9;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
}

.streaming-end-btn {
    width: 100%;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
}

.streaming-muted {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

.streaming-empty-state {
    padding: 42px 18px;
}

@media (max-width: 1220px) {
    .streaming-camera-panel {
        grid-template-columns: 1fr 1fr;
    }

    .streaming-camera-actions {
        grid-column: 1 / -1;
        grid-template-columns: 220px minmax(0, 1fr);
        align-items: center;
    }

    .streaming-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .streaming-summary-grid,
    .streaming-points-grid,
    .streaming-camera-panel,
    .streaming-camera-actions {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Modo operacional compacto
   Mantem identidade visual, reduzindo respiro para notebook.
   ========================================================= */
.cmc-compact-card {
    padding: 14px !important;
    border-radius: 18px !important;
}

.cmc-compact-table th,
.cmc-compact-table td {
    padding: 10px 12px !important;
    font-size: 12px !important;
}

.cmc-compact-form .cmc-select,
.cmc-compact-form .form-control,
.cmc-compact-form .form-select {
    min-height: 38px !important;
    padding: 7px 10px !important;
    border-radius: 11px !important;
    font-size: 13px !important;
}

.main {
    padding: 18px 20px !important;
}

.topbar {
    margin-bottom: 16px !important;
    gap: 12px !important;
}

.topbar-title h2 {
    font-size: 22px !important;
}

.topbar-title p {
    margin-top: 3px !important;
    font-size: 12px !important;
}

.topbar-widgets {
    gap: 8px !important;
}

.top-pill {
    min-width: 132px !important;
    padding: 7px 10px !important;
    gap: 7px !important;
}

.content {
    min-height: calc(100vh - 124px) !important;
}

.page-panel,
.panel-card,
.metric-card,
.config-unit-card {
    padding: 18px !important;
    border-radius: 20px !important;
}

.page-panel-header {
    gap: 12px !important;
    margin-bottom: 15px !important;
}

.page-panel-header h3 {
    font-size: 18px !important;
    line-height: 1.15 !important;
}

.page-panel-header p {
    margin-top: 3px !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
}

.cmc-cards,
.config-cards-grid,
.storage-summary-grid,
.streaming-summary-grid {
    gap: 10px !important;
    margin-bottom: 12px !important;
}

.cmc-card,
.config-stat-card,
.report-mini-card,
.storage-box {
    padding: 14px !important;
    border-radius: 18px !important;
}

.config-stat-card {
    gap: 12px !important;
    min-height: 92px !important;
}

.config-stat-card small,
.cmc-card small,
.storage-box span {
    font-size: 11px !important;
}

.config-stat-card strong {
    font-size: 22px !important;
}

.cmc-table th,
.cmc-table td,
.page-panel .cmc-table thead th,
.page-panel .cmc-table tbody td,
.table thead th,
.table td {
    padding: 10px 12px !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
}

.cmc-form-label,
.agenda-form .cmc-form-label,
.config-global-form .cmc-form-label {
    margin-bottom: 5px !important;
    font-size: 11px !important;
    line-height: 1.15 !important;
}

.cmc-select,
.form-control,
.form-select,
.config-global-form .cmc-select,
.config-reset-form .cmc-select {
    min-height: 38px !important;
    padding: 7px 10px !important;
    border-radius: 11px !important;
    font-size: 13px !important;
}

.cmc-action-btn,
.cmc-btn-secondary,
.cmc-delete-btn,
.config-reset-btn,
.config-actions .cmc-btn-secondary {
    min-height: 38px !important;
    padding: 8px 12px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
    gap: 7px !important;
}

.config-global-footer,
.streaming-footer,
.agenda-form .config-global-footer {
    margin-top: 12px !important;
    padding-top: 11px !important;
    gap: 10px !important;
}

.config-global-footer small {
    font-size: 11px !important;
}

/* Pontos / TVs */
.pontos-grid-list {
    gap: 12px !important;
}

.ponto-card {
    padding: 14px !important;
    border-radius: 18px !important;
}

.ponto-card:hover {
    transform: translateY(-1px) !important;
}

.ponto-icon {
    width: 44px !important;
    height: 44px !important;
    border-radius: 14px !important;
    font-size: 20px !important;
}

.ponto-status {
    padding: 4px 9px !important;
    font-size: 10px !important;
}

.ponto-info {
    margin-top: 11px !important;
}

.ponto-info h4 {
    font-size: 16px !important;
    line-height: 1.15 !important;
}

.ponto-info p {
    margin-top: 3px !important;
    font-size: 11px !important;
}

.ponto-code-box {
    margin: 11px 0 !important;
    padding: 10px 12px !important;
    border-radius: 13px !important;
}

.ponto-code-box small {
    margin-bottom: 3px !important;
    font-size: 10px !important;
}

.ponto-code-box strong {
    font-size: 17px !important;
    letter-spacing: 1px !important;
}

.ponto-monitor-box {
    margin-top: 8px !important;
    padding: 9px 11px !important;
    border-radius: 13px !important;
    gap: 2px !important;
}

.ponto-monitor-box small {
    font-size: 10px !important;
}

.ponto-monitor-box strong {
    font-size: 13px !important;
    line-height: 1.15 !important;
}

.ponto-monitor-box span {
    font-size: 11px !important;
    line-height: 1.22 !important;
}

.ponto-actions {
    gap: 8px !important;
    margin-top: 10px !important;
}

.ponto-actions .cmc-action-btn,
.ponto-actions .cmc-btn-secondary,
.ponto-actions .cmc-delete-btn {
    min-height: 40px !important;
    padding: 8px 10px !important;
}

/* Agenda, Armazenamento e Streaming */
.agenda-form-panel {
    padding: 16px !important;
}

.agenda-form-panel .page-panel-header {
    margin-bottom: 12px !important;
}

.agenda-form-grid {
    row-gap: 10px !important;
}

.agenda-form .cmc-select,
.agenda-status-card {
    min-height: 36px !important;
    height: 36px !important;
    padding: 6px 9px !important;
}

.agenda-status-card strong {
    font-size: 12px !important;
}

.agenda-status-card small {
    font-size: 10px !important;
}

.storage-usage {
    gap: 7px !important;
    min-width: 138px !important;
}

.storage-detail-grid {
    gap: 10px !important;
    margin-top: 9px !important;
    padding: 10px !important;
    border-radius: 13px !important;
}

.storage-detail-grid h4 {
    margin-bottom: 7px !important;
    font-size: 12px !important;
}

.storage-detail-grid ul {
    gap: 6px !important;
}

.storage-detail-grid li {
    padding: 7px 9px !important;
    border-radius: 10px !important;
}

.streaming-camera-panel {
    gap: 12px !important;
    margin-bottom: 12px !important;
}

.streaming-camera-copy {
    gap: 8px !important;
}

.streaming-camera-copy h3 {
    font-size: 16px !important;
}

.streaming-camera-copy p {
    font-size: 12px !important;
}

.streaming-camera-preview-wrap {
    min-height: 148px !important;
    border-radius: 15px !important;
}

.streaming-grid {
    gap: 12px !important;
}

.streaming-form .cmc-select {
    min-height: 38px !important;
}

.streaming-points-header {
    margin: 14px 0 9px !important;
}

.streaming-points-grid {
    gap: 8px !important;
}

.streaming-point-card {
    gap: 9px !important;
    padding: 10px 11px !important;
    border-radius: 13px !important;
}

.streaming-live-card {
    gap: 10px !important;
}

.streaming-live-card h4 {
    font-size: 17px !important;
}

.streaming-live-card p {
    margin-top: -5px !important;
    font-size: 12px !important;
}

.streaming-live-points {
    gap: 8px !important;
}

.streaming-live-point {
    padding: 9px 10px !important;
    border-radius: 12px !important;
}

.streaming-empty-state,
.storage-empty-state,
.empty-state {
    padding: 28px 16px !important;
}

@media (max-width: 900px) {
    .main {
        padding: 14px 12px !important;
    }

    .page-panel,
    .panel-card,
    .metric-card {
        padding: 14px !important;
    }

    .topbar {
        align-items: flex-start !important;
        flex-direction: column !important;
    }
}

.metric-card-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.metric-card-link:hover,
.metric-card-link:focus-visible {
    color: #fff;
    transform: translateY(-2px);
    filter: brightness(1.03);
    box-shadow: 0 16px 36px rgba(15, 23, 42, .2);
}

.dashboard-quick-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: -4px 0 16px;
}

.dashboard-quick-card {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 10px;
    row-gap: 2px;
    align-items: center;
    padding: 13px 15px;
    border-radius: 16px;
    background: #fff;
    color: #1f2937;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease;
}

.dashboard-quick-card span {
    grid-row: span 2;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef4ff;
    color: #0057d9;
    font-size: 18px;
}

.dashboard-quick-card strong {
    font-size: 13px;
    font-weight: 900;
}

.dashboard-quick-card small {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}

.dashboard-quick-card:hover,
.dashboard-quick-card:focus-visible {
    color: #1f2937;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .12);
}

@media (max-width: 900px) {
    .dashboard-quick-actions {
        grid-template-columns: 1fr;
    }
}

/* Pontos - resumo com detalhes em modal */
.ponto-summary-card {
    min-height: auto !important;
}

.ponto-summary-click {
    cursor: pointer;
    border-radius: 15px;
    outline: none;
}

.ponto-summary-click:focus-visible {
    box-shadow: 0 0 0 3px rgba(0, 87, 217, .16);
}

.ponto-summary-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.ponto-summary-box {
    min-height: 68px;
}

.ponto-summary-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 9px;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}

.ponto-summary-meta span,
.ponto-pending-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ponto-pending-pill {
    color: #b45309;
}

.ponto-details-modal .cmc-modal-header {
    align-items: flex-start;
    gap: 14px;
}

.ponto-details-modal .cmc-modal-header .btn-close {
    margin-left: 0;
}

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

.ponto-detail-section {
    min-width: 0;
}

.ponto-detail-section h4 {
    margin: 0 0 10px;
    color: #10224f;
    font-size: 14px;
    font-weight: 900;
}

.ponto-pending-section {
    margin-top: 14px;
}

.ponto-pending-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ponto-modal-footer {
    flex-wrap: wrap;
    justify-content: flex-start !important;
    gap: 8px !important;
}

.ponto-modal-footer form {
    margin: 0;
}

.ponto-modal-footer .cmc-action-btn,
.ponto-modal-footer .cmc-btn-secondary,
.ponto-modal-footer .cmc-delete-btn {
    min-height: 40px;
    margin: 0;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    white-space: nowrap;
}

.ponto-modal-footer .cmc-delete-btn {
    border-radius: 14px;
}

@media (max-width: 992px) {
    .ponto-detail-grid,
    .ponto-pending-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .ponto-summary-badges {
        justify-content: flex-start;
    }

    .ponto-details-modal .cmc-modal-header {
        flex-direction: column;
    }
}

/* Dashboard - Timeline visual da agenda */
.dashboard-timeline-card {
    min-height: auto !important;
}

.dashboard-timeline-subtitle {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    margin-top: 2px;
}

.dashboard-timeline-shell {
    margin-top: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.dashboard-timeline-axis {
    position: relative;
    min-width: 760px;
    height: 30px;
    margin: 0 8px;
    border-bottom: 1px solid #dbe4f0;
}

.dashboard-timeline-axis span {
    position: absolute;
    top: 2px;
    transform: translateX(-50%);
    color: #334155;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.dashboard-timeline-axis span::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 17px;
    width: 1px;
    height: 8px;
    background: #94a3b8;
}

.dashboard-timeline-track {
    position: relative;
    min-width: 760px;
    margin: 0 8px;
    border-radius: 18px;
    border: 1px solid #e6edf7;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(248, 250, 252, .9)),
        repeating-linear-gradient(90deg, rgba(148, 163, 184, .16) 0, rgba(148, 163, 184, .16) 1px, transparent 1px, transparent 80px),
        repeating-linear-gradient(0deg, transparent 0, transparent 84px, rgba(148, 163, 184, .16) 85px);
    overflow: visible;
}

.dashboard-timeline-gridline {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(71, 85, 105, .26);
}

.dashboard-timeline-item {
    position: absolute;
    min-width: 300px;
    min-height: 72px;
    border-radius: 14px;
    padding: 9px 12px;
    color: #0f172a !important;
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-left: 5px solid #0057d9;
    box-shadow: 0 9px 22px rgba(15, 23, 42, .10);
    display: grid;
    align-content: center;
    gap: 4px;
    overflow: hidden;
    z-index: 2;
}

.dashboard-timeline-item strong,
.dashboard-timeline-item span,
.dashboard-timeline-item small {
    display: inline-block;
    min-width: 0;
    color: inherit !important;
    overflow: hidden;
    white-space: nowrap;
    line-height: 1.12;
}

.dashboard-timeline-item strong {
    font-size: 13px;
    font-weight: 900;
    text-overflow: clip;
}

.dashboard-timeline-time {
    font-size: 11px;
    font-weight: 900;
    color: #0057d9 !important;
}

.dashboard-timeline-point {
    font-size: 11px;
    font-weight: 800;
    color: #334155 !important;
}

.dashboard-timeline-item small {
    font-size: 10px;
    font-weight: 800;
    color: #64748b !important;
    text-overflow: ellipsis;
}

.dashboard-timeline-item.is-overlap {
    border-color: #fed7aa;
    border-left-color: #f97316;
    background: #fff7ed;
    box-shadow: 0 9px 22px rgba(249, 115, 22, .16);
}

.dashboard-timeline-item.is-overlap .dashboard-timeline-time {
    color: #c2410c !important;
}

.dashboard-timeline-note {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(245, 158, 11, .12);
    color: #92400e;
    font-size: 11px;
    font-weight: 900;
}

.dashboard-timeline-empty {
    margin-top: 14px;
    padding: 18px;
    border-radius: 18px;
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
    color: #64748b;
    display: grid;
    justify-items: center;
    gap: 5px;
    text-align: center;
}

.dashboard-timeline-empty i {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef4ff;
    color: #0057d9;
    font-size: 19px;
}

.dashboard-timeline-empty strong {
    color: #10224f;
    font-size: 14px;
    font-weight: 900;
}

.dashboard-timeline-empty span {
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 900px) {
    .dashboard-timeline-axis,
    .dashboard-timeline-track {
        min-width: 680px;
    }
}
.cmc-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(148, 163, 184, .2);
}

.cmc-pagination-summary {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.cmc-pagination-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cmc-pagination .disabled {
    opacity: .45;
    cursor: not-allowed;
    pointer-events: none;
}

@media (max-width: 768px) {
    .cmc-pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .cmc-pagination-actions {
        justify-content: space-between;
    }
}

/* FASE 17E-HOTFIX - compactacao operacional sem alterar identidade visual */
.ponto-details-modal .cmc-modal-header,
.cmc-modal .cmc-modal-header {
    padding: 16px 18px;
}

.ponto-details-modal .cmc-modal-body,
.cmc-modal .cmc-modal-body {
    padding: 16px 18px;
}

.ponto-details-modal .cmc-modal-footer,
.cmc-modal .cmc-modal-footer {
    padding: 12px 18px;
    gap: 8px;
}

.ponto-detail-grid,
.ponto-pending-list {
    gap: 10px;
}

.ponto-detail-section {
    padding: 12px;
}

.ponto-detail-section h4 {
    margin-bottom: 8px;
    font-size: 12px;
}

.ponto-detail-item {
    gap: 3px;
    padding: 7px 0;
}

.ponto-detail-item small,
.ponto-detail-item span,
.ponto-pending-device small,
.media-library-meta,
.media-library-date,
.playlist-media-choice-info small,
.playlist-media-choice-info em,
.vinculo-card-footer,
.vinculo-side small,
.vinculo-side span {
    font-size: 11px;
}

.vinculos-grid-list {
    gap: 12px;
}

.vinculo-card {
    padding: 14px;
    min-height: auto;
}

.vinculo-card-top {
    margin-bottom: 10px;
}

.vinculo-card-icon {
    width: 38px;
    height: 38px;
    font-size: 17px;
}

.vinculo-card-body {
    gap: 12px;
    padding: 10px 0;
}

.vinculo-side {
    gap: 3px;
}

.vinculo-side strong {
    font-size: 14px;
}

.vinculo-card-footer {
    margin-top: 8px;
    padding-top: 8px;
}

.playlist-media-picker-grid {
    gap: 10px;
}

.playlist-media-choice {
    padding: 10px;
    gap: 9px;
    min-height: auto;
}

.playlist-media-choice-preview {
    width: 76px;
    min-width: 76px;
    height: 58px;
}

.playlist-media-choice-info strong {
    font-size: 12px;
    line-height: 1.18;
}

.media-library-card {
    min-height: auto;
}

.media-library-info,
.media-library-footer {
    padding: 10px 12px;
}

.media-library-preview {
    height: 132px;
}

.cmc-form-label {
    margin-bottom: 5px;
    font-size: 11px;
}

.cmc-select,
.cmc-input,
.cmc-modal .form-control,
.cmc-modal .form-select {
    min-height: 38px;
    padding-top: 7px;
    padding-bottom: 7px;
}

.cmc-action-btn,
.cmc-btn-secondary,
.cmc-delete-btn {
    min-height: 38px;
    padding: 8px 12px;
}

.vinculo-source-info {
    margin-top: 0;
    min-height: 38px;
    padding: 9px 11px;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    background: #f8fbff;
    display: grid;
    gap: 3px;
}

.vinculo-source-info strong {
    color: #10224f;
    font-size: 13px;
    font-weight: 900;
}

.vinculo-source-info span {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.vinculo-source-info a,
.ponto-inline-link {
    color: #0057d9;
    font-size: 11px;
    font-weight: 900;
    text-decoration: none;
}

.vinculo-source-info a:hover,
.ponto-inline-link:hover {
    color: #003f9e;
    text-decoration: underline;
}

.media-thumb-small[data-media-preview-src],
.media-library-preview[data-media-preview-src],
.playlist-media-preview [data-media-preview-src] {
    cursor: zoom-in;
}

.media-thumb-small[data-media-preview-src]:focus-visible,
.media-library-preview[data-media-preview-src]:focus-visible,
.playlist-media-preview [data-media-preview-src]:focus-visible {
    outline: 3px solid rgba(0, 87, 217, .35);
    outline-offset: 3px;
}

.cmc-media-preview-open {
    overflow: hidden;
}

.cmc-media-preview-modal[hidden] {
    display: none !important;
}

.cmc-media-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: grid;
    place-items: center;
    padding: 24px;
}

.cmc-media-preview-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, .78);
    backdrop-filter: blur(5px);
}

.cmc-media-preview-dialog {
    position: relative;
    width: min(1180px, 96vw);
    max-height: 92vh;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: #0f172a;
    box-shadow: 0 28px 80px rgba(2, 6, 23, .48);
    overflow: hidden;
}

.cmc-media-preview-header {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 56px 12px 16px;
    background: linear-gradient(135deg, #10224f, #0057d9);
    color: #ffffff;
}

.cmc-media-preview-header small {
    color: rgba(255, 255, 255, .72);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.cmc-media-preview-header strong {
    max-width: 100%;
    overflow: hidden;
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cmc-media-preview-close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cmc-media-preview-close:hover,
.cmc-media-preview-close:focus-visible {
    background: rgba(255, 255, 255, .24);
}

.cmc-media-preview-body {
    display: grid;
    place-items: center;
    min-height: 320px;
    max-height: calc(92vh - 64px);
    padding: 16px;
    background:
        linear-gradient(45deg, rgba(255, 255, 255, .035) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255, 255, 255, .035) 25%, transparent 25%),
        #020617;
    background-size: 22px 22px;
}

.cmc-media-preview-media {
    display: block;
    max-width: 100%;
    max-height: calc(92vh - 112px);
    width: auto;
    height: auto;
    border-radius: 14px;
    object-fit: contain;
    background: #020617;
}

video.cmc-media-preview-media {
    width: min(100%, 1120px);
}

@media (max-width: 768px) {
    .cmc-media-preview-modal {
        padding: 12px;
    }

    .cmc-media-preview-dialog {
        width: 100%;
        max-height: 94vh;
        border-radius: 18px;
    }

    .cmc-media-preview-body {
        min-height: 220px;
        max-height: calc(94vh - 64px);
        padding: 10px;
    }
}

@media (max-width: 768px) {
    .vinculo-card-body {
        grid-template-columns: 1fr;
    }

    .vinculo-arrow {
        transform: rotate(90deg);
    }
}
