body {
    font-family: 'Poppins', sans-serif;
    background-color: #fffef9;
}

* {
    caret-color: transparent;
    /* Hide typing cursor */
    user-select: none;
    /* Prevent text selection */
    box-sizing: border-box;
}

input,
textarea,
select,
filter {
    caret-color: auto !important;
    user-select: text !important;
}

/* Brand colors */
:root {
    --uts-blue: #01305A;
    --uts-gold: #F2B50D;
}

p {
    font-family: 'Lora', serif;
}

.navbar-brand img {
    height: 60px;
}

.collapse {
    font-weight: 600;
}

.hero-section {
    position: relative;
    height: 90vh;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 90vh;
    object-fit: cover;
    object-position: center;
}

.carousel-caption {
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    position: absolute;
    z-index: 2;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.zoom-effect {
    animation: zoomInOut 15s ease-in-out infinite;
    transform-origin: center center;
}

@keyframes zoomInOut {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    color: white;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: white;
}


.categories {
    padding: 50px 0;
}

.categories h2 {
    font-weight: 600;
    margin-bottom: 30px;
}

.category-card {
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: scale(1.05);
}

.category-img {
    max-height: 220px;
    object-fit: cover;
}

footer {
    padding: 20px 0;
    background: #f8f8f8;
    color: #555;
}

.links {
    text-decoration: none;
    color: #000;
}

.contact-form-btn {
    background-color: #002f59 !important;
    color: white !important;
}

.slider {
    width: 100%;
    height: var(--height);
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, #000 10% 90%, transparent);
    margin: 5rem 0;
}

.slider .sliderList {
    display: flex;
    width: 100%;
    min-width: calc(var(--width) * var(--quantity));
    position: relative;
}

.slider .sliderList .sliderItem {
    width: var(--width);
    height: var(--height);
    position: absolute;
    left: 100%;
    animation: autoRun 20s linear infinite;
    transition: filter 0.5s;
    animation-delay: calc((20s / var(--quantity)) * (var(--position) - 1));
}

.slider .sliderList .sliderItem img {
    height: 100%;
}

@media (max-width: 990px) {
    .slider .sliderList .sliderItem {
        height: 90px;
    }

    .slider .sliderList .sliderItem img {
        padding-left: 30px;
        padding-right: 30px;
        height: 100%;
    }

    #languageSwitcher {
        padding: 10px 0;
    }
}

@keyframes autoRun {
    from {
        left: 100%;
    }

    to {
        left: calc(var(--width) * -1 - 350px);
    }
}

.slider:hover .sliderItem {
    animation-play-state: paused !important;
    filter: grayscale(1);
}

.slider .sliderItem:hover {
    filter: grayscale(0);
}

#thankYouModal .modal-header {
    background-color: #f1d8a4;
    color: #333;
}

#languageSwitcher {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    background: transparent;
    border: none;
    outline: none;
    text-align: center;
}

/* Increase flag image size and adjust text alignment */
#languageSwitcher img {
    width: 30px;
    height: 30px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 50px;
    background-color: #FAEBD7;
}

#languageSwitcher span {
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

#languageSwitcher:hover span {
    color: #333;
}

#languageSwitcher:active span {
    color: #333 !important;
}

.slider-description {
    font-size: 1.1rem;
    color: #555;
    background-color: #f8f9fa;
    padding: 30px 0;
    border-bottom: 2px solid #ddd;
}

.slider-description p {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Style for the About Us Section */
#aboutUs {
    background-color: #f8f9fa;
    /* Light background for the section */
    color: #333;
    /* Dark text color */
    padding: 50px 0;
    /* Top and bottom padding */
}

#aboutUs h2 {
    font-size: 2rem;
    /* Larger font for the heading */
    color: #2c3e50;
    /* Dark color for the header */
    font-weight: bold;
}

#aboutUs p {
    font-size: 1.1rem;
    /* Larger text for readability */
    line-height: 1.6;
    /* Increased line spacing */
    color: #6c757d;
    /* Muted gray text color */
}

#aboutUs img {
    max-width: 100%;
    /* Make sure the image fits within its container */
    height: auto;
    /* Maintain the image aspect ratio */
    border-radius: 8px;
    /* Rounded corners for the image */
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    /* Subtle shadow around the image */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    #aboutUs .row {
        text-align: center;
        /* Center text on smaller screens */
    }

    #aboutUs img {
        margin-bottom: 20px;
        /* Add some space below the image */
    }
}

#splashScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

#UTSLogo {
    width: 180px;
    height: auto;
}

/* Minimal nav for layout (separate from your site navbar) */
.uts-nav {
    background: #fff;
    border-bottom: 1px solid #eee;
}

.uts-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    height: 44px;
}

.nav-right .nav-link,
.nav-btn {
    margin-left: 12px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

/* Auth pages */
/* Fullscreen, two-tone feel */
.auth-wrap {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.auth-theme {
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(242, 181, 13, 0.10), transparent 60%),
        radial-gradient(1000px 500px at 110% 110%, rgba(1, 48, 90, 0.10), transparent 55%),
        #fffef9;
}

/* Card */
.auth-card {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 26px 24px 22px;
    box-shadow: 0 18px 40px rgba(1, 48, 90, 0.12);
    position: relative;
}

.auth-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(242, 181, 13, 0.20), transparent 35%);
}

/* Header brand lockup */
.auth-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.auth-logo {
    width: 78px;
    /* was 54px */
    height: 78px;
    border-radius: 14px;
    object-fit: contain;
    background: #fff;
    border: 2px solid rgba(1, 48, 90, 0.08);
    padding: 8px;
}

.auth-titleblock {
    line-height: 1.2;
}

.auth-title {
    margin: 0;
    font-weight: 800;
    font-size: 24px;
    color: var(--uts-blue);
}

.auth-subtitle {
    margin: 2px 0 0;
    font-size: 14px;
    color: #6b7280;
}

/* Fields */
.auth-field {
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-field label {
    font-size: 13px;
    color: #4b5563;
    font-weight: 600;
}

.auth-field input {
    padding: 12px 12px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    background: #fff;
    color: #111827;
    transition: border-color .2s, box-shadow .2s;
}

.auth-field input:focus {
    outline: none;
    border-color: var(--uts-blue);
    box-shadow: 0 0 0 4px rgba(1, 48, 90, 0.12);
}

/* Error */
.auth-error {
    background: #fff4f2;
    color: #b42318;
    border: 1px solid #ffd3cc;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 12px;
}

/* Row + checkbox */
.auth-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0 14px;
}

.auth-check {
    font-size: 14px;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Buttons */
.auth-btn {
    width: 100%;
    padding: 12px;
    background: var(--uts-blue);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    letter-spacing: .2px;
    cursor: pointer;
    transition: transform .06s ease, box-shadow .2s ease, opacity .2s ease;
    box-shadow: 0 8px 18px rgba(1, 48, 90, 0.20);
}

.auth-btn:hover {
    opacity: .95;
}

.auth-btn:active {
    transform: translateY(1px);
}

.auth-btn-outline {
    text-align: center;
    display: block;
    width: 100%;
    box-sizing: border-box;
    /* <-- critical: include border in width */
    padding: 12px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: .2px;
    text-decoration: none;
    border: 2px solid var(--uts-gold);
    color: var(--uts-blue);
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, var(--uts-gold), #ffd86b) border-box;
    transition: opacity .2s;
}

.auth-btn-outline:hover,
.auth-btn-outline:focus {
    opacity: .95;
    text-decoration: none;
}

/* Ghost button for a lighter third action */
.auth-btn-ghost {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 12px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: .2px;
    color: var(--uts-blue);
    background: #fff;
    border: 2px solid #e5e7eb;
    transition: background .2s, opacity .2s;
    text-decoration: none;
}

.auth-btn-ghost:hover,
.auth-btn-ghost:focus {
    background: #f7f9fc;
}

/* Dual actions on register */
.auth-actions {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

/* Footer link on login */
.auth-switch {
    margin-top: 12px;
    display: flex;
    gap: 6px;
    justify-content: center;
    font-size: 14px;
}

.auth-switch a {
    color: var(--uts-blue);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid rgba(1, 48, 90, 0.15);
}

.auth-switch a:hover {
    border-bottom-color: var(--uts-gold);
}

/* On small screens, full width feels better */
@media (max-width: 420px) {
    .auth-btn-outline {
        width: 100%;
    }
}

.dash-wrap {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(242, 181, 13, .10), transparent 60%),
        radial-gradient(1000px 500px at 110% 110%, rgba(1, 48, 90, .10), transparent 55%),
        #fffef9;
}

.dash-card {
    width: 100%;
    max-width: 960px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 18px 40px rgba(1, 48, 90, .12);
    position: relative;
}

.dash-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(242, 181, 13, .20), transparent 35%);
}

