@font-face {
    font-family: 'Segoe UI';
    src: url('../../assets/fonts/Segoe UI.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Segoe UI';
    src: url('../../assets/fonts/Segoe UI Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}
@font-face {
    font-family: 'Segoe UI';
    src: url('../../assets/fonts/Segoe UI Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}
@font-face {
    font-family: 'Segoe UI';
    src: url('../../assets/fonts/Segoe UI Bold Italic.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
}

:root {
	--primary-color:rgba(2, 73, 85, 1);
    --primary-color-light: rgba(10, 137, 111, 1);
    --primary-hover-color:#457189;
    --sidebar-width: 17rem;

    --sidebar-active-color: rgba(2, 73, 85, 1);
    --gradient-primary: linear-gradient(90deg, #0EA84E 0%, #024955 100%); 
    --gradient-primary-hover: linear-gradient(90deg, #024955 0%, #0EA84E 100%); 
}

body {
    font-family: 'Segoe UI', sans-serif !important;
    font-size: 14px !important;
    background-color: #FCFDFF;
}

/* Responsive table scroll on small screens */
@media (max-width: 991.98px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .page-wrapper .container-xl {
        padding-left: 12px;
        padding-right: 12px;
    }
}

:root, [data-bs-theme="light"], [data-bs-theme="dark"], body {
    --tblr-font-sans-serif: 'Segoe UI', sans-serif !important;
    --tblr-font-family: 'Segoe UI', sans-serif !important;
}

.bg-primary{
	background-color: var(--primary-color)!important;
}

.bg-gradient-primary{
    border: 0;
    background: var(--gradient-primary) !important;
}

.card.card-shadow, .card.card-shadow.border, .card-shadow{
    border-width: 1px;
    border-style: solid;
    border-color: rgba(162, 238, 165, 0.45)!important;
}

.form-control::placeholder,
.select2-search__field::placeholder,
.select2-selection__placeholder {
  color: rgba(107, 107, 107, 1) !important;
  font-weight: 300 !important;
  font-size: 0.85rem;
}

.form-control:focus,
.form-select:focus,
.select2-search__field:focus {
  border-color: var(--primary-color-light);
  box-shadow: 0 0 0 0.25rem rgba(0, 181, 6, 0.25);
}

.text-primary{
	color: var(--primary-color)!important;
}
.text-primary-light{
    color: var(--primary-color-light) !important;
}
.btn-primary{
	background-color: var(--primary-color)!important;
	border-color: var(--primary-color)!important;	
}
.btn-primary:hover{
	background-color: var(--primary-hover-color)!important;
	border-color: var(--primary-hover-color)!important;	
}
.btn-outline-primary{
	background: none;
	border-color: var(--primary-color);
	color: var(--primary-color);
}
.btn-outline-primary:hover{
	background-color: var(--primary-color)!important;
	border-color: var(--primary-color)!important;	
	color: #fff;	
}
.navbar-brand{
	min-height: 55px;
}
.sidebar{
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.05);
}
#sidebar-menu .nav-item{
	width: 100%;
	align-items: flex-start;
}
#sidebar-menu .nav-link{
    color: var(--primary-color);
	border-radius: 10px;
	width: 100%;
	display: flex;
	justify-content: flex-start;
}
#sidebar-menu .nav-link.dropdown-toggle:after{
	margin-left: auto;
}
#sidebar-menu .nav-link.active{
	background: var(--sidebar-active-color);
	color: #fff;
}
#sidebar-menu .dropdown-item{
	padding-left: 3.5rem;
	border-radius: 10px;
}
#sidebar-menu .dropdown-item.active{
	color: var(--primary-color);
	font-weight: bold;
	background: none;
}
#sidebar-menu .dropdown-menu{
	position: relative;
	width: calc(100% - 20px);
	background: none;
	box-shadow: none;
	border:none;
	border-left: 1px dashed #fff3;
	margin-left: 20px!important;
}
#sidebar-menu .dropdown-menu .dropdown-item{
	color: var(--primary-color);
	padding:8px 15px 8px 25px;
	position: relative;
	border-radius: 0;
}
#sidebar-menu .dropdown-menu .dropdown-item:before{
	content: "";
	position: absolute;
	top:50%;
	left:0;
	width: 15px;
	border-bottom: 1px dashed #fff3;
	transform: translateY(-50%);
}

