:root {
    --primary: #8b0d2c;
    --primary2: #b3123f;
    --glass: rgba(255, 255, 255, 0.55);
    --border: rgba(255, 255, 255, 0.25);
    --text: #111827;
    --muted: #6b7280;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* font-family: 'Poppins', sans-serif; */
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    background: white;
    overflow-x: hidden;
}

html,
body {
    scrollbar-width: none;
    scrollbar-color: #9ca3af transparent;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 4px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    background: transparent;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    background: #9ca3af;
    border-radius: 10px;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

.glass {
    border: 1px solid var(--border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border-radius: 18px;
}

.wrapper {
    width: 1400px;
    display: flex;
    padding: 20px;
    gap: 20px;
    height: 100vh;
}

.sidebar {
    width: 260px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 25px;
}

.sidebar {
    width: 260px;
    padding: 22px;
    display: flex;
    flex-direction: column;

    position: relative;
    overflow: hidden;

    border-radius: 22px;
}

.sidebar::before {
    content: "";
    position: absolute;
    top: -120px;
    left: -120px;
    width: 300px;
    height: 300px;
    background: rgba(139, 13, 44, 0.12);
    filter: blur(80px);
    border-radius: 50%;
    z-index: 0;
}

.sidebar * {
    position: relative;
    z-index: 1;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 28px;

    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu a {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 10px 14px;
    border-radius: 14px;

    text-decoration: none;
    color: var(--text);

    transition: all 0.3s ease;

    position: relative;
    overflow: hidden;
}

.menu a:hover {
    background: rgba(139, 13, 44, 0.06);
    transform: translateX(6px);

    box-shadow: 0 10px 25px rgba(139, 13, 44, 0.08);
}

.menu a.active {
    background: linear-gradient(135deg, var(--primary), var(--primary2));
    color: white;
}

.menu a span {
    transition: 0.3s ease;
    font-size: 22px;
}

.menu a:hover span {
    transform: scale(1.2);
}

.menu a.active span {
    transform: scale(1.1);
}

.menu a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 30%;
    height: 40%;
    width: 4px;
    border-radius: 10px;
    background: transparent;
    transition: 0.3s;
}

.menu a:hover::before {
    background: var(--primary);
}

.menu a.active::before {
    background: rgba(255, 255, 255, 0.8);
}

.search {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 12px 14px;
    border-radius: 14px;

    width: 320px;

    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(14px);

    border: 1px solid rgba(255, 255, 255, 0.3);

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);

    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.search:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(139, 13, 44, 0.18);
    border-color: rgba(139, 13, 44, 0.25);
}

.search span {
    color: var(--primary);
    transition: 0.3s ease;
}

.search input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;

    font-size: 14px;
    color: var(--text);
}

.search input::placeholder {
    color: #9ca3af;
    transition: 0.3s ease;
}

.search:focus-within input::placeholder {
    opacity: 0.6;
}

.search::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    transform: skewX(-20deg);
}

.search:focus-within::before {
    animation: shine 1.2s ease;
}

@keyframes shine {
    0% {
        left: -120%;
    }

    100% {
        left: 140%;
    }
}

.main {
    flex: 1;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
}

.search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.6);
    padding: 10px 14px;
    border-radius: 12px;
    width: 320px;
}

.search input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
}

.hero {
    margin-top: 18px;
    padding: 50px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: clamp(260px, 45vw, 520px);
    height: clamp(260px, 45vw, 520px);
    background: rgba(179, 18, 63, 0.18);
    filter: blur(95px);
    top: -150px;
    border-radius: 50%;
    z-index: 0;
}

.hero>div,
.hero img {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin-top: 6px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hero p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
}

.hero small {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(139, 13, 44, 0.08);
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hero img {
    width: 160px;
    animation: floatHero 6s ease-in-out infinite;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.12));
}

@keyframes floatHero {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
    width: 100%;
}

.stat {
    padding: 45px 18px;
    min-height: 140px;
    display: flex;
    gap: 14px;
    align-items: center;
    position: relative;
    border-radius: 18px;
    background: var(--glass);
    overflow: hidden;
    transition: 0.3s;
}

.stat::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: 18px;
    background-size: 300% 300%;
    animation: borderMove 4s linear infinite;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);

    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.stat:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 60px rgba(139, 13, 44, 0.15);
}

@keyframes borderMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.stat:hover {
    transform: translateY(-10px) scale(1.02);
}

.icon {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary2));
    color: white;
}

.quick {
    margin-top: 20px;
    padding: 28px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-top: 10px;
}

.quick-item {
    padding: 15px 24px;
    min-height: 140px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
}

