:root {
    --enterprise-navy: #142b4a;
    --enterprise-blue: #2463a6;
    --enterprise-blue-dark: #1c4f87;
    --enterprise-ink: #243247;
    --enterprise-muted: #718096;
    --enterprise-border: #e3e9f0;
    --enterprise-canvas: #f4f7fb;
    --enterprise-white: #fff;
}

html,
body {
    background: var(--enterprise-canvas);
    color: var(--enterprise-ink);
    font-family: "Segoe UI", Arial, sans-serif;
}

body {
    font-size: 14px;
}

a {
    color: var(--enterprise-blue);
}

a:hover {
    color: var(--enterprise-blue-dark);
}

.main-wrapper {
    background: var(--enterprise-canvas);
}

.navbar-bg {
    background: var(--enterprise-white);
    box-shadow: 0 2px 12px rgba(22, 42, 67, .06);
}

.main-navbar {
    background: var(--enterprise-white);
    border-bottom: 1px solid var(--enterprise-border);
}

.main-navbar .nav-link {
    color: #52647a;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link:focus {
    color: var(--enterprise-blue);
}

.main-navbar .user-img-radious-style {
    border: 2px solid #e6edf5;
}

.main-sidebar {
    background: var(--enterprise-navy);
    box-shadow: 3px 0 16px rgba(20, 43, 74, .1);
}

