:root {
    --md-primary: #1976d2;
    --md-primary-dark: #0d47a1;
    --md-primary-light: #e3f2fd;
    --md-secondary: #009688;
    --md-danger: #d32f2f;
    --md-warning: #f57c00;
    --md-success: #2e7d32;
    --md-info: #0288d1;
    --md-surface: #ffffff;
    --md-background: #f5f7fb;
    --md-border: #e0e0e0;
    --md-text: #263238;
    --md-muted: #607d8b;
    --md-radius-sm: 8px;
    --md-radius: 12px;
    --md-radius-lg: 20px;
    --md-shadow-1: 0 1px 3px rgba(60, 64, 67, .18), 0 1px 2px rgba(60, 64, 67, .12);
    --md-shadow-2: 0 4px 12px rgba(60, 64, 67, .16);
    --md-shadow-3: 0 10px 28px rgba(60, 64, 67, .18);
}

html,
body {
    background: var(--md-background);
    color: var(--md-text);
    font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
}

body.material-theme {
    letter-spacing: .01em;
}

a {
    color: var(--md-primary);
}

a:hover {
    color: var(--md-primary-dark);
}

.material-theme .wrapper {
    background: var(--md-background);
}

.material-theme .content-wrapper {
    background: var(--md-background);
}

.material-theme .content-header {
    padding: 24px 24px 8px;
}

.material-theme .content {
    padding: 0 24px 24px;
}

.material-theme .content-header h1 {
    color: #1f2937;
    font-size: 1.75rem;
    font-weight: 500;
    letter-spacing: 0;
}

.material-theme .breadcrumb {
    background: transparent;
    font-size: .875rem;
    margin-bottom: 0;
}

.material-theme .main-header {
    background: var(--md-surface);
    border-bottom: 0;
    box-shadow: var(--md-shadow-1);
    min-height: 64px;
    padding-left: 1rem;
    padding-right: 1rem;
    z-index: 1035;
}

.material-theme .main-header .nav-link {
    align-items: center;
    border-radius: 999px;
    color: var(--md-text);
    display: inline-flex;
    font-weight: 500;
    min-height: 40px;
    padding: .5rem .85rem;
}

.material-theme .material-symbols-rounded {
    font-size: 1.35rem;
    line-height: 1;
    vertical-align: middle;
}

.material-theme .main-header .nav-link:hover {
    background: var(--md-primary-light);
    color: var(--md-primary);
}

.material-theme .main-sidebar {
    background: #102a43;
    box-shadow: var(--md-shadow-2);
}

.material-theme .sidebar {
    padding: .75rem;
}

.material-theme .user-panel {
    background: rgba(255, 255, 255, .08);
    border-bottom: 0 !important;
    border-radius: var(--md-radius);
    padding: .8rem !important;
}

.material-theme .user-panel .info a {
    color: #fff;
    font-weight: 500;
}

@media (min-width: 768px) {
    .material-theme.sidebar-mini.sidebar-collapse .main-sidebar:not(:hover) .user-panel {
        align-items: center;
        background: transparent;
        justify-content: center;
        padding: .65rem .25rem !important;
    }

    .material-theme.sidebar-mini.sidebar-collapse .main-sidebar:not(:hover) .user-panel .image {
        margin: 0;
        padding-left: 0;
    }

    .material-theme.sidebar-mini.sidebar-collapse .main-sidebar:not(:hover) .user-panel .info {
        display: none !important;
    }
}

.material-theme .nav-sidebar .nav-header {
    color: rgba(255, 255, 255, .58);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    padding: 1rem .75rem .35rem;
}

.material-theme .nav-sidebar .nav-link {
    border-radius: 999px;
    color: rgba(255, 255, 255, .78);
    margin-bottom: .2rem;
    padding: .6rem .8rem;
}

.material-theme .nav-sidebar .nav-link p,
.material-theme .nav-sidebar .nav-link .nav-icon {
    color: inherit;
}

.material-theme .nav-sidebar .nav-link {
    align-items: center;
    display: flex;
}

.material-theme .nav-sidebar .nav-link .nav-icon {
    margin-right: .65rem;
    text-align: center;
    width: 1.6rem;
}

