body {
    background: #f5f6fb;
}

.logo-box .brand-fallback {
    color: #fff;
    font-weight: 700;
    letter-spacing: .02em;
}

.page-content {
    padding: 24px;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6,
.page-content p,
.page-content label,
.page-content span,
.page-content td,
.page-content th {
    overflow-wrap: anywhere;
}

.panel,
.stat {
    background: #fff;
    border: 1px solid #eaedf3;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, .04);
    padding: 1.25rem;
}

.panel form,
form.panel {
    align-items: end;
}

.panel label,
form.panel label {
    display: block;
    min-width: 0;
}

form.panel.space-y-4 > label,
form.panel.space-y-4 > p,
form.panel.space-y-4 > button {
    display: block;
    max-width: 720px;
    width: 100%;
}

form.panel.space-y-4 > label .field {
    width: 100%;
}

.grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)) !important;
}

.md\:grid-cols-2,
.md\:grid-cols-3,
.md\:grid-cols-4,
.md\:grid-cols-5,
.md\:grid-cols-6,
.lg\:grid-cols-2,
.lg\:grid-cols-6 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)) !important;
}

.md\:col-span-2,
.md\:col-span-5,
.md\:col-span-6,
.lg\:col-span-6 {
    grid-column: 1 / -1 !important;
}

.field,
input.field,
select.field,
textarea.field {
    display: block;
    width: 100%;
    min-height: 38px;
    border: 1px solid #d8dce5;
    border-radius: 10px;
    background: #fff;
    padding: .55rem .75rem;
    font-size: .875rem;
    outline: none;
    color: #364152;
    line-height: 1.45;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

.field::placeholder {
    color: #9aa4b2;
    opacity: 1;
}

textarea.field {
    min-height: 76px;
    resize: vertical;
}

select.field {
    appearance: auto;
    padding-right: 1.75rem;
}

input[type="checkbox"].field,
input[type="radio"].field,
input[type="checkbox"],
input[type="radio"] {
    min-height: auto;
    width: auto;
}

input[type="file"].field {
    height: auto;
    min-height: 44px;
    padding: .45rem .55rem;
    white-space: normal;
}

input[type="date"].field {
    min-width: 170px;
}

.field:focus {
    border-color: #663ffa;
    box-shadow: 0 0 0 .2rem rgba(102, 63, 250, .12);
}

.btn {
    border-radius: 10px;
    background: #663ffa;
    border-color: #663ffa;
    color: #fff;
    font-weight: 600;
    min-height: 42px;
    white-space: normal;
}

.btn:hover,
.btn:focus {
    background: #5534d8;
    border-color: #5534d8;
    color: #fff;
}

.btn.btn-link,
.btn.btn-link:hover,
.btn.btn-link:focus {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    color: inherit;
}

.btn.btn-sm {
    padding: .35rem .65rem;
}

.table {
    width: 100%;
    border-collapse: collapse;
    color: #4b5565;
    min-width: 760px;
}

.table th {
    background: #f3f4f8;
    border-bottom: 1px solid #e6e9f0;
    color: #111827;
    font-size: .78rem;
    font-weight: 700;
    padding: .8rem;
    text-transform: uppercase;
}

.table td {
    border-bottom: 1px solid #eef1f6;
    padding: .8rem;
    vertical-align: top;
    white-space: normal;
}

.stat span {
    color: #697586;
    display: block;
    font-size: .86rem;
}

.stat strong {
    color: #121926;
    display: block;
    font-size: 2rem;
    line-height: 1.1;
    margin-top: .5rem;
}

.nav-link {
    color: inherit;
}

.menu-link.active {
    background: rgba(102, 63, 250, .13);
    color: #fff;
}

.modal {
    z-index: 1060;
}

.modal.hidden {
    display: none !important;
}

.modal:not(.hidden) {
    display: block;
}

.max-card-icon {
    align-items: center;
    background: rgba(102, 63, 250, .12);
    border-radius: 12px;
    color: #663ffa;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    width: 42px;
}

@media (max-width: 991.98px) {
    .page-content {
        padding: 16px;
    }

    body.sidebar-enable .main-nav {
        left: 0;
        visibility: visible;
    }
}

@media (max-width: 767.98px) {
    .panel,
    .stat {
        padding: 1rem;
    }

    .field,
    input.field,
    select.field,
    textarea.field,
    .btn {
        width: 100%;
    }

    input[type="date"].field {
        min-width: 0;
    }
}