.main-sidebar .sidebar-brand {
    background: var(--enterprise-navy);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.main-sidebar .sidebar-brand a,
.main-sidebar .sidebar-brand .logo-name {
    color: #fff;
}

.main-sidebar .sidebar-brand .logo-name {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .02em;
}

.main-sidebar .sidebar-menu {
    padding-top: 14px;
}

.main-sidebar .sidebar-menu li.menu-header {
    color: #93a8c2;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
}

.main-sidebar .sidebar-menu li a {
    color: #c3d0df;
    font-weight: 500;
    transition: background-color .18s ease, color .18s ease;
}

.main-sidebar .sidebar-menu li a i,
.main-sidebar .sidebar-menu li a svg {
    color: #9db2cb;
}

.main-sidebar .sidebar-menu li a:hover {
    background: rgba(81, 145, 215, .16);
    color: #fff;
}

.main-sidebar .sidebar-menu > li.active > a {
    background: linear-gradient(110deg, #f4c45e, #e9a92d);
    box-shadow: inset 4px 0 0 #fff4d6;
    color: #142b4a;
    font-weight: 700;
}

.main-sidebar .sidebar-menu > li.active > a i,
.main-sidebar .sidebar-menu > li.active > a svg {
    color: #142b4a;
}

.main-sidebar .sidebar-menu > li.active > a:hover {
    background: linear-gradient(110deg, #f8d47c, #f0b947);
    color: #142b4a;
}

body:not(.sidebar-mini) .sidebar-style-2 .sidebar-menu > li.active > a,
body:not(.sidebar-mini) .sidebar-style-2 .sidebar-menu > li.active > a i,
body:not(.sidebar-mini) .sidebar-style-2 .sidebar-menu > li.active > a svg {
    color: #142b4a;
}

.main-sidebar .sidebar-menu li ul.dropdown-menu {
    background: #102440;
}

.main-sidebar .sidebar-menu li ul.dropdown-menu li a {
    color: #afc0d4;
}

.main-sidebar .sidebar-menu li ul.dropdown-menu li a:hover {
    color: #fff;
}

.main-sidebar .sidebar-menu li ul.dropdown-menu li.active > a {
    background: #fff3d3;
    box-shadow: inset 3px 0 0 #e9a92d;
    color: #142b4a;
    font-weight: 700;
}

.main-sidebar .sidebar-menu li ul.dropdown-menu li.active > a:hover {
    background: #ffedbd;
    color: #142b4a;
}

.main-content {
    background: var(--enterprise-canvas);
    padding-top: 34px;
}

.main-content.master-form-page {
    padding-top: 80px;
}

.main-content .section .section-header h1,
.main-content .section .section-header h2 {
    color: var(--enterprise-navy);
}

.card {
    border: 1px solid var(--enterprise-border);
    border-radius: 8px;
    box-shadow: 0 3px 14px rgba(27, 49, 75, .045);
}

.card .card-header {
    min-height: 58px;
    border-bottom: 1px solid var(--enterprise-border);
    background: var(--enterprise-white);
}

.card .card-header h4,
.card .card-header h5 {
    color: var(--enterprise-navy);
    font-weight: 650;
}

.card .card-footer {
    border-top: 1px solid var(--enterprise-border);
    background: #fbfcfe;
}

.card-statistic-4 {
    border-radius: 8px;
}

.transaction-card {
    overflow: hidden;
    border-top: 4px solid #d9a63c;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 6px 22px rgba(27, 49, 75, .09);
}

.transaction-card > .card-header {
    min-height: 60px;
    padding: 16px 22px;
    border-bottom: 0;
    background: linear-gradient(110deg, var(--enterprise-navy), var(--enterprise-blue));
}

.transaction-card > .card-header h4 {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.transaction-card > .card-body {
    padding: 24px;
    background: #fff;
}

.transaction-card .card-footer,
.transaction-card .box-footer {
    padding: 16px 22px;
    border-top: 1px solid var(--enterprise-border);
    background: #fbfcfe;
}

.license-page {
    padding-bottom: 24px;
}

.license-page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.license-page-heading h1 {
    margin: 5px 0;
    color: var(--enterprise-navy);
    font-size: 25px;
    font-weight: 750;
}

.license-page-heading p {
    margin: 0;
    color: var(--enterprise-muted);
    font-size: 13px;
}

.license-card {
    margin-bottom: 24px;
}

.license-table {
    margin-bottom: 0;
}

.data-list-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    color: var(--enterprise-muted);
    font-size: 13px;
}

.data-list-loading-error {
    color: #b42318;
}

.data-list-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #e3e8ef;
    border-top-color: var(--enterprise-blue);
    border-radius: 50%;
    animation: data-list-spin .8s linear infinite;
}

@keyframes data-list-spin {
    to {
        transform: rotate(360deg);
    }
}

.license-table thead th {
    border-top: 0;
    color: #627188;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.license-table td {
    vertical-align: middle;
}

.license-days {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.license-current {
    background: #e8f5ef;
    color: #26764e;
}

.license-due-soon {
    background: #fff2d6;
    color: #94620a;
}

.license-expired {
    background: #fde8e8;
    color: #a63d3d;
}

.license-empty-state {
    padding: 28px 15px;
    color: var(--enterprise-muted);
    text-align: center;
}

.license-empty-state > i {
    margin-bottom: 12px;
    color: #c3cfdd;
    font-size: 30px;
}

.license-empty-state h5 {
    color: var(--enterprise-navy);
    font-weight: 700;
}

.license-empty-state p {
    margin-bottom: 16px;
}

.license-dashboard-chart-card {
    max-width: 560px;
    margin: 0 0 24px;
    overflow: hidden;
    border-top: 3px solid #d9a63c;
}

.license-dashboard-chart-card .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 20px;
}

.license-dashboard-chart-card .card-header h4 {
    margin: 0;
    font-size: 15px;
}

.license-dashboard-chart-card .card-header p {
    margin: 4px 0 0;
    color: var(--enterprise-muted);
    font-size: 11px;
}

.license-chart-total {
    padding: 6px 10px;
    border-radius: 20px;
    background: #fff4d9;
    color: #825b13;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.license-dashboard-chart-card .card-body {
    padding: 8px 16px 12px;
}

.license-dashboard-chart-card #licenseExpiryChart {
    min-height: 260px;
}

.account-dashboard {
    padding: 2px 0 20px;
}

.account-dashboard > .account-dashboard-heading {
    padding: 24px 28px;
    border: 1px solid #e4eaf1;
    border-left: 4px solid #d9a63c;
    border-radius: 12px;
    background:
        radial-gradient(circle at 92% 0, rgba(217, 166, 60, .12), transparent 26%),
        linear-gradient(110deg, #fff, #f9fbfe);
    box-shadow: 0 5px 18px rgba(27, 49, 75, .045);
}

.account-dashboard-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 24px;
}

.account-dashboard-eyebrow {
    color: #b07b19;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .15em;
}

.account-dashboard-heading h1 {
    margin: 5px 0 4px;
    color: var(--enterprise-navy);
    font-size: 25px;
    font-weight: 750;
}

.account-dashboard-heading p {
    margin: 0;
    color: var(--enterprise-muted);
    font-size: 13px;
}

.account-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid #f0dba8;
    border-radius: 24px;
    background: #fff9e9;
    color: #765311;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.account-dashboard-grid > div {
    margin-bottom: 22px;
}

.account-empty-state {
    padding: 48px 24px;
    border: 1px dashed #cbd6e2;
    border-radius: 12px;
    background: rgba(255, 255, 255, .72);
    text-align: center;
}

.account-empty-icon {
    display: inline-flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 16px;
    background: #edf4fb;
    color: var(--enterprise-blue);
    font-size: 21px;
}

