.dashboard-saas .graph-card {
  background-color: #FFF;
  height: 250px;
  width: 350px;
  margin-right: 10px !important;
  margin-bottom: 10px !important;
}
.dashboard-saas .graph-card .graph-card-body .graph-card-title {
  font-family: "Ubuntu", sans-serif;
  font-weight: 500;
  font-size: 1rem;
  line-height: 160%;
  padding-bottom: 0rem;
}
.dashboard-saas .graph-card .graph-card-body .graph-card-subtitle {
  padding-top: 0rem;
}
.dashboard-saas .graph-card .graph-card-body .graph-card-subtitle span {
  font-family: "Ubuntu", sans-serif;
  font-weight: 500;
  font-size: 0.8rem;
  line-height: 160%;
  color: #434a63;
}
.dashboard-saas .graph-card .graph-card-body .graph-card-subtitle canvas {
  padding-top: 1rem;
}
.dashboard-saas .button {
  width: 7rem;
}
.dashboard-saas .graph-card {
  background-color: #FFF;
  height: 250px;
  width: 350px;
  margin-right: 10px !important;
  margin-bottom: 10px !important;
}
.dashboard-saas .graph-card .graph-card-body .graph-card-title {
  font-family: "Ubuntu", sans-serif;
  font-weight: 500;
  font-size: 1rem;
  line-height: 160%;
  padding-bottom: 0rem;
}
.dashboard-saas .graph-card .graph-card-body .graph-card-subtitle {
  padding-top: 0rem;
}
.dashboard-saas .graph-card .graph-card-body .graph-card-subtitle span {
  font-family: "Ubuntu", sans-serif;
  font-weight: 500;
  font-size: 0.8rem;
  line-height: 160%;
  color: #434a63;
}
.dashboard-saas .graph-card .graph-card-body .graph-card-subtitle canvas {
  padding-top: 1rem;
}
.dashboard-saas .button {
  width: 7rem;
}


.card-reappearing .chart-medium, .card-unfocusing .chart-medium, .card-hidden .chart-medium {
  max-height: 25vh;
}

.card-reappearing .chart-small, .card-unfocusing .chart-small, .card-hidden .chart-small {
    max-height: 10vh;
}

.card-focused .chart-small {
    height: 90vh !important;
    max-height: 70vh !important;
    min-height: 70vh !important;
}

.page:has(.card-focused .chart-small), .page:has(.card-reappearing .chart-small), .page:has(.card-unfocusing .chart-small) {
    overflow: hidden;
}

.card-focused .chart-medium {
  height: 90vh !important;
  max-height: 70vh !important;
  min-height: 70vh !important;
}

.page:has(.card-focused .chart-medium), .page:has(.card-reappearing .chart-medium), .page:has(.card-unfocusing .chart-medium) {
  overflow: hidden;
}

/* ───────────────────────── Visão Geral (redesign) ───────────────────────── */

