@font-face {
    font-family: Quicksand;
    src: url('../../../font/quicksand-variablefont_wght.ttf') format('truetype');
}

:root {
    --dark: #1A1A1A;
    --white: #FFFFFF;
    --green: #3B5323;
    --green-dark: #2B3D1A;
    --gray-border: #D1D5DB;
    --gray-text: #4B5563;
    --red: #D9534F;
    --teal: #14B8A6;
    --green-light: #5CB85C;
    --cream: #F9FAF2;
    --cream-2: #FDFCF0;
    --gold: #FFBF00;
    --tan: #D2B48C;
    --gray-muted: #9CA3AF;
    --font-family: Quicksand; /* ADDED HR */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    /*font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;*/
    font-family: var(--font-family) !important;
    background: var(--cream);
    color: var(--dark);
}

h1,
h2,
h3 {
    /*font-family: Georgia, 'Times New Roman', serif;*/
    font-family: var(--font-family) !important;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* ============ LOGIN PAGE ============ */
.login-wrap {
    display: flex;
    min-height: 100vh;
}

.login-visual {
    flex: 1 1 55%;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    min-height: 320px;
}

    .login-visual .overlay {
        position: relative;
        z-index: 2;
        padding: 48px;
        color: var(--white);
    }

    .login-visual::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.55) 100%);
        z-index: 1;
    }

    .login-visual h2 {
        font-size: 32px;
        margin-bottom: 12px;
    }

    .login-visual p {
        font-size: 15px;
        max-width: 440px;
        line-height: 1.5;
        opacity: .95;
    }

.login-form-side {
    flex: 1 1 45%;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.login-form {
    width: 100%;
    max-width: 400px;
}

    .login-form .logo-badge {
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
    }

.logo-circle {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: 50%;
    background: var(--dark);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    text-align: center;
    /* border:3px solid var(--gold); */
    overflow: hidden;
}

    /* Make SVGs and images scale to their `.logo-circle` container */
    .logo-circle svg,
    .logo-circle img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

/* Login form has a larger circular logo */
.login-form .logo-circle {
    width: 88px;
    height: 88px;
}

.login-form h1 {
    text-align: center;
    color: var(--green);
    font-size: 30px;
    margin-bottom: 4px;
}

.login-form .subtitle {
    text-align: center;
    color: #231709;
    letter-spacing: 1px;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 10px;
}

.divider-accent {
    width: 60px;
    height: 3px;
    background: #352315;
    margin: 0 auto 26px;
    border-radius: 2px;
}

.field {
    margin-bottom: 18px;
}

    .field label {
        display: block;
        font-weight: 600;
        font-size: 14px;
        margin-bottom: 6px;
        color: var(--dark);
    }

    .field input,
    .field select {
        width: 100%;
        padding: 12px 14px;
        border: 1px solid var(--gray-border);
        border-radius: 8px;
        font-size: 14px;
        background: var(--white);
        color: var(--dark);
        outline: none;
        transition: border-color .15s;
    }

        .field input:focus,
        .field select:focus {
            border-color: var(--green);
        }

.select-wrap {
    position: relative;
}

    .select-wrap select {
        appearance: none;
        -webkit-appearance: none;
        padding-right: 36px;
        cursor: pointer;
    }

    .select-wrap::after {
        content: "";
        position: absolute;
        right: 14px;
        top: 50%;
        width: 9px;
        height: 9px;
        border-right: 2px solid var(--gray-text);
        border-bottom: 2px solid var(--gray-text);
        transform: translateY(-70%) rotate(45deg);
        pointer-events: none;
    }

.password-field {
    position: relative;
}

    .password-field input {
        padding-right: 70px;
    }

.toggle-pass {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 13px;
    color: var(--gray-text);
    display: flex;
    align-items: center;
    gap: 5px;
}

    .toggle-pass svg {
        width: 16px;
        height: 16px;
    }

.form-row-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
    font-size: 14px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dark);
}

    .remember input {
        width: 16px;
        height: 16px;
        accent-color: var(--green);
    }

.forgot {
    color: var(--dark);
    font-weight: 500;
}

    .forgot:hover {
        text-decoration: underline;
    }

.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--green);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    transition: background .15s;
}

    .btn-primary:hover {
        background: var(--green-dark);
    }

@media (max-width:860px) {
    .login-wrap {
        flex-direction: column;
    }

    .login-visual {
        flex: none;
        height: 260px;
    }

    .login-form-side {
        flex: none;
        padding: 32px 20px 60px;
    }
}

/* ============ APP SHELL (grid & form pages) ============ */
.app {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 270px;
    flex-shrink: 0;
    background: var(--green);
    color: var(--white);
    padding: 28px 0;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease;
}

