.top-actions .icon-btn {
    font-size: 0;
    display: grid;
    place-items: center
}

.top-actions .icon-btn::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 12px
}

.top-actions .icon-btn:first-child::before {
    content: "\f2f1"
}

.top-actions .icon-btn:nth-child(2)::before {
    content: "\f0f3"
}

.status b {
    font-size: 0
}

.status b::before {
    content: "System Operational";
    font-size: 10px
}

.brand-icon {
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    overflow: hidden;
    background: transparent
}

.brand-icon i {
    display: none
}

.brand-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f8f6;
    color: #18231d;
    font-size: 14px
}

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

button,
input,
select,
textarea {
    font: inherit
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 245px;
    background: #fff;
    border-right: 1px solid #e1e9e4;
    z-index: 20;
    overflow: auto
}

.brand {
    height: 72px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 18px;
    border-bottom: 1px solid #e1e9e4
}

.brand-icon,
.avatar {
    display: grid;
    place-items: center;
    background: #087443;
    color: #fff;
    border-radius: 10px
}

.brand-icon {
    width: 39px;
    height: 39px;
    background: transparent
}

.brand b {
    display: block;
    font-size: 14px
}

.brand small {
    font-size: 9px;
    color: #7b8780
}

.nav {
    padding: 14px 10px
}

.nav-title {
    font-size: 9px;
    color: #9aa49e;
    text-transform: uppercase;
    font-weight: bold;
    padding: 10px
}

.nav a {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    color: #637068;
    font-size: 11px;
    font-weight: bold;
    margin: 2px 0
}

.nav a:hover,
.nav a.active {
    background: #eaf7f0;
    color: #087443
}

.status {
    margin: 12px;
    padding: 11px;
    background: #eaf7f0;
    border-radius: 9px;
    font-size: 10px;
    color: #617069
}

.main {
    margin-left: 245px
}

.topbar {
    height: 72px;
    background: #fff;
    border-bottom: 1px solid #e1e9e4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    position: sticky;
    top: 0;
    z-index: 10
}

.title {
    font-size: 18px
}

.crumb {
    font-size: 9px;
    color: #849089;
    margin-top: 4px
}

.top-actions {
    display: flex;
    gap: 8px;
    align-items: center
}

.btn,
.icon-btn {
    border: 1px solid #dce6e0;
    background: #fff;
    border-radius: 7px;
    padding: 9px 12px;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer
}

.icon-btn {
    width: 35px;
    padding: 9px
}

.btn.primary {
    background: #087443;
    color: #fff;
    border-color: #087443
}

.btn.danger {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626
}

.user {
    display: flex;
    align-items: center;
    gap: 8px
}

.avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 10px
}

.user small {
    display: block;
    color: #7b8780;
    font-size: 8px
}

.content {
    padding: 25px
}

.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px
}

.hero h2 {
    font-size: 20px;
    margin: 0
}

.hero p {
    font-size: 10px;
    color: #78847d;
    margin: 5px 0
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 13px;
    margin-bottom: 16px
}

.card,
.panel {
    background: #fff;
    border: 1px solid #e1e9e4;
    border-radius: 10px;
    box-shadow: 0 5px 20px #183b2710
}

.stat {
    padding: 15px
}

.stat-icon {
    width: 37px;
    height: 37px;
    border-radius: 9px;
    background: #eaf7f0;
    color: #087443;
    display: grid;
    place-items: center
}

.stat h3 {
    font-size: 24px;
    margin: 11px 0 3px
}

.stat p {
    font-size: 9px;
    color: #78847d;
    margin: 0
}

.trend {
    font-size: 8px;
    color: #16874b;
    font-weight: bold
}

.grid2 {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 15px;
    margin-bottom: 15px
}

.grid3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 15px
}

.panel {
    overflow: hidden
}

.panel-head {
    padding: 13px 15px;
    border-bottom: 1px solid #e7eeea;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.panel-head h3 {
    font-size: 11px;
    margin: 0
}

.panel-head p {
    font-size: 8px;
    color: #8a948e;
    margin: 3px 0 0
}

.panel-body {
    padding: 15px
}

.table-wrap {
    overflow: auto
}

table {
    width: 100%;
    border-collapse: collapse
}

th {
    text-align: left;
    background: #fafcfb;
    color: #89948d;
    font-size: 8px;
    text-transform: uppercase;
    padding: 10px 12px
}

td {
    border-top: 1px solid #edf1ee;
    padding: 11px 12px;
    font-size: 9px;
    color: #637068
}

td b {
    color: #18231d
}

.badge {
    display: inline-block;
    padding: 4px 7px;
    border-radius: 5px;
    background: #eaf7f0;
    color: #087443;
    font-size: 8px;
    font-weight: bold
}

.badge.warn {
    background: #fff5dd;
    color: #b77900
}

.badge.red {
    background: #fff0f0;
    color: #dc2626
}

.badge.blue {
    background: #eff6ff;
    color: #2563eb
}

.list {
    display: grid;
    gap: 8px
}

.list-item {
    border: 1px solid #e2eae5;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.list-item b {
    font-size: 10px
}