.material-theme .nav-sidebar .nav-link:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.material-theme .nav-sidebar .nav-link.active {
    background: var(--md-primary);
    box-shadow: 0 6px 16px rgba(25, 118, 210, .35);
    color: #fff;
}

.material-theme .card,
.material-theme .small-box,
.material-theme .info-box,
.material-theme .invoice,
.material-theme .login-box .card,
.material-theme .register-box .card {
    background: var(--md-surface);
    border: 0;
    border-radius: var(--md-radius);
    box-shadow: var(--md-shadow-1);
}

.material-theme .card {
    margin-bottom: 1.25rem;
}

.material-theme .card-header {
    background: transparent;
    border-bottom: 1px solid var(--md-border);
    border-radius: var(--md-radius) var(--md-radius) 0 0 !important;
    padding: 1rem 1.15rem;
}

.material-theme .card-title {
    color: #1f2937;
    font-size: 1rem;
    font-weight: 500;
}

.material-theme .card-body {
    padding: 1.15rem;
}

.material-theme form .card-body,
.material-theme .card-body form {
    font-size: .86rem;
}

.material-theme .card-body:has(.table-responsive) {
    padding: .9rem;
}

.material-theme .card-footer {
    background: transparent;
    border-top: 1px solid var(--md-border);
    padding: 1rem 1.15rem;
}

.material-theme form .card-footer {
    padding: .75rem .95rem;
}

.material-theme .btn {
    border-radius: 999px;
    box-shadow: none;
    font-weight: 500;
    letter-spacing: .02em;
    padding: .52rem 1.1rem;
    text-transform: none;
    transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.material-theme .btn .fas,
.material-theme .btn .far,
.material-theme .btn .material-symbols-rounded {
    vertical-align: -2px;
}

.material-theme .btn:hover {
    box-shadow: var(--md-shadow-1);
    transform: translateY(-1px);
}

.material-theme .btn-sm {
    padding: .32rem .75rem;
}

.material-theme .btn-primary,
.material-theme .bg-primary,
.material-theme .badge-primary {
    background-color: var(--md-primary) !important;
    border-color: var(--md-primary) !important;
}

.material-theme .btn-secondary {
    background-color: #eceff1;
    border-color: #eceff1;
    color: var(--md-text);
}

.material-theme .btn-info,
.material-theme .badge-info,
.material-theme .bg-info {
    background-color: var(--md-info) !important;
    border-color: var(--md-info) !important;
}

.material-theme .btn-success,
.material-theme .badge-success,
.material-theme .bg-success {
    background-color: var(--md-success) !important;
    border-color: var(--md-success) !important;
}

.material-theme .btn-warning,
.material-theme .badge-warning,
.material-theme .bg-warning {
    background-color: var(--md-warning) !important;
    border-color: var(--md-warning) !important;
    color: #fff !important;
}

.material-theme .btn-danger,
.material-theme .badge-danger,
.material-theme .bg-danger {
    background-color: var(--md-danger) !important;
    border-color: var(--md-danger) !important;
}

.material-theme .btn-default,
.material-theme .btn-outline-secondary {
    background: #fff;
    border-color: var(--md-border);
    color: var(--md-text);
}

.material-theme .btn-outline-danger,
.material-theme .btn-outline-primary,
.material-theme .btn-outline-info,
.material-theme .btn-outline-success {
    background: #fff;
    border-width: 1px;
}

.material-theme .btn-group .btn {
    border-radius: var(--md-radius-sm);
}

.material-theme .form-control,
.material-theme .custom-select,
.material-theme .input-group-text {
    background-color: #fff;
    border: 1px solid #cfd8dc;
    border-radius: var(--md-radius-sm);
    color: var(--md-text);
    font-size: .86rem;
    min-height: 36px;
    padding: .4rem .65rem;
}

.material-theme .form-control-sm {
    border-radius: var(--md-radius-sm);
    min-height: 30px;
    padding: .25rem .5rem;
}

.material-theme .form-control:focus,
.material-theme .custom-select:focus {
    border-color: var(--md-primary);
    box-shadow: 0 0 0 .15rem rgba(25, 118, 210, .16);
}

.material-theme label {
    color: #455a64;
    font-size: .78rem;
    font-weight: 500;
    margin-bottom: .25rem;
}

.material-theme textarea.form-control {
    min-height: auto;
}

.material-theme .form-group {
    margin-bottom: .75rem;
}

.material-theme form .row {
    margin-left: -.4rem;
    margin-right: -.4rem;
}

.material-theme form .row > [class*="col-"] {
    padding-left: .4rem;
    padding-right: .4rem;
}

.material-theme form .card {
    margin-bottom: 1rem;
}

.material-theme form .card-header {
    padding: .75rem .95rem;
}

.material-theme form .card-body {
    padding: .9rem .95rem;
}

.material-theme form .btn:not(.btn-sm) {
    font-size: .85rem;
    min-height: 36px;
    padding: .42rem .95rem;
}

.material-theme form .input-group-text {
    min-height: 36px;
    padding: .35rem .6rem;
}

.material-theme form .custom-control {
    min-height: 1.35rem;
}

.material-theme form .custom-control-label {
    line-height: 1.45;
}

.material-theme .input-group .form-control:first-child,
.material-theme .input-group-prepend .input-group-text {
    border-bottom-left-radius: var(--md-radius-sm);
    border-top-left-radius: var(--md-radius-sm);
}

.material-theme .input-group .form-control:last-child,
.material-theme .input-group-append .btn {
    border-bottom-right-radius: var(--md-radius-sm);
    border-top-right-radius: var(--md-radius-sm);
}

.material-theme .table {
    color: var(--md-text);
    font-size: .84rem;
    margin-bottom: 0;
}

.material-theme .table thead th {
    background: #f8fafc;
    border-bottom: 1px solid var(--md-border);
    color: #546e7a;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .04em;
    padding: .55rem .65rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.material-theme .table td,
.material-theme .table th {
    border-top: 1px solid #edf2f7;
    padding: .5rem .65rem;
    vertical-align: middle;
}

.material-theme .table tbody td {
    line-height: 1.25;
}

.material-theme .table small {
    font-size: .72rem;
    line-height: 1.2;
}

.material-theme .table .badge {
    font-size: .68rem;
    padding: .28em .55em;
}

.material-theme .table .btn-sm {
    border-radius: 8px;
    font-size: .74rem;
    line-height: 1;
    min-height: 28px;
    padding: .28rem .5rem;
}

.material-theme .table .btn-sm .fas,
.material-theme .table .btn-sm .far,
.material-theme .table .btn-sm .material-symbols-rounded {
    font-size: .78rem;
}

.material-theme .table .form-control-sm,
.material-theme .table .custom-select-sm {
    font-size: .78rem;
    min-height: 30px;
    padding-bottom: .25rem;
    padding-top: .25rem;
}

.material-theme .table-hover tbody tr:hover {
    background: var(--md-primary-light);
}

.material-theme .table-bordered {
    border: 1px solid var(--md-border);
}

.material-theme .table-responsive {
    border-radius: var(--md-radius);
    margin-bottom: 0;
}

.material-theme .list-group-item {
    border-color: var(--md-border);
}

.material-theme .custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--md-primary);
    border-color: var(--md-primary);
}

