:root {
    --gr-deep: #0B1F3A;
    --gr-teal: #16A34A;
    --gr-mint: #E8F8EE;
    --gr-sand: #F4F7FB;
    --gr-gold: #F59E0B;
    --gr-ink: #0F2744;
    --theme-color: #0C6B63;
    --theme-color2: #083734;
    --theme-deafult: #0C6B63;
    --theme-secondary: #C4A35A;
    --primary: #0C6B63;
    --primary-hover: #083734;
    --primary-dark: #062826;
}

body {
    background-color: var(--gr-sand);
    color: var(--gr-ink);
}

.gr-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.gr-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gr-teal);
    color: #fff;
    font-weight: 700;
    font-size: 22px;
    line-height: 1;
}

.gr-name {
    display: flex;
    flex-direction: column;
    color: var(--gr-deep);
    font-weight: 700;
    font-size: 18px;
    line-height: 1.05;
    letter-spacing: 0.2px;
}

.gr-name span {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--gr-teal);
}

.gr-brand.is-light .gr-mark {
    background: #fff;
    color: var(--gr-deep);
}

.gr-brand.is-light .gr-name,
.gr-brand.is-light .gr-name span {
    color: #fff;
}

.th-header .header-top {
    background: var(--gr-deep) !important;
}

.th-header .header-top,
.th-header .header-top a,
.th-header .header-notice {
    color: #F4FBFA !important;
}

#main-wrapper .header-top {
    background: #fff !important;
    color: #0B1F3A !important;
    box-shadow: 0 1px 0 #E6EDF5 !important;
}

#main-wrapper .header-top .header-item,
#main-wrapper .header-top .new_c,
#main-wrapper .header-top .header-right {
    color: #0B1F3A !important;
}

#main-wrapper .nav-header {
    background: #fff !important;
    border-bottom: 1px solid #E6EDF5;
    box-shadow: none;
}

#main-wrapper .header-top .dropdown-menu {
    background: #fff !important;
    border: 1px solid #E6EDF5 !important;
    box-shadow: 0 12px 30px rgba(11, 31, 58, 0.12) !important;
}

#main-wrapper .header-top .dropdown-menu .dropdown-item,
#main-wrapper .header-top .dropdown-menu .dropdown-item span,
#main-wrapper .header-top .dropdown-menu .dropdown-item i {
    color: #0B1F3A !important;
    background: transparent !important;
}

#main-wrapper .header-top .dropdown-menu .dropdown-item:hover,
#main-wrapper .header-top .dropdown-menu .dropdown-item:focus {
    background: #F4F7FB !important;
    color: #0B1F3A !important;
}

.header-layout1 .menu-area,
.sticky-wrapper .menu-area {
    background: #fff;
    border-bottom: 1px solid #D7E8E4;
}

.main-menu > ul > li > a,
.th-mobile-menu a {
    color: var(--gr-ink) !important;
}

.th-btn,
.th-btn.style4,
.th-btn.style5 {
    background: var(--gr-teal) !important;
    color: #fff !important;
    border: 0;
}

.th-btn:hover,
.th-btn.style4:hover,
.th-btn.style5:hover {
    background: var(--gr-deep) !important;
    color: #fff !important;
}

.footer-wrapper,
.footer-layout1 {
    background-color: var(--gr-deep) !important;
}

.footer-wrapper,
.footer-wrapper a,
.footer-wrapper p,
.widget_title {
    color: #F4FBFA;
}

.sec-title,
.sub-title {
    color: var(--gr-deep);
}

.footer-wrapper h2,
.footer-wrapper h3,
.footer-wrapper .widget_title,
.footer-wrapper .about-text,
.footer-wrapper .info-box_text,
.footer-wrapper .copyright-text,
.footer-wrapper a {
    color: #F4FBFA !important;
}

.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper,
.sidebar-wrapper {
    background: var(--gr-deep) !important;
}

.sidebar-wrapper .sidebar-link,
.sidebar-wrapper .sidebar-title,
.sidebar-wrapper .sidebar-link span,
.sidebar-wrapper .sidebar-link svg,
.sidebar-wrapper i {
    color: #E7F6F4 !important;
}

