@media (min-width: 992px) {
    :root {
        --bs-app-sidebar-width: 255px;
        --bs-app-sidebar-width-actual: 255px;
        --bs-app-header-height: 66px;
    }
}

:root,
[data-bs-theme=light] {
    --bs-primary: #3B82F6;
    --bs-primary-active: #2563eb;
    --bs-primary-light: #eff6ff;
    --bs-primary-clarity: rgba(59, 130, 246, 0.2);
    --bs-primary-rgb: 59, 130, 246;
    --bs-primary-bg-subtle: #dbeafe;
    --bs-primary-border-subtle: #bfdbfe;
}

.circolarita-login-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr);
    min-height: 100vh;
    background: #ffffff;
}

.circolarita-login-left {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
    padding: 40px 58px 54px;
}

.circolarita-login-brand {
    align-items: center;
    color: #111827;
    display: inline-flex;
    gap: 18px;
    text-decoration: none;
    width: fit-content;
}

.circolarita-login-brand-icon {
    height: 52px;
    width: 52px;
}

.circolarita-login-brand strong {
    display: block;
    font-size: 29px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.1;
}

.circolarita-login-brand small {
    color: #6b7280;
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-top: 7px;
}

.circolarita-login-form-wrap {
    align-items: center;
    display: flex;
    justify-content: center;
}

.circolarita-login-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    max-width: 390px;
    padding: 30px 44px 32px;
    width: 100%;
}

.circolarita-login-eyebrow {
    color: #2f3340;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
}

.circolarita-login-card-brand {
    align-items: center;
    color: #111827;
    display: inline-flex;
    gap: 8px;
    font-size: 21px;
    line-height: 1;
}

.circolarita-login-card-brand img {
    height: 26px;
    width: 26px;
}

.circolarita-login-register {
    color: #6b7280;
    font-size: 12px;
    margin-top: 10px;
}

.circolarita-login-link,
.circolarita-login-register a,
.circolarita-login-policy a {
    color: #3B82F6;
    text-decoration: none;
}