.material-theme .badge {
    border-radius: 999px;
    font-weight: 500;
    padding: .36em .65em;
}

.material-theme .alert {
    border: 0;
    border-radius: var(--md-radius);
    box-shadow: var(--md-shadow-1);
}

.material-theme .alert-info {
    background: var(--md-primary-light);
    color: #0d47a1;
}

.material-theme .alert-success {
    background: #e8f5e9;
    color: #1b5e20;
}

.material-theme .alert-danger {
    background: #ffebee;
    color: #b71c1c;
}

.material-theme .material-pagination-wrap {
    align-items: center;
    display: flex;
    justify-content: flex-end;
    padding-top: .25rem;
    width: 100%;
}

.material-theme .material-pagination {
    background: var(--md-surface);
    border: 1px solid var(--md-border);
    border-radius: var(--md-radius);
    box-shadow: var(--md-shadow-1);
    display: inline-flex;
    max-width: 100%;
    padding: .4rem;
}

.material-theme .pagination {
    align-items: center;
    flex-wrap: wrap;
    gap: .35rem;
    justify-content: flex-end;
}

.material-theme .pagination .page-item {
    margin: 0;
}

.material-theme .pagination .page-link {
    align-items: center;
    background: #f8fafc;
    border: 0;
    border-radius: 10px;
    color: var(--md-text);
    display: inline-flex;
    font-size: .875rem;
    font-weight: 500;
    justify-content: center;
    line-height: 1;
    min-height: 36px;
    min-width: 36px;
    padding: .55rem .75rem;
    transition: background-color .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.material-theme .pagination .page-link .material-symbols-rounded {
    font-size: 1.2rem;
}

.material-theme .pagination .page-link:hover {
    background: var(--md-primary-light);
    color: var(--md-primary);
    transform: translateY(-1px);
}

.material-theme .pagination .page-link:focus {
    box-shadow: 0 0 0 .15rem rgba(25, 118, 210, .16);
    outline: 0;
}

.material-theme .pagination .page-item.active .page-link {
    background: var(--md-primary);
    box-shadow: var(--md-shadow-1);
    color: #fff;
    min-width: 40px;
}

.material-theme .pagination .page-item.disabled .page-link {
    background: #f1f5f9;
    color: #b0bec5;
    pointer-events: none;
}

.material-theme .modal-content {
    border: 0;
    border-radius: var(--md-radius-lg);
    box-shadow: var(--md-shadow-3);
}

.material-theme .modal-header,
.material-theme .modal-footer {
    border-color: var(--md-border);
}

.material-theme .small-box {
    overflow: hidden;
}

.material-theme .small-box > .inner {
    padding: 1.15rem;
}

.material-theme .small-box h3 {
    font-weight: 500;
}

.material-theme .small-box .icon {
    opacity: .18;
}

.material-theme .small-box-footer {
    background: rgba(0, 0, 0, .08);
    font-weight: 500;
}

.material-theme .info-box {
    min-height: 96px;
    padding: .9rem;
}

.material-theme .info-box-icon {
    border-radius: var(--md-radius);
}

.material-theme .invoice {
    padding: 1.5rem !important;
}

.material-theme .service-card {
    border-left-width: 0 !important;
    box-shadow: var(--md-shadow-1);
}

.material-theme .service-card:hover {
    box-shadow: var(--md-shadow-2);
}

.material-theme .service-card-dropzone {
    border-radius: var(--md-radius);
}

.material-theme .main-footer {
    background: var(--md-surface);
    border-top: 0;
    box-shadow: 0 -1px 3px rgba(60, 64, 67, .08);
    color: var(--md-muted);
    padding: 1rem 1.25rem;
}

.material-theme.login-page,
.material-theme.register-page {
    align-items: center;
    background:
        radial-gradient(circle at 15% 20%, rgba(25, 118, 210, .16), transparent 24rem),
        radial-gradient(circle at 85% 5%, rgba(0, 150, 136, .14), transparent 20rem),
        var(--md-background);
    display: flex;
    min-height: 100vh;
}

.material-theme .login-box,
.material-theme .register-box {
    width: min(420px, calc(100% - 2rem));
}

.material-theme .login-logo a,
.material-theme .register-logo a {
    color: var(--md-primary-dark);
    font-weight: 500;
}

.material-theme .auth-brand {
    align-items: center;
    display: inline-flex;
    gap: .65rem;
    justify-content: center;
    text-decoration: none;
}

.material-theme .auth-brand-icon {
    align-items: center;
    background: var(--md-primary);
    border-radius: 50%;
    box-shadow: var(--md-shadow-2);
    color: #fff;
    display: inline-flex;
    height: 46px;
    justify-content: center;
    width: 46px;
}

.material-theme .auth-brand-icon .material-symbols-rounded {
    font-size: 1.7rem;
}

.material-theme .auth-brand-text {
    color: var(--md-primary-dark);
    font-size: 1.85rem;
    font-weight: 500;
    letter-spacing: -.02em;
}

.material-theme .login-card-body,
.material-theme .register-card-body {
    border-radius: var(--md-radius);
}

@media (max-width: 767.98px) {
    .material-theme .content-header {
        padding: 18px 14px 6px;
    }

    .material-theme .content {
        padding: 0 14px 18px;
    }

    .material-theme .btn {
        white-space: normal;
    }

    .material-theme .material-pagination-wrap {
        justify-content: center;
    }

    .material-theme .material-pagination {
        border-radius: var(--md-radius);
        width: 100%;
    }

    .material-theme .pagination {
        justify-content: center;
    }
}
