/* Hide Blazor error bar by default; Blazor can still show it for real errors via inline style. Always hidden when printing. */
#blazor-error-ui {
    display: none;
}
@media print {
    #blazor-error-ui {
        display: none !important;
    }
}

h1:focus {
    outline: none;
}

/* WebAssembly doesn't have reconnect modal - removed SignalR-specific CSS */

/* Read-only specifications styling */
.readonly-specs select,
.readonly-specs input,
.readonly-specs textarea {
    background-color: #f5f5f5 !important;
    color: #666 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* Reports Styles */
.reports-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.header {
    margin-bottom: 40px;
}

.back-button {
    margin-bottom: 20px;
}

.header h1 {
    color: #333;
    margin-bottom: 10px;
    font-size: 2rem;
}

.header p {
    color: #666;
    font-size: 16px;
}

.report-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.date-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-outline-secondary {
    background: transparent;
    color: #6c757d;
    border: 1px solid #6c757d;
}

.btn-outline-secondary:hover {
    background: #6c757d;
    color: white;
}

/* Customer History Report Styles */
.report-results {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.customer-summary {
    background: #f8f9fa;
    padding: 30px;
    border-bottom: 1px solid #dee2e6;
}

.customer-summary h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.summary-item {
    background: white;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-align: center;
}

.summary-label {
    display: block;
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
}

.summary-value {
    display: block;
    color: #333;
    font-size: 24px;
    font-weight: 700;
}

.summary-value.positive {
    color: #28a745;
}

.summary-value.negative {
    color: #dc3545;
}

.transaction-section {
    padding: 30px;
    border-bottom: 1px solid #dee2e6;
}

.transaction-section:last-child {
    border-bottom: none;
}

.transaction-section h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.transaction-section h3 i {
    color: #007bff;
}

.transaction-table {
    overflow-x: auto;
}

.transaction-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.transaction-table th {
    background: #f8f9fa;
    color: #333;
    font-weight: 600;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
}

.transaction-table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
    color: #333;
}

.transaction-table tr:hover {
    background: #f8f9fa;
}

.status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status.completed {
    background: #d4edda;
    color: #155724;
}

.status.in-progress {
    background: #fff3cd;
    color: #856404;
}

.status.pending {
    background: #f8d7da;
    color: #721c24;
}

.no-data {
    padding: 60px 30px;
    text-align: center;
    color: #666;
}

.no-data i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ccc;
}

.no-data span {
    font-size: 16px;
}

/* Inventory Valuation Report Styles */
.category-breakdown {
    padding: 30px;
    border-bottom: 1px solid #dee2e6;
}

.category-breakdown h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.category-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.category-card h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-card h4 i {
    color: #007bff;
}

.category-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    color: #666;
    font-size: 14px;
}

.stat-value {
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.stat-value.positive {
    color: #28a745;
}

.stat-value.negative {
    color: #dc3545;
}

.stat-value.warning {
    color: #ffc107;
}

.items-not-moved,
.profit-analysis,
.complete-inventory {
    padding: 30px;
    border-bottom: 1px solid #dee2e6;
}

.items-not-moved h3,
.profit-analysis h3,
.complete-inventory h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.items-not-moved h3 i,
.profit-analysis h3 i,
.complete-inventory h3 i {
    color: #007bff;
}

.margin-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.margin-category h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1rem;
}

.margin-items {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    max-height: 300px;
    overflow-y: auto;
}

.margin-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
}

.margin-item:last-child {
    border-bottom: none;
}

.item-sku {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    min-width: 80px;
}

.item-description {
    color: #666;
    font-size: 14px;
    flex: 1;
    margin: 0 10px;
}

.item-margin {
    font-weight: 600;
    font-size: 14px;
    min-width: 60px;
    text-align: right;
}

.item-margin.positive {
    color: #28a745;
}

.item-margin.negative {
    color: #dc3545;
}

.more-items {
    color: #666;
    font-size: 14px;
    font-style: italic;
    text-align: center;
    padding: 10px 0;
}

.inventory-table {
    overflow-x: auto;
}

.inventory-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.inventory-table th {
    background: #f8f9fa;
    color: #333;
    font-weight: 600;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
}

.inventory-table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
    color: #333;
}

.inventory-table tr:hover {
    background: #f8f9fa;
}

.inventory-table tr.stale-item {
    background: #fff3cd;
}

.inventory-table tr.stale-item:hover {
    background: #ffeaa7;
}

.status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status.fresh {
    background: #d4edda;
    color: #155724;
}

.status.aging {
    background: #fff3cd;
    color: #856404;
}

.status.stale {
    background: #f8d7da;
    color: #721c24;
}

@media (max-width: 768px) {
    .margin-breakdown {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .category-stats {
        grid-template-columns: 1fr;
    }
    
    .margin-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .item-margin {
        text-align: left;
    }
}

/* Profit & Loss Analysis Report Styles */
.financial-summary {
    background: #f8f9fa;
    padding: 30px;
    border-bottom: 1px solid #dee2e6;
}

.financial-summary h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.category-performance {
    padding: 30px;
    border-bottom: 1px solid #dee2e6;
}

.category-performance h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.top-performers,
.worst-performers {
    padding: 30px;
    border-bottom: 1px solid #dee2e6;
}

.top-performers h3,
.worst-performers h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-performers h3 i,
.worst-performers h3 i {
    color: #007bff;
}

.performance-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.performance-category h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1rem;
}

.performance-items {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    max-height: 300px;
    overflow-y: auto;
}

.performance-item {
    display: grid;
    grid-template-columns: 80px 1fr 80px 100px 80px;
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
    font-size: 14px;
}

.performance-item:last-child {
    border-bottom: none;
}

.item-sku {
    font-weight: 600;
    color: #333;
}

.item-description {
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-category {
    color: #666;
    font-size: 12px;
    text-align: center;
}

.item-profit {
    font-weight: 600;
    text-align: right;
}

.item-margin {
    font-weight: 600;
    text-align: right;
}

.monthly-trends {
    padding: 30px;
    border-bottom: 1px solid #dee2e6;
}

.monthly-trends h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.monthly-trends h3 i {
    color: #007bff;
}

.trends-table {
    overflow-x: auto;
}

.trends-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.trends-table th {
    background: #f8f9fa;
    color: #333;
    font-weight: 600;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
}

.trends-table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
    color: #333;
}

.trends-table tr:hover {
    background: #f8f9fa;
}

.complete-transactions {
    padding: 30px;
}

.complete-transactions h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.complete-transactions h3 i {
    color: #007bff;
}

