.font-weight-medium {
    font-weight: 600
}

.dropdown.bootstrap-select.form-control {
    padding: 0;
    height: 42px
}

.bootstrap-select>.dropdown-toggle {
    height: 42px;
    box-shadow: none
}

.bootstrap-select .dropdown-toggle .filter-option {
    margin-top: 8px
}

.bootstrap-select .no-results {
    font-size: .875rem;
    padding: 5px 12px;
    margin: 0
}

.bs-actionsbox .btn-group .btn-light {
    font-size: 12px;
    box-shadow: none
}

body.layout-3 .navbar.navbar-secondary .navbar-nav>.nav-item .dropdown-menu .nav-item .nav-link {
    letter-spacing: 0
}

.badge {
    padding: 5px 15px;
    line-height: 13px;
    font-size: 11px
}

.aks-file-upload {
    box-shadow: none;
    border-style: dashed !important;
    border: 1px solid #e5e7e9
}

.aks-file-upload-label {
    font-size: 14px;
    font-weight: 600;
    color: #006254
}

.aks-file-upload-error {
    font-size: 12px;
    font-weight: 400;
    color: red
}

label.aks-file-upload-label {
    margin-bottom: 0
}

.swal-button.swal-button--confirm {
    box-shadow: 0 2px 6px #bdebd3 !important;
    background-color: #006254 !important
}

.border-primary {
    border-color: #006254 !important;
    border-radius: 10px !important
}

.table:not(.table-sm):not(.table-md):not(.dataTable) td,
.table:not(.table-sm):not(.table-md):not(.dataTable) th {
    font-size: 13px
}

.budget-price .budget-price-label {
    font-weight: 400;
    font-size: 11px
}

.buttons-html5 {
    background-color: #20a163 !important;
    border: none !important;
    color: #fff !important;
    border-radius: 5px !important;
    padding: 10px 15px !important;
    margin-bottom: 15px !important;
    font-weight: 700
}

div.dt-buttons {
    float: right
}

.notes,
.notes>p {
    font-size: 16px;
    line-height: 20px;
    font-weight: 700 !important;
    color: #191d21;
    margin-bottom: 0 !important
}

.table td>p,
.table:not(.table-bordered) th>p {
    margin-bottom: 0 !important;
    line-height: 20px
}

.daterangepicker .daterangepicker_input i {
    top: 12px !important
}

div.dataTables_wrapper div.dataTables_paginate {
    margin-top: -1.8rem
}

.file-upload {
    display: block;
    text-align: center;
    font-size: 12px;
}

.file-upload .file-select {
    display: block;
    border: 1px solid #E5E7E9;
    color: #34495e;
    cursor: pointer;
    height: 42px;
    line-height: 40px;
    text-align: left;
    background: #FFFFFF;
    overflow: hidden;
    position: relative;
    border-radius: 4px;
}

.file-upload .file-select .file-select-button {
    background: #E5E7E9;
    padding: 0 20px;
    display: inline-block;
    height: 42px;
    font-size: 12px;
    line-height: 40px;
}

.file-upload .file-select .file-select-name {
    display: inline-block;
    padding: 0 10px;
}

.file-upload .file-select:hover {
    border-color: #006254;
    transition: all .2s ease-in-out;
    -moz-transition: all .2s ease-in-out;
    -webkit-transition: all .2s ease-in-out;
    -o-transition: all .2s ease-in-out;
}

.file-upload .file-select:hover .file-select-name {
    color: #006254;
}

.file-upload .file-select:hover .file-select-button {
    background: #006254;
    color: #FFFFFF;
    transition: all .2s ease-in-out;
    -moz-transition: all .2s ease-in-out;
    -webkit-transition: all .2s ease-in-out;
    -o-transition: all .2s ease-in-out;
}

.file-upload.active .file-select {
    border-color: #3fa46a;
    transition: all .2s ease-in-out;
    -moz-transition: all .2s ease-in-out;
    -webkit-transition: all .2s ease-in-out;
    -o-transition: all .2s ease-in-out;
}

.file-upload.active .file-select .file-select-button {
    background: #3fa46a;
    color: #FFFFFF;
    cursor: pointer;
    transition: all .2s ease-in-out;
    -moz-transition: all .2s ease-in-out;
    -webkit-transition: all .2s ease-in-out;
    -o-transition: all .2s ease-in-out;
}

