/* Pantau Tim — kartu ringkasan per marketing (monitoring) */

.markom-pantau-tim-panel {
    margin-bottom: 1.5rem;
    padding: 1.15rem 1.25rem 1.25rem;
    border-radius: 1rem;
    border: 1px solid rgb(229 231 235);
    background: linear-gradient(180deg, rgb(255 255 255) 0%, rgb(249 250 251) 100%);
    box-shadow: 0 1px 3px rgb(15 23 42 / 0.06);
}

.dark .markom-pantau-tim-panel,
html.dark .markom-pantau-tim-panel {
    border-color: rgb(55 65 81);
    background: linear-gradient(180deg, rgb(24 24 27) 0%, rgb(17 24 39) 100%);
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.35);
}

.markom-pantau-tim-panel__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.markom-pantau-tim-panel__eyebrow {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgb(245 158 11);
}

.markom-pantau-tim-panel__title {
    margin: 0.15rem 0 0;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
    color: rgb(17 24 39);
}

.dark .markom-pantau-tim-panel__title,
html.dark .markom-pantau-tim-panel__title {
    color: rgb(243 244 246);
}

.markom-pantau-tim-panel__hint {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    color: rgb(107 114 128);
}

.dark .markom-pantau-tim-panel__hint,
html.dark .markom-pantau-tim-panel__hint {
    color: rgb(156 163 175);
}

.markom-pantau-tim-panel__total {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 5.5rem;
    padding: 0.55rem 1rem;
    border-radius: 0.85rem;
    background: rgb(255 251 235);
    border: 1px solid rgb(253 230 138);
}

.dark .markom-pantau-tim-panel__total,
html.dark .markom-pantau-tim-panel__total {
    background: rgb(69 26 3 / 0.35);
    border-color: rgb(180 83 9 / 0.45);
}

.markom-pantau-tim-panel__total-value {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    color: rgb(180 83 9);
}

.markom-pantau-tim-panel__total-label {
    margin-top: 0.2rem;
    font-size: 0.68rem;
    font-weight: 600;
    text-align: center;
    color: rgb(146 64 14);
}

.dark .markom-pantau-tim-panel__total-label,
html.dark .markom-pantau-tim-panel__total-label {
    color: rgb(253 186 116);
}

.markom-pantau-tim-panel__filter-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
    padding: 0.55rem 0.85rem;
    border-radius: 0.65rem;
    background: rgb(255 251 235);
    border: 1px solid rgb(253 230 138);
    font-size: 0.85rem;
    color: rgb(120 53 15);
}

.dark .markom-pantau-tim-panel__filter-banner,
html.dark .markom-pantau-tim-panel__filter-banner {
    background: rgb(69 26 3 / 0.35);
    border-color: rgb(180 83 9 / 0.45);
    color: rgb(254 215 170);
}

.markom-pantau-tim-panel__filter-clear {
    margin-left: auto;
    padding: 0.3rem 0.75rem;
    border: none;
    border-radius: 9999px;
    background: rgb(245 158 11);
    color: rgb(255 255 255);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
}

.markom-pantau-tim-panel__filter-clear:hover {
    background: rgb(217 119 6);
}

.markom-pantau-tim-panel__toolbar {
    margin-bottom: 0.85rem;
}

.markom-pantau-tim-panel__toggle-inactive {
    padding: 0.4rem 0.85rem;
    border: 1px dashed rgb(156 163 175);
    border-radius: 0.55rem;
    background: transparent;
    color: rgb(75 85 99);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.markom-pantau-tim-panel__toggle-inactive:hover {
    background: rgb(243 244 246);
    border-color: rgb(107 114 128);
}

.dark .markom-pantau-tim-panel__toggle-inactive,
html.dark .markom-pantau-tim-panel__toggle-inactive {
    border-color: rgb(75 85 99);
    color: rgb(209 213 219);
}

.dark .markom-pantau-tim-panel__toggle-inactive:hover,
html.dark .markom-pantau-tim-panel__toggle-inactive:hover {
    background: rgb(31 41 55);
    border-color: rgb(156 163 175);
}

.markom-pantau-tim-panel__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
    gap: 0.75rem;
}

