/* ============================================= */
/* CASH REQUEST PORTAL STYLES */
/* ============================================= */

/* CSS Variables */
:root {
    --primary-purple: #9b59b6;
    --dark-purple: #7d3c98;
    --success-green: #28a745;
    --warning-yellow: #ffc107;
    --danger-red: #dc3545;
    --info-blue: #17a2b8;
}

/* Portal Container */
.portal-container {
    padding: 1rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Portal Header */
.portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.portal-header h3 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.portal-header h3 i {
    color: var(--primary-purple);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
    margin-bottom: 1rem;
}

/* Action Required Alert */
.alert-action-required {
    background: linear-gradient(135deg, #fef8ed, #fdf3e0);
    border: none;
    border-left: 5px solid #d9994d;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 12px rgba(217, 153, 77, 0.15);
    animation: pulse-subtle 2s ease-in-out infinite;
}

@keyframes pulse-subtle {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.01);
    }
}

.alert-action-required .alert-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #d9994d, #c58940);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(217, 153, 77, 0.3);
}

.alert-action-required .alert-icon i {
    font-size: 1.8rem;
    color: white;
    animation: bounce-icon 1s ease-in-out infinite;
}

@keyframes bounce-icon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.alert-action-required .alert-content h6 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #856404;
}

.alert-action-required .alert-content p {
    margin: 0;
    color: #856404;
    font-size: 1rem;
    line-height: 1.5;
}

.alert-action-required .alert-content strong {
    color: #d9994d;
    font-weight: 700;
    font-size: 1.1rem;
}

.crstat-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-width: 0;
    position: relative;
    min-height: 140px;
}

