/* ── SmallBox Modern ── */
.small-box {
    border-radius: 8px !important;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    transition: transform .15s ease, box-shadow .15s ease;
    margin-bottom: 15px;
}
.small-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,.13);
    color: #fff;
}
.small-box > .inner {
    padding: 10px 14px 8px;
}
.small-box > .inner p:first-child {
    font-size: 12px;
    font-weight: 500;
    opacity: .85;
    text-transform: uppercase;
    letter-spacing: .3px;
    margin-bottom: 4px;
}
.small-box > .inner h4 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 4px;
}
.small-box > .inner p:last-child {
    font-size: 12px;
    opacity: .8;
    font-weight: 500;
}

/* Иконка — перебиваем AdminLTE */
.small-box .icon {
    color: rgba(255,255,255,.4) !important;
}
.small-box .icon > i,
.small-box .icon > i.fa,
.small-box .icon > i.fas,
.small-box .icon > i.far,
.small-box .icon > i.fab,
.small-box .icon > i.fal,
.small-box .icon > i.fad,
.small-box .icon > i.ion {
    font-size: 52px !important;
    top: 50% !important;
    right: 14px !important;
    transform: translateY(-50%);
    opacity: 1 !important;
}
.small-box:hover .icon > i,
.small-box:hover .icon > i.fa,
.small-box:hover .icon > i.fas,
.small-box:hover .icon > i.far,
.small-box:hover .icon > i.fab,
.small-box:hover .icon > i.fal,
.small-box:hover .icon > i.fad,
.small-box:hover .icon > i.ion {
    transform: translateY(-50%) scale(1.1) !important;
}

/* Иконка на мобильных — перебиваем AdminLTE display:none */
@media (max-width: 767px) {
    .small-box .icon {
        display: block !important;
    }
    .small-box .icon > i,
    .small-box .icon > i.fa,
    .small-box .icon > i.fas,
    .small-box .icon > i.far,
    .small-box .icon > i.fab,
    .small-box .icon > i.fal,
    .small-box .icon > i.fad,
    .small-box .icon > i.ion {
        font-size: 40px !important;
        right: 10px !important;
    }
}

/* ── Активная карточка ── */
.small-box.small-box--active {
    box-shadow: 0 0 0 3px rgba(255,255,255,.5), 0 4px 12px rgba(0,0,0,.2);
    transform: translateY(-2px);
}
.small-box.small-box--active::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 6px;
    right: 8px;
    z-index: 10;
    width: 20px;
    height: 20px;
    background: rgba(255,255,255,.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #333;
    line-height: 1;
}

/* ── Скелетон ── */
.sbox-skeleton {
    border-radius: 8px;
    background: #f0f2f5;
    border: 1px solid #e4e7ec;
    overflow: hidden;
    position: relative;
    margin-bottom: 15px;
    padding: 10px 14px 8px;
    min-height: 80px;
    box-sizing: border-box;
}
.sbox-skeleton::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
    animation: sboxShimmer 1.4s infinite;
}
@keyframes sboxShimmer {
    100% { left: 100%; }
}
.sbox-skeleton-line {
    border-radius: 4px;
    background: #dfe3ea;
}
.sbox-skeleton-line--label {
    height: 14px;
    width: 55%;
    margin-bottom: 4px;
}
.sbox-skeleton-line--value {
    height: 24px;
    width: 45%;
    margin-bottom: 4px;
}
.sbox-skeleton-line--sum {
    height: 14px;
    width: 40%;
}
.sbox-skeleton-icon {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #dfe3ea;
}