.dash-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.dash-logo {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: #fff;
    object-fit: contain;
    border: 2px solid rgba(1, 48, 90, .08);
    padding: 6px;
}

.dash-title {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    color: var(--uts-blue);
}

.dash-sub {
    margin: 4px 0 0;
    color: #6b7280;
    font-size: 14px;
}

.dash-badge {
    background: var(--uts-blue);
    color: #fff;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 700;
}

.dash-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 8px;
}

@media (min-width: 800px) {
    .dash-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.dash-box {
    background: #fafcff;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    padding: 16px;
}

.dash-box h3 {
    margin: 0 0 10px;
    color: var(--uts-blue);
}

.dash-dl {
    display: grid;
    grid-template-columns: 120px 1fr;
    row-gap: 8px;
    column-gap: 12px;
}

.dash-dl dt {
    color: #4b5563;
    font-weight: 600;
}

.dash-dl dd {
    margin: 0;
    color: #111827;
}

.dash-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dash-btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 800;
    letter-spacing: .2px;
    text-decoration: none;
    cursor: pointer;
    transition: opacity .2s, transform .06s;
}

.dash-btn:active {
    transform: translateY(1px);
}

.dash-btn-primary {
    background: var(--uts-blue);
    color: #fff;
    box-shadow: 0 8px 18px rgba(1, 48, 90, .20);
}

.dash-btn-primary:hover {
    opacity: .95;
}

.dash-btn-gold {
    color: #1f2937;
    background: linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, var(--uts-gold), #ffd86b) border-box;
    border: 2px solid transparent;
}

.dash-btn-gold:hover {
    opacity: .95;
}

.dash-btn-outline {
    background: #fff;
    padding: 12px;
    color: var(--uts-blue);
    border: 2px solid var(--uts-gold);
}

.dash-btn-outline:hover {
    opacity: .95;
}

.admin-wrap {
    min-height: 100dvh;
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(242, 181, 13, .10), transparent 60%),
        radial-gradient(1000px 500px at 110% 110%, rgba(1, 48, 90, .10), transparent 55%),
        #fffef9;
    padding: 24px;
}

.admin-shell {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 18px;
}

@media (max-width: 1000px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }
}

.admin-side {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 12px 28px rgba(1, 48, 90, .08);
    position: sticky;
    top: 24px;
    height: fit-content;
}

.admin-brand {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.admin-brand img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: contain;
    border: 2px solid rgba(1, 48, 90, .08);
    padding: 4px;
}

.admin-brand strong {
    display: block;
    color: var(--uts-blue);
}

.admin-brand small {
    color: #6b7280;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 10px 0 16px;
}

.admin-link {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #1f2937;
    font-weight: 700;
}

.admin-link:hover {
    background: #f7f9fc;
}

.admin-active {
    background: #eef5fb;
    color: var(--uts-blue);
}

.admin-quick {
    display: grid;
    gap: 8px;
}

.admin-btn {
    display: block;
    text-align: center;
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 800;
    text-decoration: none;
}

.admin-btn-primary {
    background: var(--uts-blue);
    color: #fff;
}

.admin-btn-outline {
    color: var(--uts-blue);
    background: linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, var(--uts-gold), #ffd86b) border-box;
    border: 2px solid transparent;
}

.admin-main {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 12px 28px rgba(1, 48, 90, .08);
}

.admin-title {
    margin: 4px 0 12px;
    color: var(--uts-blue);
    font-size: 24px;
    font-weight: 800;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

@media (max-width: 600px) {
    .admin-stats {
        grid-template-columns: 1fr;
    }
}

.admin-card {
    background: #fafcff;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    padding: 14px;
}

.admin-stat .stat-label {
    color: #4b5563;
    font-size: 13px;
}

.admin-stat .stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--uts-blue);
}

.admin-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.admin-table-wrap {
    overflow: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #eef2f7;
    text-align: left;
}