.sidebar-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 0 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 10px;
}

    .sidebar-brand .logo-circle {
        width: 64px;
        height: 64px;
        border-color: var(--gold);
    }

        .sidebar-brand .logo-circle svg {
            width: 32px;
            height: 32px;
        }

    .sidebar-brand h2 {
        font-size: 16px;
        letter-spacing: 1px;
        color: var(--white);
    }

.nav-scroll {
    overflow-y: auto;
    flex: 1;
}

.nav-group {
    margin-bottom: 2px;
}

.nav-top-link,
.nav-group-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 24px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 14.5px;
    font-weight: 500;
    text-align: left;
}

    .nav-top-link:hover,
    .nav-group-toggle:hover {
        background: rgba(255, 255, 255, 0.08);
    }

.nav-group-toggle {
    justify-content: space-between;
    cursor: pointer;
}

    .nav-group-toggle .left {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .nav-group-toggle .chev {
        transition: transform .2s;
        width: 14px;
        height: 14px;
    }

.nav-group.open .chev {
    transform: rotate(180deg);
}

.nav-group.open .nav-toggle-label {
    font-weight: 700;
}

.nav-sub {
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
    background: rgba(0, 0, 0, 0.12);
}

.nav-group.open .nav-sub {
    max-height: 600px;
}

.nav-sub a {
    display: block;
    padding: 10px 24px 10px 52px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

    .nav-sub a:hover {
        background: rgba(255, 255, 255, 0.08);
        color: var(--white);
    }

    .nav-sub a.active {
        /* use a translucent white background so the text remains fully opaque */
        background: rgba(255, 255, 255, 0.10);
        color: var(--white);
        font-weight: 600;
    }


.icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.topbar {
    background: #2B3D1A;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hamburger {
    background: none;
    border: none;
    color: var(--white);
    display: flex;
}

    .hamburger svg {
        width: 24px;
        height: 24px;
    }

.topbar h1 {
    font-size: 17px;
    letter-spacing: 1px;
    /*font-family: Georgia, serif;*/
    font-family: var(--font-family) !important;
}

.admin-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 8px 6px 16px;
    border-radius: 30px;
    font-size: 14px;
}

.admin-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #D2B48C;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .admin-avatar svg {
        width: 16px;
        height: 16px;
    }

.content {
    padding: 28px 32px 60px;
    flex: 1;
}

.breadcrumb {
    font-size: 14px;
    color: var(--green);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .breadcrumb .sep {
        color: var(--gray-muted);
    }

    .breadcrumb .current {
        color: var(--dark);
        font-weight: 600;
    }

.page-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 22px;
}

    .page-title-row h1 {
        color: var(--green);
        font-size: 30px;
    }

.accent-bar {
    width: 70px;
    height: 4px;
    background: var(--gold);
    border-radius: 2px;
}

.panel {
    background: var(--white);
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* grid page toolbar */
.grid-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.rows-note {
    font-size: 14px;
    color: var(--gray-text);
}

.toolbar-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-box {
    position: relative;
}

    .search-box input {
        padding: 10px 14px 10px 38px;
        border: 1px solid var(--gray-border);
        border-radius: 8px;
        font-size: 14px;
        min-width: 220px;
        outline: none;
    }

        .search-box input:focus {
            border-color: var(--green);
        }

    .search-box svg {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        width: 16px;
        height: 16px;
        color: var(--gray-text);
    }

.btn-add {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--green);
    color: var(--white);
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

    .btn-add:hover {
        background: var(--green-dark);
    }

    .btn-add svg {
        width: 15px;
        height: 15px;
    }

.table-scroll {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid var(--gray-border);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

thead tr {
    background: var(--green);
    color: var(--white);
}

th {
    text-align: left;
    padding: 13px 16px;
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
}

td {
    padding: 13px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--gray-border);
    color: var(--dark);
}

tbody tr:nth-child(even) {
    background: var(--cream-2);
}

tbody tr:hover {
    background: #F1EFD8;
}

.row-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

    .action-btn svg {
        width: 14px;
        height: 14px;
    }

.action-edit {
    background: var(--green-light);
}

.action-delete {
    background: var(--red);
}

.action-view {
    background: var(--teal);
}

.action-btn:hover {
    filter: brightness(0.92);
}

/* form page */
.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 28px;
}

    .form-grid .field {
        margin-bottom: 0;
    }

        .form-grid .field.full {
            grid-column: 1 / -1;
        }

.form-divider {
    height: 1px;
    background: var(--gray-border);
    margin: 28px 0 20px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
}