.markom-pantau-tim-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 6.5rem;
    padding: 0.85rem 0.65rem 0.75rem;
    border-radius: 0.85rem;
    border: 2px solid rgb(229 231 235);
    background: rgb(255 255 255);
    box-shadow: 0 2px 6px rgb(15 23 42 / 0.05);
    cursor: pointer;
    user-select: none;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.dark .markom-pantau-tim-card,
html.dark .markom-pantau-tim-card {
    border-color: rgb(55 65 81);
    background: rgb(31 41 55);
    box-shadow: 0 2px 8px rgb(0 0 0 / 0.25);
}

.markom-pantau-tim-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgb(15 23 42 / 0.1);
}

.markom-pantau-tim-card--active {
    border-color: rgb(245 158 11) !important;
    background: rgb(255 251 235) !important;
    box-shadow: 0 0 0 3px rgb(245 158 11 / 0.25) !important;
}

.dark .markom-pantau-tim-card--active,
html.dark .markom-pantau-tim-card--active {
    background: rgb(69 26 3 / 0.45) !important;
}

.markom-pantau-tim-card__topbar {
    align-self: stretch;
    width: calc(100% + 1.3rem);
    margin: -0.85rem -0.65rem 0.5rem;
    padding: 0.22rem 0.35rem;
    text-align: center;
    background: rgb(245 158 11);
    color: rgb(255 255 255);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.markom-pantau-tim-card__name {
    max-width: 100%;
    padding: 0 0.15rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
    color: rgb(55 65 81);
    line-height: 1.25;
    word-break: break-word;
}

.dark .markom-pantau-tim-card__name,
html.dark .markom-pantau-tim-card__name {
    color: rgb(229 231 235);
}

.markom-pantau-tim-card__count {
    margin: 0.25rem 0 0.1rem;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.markom-pantau-tim-card__label {
    font-size: 0.68rem;
    font-weight: 600;
    color: rgb(107 114 128);
}

.markom-pantau-tim-card--inactive {
    opacity: 0.72;
    border-style: dashed;
}

.markom-pantau-tim-card__inactive-badge {
    margin-top: 0.15rem;
    padding: 0.1rem 0.4rem;
    border-radius: 9999px;
    background: rgb(243 244 246);
    color: rgb(107 114 128);
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.dark .markom-pantau-tim-card__inactive-badge,
html.dark .markom-pantau-tim-card__inactive-badge {
    background: rgb(55 65 81);
    color: rgb(156 163 175);
}

.dark .markom-pantau-tim-card__label,
html.dark .markom-pantau-tim-card__label {
    color: rgb(156 163 175);
}

/* Warna angka per kategori */
.markom-pantau-tim-panel--hot .markom-pantau-tim-card__count { color: rgb(220 38 38); }
.markom-pantau-tim-panel--warm .markom-pantau-tim-card__count { color: rgb(234 88 12); }
.markom-pantau-tim-panel--pending .markom-pantau-tim-card__count { color: rgb(217 119 6); }
.markom-pantau-tim-panel--menunggu .markom-pantau-tim-card__count { color: rgb(79 70 229); }
.markom-pantau-tim-panel--ad-click .markom-pantau-tim-card__count { color: rgb(2 132 199); }
.markom-pantau-tim-panel--jeda .markom-pantau-tim-card__count { color: rgb(100 116 139); }
.markom-pantau-tim-panel--priority .markom-pantau-tim-card__count { color: rgb(185 28 28); }

.markom-pantau-tim-panel--hot .markom-pantau-tim-card--leader { border-color: rgb(252 165 165); }
.markom-pantau-tim-panel--warm .markom-pantau-tim-card--leader { border-color: rgb(253 186 116); }
.markom-pantau-tim-panel--pending .markom-pantau-tim-card--leader { border-color: rgb(252 211 77); }
.markom-pantau-tim-panel--menunggu .markom-pantau-tim-card--leader { border-color: rgb(165 180 252); }
.markom-pantau-tim-panel--ad-click .markom-pantau-tim-card--leader { border-color: rgb(125 211 252); }
.markom-pantau-tim-panel--jeda .markom-pantau-tim-card--leader { border-color: rgb(203 213 225); }
.markom-pantau-tim-panel--priority .markom-pantau-tim-card--leader { border-color: rgb(252 165 165); }

@media (max-width: 640px) {
    .markom-pantau-tim-panel__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .markom-pantau-tim-card__count {
        font-size: 1.65rem;
    }
}