.quick-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.quick-item .material-symbols-outlined {
    font-size: 60px;
}

.profile-dropdown {
    position: absolute;
    top: 55px;
    right: 0;
    width: 240px;
    padding: 16px;
    display: none;
    flex-direction: column;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);

    transform-origin: top right;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-dropdown.active {
    display: flex;
    animation: dropAppear 0.3s ease-out forwards;
}

@keyframes dropAppear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.profile-header2 {
    padding: 4px 8px 12px 8px;
}

.profile-header2 p {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.profile-header2 small {
    font-size: 12px;
    color: var(--muted);
}

.dropdown-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dropdown-links a,
.logout-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    text-decoration: none;
    color: #4b5563;
    font-size: 14px;
    border-radius: 12px;
    transition: 0.2s ease;
}

.dropdown-links a:hover {
    background: rgba(139, 13, 44, 0.06);
    color: var(--primary);
    transform: translateX(4px);
}

.divider {
    border: none;
    height: 1px;
    background: rgba(0, 0, 0, 0.05);
    margin: 8px 0;
}

.logout a {
    color: white !important;
}

.logout a:hover {
    color: black !important;
}

.logout-btn {
    margin-top: 4px;
    color: #e11d48;
    font-weight: 500;
}

.logout-btn:hover {
    background: rgba(225, 29, 72, 0.08);
}

.profile-dropdown .material-symbols-outlined {
    font-size: 20px;
}

.quick-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    background: rgba(139, 13, 44, 0.04);
}

.quick-item span {
    transition: transform 0.3s ease;
}

.quick-item:hover span {
    transform: scale(1.15);
}

.quick-item p {
    transition: color 0.3s ease;
}

.quick-item:hover p {
    color: var(--primary);
}

.footer {
    margin-top: 18px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--muted);
}

.stat,
.quick-item {
    animation: float 6s ease-in-out infinite;
}


.footer {
    margin-top: 25px;
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--muted);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.5;
}

.footer div:first-child {
    font-weight: 500;
    color: var(--text);
}

.footer div:last-child {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(139, 13, 44, 0.08);
    color: var(--primary);
    font-weight: 500;
}

.notif-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    width: 260px;
    padding: 10px;
    display: none;
    flex-direction: column;
    gap: 8px;
    z-index: 999999 !important;
    border-radius: 16px;
    background: var(--glass);
    backdrop-filter: blur(18px);
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    animation: dropFade 0.25s ease;
}


.notif-dropdown.active {
    display: flex;
}

.notif-item {
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
    color: var(--text);
    transition: 0.2s;
    cursor: pointer;
}

.notif-item:hover {
    background: rgba(139, 13, 44, 0.06);
    transform: translateX(4px);
}

@keyframes dropFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px)
    }

    50% {
        transform: translateY(-6px)
    }
}

.mobile-nav {
    display: none;
}


.cui-sl {
    /* display: inline-block; */
    padding: 6px 10px;
    font-size: 12px;
    background: var(--primary2);
    color: #fff;
    border-radius: 4px;
}


@media(max-width:768px) {
    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .wrapper {
        width: 100%;
        flex-direction: column;
        padding-bottom: 110px;
    }

    /* .sidebar {
        display: none;
    } */

    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .search {
        width: 180px;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }

    .mobile-nav {
        display: flex;
        position: fixed;
        bottom: 0px;
        left: 12px;
        right: 12px;
        height: 70px;
        padding: 8px 10px;
        justify-content: space-between;
        align-items: center;
        border-radius: 22px;
        background: var(--glass);
        backdrop-filter: blur(18px);
        border: 1px solid var(--border);
        z-index: 9999;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.08);
    }

    .mobile-nav div {
        flex: 1;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 4px;
        font-size: 11px;
        color: var(--text);
        border-radius: 14px;
        transition: 0.2s;
    }

    .mobile-nav div:hover {
        background: rgba(139, 13, 44, 0.08);
    }

    .mobile-nav .active {
        background: rgba(139, 13, 44, 0.08);
        color: var(--primary2);
    }

    .topbar {
        border: 1px solid #eee;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }

    .mobile-nav span {
        font-size: 22px;
    }

    .quick {
        display: none;
    }

    .cui-info {
        padding: 6px;
        border: 1px solid #eee;
        border-radius:  0 0 4px 4px;
    }
    .cui-sl {
        border-radius: 4px 4px 0 0;
    }
}


.cui-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.cui-icon-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    background: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    font-size: 13px;
}

.cui-icon-btn i {
    font-size: 13px;
}