.crstat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.crstat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.crstat-icon.gray {
    background: linear-gradient(135deg, #6c757d, #5a6268);
}

.crstat-icon.yellow {
    background: linear-gradient(135deg, #d9994d, #c58940);
}

.crstat-icon.green {
    background: linear-gradient(135deg, #5fa76f, #4f8d5d);
}

.crstat-icon.blue {
    background: linear-gradient(135deg, #6b9fc7, #5a88af);
}

.crstat-icon.red {
    background: linear-gradient(135deg, #c75a6a, #b34b5c);
}

.crstat-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.crstat-value {
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
}

.crstat-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Requests Table Card */
.requests-table-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}

.requests-table-card table {
    margin: 0;
}

.requests-table-card thead {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.requests-table-card th {
    font-weight: 700;
    color: #2c3e50;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    padding: 1rem;
    border: none;
}

.requests-table-card td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f3f5;
}

.requests-table-card tbody tr {
    transition: background 0.2s ease;
}

.requests-table-card tbody tr:hover {
    background: #f8f9fa;
}

.amount-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Status Badges */
.badge-status {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-draft {
    background: #6c757d;
    color: white;
}

.badge-pending {
    background: #ffc107;
    color: #000;
}

.badge-approved {
    background: #28a745;
    color: white;
}

.badge-paid {
    background: #007bff;
    color: white;
}

.badge-rejected {
    background: #dc3545;
    color: white;
}

.badge-cancelled {
    background: #6c757d;
    color: white;
}

/* Action Required Badge */
.action-required-badge {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.4rem 0.9rem;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse-glow 2s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.action-required-badge i {
    margin-right: 0.35rem;
    animation: shake 0.5s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    }
    50% {
        box-shadow: 0 4px 16px rgba(255, 107, 107, 0.6);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-2px);
    }
    75% {
        transform: translateX(2px);
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state i {
    font-size: 5rem;
    color: #dee2e6;
    margin-bottom: 1.5rem;
}

.empty-state h5 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #495057;
    margin-bottom: 0.75rem;
}

.empty-state p {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* ============================================= */
/* CASH REQUEST FORM STYLES */
/* ============================================= */

.cash-request-form {
    max-width: 900px;
    margin: 0 auto;
}

/* Info Card */
.info-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 2rem;
}

.card-header-custom {
    background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
    color: white;
    padding: 1.25rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-header-custom i {
    font-size: 1.25rem;
}

.card-body-custom {
    padding: 2rem 1.5rem;
}

/* Form Row Compact */
.form-row-compact {
    margin-bottom: 1.5rem;
}

.form-row-compact:last-child {
    margin-bottom: 0;
}

/* Clean Label */
.clean-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.clean-label.required::after {
    content: " *";
    color: #dc3545;
}

/* Fields Grid Two */
.fields-grid-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.field-item {
    display: flex;
    flex-direction: column;
}

/* Form Controls */
.form-control {
    height: 2rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 0.2rem rgba(155, 89, 182, 0.25);
    outline: none;
}

.form-control:disabled {
    background-color: #f1f3f5;
    cursor: not-allowed;
    opacity: 0.7;
}

textarea.form-control {
    height: auto;
    resize: vertical;
    min-height: 100px;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
    border: none;
    color: white;
    box-shadow: 0 4px 12px rgba(155, 89, 182, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(155, 89, 182, 0.4);
}

.btn-secondary {
    background: #6c757d;
    border: none;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* ============================================= */
/* CASH REQUEST VIEW STYLES */
/* ============================================= */

/* .content-header {
    margin-bottom: 1.5rem;
} */

.content-body {
    /* max-width: 1200px; */
    margin: 0 auto;
    padding: 0 2rem 2rem 2rem;
}

/* Request Overview Card */
.request-overview-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.overview-header {
    background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-left {
    flex: 1;
}

.request-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.request-title i {
    font-size: 1.5rem;
}

.request-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    opacity: 0.95;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-item i {
    font-size: 0.85rem;
}

/* Status Badge */
.status-badge {
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge-draft {
    background: #6c757d;
    color: white;
}

.status-badge-to_approve {
    background: #ffc107;
    color: #000;
}

.status-badge-approved {
    background: #28a745;
    color: white;
}

.status-badge-paid {
    background: #007bff;
    color: white;
}

.status-badge-rejected {
    background: #dc3545;
    color: white;
}

/* Key Info Grid */
.key-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1.5rem;
}

.info-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid var(--primary-purple);
    transition: all 0.2s ease;
}

.info-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.info-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-icon-category {
    background: linear-gradient(135deg, #9c27b0, #7b1fa2);
    color: white;
}

.info-icon-department {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
}

.info-icon-cost {
    background: linear-gradient(135deg, #5fa76f, #4f8d5d);
    color: white;
}

.info-icon-date {
    background: linear-gradient(135deg, #d9994d, #c58940);
    color: white;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.info-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    word-break: break-word;
}

.cost-value {
    color: var(--success-green);
    font-size: 1.1rem;
}

/* Description Card */
.description-card {
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.description-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-purple);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.description-text {
    color: #495057;
    line-height: 1.6;
    margin: 0;
    white-space: pre-wrap;
}

/* Actions Card */
.actions-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.action-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Payment Details Form Card */
.payment-details-form-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 2rem;
    margin-top: 1.5rem;
    border-top: 4px solid var(--primary-purple);
}

.form-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-section-title i {
    color: var(--primary-purple);
    font-size: 1.5rem;
}

.fields-grid-two {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-row-compact {
    margin-bottom: 1.5rem;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: var(--primary-purple);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(155, 89, 182, 0.15);
}

.form-control::placeholder {
    color: #999;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
    padding-right: 3rem;
    color: #2c3e50 !important;
    font-weight: 500;
    -webkit-text-fill-color: #2c3e50 !important;
}

select.form-control option {
    color: #2c3e50 !important;
    background-color: #fff;
    padding: 0.75rem;
    font-weight: 500;
    -webkit-text-fill-color: #2c3e50 !important;
}

/* Style for options when in dropdown menu */
select.form-control option:checked,
select.form-control option:hover {
    background-color: var(--primary-purple);
    color: white !important;
    -webkit-text-fill-color: white !important;
}

select.form-control:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23AC25C8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    color: #2c3e50 !important;
    -webkit-text-fill-color: #2c3e50 !important;
}

select.form-control:invalid {
    color: #999 !important;
    -webkit-text-fill-color: #999 !important;
}

select.form-control:valid {
    color: #2c3e50 !important;
    -webkit-text-fill-color: #2c3e50 !important;
}

/* Ensure selected option has good contrast */
select.form-control option[value=""]:disabled {
    color: #999 !important;
    -webkit-text-fill-color: #999 !important;
}

select.form-control option:not([value=""]) {
    color: #2c3e50 !important;
    font-weight: 600;
    -webkit-text-fill-color: #2c3e50 !important;
}

/* Payment Form Custom Fields - No Bootstrap conflicts */
.payment-select-field,
.payment-input-field,
.payment-textarea-field {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #2c3e50 !important;
    background-color: #ffffff !important;
    background-clip: padding-box;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    font-weight: 600;
}

.payment-select-field:focus,
.payment-input-field:focus,
.payment-textarea-field:focus {
    color: #2c3e50 !important;
    background-color: #ffffff !important;
    border-color: var(--primary-purple);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(155, 89, 182, 0.15);
}

.payment-select-field::placeholder,
.payment-input-field::placeholder,
.payment-textarea-field::placeholder {
    color: #999;
    font-weight: 400;
}

/* Select field specific styling */
.payment-select-field {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
    padding-right: 3rem;
}

.payment-select-field:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23AC25C8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

/* Select options styling */
.payment-select-field option {
    color: #2c3e50 !important;
    background-color: #ffffff !important;
    padding: 0.75rem;
    font-weight: 600;
}

.payment-select-field option[value=""] {
    color: #999 !important;
    font-weight: 400;
}

.payment-select-field option:checked,
.payment-select-field option:hover {
    background-color: var(--primary-purple) !important;
    color: white !important;
}

/* Textarea specific */
.payment-textarea-field {
    resize: vertical;
    min-height: 100px;
    font-weight: 500;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.clean-label {
    display: block;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.clean-label.required::after {
    content: " *";
    color: #dc3545;
}

.form-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
}

.text-muted {
    color: #6c757d !important;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e9ecef;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
}


/* Status Messages */
.status-message {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid;
}

.status-message i {
    font-size: 3rem;
    flex-shrink: 0;
}

.status-message h6 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.status-message p {
    margin: 0;
    color: #495057;
}

.status-message-pending {
    background: #fff3cd;
    border-color: #ffc107;
}

.status-message-pending i {
    color: #ffc107;
}

.status-message-approved {
    background: #d4edda;
    border-color: #28a745;
}

.status-message-approved i {
    color: #28a745;
}

.status-message-paid {
    background: #d1ecf1;
    border-color: #007bff;
}

.status-message-paid i {
    color: #007bff;
}

.status-message-rejected {
    background: #f8d7da;
    border-color: #dc3545;
}

.status-message-rejected i {
    color: #dc3545;
}

.status-message-cancelled {
    background: #e2e3e5;
    border-color: #6c757d;
}

.status-message-cancelled i {
    color: #6c757d;
}

/* Alert Improvements */
.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: none;
    border-left: 4px solid #28a745;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    color: #155724;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.alert-success i {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    border: none;
    border-left: 4px solid #dc3545;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    color: #721c24;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.alert-danger i {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

/* ============================================= */
/* RESPONSIVE DESIGN */
/* ============================================= */

@media (max-width: 1400px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .key-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .portal-container {
        padding: 1rem 0.5rem;
    }

    .portal-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .portal-header h3 {
        font-size: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .crstat-card {
        padding: 1rem;
    }

    .crstat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .crstat-value {
        font-size: 1.5rem;
    }

    .requests-table-card {
        overflow-x: auto;
    }

    .fields-grid-two {
        grid-template-columns: 1fr;
    }

    .overview-header {
        flex-direction: column;
    }

    .request-title {
        font-size: 1.25rem;
    }

    .key-info-grid {
        grid-template-columns: 1fr;
    }

    .info-box {
        padding: 0.75rem;
    }

    .info-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .action-form {
        flex-direction: column;
    }

    .action-form .btn-lg {
        width: 100%;
    }

    .status-message {
        flex-direction: column;
        text-align: center;
    }

    .status-message i {
        font-size: 2.5rem;
    }
}

/* ============================================= */
/* FIX: Cash Request Category Select Visibility */
/* ============================================= */
select.cash-request-category-select {
    color: #2c3e50 !important;
    background-color: #ffffff !important;
    -webkit-text-fill-color: #2c3e50 !important;
    appearance: menulist;
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
    font-size: 16px !important;
    font-weight: 500 !important;
    height: auto !important;
    min-height: 48px;
}

select.cash-request-category-select option {
    color: #2c3e50 !important;
    background-color: #ffffff !important;
    -webkit-text-fill-color: #2c3e50 !important;
    font-weight: 500;
    padding: 10px;
}

/* When focused, keep text visible */
select.cash-request-category-select:focus {
    color: #2c3e50 !important;
    background-color: #ffffff !important;
    -webkit-text-fill-color: #2c3e50 !important;
}

/* Ensure selected value is visible in the dropdown field */
select.cash-request-category-select:not([value=""]),
select.cash-request-category-select[value]:not([value=""]) {
    color: #2c3e50 !important;
    -webkit-text-fill-color: #2c3e50 !important;
    font-weight: 600 !important;
}

/* Style placeholder option */
select.cash-request-category-select option[value=""],
select.cash-request-category-select option:first-child {
    color: #6c757d !important;
    -webkit-text-fill-color: #6c757d !important;
    font-style: italic;
}

/* Only apply purple highlight to options in the dropdown, not the selected text */
select.cash-request-category-select option:checked {
    background-color: #9b59b6 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-weight: 600;
}

select.cash-request-category-select option:hover {
    background-color: #f8f9fa !important;
    color: #2c3e50 !important;
    -webkit-text-fill-color: #2c3e50 !important;
}

/* ============================================= */
/* FILE UPLOAD STYLING */
/* ============================================= */
.file-upload-container {
    margin-top: 0.5rem;
}

.form-control-file {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #2c3e50;
    background-color: #fff;
    background-clip: padding-box;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    cursor: pointer;
}

.form-control-file:hover {
    border-color: var(--primary-purple);
    background-color: #f8f9fa;
}

.form-control-file:focus {
    border-color: var(--primary-purple);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(155, 89, 182, 0.15);
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.file-item:hover {
    background: #e9ecef;
    border-color: var(--primary-purple);
}

.file-item-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.file-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
    border-radius: 8px;
    color: white;
    font-size: 1rem;
}

.file-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.file-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

.file-size {
    font-size: 0.85rem;
    color: #6c757d;
}

.file-remove {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 1.2rem;
}

.file-remove:hover {
    background: #dc3545;
    color: white;
}

.form-text.text-muted {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.form-text.text-muted i {
    color: #17a2b8;
}

/* ============================================= */
/* ATTACHMENTS DISPLAY IN DETAIL VIEW */
/* ============================================= */
.attachments-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.attachment-item:hover {
    background: #e9ecef;
    border-color: var(--primary-purple);
    box-shadow: 0 2px 8px rgba(155, 89, 182, 0.1);
    text-decoration: none;
    transform: translateX(5px);
}

.attachment-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
    border-radius: 8px;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.attachment-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.attachment-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

.attachment-size {
    font-size: 0.85rem;
    color: #6c757d;
}

.attachment-download {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-purple);
    border-radius: 50%;
    color: white;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.attachment-item:hover .attachment-download {
    background: var(--dark-purple);
    transform: scale(1.1);
}

.description-card .badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
    border-radius: 50px;
    vertical-align: middle;
}
