:root {
    --ysrcp-blue: #1D4ED8;
    --ysrcp-green: #16A34A;
    --ysrcp-dark-blue: #1E3A8A;
    --ysrcp-light-green: #22C55E;
    --ysrcp-gradient: linear-gradient(135deg, #1D4ED8 0%, #16A34A 100%);
}

/* Navbar overrides */
.navbar-bg {
    background: var(--ysrcp-blue) !important;
}

.main-navbar {
    position: fixed !important;
    top: 0;
    left: 250px;
    right: 0;
    z-index: 890 !important;
    background-color: var(--ysrcp-blue) !important;
    transition: all 0.5s;
}

body.sidebar-mini .main-navbar {
    left: 65px;
}

@media (max-width: 1024px) {
    .main-navbar {
        left: 0;
    }
}

/* Sidebar overrides */
/* Sidebar overrides */
.main-sidebar {
    background-color: var(--ysrcp-green) !important;
}

body.sidebar-mini .main-sidebar:after {
    background: var(--ysrcp-green) !important;
}

.main-sidebar .sidebar-brand {
    background: transparent;
    padding: 20px 0;
    height: auto;
    line-height: normal;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.main-sidebar .sidebar-brand a {
    color: #fff !important;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.main-sidebar .sidebar-brand-sm a {
    color: #fff !important;
}

/* Sidebar Links - Normal Base */
.main-sidebar .sidebar-menu li a {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
}

.main-sidebar .sidebar-menu li a i {
    color: rgba(255, 255, 255, 0.9) !important;
}

.main-sidebar .sidebar-menu li a:hover {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.main-sidebar .sidebar-menu li a:hover i {
    color: #fff !important;
}

/* Active State - Single Level */
/* Active State - Single Level (Non-Dropdown) */
.sidebar-menu li.active:not(.dropdown)>a {
    color: var(--ysrcp-green) !important;
    background-color: #fff !important;
    border-radius: 0 50px 50px 0;
    margin-right: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.sidebar-menu li.active:not(.dropdown)>a i {
    color: var(--ysrcp-green) !important;
}

/* Ensure Parent Dropdown Active State is Transparent */
.sidebar-menu li.dropdown.active>a.has-dropdown {
    background-color: transparent !important;
    color: #fff !important;
    box-shadow: none !important;
}

.sidebar-menu li.dropdown.active>a.has-dropdown:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.sidebar-menu li.dropdown.active>a.has-dropdown i {
    color: #fff !important;
}

/* Ensure Parent LI is Transparent */
.main-sidebar .sidebar-menu li.active {
    background-color: transparent !important;
}

/* Menu Headers */
.sidebar-menu li.menu-header {
    color: rgba(255, 255, 255, 0.5) !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
}

/* Dropdown Styling - Parent Link when active */
/* Removing previous scattered dropdown parent rules to rely on the unified block above */

/* Dropdown Menu Items (Submenu) */
.main-sidebar.sidebar-style-2 .sidebar-menu li ul.dropdown-menu,
.main-sidebar .sidebar-menu li ul.dropdown-menu {
    background-color: rgba(0, 0, 0, 0.3) !important;
    box-shadow: none !important;
}

.main-sidebar .sidebar-menu li ul.dropdown-menu li a {
    color: rgba(255, 255, 255, 0.8) !important;
    padding-left: 50px !important;
}

.main-sidebar .sidebar-menu li ul.dropdown-menu li a:hover {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.main-sidebar .sidebar-menu li ul.dropdown-menu li.active>a {
    color: var(--ysrcp-green) !important;
    background-color: #fff !important;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Global button overrides */
.btn-primary {
    background-color: var(--ysrcp-blue) !important;
    border-color: var(--ysrcp-blue) !important;
    box-shadow: 0 4px 6px rgba(29, 78, 216, 0.2) !important;
}

.btn-primary:hover {
    background-color: var(--ysrcp-dark-blue) !important;
    border-color: var(--ysrcp-dark-blue) !important;
}

.btn-success {
    background-color: var(--ysrcp-green) !important;
    border-color: var(--ysrcp-green) !important;
}

.btn-success:hover {
    background-color: #15803d !important;
}

/* Card overrides */
.card .card-header h4 {
    color: var(--ysrcp-blue) !important;
    font-weight: 700;
}

.card.card-primary {
    border-top: 2px solid var(--ysrcp-blue) !important;
}

/* Section Header */
.section .section-header h1 {
    color: var(--ysrcp-blue);
    font-weight: 800;
}

.section .section-header .section-header-breadcrumb .breadcrumb-item a {
    color: var(--ysrcp-green);
}

/* Badges */
.badge-primary {
    background-color: var(--ysrcp-blue) !important;
}

.badge-success {
    background-color: var(--ysrcp-green) !important;
}

/* DataTables pagination active */
.page-item.active .page-link {
    background-color: var(--ysrcp-blue) !important;
    border-color: var(--ysrcp-blue) !important;
}

/* Login Page Theme accents */
.login-brand {
    background: var(--ysrcp-gradient);
    padding: 20px;
    border-radius: 10px;
}

/* Background Accent overrides */
.bg-primary {
    background-color: var(--ysrcp-blue) !important;
}

.bg-success {
    background-color: var(--ysrcp-green) !important;
}

.bg-info {
    background-color: var(--ysrcp-blue) !important;
    opacity: 0.9;
}

.text-primary {
    color: var(--ysrcp-blue) !important;
}

.text-success {
    color: var(--ysrcp-green) !important;
}

/* Sidebar Dropdown active */
/* Sidebar Dropdown active removal of specific overrides to let previous rules handle it */
/* Removed overly broad rule */

/* Links */
a {
    color: var(--ysrcp-blue);
}

a:hover {
    color: var(--ysrcp-dark-blue);
}

/* Custom Checkbox */
.custom-checkbox .custom-control-input:checked~.custom-control-label::before {
    background-color: var(--ysrcp-blue) !important;
}

/* Nav tabs */
.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
    background-color: var(--ysrcp-blue) !important;
}

/* Selectric theme */
.selectric-items li.selected {
    background-color: var(--ysrcp-blue) !important;
}

/* Bootstrap Alert Success */
.alert.alert-success {
    background-color: var(--ysrcp-green);
    border: none;
    color: #fff;
}

/* Table overrides */
.table.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(29, 78, 216, 0.02);
}

/* Section Header Action buttons */
.section .section-header .section-header-action .btn {
    box-shadow: 0 2px 6px rgba(29, 78, 216, 0.3);
}

/* Redesigned Header */
.main-navbar {
    height: 90px !important;
    display: flex;
    align-items: center;
}

.navbar-brand-container {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.header-logo {
    height: 80px;
    width: 80px;
    margin-right: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    background: #fff;
    padding: 2px;
}

.header-text-group {
    display: flex;
    flex-direction: column;
}

.header-main-text {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #fff !important;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.btn-date {
    background: #fff !important;
    color: var(--ysrcp-blue) !important;
    font-weight: 800 !important;
    font-size: 16px !important;
    padding: 10px 24px !important;
    border-radius: 50px !important;
    border: none !important;
    display: flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    margin-right: 15px;
}

.btn-date:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2) !important;
    background: #f8f9fa !important;
    color: var(--ysrcp-dark-blue) !important;
}

.btn-date i {
    font-size: 18px;
    margin-right: 10px;
    color: var(--ysrcp-green);
}

.navbar-nav.navbar-right .dropdown-toggle.nav-link-user {
    padding: 0 15px;
    height: 50px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    margin-left: 10px;
}

.navbar-nav.navbar-right .dropdown-toggle.nav-link-user:hover {
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .header-main-text {
        font-size: 18px !important;
    }

    .header-logo {
        height: 40px;
    }

    .btn-date {
        padding: 5px 12px !important;
        font-size: 12px !important;
    }
}

/* Layout adjustments for taller navbar */
.main-content {
    padding-top: 110px !important;
}

.navbar-bg {
    height: 145px !important;
}

@media (max-width: 1024px) {
    .main-content {
        padding-top: 100px !important;
    }
}

/* ═══════════════════════════════════════════════════
   NATIVE MOBILE APP STYLES  (max-width: 767px only)
   Desktop is completely unaffected.
   ═══════════════════════════════════════════════════ */
@media (max-width: 767px) {

    /* ── Body & base ── */
    body {
        background: #f0f2f8 !important;
        -webkit-font-smoothing: antialiased;
    }

    /* ── Navbar: compact app-style top bar ── */
    .main-navbar {
        height: 58px !important;
        padding: 0 12px !important;
        left: 0 !important;
        box-shadow: 0 2px 12px rgba(0, 0, 0, .18) !important;
    }

    .navbar-bg {
        height: 58px !important;
    }

    .main-content {
        padding-top: 68px !important;
    }

    /* Hide date button on mobile */
    .btn-date {
        display: none !important;
    }

    /* Compact logo */
    .header-logo {
        height: 34px !important;
        width: 34px !important;
        margin-right: 8px !important;
        border-radius: 8px !important;
        padding: 1px !important;
    }

    .header-main-text {
        font-size: 13px !important;
        letter-spacing: 0 !important;
        font-weight: 800 !important;
    }

    /* Hamburger icon */
    .nav-link.nav-link-lg {
        padding: 0 8px 0 0 !important;
    }

    /* User pill in navbar */
    .navbar-nav.navbar-right .dropdown-toggle.nav-link-user {
        height: 36px !important;
        padding: 0 10px !important;
        border-radius: 30px !important;
        font-size: 0.82rem !important;
    }

    .navbar-nav.navbar-right .dropdown-toggle.nav-link-user img {
        width: 26px !important;
        height: 26px !important;
    }

    /* ── Section header ── */
    .section .section-header {
        padding: 14px 14px 8px !important;
        margin-bottom: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .section .section-header h1 {
        font-size: 1.05rem !important;
        font-weight: 800 !important;
    }

    .section .section-header-breadcrumb {
        font-size: 0.75rem !important;
    }

    /* ── Section body padding ── */
    .section-body {
        padding: 0 !important;
    }

    /* ── Stat cards: 2 per row ── */
    .row .col-lg-3 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding-left: 6px !important;
        padding-right: 6px !important;
    }

    .row .col-md-6,
    .row .col-sm-6,
    .row .col-12 {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }

    /* ── Stat card compact ── */
    .card-statistic-1 {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 14px 12px 12px !important;
        border-radius: 18px !important;
        box-shadow: 0 3px 14px rgba(0, 0, 0, .07) !important;
        border: none !important;
        margin-bottom: 12px !important;
        background: #fff !important;
        min-height: 0 !important;
        overflow: visible !important;
        width: 100% !important;
    }

    .card-statistic-1 .card-icon {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        border-radius: 13px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-right: 0 !important;
        margin-bottom: 10px !important;
        flex-shrink: 0 !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, .1) !important;
    }

    .card-statistic-1 .card-icon i {
        font-size: 1.15rem !important;
    }

    .card-statistic-1 .card-wrap {
        flex: 1 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .card-statistic-1 .card-header {
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
    }

    .card-statistic-1 .card-header h4 {
        font-size: 0.68rem !important;
        color: #9ca3af !important;
        font-weight: 700 !important;
        margin: 0 0 3px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.4px !important;
        white-space: normal !important;
        line-height: 1.3 !important;
    }

    .card-statistic-1 .card-body {
        font-size: 1.8rem !important;
        font-weight: 800 !important;
        color: #111827 !important;
        padding: 0 !important;
        line-height: 1 !important;
    }

    /* ── General cards ── */
    .card:not(.card-statistic-1) {
        border-radius: 18px !important;
        box-shadow: 0 4px 18px rgba(0, 0, 0, .07) !important;
        border: none !important;
        margin-bottom: 14px !important;
        overflow: hidden !important;
    }

    .card:not(.card-statistic-1) .card-header {
        padding: 14px 16px !important;
        border-bottom: 1px solid rgba(0, 0, 0, .05) !important;
    }

    .card:not(.card-statistic-1) .card-header h4 {
        font-size: 0.95rem !important;
        font-weight: 700 !important;
    }

    .card:not(.card-statistic-1) .card-body {
        padding: 14px 16px !important;
    }

    .card:not(.card-statistic-1) .card-body.p-0 {
        padding: 0 !important;
    }

    /* ── Tables ── */
    .table-responsive {
        border-radius: 0 !important;
    }

    .table {
        font-size: 0.82rem !important;
    }

    .table thead th {
        font-size: 0.72rem !important;
        padding: 10px !important;
        white-space: nowrap !important;
        background: #f8f9ff !important;
    }

    .table tbody td {
        padding: 10px !important;
        vertical-align: middle !important;
    }

    /* ── Buttons ── */
    .btn {
        border-radius: 10px !important;
        font-size: 0.82rem !important;
        padding: 7px 14px !important;
        font-weight: 700 !important;
    }

    .btn-sm {
        padding: 5px 10px !important;
        font-size: 0.75rem !important;
    }

    .card-header-action .btn {
        border-radius: 10px !important;
        font-size: 0.78rem !important;
        padding: 6px 12px !important;
    }

    /* ── Alert ── */
    .alert {
        border-radius: 14px !important;
        font-size: 0.85rem !important;
        padding: 12px 16px !important;
        margin: 12px 12px 0 !important;
    }

    /* ── FullCalendar ── */
    .fc .fc-toolbar {
        flex-direction: column !important;
        gap: 8px !important;
        padding: 10px !important;
    }

    .fc .fc-toolbar-title {
        font-size: 1rem !important;
        font-weight: 700 !important;
    }

    .fc .fc-button {
        padding: 5px 10px !important;
        font-size: 0.78rem !important;
        border-radius: 8px !important;
    }

    .fc .fc-daygrid-day-number {
        font-size: 0.78rem !important;
    }

    .fc .fc-event {
        border-radius: 6px !important;
        font-size: 0.7rem !important;
        padding: 1px 4px !important;
    }

    /* ── Media list ── */
    .list-unstyled-border li.media {
        padding: 12px 0 !important;
        border-bottom: 1px solid #f0f0f8 !important;
    }

    .media-title {
        font-size: 0.88rem !important;
        font-weight: 700 !important;
    }

    .text-small {
        font-size: 0.78rem !important;
    }

    /* ── Section header row ── */
    .section-header.row {
        margin: 0 !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 14px 16px 6px !important;
        gap: 0 !important;
    }

    .section-header.row .col-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        text-align: center !important;
    }

    .section-header.row h1 {
        font-size: 0.9rem !important;
        font-weight: 800 !important;
        color: #374151 !important;
        margin: 0 !important;
    }

    /* ── Row gutters ── */
    .row {
        margin-left: -8px !important;
        margin-right: -8px !important;
    }

    .col-md-12,
    .col-lg-12,
    .col-12,
    .col-md-6,
    .col-lg-6,
    .col-lg-3,
    .col-sm-6 {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    /* ── Section padding ── */
    section.section {
        padding: 0 8px 96px !important;
    }

    /* ── Flash toasts on mobile ── */
    #flash-toast-container {
        top: 66px !important;
        right: 10px !important;
        left: 10px !important;
        width: auto !important;
        max-width: none !important;
    }

    .flash-toast {
        border-radius: 14px !important;
        padding: 12px 14px !important;
        font-size: 0.85rem !important;
    }

    /* ── Profile image ── */
    .profile-widget-picture {
        width: 100px !important;
        height: 100px !important;
    }

    /* ── Badge pills ── */
    .badge {
        font-size: 0.72rem !important;
        padding: 5px 10px !important;
        border-radius: 8px !important;
    }

    /* ── Chip tags ── */
    span[style*="border-radius:20px"] {
        font-size: 0.7rem !important;
        padding: 2px 8px !important;
    }

    /* ── Card header action flex wrap ── */
    .card-header {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    /* ── Dropdown menu ── */
    .dropdown-menu {
        border-radius: 16px !important;
        box-shadow: 0 8px 30px rgba(0, 0, 0, .15) !important;
        border: none !important;
        padding: 8px !important;
    }

    .dropdown-item {
        border-radius: 10px !important;
        padding: 10px 14px !important;
        font-size: 0.88rem !important;
    }

    /* ═══════════════════════════════════════════════════
       USER DASHBOARD — Native App Profile Card
       ═══════════════════════════════════════════════════ */
    .card.card-primary {
        border-top: none !important;
        border-radius: 20px !important;
        overflow: hidden !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, .08) !important;
    }

    .card.card-primary .card-header {
        background: linear-gradient(135deg, #1D4ED8 0%, #16A34A 100%) !important;
        padding: 14px 16px !important;
        border: none !important;
    }

    .card.card-primary .card-header h4 {
        color: #fff !important;
        font-size: 0.95rem !important;
        font-weight: 700 !important;
        margin: 0 !important;
    }

    .card.card-primary .card-body {
        padding: 20px 16px 16px !important;
    }

    .card.card-primary .card-body>.row {
        flex-direction: column !important;
        align-items: center !important;
    }

    .card.card-primary .card-body>.row>.col-md-3,
    .card.card-primary .card-body>.row>.col-md-9 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        text-align: center !important;
    }

    .card.card-primary .profile-widget-picture,
    .card.card-primary img.rounded-circle {
        width: 90px !important;
        height: 90px !important;
        border: 3px solid #fff !important;
        box-shadow: 0 4px 16px rgba(29, 78, 216, .18) !important;
        margin-bottom: 6px !important;
    }

    .card.card-primary .col-md-3 .mt-2 {
        font-size: 0.78rem !important;
        color: #6b7280 !important;
        font-weight: 700 !important;
        letter-spacing: .5px !important;
        margin-bottom: 12px !important;
    }

    .card.card-primary .col-md-9 h4.font-weight-bold {
        font-size: 1.15rem !important;
        font-weight: 800 !important;
        color: #111827 !important;
        margin: 0 0 4px !important;
        text-align: center !important;
    }

    .card.card-primary .col-md-9 .text-primary.font-weight-bold {
        font-size: 0.82rem !important;
        text-align: center !important;
        margin-bottom: 10px !important;
    }

    .card.card-primary .badge {
        font-size: 0.72rem !important;
        padding: 5px 14px !important;
        border-radius: 20px !important;
        letter-spacing: .5px !important;
    }

    .card.card-primary .d-flex.justify-content-between {
        flex-direction: column !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .card.card-primary .ml-2 {
        margin-left: 0 !important;
    }

    .card.card-primary hr {
        margin: 12px 0 !important;
        border-color: #f0f0f8 !important;
    }

    .card.card-primary .col-md-9 .row {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0 !important;
        text-align: left !important;
    }

    .card.card-primary .col-md-9 .row>[class*="col-"] {
        flex: none !important;
        max-width: none !important;
        width: auto !important;
        padding: 8px 10px !important;
        border-bottom: 1px solid #f5f5ff !important;
        background: #fafbff !important;
        border-radius: 0 !important;
    }

    .card.card-primary .col-md-9 .row>[class*="col-"]:nth-child(odd) {
        border-right: 1px solid #f0f0f8 !important;
    }

    .card.card-primary .col-md-9 .row strong {
        display: block !important;
        font-size: 0.68rem !important;
        color: #9ca3af !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: .4px !important;
        margin-bottom: 2px !important;
    }

    .card.card-primary .col-md-9 .row p.font-weight-bold {
        font-size: 0.88rem !important;
        font-weight: 700 !important;
        color: #1a1a2e !important;
        margin: 0 !important;
        word-break: break-word !important;
    }

    /* ── Programs & Announcements feed ── */
    .list-unstyled-border .media {
        padding: 12px 0 !important;
        border-bottom: 1px solid #f0f4ff !important;
        align-items: flex-start !important;
    }

    .list-unstyled-border .media:last-child {
        border-bottom: none !important;
    }

    .list-unstyled-border .media-body {
        position: relative !important;
    }

    .list-unstyled-border .media-title {
        font-size: 0.9rem !important;
        font-weight: 700 !important;
        color: #111827 !important;
        line-height: 1.3 !important;
        padding-right: 70px !important;
    }

    .list-unstyled-border .float-right {
        font-size: 0.72rem !important;
        font-weight: 600 !important;
        color: #6b7280 !important;
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
    }

    .list-unstyled-border .text-small {
        font-size: 0.78rem !important;
        line-height: 1.4 !important;
        margin-top: 3px !important;
        display: block !important;
    }

    .list-unstyled-border .text-small.text-muted.mt-1 {
        font-size: 0.72rem !important;
        color: #9ca3af !important;
        margin-top: 4px !important;
    }

    .list-unstyled-border img.rounded {
        width: 80px !important;
        height: 60px !important;
        object-fit: cover !important;
        border-radius: 8px !important;
        margin-top: 6px !important;
    }

    .list-unstyled-border .btn-outline-primary {
        font-size: 0.72rem !important;
        padding: 4px 10px !important;
        border-radius: 8px !important;
        margin-top: 6px !important;
    }

    /* ── Calendar legend ── */
    #dashUserCalendar~div,
    .card-header-action span {
        flex-wrap: wrap !important;
        gap: 4px !important;
        font-size: 0.72rem !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE FORM STYLES  (max-width: 767px)
   All input fields, selects, textareas, labels, and
   form sections become large, thumb-friendly, and clear.
   Desktop layout is completely unaffected.
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 767px) {

    /* ── Make every Bootstrap column full-width inside forms ── */
    .card-body .row>[class*="col-md-"],
    .card-body .row>[class*="col-lg-"],
    .card-body .row>[class*="col-sm-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* ── Form labels ── */
    .card-body label,
    .form-group label {
        font-size: 0.78rem !important;
        font-weight: 700 !important;
        color: #374151 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.4px !important;
        margin-bottom: 6px !important;
        display: block !important;
    }

    /* ── Inputs, selects, textareas ── */
    .card-body .form-control,
    .card-body select.form-control,
    .card-body textarea.form-control,
    .card-body input[type="text"].form-control,
    .card-body input[type="number"].form-control,
    .card-body input[type="email"].form-control,
    .card-body input[type="password"].form-control,
    .card-body input[type="date"].form-control,
    .card-body input[type="datetime-local"].form-control,
    .card-body input[type="file"].form-control,
    .card-body input[type="tel"].form-control,
    .card-body input[type="url"].form-control {
        height: 50px !important;
        font-size: 1rem !important;
        padding: 12px 16px !important;
        border-radius: 12px !important;
        border: 2px solid #e5e7eb !important;
        background: #fafafa !important;
        color: #111 !important;
        box-shadow: none !important;
        transition: border-color 0.2s, box-shadow 0.2s !important;
        width: 100% !important;
        -webkit-appearance: none !important;
        appearance: none !important;
    }

    .card-body .form-control:focus,
    .card-body select.form-control:focus,
    .card-body textarea.form-control:focus {
        border-color: #1D4ED8 !important;
        box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12) !important;
        background: #fff !important;
        outline: none !important;
    }

    /* Textarea – allow natural height */
    .card-body textarea.form-control {
        height: auto !important;
        min-height: 110px !important;
        resize: vertical !important;
    }

    /* File input */
    .card-body input[type="file"].form-control {
        height: auto !important;
        padding: 10px 14px !important;
        font-size: 0.88rem !important;
        background: #f0f4ff !important;
        border-style: dashed !important;
        cursor: pointer !important;
    }

    /* Select arrow override */
    .card-body select.form-control {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231D4ED8' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: right 14px center !important;
        padding-right: 40px !important;
    }

    /* Readonly / disabled inputs */
    .card-body .form-control[readonly],
    .card-body .form-control:disabled {
        background: #f3f4f6 !important;
        border-color: #e5e7eb !important;
        color: #9ca3af !important;
    }

    /* ── form-group spacing ── */
    .card-body .form-group,
    .card-body .form-group-custom {
        margin-bottom: 18px !important;
    }

    /* ── Section title dividers ── */
    .card-body .section-title {
        font-size: 0.72rem !important;
        font-weight: 800 !important;
        color: #1D4ED8 !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
        padding: 12px 0 6px !important;
        border-bottom: 2px solid #dbeafe !important;
        margin-bottom: 14px !important;
    }

    /* ── Input groups (password toggle etc.) ── */
    .card-body .input-group .form-control {
        border-radius: 12px 0 0 12px !important;
    }

    .card-body .input-group-append .btn {
        border-radius: 0 12px 12px 0 !important;
        padding: 0 16px !important;
        border: 2px solid #e5e7eb !important;
        border-left: none !important;
        background: #f3f4f6 !important;
        color: #6b7280 !important;
    }

    /* ── Invalid feedback ── */
    .card-body .invalid-feedback,
    .card-body .invalid-feedback-custom {
        font-size: 0.78rem !important;
        font-weight: 600 !important;
        color: #dc2626 !important;
        margin-top: 4px !important;
    }

    /* ── Card footer action buttons ── */
    .card-footer {
        padding: 14px 16px !important;
        background: #f9fafb !important;
        border-top: 1px solid #f3f4f6 !important;
        display: flex !important;
        flex-direction: row !important;
        gap: 10px !important;
        flex-wrap: wrap !important;
    }

    .card-footer .btn,
    .card-footer a.btn {
        flex: 1 !important;
        min-width: 120px !important;
        padding: 13px 16px !important;
        font-size: 0.95rem !important;
        font-weight: 700 !important;
        border-radius: 12px !important;
        text-align: center !important;
    }

    /* ── Selectric override (custom select plugin) ── */
    .selectric {
        border-radius: 12px !important;
        border: 2px solid #e5e7eb !important;
        height: 50px !important;
        background: #fafafa !important;
        display: flex !important;
        align-items: center !important;
    }

    .selectric .label {
        font-size: 1rem !important;
        line-height: 50px !important;
        margin: 0 40px 0 14px !important;
        color: #111 !important;
    }

    .selectric .button {
        height: 50px !important;
        width: 40px !important;
        font-size: 0.8rem !important;
        border-radius: 0 12px 12px 0 !important;
    }

    .selectric-items {
        border-radius: 12px !important;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
        border: none !important;
        font-size: 0.95rem !important;
    }

    .selectric-items li {
        padding: 13px 16px !important;
        font-size: 0.95rem !important;
    }

    /* ── Select2 override ── */
    .select2-container .select2-selection--single {
        height: 50px !important;
        border-radius: 12px !important;
        border: 2px solid #e5e7eb !important;
        background: #fafafa !important;
        display: flex !important;
        align-items: center !important;
    }

    .select2-container .select2-selection--single .select2-selection__rendered {
        line-height: 50px !important;
        padding-left: 14px !important;
        font-size: 1rem !important;
        color: #111 !important;
    }

    .select2-container .select2-selection--single .select2-selection__arrow {
        height: 48px !important;
        right: 10px !important;
    }

    .select2-dropdown {
        border-radius: 12px !important;
        border: none !important;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
        font-size: 0.95rem !important;
    }

    .select2-container--default .select2-results__option {
        padding: 12px 16px !important;
        font-size: 0.95rem !important;
    }

    /* ── Assignment rows (multi-category assignment) ── */
    .assignment-row {
        background: #f8faff !important;
        border: 1.5px solid #dbeafe !important;
        border-radius: 14px !important;
        padding: 14px 12px 6px !important;
        margin-bottom: 14px !important;
        flex-direction: column !important;
    }

    .assignment-row>[class*="col-md-"],
    .assignment-row>[class*="col-lg-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .assignment-row .remove-assignment {
        width: 100% !important;
        margin-top: 4px !important;
        border-radius: 10px !important;
        font-size: 0.88rem !important;
    }

    /* ── Add More Category button ── */
    #add_more_category {
        width: 100% !important;
        padding: 13px !important;
        border-radius: 12px !important;
        font-size: 0.92rem !important;
        font-weight: 700 !important;
        background: #dbeafe !important;
        color: #1D4ED8 !important;
        border-color: #bfdbfe !important;
    }

    /* ── Image preview ── */
    .card-body img[style*="max-width"] {
        max-width: 100% !important;
        border-radius: 12px !important;
    }

    /* ── Help text / muted small ── */
    .card-body small.text-muted {
        font-size: 0.75rem !important;
        display: block !important;
        margin-top: 4px !important;
        color: #9ca3af !important;
    }

    /* ── Task form specific: form-control-custom ── */
    .form-control-custom {
        height: 50px !important;
        font-size: 1rem !important;
        padding: 12px 16px !important;
        border-radius: 12px !important;
        border: 2px solid #e8e8f0 !important;
        width: 100% !important;
        background: #fafafa !important;
    }

    textarea.form-control-custom {
        height: auto !important;
        min-height: 110px !important;
    }

    .task-form-body {
        padding: 20px 16px !important;
    }

    /* ── Assignee list inside task form ── */
    .assignee-wrapper {
        border-radius: 12px !important;
    }

    .assignee-search {
        font-size: 1rem !important;
        padding: 12px 16px !important;
    }

    .assignee-item {
        padding: 12px 16px !important;
    }

    .assignee-item input[type="checkbox"] {
        width: 20px !important;
        height: 20px !important;
    }

    .assignee-item label {
        font-size: 0.95rem !important;
    }

    /* ── Task action buttons row ── */
    .task-form-body .d-flex.align-items-center {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .btn-submit-task,
    .btn-cancel-task {
        width: 100% !important;
        text-align: center !important;
        padding: 14px !important;
        border-radius: 12px !important;
        font-size: 1rem !important;
    }

    /* ── Subadmin permissions checkbox list ── */
    .card-body .custom-control.custom-checkbox {
        padding: 10px 0 10px 32px !important;
        border-bottom: 1px solid #f3f4f6 !important;
    }

    .card-body .custom-control-label {
        font-size: 0.92rem !important;
        font-weight: 600 !important;
        color: #374151 !important;
        text-transform: none !important;
        letter-spacing: 0 !important;
    }

    .card-body .custom-control-input {
        width: 18px !important;
        height: 18px !important;
    }

    /* ── Gallery / image upload preview grid ── */
    .card-body .gallery-upload-preview {
        grid-template-columns: 1fr 1fr !important;
    }

    /* ── Subadmins form: permission checkboxes ── */
    .col-md-4.form-group,
    .col-md-3.form-group,
    .col-md-2.form-group {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* ── Settings form ── */
    .settings-page .card-body .form-group {
        margin-bottom: 20px !important;
    }

    /* ═══════════════════════════════════════════════════════════
       MOBILE DASHBOARD NATIVE APP STYLES
       Used for the home/dashboard screen on mobile devices.
       ═══════════════════════════════════════════════════════════ */
    .mob-dash-wrap { display:flex; flex-direction:column; gap:16px; padding:0 0 100px; }

    /* Hero */
    .mob-hero { background:linear-gradient(135deg,#1D4ED8 0%,#0f2d7a 55%,#16A34A 100%); border-radius:0 0 32px 32px; padding:24px 20px 30px; position:relative; overflow:hidden; }
    .mob-hero::before { content:''; position:absolute; top:-50px; right:-50px; width:180px; height:180px; background:rgba(255,255,255,0.06); border-radius:50%; }
    .mob-hero::after { content:''; position:absolute; bottom:-30px; left:-30px; width:120px; height:120px; background:rgba(22,163,74,0.18); border-radius:50%; }
    .mob-hero-inner { position:relative; z-index:2; }
    .mob-hero-greeting { font-size:0.75rem; color:rgba(255,255,255,0.72); font-weight:600; letter-spacing:0.5px; text-transform:uppercase; margin-bottom:4px; }
    .mob-hero-name { font-size:1.5rem; font-weight:900; color:#fff; line-height:1.15; margin-bottom:4px; }
    .mob-hero-sub { font-size:0.78rem; color:rgba(255,255,255,0.65); }
    .mob-hero-badges { display:flex; gap:8px; margin-top:18px; flex-wrap:wrap; }
    .mob-hero-badge { display:flex; align-items:center; gap:5px; background:rgba(255,255,255,0.15); color:#fff; border-radius:20px; padding:5px 12px; font-size:0.7rem; font-weight:700; border:1px solid rgba(255,255,255,0.2); backdrop-filter:blur(4px); }
    .mob-hero-badge.green { background:rgba(22,163,74,0.3); border-color:rgba(22,163,74,0.5); }
    .mob-hero-badge.red { background:rgba(239,68,68,0.22); border-color:rgba(239,68,68,0.35); }

    /* Stats Grid */
    .mob-stats-section, .mob-actions-section, .mob-activity-section { padding:0 14px; }
    .mob-section-hdr { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
    .mob-stats-label { font-size:0.68rem; font-weight:800; color:#6b7280; text-transform:uppercase; letter-spacing:0.8px; }
    .mob-stats-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
    .mob-stat-tile { background:#fff; border-radius:18px; padding:16px 14px 14px; box-shadow:0 2px 12px rgba(0,0,0,0.06); border:1.5px solid #f3f4f6; position:relative; overflow:hidden; text-decoration:none; display:block; transition:transform 0.15s; }
    .mob-stat-tile:active { transform:scale(0.97); }
    .mob-stat-tile-accent { position:absolute; top:0; left:0; right:0; height:4px; border-radius:18px 18px 0 0; }
    .mob-stat-tile-icon { width:38px; height:38px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:1rem; margin-bottom:10px; }
    .mob-stat-tile-value { font-size:2rem; font-weight:900; color:#111; line-height:1; margin-bottom:4px; }
    .mob-stat-tile-label { font-size:0.68rem; font-weight:700; color:#9ca3af; text-transform:uppercase; letter-spacing:0.4px; }

    /* Quick Actions */
    .mob-actions-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }
    .mob-action-btn { display:flex; flex-direction:column; align-items:center; gap:6px; text-decoration:none; padding:12px 4px 10px; background:#fff; border-radius:16px; box-shadow:0 2px 10px rgba(0,0,0,0.06); border:1.5px solid #f3f4f6; transition:transform 0.15s; }
    .mob-action-btn:active { transform:scale(0.95); }
    .mob-action-icon { width:44px; height:44px; border-radius:14px; display:flex; align-items:center; justify-content:center; font-size:1.1rem; color:#fff; }
    .mob-action-label { font-size:0.58rem; font-weight:800; color:#374151; text-transform:uppercase; letter-spacing:0.2px; text-align:center; line-height:1.2; }

    /* Activity Feed */
    .mob-activity-card { background:#fff; border-radius:18px; box-shadow:0 2px 12px rgba(0,0,0,0.06); overflow:hidden; border:1.5px solid #f3f4f6; }
    .mob-activity-view-all { font-size:0.75rem; font-weight:700; color:#1D4ED8; text-decoration:none; background:#dbeafe; border-radius:10px; padding:4px 10px; border: 1px solid #bfdbfe; }
    .mob-activity-item { display:flex; align-items:center; gap:12px; padding:12px 16px; border-bottom:1px solid #f9fafb; text-decoration:none; }
    .mob-activity-item:last-child { border-bottom:none; }
    .mob-activity-dot { width:40px; height:40px; border-radius:13px; flex-shrink:0; display:flex; align-items:center; justify-content:center; font-size:0.95rem; overflow:hidden; }
    .mob-activity-info { flex:1; min-width:0; }
    .mob-activity-name { font-size:0.88rem; font-weight:700; color:#111; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .mob-activity-meta { font-size:0.7rem; color:#9ca3af; margin-top:2px; }
    .mob-activity-badge { font-size:0.62rem; font-weight:800; padding:3px 8px; border-radius:8px; flex-shrink:0; }
}