.cui-icon-btn:hover {
    background: #f0dddd !important;
}

.cui-icon-btn.danger {
    color: #eb2c17;
}

.hero-anim {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-anim svg {
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.15));
    animation: floatHero 6s ease-in-out infinite;
}

.logout {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.logout a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--primary);
    color: #fff;
    border-radius: 15px;
    cursor: pointer;
    transition: 0.3s;
}

.logout a:hover {
    background: #e63e5c;
    box-shadow: 0 8px 20px rgba(255, 77, 109, 0.35);
    transform: translateX(4px);

    transition: all 0.25s ease-in-out;
}

.logout a:hover {
    background: rgba(255, 77, 109, 0.1);
    box-shadow: 0 0 10px rgba(255, 77, 109, 0.3);
}



/* =========================
   LAYOUT
========================= */
.cui-container {
    margin: 0px auto;
}

.cui-glass {
    background: #ffffff;
    border-radius: 0px 0px 25px 25px;
    padding: 15px;
    border: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.cui-header {
    color: #222;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.cui-filters {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 120px;
    gap: 10px;
    margin-bottom: 16px;
}

.cui-input,
.cui-select {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ddd;
    outline: none;
    font-size: 13px;
    background: #fff;
}

.cui-btn {
    background: #1d4ed8;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.cui-btn:hover {
    background: #2563eb;
    transform: scale(1.03);
}

.cui-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 14px;
    background: #ffffff;
    margin-bottom: 12px;
    transition: 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    /* row shadow */
}

.cui-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.cui-info {
    flex: 2;
}

.cui-info strong {
    display: block;
    font-size: 15px;
}

.cui-sub {
    font-size: 13px;
    color: #666;
}

.cui-mps {
    font-size: 12px;
    color: #b3122c;
}

.cui-datetime {
    flex: 1;
    font-size: 11px;
    color: #111827;
}

.cui-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cui-actions {
    margin-left: auto;
    display: flex;
    gap: 6px;
}

.cui-icon-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: none;
    background: rgba(0, 0, 0, 0.06);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cui-icon-btn:hover {
    background: #8b0d2c;
    color: #fff;
}

@media (max-width: 768px) {

    .cui-filters {
        grid-template-columns: 1fr;
    }

    .cui-card {
        display: block;
    }

    .cui-datetime {
        margin-top: 8px;
        background: rgba(0, 0, 0, 0.03);
        padding: 8px;
        border-radius: 10px;
    }

    .cui-actions {
        margin-top: 10px;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        padding-top: 10px;
    }
}

.cui-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 14px;
}

.cui-input,
.cui-select {
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
    outline: none;
    height: 32px;
}

.cui-dt-group {
    display: flex;
    gap: 6px;
}

.cui-input.small {
    width: 120px;
}

.cui-select {
    height: 32px;
    font-size: 12px;
}

.cui-btn.small-btn {
    height: 32px;
    padding: 0 14px;
    font-size: 12px;
    border-radius: 8px;
    background: #111827;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.cui-btn.small-btn:hover {
    background: #1f2937;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .cui-filters {
        flex-direction: row;
        align-items: stretch;
    }

    .cui-dt-group {
        width: 100%;
    }

    .cui-input.small {
        width: 100%;
    }
}

#list {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 6px;
}

#list::-webkit-scrollbar {
    width: 6px;
}

#list::-webkit-scrollbar-track {
    background: transparent;
}

#list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

#list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

#list {
    scrollbar-width: none;
    scrollbar-color: #cbd5e1 transparent;
}



.cui-pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.cui-pagination nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #ffffff;
    padding: 6px 10px;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    width: fit-content;
    margin: auto;
}

.cui-pagination ul {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.cui-pagination li {
    list-style: none;
}

.cui-pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    color: #444;
    background: transparent;
    border: none;
    text-decoration: none;
    transition: all 0.15s ease;
}

.cui-pagination .page-link:hover {
    background: #f3f4f6;
    color: #111;
}

.cui-pagination .active .page-link {
    background: #111827;
    color: #fff;
    box-shadow: 0 4px 10px rgba(17, 24, 39, 0.25);
}

.cui-pagination .disabled .page-link {
    opacity: 0.3;
    pointer-events: none;
}

.cui-pagination .page-item {
    margin: 0;
}

.cui-pagination {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.cui-pagination nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #fff;
    padding: 6px 10px;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    width: fit-content;
}

.cui-pagination .flex.justify-between {
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 4px;
    text-align: center;
}

.cui-pagination p,
.cui-pagination div {
    font-size: 11px;
    color: #6b7280;
}