.btn-cancel {
    background: var(--red);
    color: var(--white);
    border: none;
    padding: 12px 26px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14.5px;
}

    .btn-cancel:hover {
        background: #c44844;
    }

.btn-submit {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--green);
    color: var(--white);
    border: none;
    padding: 12px 26px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14.5px;
}

    .btn-submit:hover {
        background: var(--green-dark);
    }

    .btn-submit svg {
        width: 15px;
        height: 15px;
    }

@media (max-width:1000px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:640px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* Sidebar responsive */
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 40;
}

@media (max-width:900px) {
    .sidebar {
        position: fixed;
        z-index: 50;
        height: 100vh;
        left: 0;
        top: 0;
        transform: translateX(-100%);
    }

        .sidebar.open {
            transform: translateX(0);
        }

    .sidebar-backdrop.show {
        display: block;
    }

    .content {
        padding: 20px 16px 50px;
    }

    .topbar {
        padding: 14px 16px;
    }

    .grid-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box input {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width:480px) {
    .page-title-row h1 {
        font-size: 24px;
    }

    .panel {
        padding: 16px;
    }
}



/* CSS : ADDED BY HR : START */
.d-none {
    display: none;
}

.setwidth {
    width: 10%;
}

.setwidth50 {
    min-width: 50px !important;
}

.setwidth80 {
    min-width: 80px !important;
}

.setwidth100 {
    min-width: 100px !important;
}

.setwidth130 {
    min-width: 130px !important;
}

.setwidth150 {
    min-width: 150px !important;
}

.setwidth200 {
    min-width: 200px !important;
}

.setwidth250 {
    min-width: 250px !important;
}

.setwidth300 {
    min-width: 300px !important;
}

.setwidth350 {
    min-width: 350px !important;
}

.setwidth400 {
    min-width: 400px !important;
}

.setwidth500 {
    min-width: 500px !important;
}

.width30 {
    width: 30px !important;
    min-width: 30px !important;
}

.width50 {
    width: 50px !important;
    min-width: 50px !important;
}

.width80 {
    width: 80px !important;
    min-width: 80px !important;
}

.width150 {
    width: 150px !important;
    min-width: 150px !important;
}

.width180 {
    width: 180px !important;
    min-width: 180px !important;
}


.form-control {
    /*font-size: 12px;*/
    font-size: inherit;
    max-width: 100%;
    box-shadow: none;
    /*margin-bottom: 18px;*/
}


label.label-control {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--dark);
}

input.form-control,
select.form-control {
    width: 100%;
    padding: 6px 14px;
    border: 1px solid var(--gray-border);
    border-radius: 8px;
    font-size: 14px;
    background: var(--white);
    color: var(--dark);
    outline: none;
    transition: border-color .15s;
}

    input.form-control:focus,
    select.form-control:focus {
        border-color: var(--green);
    }




.text-white {
    color: #fff;
}

.text-primary {
    color: #007bff;
}

.text-secondary {
    color: #6c757d;
}

.text-success {
    color: #28a745;
}

.text-info {
    color: #17a2b8;
}

.text-warning {
    color: #ffc107;
}

.text-danger {
    color: #dc3545;
}

.text-light {
    color: #f8f9fa;
}

.text-dark {
    color: #343a40;
}

.text-muted {
    color: #6c757d;
}

.bg-primary {
    background-color: #007bff;
}

.bg-secondary {
    background-color: #6c757d;
}

.bg-success {
    background-color: #28a745;
}

.bg-info {
    background-color: #17a2b8;
}

.bg-warning {
    background-color: #ffc107;
}

.bg-danger {
    background-color: #dc3545;
}

.bg-light {
    background-color: #f8f9fa;
}

.bg-dark {
    background-color: #343a40;
}

.bg-white {
    background-color: #fff;
}

.bg-black {
    background-color: #000;
}

.bg-transparent {
    background-color: transparent;
}

.border {
    border: 1px solid !important
}

.border-primary {
    border-color: #007bff !important
}

.border-secondary {
    border-color: #6c757d !important
}

.border-success {
    border-color: #28a745 !important
}

.border-info {
    border-color: #17a2b8 !important
}

.border-warning {
    border-color: #ffc107 !important
}

.border-danger {
    border-color: #dc3545 !important
}

.border-light {
    border-color: #f8f9fa !important
}

.border-dark {
    border-color: #343a40 !important
}

.border-white {
    border-color: #fff !important
}

.border-1 {
    border-width: 1px !important
}

.border-2 {
    border-width: 2px !important
}

.border-3 {
    border-width: 3px !important
}

.border-4 {
    border-width: 4px !important
}

.border-5 {
    border-width: 5px !important
}