#sidebar-menu .dropdown-menu .dropdown-item.active{
    font-weight: bold;
	color: var(--primary-color);
}
.table td{
	font-size: 14px;
	border-color: #f5f5f5;
}
.table thead tr:last-child th{
	border: none!important;
}
.table.no-footer{
	border: none!important;
}
.table .btn{
	padding-left: .5rem;
	padding-right: .5rem;
}
.note-toolbar.card-header{
	flex-wrap: wrap;
}
.bg-transparent-white{
	background: #fff1;
}

/* DATATABLE CUSTOM */
.dataTables_wrapper .dataTables_paginate .paginate_button{
	padding: 0!important;
	background: none!important;
	border: none!important;
}
.page-item.active .page-link{
	background: var(--primary-color);
	border-color: var(--primary-color);
}

.form-switch-text{
	position: relative;
	display: flex;
	border-radius: 5px;
	overflow: hidden;
}
.form-switch-text input{
	position: absolute;
	top: 0;
	left: 0;
	visibility: hidden;
	opacity: 0;
}
.form-switch-text .switch-item{
	background: var(--primary-color);
	padding: 5px 10px;
	font-size: .8rem;
	color: #fff;
	font-weight: bold;
}
.form-switch-text input.form-check-input~.switch-item-on{
	background: #eee;
	color: #aaa;
}
.form-switch-text input.form-check-input:checked~.switch-item-off{
	background: var(--primary-color);
	color: #fff;
}
.form-switch-text input.form-check-input:checked~.switch-item-on{
	background: var(--primary-color);
	color: #fff;
}
.form-switch-text input.form-check-input:checked~.switch-item-off{
	background: #eee;
	color: #aaa;
}

.form-switch-toggle .form-check-label{
	display: none;
}
.form-switch-toggle .form-check-label.off{
	display: block;
}
.form-switch-toggle .form-check-input:checked~.form-check-label.on{
	display: block;
}
.form-switch-toggle .form-check-input:checked~.form-check-label.off{
	display: none;
}
.sticky-bottom{
	position: sticky;
	position: -webkit-sticky;
	bottom: 0;
}
#navbar{
	transition: .3s ease;
	background: #fff;
	box-shadow: 0px 5px 20px -10px #0001;
}
#navbar.float{
	background: #fffa;
	backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.text-tetap{
	color:#2ecc71!important;
}
.text-sementara{
	color:#f1c40f!important;
}
.text-na{
	color:#ddd!important;
}
.col-data-low{
	background: #FFD6D2!important;
}
.col-data-medium{
	background: #FFFBE8!important;
}
.col-data-high{
	background: #C5FFDD!important;
}
.swiper-pagination-bullet-active{
	background: #fff!important;
}
.sidebar-toggler{
	width: 24px;
	height: 24px;
	border:none;
	padding:0;
	background: none;
}
.sidebar-toggler .sidebar-icon{
	height: 2px;
	background: var(--primary-color);
	display: block;
	border-radius: 100px;
	position: relative;
}
.sidebar-toggler .sidebar-icon:before,
.sidebar-toggler .sidebar-icon:after{
	content: "";
	position: absolute;
	top:-8px;
	right:0;
	width: 100%;
	height: inherit;
	background: inherit;
	transition: .3s ease;
}
.sidebar-toggler .sidebar-icon:after{
	top:8px;
}
body.sidebar-collapse .sidebar-toggler .sidebar-icon:before,
body.sidebar-collapse .sidebar-toggler .sidebar-icon:after{
	width: 70%;
}
.swal2-confirm{
	background: var(--primary-color)!important;
	border-color: var(--primary-color)!important;
	color:#fff;
}
@media (min-width: 992px){
	.sidebar{
		width: var(--sidebar-width)!important;
	}
	.navbar-expand-lg.navbar-vertical~.navbar, .navbar-expand-lg.navbar-vertical~.page-wrapper{
		margin-left: var(--sidebar-width)!important;
	}
	body.sidebar-collapse .sidebar{
		display: block;
		transform: translateX(-100%);
	}
	body.sidebar-collapse .navbar-expand-lg.navbar-vertical~.navbar, 
	body.sidebar-collapse .navbar-expand-lg.navbar-vertical~.page-wrapper{
		margin-left: 0!important;
	}
}