.admin-table th {
    font-size: 13px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.admin-table .right {
    text-align: right;
}

.admin-table .empty {
    text-align: center;
    color: #6b7280;
    padding: 16px;
}

.table-btn {
    padding: 8px 10px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 800;
    color: #fff;
    background: var(--uts-blue);
}

.table-btn.primary {
    background: var(--uts-blue);
}

.table-btn.danger {
    background: #b91c1c;
}

.muted {
    color: #9ca3af;
}

.role-badge {
    padding: 4px 8px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
}

.role-admin {
    background: var(--uts-blue);
    color: #fff;
}

.role-user {
    background: #e5e7eb;
    color: #374151;
}

.admin-search {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.admin-search input {
    flex: 1;
    padding: 10px 12px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
}

.admin-alert {
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 12px;
    font-weight: 700;
}

.admin-alert.error {
    background: #fff4f2;
    color: #b42318;
    border: 1px solid #ffd3cc;
}

.admin-alert.success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.admin-paginate {
    padding: 10px 0 0;
}

.admin-paginate nav {
    display: flex;
    justify-content: center;
}

/* Shell */
.sheet-wrap {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(242, 181, 13, .10), transparent 60%),
        radial-gradient(1000px 500px at 110% 110%, rgba(1, 48, 90, .10), transparent 55%),
        #fffef9;
}

.sheet-card {
    width: 100%;
    max-width: 1200px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 18px 40px rgba(1, 48, 90, .12);
    position: relative;
}

.sheet-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(242, 181, 13, .20), transparent 35%);
}

/* Header */
.sheet-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.sheet-company {
    color: #6b7280;
    font-weight: 700;
    letter-spacing: .2px;
}

.sheet-title {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: var(--uts-blue);
}

.sheet-sub {
    color: #4b5563;
    font-size: 14px;
    margin-top: 2px;
}

.sheet-head-actions {
    display: flex;
    gap: 8px;
}

/* Toolbar & meta */
.sheet-meta {
    margin: 6px 0 10px;
    color: #374151;
}

.mini-link {
    margin-left: 6px;
    font-weight: 700;
    color: var(--uts-blue);
    background: none;
    border: none;
    cursor: pointer;
}

.sheet-toolbar {
    margin: 8px 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.sheet-toolbar .sort-select {
    margin-left: auto; /* pushes sort form to the right */
}

.sort-select select {
    padding: 6px 32px 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: #fff;
    font-size: 14px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

.sort-select::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 12px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #4b5563;
    pointer-events: none;
    transform: translateY(-50%);
}

.currency-input {
    text-align: right;
}

/* Table */
.sheet-table-wrap {
    overflow: auto;
}

.sheet-table {
    width: 100%;
    border-collapse: collapse;
}

.sheet-table th,
.sheet-table td {
    border-bottom: 1px solid #eef2f7;
    padding: 10px 8px;
    text-align: left;
}

.sheet-table th {
    color: #6b7280;
    text-transform: uppercase;
    font-size: 12.5px;
    letter-spacing: .04em;
}

.sheet-table td input[type="text"],
.sheet-table td input[type="date"],
.sheet-table td input[type="number"] {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
}

.sheet-table .right {
    text-align: right;
}

.sheet-table .empty {
    text-align: center;
    padding: 16px;
    color: #6b7280;
}

/* Buttons */
.sheet-btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
}

.sheet-btn-primary {
    background: var(--uts-blue);
    color: #fff;
}

.sheet-btn-outline {
    color: var(--uts-blue);
    background: linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, var(--uts-gold), #ffd86b) border-box;
    border: 2px solid transparent;
}

.sheet-btn-ghost {
    background: #fff;
    color: var(--uts-blue);
    border: 2px solid #e5e7eb;
}

.sheet-btn:active {
    transform: translateY(1px);
}

/* Table action buttons */
.table-btn {
    padding: 8px 10px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 800;
    color: #fff;
    background: var(--uts-blue);
}

.table-btn.primary {
    background: var(--uts-blue);
}

.table-btn.danger {
    background: #b91c1c;
}

/* Totals & summary */
.sheet-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.sum-item {
    background: #fafcff;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    padding: 12px;
}

.sum-label {
    color: #6b7280;
}

.sum-value {
    color: #111827;
    font-weight: 800;
    font-size: 18px;
}

/* Alerts */
.sheet-alert {
    border-radius: 10px;
    padding: 10px 12px;
    margin: 8px 0;
    font-weight: 700;
    transition: opacity .25s ease, transform .25s ease;
}

.sheet-alert.is-hiding {
    opacity: 0;
    transform: translateY(-6px);
}

.sheet-alert.success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.sheet-alert.error {
    background: #fff4f2;
    color: #b42318;
    border: 1px solid #ffd3cc;
}

/* Pagination container (for default Laravel links) */
.sheet-paginate nav {
    display: flex;
    justify-content: center;
}