.border-0 {
    border: none !important
}

.border-top {
    border-top: 1px solid
}

.border-top-0 {
    border-top: none !important
}

.border-end {
    border-right: 1px solid
}

.border-end-0 {
    border-right: none !important
}

.border-bottom {
    border-bottom: 1px solid
}

.border-bottom-0 {
    border-bottom: none !important
}

.border-start {
    border-left: 1px solid
}

.border-start-0 {
    border-left: none !important
}

.rounded {
    border-radius: .25rem !important
}

.rounded-0 {
    border-radius: 0 !important
}

.rounded-1 {
    border-radius: .2rem !important
}

.rounded-2 {
    border-radius: .25rem !important
}

.rounded-3 {
    border-radius: .3rem !important
}

.rounded-circle {
    border-radius: 50% !important
}

.rounded-pill {
    border-radius: 50rem !important
}

.rounded-top {
    border-top-left-radius: .25rem !important;
    border-top-right-radius: .25rem !important
}

.rounded-end {
    border-top-right-radius: .25rem !important;
    border-bottom-right-radius: .25rem !important
}

.rounded-bottom {
    border-bottom-right-radius: .25rem !important;
    border-bottom-left-radius: .25rem !important
}

.rounded-start {
    border-bottom-left-radius: .25rem !important;
    border-top-left-radius: .25rem !important
}

.justify-content-start {
    -webkit-box-pack: start !important;
    -ms-flex-pack: start !important;
    justify-content: flex-start !important
}

.justify-content-end {
    -webkit-box-pack: end !important;
    -ms-flex-pack: end !important;
    justify-content: flex-end !important
}

.justify-content-center {
    -webkit-box-pack: center !important;
    -ms-flex-pack: center !important;
    justify-content: center !important
}

.justify-content-between {
    -webkit-box-pack: justify !important;
    -ms-flex-pack: justify !important;
    justify-content: space-between !important
}

.justify-content-around {
    -ms-flex-pack: distribute !important;
    justify-content: space-around !important
}

/* all side margin classes */
.m-0 {
    margin: 0px !important;
}

.m-5 {
    margin: 5px !important;
}

.m-10 {
    margin: 10px !important;
}

.m-15 {
    margin: 15px !important;
}


/* top side margin classes */
.mt-0 {
    margin-top: 0px !important;
}

.mt-5 {
    margin-top: 5px !important;
}

.mt-10 {
    margin-top: 10px !important;
}

.mt-15 {
    margin-top: 15px !important;
}


/* right side margin classes */
.mr-0 {
    margin-right: 0px !important;
}

.mr-5 {
    margin-right: 5px !important;
}

.mr-10 {
    margin-right: 10px !important;
}

.mr-15 {
    margin-right: 15px !important;
}


/* buttom side margin classes */
.mb-0 {
    margin-bottom: 0px !important;
}

.mb-5 {
    margin-bottom: 5px !important;
}

.mb-10 {
    margin-bottom: 10px !important;
}

.mb-15 {
    margin-bottom: 15px !important;
}

/* left side margin classes */
.ml-0 {
    margin-left: 0px !important;
}

.ml-5 {
    margin-left: 5px !important;
}

.ml-10 {
    margin-left: 10px !important;
}

.ml-15 {
    margin-left: 15px !important;
}


/* All Side Padding Classes */
.p0 {
    padding: 0px !important;
}

.p5 {
    padding: 5px !important;
}

.p10 {
    padding: 10px !important;
}

.p15 {
    padding: 15px !important;
}


/* Padding Top Classes */
.pt-0 {
    padding-top: 0px !important;
}

.pt-5 {
    padding-top: 5px !important;
}

.pt-10 {
    padding-top: 10px !important;
}

.pt-15 {
    padding-top: 15px !important;
}


/* Padding right Classes */
.pr-0 {
    padding-right: 0px !important;
}

.pr-5 {
    padding-right: 5px !important;
}

.pr-10 {
    padding-right: 10px !important;
}

.pr-15 {
    padding-right: 15px !important;
}



/* Padding bottom Classes */
.pb-0 {
    padding-bottom: 0px !important;
}

.pb-5 {
    padding-bottom: 5px !important;
}

.pb-10 {
    padding-bottom: 10px !important;
}

.pb-15 {
    padding-bottom: 15px !important;
}

/* Padding left Classes */
.pl-0 {
    padding-left: 0px !important;
}

.pl-5 {
    padding-left: 5px !important;
}

.pl-10 {
    padding-left: 10px !important;
}

.pl-15 {
    padding-left: 15px !important;
}



/* CSS : ADDED BY HR : END */
