﻿
[class*="col"] {
    padding: 0px 0px;
    float: left;
}
.input-group-prepend {
    margin-right: -1px;
}
.form-control {
    padding: 0.275rem 0.75rem;
}
.input-group-text, .input-group-label {
    padding: 0.275rem 0.75rem;
    align-items: normal;
}
thead th {
    position: sticky;
    top: 0;
    background: #ffffff !important;
   
}
    
   
.card-header {
    font-size: 1rem;
    font-weight: bold;
    padding: 0.3rem 1rem;
    background-color: #1682ba;
    color:#fff;
}
.table > :not(caption) > * > * {
    padding: 0.35rem 0.5rem;
    }
    .fa{
    padding-top:7px;
}
.dropdown-menu {
    font-size: inherit;
}
    .input-group-prepend, .input-group-append {
    display: -ms-flexbox;
    display: flex;
}
.input-group-text, .form-control {
    font-size: .70rem;
}
select > option, select, input[type="select"], .form-select {
    font-size: .70rem;
}
.close {
    float: right;
    font-size: 1.5rem;f
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: .5;
}
.paginate_button {
    cursor: pointer;
}
button.close {
    padding: 0;
    background-color: transparent;
    border: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-top: 15px;
    font-size: 12px;
}


/*body > .select2-container,
body > .select2-dropdown {
    width:100% !important; 
    z-index: 1300 !important;*/ /* Z-index biasa */
/*}*/
/*.select2-container--bootstrap .select2-selection--single .select2-selection__arrow b {
    margin-top: -1px;
}

.select2-container--bootstrap .select2-selection--single {
    line-height: 1.42857143;
    padding: 4px 24px 6px 12px;
}

.select2-container .select2-selection--single {
    box-sizing: border-box;
    cursor: pointer;
    display: block;
   
    user-select: none;
    -webkit-user-select: none;
}

.select2-container .select2-selection--multiple {
    height: 100%;
    min-height: 100%;
}

.select2-container--bootstrap .select2-selection {
    font-size: inherit;
}

.select2-selection {
    overflow: hidden;
}

.select2-selection__rendered, .select2-search__field {
    white-space: normal;
    word-break: break-all;
    max-width: 100% !important;
}*/


/* Modal Dialog */
#popForm .modal-dialog {
    animation: modalSlideDown 0.3s ease-out;
}

@keyframes modalSlideDown {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modal Content */
#popForm .modal-content {
    border: none !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12) !important;
    background-color: #ffffff !important;
    /*overflow: hidden;*/
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Modal Header */
#popForm .modal-header {
    background-color: #005AAB !important;
    border: none !important;
    padding: 0.875rem 1.25rem !important;
    border-radius: 10px 10px 0 0 !important;
}

    #popForm .modal-header label {
        color: #ffffff !important;
        font-size: 0.9375rem !important;
        font-weight: 600 !important;
        letter-spacing: 0.2px;
        margin: 0 !important;
        text-transform: capitalize;
    }

/* Close button modern */
#popForm .btn-close {
/*    background-color: rgba(255, 255, 255, 0.2) !important;*/
/*    border-radius: 6px !important;*/
    opacity: 1 !important;
    padding: 0.375rem !important;
    width: 1.5rem !important;
    height: 1.5rem !important;
    transition: all 0.3s ease !important;
}

    #popForm .btn-close:hover {
/*        background-color: rgba(255, 255, 255, 0.3) !important;*/
/*        transform: rotate(90deg);*/
         background-color:aliceblue;
    }

/* Modal Body */
#popForm .modal-body {
    padding: 1.25rem !important;
    background-color: #ffffff !important;
    overflow-y: auto;
}

/* Form Elements di dalam modal */
#popForm .form-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.375rem;
}

#popForm .form-control,
#popForm .form-select {
    border: 1.5px solid #e5e7eb;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    transition: all 0.3s ease;
}

    #popForm .form-control:focus,
    #popForm .form-select:focus {
        border-color: #005AAB;
        box-shadow: 0 0 0 3px rgba(0, 90, 171, 0.1);
        outline: none;
    }

/* Buttons di dalam modal */
#popForm .btn {
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all 0.3s ease;
/*    border: none;*/
}

#popForm .btn-primary {
    background-color: #005AAB;
    box-shadow: 0 2px 6px rgba(0, 90, 171, 0.2);
}

    #popForm .btn-primary:hover {
        background-color: #004a8f;
        box-shadow: 0 3px 10px rgba(0, 90, 171, 0.3);
        transform: translateY(-1px);
    }

#popForm .btn-secondary {
    background-color: #6c757d;
    box-shadow: 0 2px 6px rgba(108, 117, 125, 0.2);
}

    #popForm .btn-secondary:hover {
        background-color: #5a6268;
        box-shadow: 0 3px 10px rgba(108, 117, 125, 0.3);
        transform: translateY(-1px);
    }