.circolarita-login-label {
    color: #4b5563;
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.circolarita-login-input {
    border: 1px solid #dfe4ec;
    border-radius: 6px;
    color: #111827;
    font-size: 12px;
    height: 38px;
    padding: 10px 12px;
}

.circolarita-login-input::placeholder {
    color: #9ca3af;
}

.circolarita-login-password-icon {
    align-items: center;
    background: transparent;
    border: 0;
    color: #9ca3af;
    display: inline-flex;
    height: 28px;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
}

.circolarita-login-password-icon:hover,
.circolarita-login-password-icon:focus {
    color: #3B82F6;
}

.circolarita-login-link {
    font-size: 11px;
    font-weight: 600;
}

.circolarita-login-remember {
    color: #4b5563;
    font-size: 12px;
}

.circolarita-login-submit {
    background: #3B82F6;
    border: 0;
    border-radius: 6px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    height: 38px;
}

.circolarita-login-submit:hover {
    background: #2563eb;
    color: #ffffff;
}

.circolarita-login-policy {
    font-size: 11px;
    margin-top: 18px;
}

.circolarita-login-footer {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.circolarita-login-footer span {
    color: #8a94aa;
    font-size: 10px;
    font-weight: 600;
}

.circolarita-login-footer img {
    height: 34px;
    width: auto;
}

.circolarita-login-right {
    align-items: center;
    background: rgba(59, 130, 246, 0.19);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
    padding: 42px;
}

.circolarita-login-right img {
    max-width: min(92%, 760px);
    width: 100%;
}

@media (max-width: 991.98px) {
    .circolarita-login-page {
        grid-template-columns: 1fr;
    }

    .circolarita-login-left {
        min-height: 100vh;
        padding: 28px 22px 36px;
    }

    .circolarita-login-right {
        display: none;
    }

    .circolarita-login-brand strong {
        font-size: 24px;
    }
}

body[data-kt-app-layout=light-sidebar] {
    background: #f8fafc;
}

body[data-kt-app-layout=light-sidebar] .app-sidebar {
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    box-shadow: none;
}

.app-sidebar-logo {
    height: 81px;
    border-bottom: 1px solid #e5e7eb !important;
}

.app-sidebar-logo a {
    display: inline-flex;
    align-items: center;
}

.circolarita-sidebar-logo {
    width: 205px;
    max-width: 100%;
    height: auto;
}

.app-sidebar-menu .app-sidebar-wrapper {
    margin-top: 18px !important;
}

.app-sidebar .menu {
    gap: 10px;
}

.app-sidebar .menu .menu-item .menu-link {
    min-height: 42px;
    border-radius: 5px;
    color: #58627a;
    padding: 10px 14px;
}

.app-sidebar .menu .menu-item .menu-link .menu-title,
.app-sidebar .menu .menu-item .menu-link .menu-icon,
.app-sidebar .menu .menu-item .menu-link .menu-icon .svg-icon,
.app-sidebar .menu .menu-item .menu-link .menu-arrow:after {
    color: #58627a;
}

.app-sidebar .menu .menu-item .menu-link:hover,
.app-sidebar .menu .menu-item .menu-link.active,
.app-sidebar .menu .menu-item.here > .menu-link,
.app-sidebar .menu .menu-item.show > .menu-link {
    background: #004f9f !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(0, 79, 159, 0.24);
}

.app-sidebar .menu .menu-item .menu-link:hover .menu-title,
.app-sidebar .menu .menu-item .menu-link:hover .menu-icon,
.app-sidebar .menu .menu-item .menu-link:hover .menu-icon .svg-icon,
.app-sidebar .menu .menu-item .menu-link:hover .menu-icon i,
.app-sidebar .menu .menu-item .menu-link:hover .menu-arrow:after,
.app-sidebar .menu .menu-item .menu-link.active .menu-title,
.app-sidebar .menu .menu-item .menu-link.active .menu-icon,
.app-sidebar .menu .menu-item .menu-link.active .menu-icon .svg-icon,
.app-sidebar .menu .menu-item .menu-link.active .menu-icon i,
.app-sidebar .menu .menu-item .menu-link.active .menu-arrow:after,
.app-sidebar .menu .menu-item.here > .menu-link .menu-title,
.app-sidebar .menu .menu-item.here > .menu-link .menu-icon,
.app-sidebar .menu .menu-item.here > .menu-link .menu-icon .svg-icon,
.app-sidebar .menu .menu-item.here > .menu-link .menu-icon i,
.app-sidebar .menu .menu-item.here > .menu-link .menu-arrow:after,
.app-sidebar .menu .menu-item.show > .menu-link .menu-title,
.app-sidebar .menu .menu-item.show > .menu-link .menu-icon,
.app-sidebar .menu .menu-item.show > .menu-link .menu-icon .svg-icon,
.app-sidebar .menu .menu-item.show > .menu-link .menu-icon i,
.app-sidebar .menu .menu-item.show > .menu-link .menu-arrow:after {
    color: #ffffff !important;
}

.app-sidebar .menu .menu-item .menu-link:hover .menu-arrow:after,
.app-sidebar .menu .menu-item .menu-link.active .menu-arrow:after,
.app-sidebar .menu .menu-item.here > .menu-link .menu-arrow:after,
.app-sidebar .menu .menu-item.show > .menu-link .menu-arrow:after {
    background-color: #ffffff !important;
}

.app-sidebar .menu-sub .menu-link {
    margin-left: 24px;
    min-height: 34px;
    box-shadow: none !important;
}

.app-sidebar .menu-sub .menu-link:not(:hover):not(.active) {
    background: transparent;
}

.app-sidebar .menu-sub .menu-bullet {
    display: none;
}

#kt_app_header.app-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: none;
}

#kt_app_header_container {
    min-height: 66px;
    padding-left: 22px;
    padding-right: 17px;
}

#kt_app_content {
    padding-top: 18px;
}

.circolarita-stat-card {
    background: #ffffff !important;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.circolarita-stat-card .card-body {
    padding: 24px 22px;
}

.circolarita-stat-title {
    color: #6f7894;
    font-size: 13px;
    line-height: 1.35;
}

.circolarita-stat-value {
    color: #111827;
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
}

.circolarita-stat-icon {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    justify-content: center;
}

.circolarita-stat-primary .circolarita-stat-icon {
    background: #eff6ff;
    color: #3B82F6;
}

.circolarita-stat-warning .circolarita-stat-icon {
    background: #fff7ed;
    color: #f59e0b;
}

.circolarita-stat-purple .circolarita-stat-icon {
    background: #f3e8ff;
    color: #8b5cf6;
}

.circolarita-stat-success .circolarita-stat-icon {
    background: #ecfdf5;
    color: #22c55e;
}

.circolarita-stat-icon i,
.circolarita-stat-icon .svg-icon {
    color: inherit !important;
}