.fc-theme-bootstrap5 .fc-daygrid-day {
    border: 1px solid #ddd !important;
}

/* =====================================================
   SIDEBAR DETAIL PEGAWAI ï¿½ White/Light Style
   ===================================================== */
.sidebar-detail-pegawai {
    background: #fff !important;
    border-right: 1px solid #e8edf2 !important;
    box-shadow: 2px 0 12px rgba(0,0,0,0.06) !important;
}
.sidebar-detail-pegawai .navbar-brand {
    border-bottom: 1px solid #f0f4f8;
    padding-bottom: 16px;
    margin-bottom: 4px;
}
.sidebar-detail-pegawai .nav-item { width: 100%; }
.sidebar-detail-pegawai .nav-link {
    color: #2c7a7b !important;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 8px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1.4;
}
.sidebar-detail-pegawai .nav-link:hover {
    background: #e6f3f3 !important;
    color: #1a5f5f !important;
}
.sidebar-detail-pegawai .nav-link.active {
    background: #2c7a7b !important;
    color: #fff !important;
    font-weight: 600;
}
.sidebar-detail-pegawai .nav-link i {
    font-size: 1rem;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}
.sidebar-detail-pegawai .nav-link.back-link {
    color: #555 !important;
    font-size: 13px;
    font-weight: 400;
    margin-bottom: 8px;
    border-bottom: 1px solid #eee;
    border-radius: 0;
    padding-bottom: 14px;
}
.sidebar-detail-pegawai .nav-link.back-link:hover {
    background: none !important;
    color: #2c7a7b !important;
}
.sidebar-detail-pegawai .sidebar-footer-illustration {
    height: 150px;
    background: linear-gradient(180deg, #d4eeee 0%, #7fbfbf 60%, #2c7a7b 100%);
    overflow: hidden;
    margin-top: auto;
    flex-shrink: 0;
}
.pegawai-profile-card {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}
.pegawai-profile-card .profile-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e8edf2;
    flex-shrink: 0;
}
.pegawai-profile-card .nip-badge {
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 4px;
}
.pegawai-profile-card .employee-name {
    font-size: 17px;
    font-weight: 700;
    color: #1a202c;
    margin: 4px 0 8px;
}
.pegawai-profile-card .employee-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.pegawai-profile-card .meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #6b7280;
}
.btn-tambah-data {
    background: #2c7a7b;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 20px;
    border-radius: 8px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: background 0.2s;
}
.btn-tambah-data:hover { background: #1a5f5f; color: #fff; }
.table-link-lihat {
    color: #2c7a7b;
    text-decoration: underline;
    font-size: 13px;
}
.table-link-lihat:hover { color: #1a5f5f; }
.thead-light-green th {
    background-color: #e8f5f0 !important;
    color: #374151 !important;
    font-weight: 600 !important;
    border-bottom: 1px solid #d1e8de !important;
    font-size: 13px;
}
.modal-header-figma {
    background: #1a4a4a;
    color: #fff;
    border-radius: 8px 8px 0 0;
    padding: 16px 20px;
}
.modal-header-figma .modal-title { color: #fff !important; font-size: 16px; font-weight: 600; }
.modal-header-figma .btn-close { filter: invert(1); opacity: 0.8; }
.modal-section-card {
    background: #f8fafa;
    border: 1px solid #e0ebeb;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 16px;
}
.modal-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a4a4a;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0ebeb;
}
.upload-dropzone {
    border: 1.5px dashed #9ca3af;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f9fafb;
    cursor: pointer;
    transition: border-color 0.2s;
}
.upload-dropzone:hover { border-color: #2c7a7b; }
.upload-dropzone .upload-icon { color: #2c7a7b; font-size: 1.8rem; flex-shrink: 0; }
.upload-dropzone .upload-text-area { flex: 1; }
.upload-dropzone .upload-cta a { color: #2c7a7b; text-decoration: none; font-weight: 600; }
.upload-dropzone .upload-cta em { color: #2c7a7b; font-style: italic; font-weight: 600; }
.upload-dropzone .upload-meta { font-size: 11px; color: #9ca3af; margin-top: 2px; }
.upload-dropzone .btn-view-doc {
    background: #1a4a4a;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 18px;
    border-radius: 6px;
    border: none;
    white-space: nowrap;
    text-decoration: none;
    flex-shrink: 0;
}
.upload-dropzone .btn-view-doc:hover { background: #0f3333; color: #fff; }
.modal-footer-figma {
    padding: 16px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #e5e7eb;
}
.btn-save-figma {
    background: #2c7a7b; color: #fff !important; font-weight: 700;
    font-size: 13px; padding: 8px 28px; border-radius: 20px; border: none;
}
.btn-save-figma:hover { background: #1a5f5f; color: #fff !important; }
.btn-cancel-figma {
    background: #fff; color: #374151 !important; font-weight: 700;
    font-size: 13px; padding: 8px 28px; border-radius: 20px; border: 1.5px solid #d1d5db;
}
.btn-cancel-figma:hover { background: #f3f4f6; }
.form-control-readonly {
    background: #f3f4f6 !important; color: #374151 !important; border: 1px solid #e5e7eb !important;
}

.btn-tambah-data, .btn-tambah-data:hover { text-decoration: none !important; }

/* Custom Table UI Figma */
.card-table-wrapper {
    background: #ffffff;
    border: 1px solid #e1eee8 !important;
    border-radius: 16px !important;
    padding: 16px !important;
    box-shadow: none !important;
}

.card-table-wrapper .card-header {
    padding: 0 0 16px 0 !important;
}

.table-custom-ui {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100%;
    border: 1px solid rgba(242, 244, 249, 1) !important;
}

.table-custom-ui thead th {
    background-color: #f2fbf6 !important;
    color: #374151 !important;
    font-weight: 600 !important;
    font-size: 13px;
    padding: 14px 16px !important;
    border: none !important;
    text-transform: capitalize;
}

.table-custom-ui thead th:first-child {
    border-top-left-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
}

.table-custom-ui thead th:last-child {
    border-top-right-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
}

.table-custom-ui tbody td {
    padding: 14px 16px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    border-top: none !important;
    font-size: 14px;
    color: #374151;
    vertical-align: middle;
}

.table-custom-ui tbody tr:last-child td {
    border-bottom: none !important;
}

.table-custom-ui tbody tr:hover td {
    background-color: #fafffe !important;
}

/* ================== */
#sidebar-menu{
    background-size: contain;
    background-position: bottom;
    background-repeat: no-repeat;
}

.card-shadow{
    box-shadow: 0px 0px 5px 0px rgba(0, 181, 6, 0.25);
}

.rounded-small{
    border-radius: 12px;
}

.rounded-default{
    border-radius: 20px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.pagination .page-item{
    border-width: 1px;
    border-style: solid;
    border-color: rgba(223, 227, 232, 1);
    border-radius: 5px;
}

.pagination .page-item.active{
    border-color: var(--primary-color);
}

.pagination .page-item.disabled{
    color: white;
    background-color: rgba(189, 193, 198, 1);
}

.page-item.disabled{
    color: white;
    cursor: not-allowed;
}

.modal-header.bg-primary .btn-close{
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FFFFFF'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/.75rem auto no-repeat;
    opacity: 0.7;
}

.profile-img{
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

@media screen and (max-width: 768px) {
    #sidebar-menu .nav-link{
        padding: 0 12px;
    }
}

.select2-container {
    width: 100% !important;
}