.transactions-table {
    overflow-x: auto;
}

.transactions-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.transactions-table th {
    background: #f8f9fa;
    color: #333;
    font-weight: 600;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
}

.transactions-table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
    color: #333;
}

.transactions-table tr:hover {
    background: #f8f9fa;
}

@media (max-width: 768px) {
    .performance-breakdown {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .performance-item {
        grid-template-columns: 1fr;
        gap: 5px;
        text-align: left;
    }
    
    .item-profit,
    .item-margin {
        text-align: left;
    }
}

/* Repair Service Report Styles */
.service-summary {
    background: #f8f9fa;
    padding: 30px;
    border-bottom: 1px solid #dee2e6;
}

.service-summary h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.status-breakdown {
    padding: 30px;
    border-bottom: 1px solid #dee2e6;
}

.status-breakdown h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.status-card {
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid;
}

.status-card.completed {
    background: #d4edda;
    border-left-color: #28a745;
}

.status-card.in-progress {
    background: #fff3cd;
    border-left-color: #ffc107;
}

.status-card.pending {
    background: #f8d7da;
    border-left-color: #dc3545;
}

.status-card h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-card h4 i {
    color: #333;
}

.status-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.repair-types,
.completion-times,
.customer-satisfaction {
    padding: 30px;
    border-bottom: 1px solid #dee2e6;
}

.repair-types h3,
.completion-times h3,
.customer-satisfaction h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.repair-types h3 i,
.completion-times h3 i,
.customer-satisfaction h3 i {
    color: #007bff;
}

.types-breakdown,
.time-breakdown,
.satisfaction-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.types-category h4,
.time-category h4,
.satisfaction-category h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1rem;
}

.types-items,
.time-items,
.satisfaction-items {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    max-height: 300px;
    overflow-y: auto;
}

.type-item {
    display: grid;
    grid-template-columns: 1fr 60px 100px 80px;
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
    font-size: 14px;
}

.type-item:last-child {
    border-bottom: none;
}

.type-name {
    color: #333;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.type-count {
    color: #666;
    text-align: center;
    font-weight: 600;
}

.type-revenue {
    color: #28a745;
    font-weight: 600;
    text-align: right;
}

.type-percentage {
    color: #666;
    text-align: right;
    font-size: 12px;
}

.time-item,
.satisfaction-item {
    display: grid;
    grid-template-columns: 80px 1fr 80px 100px;
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
    font-size: 14px;
}

.time-item:last-child,
.satisfaction-item:last-child {
    border-bottom: none;
}

.repair-job {
    font-weight: 600;
    color: #333;
}

.repair-description {
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.repair-time {
    font-weight: 600;
    text-align: right;
}

.repair-revenue {
    color: #28a745;
    font-weight: 600;
    text-align: right;
}

.customer-name {
    font-weight: 600;
    color: #333;
}

.repair-count {
    color: #666;
    text-align: center;
}

.total-spent {
    color: #28a745;
    font-weight: 600;
    text-align: right;
}

.avg-time {
    color: #666;
    text-align: right;
    font-size: 12px;
}

.repair-value {
    font-weight: 600;
    text-align: right;
}

.repair-status {
    color: #666;
    text-align: center;
    font-size: 12px;
}

.complete-repairs {
    padding: 30px;
}

.complete-repairs h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.complete-repairs h3 i {
    color: #007bff;
}

.repairs-table {
    overflow-x: auto;
}

.repairs-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.repairs-table th {
    background: #f8f9fa;
    color: #333;
    font-weight: 600;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
}

.repairs-table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
    color: #333;
}

.repairs-table tr:hover {
    background: #f8f9fa;
}

@media (max-width: 768px) {
    .status-grid {
        grid-template-columns: 1fr;
    }
    
    .types-breakdown,
    .time-breakdown,
    .satisfaction-breakdown {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .type-item,
    .time-item,
    .satisfaction-item {
        grid-template-columns: 1fr;
        gap: 5px;
        text-align: left;
    }
    
    .type-revenue,
    .type-percentage,
    .repair-time,
    .repair-revenue,
    .total-spent,
    .avg-time,
    .repair-value {
        text-align: left;
    }
}

/* Sales Performance Dashboard Styles */
.performance-summary {
    background: #f8f9fa;
    padding: 30px;
    border-bottom: 1px solid #dee2e6;
}

.performance-summary h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.top-items {
    padding: 30px;
    border-bottom: 1px solid #dee2e6;
}

.top-items h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-items h3 i {
    color: #007bff;
}

.items-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.items-category h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1rem;
}

.items-list {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    max-height: 300px;
    overflow-y: auto;
}

.item-entry {
    display: grid;
    grid-template-columns: 80px 1fr 80px 80px 100px;
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
    font-size: 14px;
}

.item-entry:last-child {
    border-bottom: none;
}

.item-sku {
    font-weight: 600;
    color: #333;
}

.item-description {
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-category {
    color: #666;
    text-align: center;
    font-size: 12px;
}

.item-sales {
    color: #666;
    text-align: center;
    font-weight: 600;
}

.item-revenue {
    font-weight: 600;
    text-align: right;
}

.employee-performance {
    padding: 30px;
    border-bottom: 1px solid #dee2e6;
}

.employee-performance h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.employee-performance h3 i {
    color: #007bff;
}

.employee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.employee-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.employee-card h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.employee-card h4 i {
    color: #007bff;
}

.employee-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.sales-trends {
    padding: 30px;
    border-bottom: 1px solid #dee2e6;
}

.sales-trends h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sales-trends h3 i {
    color: #007bff;
}

.trends-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.trends-category h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1rem;
}

.trends-list {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    max-height: 300px;
    overflow-y: auto;
}

.trend-entry {
    display: grid;
    grid-template-columns: 100px 80px 100px 80px;
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
    font-size: 14px;
}

.trend-entry:last-child {
    border-bottom: none;
}

.trend-date {
    font-weight: 600;
    color: #333;
}

.trend-sales {
    color: #666;
    text-align: center;
    font-weight: 600;
}

.trend-revenue {
    font-weight: 600;
    text-align: right;
}

.trend-avg {
    color: #666;
    text-align: right;
    font-size: 12px;
}

.trend-growth {
    font-weight: 600;
    text-align: right;
}

.category-performance {
    padding: 30px;
    border-bottom: 1px solid #dee2e6;
}

.category-performance h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-performance h3 i {
    color: #007bff;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.category-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.category-card h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-card h4 i {
    color: #007bff;
}