.file-upload .file-select input[type=file] {
    z-index: 100;
    cursor: pointer;
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    filter: alpha(opacity=0);
}

.file-upload .file-select.file-select-disabled {
    opacity: 0.65;
}

.file-upload .file-select.file-select-disabled:hover {
    cursor: default;
    display: block;
    border: 1px solid #dce4ec;
    color: #34495e;
    cursor: pointer;
    height: 42px;
    line-height: 40px;
    text-align: left;
    background: #FFFFFF;
    overflow: hidden;
    position: relative;
}

.file-upload .file-select.file-select-disabled:hover .file-select-button {
    background: #dce4ec;
    color: #666666;
    padding: 0 20px;
    display: inline-block;
    height: 42px;
    line-height: 40px;
    cursor: pointer;
}

.file-upload .file-select.file-select-disabled:hover .file-select-name {
    line-height: 40px;
    display: inline-block;
    padding: 0 10px;
}

.custom-switch-description-danger {
    margin-left: 0.5rem;
    color: #6e7687;
    transition: .3s color;
}

.custom-switch-input:checked~.custom-switch-description-danger {
    color: #FC544B !important;
}

.custom-switch-indicator-danger {
    display: inline-block;
    height: 1.25rem;
    width: 2.25rem;
    background: #e9ecef;
    border-radius: 50px;
    position: relative;
    vertical-align: bottom;
    border: 1px solid rgba(0, 40, 100, .12);
    transition: .3s border-color, .3s background-color;
}

.custom-switch-input:checked~.custom-switch-indicator-danger {
    background: #FC544B;
}

.custom-switch-indicator-danger:before {
    content: "";
    position: absolute;
    height: calc(1.25rem - 4px);
    width: calc(1.25rem - 4px);
    top: 1px;
    left: 1px;
    background: #fff;
    border-radius: 50%;
    transition: .3s left;
}

.custom-switch-input:checked~.custom-switch-indicator-danger:before {
    left: calc(1rem + 1px);
}

.perihal p {
    margin-bottom: 0 !important;
    font-weight: bold !important;
    line-height: 20px;
}

.detail-title {
    display: flex;
    align-items: center;
    flex-direction: row;
}

.detail-title .detail-icon {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ECF6F1;
}

.detail-title .detail-icon i {
    font-size: 16px;
    color: #006254;
}

.detail-title h4 {
    font-size: 18px;
    color: #191d21;
    margin-left: 10px;
    margin-bottom: 0 !important;
}

@media (max-width:575px) {
    .container {
        max-width: 560px;
    }

    .main-content {
        padding-left: 20px !important;
        padding-right: 20px !important;
        width: 100% !important;
    }
}

@media (min-width:576px) {
    .container {
        max-width: 560px;
    }
}

@media (min-width:768px) {
    .container {
        max-width: 750px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 980px;
    }
}

@media (max-width: 1024px) {
    .container {
        max-width: 1000px;
    }

    .main-content {
        padding-left: 20px !important;
        padding-right: 20px !important;
        width: 100% !important;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }

    .main-content {
        padding-left: 20px;
        padding-right: 20px;
        width: 100% !important;
    }
}

@media (min-width: 1440px) {
    .container {
        max-width: 1340px;
    }
}

/* =========================================================
   UI MODERNIZATION OVERRIDES (SAITEC NAVY BLUE THEME)
   ========================================================= */