.cui-pagination .page-link {
    min-width: 26px;
    height: 26px;
    font-size: 15px;
    border-radius: 999px;
}

.cui-pagination .active .page-link {
    background: #111827;
    color: #fff;
}


.report-card {
    font-size: 13px;
    color: #333;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.report-header h4 {
    font-size: 18px;
}

.report-row {
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}

.label {
    font-weight: 600;
    color: #555;
}

.value {
    color: #222;
}

.report-section-title {
    margin-top: 15px;
    font-weight: 700;
    background: #f5f5f5;
    padding: 6px;
    border-left: 4px solid var(--primary);
}

.report-box {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fafafa;
    margin-top: 5px;
}

.img-box {
    height: 120px;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    margin-top: 10px;
}

@media (max-width:768px) {
    .report-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .label {
        font-size: 12px;
    }

    .value {
        font-size: 12px;
    }

    .report-card {
        padding-bottom: 70px;
    }

    .modal-header-flex {
        flex-direction: column !important;
        text-align: center;
    }

    .search {
        padding: 6px 14px;
    }

    .cui-card {
        padding: 10px;
    }
}

.dropdown-menu-wrapper {
    display: flex;
    flex-direction: column;
}

.dropdown-menu-wrapper a {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    gap: 10px;
    cursor: pointer;
}

.dropdown-menu {
    margin-left: 28px;
    display: flex;
    flex-direction: column;
    border: none;
    padding-left: 10px;
}

.dropdown-menu a {
    padding: 8px 10px;
    font-size: 14px;
    opacity: 0.9;
}

.modal-header .btn-close{
    color: white !important;
}

.dropdown-menu a:hover {
    opacity: 1;
}


.profile-form {
    padding: 25px;
    border-radius: 18px;
}

.form-header {
    margin-bottom: 20px;
}

.form-header h2 {
    margin: 0;
    font-size: 22px;
    color: var(--primary);
}

.form-header p {
    margin: 5px 0 0;
    font-size: 13px;
    opacity: 0.7;
}

/* GRID */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
.form-grid2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* INPUT GROUP */
.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 12px;
    margin-bottom: 6px;
    font-weight: 600;
    opacity: 0.8;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(139, 13, 44, 0.3);
}

/* BUTTON */
.form-actions {
    margin-top: 20px;
    text-align: right;
}

.form-actions button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 9px 22px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 600;
}

.form-actions button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-grid2 {
        grid-template-columns: 1fr;
    }
    #btn{
        width: 48%;
    }
    #btn2{
        width: 100%;
    }

    /* .profile-form{
        padding: 0;
    } */
}

#adds p{
    margin: 0 !important;
}
.form-group input {
    font-size: 13px;
    padding: 7px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    outline: none;
    transition: 0.3s;
    border-color: #eee;
}

/* FOCUS */
.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(139, 13, 44, 0.3);
}

/* AUTO HIGHLIGHT WHEN VALUE EXISTS */
.form-group input:not(:placeholder-shown) {
    border-color: #eee;
}


/* FORCE TOP LAYER */
#toast-container {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 999999 !important;
    /* VERY HIGH */
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    /* allow clicks through except toast */
}

/* TOAST BOX */
.toast {
    min-width: 260px;
    max-width: 320px;
    padding: 12px 16px;
    border-radius: 12px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;

    /* IMPORTANT */
    pointer-events: all;

    /* SHADOW */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);

    /* ANIMATION */
    transform: translateX(120%);
    animation: slideIn 0.4s forwards;
}