#popForm .btn-success {
    background-color: #10b981;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.2);
}

    #popForm .btn-success:hover {
        background-color: #059669;
        box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3);
        transform: translateY(-1px);
    }

/* Input Group Styling */
#popForm .input-group-text {
    background-color: #f3f4f6;
    border: 1.5px solid #e5e7eb;
    border-right: none;
    color: #6b7280;
    border-radius: 6px 0 0 6px;
    font-size: 0.8125rem;
    padding: 0.5rem 0.75rem;
}

#popForm .input-group .form-control {
    border-left: none;
    border-radius: 0 6px 6px 0;
}

    #popForm .input-group .form-control:focus {
        border-left: 1.5px solid #005AAB;
    }

/* Modal Footer jika ada */
#popForm .modal-footer {
    border: none;
    padding: 0.875rem 1.25rem 1.25rem;
    background-color: #f9fafb;
    border-radius: 0 0 10px 10px;
}

/* Hover effect untuk seluruh modal */
#popForm .modal-content:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15) !important;
}

/* Responsive */
@media (max-width: 576px) {
    #popForm .modal-dialog {
        margin: 0.5rem;
    }

    #popForm .modal-content {
        border-radius: 8px !important;
    }

    #popForm .modal-header {
        padding: 0.75rem 1rem !important;
    }

    #popForm .modal-body {
        padding: 1rem !important;
    }
}

/* ===== EMPLOYEE PROFILE CARD CSS ===== */

/* Main Card Container */
.employee-profile-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 12px 16px;
/*    margin-bottom: 10px;*/
    border-left: 5px solid #005AAB; /* Accent border */
    transition: all 0.3s ease;
    border-top: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    box-sizing: border-box;
    width: 100%;
}

/* Header Layout */
.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Employee Name */
.employee-name {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

/* Badge */
.today-badge-cuti {
    background-color: #e6f4ea;
    color: #1e7e34;
    padding: 8px 16px !important;
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    border-radius: 20px;
        font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap; /* biar gak turun */
    position: static !important;
}
    .today-badge .today-label {
        color: #64748b;
        font-size: 0.875rem;
        position: static;
    }




/* ===== RESPONSIVE ===== */

/* Tablet & Mobile */
@media (max-width: 768px) {
    .employee-profile-card {
        padding: 16px 20px;
    }

        .employee-profile-card .profile-header {
            gap: 12px;
        }

        .employee-profile-card .avatar {
            width: 56px;
            height: 56px;
            font-size: 24px;
        }

        .employee-profile-card .employee-name {
            font-size: 20px;
        }

        .employee-profile-card .employee-meta {
            gap: 12px;
        }

        .employee-profile-card .meta-item {
            font-size: 13px;
        }

        .employee-profile-card .meta-badge {
            padding: 3px 8px;
            font-size: 12px;
        }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .employee-profile-card .profile-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .employee-profile-card .avatar {
        width: 52px;
        height: 52px;
        font-size: 22px;
    }

    .employee-profile-card .employee-name {
        font-size: 18px;
    }

    .employee-profile-card .employee-meta {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
}

/* ===== VARIANT COLORS (Optional) ===== */

/* Success/Active Employee */
.employee-profile-card.success {
    border-left-color: #10b981;
}

    .employee-profile-card.success .avatar {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    }

/* Warning/Pending */
.employee-profile-card.warning {
    border-left-color: #f59e0b;
}

    .employee-profile-card.warning .avatar {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    }

/* Danger/Inactive */
.employee-profile-card.danger {
    border-left-color: #ef4444;
}

    .employee-profile-card.danger .avatar {
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    }

/* Info */
.employee-profile-card.info {
    border-left-color: #3b82f6;
}

    .employee-profile-card.info .avatar {
        background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    }

.badge {
    display: inline-block;
    padding: 6px 12px;
    font-size: 12px;
/*    font-weight: 600;*/
    border-radius: 10px;
    line-height: 1;
}

.badgeGroup {
    display: inline-block;
    padding: 4px 10px 8px 10px;
    font-size: 10px;
    font-weight: 600;
    border-radius: 10px;
    line-height: 1;
}

.badge-primary {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-success {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-secondary {
    background-color: #e5e7eb;
    color: #374151;
}

.btn {
    cursor: pointer;
    font-size: .8rem;
/*    padding: 0.05rem 0.75rem;*/
    padding-bottom: 0.3rem;
}

.btnGroup {
    cursor: pointer;
    font-size: .8rem;
    padding: 0.075rem 0.75rem;
    padding-bottom: 0.3rem;
}

.btn-primary,
.btn-primary:hover,
.btn-primary:focus {
    background-color: #005AAB;
    border-color: #005AAB;
}

.btn-outline-primary {
    color: #005AAB;
    border-color: #005AAB;
}
    .btn-outline-primary:hover {
        background-color: #005AAB;
        border-color: #005AAB;
    }

/*.btn-outline-primary:hover {
    background-color: #005AAB;
    border-color: #005AAB;
    color: #fff;
}*/


.borderFrm {
    border: 2px solid #0A7EC5;
}

#btnOut {
    width: 30px;
    height: 21px;
    text-align: center;
    padding-right: 6px;
    padding-top: 1px;
    border: 1px solid #999;
    border: 1px solid rgba(0, 0, 0, 0.3);
    *border: 1px solid #999;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    outline: none;
    -webkit-background-clip: padding-box;
    -moz-background-clip: padding-box;
    background-clip: padding-box;
}

[name='btnOut'] {
    width: 30px;
    height: 21px;
    text-align: center;
    float: left;
    background-color: whitesmoke;
    padding-top: 1px;
}

    [name='btnOut']:hover {
        background-color: #d5d5d5;
    }

#btnOut:hover {
    background-color: #d5d5d5;
}

#btnFind {
    text-align: center;
    float: left;
}

    #btnFind:hover {
        background-color: #d5d5d5;
    }