.sidebar-wrapper .sidebar-link.active,
.sidebar-wrapper .sidebar-link:hover,
.sidebar-submenu {
    background: rgba(255, 255, 255, 0.08) !important;
}

.page-body,
.page-body-wrapper {
    background: var(--gr-sand) !important;
}

.page-header,
.header-wrapper {
    background: #fff !important;
}

.btn-primary,
.th-btn.btn-fw {
    background: var(--gr-teal) !important;
    border-color: var(--gr-teal) !important;
    color: #fff !important;
}

.login-card,
.login-main {
    background: #fff;
}

.login-card {
    border-top: 4px solid var(--gr-teal);
    box-shadow: 0 16px 40px rgba(8, 55, 52, 0.12);
}

body[data-theme-version="light"],
body[data-theme-version="dark"] {
    background: var(--gr-sand);
}

.deznav,
.deznav .deznav-scroll,
[data-theme-version="dark"] .deznav,
[data-theme-version="dark"] .deznav .deznav-scroll {
    background: var(--gr-deep) !important;
}

.deznav a,
.deznav .metismenu > li > a,
.deznav .nav-text {
    color: #E7F6F4 !important;
}

.header,
.nav-header {
    background: #fff !important;
}

.nav-header .gr-name,
.nav-header .gr-name span {
    color: var(--gr-deep);
}

.nav-header .gr-name span {
    color: var(--gr-teal);
}

.gr-logo {
    height: 48px;
    width: auto;
    display: block;
}

.gr-logo-light {
    height: 46px;
    width: auto;
    display: block;
}

.page-wrapper.compact-wrapper .page-body-wrapper div.sidebar-wrapper,
.sidebar-wrapper {
    background: #0B1F3A !important;
}

.sidebar-wrapper .logo-wrapper {
    padding: 18px 16px 8px;
    box-shadow: none !important;
}

.sidebar-wrapper .sidebar-main .sidebar-links {
    padding: 8px;
}

.sidebar-wrapper .sidebar-link {
    border-radius: 10px;
    margin: 2px 0;
    color: #D5E2F2 !important;
}

.sidebar-wrapper .sidebar-link span,
.sidebar-wrapper .sidebar-link svg,
.sidebar-wrapper .sidebar-title span {
    color: #D5E2F2 !important;
}

.sidebar-wrapper .sidebar-link.active,
.sidebar-wrapper .sidebar-list.active > .sidebar-link,
.sidebar-wrapper .sidebar-link:hover {
    background: rgba(22, 163, 74, 0.18) !important;
    box-shadow: inset 3px 0 0 #22C55E;
}

.sidebar-submenu {
    background: transparent !important;
}

.sidebar-submenu a {
    color: #C5D4E8 !important;
}

.page-wrapper.compact-wrapper .page-header {
    width: calc(100% - 280px);
    margin-left: 280px;
}

.page-wrapper.compact-wrapper .page-body-wrapper .page-body,
.page-wrapper.compact-wrapper .page-body-wrapper .footer {
    width: calc(100% - 280px);
    max-width: calc(100% - 280px);
    box-sizing: border-box;
}

.page-header .header-wrapper .nav-right > ul > li {
    width: auto !important;
    height: auto !important;
}

.sidebar-wrapper .logo-wrapper .toggle-sidebar,
.sidebar-wrapper .logo-wrapper .back-btn {
    display: none !important;
}

.page-header,
.page-header .header-wrapper {
    background: #fff !important;
    box-shadow: 0 1px 0 #E6EDF5 !important;
}

.gr-top-title {
    font-size: 18px;
    font-weight: 700;
    color: #0B1F3A;
    line-height: 1.15;
}

.gr-top-sub {
    font-size: 12px;
    color: #6B7C93;
}

.gr-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none;
    white-space: nowrap;
}