/* SUCCESS */
.toast.success {
    background: linear-gradient(135deg, #0b7a43, #065f35);
}

/* ERROR */
.toast.error {
    background: linear-gradient(135deg, #ff4d4d, #cc0000);
}

/* CLOSE BUTTON */
.toast button {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    margin-left: 10px;
}

/* SHOW */
@keyframes slideIn {
    to {
        transform: translateX(0);
    }
}

/* HIDE */
.toast.hide {
    animation: slideOut 0.4s forwards;
}

@keyframes slideOut {
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}


/* BASE BADGE */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ACTIVE */
.badge-success {
    background: var(--primary2);
    color: #fff;
    border: 1px solid var(--primary);
}

/* INACTIVE */
.badge-danger {
    background: rgba(255, 77, 77, 0.15);
    color: #ff4d4d;
    border: 1px solid rgba(255, 77, 77, 0.4);
}

/* OPTIONAL HOVER EFFECT */
.badge:hover {
    transform: translateY(-1px);
    transition: 0.2s ease;
}

.add-btn {
    background: linear-gradient(135deg, #8b0d2c, #b3123f);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 13, 44, 0.4);
}

/* OVERLAY */
.ux-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    backdrop-filter: blur(10px);
}

/* MODAL CARD (Glassmorphism Style) */
.ux-modal-card {
    width: 420px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: pop 0.25s ease;
}

/* WIDE */
.ux-modal-wide {
    width: 780px;
}

/* HEADER */
.ux-modal-header {
    padding: 18px 22px;
    background: linear-gradient(135deg, var(--primary), var(--primary2));
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ux-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.ux-modal-close {
    font-size: 24px;
    cursor: pointer;
    transition: 0.2s;
}

.ux-modal-close:hover {
    transform: scale(1.2);
}

/* FORM */
.ux-modal-form {
    padding: 22px;
}

/* GRID */
.ux-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

/* FIELD */
.ux-field label {
    font-size: 13px;
    color: var(--text);
    margin-bottom: 6px;
    display: block;
    font-weight: 500;
}

.ux-field input,
.ux-field select {
    width: 100%;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    outline: none;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.8);
    transition: 0.2s;
    color: var(--text);
}

.ux-field input::placeholder {
    color: var(--muted);
}

.ux-field input:focus,
.ux-field select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 13, 44, 0.15);
}

/* ACTIONS */
.ux-actions {
    margin-top: 18px;
    text-align: right;
}

.ux-actions button {
    background: linear-gradient(135deg, var(--primary), var(--primary2));
    color: #fff;
    border: none;
    padding: 11px 22px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s;
}

.ux-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(139, 13, 44, 0.25);
}

/* ANIMATION */
@keyframes pop {
    from {
        transform: scale(0.92);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .ux-modal-wide {
        width: 92%;
    }

    .ux-grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .ux-grid-2 {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .ux-col {
        width: 100%;
        min-width: 0;
        /* IMPORTANT for grid overflow fix */
    }

    .ux-field input,
    .ux-field select,
    .ux-field textarea {
        width: 100%;
        box-sizing: border-box;
    }
}

/* MODAL CARD (keep border subtle, but white background) */
.ux-modal-card {
    width: 420px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: pop 0.25s ease;
}

/* WIDE */
.ux-modal-wide {
    width: 780px;
}

/* FORM AREA */
.ux-modal-form {
    padding: 22px;
    background: #ffffff;
    /* ✅ ensure white even inside */
}

/* INPUT STYLE CLEANER ON WHITE BG */
.ux-field input,
.ux-field select {
    background: #fff;
    /* pure white */
    border: 1px solid #e5e7eb;
    color: var(--text);
}

/* FOCUS */
.ux-field input:focus,
.ux-field select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 13, 44, 0.12);
}

/* OVERLAY */
.ux-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    padding: 15px;
    /* ✅ important for mobile spacing */
    backdrop-filter: blur(8px);
}

/* MODAL CARD */
.ux-modal-card {
    width: 420px;
    max-width: 100%;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: pop 0.25s ease;
}

/* WIDE MODAL (desktop only) */
.ux-modal-wide {
    width: 780px;
    max-width: 100%;
}

/* FORM */
.ux-modal-form {
    padding: 22px;
    background: #fff;
}

.ux-grid-2 {
    display: grid;
    grid-template-columns: 225px 1fr;
    gap: 18px;
}

/* FIELD */
.ux-field label {
    font-size: 13px;
    color: var(--text);
    margin-bottom: 6px;
    display: block;
}

.ux-field input,
.ux-field select {
    width: 100%;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
    background: #fff;
    transition: 0.2s;
}

.ux-field input:focus,
.ux-field select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 13, 44, 0.12);
    outline: none;
}

/* BUTTON */
.ux-actions {
    margin-top: 18px;
    text-align: right;
}

.ux-actions button {
    background: linear-gradient(135deg, var(--primary), var(--primary2));
    color: #fff;
    border: none;
    padding: 11px 22px;
    border-radius: 10px;
    cursor: pointer;
}

