/**
 * CCC Reimbursement Portal - Main Stylesheet
 * Color Scheme: White, Light Gray, Blue (#075ba0)
 */

/* CSS Variables */
:root {
    --primary-blue: #075ba0;
    --primary-blue-dark: #054a82;
    --primary-blue-light: #e8f4fc;
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;

    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --info: #3b82f6;
    --info-light: #dbeafe;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    --transition: all 0.3s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    color: var(--gray-900);
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-blue-dark);
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-fluid {
    width: 100%;
    padding: 0 1.5rem;
}

/* Auth Pages Layout */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 450px;
    padding: 3rem;
    animation: slideUp 0.5s ease;
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo h1 {
    color: var(--primary-blue);
    font-size: 1.75rem;
    font-weight: 700;
}

.auth-logo p {
    color: var(--gray-500);
    margin-top: 0.5rem;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dashboard Layout */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: linear-gradient(180deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: var(--white);
    padding: 1.5rem;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 1.5rem;
}

.sidebar-logo h2 {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 700;
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 0.25rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius);
    transition: var(--transition);
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.sidebar-nav a.active {
    background: rgba(255, 255, 255, 0.2);
}

.sidebar-nav i {
    font-size: 1.25rem;
    width: 1.5rem;
    text-align: center;
}

.sidebar-user {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.1);
}

.sidebar-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.sidebar-user-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.sidebar-user-name {
    font-weight: 500;
    font-size: 0.9rem;
}

.sidebar-user-role {
    font-size: 0.75rem;
    opacity: 0.7;
}

.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 2rem;
    min-height: 100vh;
}

.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    color: var(--gray-900);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--gray-500);
    margin: 0;
}

.page-header-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.card-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    color: inherit;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon.blue {
    background: var(--primary-blue-light);
    color: var(--primary-blue);
}

.stat-icon.green {
    background: var(--success-light);
    color: var(--success);
}

.stat-icon.yellow {
    background: var(--warning-light);
    color: var(--warning);
}

.stat-icon.red {
    background: var(--danger-light);
    color: var(--danger);
}

.stat-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.stat-content p {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin: 0;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-label.required::after {
    content: ' *';
    color: var(--danger);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(7, 91, 160, 0.1);
}

.form-control:disabled {
    background: var(--gray-100);
    cursor: not-allowed;
}

.form-control.is-invalid {
    border-color: var(--danger);
}

.form-control::placeholder {
    color: var(--gray-400);
}

.form-hint {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 0.5rem;
}

.form-error {
    font-size: 0.8rem;
    color: var(--danger);
    margin-top: 0.5rem;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.15rem;
    accent-color: var(--primary-blue);
    cursor: pointer;
}

.form-check-label {
    color: var(--gray-700);
    cursor: pointer;
    font-size: 0.95rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    font-family: inherit;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: var(--white);
    box-shadow: 0 2px 4px rgba(7, 91, 160, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue-dark) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(7, 91, 160, 0.4);
    color: var(--white);
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-300);
    color: var(--gray-800);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-success:hover {
    background: #059669;
    color: var(--white);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-danger:hover {
    background: #dc2626;
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

/* Tables */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

.table th,
.table td {
    padding: 1rem 1.25rem;
    text-align: left;
}

.table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--gray-200);
}

.table td {
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
}

.table tbody tr:hover {
    background: var(--gray-50);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.status-draft {
    background: var(--gray-200);
    color: var(--gray-600);
}

.status-pending {
    background: var(--warning-light);
    color: #b45309;
}

.status-approved {
    background: var(--success-light);
    color: #047857;
}

.status-rejected {
    background: var(--danger-light);
    color: #b91c1c;
}

.status-paid {
    background: var(--primary-blue-light);
    color: var(--primary-blue);
}

.badge-role {
    background: var(--primary-blue-light);
    color: var(--primary-blue);
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    align-items: flex-start;
    gap: 0.75rem;
}

.alert-success {
    background: var(--success-light);
    color: #047857;
    border: 1px solid #a7f3d0;
}

.alert-danger {
    background: var(--danger-light);
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: var(--warning-light);
    color: #b45309;
    border: 1px solid #fcd34d;
}

.alert-info {
    background: var(--info-light);
    color: #1d4ed8;
    border: 1px solid #93c5fd;
}

/* Multi-Step Form */
.steps-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.steps-header {
    display: flex;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    overflow-x: auto;
}

.step-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    min-width: max-content;
    color: var(--gray-400);
    position: relative;
    transition: var(--transition);
}

.step-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
}