.category-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.complete-sales {
    padding: 30px;
}

.complete-sales h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.complete-sales h3 i {
    color: #007bff;
}

.sales-table {
    overflow-x: auto;
}

.sales-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.sales-table th {
    background: #f8f9fa;
    color: #333;
    font-weight: 600;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
}

.sales-table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
    color: #333;
}

.sales-table tr:hover {
    background: #f8f9fa;
}

@media (max-width: 768px) {
    .items-breakdown,
    .trends-breakdown {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .employee-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .item-entry,
    .trend-entry {
        grid-template-columns: 1fr;
        gap: 5px;
        text-align: left;
    }
    
    .item-revenue,
    .trend-revenue,
    .trend-avg,
    .trend-growth {
        text-align: left;
    }
}

/* Customer Segmentation Report Styles */
.customer-types {
    padding: 30px;
    border-bottom: 1px solid #dee2e6;
}

.customer-types h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.customer-types h3 i {
    color: #007bff;
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.type-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.type-card h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.type-card h4 i {
    color: #007bff;
}

.type-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.geographic-analysis {
    padding: 30px;
    border-bottom: 1px solid #dee2e6;
}

.geographic-analysis h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.geographic-analysis h3 i {
    color: #007bff;
}

.geo-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.geo-category h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1rem;
}

.geo-list {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    max-height: 300px;
    overflow-y: auto;
}

.geo-entry {
    display: grid;
    grid-template-columns: 1fr 80px 100px 80px;
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
    font-size: 14px;
}

.geo-entry:last-child {
    border-bottom: none;
}

.geo-location {
    font-weight: 600;
    color: #333;
}

.geo-customers {
    color: #666;
    text-align: center;
    font-weight: 600;
}

.geo-revenue {
    font-weight: 600;
    text-align: right;
}

.geo-avg {
    color: #666;
    text-align: right;
    font-size: 12px;
}

.lifetime-value {
    padding: 30px;
    border-bottom: 1px solid #dee2e6;
}

.lifetime-value h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lifetime-value h3 i {
    color: #007bff;
}

.lifetime-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.lifetime-category h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1rem;
}

.lifetime-list {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    max-height: 300px;
    overflow-y: auto;
}

.lifetime-entry {
    display: grid;
    grid-template-columns: 1fr 80px 80px 100px 80px;
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
    font-size: 14px;
}

.lifetime-entry:last-child {
    border-bottom: none;
}

.customer-name {
    font-weight: 600;
    color: #333;
}

.customer-type {
    color: #666;
    text-align: center;
    font-size: 12px;
}

.customer-transactions {
    color: #666;
    text-align: center;
    font-weight: 600;
}

.customer-value {
    font-weight: 600;
    text-align: right;
}

.customer-ltv {
    color: #666;
    text-align: right;
    font-size: 12px;
}

.lifetime-stats {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
}

.repeat-customers {
    padding: 30px;
    border-bottom: 1px solid #dee2e6;
}

.repeat-customers h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.repeat-customers h3 i {
    color: #007bff;
}

.repeat-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.repeat-category h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1rem;
}

.repeat-stats {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
}

.repeat-list {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    max-height: 300px;
    overflow-y: auto;
}

.repeat-entry {
    display: grid;
    grid-template-columns: 1fr 80px 80px 100px 80px;
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
    font-size: 14px;
}

.repeat-entry:last-child {
    border-bottom: none;
}

.customer-frequency {
    color: #666;
    text-align: right;
    font-size: 12px;
}

.complete-customers {
    padding: 30px;
}

.complete-customers h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.complete-customers h3 i {
    color: #007bff;
}

.customers-table {
    overflow-x: auto;
}

.customers-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.customers-table th {
    background: #f8f9fa;
    color: #333;
    font-weight: 600;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
}

.customers-table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
    color: #333;
}

.customers-table tr:hover {
    background: #f8f9fa;
}

.more-customers {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 10px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .geo-breakdown,
    .lifetime-breakdown,
    .repeat-breakdown {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .geo-entry,
    .lifetime-entry,
    .repeat-entry {
        grid-template-columns: 1fr;
        gap: 5px;
        text-align: left;
    }
    
    .geo-revenue,
    .geo-avg,
    .customer-value,
    .customer-ltv,
    .customer-frequency {
        text-align: left;
    }
}

/* Cash Flow Report Styles */
.cash-flow-summary {
    padding: 30px;
    border-bottom: 1px solid #dee2e6;
}

.cash-flow-summary h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cash-flow-summary h3 i {
    color: #007bff;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.summary-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    text-align: center;
}

.summary-card.positive {
    border-left-color: #28a745;
}

.summary-card.negative {
    border-left-color: #dc3545;
}

.summary-card h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.summary-card h4 i {
    color: #007bff;
}

.summary-card.positive h4 i {
    color: #28a745;
}

.summary-card.negative h4 i {
    color: #dc3545;
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.summary-breakdown {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 14px;
    color: #666;
}

.cash-flow-timeline {
    padding: 30px;
    border-bottom: 1px solid #dee2e6;
}

.cash-flow-timeline h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cash-flow-timeline h3 i {
    color: #007bff;
}

.timeline-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.timeline-category h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1rem;
}

.timeline-list,
.balance-list {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    max-height: 300px;
    overflow-y: auto;
}

.timeline-entry {
    display: grid;
    grid-template-columns: 1fr 100px 100px 100px;
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
    font-size: 14px;
}

.timeline-entry:last-child {
    border-bottom: none;
}

.timeline-period {
    font-weight: 600;
    color: #333;
}

.timeline-inflow,
.timeline-outflow,
.timeline-net {
    font-weight: 600;
    text-align: right;
}

.balance-entry {
    display: grid;
    grid-template-columns: 1fr 100px;
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
    font-size: 14px;
}

.balance-entry:last-child {
    border-bottom: none;
}

.balance-period {
    font-weight: 600;
    color: #333;
}

.balance-amount {
    font-weight: 600;
    text-align: right;
}

.payment-methods {
    padding: 30px;
    border-bottom: 1px solid #dee2e6;
}

.payment-methods h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-methods h3 i {
    color: #007bff;
}

.payment-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.payment-category h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1rem;
}

.payment-list {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    max-height: 300px;
    overflow-y: auto;
}

.payment-entry {
    display: grid;
    grid-template-columns: 1fr 80px 100px 80px;
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
    font-size: 14px;
}

.payment-entry:last-child {
    border-bottom: none;
}

.payment-method {
    font-weight: 600;
    color: #333;
}