.gr-btn-green { background: #16A34A; }
.gr-btn-gold { background: #F59E0B; }
.gr-btn-green:hover { background: #15803D; color: #fff !important; }
.gr-btn-gold:hover { background: #D97706; color: #fff !important; }

.gr-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #F3F6FB;
    color: #0B1F3A !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gr-userchip {
    background: #F4F7FB;
    border-radius: 12px;
    padding: 6px 12px;
    line-height: 1.2;
}

.gr-userchip strong { display: block; color: #0B1F3A; font-size: 13px; }
.gr-userchip span { color: #16A34A; font-size: 11px; font-weight: 700; }

.gr-dash { padding: 12px 8px 28px; }
.gr-dash .row {
    margin-left: -10px !important;
    margin-right: -10px !important;
}
.gr-dash .row > [class*="col-"] {
    padding: 10px !important;
}
.gr-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 39, 68, 0.06);
    padding: 18px 18px;
    height: auto;
    margin: 0;
}
.gr-dash .gr-card + .gr-card {
    margin-top: 20px;
}
.gr-stat { display: flex; align-items: center; gap: 14px; }
.gr-stat-icon {
    width: 48px; height: 48px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex: 0 0 48px;
}
.gr-stat h3 { margin: 0; font-size: 26px; font-weight: 800; color: #0B1F3A; }
.gr-stat p { margin: 0; color: #6B7C93; font-size: 13px; font-weight: 600; }
.gr-stat small { color: #16A34A; font-weight: 700; }
.bg-blue { background: #E8F1FF; color: #2563EB; }
.bg-mint { background: #E7F8EE; color: #16A34A; }
.bg-amber { background: #FFF4DE; color: #D97706; }
.bg-rose { background: #FDECEC; color: #E11D48; }
.gr-card h4 { font-size: 16px; font-weight: 800; color: #0B1F3A; margin: 0 0 12px; }
.gr-card h4 a { float: right; font-size: 12px; font-weight: 700; color: #16A34A; }
.gr-team { display: flex; justify-content: space-around; text-align: center; }
.gr-bubble {
    width: 74px; height: 74px; border-radius: 50%;
    background: #E7F8EE; color: #16A34A;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 8px; font-size: 22px;
}
.gr-table { width: 100%; font-size: 13px; }
.gr-table th { color: #6B7C93; font-weight: 700; padding: 8px 6px; border-bottom: 1px solid #EEF2F7; }
.gr-table td { padding: 8px 6px; color: #0F2744; border-bottom: 1px solid #F4F7FB; }
.gr-pill { border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 800; display: inline-block; }
.gr-pill.complete { background: #E7F8EE; color: #15803D; }
.gr-pill.pending { background: #FFF4DE; color: #C2410C; }
.gr-pill.upcoming { background: #E8F1FF; color: #1D4ED8; }
.gr-pill.paid { background: #E7F8EE; color: #15803D; }
.gr-progress { height: 8px; background: #E8EEF6; border-radius: 99px; overflow: hidden; }
.gr-progress span { display: block; height: 100%; background: #16A34A; }
.gr-links a { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #F1F5F9; color: #0F2744; font-weight: 600; text-decoration: none; }
.gr-links a:hover { color: #16A34A; }
.gr-wallet-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed #E8EEF6; font-size: 13px; }
.gr-wallet-row span { color: #6B7C93; }
.gr-wallet-row strong { color: #0B1F3A; }
@media (max-width: 767px) {
    .gr-btn span { display: none; }
    .gr-top-sub { display: none; }
}

.gr-auth-page {
    background: #F4F7FB;
    padding: 36px 16px 72px;
    position: relative;
    z-index: 3;
}

.gr-hold {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F4F7FB;
    padding: 48px 16px 72px;
}

.gr-hold-card {
    width: min(520px, 100%);
    background: #fff;
    border-radius: 20px;
    border-top: 4px solid #16A34A;
    box-shadow: 0 18px 48px rgba(11, 31, 58, 0.08);
    text-align: center;
    padding: 42px 28px 36px;
}

.gr-hold-card h1 {
    margin: 16px 0 8px;
    color: #0B1F3A;
    font-size: 32px;
    font-weight: 800;
}

.gr-hold-card p {
    color: #64748B;
    margin-bottom: 22px;
}

.gr-hold-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.gr-hold-links .th-btn {
    min-width: 140px;
}

.gr-hold-signup {
    background: #F59E0B !important;
}

.gr-hold-signup:hover {
    background: #D97706 !important;
}

.gr-slim-footer {
    margin-top: 0 !important;
    padding-top: 0 !important;
    background-image: none !important;
}

.gr-slim-footer .copyright-wrap {
    padding: 16px 0;
}

.gr-auth-card {
    width: min(440px, 100%);
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    border-top: 4px solid #16A34A;
    box-shadow: 0 18px 48px rgba(11, 31, 58, 0.08);
    padding: 32px 28px 24px;
}

.gr-auth-card.is-wide {
    width: min(980px, 100%);
}

.gr-auth-card.is-success {
    width: min(560px, 100%);
}

.gr-success-box {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: 14px;
    padding: 16px 16px 8px;
    text-align: left;
}

.gr-success-box h5,
.gr-success-box p {
    text-align: center;
    color: #0B1F3A;
}

.gr-success-box p {
    color: #475569;
    margin-bottom: 12px;
}

.gr-success-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #DCFCE7;
    color: #0B1F3A;
}

.gr-success-row:last-of-type {
    border-bottom: 0;
}

.gr-success-row .btn-copy {
    border: 1px solid #16A34A;
    background: #fff;
    color: #16A34A;
    border-radius: 8px;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
}

.gr-auth-card .login-card,
.gr-auth-card .login-main {
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.gr-auth-logo {
    height: 62px;
    width: auto;
}

.gr-auth-card h4,
.gr-auth-card .form-title {
    color: #0B1F3A;
    font-weight: 800;
    margin: 8px 0 4px;
}

.gr-auth-card .form-group,
.gr-auth-card .mb-3 {
    margin-bottom: 14px;
}

.gr-auth-card label {
    color: #0F2744 !important;
    font-size: 13px !important;
    font-weight: 700;
    margin: 0 0 6px !important;
}

.gr-auth-card .form-control,
.gr-auth-card select,
.gr-auth-card textarea {
    height: 46px !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 10px !important;
    background: #F8FAFC !important;
    color: #0F2744 !important;
    padding: 0 14px !important;
    box-shadow: none !important;
}

.gr-auth-card textarea.form-control {
    height: auto !important;
    padding: 10px 14px !important;
}

.gr-auth-card .form-control:focus,
.gr-auth-card select:focus {
    border-color: #16A34A !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15) !important;
}

.gr-auth-card .th-btn,
.gr-auth-card #save_btn {
    width: 100%;
    min-height: 48px;
    border: 0 !important;
    border-radius: 10px !important;
    background: #16A34A !important;
    color: #fff !important;
    font-weight: 700;
}

.gr-auth-card .th-btn:hover,
.gr-auth-card #save_btn:hover {
    background: #15803D !important;
}

.gr-auth-card a,
.gr-auth-card .text-primary {
    color: #16A34A !important;
}

.gr-auth-card .password-addon {
    top: 8px !important;
    height: 30px;
}

.admin-content-body .admin-card,
[data-theme-version="dark"] .admin-content-body .admin-card,
[data-theme-version="light"] .admin-content-body .admin-card {
    background: #fff !important;
    color: #0B1F3A !important;
    border: 1px solid #E6EDF5 !important;
    box-shadow: 0 8px 24px rgba(11, 31, 58, 0.06);
}

.admin-content-body .admin-card-header,
.admin-content-body .admin-card .card-title,
.admin-content-body .admin-card label,
.admin-content-body .admin-card .control-label,
.admin-content-body .panel,
.admin-content-body .panel-body,
.admin-content-body .panel-heading {
    background: transparent !important;
    color: #0B1F3A !important;
}

.admin-content-body .admin-form-control,
.admin-content-body .admin-form-select,
.admin-content-body .admin-table .dataTables_filter .admin-form-control,
.admin-content-body .admin-table select.admin-form-control-sm,
.admin-content-body select.admin-form-control:focus {
    background: #fff !important;
    color: #1F2A37 !important;
    border: 1px solid #D5DEEA !important;
    border-radius: 8px !important;
    color-scheme: light;
}

.admin-content-body .admin-form-control::placeholder,
.admin-content-body .admin-form-control::-webkit-input-placeholder {
    color: #8A97A8 !important;
}

.admin-content-body .admin-table,
.admin-content-body .dataTables_wrapper,
.admin-content-body .admin-table table.dataTable tbody tr,
.admin-content-body .admin-table table.dataTable tbody tr td {
    background: #fff !important;
    color: #1F2A37 !important;
}