.step-item.active {
    color: var(--primary-blue);
}

.step-item.active::after {
    background: var(--primary-blue);
}

.step-item.completed {
    color: var(--success);
}

.step-item.completed::after {
    background: var(--success);
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    background: var(--gray-200);
    color: var(--gray-500);
}

.step-item.active .step-number {
    background: var(--primary-blue);
    color: var(--white);
}

.step-item.completed .step-number {
    background: var(--success);
    color: var(--white);
}

.step-label {
    font-weight: 500;
    font-size: 0.9rem;
}

.steps-content {
    padding: 2rem;
}

.steps-footer {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

/* Repeater Fields */
.repeater-wrapper {
    margin-bottom: 1.5rem;
}

.repeater-item {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
    position: relative;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.repeater-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.repeater-item-title {
    font-weight: 600;
    color: var(--gray-700);
}

.repeater-remove {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

.repeater-remove:hover {
    color: #dc2626;
}

.repeater-add {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--primary-blue-light);
    color: var(--primary-blue);
    border: 2px dashed var(--primary-blue);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.repeater-add:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* Totals Display */
.totals-container {
    background: linear-gradient(135deg, var(--primary-blue-light) 0%, var(--white) 100%);
    border: 2px solid var(--primary-blue);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-top: 2rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.total-row:last-child {
    border-bottom: none;
}

.total-label {
    font-weight: 500;
    color: var(--gray-700);
}

.total-value {
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--gray-900);
}

.grand-total {
    background: var(--primary-blue);
    color: var(--white);
    margin: 1rem -1.5rem -1.5rem;
    padding: 1.25rem 1.5rem;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.grand-total .total-label,
.grand-total .total-value {
    color: var(--white);
}

.grand-total .total-value {
    font-size: 1.5rem;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.modal-header h3 {
    font-size: 1.25rem;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-400);
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--gray-700);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

/* Signature Pad */
.signature-pad-wrapper {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--white);
    overflow: hidden;
}

.signature-pad {
    width: 100%;
    height: 150px;
    display: block;
}

.signature-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

/* File Upload */
.file-upload {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    background: var(--gray-50);
    cursor: pointer;
    transition: var(--transition);
}

.file-upload:hover {
    border-color: var(--primary-blue);
    background: var(--primary-blue-light);
}

.file-upload input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-icon {
    font-size: 2.5rem;
    color: var(--gray-400);
    margin-bottom: 0.75rem;
}

.file-upload-text {
    color: var(--gray-600);
    font-weight: 500;
}

.file-upload-hint {
    font-size: 0.8rem;
    color: var(--gray-400);
    margin-top: 0.5rem;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: var(--gray-500);
}

.text-primary {
    color: var(--primary-blue);
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger);
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-1 {
    gap: 0.5rem;
}

.gap-2 {
    gap: 1rem;
}

.gap-3 {
    gap: 1.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        transition: var(--transition);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .mobile-menu-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .auth-card {
        padding: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .steps-header {
        flex-direction: column;
    }

    .step-item {
        padding: 1rem;
    }

    .steps-footer {
        flex-direction: column-reverse;
        gap: 1rem;
    }

    .steps-footer .btn {
        width: 100%;
    }

    .table th,
    .table td {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
}

/* Loading State */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--gray-300);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Print Styles */
@media print {

    .sidebar,
    .steps-footer,
    .btn,
    .no-print {
        display: none !important;
    }

    .main-content {
        margin-left: 0;
        padding: 0;
    }

    .card {
        box-shadow: none;
        border: 1px solid var(--gray-200);
    }
}

/* Utility Classes */
.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

.gap-1 {
    gap: 0.5rem;
}

.gap-2 {
    gap: 1rem;
}

.gap-3 {
    gap: 1.5rem;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

/* ═══════════════════════════════════════════════ */
/* CCC BILLING DASHBOARD STYLES                   */
/* ═══════════════════════════════════════════════ */

/* Financial Overview Grid */
.billing-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

@media (max-width: 1200px) {
    .billing-overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .billing-overview-grid {
        grid-template-columns: 1fr;
    }
}

.billing-overview-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    box-shadow: var(--shadow);
    border-left: 4px solid transparent;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.billing-overview-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    opacity: 0.05;
    transform: translate(30px, -30px);
}

.billing-overview-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.billing-overview-card.overview-total {
    border-left-color: var(--primary-blue);
}

.billing-overview-card.overview-total::before {
    background: var(--primary-blue);
}

.billing-overview-card.overview-total .billing-overview-icon {
    background: var(--primary-blue-light);
    color: var(--primary-blue);
}

.billing-overview-card.overview-pending {
    border-left-color: #f59e0b;
}

.billing-overview-card.overview-pending::before {
    background: #f59e0b;
}

.billing-overview-card.overview-pending .billing-overview-icon {
    background: var(--warning-light);
    color: #b45309;
}

.billing-overview-card.overview-approved {
    border-left-color: var(--success);
}

.billing-overview-card.overview-approved::before {
    background: var(--success);
}

.billing-overview-card.overview-approved .billing-overview-icon {
    background: var(--success-light);
    color: #047857;
}

.billing-overview-card.overview-paid {
    border-left-color: #6366f1;
}

.billing-overview-card.overview-paid::before {
    background: #6366f1;
}

.billing-overview-card.overview-paid .billing-overview-icon {
    background: #eef2ff;
    color: #4f46e5;
}

.billing-overview-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.billing-overview-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.billing-overview-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gray-500);
}

.billing-overview-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
}

.billing-overview-detail {
    font-size: 0.8rem;
    color: var(--gray-400);
    margin-top: 0.15rem;
}

/* Actions Bar */
.billing-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.billing-actions-bar h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
}