.payment-count {
    color: #666;
    text-align: center;
    font-weight: 600;
}

.payment-amount {
    font-weight: 600;
    text-align: right;
}

.payment-percentage {
    color: #666;
    text-align: right;
    font-size: 12px;
}

.payment-stats {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
}

.outstanding-payments {
    padding: 30px;
    border-bottom: 1px solid #dee2e6;
}

.outstanding-payments h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.outstanding-payments h3 i {
    color: #007bff;
}

.outstanding-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.outstanding-category h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1rem;
}

.outstanding-list {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    max-height: 300px;
    overflow-y: auto;
}

.outstanding-entry {
    display: grid;
    grid-template-columns: 1fr 80px 100px 80px;
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
    font-size: 14px;
}

.outstanding-entry:last-child {
    border-bottom: none;
}

.outstanding-customer {
    font-weight: 600;
    color: #333;
}

.outstanding-type {
    color: #666;
    text-align: center;
    font-size: 12px;
}

.outstanding-amount {
    font-weight: 600;
    text-align: right;
}

.outstanding-days {
    text-align: right;
    font-weight: 600;
    font-size: 12px;
}

.outstanding-days.warning {
    color: #ffc107;
}

.outstanding-days.critical {
    color: #dc3545;
}

.no-outstanding {
    text-align: center;
    color: #28a745;
    font-style: italic;
    padding: 20px;
}

.aging-stats {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
}

.bank-reconciliation {
    padding: 30px;
    border-bottom: 1px solid #dee2e6;
}

.bank-reconciliation h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bank-reconciliation h3 i {
    color: #007bff;
}

.reconciliation-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.reconciliation-category h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1rem;
}

.reconciliation-stats {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
}

.cash-position-list {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    max-height: 300px;
    overflow-y: auto;
}

.position-entry {
    display: grid;
    grid-template-columns: 1fr 100px 100px 100px;
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
    font-size: 14px;
}

.position-entry:last-child {
    border-bottom: none;
}

.position-date {
    font-weight: 600;
    color: #333;
}

.position-cash,
.position-bank,
.position-total {
    font-weight: 600;
    text-align: right;
}

.complete-transactions {
    padding: 30px;
}

.complete-transactions h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.complete-transactions h3 i {
    color: #007bff;
}

.transactions-table {
    overflow-x: auto;
}

.transactions-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.transactions-table th {
    background: #f8f9fa;
    color: #333;
    font-weight: 600;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
}

.transactions-table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
    color: #333;
}

.transactions-table tr:hover {
    background: #f8f9fa;
}

.status-paid {
    color: #28a745;
    font-weight: 600;
}

.status-outstanding {
    color: #dc3545;
    font-weight: 600;
}

.neutral {
    color: #666;
}

.warning {
    color: #ffc107;
}

@media (max-width: 768px) {
    .timeline-breakdown,
    .payment-breakdown,
    .outstanding-breakdown,
    .reconciliation-breakdown {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .timeline-entry,
    .balance-entry,
    .payment-entry,
    .outstanding-entry,
    .position-entry {
        grid-template-columns: 1fr;
        gap: 5px;
        text-align: left;
    }
    
    .timeline-inflow,
    .timeline-outflow,
    .timeline-net,
    .balance-amount,
    .payment-amount,
    .payment-percentage,
    .outstanding-amount,
    .outstanding-days,
    .position-cash,
    .position-bank,
    .position-total {
        text-align: left;
    }
}

/* Item Movement Report Styles */
.movement-summary {
    padding: 30px;
    border-bottom: 1px solid #dee2e6;
}

.movement-summary h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.movement-summary h3 i {
    color: #007bff;
}

.movement-timeline {
    padding: 30px;
    border-bottom: 1px solid #dee2e6;
}

.movement-timeline h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.movement-timeline h3 i {
    color: #007bff;
}

.timeline-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.timeline-category h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1rem;
}

.timeline-list {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    max-height: 300px;
    overflow-y: auto;
}

.timeline-entry {
    display: grid;
    grid-template-columns: 1fr 80px 80px 80px;
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
    font-size: 14px;
}

.timeline-entry:last-child {
    border-bottom: none;
}

.timeline-month {
    font-weight: 600;
    color: #333;
}

.timeline-bought,
.timeline-sold,
.timeline-net {
    font-weight: 600;
    text-align: right;
}

.trends-stats {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
}

.longest-stock {
    padding: 30px;
    border-bottom: 1px solid #dee2e6;
}

.longest-stock h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.longest-stock h3 i {
    color: #007bff;
}

.longest-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.longest-category h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1rem;
}

.longest-list {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    max-height: 300px;
    overflow-y: auto;
}

.longest-entry {
    display: grid;
    grid-template-columns: 1fr 80px 80px 100px 80px;
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
    font-size: 14px;
}

.longest-entry:last-child {
    border-bottom: none;
}

.item-sku {
    font-weight: 600;
    color: #333;
}

.item-category {
    color: #666;
    text-align: center;
    font-size: 12px;
}

.item-days {
    color: #666;
    text-align: center;
    font-weight: 600;
}

.item-value {
    font-weight: 600;
    text-align: right;
}

.item-status {
    text-align: right;
    font-weight: 600;
    font-size: 12px;
}

.status-fresh {
    color: #28a745;
}

.status-aging {
    color: #ffc107;
}

.status-stale {
    color: #fd7e14;
}

.status-very-old {
    color: #dc3545;
}

.aging-stats {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
}

.fastest-moving {
    padding: 30px;
    border-bottom: 1px solid #dee2e6;
}

.fastest-moving h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fastest-moving h3 i {
    color: #007bff;
}

.fastest-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.fastest-category h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1rem;
}

.fastest-list {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    max-height: 300px;
    overflow-y: auto;
}

.fastest-entry {
    display: grid;
    grid-template-columns: 1fr 80px 80px 80px 100px;
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
    font-size: 14px;
}

.fastest-entry:last-child {
    border-bottom: none;
}

.item-profit {
    color: #666;
    text-align: center;
    font-weight: 600;
}

.item-revenue {
    font-weight: 600;
    text-align: right;
}

.performance-stats {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
}

.seasonal-performance {
    padding: 30px;
    border-bottom: 1px solid #dee2e6;
}

.seasonal-performance h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.seasonal-performance h3 i {
    color: #007bff;
}

.seasonal-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.seasonal-category h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1rem;
}

.seasonal-list {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    max-height: 300px;
    overflow-y: auto;
}