#pagination {
    margin: 2px 2px;
}

ul.tsc_pagination li a {
    border: solid 1px;
    border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    padding: 1px 2px 1px 2px;
}

ul.tsc_pagination li {
    padding-bottom: 1px;
}

    ul.tsc_pagination li a:hover,
    ul.tsc_pagination li a.current {
        color: #FFFFFF;
        box-shadow: 0px 1px #EDEDED;
        -moz-box-shadow: 0px 1px #EDEDED;
        -webkit-box-shadow: 0px 1px #EDEDED;
    }

ul.tsc_pagination {
    margin: 2px 0;
    padding: 0px;
    height: 30px;
    overflow: hidden;
/*    font-family: Helvetica, Arial, sans-serif;*/
    list-style-type: none;
}

    ul.tsc_pagination li {
        float: left;
        margin: 0px;
        padding: 0px;
        margin-left: 5px;
    }

        ul.tsc_pagination li a {
            color: black;
            display: block;
            text-decoration: none;
            padding: 4px 10px 4px 10px;
        }

            ul.tsc_pagination li a img {
                border: none;
            }

        ul.tsc_pagination li a {
            color: #0A7EC5;
            border-color: #8DC5E6;
            background: #F8FCFF;
        }

            ul.tsc_pagination li a:hover,
            ul.tsc_pagination li a.current {
                text-shadow: 0px 1px #388DBE;
                border-color: #3390CA;
                background: #58B0E7;
                background: -moz-linear-gradient(top, #B4F6FF 1px, #63D0FE 1px, #58B0E7);
                background: -webkit-gradient(linear, 0 0, 0 100%, color-stop(0.02, #B4F6FF), color-stop(0.02, #63D0FE), color-stop(1, #58B0E7));
            }

#dtaHeader {
    padding: 2px 4px;
    border-bottom: 1px solid #58B0E7;
}

#crud {
    float: left;
    height: 27px;
    padding: 2px 4px;
    height: auto;
}

    #crud > div {
        height: 25px;
        padding: 3px 15px;
        float: left;
        text-align: center;
        cursor: pointer;
        font-size: 100%;
        border: 1px solid #999;
        border: 1px solid rgba(0, 0, 0, 0.3);
        *border: 1px solid #999;
        -webkit-border-radius: 4px;
        -moz-border-radius: 4px;
        border-radius: 4px;
        outline: none;
        -webkit-background-clip: padding-box;
        -moz-background-clip: padding-box;
        background-clip: padding-box;
        font-weight: bold;
    }

        #crud > div:hover {
            background: #999;
            color: #FFFFFF;
            cursor: pointer;
        }
.fa{
    padding-bottom: 7px;
}



.stat-card {
    background: white;
    border-radius: 1rem;
    border: 1px solid #dee2e6;
    padding: 1rem;
    transition: all 0.2s ease-in-out;
    margin-right: 5px;
}

.stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 0.50rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .stat-icon i {
        color: white;
        font-size: 1.25rem;
    }

.stat-label {
    color: #64748b;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
}

.stat-unit {
    color: #64748b;
    font-weight: 500;
    margin-left: 0.5rem;
}

.bg-blue {
    background-color: #005AAB;
}


.btn-icon-sm {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 14px;
}

.btn-icon-view {
    background: #EFF6FF;
    color: #0284c7;
}

    .btn-icon-view:hover {
        background: #2563EB;
        color: white;
    }


.btn-bulk {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

    .btn-bulk:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.btn-bulk-approve {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    color: white;
}

    .btn-bulk-approve:hover:not(:disabled) {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        transform: translateY(-1px);
    }

.btn-bulk-reject {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    color: white;
}

    .btn-bulk-reject:hover:not(:disabled) {
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
        transform: translateY(-1px);
    }