/* KPI tile */
.csp-kpi-tile { display: flex; align-items: center; gap: .6rem; height: 100%; padding: .2rem .1rem; min-width: 0; }
.csp-kpi-tile.clickable { cursor: pointer; }
.csp-kpi-icon { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.csp-kpi-body { display: flex; flex-direction: column; min-width: 0; }
.csp-kpi-label { font-family: 'Ubuntu', sans-serif; font-size: .72rem; color: #8b90a3; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.csp-kpi-value { font-family: 'Ubuntu', sans-serif; font-size: 1.5rem; font-weight: 600; color: #2B304F; line-height: 1.25; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.csp-kpi-unity { font-size: .9rem; font-weight: 500; margin-left: 2px; color: #2B304F; }
.csp-kpi-subtitle { font-family: 'Ubuntu', sans-serif; font-size: .68rem; color: #9a9fb0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Cached data remains visible while the latest source responses are fetched. */
.csp-refresh-status { display: inline-flex; align-items: center; gap: .35rem; color: #6f768b; font-family: 'Ubuntu', sans-serif; font-size: .72rem; white-space: nowrap; }
.csp-refresh-status::before { content: ''; width: .58rem; height: .58rem; border: 2px solid #d6d9e2; border-top-color: #5C2D91; border-radius: 50%; animation: csp-refresh-spin .7s linear infinite; }
@keyframes csp-refresh-spin { to { transform: rotate(360deg); } }

/* Workload usage bars */
.csp-workload-list { display: flex; flex-direction: column; gap: .55rem; height: 100%; overflow: auto; padding: .2rem 0; }
.csp-workload-row { display: flex; flex-direction: column; gap: .25rem; }
.csp-workload-head { display: flex; align-items: center; gap: .4rem; font-family: 'Ubuntu', sans-serif; font-size: .78rem; color: #2B304F; }
.csp-workload-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.csp-workload-label { flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.csp-workload-pct { flex: 0 0 auto; font-weight: 600; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.csp-workload-track { width: 100%; height: 7px; background: #EEF1F6; border-radius: 4px; overflow: hidden; }
.csp-workload-fill { height: 100%; border-radius: 4px; transition: width .3s ease; }

/* Top users by consumption */
.csp-topusers { display: flex; flex-direction: column; height: 100%; }
.csp-topusers-tabs.lct-container--bar-only { height: auto; flex: 0 0 auto; margin-bottom: .45rem; overflow: visible; }
.csp-topusers-tabs .lct-bar { padding: 0 .1rem 0 0; background: transparent; border-bottom-color: #EEF1F6; }
.csp-topusers-tabs .lct-tab { padding: .28rem .45rem; font-size: .72rem; }
.csp-topusers-tabs .lct-tab-icon { font-size: 13px; }
.csp-topusers-tabs .lct-tab-badge { min-width: auto; height: 15px; padding: 0 4px; font-size: .58rem; }
.csp-topusers-body { flex: 1 1 auto; min-height: 0; overflow: auto; }
.csp-topusers-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .45rem; }
.csp-topusers-item { display: flex; align-items: center; gap: .5rem; }
.csp-topusers-rank { flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; background: #F1F5FB; color: #8b90a3; font-size: .68rem; display: flex; align-items: center; justify-content: center; font-family: 'Ubuntu', sans-serif; }
.csp-topusers-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.csp-topusers-name { font-family: 'Ubuntu', sans-serif; font-size: .76rem; color: #2B304F; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.csp-topusers-track { width: 100%; height: 5px; background: #EEF1F6; border-radius: 3px; overflow: hidden; }
.csp-topusers-fill { height: 100%; border-radius: 3px; }
.csp-topusers-value { flex: 0 0 auto; font-family: 'Ubuntu', sans-serif; font-size: .76rem; font-weight: 600; color: #2B304F; text-align: right; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; min-width: 54px; }
.csp-topusers-unity { font-weight: 400; color: #9a9fb0; font-size: .66rem; }

/* Secure Score gauge wrapper */
.csp-gauge-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; position: relative; overflow: hidden; }
.csp-gauge-wrap .gauge-chart { box-shadow: none; min-height: 0; padding: .2rem .4rem 1.7rem; }
.csp-gauge-wrap .gauge-chart > .header { display: none; }
.csp-gauge-wrap .gauge-chart > .chart { transform: translateY(-8%); }
.csp-gauge-meta { position: absolute; left: 0; right: 0; bottom: .45rem; text-align: center; font-family: 'Ubuntu', sans-serif; font-size: .72rem; color: #8b90a3; }

/* Lists (alerts / automation / users) */
.csp-alert-list, .csp-automation-list, .csp-userlist-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; height: 100%; overflow: auto; }
.csp-alert-item, .csp-automation-item, .csp-userlist-item { display: flex; align-items: center; gap: .5rem; }
.csp-alert-label, .csp-automation-label { flex: 1 1 auto; font-family: 'Ubuntu', sans-serif; font-size: .76rem; color: #2B304F; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.csp-alert-qty { flex: 0 0 auto; font-family: 'Ubuntu', sans-serif; font-size: .8rem; font-weight: 600; color: #2B304F; text-align: right; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; min-width: 32px; }

/* Status pills */
.csp-pill { flex: 0 0 auto; font-family: 'Ubuntu', sans-serif; font-size: .64rem; font-weight: 600; padding: .1rem .45rem; border-radius: 10px; white-space: nowrap; }
.csp-pill.success { background: #E6F4EA; color: #1E7E45; }
.csp-pill.warning { background: #FDF3DA; color: #B7791F; }
.csp-pill.danger { background: #FBE6E6; color: #C0392B; }
.csp-pill.info { background: #E8F0FB; color: #2B6CB0; }
.csp-pill.muted { background: #EEF1F6; color: #8b90a3; }

/* Users without license */
.csp-userlist-avatar { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: #5C2D91; color: #fff; font-size: .62rem; font-family: 'Ubuntu', sans-serif; display: flex; align-items: center; justify-content: center; }
.csp-userlist-info { display: flex; flex-direction: column; min-width: 0; }
.csp-userlist-name { font-family: 'Ubuntu', sans-serif; font-size: .76rem; color: #2B304F; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.csp-userlist-upn { font-family: 'Ubuntu', sans-serif; font-size: .66rem; color: #9a9fb0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sideModalReport {
    background-color: #fafafa;
    width: 100%;
    border-radius: 5px;
    margin-bottom: 0.6rem;
    display: flex;
    min-height: 1.8rem;
    vertical-align: middle;
    padding-top: 5px;
}

.rowContent {
    word-break: break-all;
}

.ticketLink:link {
    text-decoration: none !important;
}

.ticketLink:hover {
    text-decoration: none !important;
}

.ticketLink:visited {
    text-decoration: none !important;
}

.ticketLink:active {
    text-decoration: none !important;
}

.lcdashboard .card-frame:has(.no-content) {
    /*background-color:rgba(255,255,255,0.6) !important;*/
    opacity: .6;
}

.lcdashboard .card-frame:has(.no-content) .block-icons {
    display: none;
}

div.comparative {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: 10px;
}

div.comparative>p {
    font-size: 12px;
    color: var(--text-default);
}

.reconmentations {
    padding: 0px 8px;
    font-size: 12px;
    color: #6c63ff;
    cursor: pointer;
}

.lcdashboard .right-sidepanel {
    max-height: calc(100vh - 64px);
}

.suggestion-content {
    margin-top: 16px;
    max-height: calc(100vh - 240px);
    overflow-y: auto;
    padding-right: 0.5rem;
}

.right-sidepanel-content .suggestion-content .suggestion-paragraph {
    margin-bottom: 1rem;
    font-size: 14px;
}

.right-sidepanel-content .sideModalReport {
    margin-top: 16px;
    max-height: calc(100vh - 240px);
    padding-right: 0.5rem;
}
/* ─── Freshness / Status Bar ─────────────────────────────────────── */
.sync-freshness {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    margin-bottom: 16px;
}

.sync-freshness-ok {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.sync-freshness-warn {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.1) 0%, rgba(234, 179, 8, 0.05) 100%);
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.sync-freshness-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.sync-freshness-main {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.sync-freshness-icon { font-size: 16px; }

.sync-freshness-ok .sync-freshness-icon,
.sync-freshness-ok .sync-freshness-status { color: #22c55e; }

.sync-freshness-warn .sync-freshness-icon,
.sync-freshness-warn .sync-freshness-status { color: #eab308; }

.sync-freshness-error .sync-freshness-icon,
.sync-freshness-error .sync-freshness-status { color: #ef4444; }

.sync-freshness-details {
    display: flex;
    gap: 16px;
    color: #666;
    font-size: 11px;
}

.sync-freshness-note {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #999;
    font-size: 10px;
    font-style: italic;
}

.sync-freshness-note .disclaimer-icon {
    font-size: 12px;
}

/* ─── Summary Cards Row (matches SummaryCards pattern) ────────────── */
.sync-cards-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 16px;
    gap: 16px;
    margin-bottom: 20px;
    padding: 0 4px;
}

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

@media (max-width: 768px) {
    .sync-cards-container { grid-template-columns: 1fr; }
}

.sync-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sync-card-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
}
.sync-card-primary .sync-card-icon   { color: rgba(255, 255, 255, 0.8); }
.sync-card-primary .sync-card-title  { color: rgba(255, 255, 255, 0.9); }
.sync-card-primary .sync-card-value  { color: #fff; }
.sync-card-primary .sync-card-meta   { color: rgba(255, 255, 255, 0.7); }
.sync-card-primary .sync-card-footer { border-top-color: rgba(255, 255, 255, 0.2); }

.sync-card-clickable { cursor: pointer; }
.sync-card-clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.sync-card-clickable:hover .sync-card-arrow {
    transform: translateX(4px);
}

.sync-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
}
.sync-card-icon { font-size: 20px; color: #3b82f6; }
.sync-card-title {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    flex: 1 1;
}
.sync-card-arrow {
    font-size: 16px;
    color: #9ca3af;
    transition: transform 0.2s ease;
}

.sync-card-value {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.sync-card-meta {
    font-size: 11px;
    color: #9ca3af;
}

/* List-style items inside card */
.sync-card-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1;
}
.sync-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    border-bottom: 1px solid #f3f4f6;
}
.sync-list-item:last-child { border-bottom: none; }
.sync-list-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.sync-list-name {
    flex: 1 1;
    font-size: 12px;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sync-list-value {
    font-size: 12px;
    font-weight: 600;
    color: #111827;
}

.sync-card-footer {
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #f3f4f6;
}
.sync-card-link {
    font-size: 11px;
    color: #3b82f6;
    font-weight: 500;
}

/* ─── Service Status Row (3 columns) ─────────────────────────────── */
.sync-services-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 16px;
    gap: 16px;
    margin-bottom: 20px;
    padding: 0 4px;
}
@media (max-width: 900px) {
    .sync-services-row { grid-template-columns: 1fr; }
}
.sync-service-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
}
.sync-service-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.sync-service-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1;
}
.sync-service-name { font-size: 13px; font-weight: 600; color: #111827; }
.sync-service-detail { font-size: 11px; color: #6b7280; }
.sync-service-latency { font-size: 11px; color: #9ca3af; font-weight: 500; }

/* ─── Table Panel ────────────────────────────────────────────────── */
.sync-table-panel {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    margin-bottom: 20px;
}
.sync-table-panel-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f3f4f6;
}
.sync-table-panel-header .panel-icon  { font-size: 18px; color: #3b82f6; }
.sync-table-panel-header .panel-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    flex: 1 1;
}
.sync-table-panel-header .panel-badge {
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 12px;
    background: #eff6ff;
    color: #3b82f6;
}

/* ─── Inline table ───────────────────────────────────────────────── */
.sync-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.sync-table th {
    text-align: left;
    font-weight: 600;
    color: #6b7280;
    font-size: 11px;
    padding: 6px 8px;
    border-bottom: 2px solid #e5e7eb;
    white-space: nowrap;
}
.sync-table th.r { text-align: right; }
.sync-table td {
    padding: 6px 8px;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
}
.sync-table td.r { text-align: right; }
.sync-table tr:hover { background: #f9fafb; }
.sync-table tr:last-child td { border-bottom: none; }

/* ─── Status badges ──────────────────────────────────────────────── */
.sbadge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    white-space: nowrap;
}
.sbadge-ok   { background: rgba(34, 197, 94, 0.1);  color: #16a34a; }
.sbadge-warn { background: rgba(234, 179, 8, 0.1);  color: #ca8a04; }
.sbadge-err  { background: rgba(239, 68, 68, 0.1);  color: #dc2626; }
.sbadge-info { background: rgba(59, 130, 246, 0.1); color: #2563eb; }

.text-truncate {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
}

.cloud-infrastructure-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--background-white);
    font-family: 'Ubuntu', sans-serif;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 1.25rem;
}

.loading-message {
    font-size: 14px;
    font-family: 'Ubuntu', sans-serif;
    color: var(--text-light);
    margin: 0;
}

.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 1.25rem;
    padding: 2.5rem;
}

.error-icon {
    font-size: 4rem;
}

.error-message {
    font-size: 1rem;
    font-family: 'Ubuntu', sans-serif;
    color: var(--status-red);
    text-align: center;
    margin: 0;
    max-width: 31.25rem;
}

.retry-button {
    height: 40px;
    padding: 0.3rem 1.2rem;
    background: var(--button-primary-default);
    color: var(--text-default);
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Ubuntu', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-width: 135px;
}

.retry-button:hover {
    background-color: #ECEEF6;
}

.empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 2.5rem;
}

.empty-state p {
    font-size: 14px;
    font-family: 'Ubuntu', sans-serif;
    color: var(--text-light);
    text-align: center;
    margin: 0;
}

/* Ajustes para o LCDashboard */
.cloud-infrastructure-content .lcdashboard-cards-panel-body {
    height: 100%;
}

/* Responsividade */
@media (max-width: 768px) {
    .loading-message {
        font-size: 0.875rem;
    }

    .error-message {
        font-size: 0.875rem;
    }

    .error-icon {
        font-size: 3rem;
    }

    .retry-button {
        font-size: 12px;
    }
}