.seasonal-entry {
    display: grid;
    grid-template-columns: 1fr 80px 100px 80px 80px;
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
    font-size: 14px;
}

.seasonal-entry:last-child {
    border-bottom: none;
}

.season-name {
    font-weight: 600;
    color: #333;
}

.season-sales {
    color: #666;
    text-align: center;
    font-weight: 600;
}

.season-revenue {
    font-weight: 600;
    text-align: right;
}

.season-avg {
    color: #666;
    text-align: right;
    font-size: 12px;
}

.season-performance {
    text-align: right;
    font-weight: 600;
    font-size: 12px;
}

.season-performance.excellent {
    color: #28a745;
}

.season-performance.good {
    color: #ffc107;
}

.season-performance.poor {
    color: #dc3545;
}

.seasonal-insights {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
}

.complete-items {
    padding: 30px;
}

.complete-items h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.complete-items h3 i {
    color: #007bff;
}

.items-table {
    overflow-x: auto;
}

.items-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.items-table th {
    background: #f8f9fa;
    color: #333;
    font-weight: 600;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
}

.items-table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
    color: #333;
}

.items-table tr:hover {
    background: #f8f9fa;
}

.status-sold {
    color: #28a745;
    font-weight: 600;
}

.status-stock {
    color: #007bff;
    font-weight: 600;
}

.more-items {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 10px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .timeline-breakdown,
    .longest-breakdown,
    .fastest-breakdown,
    .seasonal-breakdown {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .timeline-entry,
    .longest-entry,
    .fastest-entry,
    .seasonal-entry {
        grid-template-columns: 1fr;
        gap: 5px;
        text-align: left;
    }
    
    .timeline-bought,
    .timeline-sold,
    .timeline-net,
    .item-value,
    .item-status,
    .item-revenue,
    .season-revenue,
    .season-avg,
    .season-performance {
        text-align: left;
    }
}

/* Main Reports Page Styles */
.report-info h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.report-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.report-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 4px solid #007bff;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.report-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border-left-color: #0056b3;
}

.report-card h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 18px;
}

.report-card p {
    color: #666;
    line-height: 1.5;
}

.card-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .date-filters {
        grid-template-columns: 1fr;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .report-cards {
        grid-template-columns: 1fr;
    }
    
    .reports-container {
        padding: 10px;
    }
    
    .report-form {
        padding: 20px;
    }
}

/* Professional Navigation Styles */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: white;
    display: flex;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-content {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    margin-right: 20px;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.menu-toggle:hover {
    background-color: rgba(255,255,255,0.1);
}

.app-title {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.logout-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logout-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-1px);
}

.sidebar {
    position: fixed;
    left: 0;
    top: 64px;
    width: 280px;
    height: calc(100vh - 64px);
    background: white;
    border-right: 1px solid #e0e0e0;
    z-index: 999;
    transform: translateX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.sidebar.collapsed {
    transform: translateX(-280px);
}

.nav-menu {
    padding: 20px 0;
}

.nav-section {
    margin-bottom: 24px;
}

.nav-section-title {
    padding: 0 24px 8px 24px;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
    font-size: 14px;
}

.nav-item:hover {
    background: #f8f9fa;
    color: #1976d2;
    transform: translateX(4px);
}

.nav-item.active {
    background: #e3f2fd;
    color: #1976d2;
    border-right: 3px solid #1976d2;
}

.nav-item-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.nav-item-text {
    flex: 1;
}

.nav-group {
    margin-bottom: 8px;
}

.nav-group-header {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.nav-group-header:hover {
    background: #e9ecef;
    color: #1976d2;
}

.nav-group-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.nav-group-content {
    background: white;
}

.nav-group-item {
    display: flex;
    align-items: center;
    padding: 10px 24px 10px 56px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 13px;
    border-left: 2px solid transparent;
}

.nav-group-item:hover {
    background: #f8f9fa;
    color: #1976d2;
    border-left-color: #1976d2;
}

.nav-group-item.active {
    background: #e3f2fd;
    color: #1976d2;
    border-left-color: #1976d2;
}

.main-content {
    margin-left: 280px;
    margin-top: 64px;
    padding: 24px;
    background: #f8f9fa;
    min-height: calc(100vh - 64px);
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-x: hidden;
    width: calc(100% - 280px);
    box-sizing: border-box;
}

.main-content.expanded {
    margin-left: 0;
    width: 100%;
}

.app-container {
    overflow-x: hidden;
    width: 100%;
}

/* Medium screen responsive (laptops/notebooks like MacBooks) */
@media (max-width: 1440px) {
    .main-content {
        padding: 20px;
    }
}

@media (max-width: 1280px) {
    .main-content {
        padding: 16px;
    }
}

/* Medium screen header adjustments */
@media (max-width: 1440px) {
    .header-content {
        padding: 0 12px;
    }
    
    .app-title {
        font-size: 20px;
    }
    
    .user-info {
        gap: 12px;
    }
    
    .logout-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
}

@media (max-width: 1280px) {
    .app-title {
        font-size: 18px;
        max-width: 200px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .user-details {
        max-width: 120px;
    }
    
    .user-name,
    .user-role {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 100%;
    }
    
    .logout-btn {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .logout-btn i {
        display: none;
    }
}

/* Tablet and Mobile Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-280px);
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 16px;
        width: 100%;
    }
    
    .app-header {
        padding: 0 16px;
    }
    
    .app-title {
        font-size: 18px;
        max-width: 150px;
    }
    
    .user-details {
        display: none;
    }
    
    .logout-btn {
        padding: 8px 12px;
    }
}

/* Overlay for mobile */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* Dashboard Styles */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.dashboard-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #333;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.stat-content h3 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.stat-link {
    color: #1976d2;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
}

.stat-link:hover {
    color: #1565c0;
}

.financial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.financial-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.financial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.financial-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.financial-content h3 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.financial-amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.financial-breakdown {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: #666;
}

.bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.quick-actions-card,
.recent-activity-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.quick-actions-card h3,
.recent-activity-card h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
}

.quick-actions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quick-action-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    color: #333;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.quick-action-item:hover {
    background: #f8f9fa;
    color: #1976d2;
    transform: translateX(4px);
}

.quick-action-item i {
    margin-right: 12px;
    width: 16px;
    text-align: center;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.activity-item:hover {
    background: #f8f9fa;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.activity-sale {
    background: #2e7d32;
}

.activity-repair {
    background: #9c27b0;
}

.activity-buyin {
    background: #ff9800;
}

.activity-default {
    background: #666;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    font-size: 14px;
}

.activity-details {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
}

.activity-amount {
    font-weight: 600;
    color: #1976d2;
}

.no-activity {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-style: italic;
    padding: 20px;
    text-align: center;
    justify-content: center;
}

/* Responsive Design for Dashboard */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 10px;
    }
    
    .dashboard-title {
        font-size: 2rem;
    }
    
    .stats-grid,
    .financial-grid {
        grid-template-columns: 1fr;
    }
    
    .bottom-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-card,
    .financial-card {
        padding: 20px;
    }
    
    .stat-icon,
    .financial-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .stat-number,
    .financial-amount {
        font-size: 1.5rem;
    }
}