.circolarita-panel-card {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.circolarita-mini-stat-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

.circolarita-media-card {
    background: #ffffff !important;
    border: 2px dashed #3B82F6 !important;
    border-radius: 8px;
    box-shadow: none;
}

.circolarita-performance-card {
    border-radius: 6px;
    border-style: solid !important;
    box-shadow: none;
}

.circolarita-performance-success {
    background: #ecfdf5 !important;
    border: 1px solid #22c55e !important;
}

.circolarita-performance-danger {
    background: #fee2e2 !important;
    border: 1px solid #f43f5e !important;
}

.circolarita-header-title {
    color: #111827;
    font-size: 18px;
    font-weight: 700;
}

.circolarita-list-page .circolarita-search-card,
.circolarita-table-card {
    border: 1px solid #dfe4ec;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.06);
}

.circolarita-search-card .card-body {
    padding: 16px;
}

.circolarita-search-input {
    background: #ffffff;
    border: 1px solid #d8dee9;
    border-radius: 6px;
    color: #111827;
    font-size: 14px;
    height: 42px;
}

.circolarita-search-input::placeholder {
    color: #8a94aa;
}

.circolarita-table-card {
    background: #ffffff;
    overflow: hidden;
}

.circolarita-table-card .table-responsive {
    padding: 0;
    overflow-x: auto;
}

.app-main .table-responsive:has(> .table) {
    background: #ffffff;
    border: 1px solid #dfe4ec;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.app-main .card .table-responsive:has(> .table) {
    border: 0;
    border-radius: 6px;
    box-shadow: none;
}

.app-main .table-responsive > .table {
    margin-bottom: 0 !important;
}

.circolarita-company-table {
    margin-bottom: 0 !important;
}

.app-main .card .table:not(.table-bordered) thead tr,
.circolarita-company-table thead tr {
    background: #3B82F6;
}

.app-main .card .table:not(.table-bordered) thead th,
.circolarita-company-table thead th {
    border-bottom: 0 !important;
    color: #ffffff !important;
    font-size: 12px;
    letter-spacing: 0;
    padding: 17px 24px !important;
}

.app-main .card .table:not(.table-bordered) thead th:first-child {
    border-top-left-radius: 6px;
}

.app-main .card .table:not(.table-bordered) thead th:last-child {
    border-top-right-radius: 6px;
}

.app-main .card .table:not(.table-bordered) tbody td {
    border-bottom: 1px solid #dfe4ec;
    color: #56617a;
    font-size: 14px;
    font-weight: 500;
    padding: 18px 24px !important;
    vertical-align: middle;
}

.app-main .card .table:not(.table-bordered) tbody tr:last-child td {
    border-bottom: 0;
}

.circolarita-company-table tbody td {
    border-bottom: 1px solid #dfe4ec;
    color: #56617a;
    font-size: 14px;
    font-weight: 500;
    padding: 18px 24px !important;
    vertical-align: middle;
}

.circolarita-company-table tbody tr:last-child td {
    border-bottom: 0;
}

.circolarita-company-name {
    color: #111827;
    font-weight: 700;
}

.circolarita-company-email {
    color: #6f7894;
    font-size: 12px;
    font-weight: 500;
    margin-top: 3px;
}

.circolarita-company-avatar .symbol-label {
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

.circolarita-company-avatar.is-orange .symbol-label {
    background: #ff6b3d;
}

.circolarita-company-avatar.is-teal .symbol-label {
    background: #4cc7c5;
}

.circolarita-company-avatar.is-mint .symbol-label {
    background: #86ddcf;
}

.circolarita-company-avatar.is-red .symbol-label {
    background: #f87171;
}

.circolarita-company-avatar.is-purple .symbol-label {
    background: #a78bdb;
}

.circolarita-status-badge {
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    padding: 7px 11px;
}

.circolarita-status-badge.is-active {
    background: #dcfce7;
    color: #16a34a;
}

.circolarita-status-badge.is-inactive {
    background: #fee2e2;
    color: #dc2626;
}

.circolarita-vat-badge {
    background: #f3f6fb;
    color: #56617a;
    font-weight: 700;
}

.circolarita-action-btn {
    background: #e8f2ff;
    border: 0;
    border-radius: 6px;
    color: #3B82F6;
    font-weight: 700;
    padding: 10px 16px;
}

.circolarita-action-btn:hover,
.circolarita-action-btn.show {
    background: #dbeafe;
    color: #2563eb;
}

.circolarita-datatable-footer {
    background: #ffffff;
    border-top: 1px solid #dfe4ec;
    padding: 16px 24px;
}

.circolarita-datatable-info,
.circolarita-datatable-info .dataTables_info {
    color: #66708a;
    font-size: 14px;
    font-weight: 600;
}

.circolarita-datatable-pagination .pagination {
    gap: 8px;
    margin-bottom: 0;
}

.circolarita-datatable-pagination .page-link {
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 6px !important;
    color: #8a94aa;
    display: inline-flex;
    height: 36px;
    justify-content: center;
    min-width: 36px;
}

.circolarita-datatable-pagination .page-item.active .page-link {
    background: #3B82F6;
    border-color: #3B82F6;
    color: #ffffff;
}

.app-navbar .symbol {
    width: 39px;
    height: 39px;
}

.app-navbar .symbol > img,
.app-navbar .symbol .symbol-label {
    width: 39px;
    height: 39px;
    border-radius: 50% !important;
}

.app-navbar .symbol .symbol-label {
    background: #35ae63 !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .app-sidebar-logo {
        height: 74px;
    }

    .circolarita-sidebar-logo {
        width: 195px;
    }
}