/* Modal (vanilla CSS) */
.modal {
    position: fixed;
    inset: 0;
    display: none;
}

.modal.open {
    display: block;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .32);
}

.modal-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 92%;
    max-width: 460px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #eee;
    box-shadow: 0 18px 40px rgba(1, 48, 90, .20);
    overflow: hidden;
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
}

.modal-x {
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.modal-body {
    padding: 14px;
}

.field-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.field-row label {
    font-weight: 700;
    font-size: 13.5px;
    color: #374151;
}

.field-row input,
.field-row select {
    padding: 10px 12px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
}

.modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 4px;
}

.req {
    color: #b91c1c;
}

.dash-help {
    color: #6b7280;
    margin: 6px 0 10px;
    font-size: 14px;
}

/* Icon-only action buttons */
.icon-actions {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.icon-btn {
    --size: 36px;
    width: var(--size);
    height: var(--size);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    background: #fff;
    color: #01305A;
    /* UTS blue */
    cursor: pointer;
    transition: background .18s, border-color .18s, box-shadow .18s, transform .06s;
}

.icon-btn svg {
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-btn:hover {
    background: #f7f9fc;
    border-color: #dbe3ea;
}

.icon-btn:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(1, 48, 90, 0.15);
}

.icon-btn:active {
    transform: translateY(1px);
}

/* Save = blue primary with gold edge accent on hover */
.icon-save {
    background: var(--uts-blue, #01305A);
    color: #fff;
    border-color: var(--uts-blue, #01305A);
}

.icon-save:hover {
    filter: brightness(0.96);
    border-color: #F2B50D;
    /* gold hint on hover */
}

/* Delete = red */
.icon-del {
    background: #b91c1c;
    color: #fff;
    border-color: #b91c1c;
}

.icon-del:hover {
    filter: brightness(0.95);
}

/* a11y */
.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Keep actions right-aligned in the cell */
.sheet-table td.right .icon-actions {
    justify-content: flex-end;
}

/* paperclip button look */
.icon-clip {
    border-color: #e5e7eb;
    background: #fff;
}

.icon-clip:hover {
    background: #f7f9fc;
}

/* eye (view attachments) button look */
.icon-view {
    border-color: #e5e7eb;
    background: #fff;
}

.icon-view:hover {
    background: #f7f9fc;
}

/* tooltip shown when no attachments are present */
.no-attach-tip {
    position: absolute;
    background: #1f2937;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    display: none;
    z-index: 10000;
}

/* Attachments popover panel */
.attach-panel {
    position: fixed;
    /* was absolute */
    z-index: 9999;
    /* sit above the whole card */
    display: none;
    /* shown when .open is added */
    width: fit-content;
    min-width: 480px;
    max-width: 90vw;
    white-space: normal;

    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(1, 48, 90, .18);
    padding: 10px 12px;
}

.attach-panel::before,
.attach-panel::after {
    display: none;
}

.attach-panel.open {
    display: block;
}

.attach-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.attach-head strong {
    font-weight: 800;
    color: #0f172a;
}

.attach-head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.attach-bundle {
    text-decoration: none;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 8px;
    background: #01305A;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.attach-bundle:hover {
    filter: brightness(0.96);
}

.attach-close {
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #334155;
}

/* custom Browse… */
.attach-input-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.attach-browse {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font-weight: 700;
    color: #01305A;
}

.attach-browse:hover {
    background: #f7f9fc;
}

.attach-selected {
    margin: 0 10px;
    color: #6b7280;
    font-size: 13px;
    max-width: 40ch;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.attach-close {
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #334155;
}

/* list + mini buttons */
.attach-list {
    list-style: none;
    padding: 0;
    margin: 6px 0 10px;
    max-height: none;
    /* remove vertical limit */
    overflow: visible;
}

.attach-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px dashed #eef2f7;
    flex-wrap: wrap;
}

.attach-list li:last-child {
    border-bottom: 0;
}

.attach-name {
    flex: 1;
    text-decoration: none;
    color: #01305A;
}

.attach-name:hover {
    text-decoration: underline;
}

.attach-size {
    color: #6b7280;
    font-size: 12px;
}

.attach-btnmini {
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: #334155;
    background: #fff;
}

.attach-btnmini:hover {
    background: #f8fafc;
}

.attach-btnmini.danger {
    border-color: #ef4444;
    color: #b91c1c;
}

.attach-btnmini.danger:hover {
    background: #fef2f2;
}

.attach-del,
.attach-dl {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 4px 6px;
    cursor: pointer;
    text-decoration: none;
    color: #334155;
}

.attach-del:hover,
.attach-dl:hover {
    background: #f8fafc;
}

.attach-upload {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.attach-input {
    flex: 1;
}

.attach-btn {
    padding: 8px 12px;
    border-radius: 10px;
    border: 0;
    cursor: pointer;
    background: #F2B50D;
    color: #0f172a;
    font-weight: 800;
}

.muted {
    color: #94a3b8;
}

/* === Confirm Modal only (scoped to #modalConfirm) === */
#modalConfirm {
    z-index: 10000;
    /* sits above everything */
}

#modalConfirm .modal-backdrop {
    position: fixed;
    /* cover whole screen */
    inset: 0;
    background: rgba(0, 0, 0, .55);
    /* darker overlay */
    backdrop-filter: blur(1px);
    /* optional */
}

#modalConfirm .modal-card {
    position: fixed;
    /* center relative to viewport */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 460px;
    width: calc(100% - 32px);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    padding: 20px;
    /* better inner spacing */
    z-index: 10001;
    /* above the backdrop */
}

/* tidy header/body/actions only for confirm modal */
#modalConfirm .modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid #eee;
}