/* Loading and Error Indicators */
.loading-indicator,
.error-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 500;
}

.loading-indicator {
    color: #1976d2;
}

.loading-indicator i {
    font-size: 20px;
}

.error-message {
    color: #d32f2f;
}

.error-message i {
    font-size: 20px;
}

/* Sale Form Styles */
.sale-form-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.sale-form-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 30px;
}

.form-header {
    margin-bottom: 30px;
    text-align: center;
}

.form-header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-subtitle {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.sale-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    color: #333;
    margin: 0 0 20px 0;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.section-title i {
    color: #1976d2;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-control {
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.form-control.textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Searchable Dropdown Styles */
.searchable-dropdown {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: #f8f9fa;
}

.customer-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.customer-company {
    color: #666;
    font-size: 12px;
    margin-top: 2px;
}

.sku-code {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.sku-description {
    color: #666;
    font-size: 12px;
    margin-top: 2px;
}

.selected-customer,
.selected-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #e3f2fd;
    border: 1px solid #1976d2;
    border-radius: 8px;
    margin-top: 8px;
}

.selected-customer i,
.selected-item i {
    color: #1976d2;
}

.clear-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    margin-left: auto;
    transition: color 0.2s ease;
}

.clear-btn:hover {
    color: #d32f2f;
}

/* Item Information Section */
.item-info-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e0e0e0;
}

.item-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.item-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.item-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.item-detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.detail-value {
    color: #666;
    font-size: 14px;
    text-align: right;
}

.item-photos {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.photo-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.item-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-photos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #666;
    font-style: italic;
    padding: 40px 20px;
    text-align: center;
}

.no-photos i {
    font-size: 24px;
    opacity: 0.5;
}

/* Description Section */
.description-section {
    margin-top: 20px;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: #1976d2;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #1565c0;
    transform: translateY(-1px);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
    transform: translateY(-1px);
}

/* Responsive Design for Sale Form */
@media (max-width: 768px) {
    .sale-form-container {
        padding: 10px;
    }
    
    .sale-form-card {
        padding: 20px;
    }
    
    .form-header h1 {
        font-size: 2rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .item-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* File Upload Styles */
.uploaded-files {
    margin-top: 20px;
}

.section-subtitle {
    font-size: 1rem;
    color: #333;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    font-size: 14px;
}

.file-item i {
    color: #666;
}

.existing-photos {
    margin-top: 20px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
}

.photo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.existing-photo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.photo-actions {
    display: flex;
    justify-content: center;
}

.photo-link {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #1976d2;
    text-decoration: none;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.photo-link:hover {
    background: #e3f2fd;
    text-decoration: none;
}

.photo-link i {
    font-size: 10px;
}

/* Document Preview Styles */
.document-preview {
    margin-top: 16px;
}

.document-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.document-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.document-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 120px;
    height: 120px;
    background: white;
    border: 2px dashed #ccc;
    border-radius: 8px;
    justify-content: center;
    color: #666;
}

.document-placeholder i {
    font-size: 32px;
    color: #999;
}

.document-placeholder span {
    font-size: 12px;
    text-align: center;
    font-weight: 500;
}

.document-actions {
    display: flex;
    justify-content: center;
}

.document-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #1976d2;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.document-link:hover {
    background: #e3f2fd;
    text-decoration: none;
    transform: translateY(-1px);
}

.document-link i {
    font-size: 12px;
}

/* Readonly input styling */
.form-control.readonly {
    background-color: #f8f9fa;
    color: #666;
    cursor: not-allowed;
}

/* Checkbox Grid Styles */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.checkbox-item:hover {
    background: #e3f2fd;
    border-color: #1976d2;
}

.checkbox-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 20px;
    width: 20px;
    background-color: white;
    border: 2px solid #ddd;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-item:hover .checkmark {
    border-color: #1976d2;
}

.checkbox-item input:checked ~ .checkmark {
    background-color: #1976d2;
    border-color: #1976d2;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-item input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-label {
    font-weight: 500;
    color: #333;
    user-select: none;
}

/* Photo Error Display */
.photo-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 150px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #666;
    gap: 8px;
}

.photo-error i {
    font-size: 24px;
    color: #999;
}

.photo-error span {
    font-size: 14px;
    text-align: center;
}

/* User Information Styles */
.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.user-name {
    font-weight: 600;
    color: white;
    font-size: 14px;
}

.user-role {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    text-transform: capitalize;
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    text-decoration: none;
    color: white;
}

.auth-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.refresh-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
}

.refresh-auth-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.debug-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
}

.debug-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.test-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
}

.test-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.force-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
}

.force-auth-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.check-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
}

.check-auth-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.debug-message {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    margin-right: 8px;
    animation: fadeInOut 3s ease-in-out;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive adjustments for user info */
@media (max-width: 768px) {
    .user-info {
        gap: 12px;
    }
    
    .user-details {
        align-items: flex-start;
    }
    
    .user-name {
        font-size: 13px;
    }
    
    .user-role {
        font-size: 11px;
    }
    
    .login-btn,
    .logout-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* Session warning styles */
#session-warning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#session-warning .warning-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

#session-warning .warning-title {
    color: #d32f2f;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: bold;
}

#session-warning .warning-message {
    margin-bottom: 20px;
    font-size: 16px;
}

#session-warning .warning-subtitle {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

#session-warning .continue-btn {
    background: #1976d2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

#session-warning .continue-btn:hover {
    background: #1565c0;
}

/* Customer Profile Styles */
.customer-profile-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
}

.profile-header {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.customer-info {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.customer-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.customer-details h1 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 2rem;
}

.customer-company {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.customer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: #555;
}

.customer-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    background: white;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 0;
}

.tab-button {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    background: #f8f9fa;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
}

.tab-button:hover {
    background: #e9ecef;
    color: #495057;
}

.tab-button.active {
    background: #007bff;
    color: white;
}

.tab-button i {
    font-size: 1.1rem;
}