.billing-actions-bar h2 i {
    color: var(--primary-blue);
}

.billing-actions-bar .text-muted {
    margin: 0.15rem 0 0 0;
    font-size: 0.875rem;
}

.billing-actions-right {
    display: flex;
    gap: 0.75rem;
}

/* Meeting Breakdown Cards */
.meeting-breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.meeting-breakdown-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--gray-100);
}

.meeting-breakdown-card:hover {
    box-shadow: var(--shadow-md);
}

.meeting-breakdown-card.meeting-active {
    border-left: 4px solid var(--success);
}

.meeting-breakdown-card.meeting-past {
    border-left: 4px solid var(--gray-300);
}

.meeting-breakdown-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem 1.5rem 1rem;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .meeting-breakdown-header {
        flex-direction: column;
    }
}

.meeting-breakdown-title {
    flex: 1;
    min-width: 0;
}

.meeting-title-row h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.meeting-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin-top: 0.5rem;
}

.meeting-meta-item {
    font-size: 0.8rem;
    color: var(--gray-500);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.meeting-meta-item i {
    font-size: 0.7rem;
    color: var(--gray-400);
}

.meeting-breakdown-amount {
    text-align: right;
    flex-shrink: 0;
}

.meeting-amount-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.2;
}

.meeting-amount-label {
    display: block;
    font-size: 0.8rem;
    color: var(--gray-400);
    margin-top: 0.15rem;
}

/* Status Progress Bar */
.meeting-status-bar-wrapper {
    padding: 0 1.5rem;
    margin-bottom: 1rem;
}

.meeting-status-bar {
    display: flex;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: var(--gray-100);
}

