/*!
 * Style untuk halaman Pengembali Linen Bersih
 * Copy dari style_distribusilinenbersih.css
 */

/* ===== Custom Card ===== */
.custom-card {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.custom-card .card-header {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    background-color: rgba(0, 0, 0, 0.03);
}

.custom-card .card-body {
    padding: 1.25rem;
}

/* ===== Stat Card ===== */
.stat-card {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    background-color: white;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-icon.bg-primary-transparent {
    background-color: rgba(13, 110, 253, 0.1);
}

.stat-icon.bg-secondary-transparent {
    background-color: rgba(108, 117, 125, 0.1);
}

.stat-icon.bg-success-transparent {
    background-color: rgba(25, 135, 84, 0.1);
}

.stat-icon.bg-danger-transparent {
    background-color: rgba(220, 53, 69, 0.1);
}

.stat-icon.bg-warning-transparent {
    background-color: rgba(255, 193, 7, 0.1);
}

.stat-icon.bg-info-transparent {
    background-color: rgba(23, 162, 184, 0.1);
}

/* ===== Chart Wrapper ===== */
.chart-wrapper {
    position: relative;
    height: 50px;
    width: 100px;
}

/* ===== Modal ===== */
.modal-content {
    border-radius: 0.5rem;
    border: none;
}

.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    padding: 1rem 1.5rem;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.125);
    padding: 1rem 1.5rem;
}

/* ===== Form Validation ===== */
.is-invalid {
    border-color: #dc3545 !important;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.is-invalid:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25) !important;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

/* ===== Button Styles ===== */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0b5ed7;
}

.btn-primary-ghost {
    background-color: transparent;
    color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary-ghost:hover {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    color: white;
}

.btn-link {
    font-weight: normal;
    color: #0d6efd;
    text-decoration: underline;
}

.btn-link:hover {
    color: #0a58ca;
}

/* ===== Alert Styles ===== */
.alert {
    border-radius: 0.375rem;
    padding: 0.75rem 1.25rem;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c25;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* ===== Table Styles ===== */
.table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(0, 0, 0, 0.025);
    --bs-table-striped-color: inherit;
    --bs-table-active-bg: rgba(0, 0, 0, 0.1);
    --bs-table-active-color: inherit;
    --bs-table-hover-bg: rgba(0, 0, 0, 0.025);
    --bs-table-hover-color: inherit;
    border-color: #dee2e6;
}

.table th,
.table td {
    padding: 0.75rem;
    vertical-align: middle;
    border-top: 1px solid #dee2e6;
}

.table thead th {
    border-bottom: 2px solid #dee2e6;
}

.table tbody + tbody {
    border-top: 2px solid #dee2e6;
}

.table .fw-semibold {
    font-weight: 600;
}

/* ===== DataTables Styles ===== */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate {
    color: #495057;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    box-sizing: border-box;
    display: inline-block;
    min-width: 1.5em;
    padding: 0.5em 1em;
    margin-left: 2px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    *cursor: hand;
    color: #495057 !important;
    border: 1px solid transparent;
    background: transparent;
    *background: #eee;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    color: #6c757d !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:active {
    background-color: #e9ecef;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    background-color: transparent;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:active {
    outline: none;
    background-color: #e9ecef;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    outline: none;
    background-color: transparent;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    outline: none;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:active:hover {
    outline: none;
    background-color: #e9ecef;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disables:hover {
    outline: none;
    background-color: transparent;
}

.dataTables_wrapper .dataTables_length select {
    width: auto;
    display: inline-block;
    margin-left: 0.5rem;
}

.dataTables_filter label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.dataTables_filter label input {
    margin-left: 0.5em;
}

.dataTables_info {
    padding-top: 0.75rem;
}

.dataTables_paginate {
    margin-top: 0.5rem;
}

.dataTables_wrapper .no-footer {
    border-bottom: 1px solid #dee2e6;
}

.dataTables_wrapper .dt-buttons {
    display: inline-block;
    margin-bottom: 0.5rem;
}

.dataTables_wrapper .dt-buttons .btn {
    margin-right: 0.375rem;
}

/* ===== Button Icons ===== */
.btn-icon {
    padding: 0.375rem;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon.btn-sm {
    width: 2rem;
    height: 2rem;
    padding: 0.25rem;
}

/* ===== Transparent Buttons ===== */
.btn-info-transparent {
    background-color: transparent;
    color: #0dcaf0;
    border-color: transparent;
}

.btn-info-transparent:hover {
    background-color: rgba(13, 202, 240, 0.1);
    color: #0dcaf0;
}

.btn-primary-transparent {
    background-color: transparent;
    color: #0d6efd;
    border-color: transparent;
}

.btn-primary-transparent:hover {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.btn-danger-transparent {
    background-color: transparent;
    color: #dc3545;
    border-color: transparent;
}

.btn-danger-transparent:hover {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* ===== Avatar Styles ===== */
.pic-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

/* ===== Status Badge ===== */
.badge {
    font-weight: 500;
}

/* ===== Tooltip ===== */
.tooltip-inner {
    max-width: 200px;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #fff;
    background-color: #000;
    border-radius: 0.25rem;
}

/* ===== Modal Nested Pattern ===== */
.shift-left {
    transform: translateX(-250px);
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 767.98px) {
    .custom-card {
        margin-bottom: 1rem;
    }
    
    .modal-dialog {
        margin: 1rem;
    }
    
    .modal-content {
        border-radius: 0;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }
}

/* ===== Animation ===== */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ===== Print Styles ===== */
@media print {
    .d-print-none {
        display: none !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
    
    .table {
        border-collapse: collapse !important;
    }
    
    .table th,
    .table td {
        border: 1px solid #dee2e6 !important;
    }
}