/* ANIMATION */
@keyframes pop {
    from {
        transform: scale(0.92);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* 📱 RESPONSIVE BREAKPOINT */
@media (max-width: 768px) {

    .ux-modal-card {
        width: 100%;
        height: auto;
        max-height: 90vh;
        overflow-y: scroll;
        border-radius: 14px;
        scroll-behavior: smooth;
    }

    .ux-modal-card::-webkit-scrollbar {
        width: 1px;
    }

    .ux-modal-card::-webkit-scrollbar-track {
        background: #f3f4f6;
        border-radius: 10px;
    }

    .ux-modal-card::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 10px;
    }

    .ux-modal-card::-webkit-scrollbar-thumb:hover {
        background: var(--primary2);
    }

    .ux-modal-card {
        scrollbar-width: thin;
        scrollbar-color: var(--primary) #f3f4f6;
    }

    /* stack form columns */
    .ux-grid-2 {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* header text smaller */
    .ux-modal-header h3 {
        font-size: 16px;
    }

    /* better button alignment */
    .ux-actions {
        text-align: center;
    }

    .ux-actions button {
        width: 100%;
    }
}

.ck-editor__editable {
    min-height: 63px;
    max-height: 100px;
}

/* extra small devices */
@media (max-width: 480px) {

    .ux-modal-overlay {
        padding: 10px;
    }

    .ux-field input,
    .ux-field select {
        font-size: 13px;
        padding: 6px 10px;
    }

    .ck-editor__editable {
        min-height: 100px;
        max-height: 200px;
    }

    .ck-editor {
        width: 100%;
        max-width: 700px;
    }

    .filter-bar {
        display: inherit !important;
    }

    .filter-bar .add-btns {
        width: 100%;
        margin-bottom: 10px;
    }

    #search {
        width: 100%;
    }

    #mps {
        width: 100%;
    }

    #startDate,
    #startTime,
    #endDate,
    #endTime,
    #filterCreate,
    #masCreate {
        width: 48%;
    }

    .select2-container {
        width: 65% !important;
    }
}
.multiselect-dropdown-list div{
    display: flex;
    align-items: center;
}
.multiselect-dropdown{
    width: 100% !important
}

.select-box {
    border: 1px solid #ccc;
    padding: 6px 10px;
    border-radius: 6px;
    background: #fff;
    max-height: 31px;
}

.dropdown {
    display: none;
    position: absolute;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background: #fff;
    border-radius: 6px;
    margin-top: 5px;
    z-index: 999;
}

.dropdown label {
    display: flex;
    padding: 5px;
}

.dropdown label:hover {
    background: #f5f5f5;
}

.small {
    margin: 0;
}

.profile-card {
    padding: 20px;
}

/* HEADER */
.profile-header2 {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

/* AVATAR */
.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary, #4e73df);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
}

/* INFO */
.profile-info h3 {
    margin: 0;
    font-size: 18px;
}

.profile-info p {
    margin: 2px 0;
    font-size: 13px;
    opacity: 0.7;
}

/* GRID */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.profile-item {
    background: #f8f9fc;
    padding: 10px;
    border-radius: 8px;
}

.profile-item label {
    font-size: 12px;
    color: #666;
    display: block;
    margin-bottom: 5px;
}

.profile-item div {
    font-size: 14px;
    font-weight: 600;
}

/* FOOTER */
.profile-footer {
    margin-top: 20px;
    text-align: right;
}

.select2-container .select2-selection--single {
    height: 40px !important;
    border-radius: 8px !important;
    border: 1px solid var(--primary2) !important;
    padding: 6px 10px;
}

.select2-selection__rendered {
    line-height: 28px !important;
}

.select2-selection__arrow {
    height: 40px !important;
}

/* MODAL CARD (GLASS STYLE) */
.ux-modal-card {
    width: 920px;
    max-width: 95%;
    max-height: 90vh;
    border-radius: 16px;
    background: white;
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* FORM SCROLL AREA */
.ux-modal-form {
    padding: 18px;
    overflow-y: auto;
    flex: 1;
}

/* HIDE SCROLLBAR */
.ux-modal-form::-webkit-scrollbar {
    width: 0;
}

.ux-modal-form {
    scrollbar-width: none;
    -ms-overflow-style: none;
}


/* MOBILE SIDEBAR FIX */
@media (max-width: 768px) {

    .sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 260px;
        height: 100%;
        background: #fff;
        transition: all 0.3s ease;
        z-index: 999999 ;
    }

    .sidebar.active {
        left: 0;
    }

    /* overlay optional */
    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        z-index: 9998;
    }

    .sidebar-overlay.active {
        display: block;
    }
}

/* CLOSE BUTTON */
.sidebar-close {
    display: none;
    padding: 8px;
    text-align: right;
    cursor: pointer;
}

/* SHOW ONLY ON MOBILE */
@media (max-width: 768px) {
    .sidebar-close {
        display: block;
    }

    .sidebar-close .material-symbols-outlined {
        font-size: 28px;
    }
    #editBuildingForm{
        margin-bottom: 70px;
    }
    .b-info{
        display: none;
    }
}

.ux-field.billing-card {
  max-width: 600px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  font-family: "Inter", sans-serif;
  transition: all 0.25s ease;
}