.account-empty-state h2 {
    margin-bottom: 6px;
    color: var(--enterprise-navy);
    font-size: 18px;
    font-weight: 700;
}

.account-empty-state p {
    margin: 0;
    color: var(--enterprise-muted);
}

.account-dashboard-card {
    position: relative;
    height: 100%;
    min-height: 226px;
    overflow: hidden;
    padding: 22px;
    border: 1px solid var(--enterprise-border);
    border-top: 3px solid #d9a63c;
    border-radius: 12px;
    background: linear-gradient(155deg, #fff 62%, #fffaf0);
    box-shadow: 0 5px 18px rgba(27, 49, 75, .07);
    transition: transform .2s ease, box-shadow .2s ease;
}

.account-dashboard-card::after {
    position: absolute;
    top: -42px;
    right: -35px;
    width: 112px;
    height: 112px;
    border: 18px solid rgba(217, 166, 60, .08);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.account-dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(27, 49, 75, .12);
}

.account-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.account-card-icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: var(--enterprise-navy);
    color: #f4c45e;
    font-size: 15px;
}

.account-card-label {
    color: #9aa7b7;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .13em;
}

.account-dashboard-card h2 {
    overflow: hidden;
    margin: 0 0 16px;
    color: var(--enterprise-navy);
    font-size: 17px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-card-balance {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 18px;
}

.account-card-balance span {
    color: var(--enterprise-muted);
    font-size: 11px;
}

.account-card-balance strong {
    color: var(--enterprise-ink);
    font-size: 22px;
    font-weight: 750;
    letter-spacing: -.03em;
}

.account-card-actions {
    display: flex;
    gap: 10px;
}

.account-action {
    display: inline-flex;
    min-height: 38px;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.account-action:hover,
.account-action:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(27, 49, 75, .14);
    color: #fff;
    text-decoration: none;
}

.account-action-pledge {
    background: var(--enterprise-blue);
    color: #fff;
}

.account-action-pledge:hover,
.account-action-pledge:focus {
    background: var(--enterprise-blue-dark);
}

.account-action-release {
    border-color: #d5e8e8;
    background: #edf7f6;
    color: #267c7c;
}

.account-action-release:hover,
.account-action-release:focus {
    border-color: #267c7c;
    background: #267c7c;
}

@media (max-width: 575.98px) {
    .license-page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .license-dashboard-chart-card {
        max-width: 100%;
    }

    .license-dashboard-chart-card #licenseExpiryChart {
        min-height: 240px;
    }

    .account-dashboard-heading {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .account-dashboard > .account-dashboard-heading {
        padding: 20px;
    }

    .account-dashboard-heading h1 {
        font-size: 22px;
    }

    .account-count {
        padding: 7px 10px;
        font-size: 11px;
    }

    .account-dashboard-card {
        min-height: 0;
    }
}

.form-group label {
    color: #3a4a5e;
    font-weight: 600;
}

.form-control,
.custom-select,
.select2-container--default .select2-selection--single {
    border-color: #d8e0e9;
    border-radius: 5px;
    color: var(--enterprise-ink);
}

.form-control:focus,
.custom-select:focus {
    border-color: #78a6d7;
    box-shadow: 0 0 0 3px rgba(36, 99, 166, .12);
}

.btn {
    border-radius: 5px;
    font-weight: 600;
    transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.btn-primary,
.btn-primary.disabled,
.btn-primary:disabled {
    background-color: var(--enterprise-blue);
    border-color: var(--enterprise-blue);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled):active {
    background-color: var(--enterprise-blue-dark);
    border-color: var(--enterprise-blue-dark);
}

.btn-info {
    background-color: #347f91;
    border-color: #347f91;
}

.table thead th {
    background: #f5f8fc;
    border-bottom: 1px solid #dce5ef;
    color: #53657b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.table td,
.table th {
    border-color: #e8edf3;
    vertical-align: middle;
}

.table tbody tr:hover {
    background: #f8fafd;
}

.dropdown-menu {
    border: 1px solid var(--enterprise-border);
    border-radius: 7px;
    box-shadow: 0 8px 24px rgba(23, 42, 64, .12);
}

.dropdown-item:active {
    background: var(--enterprise-blue);
}

.main-footer {
    border-top: 1px solid var(--enterprise-border);
    background: var(--enterprise-white);
    color: var(--enterprise-muted);
}

.login-page {
    min-height: 100vh;
    background: #eef3f8;
}

.login-page #app {
    min-height: 100vh;
}

.login-section {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    background:
        radial-gradient(ellipse at 15% 15%, rgba(76, 128, 181, .1), transparent 34%),
        #eef3f8;
}

.login-shell {
    display: grid;
    width: min(1040px, 100%);
    min-height: 590px;
    grid-template-columns: 1.05fr .95fr;
    overflow: hidden;
    border: 1px solid rgba(218, 227, 237, .9);
    border-radius: 14px;
    background: var(--enterprise-white);
    box-shadow: 0 24px 70px rgba(24, 46, 72, .14);
}

.login-brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 42px 46px;
    background:
        radial-gradient(circle at 88% 85%, rgba(81, 145, 215, .28) 0, transparent 30%),
        linear-gradient(145deg, #183655, #10243c 78%);
    color: #fff;
}

.login-brand-panel::after {
    position: absolute;
    right: -100px;
    bottom: 90px;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.login-brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    align-self: center;
    flex-direction: column;
    gap: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-align: center;
}

.login-brand img {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: #fff;
    object-fit: contain;
    padding: 5px;
}

.login-brand-copy {
    position: relative;
    z-index: 1;
    max-width: 380px;
    margin-top: 35px;
}

.login-eyebrow {
    color: #739dc8;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
}

.login-brand-copy .login-eyebrow {
    color: #a9c8e9;
}

.login-brand-copy h1 {
    margin: 18px 0 14px;
    color: #fff;
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 600;
    letter-spacing: -.035em;
    line-height: 1.18;
}

.login-brand-copy p {
    max-width: 340px;
    color: #c1cede;
    font-size: 14px;
    line-height: 1.8;
}

.login-brand-footer {
    position: relative;
    z-index: 1;
    color: #aebed0;
    font-size: 12px;
}

.login-form-panel {
    align-self: center;
    padding: 64px 58px;
}

.login-form-heading {
    margin-bottom: 32px;
}

.login-form-heading h2 {
    margin: 11px 0 8px;
    color: var(--enterprise-navy);
    font-size: 25px;
    font-weight: 650;
}

.login-form-heading p {
    margin: 0;
    color: var(--enterprise-muted);
    line-height: 1.6;
}

.login-error-message {
    margin-bottom: 20px;
    border: 1px solid #f1c4c1;
    border-radius: 7px;
    font-size: 13px;
}

.login-form-panel .form-group {
    margin-bottom: 22px;
}

.login-form-panel .form-control {
    height: 48px;
    padding: 10px 13px;
    background: #fbfcfe;
}

.login-form-panel .form-control:focus {
    background: #fff;
}

.login-form-panel .login-submit {
    margin-top: 30px;
    margin-bottom: 18px;
}

.login-form-panel .btn {
    height: 48px;
    font-size: 14px;
}

.login-security-note {
    color: #8290a1;
    font-size: 11px;
    text-align: center;
}

.login-security-note i {
    margin-right: 5px;
    color: #438574;
}

.otp-login-shell {
    min-height: 540px;
}

.otp-form-panel {
    width: 100%;
}

.otp-icon {
    display: flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border-radius: 16px;
    background: #edf4fb;
    color: var(--enterprise-blue);
    font-size: 22px;
}

.local-otp-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 22px 0 8px;
    padding: 12px 15px;
    border: 1px solid #f0dba8;
    border-radius: 8px;
    background: #fff9e9;
}

.local-otp-label {
    color: #765311;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .12em;
}

.local-otp-display strong {
    color: var(--enterprise-navy);
    font-size: 17px;
    font-weight: 750;
    letter-spacing: .16em;
    text-align: right;
}

.otp-inputs {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 30px 0 12px;
}

.otp-digit {
    width: 60px;
    height: 66px;
    border: 1px solid #d8e0e9;
    border-radius: 8px;
    background: #fbfcfe;
    color: var(--enterprise-navy);
    font-size: 25px;
    font-weight: 700;
    text-align: center;
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.otp-digit:focus {
    border-color: #78a6d7;
    outline: 0;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(36, 99, 166, .12);
}

@media (max-width: 767.98px) {
    .main-content {
        padding: 24px 16px;
    }

    .login-section {
        padding: 20px 14px;
    }

    .login-shell {
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .login-brand-panel {
        min-height: 230px;
        padding: 25px 28px;
    }

    .login-brand img {
        width: 88px;
        height: 88px;
    }

    .login-brand-copy {
        margin-top: 28px;
    }

    .login-brand-copy h1 {
        margin: 10px 0 8px;
        font-size: 27px;
    }

    .login-brand-copy p,
    .login-brand-footer {
        display: none;
    }

    .login-form-panel {
        padding: 36px 28px 32px;
    }

    .otp-login-shell .login-brand-panel {
        min-height: 210px;
    }

    .otp-digit {
        width: 54px;
        height: 60px;
    }
}
