/* Admin mobile excellence — shared touch/mobile polish for admin templates */

* {
    -webkit-tap-highlight-color: transparent;
}

a,
button,
select,
input,
textarea {
    touch-action: manipulation;
}

/* Respect iOS safe areas */
body {
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Press feedback on tappable elements */
.pressable {
    transition: transform 120ms ease, box-shadow 120ms ease;
    will-change: transform;
}
.pressable:active {
    transform: scale(0.97);
}

@media (max-width: 767px) {
    /* Tighter admin containers on phones */
    .container-pad-mobile {
        padding: 0.75rem !important;
    }

    /* KPI cards breathe on small screens */
    .kpi-card {
        padding: 1rem !important;
    }
    .kpi-card .kpi-num {
        font-size: 1.5rem !important;
        line-height: 1.2 !important;
    }

    /* Long tables get smaller type to reduce scroll width */
    .table-responsive-sm {
        font-size: 12px !important;
    }

    /* Toasts become full-width banners pinned to the top */
    .toast-mobile {
        left: 0.75rem !important;
        right: 0.75rem !important;
        top: 0.75rem !important;
    }

    /* Larger touch targets for card controls */
    .touch-row {
        min-height: 44px;
    }
}