body.sm-app-body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.18), transparent 24%),
        linear-gradient(180deg, #eef4ff 0%, #f8fafc 36%, #f5f7fb 100%);
    color: #0f172a;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 15px;
}

a {
    color: #1d4ed8;
}

a:hover {
    color: #1e3a8a;
}

.sm-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    align-items: stretch;
    height: 78px;
    min-height: 78px;
    background: linear-gradient(135deg, #0f172a 0%, #172554 38%, #1d4ed8 100%);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}

.sm-topbar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 78px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.98);
    border-right: 1px solid rgba(148, 163, 184, 0.25);
    overflow: hidden;
}

.sm-topbar-brand img {
    display: block;
    width: auto !important;
    height: 48px !important;
    max-width: 190px !important;
    max-height: 48px !important;
    object-fit: contain !important;
}

.sm-topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 16px 24px;
    color: #ffffff;
}

.sm-topbar-label {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.sm-topbar-company {
    margin-top: 4px;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.sm-topbar-action {
    min-height: 46px;
    border-radius: 999px;
    padding-left: 18px;
    padding-right: 18px;
    font-weight: 700;
}

.content {
    padding-top: 108px;
    padding-right: 26px;
    padding-bottom: 32px;
    padding-left: 314px;
}

.sidenav {
    position: fixed;
    top: 94px;
    left: 18px;
    bottom: 18px;
    z-index: 1000;
    width: 270px;
    padding: 18px 12px 18px;
    overflow-y: auto;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.96) 0%, rgba(30, 64, 175, 0.96) 100%);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.16);
}

.sidenav::-webkit-scrollbar {
    width: 8px;
}

.sidenav::-webkit-scrollbar-thumb {
    background: rgba(191, 219, 254, 0.4);
    border-radius: 999px;
}

.welcome_dashboard {
    margin-bottom: 18px;
    padding: 14px 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
}

.welcome_dashboard span {
    display: block;
    font-size: 1rem;
}

.welcome_dashboard small {
    display: block;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.62);
}

.sidenav a,
.dropdown-btn {
    width: 100%;
    margin: 0;
    padding: 12px 14px;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: rgba(255, 255, 255, 0.88);
    text-align: left;
    text-decoration: none;
    font-size: 0.97rem;
    font-weight: 600;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
    cursor: pointer;
    outline: none;
}

.sidenav a:hover,
.dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: translateX(2px);
}

.dropdown-btn.active {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.dropdown-container {
    display: none;
    margin: 6px 4px 10px 10px;
    padding: 8px 0 4px 14px;
    border-left: 1px solid rgba(191, 219, 254, 0.28);
}

.dropdown-container a {
    display: block;
    width: 100%;
    position: relative;
    margin-bottom: 6px;
    padding: 10px 12px 10px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.76);
    border-radius: 12px;
    white-space: normal;
    line-height: 1.35;
}

.dropdown-container a::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(191, 219, 254, 0.7);
    transform: translateY(-50%);
}

.dropdown-container a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transform: none;
}

.fa-caret-down {
    float: right;
    padding-top: 2px;
}

.card_header_button {
    text-align: right;
}

.card,
.table,
.modal-content {
    border-radius: 22px;
}

.modal-content {
    border: 0;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
}

.modal-header,
.modal-footer {
    border-color: #dbe3f0;
}

.form-control,
.custom-select,
.btn {
    border-radius: 12px;
}

.form-control,
.custom-select {
    border-color: #cbd5e1;
}

.form-control:focus,
.custom-select:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 0.2rem rgba(96, 165, 250, 0.22);
}

.table thead th {
    border-top: 0;
}

@media (max-width: 1100px) {
    .sm-topbar {
        grid-template-columns: 200px minmax(0, 1fr);
    }

    .sidenav {
        width: 240px;
    }

    .content {
        padding-left: 280px;
    }
}

@media (max-width: 900px) {
    .sm-topbar {
        grid-template-columns: 1fr;
    }

    .sm-topbar-brand {
        border-right: 0;
        border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    }

    .sm-topbar-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .sidenav {
        position: static;
        width: auto;
        margin: 112px 18px 0;
    }

    .content {
        padding: 20px 18px 28px;
    }
}