.ux-field.billing-card label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

.ux-field.billing-card textarea.rich-text {
  width: 100%;
  min-height: 120px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.6;
  border: 1px solid #dcdcdc;
  border-radius: 10px;
  outline: none;
  resize: vertical;
  background: #fafafa;
  transition: all 0.3s ease;
}

/* Focus effect */
.ux-field.billing-card textarea.rich-text:focus {
  border-color: #4f46e5;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

/* Hover effect */
.ux-field.billing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.mas-section-title {
    font-size: 11px;
    font-weight: 600;
    color: #8b0d2c;
    text-transform: uppercase;
    letter-spacing: .6px;
    padding-bottom: 6px;
    border-bottom: 1.5px solid #f3c6d0;
    margin-bottom: 12px;
}
.mas-label {
    font-size: 12px;
    font-weight: 500;
    color: #555;
    margin-bottom: 4px;
    display: block;
}
.mas-input {
    font-size: 13px;
    border-color: #ddd;
}
.mas-input:focus {
    border-color: #8b0d2c;
    box-shadow: 0 0 0 3px rgba(139,13,44,.1);
}
.vthl {
    padding: 7px 8px;
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .4px;
    white-space: nowrap;
}

:root {
    --sms-red:     #8b0d2c;
    --sms-red2:    #b3123f;
    --sms-dark:    #1a0a0f;
    --sms-mid:     #3d1020;
    --sms-gold:    #c9a84c;
    --sms-cream:   #fdf8f0;
    --sms-border:  #e8ddd5;
    --sms-muted:   #9a8a82;
    --sms-text:    #2c1810;
    --sms-input-bg:#fffcfa;
    --sms-success: #166534;
}

.sms-modal-wrap {
    font-family: 'DM Sans', sans-serif;
    background: var(--sms-cream);
    color: var(--sms-text);
}

/* ── HEADER ── */
.sms-modal-header {
    background: linear-gradient(135deg, var(--sms-dark) 0%, var(--sms-red) 60%, var(--sms-red2) 100%);
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.sms-modal-header::before {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 120px; height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}
.sms-modal-header::after {
    content: '';
    position: absolute;
    bottom: -20px; left: 40%;
    width: 80px; height: 80px;
    border-radius: 50%;
    background: rgba(201,168,76,0.12);
}
.sms-modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}
.sms-modal-title .title-icon {
    width: 34px; height: 34px;
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    border: 1px solid rgba(255,255,255,0.2);
}
.sms-close-btn {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 30px; height: 30px;
    border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: background .2s;
    position: relative; z-index: 1;
}
.sms-close-btn:hover { background: rgba(255,255,255,0.22); }

/* ── BODY ── */
.sms-modal-body {
    padding: 28px;
    background: white;
}

/* ── SECTION TITLE ── */
.sms-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    margin-top: 6px;
}
.sms-section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--sms-border), transparent);
}
.sms-section-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--sms-red);
    white-space: nowrap;
    padding: 3px 10px;
    background: #fff;
    border: 1px solid var(--sms-border);
    border-radius: 20px;
}

/* ── LABELS ── */
.sms-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: black;
    margin-bottom: 6px;
}

/* ── INPUTS ── */
.sms-input {
    width: 100%;
    border: 1px solid #adadad;
    border-radius: 9px;
    padding: 9px 13px;
    font-size: 13px;
    font-family: 'DM Sans', sans-serif;
    color: var(--sms-text);
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    box-sizing: border-box;
}
.sms-input:focus {
    border-color: var(--sms-red);
    box-shadow: 0 0 0 3px rgba(139,13,44,0.08);
}
.sms-input::placeholder { color: #bbb; }

select.sms-input {
    appearance: none;
    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='%239a8a82' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 34px;
    cursor: pointer;
}

textarea.sms-input { resize: vertical; min-height: 90px; }

/* ── CLIENT SEARCH ── */
.sms-search-wrap { position: relative; }
.sms-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    z-index: 9999;
    background: #fff;
    border: 1.5px solid var(--sms-border);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(139,13,44,0.10);
    max-height: 220px;
    overflow-y: auto;
}
.sms-dropdown::-webkit-scrollbar { width: 4px; }
.sms-dropdown::-webkit-scrollbar-thumb { background: var(--sms-border); border-radius: 4px; }
.client-option {
    padding: 9px 14px;
    font-size: 13px;
    color: var(--sms-text);
    cursor: pointer;
    border-bottom: 1px solid #f5f0eb;
    transition: background .15s;
}
.client-option:last-child { border-bottom: none; }
.client-option:hover { background: #fff7f0; }

.sms-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 7px;
    background: linear-gradient(135deg, var(--sms-red), var(--sms-red2));
    color: #fff;
    padding: 3px 10px 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.sms-badge button {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    width: 18px; height: 18px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px;
    transition: background .15s;
}
.sms-badge button:hover { background: rgba(255,255,255,0.35); }

/* ── LOCATIONS ── */
.sms-location-box {
    background: #fff;
    border: 1.5px solid #adadad;
    border-radius: 10px;
    padding: 12px 14px;
    min-height: 46px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.sms-loc-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1.5px solid var(--sms-border);
    background: var(--sms-cream);
    color: var(--sms-text);
    transition: all .15s;
    user-select: none;
}
.sms-loc-chip input[type=checkbox] { display: none; }
.sms-loc-chip.checked {
    background: linear-gradient(135deg, var(--sms-red), var(--sms-red2));
    color: #fff;
    border-color: var(--sms-red);
}
.sms-loc-chip .chip-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.6;
}