#modalConfirm .modal-head h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

#modalConfirm .modal-body {
    padding: 6px 0 18px;
    font-size: 15px;
    color: #333;
}

#modalConfirm .modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

#modalConfirm .sheet-btn {
    min-width: 108px;
    padding: 8px 16px;
    border-radius: 6px;
}

/* optional: make the confirm button red for destructive action */
#modalConfirm #confirmYes.sheet-btn.sheet-btn-primary {
    background: #d92d20;
    border-color: #d92d20;
}

#modalConfirm #confirmYes.sheet-btn.sheet-btn-primary:hover {
    filter: brightness(.95);
}

/* container sits inline in the toolbar */
.modern-sort {
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
}

/* trigger button */
.sort-dropdown {
    position: relative;
    display: inline-block;
}

.sort-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 190px;
    height: 38px;
    padding: 0 14px;
    background: #fff;
    border: 1px solid var(--uts-blue);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--uts-blue);
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .06s ease, background .18s ease, color .18s ease;
    position: relative;
}

/* add the ▼ arrow */
.sort-trigger::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    width: 0;
    height: 0;
    pointer-events: none;
    transform: translateY(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #555; /* arrow color */
}

.sort-dropdown.open .sort-trigger::after {
    border-top: none;
    border-bottom: 6px solid #555; /* flip arrow when open */
}

.sort-trigger:hover {
    background: var(--uts-blue);
    color: #fff;
}

.sort-trigger:focus {
    outline: none;
    border-color: var(--uts-blue);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, .18);
}

.sort-trigger:active {
    transform: translateY(1px);
}

/* arrow uses current text color */
.sort-arrow {
    margin-left: 8px;
    pointer-events: none;
}

.sort-arrow path {
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* dropdown menu */
.sort-menu {
    position: absolute;
    top: 44px;
    left: 0;
    right: 0;
    z-index: 5000;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(2, 32, 71, .12);
    padding: 6px;
    margin: 0;
    list-style: none;
    display: none;
}

.sort-dropdown.open .sort-menu {
    display: block;
}

.sort-option {
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    color: #111827;
    font-size: 14px;
    font-weight: 500;
}

.sort-option:hover {
    background: #f1f5f9;
}

/* SINGLE definitive active style */
.sort-option.is-active {
    background: var(--uts-blue);
    color: #fff;
}

/* small screens */
@media (max-width: 480px) {
    .sort-trigger {
        min-width: 160px;
    }
}

/* cards container (reused) */
.stats-wrap{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
}

/* the inline variant used inside the sheet card */
.stats-inline{
  justify-content:flex-end;      /* push to right */
  margin: 8px 0 12px;            /* snug spacing under header */
}

/* card look */
.stat-card{
  min-width: 220px;
  background: linear-gradient(180deg,#fff 0%, #f9fbff 100%);
  border: 1px solid #dfe7ef;
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 8px 24px rgba(2,32,71,.06);
}

.stat-label{
  font-size:12px;
  color:#6b7280;
  margin-bottom:4px;
}

.stat-value{
  font-size:18px;
  font-weight:800;
  color: var(--uts-blue, #0f3d56);
  letter-spacing:.2px;
}