:root {
    --saitec-blue: #061264;
    --saitec-blue-light: #1c2b8c;
    --saitec-blue-dark: #030a38;
    --saitec-accent: #f8f9fa;
    --saitec-text: #2c3e50;
    --glass-shadow: 0 8px 32px 0 rgba(6, 18, 100, 0.08);
    --soft-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Base resets for premium feel */
body {
    background-color: #f4f7f6 !important;
    letter-spacing: -0.01em;
}

/* Cards (Glassmorphism & Soft Shadows) */
.card {
    border: none !important;
    border-radius: 16px !important;
    box-shadow: var(--soft-shadow) !important;
    transition: all 0.3s ease-in-out;
    background: #ffffff;
}

.card:hover {
    box-shadow: var(--glass-shadow) !important;
    transform: translateY(-2px);
}

.card .card-header {
    border-bottom: 1px solid rgba(0,0,0,0.03) !important;
    background-color: transparent !important;
    padding: 20px 25px !important;
}

.card .card-header h4 {
    color: var(--saitec-blue) !important;
    font-weight: 700 !important;
    font-size: 16px !important;
}

.card-icon {
    border-radius: 12px !important;
}

/* Buttons */
.btn {
    border-radius: 8px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none !important;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

.btn-primary {
    background-color: var(--saitec-blue) !important;
    box-shadow: 0 4px 12px rgba(6, 18, 100, 0.2) !important;
}

.btn-primary:hover {
    background-color: var(--saitec-blue-light) !important;
}

/* Navbar background */
.navbar-bg {
    background-color: var(--saitec-blue) !important;
    height: 150px !important;
}

/* Main Navbar */
.main-navbar.navbar.navbar-expand-lg {
    background-color: transparent !important;
    padding-top: 25px !important;
    padding-bottom: 0px !important;
}

.main-navbar .nav-link {
    color: #ffffff !important;
    font-weight: 500;
}

/* Secondary Navbar (Menu) */
.navbar-secondary {
    background-color: transparent !important;
    box-shadow: none !important;
    border-radius: 0;
    margin-top: -15px; /* Adjust spacing to keep menu inside blue area */
    position: relative;
    z-index: 10;
}

.navbar-secondary .nav-item .nav-link {
    color: rgba(255, 255, 255, 0.75) !important;
    font-weight: 500 !important;
    transition: all 0.2s ease;
    padding-top: 15px;
    padding-bottom: 15px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px; /* Jarak antara icon dan teks */
}

/* Override default stisla margin agar muat lebih banyak menu */
body.layout-3 .navbar.navbar-secondary .navbar-nav {
    width: 100%;
    justify-content: center;
}
body.layout-3 .navbar.navbar-secondary .navbar-nav > .nav-item > .nav-link {
    margin-left: 15px !important;
    margin-right: 15px !important;
}
body.layout-3 .navbar.navbar-secondary .navbar-nav > .nav-item > .nav-link i {
    width: auto !important; /* Jangan paksa lebar 30px */
}
body.layout-3 .navbar.navbar-secondary .navbar-nav > .nav-item > .nav-link span {
    line-height: normal !important; /* Jangan paksa tinggi 74px karena membuat flexbox aneh */
}

body.layout-3 .navbar.navbar-secondary .navbar-nav > .nav-item.active > .nav-link,
body.layout-3 .navbar.navbar-secondary .navbar-nav > .nav-item > .nav-link:hover {
    color: #ffffff !important;
    font-weight: 800 !important;
    text-shadow: 0px 0px 1px rgba(255, 255, 255, 0.5); /* Supaya terlihat sedikit lebih tebal/bold */
}

/* Submenu / Dropdown Menu remains black */
.navbar-secondary .dropdown-menu .nav-item .nav-link {
    color: #333333 !important;
    font-weight: 500 !important;
    padding-top: 8px;
    padding-bottom: 8px;
}

.navbar-secondary .dropdown-menu .nav-item .nav-link:hover {
    color: var(--saitec-blue) !important;
    background-color: #f8f9fa !important;
}

/* Adjust main content spacing */
body.layout-3 .main-content {
    padding-top: 150px !important;
}

/* Tables */
.table:not(.table-sm):not(.table-md):not(.dataTable) td, 
.table:not(.table-sm):not(.table-md):not(.dataTable) th,
table.dataTable td, table.dataTable th {
    border-top: none !important;
    border-bottom: 1px solid #f0f2f5 !important;
    padding: 15px 20px !important;
    vertical-align: middle;
}

table.dataTable thead th {
    background-color: #f8f9fa;
    color: var(--saitec-text);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    border-bottom: none !important;
}

/* Form Controls */
.form-control, .bootstrap-select .dropdown-toggle {
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    padding: 10px 15px;
    box-shadow: none !important;
    transition: border-color 0.2s ease;
    font-family: inherit;
}

.form-control:focus {
    border-color: var(--saitec-blue) !important;
    box-shadow: 0 0 0 3px rgba(6, 18, 100, 0.1) !important;
}

/* Modals */
.modal-content {
    border-radius: 16px !important;
    border: none !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1) !important;
}

.modal-header {
    background-color: #f8f9fa;
    border-radius: 16px 16px 0 0 !important;
    border-bottom: 1px solid #e2e8f0;
}