﻿/* ═══════════════════════════════════════════
   DASHBOARD  –  LIGHT THEME + ANIMATIONS
   ═══════════════════════════════════════════ */

/* ── ORIGINAL CARD STYLES ── */
.new_green {
    color: #01f15c !important;
}

.my_card_main_dashboard {
    width: 100%;
    background-color: #28374e;
    border-radius: 20px;
    padding: 10px;
    color: #fff;
    padding-top: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.25s ease;
}

.my_card_main_dashboard:hover {
    transform: translateY(-6px);
    /* Stat cards use .dashboard-stat-tile:hover filter shadow (rounded); keep no box-shadow here */
    box-shadow: none;
}

.my_card_main_dashboard div { color: #fff; }
.my_card_main_dashboard span { color: #fff; }
.my_card_main_dashboard span i { color: #fff; }

.padding_tb_15 {
    padding-top: 15px;
    padding-bottom: 15px;
}

.pad-left-10-smart {
    padding-left: 1%;
    padding-right: 1%;
}

.pad-left-right30-smart {
    padding-right: 30px;
    padding-left: 30px;
}

table.tile_info td {
    width: 80px !important;
    direction: ltr !important;
}

.tile_count {
    margin-top: 0px !important;
}

.dashboard-widget-content .sidebar-widget {
    width: 35% !important;
}

#section_expire_01 { width: 60%; }
#section_expire_02 { width: 126px; display: inline-block; color: #04182c; font-size: 16px; }
#section_expire_03 { width: 126px; display: inline-block; color: #04182c; font-size: 16px; }

.nav-md .container.body .right_col { padding-left: 15px; }
.nav-sm .container.body .right_col { padding-left: 45px; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(25px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes cardPop {
    from { opacity: 0; transform: scale(0.92) translateY(15px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes rowSlideIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 175, 67, 0.3); }
    50%      { box-shadow: 0 0 0 8px rgba(0, 175, 67, 0); }
}

.anim-card {
    animation: cardPop 0.5s ease both;
}

.anim-fade-up {
    animation: fadeUp 0.55s ease both;
}

.anim-row {
    animation: rowSlideIn 0.4s ease both;
}

/* ── SECTION DIVIDER ── */
.sec-divider {
    display: flex;
    align-items: center;
    margin: 40px 15px 10px;
    gap: 16px;
}

.sec-divider__line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #dcdcdc, transparent);
}

.sec-divider__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #28374e;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulseGlow 2.5s ease-in-out infinite;
}

.sec-divider__icon i {
    font-size: 18px;
    color: #fff;
}

.sec-section-title {
    text-align: center;
    margin-bottom: 28px;
    padding: 0 15px;
}

.sec-section-title h3 {
    font-size: 20px;
    color: #28374e;
    margin: 0 0 5px;
    font-weight: 700;
    text-align: center !important;
}

.sec-section-title p {
    font-size: 13px;
    color: #7d7d7d;
    margin: 0;
}

/* ── SECURITY STAT CARDS ── */
.sec-stat-row {
    margin-bottom: 24px;
    padding: 0 8px;
}

.sec-stat-row > div {
    margin-bottom: 16px;
}

.sec-card {
    background: #fff;
    border-radius: 12px;
    padding: 22px 18px;
    text-align: center;
    border: 1px solid #eaeef3;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.sec-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

.sec-card__bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    transition: height 0.3s ease;
}

.sec-card:hover .sec-card__bar {
    height: 5px;
}

.sec-card__icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s ease;
}

.sec-card:hover .sec-card__icon-wrap {
    transform: scale(1.12) rotate(-5deg);
}

.sec-card__icon-wrap i {
    font-size: 22px;
}

.sec-card__number {
    font-size: 30px;
    font-weight: 800;
    color: #28374e;
    line-height: 1;
    margin-bottom: 6px;
}

.sec-card__label {
    font-size: 13px;
    color: #7d7d7d;
    letter-spacing: 0.2px;
}

/* Danger */
.sec-card--danger { border-color: #fde8e8; }
.sec-card--danger:hover { border-color: #f5c2c2; box-shadow: 0 12px 35px rgba(213, 0, 0, 0.1); }
.sec-card--danger .sec-card__bar { background: linear-gradient(90deg, #d50000, #ff5252); }
.sec-card--danger .sec-card__icon-wrap { background: #fde8e8; }
.sec-card--danger .sec-card__icon-wrap i { color: #d50000; }

/* Warning */
.sec-card--warning { border-color: #fff3e0; }
.sec-card--warning:hover { border-color: #ffe0b2; box-shadow: 0 12px 35px rgba(255, 152, 0, 0.1); }
.sec-card--warning .sec-card__bar { background: linear-gradient(90deg, #ff8f00, #ffab00); }
.sec-card--warning .sec-card__icon-wrap { background: #fff3e0; }
.sec-card--warning .sec-card__icon-wrap i { color: #ff8f00; }

/* Info */
.sec-card--info { border-color: #e0f4ff; }
.sec-card--info:hover { border-color: #b3e5fc; box-shadow: 0 12px 35px rgba(2, 136, 209, 0.1); }
.sec-card--info .sec-card__bar { background: linear-gradient(90deg, #0288d1, #29b6f6); }
.sec-card--info .sec-card__icon-wrap { background: #e0f4ff; }
.sec-card--info .sec-card__icon-wrap i { color: #0288d1; }

/* Accent */
.sec-card--accent { border-color: #f3e5f5; }
.sec-card--accent:hover { border-color: #e1bee7; box-shadow: 0 12px 35px rgba(156, 39, 176, 0.1); }
.sec-card--accent .sec-card__bar { background: linear-gradient(90deg, #7b1fa2, #ab47bc); }
.sec-card--accent .sec-card__icon-wrap { background: #f3e5f5; }
.sec-card--accent .sec-card__icon-wrap i { color: #7b1fa2; }

/* ── SECURITY PANELS ── */
.sec-panel {
    background: #fff;
    border: 1px solid #eaeef3;
    border-radius: 12px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: none;
    transition: none;
}

.sec-panel:hover {
    box-shadow: none;
}

.sec-panel__header {
    padding: 16px 22px;
    border-bottom: 1px solid #eaeef3;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f9fafb;
    color: #28374e;
    font-size: 15px;
    font-weight: 600;
}

.sec-panel__header i {
    font-size: 16px;
    width: 18px;
    text-align: center;
}

.sec-panel__body {
    padding: 20px 22px;
}

.sec-panel__body--table {
    padding: 0;
}

/* ── SECURITY TABLES ── */
.sec-table {
    width: 100%;
    border-collapse: collapse;
    direction: rtl;
}

.sec-table thead tr {
    background: #f4f6f9;
    border-bottom: 2px solid #eaeef3;
}

.sec-table thead th {
    padding: 13px 16px;
    font-size: 12.5px;
    font-weight: 600;
    color: #515151;
    text-align: right;
    white-space: nowrap;
}

.sec-table thead th i {
    font-size: 12px;
    margin-left: 5px;
    color: #7d7d7d;
}

.sec-table tbody tr {
    border-bottom: 1px solid #f0f2f5;
    transition: background 0.25s ease;
}

.sec-table tbody tr:hover {
    background: #f4f8ff;
}

.sec-table tbody td {
    padding: 12px 16px;
    font-size: 13px;
    color: #515151;
    text-align: right;
    vertical-align: middle;
}

.sec-table tbody tr:last-child {
    border-bottom: none;
}

.sec-table code {
    background: #eef6ff;
    color: #0d47a1;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 12.5px;
    font-family: Consolas, 'Courier New', monospace;
    direction: ltr;
    display: inline-block;
    border: 1px solid #d6e8fb;
}

.td-ltr {
    direction: ltr;
    text-align: left !important;
}

.dashboard-security-table .td-ltr > i.fa {
    display: none !important;
}

.td-bold-red {
    font-weight: 700;
    color: #d50000 !important;
}

/* Icon colors */
.sec-icon--danger { color: #d50000; }
.sec-icon--warning { color: #ff8f00; }
.sec-icon--info { color: #0288d1; }

/* ── BADGES ── */
.sec-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
}

.sec-badge--danger {
    background: #fde8e8;
    color: #d50000;
    border: 1px solid #f5c2c2;
}

.sec-badge--warning {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffe0b2;
}

.sec-badge--info {
    background: #e0f4ff;
    color: #0277bd;
    border: 1px solid #b3e5fc;
}

.sec-badge--success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.sec-badge--accent {
    background: #f3e5f5;
    color: #7b1fa2;
    border: 1px solid #e1bee7;
}

/* ── ATTACK TYPE LABELS ── */
.sec-attack {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 5px;
    font-size: 11.5px;
    font-weight: 600;
}

.sec-attack--brute   { background: #fde8e8; color: #c62828; }
.sec-attack--sql     { background: #fff3e0; color: #e65100; }
.sec-attack--xss     { background: #f3e5f5; color: #7b1fa2; }
.sec-attack--ddos    { background: #fce4ec; color: #b71c1c; }
.sec-attack--scan    { background: #e0f4ff; color: #01579b; }
.sec-attack--default { background: #eceff1; color: #546e7a; }

/* ── EMPTY STATE ── */
.sec-empty {
    padding: 40px 20px;
    text-align: center;
    color: #7d7d7d;
    font-size: 14px;
}

.sec-empty i {
    font-size: 32px;
    color: #00af43;
    display: block;
    margin-bottom: 10px;
}

/* ── PANEL HIGHLIGHT (on scroll from stat card) ── */
.sec-panel--highlight {
    transition: border-color 0.3s ease;
    box-shadow: none !important;
    border-color: rgba(0, 175, 67, 0.5) !important;
}

/* ── CHART ── */
#chartThreatTrend {
    width: 100% !important;
}

/* ── RESPONSIVE ── */
@media screen and (min-width:768px) and (max-width:991px) {
    .pad-left-right30-smart {
        padding-right: 0;
        padding-left: 0;
    }
}

@media screen and (max-width:768px) {
    .sec-divider { margin: 30px 10px 8px; }

    .sec-section-title h3 { font-size: 17px; }

    .sec-table { min-width: 580px; }
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media screen and (max-width:458px) {
    .pad-left-right30-smart {
        padding-right: 0;
        padding-left: 0;
    }

    #div_expire_date {
        display: none;
    }

    .sec-card { padding: 16px 12px; }
    .sec-card__number { font-size: 24px; }
    .sec-card__icon-wrap { width: 46px; height: 46px; }
    .sec-card__icon-wrap i { font-size: 18px; }
    .sec-section-title h3 { font-size: 15px; }
}

/* ═══════════════════════════════════════════
   DASHBOARD REFRESH
   ═══════════════════════════════════════════ */

:root {
    /* Align with panel theme (custom.min.css + my_elements.css) */
    --dash-bg: #f7f7f7;
    --dash-surface: #ffffff;
    --dash-border: #dcdcdc;
    --dash-heading: #515151;
    --dash-muted: #7d7d7d;
    --dash-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    --dash-shadow-hover: 0 4px 14px rgba(0, 0, 0, 0.08);
    /* Same as پنل «تمدید قرارداد»: آیکن تقویم «باقی مانده» + خط سبز gauge (strokeColor در usr-fa-dashboard.js) */
    --dash-calendar-baghimande-green: #00af43;
}

.dashboard-shell {
    background: var(--dash-surface);
    padding: 0 !important;
    padding-bottom: 20px !important;
    min-height: 100vh !important;
}

.dashboard-page-header {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    padding: 44px 15px;
    border: none;
    border-radius: 0;
    background: var(--dash-bg);
    box-shadow: none;
    text-align: center;
}

.dashboard-page-header::before {
    content: none;
}

.dashboard-page-header__eyebrow {
    display: none;
}

.dashboard-page-header__title {
    margin: 0;
    padding: 0;
    color: var(--dash-heading);
    font-size: 20px;
    font-weight: 700;
    text-align: center !important;
}

.dashboard-page-header__subtitle {
    margin: 10px auto 0;
    max-width: 900px;
    color: var(--dash-muted);
    font-size: 13px;
    line-height: 1.9;
}

.dashboard-stats {
    position: relative;
    margin: 0 -8px 12px !important;
}

.dashboard-stat-tile {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    transition: filter 0.25s ease;
}

/* drop-shadow follows the rounded alpha shape — tight footprint so neighbors stay clean */
.dashboard-stats .dashboard-stat-tile:hover {
    filter:
        drop-shadow(0 5px 12px rgba(40, 55, 78, 0.22))
        drop-shadow(0 8px 18px rgba(40, 55, 78, 0.12));
}

.dashboard-stat-tile .dashboard-stat-card {
    height: 100%;
    min-height: 0 !important;
    box-sizing: border-box;
}

.dashboard-stats .tile_stats_count {
    padding: 0 8px !important;
    margin-bottom: 16px;
    overflow: visible;
}

.dashboard-stats .tile_stats_count:before {
    display: none !important;
}

.dashboard-stat-link {
    display: block;
    color: inherit !important;
    text-decoration: none !important;
}

.dashboard-stat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 220px;
    padding: 24px 20px 22px;
    overflow: hidden;
    border: none;
    border-radius: 20px;
    background-color: #28374e;
    background-clip: padding-box;
    box-shadow: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Small top gap so icon + title sit clearly above the card’s vertical midpoint */
.dashboard-stat-card::before {
    content: '';
    flex: 0 0 9%;
    flex-shrink: 0;
    width: 0;
    min-height: 0;
    pointer-events: none;
}

.dashboard-stat-card:hover {
    transform: translateY(-6px);
    /* Shadow drawn on .dashboard-stat-tile via filter drop-shadow (fully rounded silhouette) */
    box-shadow: none;
}

.dashboard-stat-card > div,
.dashboard-stat-card span {
    position: relative;
    z-index: 1;
    color: inherit;
}

.dashboard-stat-card__icon {
    width: 93.6px;
    height: 93.6px;
    margin-top: -5px;
    margin-bottom: 23.4px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-stat-card__icon .fa {
    color: #fff !important;
    font-size: 39px !important;
}

.dashboard-stat-card .padding_tb_15 {
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 10px;
    margin-bottom: 10.4px;
}

.dashboard-stat-title {
    display: block;
    min-height: 76px;
    color: var(--dash-calendar-baghimande-green) !important;
    font-size: 20px !important;
    font-weight: 700;
    line-height: 1.8;
}

/* بالاتر از .dashboard-stat-card span { color: inherit } */
.dashboard-stat-card span.dashboard-stat-title {
    color: var(--dash-calendar-baghimande-green) !important;
}

.dashboard-calendar-icon--baghimande {
    color: var(--dash-calendar-baghimande-green) !important;
}

.dashboard-stat-value {
    flex: 1 1 auto;
    min-height: 0;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 800;
    line-height: 1.35 !important;
    word-break: break-word;
}

/* محصولات: «عدد» ثابت + مقدار از بک‌اند — همان تایپوگرافی .dashboard-stat-value */
.dashboard-stat-value--with-suffix {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
}

.dashboard-stat-value--num-then-suffix {
    flex-wrap: nowrap;
    direction: rtl;
}

.dashboard-stat-value--with-suffix > span {
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    color: #fff !important;
}

.dashboard-stat-value .dashboard-stat-value-suffix {
    white-space: nowrap;
}

/* کارت‌ها: دو ستون — راست داده، چپ برچسب (direction:rtl روی گرید) */
.dashboard-stat-two-col,
.dashboard-stat-metric-grid {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    margin-top: 2px;
}

.dashboard-stat-two-col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4px 6px;
    align-items: center;
    direction: rtl;
}

.dashboard-stat-two-col__data {
    min-width: 0;
    text-align: left;
    justify-self: stretch;
    padding: 4px 6px;
}

.dashboard-stat-two-col__labels {
    min-width: 0;
    text-align: right;
    justify-self: stretch;
    padding: 4px 6px;
}

.dashboard-stat-two-col__label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.92) !important;
    word-break: break-word;
}

.dashboard-stat-two-col__data > .dashboard-stat-value {
    flex: 0 1 auto !important;
}

/* همهٔ کارت‌های آماری: همان موقعیت، فونت و اندازهٔ کارت محصولات */
.dashboard-stat-card__body-center {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    min-height: 0;
    padding-top: 2px;
    position: relative;
    top: -20px;
}

.dashboard-stat-card__body-center > .dashboard-stat-two-col,
.dashboard-stat-card__body-center > .dashboard-stat-metric-grid {
    flex: 0 0 auto !important;
    margin-top: 0;
    width: 100%;
    max-width: 100%;
}

.dashboard-stats .dashboard-stat-card__body-center .dashboard-stat-two-col__label {
    font-size: 15px !important;
    font-weight: 800;
    line-height: 1.35;
    color: #fff !important;
}

.dashboard-stats .dashboard-stat-card__body-center .dashboard-stat-two-col__data {
    font-size: 15px !important;
    font-weight: 800;
    line-height: 1.35;
}

.dashboard-stats .dashboard-stat-card__body-center .dashboard-stat-two-col__data * {
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
}

.dashboard-stats .dashboard-stat-card__body-center .dashboard-stat-two-col__data .dashboard-stat-value {
    font-size: inherit !important;
}

.dashboard-stats .dashboard-stat-card__body-center .dashboard-stat-two-col__data .dashboard-stat-license-line-metric {
    font-size: inherit !important;
}

.dashboard-stats .dashboard-stat-card__body-center .dashboard-stat-metric-grid__label {
    font-size: 15px !important;
    font-weight: 800;
    line-height: 1.35;
    color: #fff !important;
}

.dashboard-stats .dashboard-stat-card__body-center .dashboard-stat-metric-grid__value {
    font-size: 15px !important;
    font-weight: 800;
    line-height: 1.35;
}

.dashboard-stats .dashboard-stat-card__body-center .dashboard-stat-metric-grid__value * {
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
}

.dashboard-stats .dashboard-stat-card__body-center .dashboard-stat-metric-grid .dashboard-stat-license-line-metric {
    font-size: 15px !important;
}

/* لایسنس: ۴ ردیف × ۲ ستون */
.dashboard-stat-metric-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4px 6px;
    align-items: center;
    direction: rtl;
}

.dashboard-stat-metric-grid__value {
    min-width: 0;
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
    text-align: left;
    justify-self: stretch;
    padding: 4px 6px;
}

/* همان div هم __value هم license-line-metric دارد؛ برای چپ‌چین ستون داده */
.dashboard-stat-metric-grid__value.dashboard-stat-license-line-metric {
    width: 100%;
    direction: ltr;
    justify-content: flex-start !important;
    text-align: left;
    /* .dashboard-stat-license-line-metric عمومی padding:0 !important دارد؛ هم‌تراز با سلول‌های گرید */
    padding: 4px 6px !important;
}

.dashboard-stat-metric-grid__label {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.92) !important;
    text-align: right;
    justify-self: stretch;
    word-break: break-word;
    padding: 4px 6px;
}

.dashboard-stat-license-line-metric {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    flex: 0 0 auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: baseline !important;
    justify-content: center !important;
    gap: 6px;
    direction: rtl;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    color: #fff !important;
    word-break: normal;
}

.dashboard-stat-license-line-metric > span:first-of-type {
    unicode-bidi: plaintext;
}

/* پنل چارت لایسنس: جدول کنار نمودار مخفی؛ مقادیر در کارت بالاست */
.dashboard-chart-panel--license-chart .dashboard-panel-metrics {
    display: none !important;
}

.dashboard-chart-panel--license-chart .dashboard-panel-split {
    justify-content: center;
}

.dashboard-chart-panel--license-chart .dashboard-panel-visual {
    flex: 1 1 auto;
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
}

/* Same green as green ticks (.sec-empty i → #00af43); translucent so white icons stay readable on dark cards */
.dashboard-stat-col .dashboard-stat-card__icon {
    background: rgba(0, 175, 67, 0.22);
    border: 1px solid rgba(0, 175, 67, 0.55);
    box-sizing: border-box;
}

/* ── DETAILS BUTTON FOOTER ── */
.dashboard-stat-card__footer {
    width: 100%;
    margin-top: auto;
    padding-top: 14px;
    padding-bottom: 14px;
    display: flex;
    justify-content: center;
}

.dashboard-stat-details-btn {
    display: block;
    width: 50%;
    padding: 9px 0;
    background: rgba(0, 175, 67, 0.22);
    color: #fff !important;
    font-size: 14px;
    font-weight: 400;
    text-align: center;
    text-decoration: none !important;
    border-radius: 10px;
    border: 1px solid rgba(0, 175, 67, 0.55);
    letter-spacing: 0.3px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: background 0.22s ease, transform 0.18s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    cursor: pointer;
}

.dashboard-stat-details-btn:hover {
    background: rgba(0, 175, 67, 0.42);
    border-color: rgba(0, 175, 67, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 175, 67, 0.28);
    color: #fff !important;
    text-decoration: none !important;
}

.dashboard-stat-details-btn:active {
    transform: translateY(0);
    box-shadow: none;
    background: rgba(0, 175, 67, 0.55);
}

.dashboard-stat-details-btn--active {
    background: rgba(0, 175, 67, 0.5) !important;
    border-color: rgba(0, 175, 67, 0.95) !important;
    box-shadow: 0 0 0 1px rgba(0, 175, 67, 0.35) inset;
}

/* ── STAT CARD TIGHT (cloud + licenses) ── */
.dashboard-stat-card--tight::before {
    flex: 0 0 5%;
}

.dashboard-stat-card--tight .dashboard-stat-card__icon {
    margin-bottom: 16px;
}

.dashboard-stat-card--tight .dashboard-stat-card__body-center {
    padding-top: 0;
}

.dashboard-security-detail-host {
    margin-top: 4px;
    margin-bottom: 20px;
    padding-left: 1%;
    padding-right: 1%;
}

.dashboard-security-detail--hidden {
    display: none !important;
}

@media screen and (min-width: 992px) {
    .dashboard-stats .dashboard-stat-tile .dashboard-stat-card {
        padding: 18px 12px 16px;
    }

    .dashboard-stats .dashboard-stat-title {
        min-height: 60px;
        font-size: 20px !important;
        line-height: 1.45;
    }

    .dashboard-stats .dashboard-stat-card__icon {
        width: 72.8px;
        height: 72.8px;
        margin-top: -4px;
        margin-bottom: 13px;
    }

    .dashboard-stats .dashboard-stat-card__icon .fa {
        font-size: 31.2px !important;
    }

    .dashboard-stats .dashboard-stat-value {
        font-size: 15px !important;
    }

    .dashboard-stats .dashboard-stat-card__body-center .dashboard-stat-two-col__data .dashboard-stat-value,
    .dashboard-stats .dashboard-stat-card__body-center .dashboard-stat-metric-grid__value {
        font-size: inherit !important;
    }
}

.dashboard-section-title {
    margin: 8px 8px 24px;
    text-align: right;
}

.dashboard-section-title h2 {
    margin: 0 0 8px;
    color: var(--dash-heading);
    font-size: 24px;
    font-weight: 800;
    text-align: right !important;
}

.dashboard-section-title p {
    margin: 0;
    color: var(--dash-muted);
    font-size: 14px;
    line-height: 1.9;
}

.dashboard-section-title--security {
    text-align: center;
}

.dashboard-section-title--security h2,
.dashboard-section-title--security p {
    text-align: center !important;
}

.dashboard-panel-row {
    margin: 0 -10px 18px;
}

.dashboard-panel-col {
    display: flex;
    margin-bottom: 20px;
}

.dashboard-panel-col > .dashboard-chart-panel {
    width: 100%;
}

.dashboard-chart-panel {
    margin-bottom: 0;
    overflow: hidden;
    border: none !important;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transition: none;
}

.dashboard-chart-panel:hover {
    transform: none;
    box-shadow: none;
}

.dashboard-chart-panel.fixed_height_320 {
    height: 100% !important;
    min-height: 320px;
}

.dashboard-chart-panel__header {
    margin: 0 !important;
    padding: 18px 24px;
    border-bottom: 1px solid var(--dash-border);
    background: transparent;
}

.dashboard-panel-title {
    float: none !important;
    width: 100%;
    margin: 0;
    color: var(--dash-heading) !important;
    font-size: 18px !important;
    font-weight: 800;
    text-align: right !important;
    white-space: normal;
}

.dashboard-chart-panel__body {
    padding: 0 5px 6px;
}

.dashboard-panel-split {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 250px;
}

.dashboard-panel-visual {
    flex: 0 0 172px;
    width: 172px;
    min-width: 172px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-panel-metrics {
    flex: 1 1 auto;
    min-width: 0;
}

.dashboard-chart-canvas {
    display: block;
    max-width: 160px;
    margin: 0 auto;
}

#cloudy.dashboard-chart-canvas {
    max-width: 170px;
}

.dashboard-metric-list {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 0;
}

.dashboard-metric-list td {
    width: auto !important;
    padding: 14px 0 !important;
    vertical-align: middle;
    border-bottom: 1px solid #efefef;
    direction: rtl !important;
}

.dashboard-metric-list tr:last-child td {
    border-bottom: none;
}

.dashboard-metric-list td:first-child {
    width: 70% !important;
    padding-left: 16px !important;
}

.dashboard-metric-list td:last-child {
    text-align: left !important;
    direction: ltr !important;
    color: var(--dash-heading);
    font-size: 15px;
    font-weight: 800;
}

.dashboard-metric-list td p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dash-muted);
    font-size: 14px;
    font-weight: 600;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

.dashboard-metric-list td i {
    width: 18px;
    font-size: 16px !important;
    text-align: center;
}

.dashboard-metric-list td span {
    color: var(--dash-muted) !important;
    font-weight: 600;
}

/* ── KEY BANK TABLE SKIN ── */
.dashboard-key-bank-table {
    margin-bottom: 0;
    width: 100%;
    table-layout: fixed;
}

.dashboard-key-bank-table th,
.dashboard-key-bank-table td {
    border-color: #dcdcdc !important;
    text-align: center !important;
    vertical-align: middle !important;
}

.dashboard-key-bank-table tbody tr:hover td,
.dashboard-key-bank-table tbody tr:hover td *,
.dashboard-key-bank-table tbody tr:hover td p,
.dashboard-key-bank-table tbody tr:hover td span,
.dashboard-key-bank-table tbody tr:hover td i,
.dashboard-key-bank-table tbody tr:hover td code {
    color: #fff !important;
}

.dashboard-security-table {
    width: 100%;
    direction: rtl;
    border-collapse: collapse;
    table-layout: fixed;
    min-width: 0 !important;
    box-shadow: none !important;
}

.dashboard-security-table thead th,
.dashboard-security-table tbody td {
    text-align: center !important;
    vertical-align: middle;
    white-space: normal !important;
    word-break: break-word;
}

.dashboard-security-detail .table-responsive {
    overflow-x: hidden !important;
    box-shadow: none !important;
}

.dashboard-security-detail .dataTables_wrapper {
    box-shadow: none !important;
}

.dashboard-security-table code,
.dashboard-security-table .sec-badge,
.dashboard-security-table .sec-attack {
    display: inline !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: inherit !important;
    font: inherit !important;
}

.dashboard-security-table code {
    font-family: inherit !important;
}

#section_blocked_ips .sec-panel__header,
#section_blocked_users .sec-panel__header,
#section_blocked_machines .sec-panel__header {
    display: none !important;
}

.dashboard-security-table td i,
.dashboard-security-table .sec-icon--danger,
.dashboard-security-table .sec-icon--warning,
.dashboard-security-table .sec-icon--info {
    color: inherit !important;
}

.dashboard-security-table .td-ltr {
    direction: ltr;
    text-align: center !important;
}

.dashboard-security-table tbody tr:hover .td-bold-red {
    color: #fff !important;
}

.dashboard-metric-list.dashboard-key-bank-table {
    border-collapse: collapse;
    table-layout: fixed;
}

.dashboard-metric-list.dashboard-key-bank-table td,
.dashboard-metric-list.dashboard-key-bank-table td:last-child,
.dashboard-metric-list.dashboard-key-bank-table td p,
.dashboard-metric-list.dashboard-key-bank-table td span,
.dashboard-metric-list.dashboard-key-bank-table td i {
    color: #04182c !important;
}

.dashboard-metric-list.dashboard-key-bank-table td {
    border-bottom: 1px solid #dcdcdc !important;
    text-align: center !important;
}

.dashboard-metric-list.dashboard-key-bank-table tbody tr:hover td:last-child {
    color: #fff !important;
}

.dashboard-metric-list.dashboard-key-bank-table td:first-child,
.dashboard-metric-list.dashboard-key-bank-table td:last-child {
    width: 50% !important;
    padding-left: 0 !important;
    text-align: center !important;
}

.dashboard-metric-list.dashboard-key-bank-table td p {
    justify-content: center;
    text-align: center;
}

.dashboard-gauge-panel {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.dashboard-gauge-canvas {
    width: 170px !important;
    height: 108px !important;
    max-width: 100%;
}

.dashboard-gauge-meta {
    width: 100%;
    max-width: 200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 auto;
}

.dashboard-gauge-meta .gauge-value,
.dashboard-gauge-meta .goal-value {
    float: none !important;
    position: static !important;
    padding: 0 !important;
    color: var(--dash-heading) !important;
    font-size: 16px;
    font-weight: 800;
}

.dashboard-gauge-meta .my_text_gray2 {
    color: var(--dash-muted) !important;
}

.sec-divider {
    margin: 16px 8px 12px;
}

.sec-divider__line {
    background: linear-gradient(90deg, transparent, #cbd8ea, transparent);
}

.sec-divider__icon {
    background: #28374e;
    box-shadow: none;
}

.sec-section-title {
    margin-bottom: 28px;
}

.sec-section-title h2,
.sec-section-title h3 {
    margin: 0 0 8px;
    color: var(--dash-heading);
    font-size: 24px;
    font-weight: 800;
    text-align: center !important;
}

.sec-section-title p {
    color: var(--dash-muted);
    font-size: 14px;
}

.sec-card,
.sec-panel {
    border-radius: 12px;
    border: 1px solid #eaeef3;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.sec-card:hover,
.sec-panel:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.sec-card__number {
    color: var(--dash-heading);
}

.sec-card__label {
    color: var(--dash-muted);
}

.sec-panel__header {
    padding: 18px 22px;
    background: linear-gradient(180deg, #fbfdff 0%, #f5f9ff 100%);
    border-bottom: 1px solid var(--dash-border);
}

.sec-panel__body {
    padding: 22px 24px;
}

.sec-table thead tr {
    background: #f8fbff;
}

.sec-table thead th {
    color: #526072;
}

.sec-table tbody tr:hover {
    background: #f7fbff;
}

@media screen and (max-width:991px) {
    .dashboard-shell {
        padding: 0 !important;
    }

    .dashboard-page-header {
        padding: 44px 15px;
        border-radius: 0;
    }

    .dashboard-panel-split {
        gap: 20px;
    }

    .dashboard-panel-visual {
        width: 150px;
        min-width: 150px;
        flex-basis: 150px;
    }
}

@media screen and (max-width:768px) {
    .dashboard-page-header__title {
        font-size: 20px;
    }

    .dashboard-page-header__subtitle {
        max-width: none;
    }

    .dashboard-stats {
        margin: 0 -4px 6px !important;
    }

    .dashboard-stats .tile_stats_count {
        padding: 0 4px !important;
    }

    .dashboard-stat-card {
        min-height: auto;
        padding: 18px 14px;
    }

    .dashboard-stat-tile .dashboard-stat-card {
        min-height: 0 !important;
        height: 100%;
    }

    .dashboard-panel-row {
        margin: 0 -4px 16px;
    }

    .dashboard-panel-col {
        display: block;
        padding: 0 4px !important;
    }

    .dashboard-chart-panel__body {
        padding: 0 5px 6px;
    }

    .dashboard-panel-split {
        flex-direction: column;
        align-items: stretch;
        min-height: auto;
    }

    .dashboard-panel-visual {
        width: 100%;
        min-width: 0;
        flex-basis: auto;
    }

    .dashboard-metric-list td:first-child {
        padding-left: 10px !important;
    }

    .sec-table {
        min-width: 620px;
    }

    .sec-section-title h2,
    .sec-section-title h3 {
        font-size: 18px;
    }
}

@media screen and (max-width:458px) {
    .dashboard-shell {
        padding: 0 !important;
    }

    .dashboard-page-header {
        padding: 44px 15px;
        border-radius: 0;
    }

    .dashboard-page-header__title {
        font-size: 20px;
    }

    .dashboard-page-header__subtitle {
        font-size: 13px;
    }

    .dashboard-stat-card__icon {
        width: 78px;
        height: 78px;
        margin-top: -4px;
        margin-bottom: 18.2px;
        border-radius: 13px;
    }

    .dashboard-stat-card__icon .fa {
        font-size: 31.2px !important;
    }

    .dashboard-stat-title {
        min-height: auto;
        font-size: 20px !important;
    }

    .dashboard-stat-value {
        font-size: 15px !important;
    }

    .dashboard-stat-license-line-metric {
        font-size: 15px !important;
    }

    .dashboard-stat-two-col__label,
    .dashboard-stat-metric-grid__label {
        font-size: 15px;
    }

    .dashboard-stats .dashboard-stat-card__body-center .dashboard-stat-two-col__label {
        font-size: 15px !important;
    }

    .dashboard-stats .dashboard-stat-card__body-center .dashboard-stat-two-col__data {
        font-size: 15px !important;
    }

    .dashboard-stats .dashboard-stat-card__body-center .dashboard-stat-metric-grid__label,
    .dashboard-stats .dashboard-stat-card__body-center .dashboard-stat-metric-grid__value {
        font-size: 15px !important;
    }

    .dashboard-stats .dashboard-stat-card__body-center .dashboard-stat-metric-grid .dashboard-stat-license-line-metric {
        font-size: 15px !important;
    }

    .dashboard-stat-two-col {
        gap: 6px 8px;
    }

    .dashboard-stat-metric-grid {
        gap: 4px 8px;
    }

    .dashboard-chart-panel__header {
        padding: 16px 18px;
    }

    .dashboard-panel-title {
        font-size: 16px !important;
    }

    .dashboard-gauge-meta {
        max-width: 170px;
    }

    .dashboard-gauge-meta .gauge-value,
    .dashboard-gauge-meta .goal-value {
        font-size: 14px;
    }

    .dashboard-metric-list td {
        padding: 12px 0 !important;
    }

    .dashboard-metric-list td:last-child {
        font-size: 14px;
    }

    .sec-section-title h2,
    .sec-section-title h3 {
        font-size: 18px;
    }
}