/* Tab Content */
.tab-content {
    background: white;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    min-height: 400px;
}

.tab-panel {
    padding: 2rem;
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa;
}

.tab-header h3 {
    margin: 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-actions {
    display: flex;
    gap: 0.5rem;
}

/* Filter Panel */
.filter-panel {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.table {
    width: 100%;
    margin-bottom: 0;
}

.table th {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    padding: 1rem;
    font-weight: 600;
    color: #495057;
    text-align: left;
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.clickable-row {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.clickable-row:hover {
    background-color: #f8f9fa;
}

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.completed {
    background: #d4edda;
    color: #155724;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.in-progress {
    background: #cce5ff;
    color: #004085;
}

.status-badge.scheduled {
    background: #e2e3e5;
    color: #383d41;
}

.status-badge.cancelled {
    background: #f8d7da;
    color: #721c24;
}

.status-badge.default {
    background: #f8f9fa;
    color: #6c757d;
}

/* Summary Stats */
.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stat-label {
    color: #666;
    font-weight: 500;
}

.stat-value {
    font-weight: 700;
    color: #333;
    font-size: 1.1rem;
}

/* No Data State */
.no-data {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.no-data i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ccc;
}

.no-data span {
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .customer-profile-container {
        padding: 0.5rem;
    }
    
    .profile-header {
        padding: 1rem;
    }
    
    .customer-info {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .customer-meta {
        justify-content: center;
    }
    
    .tab-navigation {
        flex-direction: column;
    }
    
    .tab-button {
        border-radius: 0;
    }
    
    .filter-row {
        grid-template-columns: 1fr;
    }
    
    .summary-stats {
        grid-template-columns: 1fr;
    }
    
    .table-container {
        font-size: 0.9rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem;
    }
}

/* Loading and Error States */
.loading-indicator,
.error-message {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.loading-indicator i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #007bff;
}

.error-message i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #dc3545;
}

/* Button Styles */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.2rem;
}

.btn-outline-primary {
    color: #007bff;
    border-color: #007bff;
}

.btn-outline-primary:hover {
    color: white;
    background-color: #007bff;
    border-color: #007bff;
}

.btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
}

.btn-outline-secondary:hover {
    color: white;
    background-color: #6c757d;
    border-color: #6c757d;
}

/* Modal Styles */
.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;
    padding: 1rem;
}

.modal-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #dee2e6;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.modal-close:hover {
    background: #e9ecef;
}

.modal-body {
    padding: 1.5rem;
    flex: 1;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid #dee2e6;
    background: #f8f9fa;
    border-radius: 0 0 8px 8px;
}

.detail-section {
    margin-bottom: 2rem;
}

.detail-section h4 {
    color: #333;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #1976d2;
    font-size: 1.1rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-item label {
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-item span {
    color: #333;
    font-size: 1rem;
}

.detail-item .amount {
    font-weight: 600;
    color: #1976d2;
    font-size: 1.1rem;
}

.description-content,
.notes-content,
.recommendations-content,
.parts-content {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid #1976d2;
    line-height: 1.6;
    color: #333;
}

/* Part Payment Styles */
.part-payment-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.payment-type-selection {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.payment-type-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.payment-type-option:hover {
    background-color: #e9ecef;
}

.payment-type-option input[type="radio"] {
    margin: 0;
}

.part-payment-details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.credit-section {
    background: #e3f2fd;
    border-radius: 4px;
    border-left: 4px solid #2196f3;
    padding: 1rem;
    margin-top: 1rem;
}

.credit-amount-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2196f3;
}

.payment-summary {
    background: #f5f5f5;
    border-radius: 4px;
    padding: 1rem;
    margin-top: 1.5rem;
}

.payment-summary-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.payment-summary-row.total {
    border-top: 1px solid #ddd;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
    font-weight: 600;
}

.payment-summary-row.total .remaining-balance {
    color: #d32f2f;
}

.pay-in-full-indicator {
    background: #e8f5e8;
    padding: 1rem;
    border-radius: 4px;
    border-left: 4px solid #4caf50;
}

.pay-in-full-indicator .check-icon {
    color: #4caf50;
}

/* Portfolio Tab Styles */
.portfolio-tab {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.portfolio-empty {
    text-align: center;
    padding: 60px 20px;
}

.empty-state {
    max-width: 400px;
    margin: 0 auto;
}

.empty-state i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #6c757d;
    margin-bottom: 15px;
}

.empty-state p {
    color: #868e96;
    margin-bottom: 25px;
    line-height: 1.6;
}

.portfolio-overview {
    display: flex;
    gap: 20px;
}

.overview-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    flex: 1;
    border-left: 4px solid #007bff;
}

.overview-header h3 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 1.1rem;
}

.overview-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.overview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.overview-item .label {
    font-weight: 500;
    color: #6c757d;
}

.overview-item .value {
    color: #495057;
}