.list-item small {
    display: block;
    color: #849089;
    font-size: 8px;
    margin-top: 3px
}

.filters {
    display: flex;
    gap: 7px;
    flex-wrap: wrap
}

.filters input,
.filters select {
    height: 33px;
    border: 1px solid #dce6e0;
    border-radius: 7px;
    padding: 0 8px;
    font-size: 9px
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

.field label {
    display: block;
    font-size: 9px;
    font-weight: bold;
    color: #68746c;
    margin-bottom: 5px
}

.field input,
.field select,
.field textarea {
    width: 100%;
    height: 36px;
    border: 1px solid #dce6e0;
    border-radius: 7px;
    padding: 0 9px;
    font-size: 10px
}

.field textarea {
    height: 90px;
    padding-top: 9px
}

.full {
    grid-column: 1/-1
}

.modal {
    position: fixed;
    inset: 0;
    background: #0006;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 50
}

.modal.open {
    display: flex
}

.modal-box {
    width: min(650px, 100%);
    max-height: 90vh;
    overflow: auto;
    background: #fff;
    border-radius: 12px
}

.modal-head,
.modal-foot {
    padding: 14px 16px;
    border-bottom: 1px solid #e4ebe7;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.modal-foot {
    border-top: 1px solid #e4ebe7;
    border-bottom: 0;
    justify-content: flex-end;
    gap: 7px
}

.modal-body {
    padding: 17px
}

.chart {
    height: 210px;
    display: flex;
    align-items: end;
    gap: 7px;
    padding: 15px
}

.bar {
    flex: 1;
    background: linear-gradient(#087443, #9dd5b8);
    border-radius: 4px 4px 0 0
}

.circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: conic-gradient(#087443 0 345deg, #e6eee9 345deg);
    display: grid;
    place-items: center
}

.circle span {
    width: 51px;
    height: 51px;
    background: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: bold
}

.login {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.15fr .85fr
}

.login-left {
    background: linear-gradient(145deg, #064b2d, #0a7c48);
    color: white;
    padding: 8%;
    display: flex;
    align-items: center
}

.login-left h1 {
    font-size: 43px;
    line-height: 1.08
}

.login-left p {
    font-size: 12px;
    line-height: 1.7;
    color: #d8eee1
}

.login-right {
    display: grid;
    place-items: center;
    padding: 30px
}

.login-card {
    width: min(410px, 100%);
    background: #fff;
    padding: 30px;
    border: 1px solid #e1e9e4;
    border-radius: 14px;
    box-shadow: 0 20px 50px #064b2d15
}

.remember {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    margin: 13px 0 18px
}

.login-card .btn {
    width: 100%;
    height: 40px
}

.home-nav {
    height: 74px;
    background: #fff;
    border-bottom: 1px solid #e1e9e4;
    padding: 0 7%;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.home-links {
    display: flex;
    gap: 24px;
    font-size: 10px;
    font-weight: bold;
    color: #59655e
}

.home-hero {
    padding: 75px 7%;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 50px;
    align-items: center;
    background: linear-gradient(135deg, #f8fcf9, #eaf7f0)
}

.home-hero h1 {
    font-size: 45px;
    line-height: 1.08
}

.home-hero h1 span {
    color: #087443
}

.home-hero p {
    font-size: 12px;
    color: #68746c;
    line-height: 1.8
}

.portal {
    background: #fff;
    padding: 22px;
    border: 1px solid #dfe9e3;
    border-radius: 15px;
    box-shadow: 0 20px 50px #08744316
}

.portal-row {
    display: flex;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e2eae5;
    border-radius: 8px;
    margin: 8px 0
}

.portal-row i {
    width: 32px;
    height: 32px;
    background: #eaf7f0;
    color: #087443;
    display: grid;
    place-items: center;
    border-radius: 7px
}

.portal-row b {
    font-size: 10px
}

.portal-row small {
    display: block;
    font-size: 8px;
    color: #849089;
    margin-top: 3px
}

.footer {
    background: #063c25;
    color: #d9eee2;
    padding: 25px 7%;
    display: flex;
    justify-content: space-between;
    font-size: 9px
}

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

    .grid2,
    .grid3 {
        grid-template-columns: 1fr
    }
}

@media(max-width:700px) {
    .sidebar {
        transform: translateX(-100%);
        transition: .2s
    }

    .sidebar.open {
        transform: none
    }

    .main {
        margin-left: 0
    }

    .menu {
        display: block !important
    }

    .content {
        padding: 16px
    }

    .topbar {
        padding: 0 14px
    }

    .user div:last-child {
        display: none
    }

    .home-links {
        display: none
    }

    .home-hero {
        grid-template-columns: 1fr;
        padding: 50px 7%
    }

    .home-hero h1 {
        font-size: 34px
    }

    .cards {
        grid-template-columns: 1fr
    }

    .form-grid {
        grid-template-columns: 1fr
    }

    .full {
        grid-column: auto
    }

    .login {
        grid-template-columns: 1fr
    }

    .login-left {
        display: none
    }

    .menu {
        display: none
    }
}