/* ── VEHICLE TABLE ── */
.sms-vtable {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12px;
    border: 1.5px solid var(--sms-border);
    border-radius: 10px;
    overflow: hidden;
}
.sms-vtable thead tr {
    background: linear-gradient(135deg, var(--sms-dark), var(--sms-mid));
}
.sms-vtable thead th {
    padding: 9px 8px;
    text-align: left;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
    border-right: 1px solid rgba(255,255,255,0.08);
    white-space: nowrap;
}
.sms-vtable thead th:last-child { border-right: none; }
.sms-vtable tbody tr { border-bottom: 1px solid var(--sms-border); }
.sms-vtable tbody tr:last-child { border-bottom: none; }
.sms-vtable tbody tr:nth-child(even) { background: #fdf7f4; }
.sms-vtable tbody td { padding: 5px 5px; }
.vtable-input {
    width: 100%;
    background: transparent;
    border: 1.5px solid #eee;
    border-radius: 6px;
    padding: 5px 7px;
    font-size: 11.5px;
    font-family: 'DM Sans', sans-serif;
    color: var(--sms-text);
    outline: none;
    transition: border-color .15s, background .15s;
    box-sizing: border-box;
}
.vtable-input:focus {
    border-color: var(--sms-red);
    background: #fff;
}
select.vtable-input {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239a8a82' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    padding-right: 22px;
}

/* ── ADD ROW BTN ── */
.sms-add-row-btn {
    background: transparent;
    border: 1.5px dashed var(--sms-red);
    color: var(--sms-red);
    padding: 5px 14px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all .2s;
}
.sms-add-row-btn:hover {
    background: var(--sms-red);
    color: #fff;
    border-style: solid;
}

/* ── DELETE ROW BTN ── */
.sms-del-btn {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    width: 26px; height: 26px;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 11px;
    transition: background .15s;
}
.sms-del-btn:hover { background: #fca5a5; }

/* ── IMAGE UPLOAD ── */
.sms-img-upload {
    border: 2px dashed var(--sms-border);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    background: #fff;
    position: relative;
}
.sms-img-upload:hover {
    border-color: var(--sms-red);
    background: #fff9f7;
}
.sms-img-upload input[type=file] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}
.sms-img-preview {
    display: none;
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 7px;
    margin-top: 8px;
    border: 1px solid var(--sms-border);
}

/* ── FOOTER ── */
.sms-modal-footer {
    padding: 16px 28px;
    background: #fff;
    border-top: 1px solid var(--sms-border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    align-items: center;
}
.sms-btn-cancel {
    background: var(--sms-cream);
    border: 1.5px solid var(--sms-border);
    color: var(--sms-muted);
    padding: 8px 20px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: all .2s;
}
.sms-btn-cancel:hover { border-color: var(--sms-muted); color: var(--sms-text); }
.sms-btn-submit {
    background: linear-gradient(135deg, var(--sms-dark), var(--sms-red));
    color: #fff;
    border: none;
    padding: 8px 22px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: opacity .2s, transform .15s;
    box-shadow: 0 4px 14px rgba(139,13,44,0.35);
    letter-spacing: .3px;
}
.sms-btn-submit:hover { opacity: .92; transform: translateY(-1px); }
.sms-btn-submit:active { transform: translateY(0); }

/* ── LOADER ── */
.sms-loader {
    display: none;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--sms-muted);
    padding: 8px 0;
}

/* ── NO RESULT ── */
.sms-no-result {
    padding: 10px 14px;
    font-size: 12px;
    color: #bbb;
    text-align: center;
}