.portfolio-section {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 25px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h3 {
    margin: 0;
    color: #495057;
    font-size: 1.2rem;
}

.section-header i {
    margin-right: 10px;
    color: #007bff;
}

.credits-summary {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.credit-card {
    flex: 1;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: white;
}

.credit-card.available {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.credit-card.expired {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
}

.credit-amount {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.credit-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.list-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 120px;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 15px;
}

.credit-item, .hold-item, .appointment-item {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 120px;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    align-items: center;
}

.credit-item:last-child, .hold-item:last-child, .appointment-item:last-child {
    border-bottom: none;
}

.credit-item.expired, .hold-item.expired {
    background: #fff5f5;
    opacity: 0.7;
}

.badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-active {
    background: #d4edda;
    color: #155724;
}

.badge-expired {
    background: #f8d7da;
    color: #721c24;
}

.badge-inactive {
    background: #e2e3e5;
    color: #383d41;
}

.badge-pending {
    background: #fff3cd;
    color: #856404;
}

.badge-confirmed {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-completed {
    background: #d4edda;
    color: #155724;
}

.badge-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.badge-noshow {
    background: #e2e3e5;
    color: #383d41;
}

/* Action Buttons */
.credit-actions, .hold-actions, .appointment-actions {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.credit-actions .btn, .hold-actions .btn, .appointment-actions .btn {
    padding: 4px 8px;
    font-size: 0.8rem;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.credit-actions .btn-outline-danger, .hold-actions .btn-outline-danger, .appointment-actions .btn-outline-danger {
    border-color: #dc3545;
    color: #dc3545;
}

.credit-actions .btn-outline-danger:hover, .hold-actions .btn-outline-danger:hover, .appointment-actions .btn-outline-danger:hover {
    background-color: #dc3545;
    color: white;
}

.empty-list {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.empty-list p {
    margin: 0;
    font-size: 1.1rem;
}

/* KYC Notes Styles */
.kyc-notes-content {
    padding: 20px 0;
}

.kyc-notes-content .form-group {
    margin-bottom: 15px;
}

.kyc-notes-content .form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
    font-size: 1rem;
}

.kyc-notes-content .form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
}

.kyc-notes-content .form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.notes-info {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #17a2b8;
}

.notes-info small {
    color: #6c757d;
    line-height: 1.4;
}

.notes-info i {
    color: #17a2b8;
    margin-right: 5px;
}

/* Responsive Design for Portfolio */
@media (max-width: 768px) {
    .portfolio-overview {
        flex-direction: column;
    }
    
    .credits-summary {
        flex-direction: column;
    }
    
    .list-header, .credit-item, .hold-item, .appointment-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .list-header {
        display: none;
    }
    
    .credit-item, .hold-item, .appointment-item {
        padding: 15px;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        margin-bottom: 10px;
    }
    
    .credit-item::before, .hold-item::before, .appointment-item::before {
        content: attr(data-label);
        font-weight: 600;
        color: #495057;
        margin-bottom: 5px;
        display: block;
    }
}

/* Hold Request Actions */
.hold-actions {
    display: flex;
    gap: 5px;
    align-items: center;
}

.hold-actions .btn {
    padding: 4px 8px;
    font-size: 12px;
    min-width: 32px;
}

.hold-actions .btn-outline-warning {
    color: #856404;
    border-color: #ffc107;
}

.hold-actions .btn-outline-warning:hover {
    background-color: #ffc107;
    color: #212529;
}

.hold-actions .btn-outline-success {
    color: #155724;
    border-color: #28a745;
}

.hold-actions .btn-outline-success:hover {
    background-color: #28a745;
    color: #fff;
}

.hold-actions .btn-outline-info {
    color: #0c5460;
    border-color: #17a2b8;
}

.hold-actions .btn-outline-info:hover {
    background-color: #17a2b8;
    color: #fff;
}

/* Order Status & Payment Styles */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.status-badge.pending {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-badge.balance-due {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-badge.paid-in-full {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.cancelled {
    background-color: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}

.status-badge.refunded {
    background-color: #cce5ff;
    color: #004085;
    border: 1px solid #b3d7ff;
}

.status-badge.completed {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.status-badge.in-progress {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.balance-due {
    font-weight: 600;
}

.balance-due .amount.balance-due {
    color: #dc3545;
    font-weight: 700;
}

.balance-due .amount.paid-in-full {
    color: #28a745;
    font-weight: 700;
}

.detail-item.balance-due {
    background-color: #f8f9fa;
    padding: 0.75rem;
    border-radius: 0.375rem;
    border-left: 4px solid #dc3545;
    margin: 0.5rem 0;
}

.detail-item.balance-due .amount.paid-in-full {
    border-left-color: #28a745;
}

/* Orders Section Styles */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 1rem;
    transition: all 0.2s ease;
}

.order-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

.order-item.balance-due {
    border-left: 4px solid #dc3545;
    background-color: #fff5f5;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.order-id {
    font-weight: 600;
    color: #495057;
    font-size: 1rem;
}

.order-date {
    color: #6c757d;
    font-size: 0.875rem;
}

.order-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.order-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 200px;
}

.order-description {
    font-weight: 500;
    color: #212529;
}

.order-sku {
    font-size: 0.875rem;
    color: #6c757d;
}

.order-amounts {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-end;
    text-align: right;
}

.total-amount {
    font-weight: 600;
    color: #212529;
    font-size: 1rem;
}

.deposit-amount,
.credit-applied {
    font-size: 0.875rem;
    color: #6c757d;
}

.remaining-balance {
    font-weight: 600;
    font-size: 0.875rem;
}

.remaining-balance.balance-due {
    color: #dc3545;
}

.remaining-balance.paid-in-full {
    color: #28a745;
}

.order-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e9ecef;
}

.due-date {
    font-size: 0.875rem;
    color: #dc3545;
    font-weight: 500;
}

@media (max-width: 768px) {
    .order-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .order-details {
        flex-direction: column;
        align-items: stretch;
    }
    
    .order-amounts {
        align-items: flex-start;
        text-align: left;
    }
    
    .order-actions {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
}

/* Order Table Balance Styles */
.balance-due-row {
    background-color: #fff5f5 !important;
    border-left: 4px solid #dc3545;
}

.balance-amount {
    font-weight: 600;
    font-size: 0.875rem;
}

.balance-amount.balance-due {
    color: #dc3545;
}

.balance-amount.paid-in-full {
    color: #28a745;
}

.action-buttons {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.action-buttons .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* Payment Modal Styles */
.payment-summary {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.payment-summary h6 {
    color: #495057;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.payment-summary p {
    margin-bottom: 0.5rem;
    color: #6c757d;
}

.credit-amount {
    color: #28a745;
    font-weight: 600;
    font-size: 1.1rem;
}

.payment-breakdown {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
}

.payment-breakdown h6 {
    color: #495057;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f3f4;
}

.breakdown-item:last-child {
    border-bottom: none;
}

.breakdown-item.total {
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    border-top: 2px solid #dee2e6;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #495057;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    opacity: 0.5;
}

/* Ensure modal displays as overlay */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
}

.modal.show {
    display: block !important;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 0.5rem;
    pointer-events: none;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.2);
    border-radius: 0.3rem;
    outline: 0;
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: calc(0.3rem - 1px);
    border-top-right-radius: calc(0.3rem - 1px);
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1rem;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem;
    border-top: 1px solid #dee2e6;
    border-bottom-right-radius: calc(0.3rem - 1px);
    border-bottom-left-radius: calc(0.3rem - 1px);
}

.btn-close {
    padding: 0.25rem 0.25rem;
    margin: -0.25rem -0.25rem -0.25rem auto;
    background: transparent;
    border: 0;
    border-radius: 0.25rem;
    opacity: 0.5;
}

.btn-close:hover {
    opacity: 0.75;
}

.btn-close::before {
    content: "×";
    font-size: 1.5rem;
    line-height: 1;
}

@media (min-width: 576px) {
    .modal-dialog {
        max-width: 500px;
        margin: 1.75rem auto;
    }
}

@media (min-width: 992px) {
    .modal-lg {
        max-width: 800px;
    }
}