.status-segment {
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.status-segment-paid {
    background: linear-gradient(135deg, #6366f1, #818cf8);
}

.status-segment-approved {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.status-segment-submitted {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.status-segment-rejected {
    background: linear-gradient(135deg, #ef4444, #f87171);
}

.status-segment-draft {
    background: var(--gray-300);
}

/* Detail Grid */
.meeting-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--gray-100);
    margin: 0;
}

@media (max-width: 768px) {
    .meeting-detail-grid {
        grid-template-columns: 1fr;
    }
}

.meeting-detail-section {
    background: var(--white);
    padding: 1.25rem 1.5rem;
}

.meeting-detail-section h4 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gray-500);
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.meeting-detail-section h4 i {
    font-size: 0.7rem;
}

/* Status List */
.meeting-status-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.meeting-status-row {
    display: grid;
    grid-template-columns: 10px 1fr auto auto;
    gap: 0.6rem;
    align-items: center;
    font-size: 0.875rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot-pending {
    background: #f59e0b;
}

.status-dot-approved {
    background: #10b981;
}

.status-dot-paid {
    background: #6366f1;
}

.status-dot-rejected {
    background: #ef4444;
}

.status-dot-draft {
    background: var(--gray-300);
}

.status-name {
    color: var(--gray-700);
    font-weight: 500;
}

.status-count {
    background: var(--gray-100);
    color: var(--gray-600);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    text-align: center;
    min-width: 24px;
}

.status-amount {
    color: var(--gray-600);
    font-weight: 600;
    font-size: 0.85rem;
    text-align: right;
    min-width: 70px;
}

/* Expense Category Bars */
.meeting-expense-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.expense-bar-row {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 0.75rem;
    align-items: center;
}

.expense-bar-label {
    font-size: 0.85rem;
    color: var(--gray-600);
    font-weight: 500;
}

.expense-bar-track {
    height: 10px;
    background: var(--gray-100);
    border-radius: 999px;
    overflow: hidden;
}

.expense-bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.expense-bar-transport {
    background: linear-gradient(135deg, var(--primary-blue), #2e8bc0);
}

.expense-bar-perdiem {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.expense-bar-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    text-align: right;
    min-width: 70px;
}

/* Meeting Footer */
.meeting-breakdown-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-100);
}

@media (max-width: 600px) {
    .meeting-breakdown-footer {
        flex-direction: column;
    }

    .meeting-breakdown-footer .btn {
        width: 100%;
    }
}

/* No Claims State */
.meeting-no-claims {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1.25rem 1.5rem;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-100);
    color: var(--gray-400);
    font-size: 0.875rem;
}

.meeting-no-claims i {
    font-size: 1rem;
}

/* Print overrides for billing dashboard */
@media print {
    .billing-overview-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .billing-overview-card {
        box-shadow: none;
        border: 1px solid var(--gray-200);
    }

    .billing-actions-bar .btn {
        display: none;
    }

    .meeting-breakdown-card {
        box-shadow: none;
        border: 1px solid var(--gray-200);
        break-inside: avoid;
    }

    .meeting-breakdown-footer {
        display: none;
    }
}


/* ═══════════════════════════════════════════════ */
/* INTERNAL NOTES STYLES                          */
/* ═══════════════════════════════════════════════ */

.notes-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.note-item {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    border-left: 3px solid #6366f1;
    transition: var(--transition);
}

.note-item:hover {
    background: #f5f3ff;
    border-left-color: #4f46e5;
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.6rem;
}

.note-author {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.note-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #818cf8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

.note-role-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    background: #eef2ff;
    color: #4f46e5;
    margin-left: 0.4rem;
    vertical-align: middle;
}

.note-body {
    font-size: 0.925rem;
    color: var(--gray-700);
    line-height: 1.6;
    padding-left: 2.85rem;
}

@media (max-width: 600px) {
    .note-body {
        padding-left: 0;
        margin-top: 0.5rem;
    }
}

@media print {
    #internal-notes {
        display: none;
    }
}

/* System-generated activity notes */
.note-item.note-system {
    background: #f0fdf4;
    border-left-color: #22c55e;
}

.note-item.note-system:hover {
    background: #dcfce7;
    border-left-color: #16a34a;
}

.note-avatar-system {
    background: linear-gradient(135deg, #22c55e, #4ade80) !important;
    font-size: 0.85rem !important;
}

.note-item.note-system .note-body {
    color: var(--gray-600);
    font-style: italic;
}

