/* Dining Hall Billing System - Main Styles */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --light-bg: #ecf0f1;
    --border-color: #bdc3c7;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* System Status Bar */
.system-status-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white;
    padding: 0.75rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 99;
}

.system-status-bar .status-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 3rem;
    align-items: center;
    flex-wrap: wrap;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.system-status-bar .status-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: help;
    transition: opacity 0.2s ease;
}

.system-status-bar .status-item:hover {
    opacity: 0.95;
}

.system-status-bar .status-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.system-status-bar .status-label {
    font-size: 1rem;
    font-weight: 700;
    opacity: 1;
    white-space: nowrap;
    color: white;
}

.system-status-bar .status-value {
    font-size: 1rem;
    font-weight: 600;
    padding: 0.35rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.25);
    white-space: nowrap;
}

.system-status-bar .status-value.status-success {
    background: rgba(46, 204, 113, 0.4);
    border: 1px solid rgba(46, 204, 113, 0.6);
    color: #1a5c3a;
}

.system-status-bar .status-value.status-error {
    background: rgba(231, 76, 60, 0.4);
    border: 1px solid rgba(231, 76, 60, 0.6);
}

.system-status-bar .status-value.status-warning {
    background: rgba(241, 196, 15, 0.4);
    border: 1px solid rgba(241, 196, 15, 0.6);
    color: #2c3e50;
}

.system-status-bar .status-value.status-neutral {
    background: rgba(189, 195, 199, 0.4);
    border: 1px solid rgba(189, 195, 199, 0.6);
}

@media (max-width: 768px) {
    .system-status-bar {
        padding: 0.5rem 1rem;
    }
    
    .system-status-bar .status-container {
        gap: 1.5rem;
    }
    
    .system-status-bar .status-icon {
        font-size: 1.25rem;
    }
    
    .system-status-bar .status-label {
        font-size: 0.85rem;
    }
    
    .system-status-bar .status-value {
        font-size: 0.9rem;
        padding: 0.25rem 0.75rem;
    }
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
}

header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Environment Badge */
.env-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.env-dev {
    background-color: #f39c12;
    color: white;
    border: 2px solid #e67e22;
    animation: pulse-dev 2s ease-in-out infinite;
}

.env-prod {
    background-color: #27ae60;
    color: white;
    border: 2px solid #229954;
}

@keyframes pulse-dev {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: 500;
}

nav a:hover {
    background-color: rgba(52, 152, 219, 0.3);
    transform: translateY(-1px);
}

nav a.active {
    background-color: var(--secondary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

#logoutBtn {
    margin-left: auto;
    background-color: rgba(231, 76, 60, 0.2);
    border: 1px solid rgba(231, 76, 60, 0.4);
}

#logoutBtn:hover {
    background-color: rgba(231, 76, 60, 0.4);
    border-color: rgba(231, 76, 60, 0.6);
}

main {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--secondary-color);
}

.page-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.page-header p {
    color: var(--text-light);
    font-size: 1.05rem;
}

.season-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.season-info-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.season-info-content p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.95;
}

.season-info .warning {
    margin: 0;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    border-left: 4px solid var(--warning-color);
}

button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

button.primary {
    background-color: var(--secondary-color);
    color: white;
}

button.primary:hover:not(:disabled) {
    background-color: #2980b9;
}

button.success {
    background-color: var(--success-color);
    color: white;
}

button.success:hover:not(:disabled) {
    background-color: #229954;
}

button.danger {
    background-color: var(--danger-color);
    color: white;
}

button.danger:hover:not(:disabled) {
    background-color: #c0392b;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="file"],
select,
textarea {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

input[type="text"]:hover:not(:disabled),
input[type="email"]:hover:not(:disabled),
input[type="number"]:hover:not(:disabled),
input[type="date"]:hover:not(:disabled),
select:hover:not(:disabled),
textarea:hover:not(:disabled) {
    border-color: #95a5a6;
}

footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    margin-top: 4rem;
}

/* Tooltip Styles */
.tooltip-container {
    position: relative;
    display: inline-block;
}

.help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: white;
    font-size: 12px;
    font-weight: bold;
    cursor: help;
    margin-left: 0.25rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.help-icon:hover {
    background-color: #2980b9;
    transform: scale(1.1);
}

.tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    line-height: 1.4;
    white-space: normal;
    width: 250px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--primary-color);
}

.tooltip-container:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

/* Help Section Styles */
.help-section {
    background: #e8f4f8;
    border-left: 4px solid var(--secondary-color);
    padding: 1rem 1.5rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.help-section h4 {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.help-section h4::before {
    content: 'ℹ️';
    font-size: 1.2rem;
}

.help-section p {
    color: var(--text-color);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.help-section ul {
    margin: 0.5rem 0 0 1.5rem;
    color: var(--text-color);
    font-size: 0.9rem;
}

.help-section li {
    margin-bottom: 0.25rem;
}

/* FAQ Section */
.faq-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.faq-section h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-question {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.faq-question::before {
    content: 'Q:';
    color: var(--secondary-color);
    font-weight: bold;
    flex-shrink: 0;
}

.faq-answer {
    color: var(--text-color);
    line-height: 1.6;
    margin-left: 1.75rem;
}

.faq-answer::before {
    content: 'A:';
    color: var(--success-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Placeholder for future styles */
.cottage-grid,
.queue-list,
.reports-container,
.settings-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Home Page - Cottage Assignments */
.billing-period {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.billing-period label {
    font-weight: 600;
}

.billing-period input[type="date"] {
    flex: 0 0 200px;
}

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

.cottage-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cottage-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

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

.cottage-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-color);
    color: var(--primary-color);
}

.cottage-assignments {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.assignment-column {
    display: flex;
    flex-direction: column;
}

.assignment-column label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.assignment-column select {
    width: 100%;
}

.actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.actions button {
    min-width: 200px;
}

/* Loading and feedback messages */
.loading-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;
}

.loading-spinner {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.loading-spinner::after {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    margin: 1rem auto 0;
    border: 4px solid var(--light-bg);
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.message {
    padding: 1rem 1.5rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.message-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
}

/* Responsive design */
@media (max-width: 1024px) {
    .cottage-grid {
        grid-template-columns: 1fr;
    }
    
    main {
        max-width: 100%;
        padding: 0 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .season-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .season-action-card.full-width {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    main {
        padding: 0 1rem;
    }
    
    header {
        padding: 1rem;
    }
    
    header h1 {
        font-size: 1.25rem;
    }
    
    nav {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    nav a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .page-header h2 {
        font-size: 1.5rem;
    }
    
    .billing-period {
        flex-direction: column;
        align-items: stretch;
    }
    
    .billing-period input[type="date"] {
        flex: 1;
    }
    
    .cottage-assignments {
        grid-template-columns: 1fr;
    }
    
    .actions button {
        min-width: auto;
        width: 100%;
    }
}

/* Queue Management Page */
.queue-controls {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.queue-info {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

.queue-actions {
    display: flex;
    gap: 1rem;
}

.queue-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.queue-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

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

.queue-item-header {
    padding: 1rem 1.5rem;
    background: var(--light-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.queue-item-header:hover {
    background: #dfe6e9;
}

.queue-item-info {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.queue-item-info h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 0;
}

.queue-item-info .cottage {
    color: var(--text-light);
    font-size: 0.9rem;
}

.queue-item-info .diner-count {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.queue-item-toggle {
    font-size: 1.5rem;
    color: var(--text-light);
    transition: transform 0.3s;
}

.queue-item.expanded .queue-item-toggle {
    transform: rotate(180deg);
}

.queue-item-body {
    display: none;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.queue-item.expanded .queue-item-body {
    display: block;
}

.diners-section {
    margin-bottom: 2rem;
}

.diners-section h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.diner-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.diner-item {
    background: var(--light-bg);
    padding: 1rem;
    border-radius: 4px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto;
    gap: 1rem;
    align-items: center;
}

.diner-item .form-group {
    margin: 0;
}

.diner-item label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.diner-item input,
.diner-item select {
    width: 100%;
}

.diner-item input:focus,
.diner-item select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.diner-item .remove-diner {
    background: var(--danger-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.diner-item .remove-diner:hover {
    background: #c0392b;
}

.add-diner-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.add-diner-btn:hover {
    background: #2980b9;
}

.extras-section {
    margin-bottom: 2rem;
}

.extras-section h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.extras-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.form-group input,
.form-group select {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.invoice-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.invoice-actions button {
    padding: 0.75rem 1.5rem;
}

button.secondary {
    background-color: var(--border-color);
    color: var(--text-color);
}

button.secondary:hover {
    background-color: #95a5a6;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.modal-content p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.modal-content .warning-text {
    color: var(--warning-color);
    font-weight: 600;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

.empty-queue {
    background: white;
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
    color: var(--text-light);
}

.empty-queue h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.empty-queue p {
    margin-bottom: 1.5rem;
}

.empty-queue a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.empty-queue a:hover {
    text-decoration: underline;
}

.empty-queue .document-link {
    display: inline-block;
    background: var(--success-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    margin: 1rem 0;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.empty-queue .document-link:hover {
    background: #229954;
    text-decoration: none;
}

.empty-queue-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.empty-queue-actions .button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

/* Finalize Success Modal */
.finalize-success-modal {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    max-width: 600px;
    margin: 2rem auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.finalize-success-modal .success-icon {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 1rem;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.finalize-success-modal h2 {
    color: var(--success-color);
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.finalize-success-modal .success-message {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.finalize-success-modal .success-text {
    color: var(--success-color);
    font-weight: 600;
    margin: 1rem 0;
}

.finalize-success-modal .warning-text {
    color: var(--warning-color);
    font-weight: 600;
    margin: 1rem 0;
}

.finalize-success-modal .info-text {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.finalize-success-modal .document-links {
    margin: 2rem 0;
}

.finalize-success-modal .modal-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.finalize-success-modal .button {
    padding: 0.875rem 2rem;
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .queue-controls {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .queue-actions {
        flex-direction: column;
    }
    
    .queue-actions button {
        width: 100%;
    }
    
    .diner-item {
        grid-template-columns: 1fr;
    }
    
    .extras-grid {
        grid-template-columns: 1fr;
    }
}

/* Reports Page */
.report-controls {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.report-type-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.report-type-selector label {
    font-weight: 600;
    color: var(--text-color);
}

.report-type-selector select {
    flex: 0 0 250px;
}

.report-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.report-section.hidden {
    display: none;
}

.date-range-picker {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.date-range-picker .form-group {
    flex: 0 0 200px;
}

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

.search-filters button {
    grid-column: span 2;
    justify-self: start;
}

.results-display {
    margin-top: 2rem;
}

.results-display.empty {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.results-display h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

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

.stat-card {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.stat-card h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.stat-table {
    width: 100%;
    border-collapse: collapse;
}

.stat-table th,
.stat-table td {
    padding: 0.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.stat-table th {
    font-weight: 600;
    color: var(--primary-color);
    background: var(--light-bg);
}

.stat-table tr:last-child td {
    border-bottom: none;
}

.stat-table td:last-child,
.stat-table th:last-child {
    text-align: right;
}

.invoice-results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.invoice-results-table th,
.invoice-results-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.invoice-results-table th {
    font-weight: 600;
    color: var(--primary-color);
    background: var(--light-bg);
    position: sticky;
    top: 0;
}

.invoice-results-table tbody tr:hover {
    background: var(--light-bg);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.invoice-results-table td:last-child {
    text-align: right;
}

.invoice-detail-modal .modal-content {
    max-width: 800px;
}

.invoice-detail-content {
    max-height: 60vh;
    overflow-y: auto;
}

.invoice-detail-header {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.invoice-detail-field {
    margin-bottom: 0.5rem;
}

.invoice-detail-field label {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.25rem;
}

.invoice-detail-field .value {
    color: var(--text-color);
    font-size: 1rem;
}

.invoice-diners {
    margin-bottom: 1.5rem;
}

.invoice-diners h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.invoice-totals {
    background: var(--light-bg);
    padding: 1rem;
    border-radius: 4px;
}

.invoice-totals .total-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.invoice-totals .total-row:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.export-section {
    text-align: center;
    padding: 1rem;
}

.export-section.hidden {
    display: none;
}

@media (max-width: 768px) {
    .date-range-picker {
        flex-direction: column;
        align-items: stretch;
    }
    
    .date-range-picker .form-group {
        flex: 1;
    }
    
    .search-filters {
        grid-template-columns: 1fr;
    }
    
    .search-filters button {
        grid-column: span 1;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .invoice-results-table {
        font-size: 0.9rem;
    }
    
    .invoice-results-table th,
    .invoice-results-table td {
        padding: 0.5rem;
    }
    
    .invoice-detail-header {
        grid-template-columns: 1fr;
    }
}

/* Settings Page */
.settings-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.settings-section h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.settings-section .section-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Member Import Section */
.import-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.file-upload-area {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.file-name {
    color: var(--text-light);
    font-style: italic;
}

.import-divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.import-divider::before,
.import-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: var(--border-color);
}

.import-divider::before {
    left: 0;
}

.import-divider::after {
    right: 0;
}

.import-divider span {
    background: white;
    padding: 0 1rem;
    color: var(--text-light);
    font-weight: 500;
}

.google-sheets-sync {
    text-align: center;
    margin-bottom: 1.5rem;
}

.sync-status-info {
    margin-bottom: 1.5rem;
}

.sync-status-info .info-banner {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-radius: 4px;
}

.sync-timestamp {
    padding: 0.75rem;
    background: var(--light-bg);
    border-radius: 4px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sync-timestamp strong {
    color: var(--text-color);
    margin-right: 0.5rem;
}

.sync-timestamp #lastSyncTime {
    color: var(--text-light);
    font-style: italic;
}

.sync-status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.sync-status-indicator.status-green {
    background-color: #4caf50;
    box-shadow: 0 0 4px rgba(76, 175, 80, 0.5);
}

.sync-status-indicator.status-yellow {
    background-color: #ff9800;
    box-shadow: 0 0 4px rgba(255, 152, 0, 0.5);
}

.sync-status-indicator.status-red {
    background-color: #f44336;
    box-shadow: 0 0 4px rgba(244, 67, 54, 0.5);
}

.sync-status-indicator.status-gray {
    background-color: #9e9e9e;
}

.google-sheets-sync button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.google-sheets-sync .help-text {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.field-help {
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
}

.import-results {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 4px;
    margin-top: 1.5rem;
}

.import-results.hidden {
    display: none;
}

.import-results h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.import-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.import-stat {
    background: white;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
}

.import-stat .label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.import-stat .value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.import-stat.success .value {
    color: var(--success-color);
}

.import-stat.warning .value {
    color: var(--warning-color);
}

.import-stat.error .value {
    color: var(--danger-color);
}

.import-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 1rem;
    margin-top: 1rem;
    color: #856404;
}

/* Board Rates Section */
.board-rates-container {
    max-width: 800px;
}

.board-rates-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.board-rates-table th,
.board-rates-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.board-rates-table th {
    font-weight: 600;
    color: var(--primary-color);
    background: var(--light-bg);
}

.board-rates-table td:first-child {
    font-weight: 600;
    color: var(--text-color);
}

.board-rates-table input[type="number"] {
    width: 100px;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.board-rates-table input[type="number"]:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.board-rates-actions {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
}

.board-rates-actions .form-group {
    flex: 0 0 200px;
}

/* Season Management Section */
.season-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Current Season Display */
.current-season-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.current-season-display h4 {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    color: white;
}

.season-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.season-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.season-info-item .info-label {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
}

.season-info-item .info-value {
    font-size: 1.1rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .season-info-grid {
        grid-template-columns: 1fr;
    }
}

.season-action-card {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.season-action-card.full-width {
    grid-column: span 2;
}

.season-action-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.season-action-card p {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.season-action-card .warning-text {
    color: var(--danger-color);
    font-weight: 600;
}

.season-action-card button {
    width: 100%;
}

.season-init-form {
    margin-top: 1rem;
}

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

.form-row .form-group {
    margin: 0;
}

.season-init-form button {
    width: auto;
    min-width: 200px;
}

@media (max-width: 768px) {
    .import-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .file-upload-area {
        flex-direction: column;
        align-items: stretch;
    }
    
    .import-stats {
        grid-template-columns: 1fr;
    }
    
    .board-rates-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .board-rates-actions .form-group {
        flex: 1;
    }
    
    .season-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .season-action-card.full-width {
        grid-column: span 1;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .season-init-form button {
        width: 100%;
    }
}

/* Status Page */
.status-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#weekStatusList {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.week-status-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.week-status-card.status-not_started {
    border-left: 4px solid #95a5a6;
}

.week-status-card.status-in_queue {
    border-left: 4px solid #f39c12;
}

.week-status-card.status-finalized {
    border-left: 4px solid #27ae60;
}

.week-status-card.status-empty {
    border-left: 4px solid #e74c3c;
}

.week-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.week-title h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin: 0 0 0.25rem 0;
}

.week-dates {
    font-size: 0.9rem;
    color: var(--text-light);
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge.not_started {
    background: #ecf0f1;
    color: #7f8c8d;
}

.status-badge.in_queue {
    background: #fef5e7;
    color: #d68910;
}

.status-badge.finalized {
    background: #d5f4e6;
    color: #1e8449;
}

.status-badge.empty {
    background: #fadbd8;
    color: #c0392b;
}

.week-details {
    margin-bottom: 1rem;
}

.detail-text {
    color: var(--text-color);
    font-size: 0.95rem;
    margin: 0;
}

.detail-text.warning {
    color: var(--danger-color);
    font-weight: 600;
}

.week-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.week-actions button {
    flex: 1;
    min-width: 120px;
}

.empty-status {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.empty-status h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.empty-status p {
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    #weekStatusList {
        grid-template-columns: 1fr;
    }
    
    .week-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .status-badge {
        align-self: flex-start;
    }
    
    .week-actions {
        flex-direction: column;
    }
    
    .week-actions button {
        width: 100%;
    }
}

/* Week selector styling */
select option.week-finalized {
    background-color: #d4edda;
    color: #155724;
    font-weight: 500;
}

/* For browsers that support it, add a visual indicator */
select option.week-finalized::before {
    content: "✓ ";
}

/* Statistics Header */
.stats-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.stats-header h3 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
}

.stats-header .date-range {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Statistics Tabs */
.stats-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    flex-wrap: wrap;
}

.stats-tab {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    transition: all 0.3s ease;
    margin-bottom: -2px;
}

.stats-tab:hover {
    color: var(--secondary-color);
    background-color: rgba(52, 152, 219, 0.05);
}

.stats-tab.active {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
    font-weight: 600;
}

.stats-tab-contents {
    position: relative;
}

.stats-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.stats-tab-content.active {
    display: block;
}

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

/* Wide tables for statistics */
.wide-table {
    font-size: 0.85rem;
    overflow-x: auto;
    display: block;
}

.wide-table th,
.wide-table td {
    padding: 0.5rem 0.4rem;
    min-width: 40px;
    text-align: center;
}

.wide-table th:first-child,
.wide-table td:first-child {
    text-align: left;
    position: sticky;
    left: 0;
    background-color: white;
    z-index: 1;
    min-width: 120px;
}

.wide-table thead th {
    background-color: var(--primary-color);
    color: white;
    position: sticky;
    top: 0;
    z-index: 2;
}

.wide-table thead th:first-child {
    z-index: 3;
}

/* Add visual separation between age category groups */
/* For first header row: borders before Adult (col 2), Youth (col 6), Child (col 10), Under-5 (col 14), Total (col 18) */
.wide-table thead tr:first-child th:nth-child(2),
.wide-table thead tr:first-child th:nth-child(3),
.wide-table thead tr:first-child th:nth-child(4),
.wide-table thead tr:first-child th:nth-child(5),
.wide-table thead tr:first-child th:nth-child(6) {
    border-left: 2px solid rgba(255, 255, 255, 0.3);
}

/* For second header row: borders before Youth (col 5), Child (col 9), Under-5 (col 13) */
.wide-table thead tr:nth-child(2) th:nth-child(5),
.wide-table thead tr:nth-child(2) th:nth-child(9),
.wide-table thead tr:nth-child(2) th:nth-child(13) {
    border-left: 2px solid rgba(255, 255, 255, 0.3);
}

/* For data rows: borders before Adult (col 2), Youth (col 6), Child (col 10), Under-5 (col 14), Total (col 18) */
.wide-table tbody td:nth-child(2),
.wide-table tbody td:nth-child(6),
.wide-table tbody td:nth-child(10),
.wide-table tbody td:nth-child(14),
.wide-table tbody td:nth-child(18) {
    border-left: 2px solid var(--border-color);
}

/* Make the second header row slightly different */
.wide-table thead tr:nth-child(2) th {
    background-color: rgba(52, 73, 94, 0.9);
    font-size: 0.8rem;
    min-width: 40px !important;
    width: 40px;
}

/* Ensure the rowspan headers don't affect sub-header widths */
.wide-table thead tr:first-child th {
    min-width: auto;
}

/* Extra Items Styling */
.extras-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.extra-item {
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: 1rem;
    align-items: end;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.extra-item .form-group {
    margin-bottom: 0;
}

.remove-extra-btn {
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.remove-extra-btn:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.add-extra-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s;
    width: fit-content;
}

.add-extra-btn:hover {
    background: #16a085;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.section-help {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Help Page Styles */
.help-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.help-step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-color), #5dade2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.step-content {
    flex: 1;
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.step-content h4 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.step-content p {
    margin: 0;
    color: var(--text-color);
    line-height: 1.6;
}

.workflow-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.workflow-day {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.day-badge {
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
}

.day-badge.thursday {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.day-badge.wednesday {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.day-badge.ongoing {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.day-tasks {
    padding: 1.5rem;
}

.day-tasks p {
    margin: 0 0 0.75rem 0;
    color: var(--primary-color);
    font-size: 1.05rem;
}

.day-tasks ul {
    margin: 0;
    padding-left: 1.5rem;
    color: var(--text-color);
}

.day-tasks li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

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

.task-card {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--success-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.task-card h4 {
    margin: 0 0 1rem 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.task-card ol {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--text-color);
}

.task-card li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

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

.info-card {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border-top: 4px solid var(--secondary-color);
}

.info-card h4 {
    margin: 0 0 1rem 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.info-card p {
    margin: 0 0 0.75rem 0;
    color: var(--text-color);
    line-height: 1.6;
}

.info-card p:last-child {
    margin-bottom: 0;
}

.info-card ul {
    margin: 0;
    padding-left: 1.5rem;
    color: var(--text-color);
}

.info-card li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.best-practices-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.practice-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--light-bg);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--success-color);
}

.practice-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    background: var(--success-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.practice-content {
    flex: 1;
    color: var(--text-color);
    line-height: 1.6;
}

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

.glossary-term {
    background: var(--light-bg);
    padding: 1.25rem;
    border-radius: 8px;
    border-left: 4px solid var(--warning-color);
}

.glossary-term strong {
    display: block;
    color: var(--primary-color);
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.glossary-term p {
    margin: 0;
    color: var(--text-color);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .help-step {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step-number {
        align-self: flex-start;
    }
    
    .task-grid,
    .info-grid,
    .glossary-grid {
        grid-template-columns: 1fr;
    }
}


/* Info Banner */
.info-banner {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 0.95em;
}

.info-banner strong {
    color: #1976d2;
}

/* Invoice Type Classification Styles */

/* Invoice type badges */
.type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9em;
    text-transform: uppercase;
}

.type-member {
    background-color: #e3f2fd;
    color: #1976d2;
}

.type-guest {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.type-renter {
    background-color: #fff3e0;
    color: #f57c00;
}

/* Invoice type display (for members) */
.invoice-type-display {
    margin: 0 0 1.5rem 0;
    padding: 12px;
    background-color: #f5f5f5;
    border-radius: 4px;
}

.invoice-type-display label {
    display: inline-block;
    margin-right: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.invoice-type-display small {
    display: block;
    margin-top: 4px;
    color: #666;
    font-style: italic;
}

/* Invoice type selector (for non-members) */
.invoice-type-selector {
    margin: 0 0 1.5rem 0;
    padding: 12px;
    background-color: #fff9c4;
    border-left: 4px solid #fbc02d;
    border-radius: 4px;
}

.invoice-type-selector label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.invoice-type-selector select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    background-color: white;
}

.invoice-type-selector select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.invoice-type-selector small {
    display: block;
    margin-top: 4px;
    color: #666;
    font-style: italic;
    font-size: 0.85em;
}

.invoice-type-selector .required {
    color: #d32f2f;
}

/* Associated member dropdown styling */
.assoc-member-select {
    margin-top: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .invoice-type-display,
    .invoice-type-selector {
        padding: 10px;
    }
    
    .type-badge {
        font-size: 0.85em;
        padding: 3px 10px;
    }
}


/* Contact Support Styles */
.contact-info {
    max-width: 700px;
    margin: 0 auto;
}

.contact-info > p {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.contact-button-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.email-support-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.email-support-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.contact-tips {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--background-light);
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.contact-tips h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 1rem;
}

.contact-tips ul {
    margin: 0;
    padding-left: 1.5rem;
}

.contact-tips li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.help-link {
    color: var(--secondary-color);
    text-decoration: underline;
    cursor: pointer;
}

.help-link:hover {
    color: var(--primary-color);
}



/* Board Rates Display Styles */
.board-rates-readonly {
    background-color: #f8f9fa;
}

.board-rates-readonly td {
    font-weight: 500;
}

.warning-banner {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 1rem;
    margin: 1rem 0;
    color: #856404;
}

.warning-banner strong {
    display: block;
    margin-bottom: 0.5rem;
}

.board-rates-edit,
.board-rates-display {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Season Summary Styles */
.season-selector-container {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.season-selector-container .form-group {
    flex: 0 0 200px;
    margin-bottom: 0;
}

.season-summary-container {
    margin-top: 2rem;
}

.season-summary-header {
    text-align: center;
    margin-bottom: 2rem;
}

.season-summary-header h3 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
}

.season-summary-header p {
    margin: 0;
    color: var(--text-secondary);
}

.season-summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.season-summary-stats .stat-card {
    text-align: center;
    padding: 1.5rem;
}

.season-summary-stats .stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.season-summary-stats .stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.season-summary-table-container {
    overflow-x: auto;
    margin-top: 1rem;
    /* Force scrollbar to always show */
    overflow-x: scroll;
    max-width: 100%;
    width: 100%;
}

/* Create a sticky container for the table */
.season-summary-table-scroll-wrapper {
    position: relative;
    max-height: calc(100vh - 250px);
    overflow-y: auto;
}

/* Sticky header for the table */
.season-summary-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: var(--background-color);
}

/* Add a top scrollbar for better UX */
.season-summary-top-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    height: 20px;
    margin-bottom: 0.5rem;
    max-width: 100%;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--background-color);
    border-bottom: 1px solid var(--border-color);
}

.season-summary-top-scroll-content {
    height: 1px;
}

.season-summary-table {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.season-summary-table thead {
    position: sticky;
    top: 0;
    background-color: var(--primary-color);
    color: white;
    z-index: 10;
}

.season-summary-table th {
    padding: 0.75rem 0.5rem;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.season-summary-table th:last-child {
    border-right: none;
}

.season-summary-table tbody tr {
    border-bottom: 1px solid var(--border-color);
}

.season-summary-table tbody tr:nth-child(even) {
    background-color: var(--background-secondary);
}

.season-summary-table tbody tr:hover {
    background-color: var(--hover-color);
}

.season-summary-table tbody tr.invoice-group-start {
    border-top: 3px solid var(--primary-color);
}

/* Invoice header row styling */
.season-summary-table tbody tr.invoice-header-row {
    border-top: 2px solid var(--primary-color);
    font-weight: 500;
}

/* Diner row styling - slightly indented appearance */
.season-summary-table tbody tr.diner-row {
    background-color: var(--background-secondary);
}

.season-summary-table tbody tr.diner-row:hover {
    background-color: var(--hover-color);
}

/* Section headers in table */
.season-summary-table th.section-header {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    font-weight: 600;
    padding: 0.5rem;
}

.season-summary-table td {
    padding: 0.5rem;
    white-space: nowrap;
    border-right: 1px solid var(--border-color);
}

.season-summary-table td:last-child {
    border-right: none;
}

/* Make certain columns wider */
.season-summary-table td:nth-child(4), /* Bill To */
.season-summary-table td:nth-child(5), /* Email */
.season-summary-table td:nth-child(10) /* Diner Name */ {
    min-width: 150px;
    white-space: normal;
    word-wrap: break-word;
}


/* Guest/Renter Lookup Panel Styles */
.guest-renter-panel {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.guest-renter-panel:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}

.guest-renter-panel .panel-header {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

.guest-renter-panel .panel-header:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a8b 100%);
}

.guest-renter-panel .panel-header h3 {
    font-size: 1.1rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.guest-renter-panel .panel-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.guest-renter-panel .refresh-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guest-renter-panel .refresh-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.guest-renter-panel .refresh-btn:active {
    transform: scale(0.95);
}

.guest-renter-panel .refresh-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.guest-renter-panel .refresh-btn:hover .refresh-icon {
    transform: rotate(180deg);
}

.guest-renter-panel .cache-indicator {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-left: 0.25rem;
}

.guest-renter-panel .panel-icon {
    font-size: 1.3rem;
}

.guest-renter-panel .panel-count {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: normal;
}

.guest-renter-panel .expand-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.guest-renter-panel[data-expanded="true"] .expand-icon {
    transform: rotate(180deg);
}

.guest-renter-panel .panel-content {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    animation: slideDown 0.3s ease;
}

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

.guest-renter-panel .panel-search {
    margin-bottom: 1rem;
}

.guest-renter-panel .panel-search input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.guest-renter-panel .panel-search input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.guest-renter-panel .guest-list {
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Custom scrollbar for guest list */
.guest-renter-panel .guest-list::-webkit-scrollbar {
    width: 8px;
}

.guest-renter-panel .guest-list::-webkit-scrollbar-track {
    background: var(--light-bg);
    border-radius: 4px;
}

.guest-renter-panel .guest-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.guest-renter-panel .guest-list::-webkit-scrollbar-thumb:hover {
    background: #95a5a6;
}

.guest-entry {
    background: var(--light-bg);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.guest-entry:hover {
    background: #dfe6e9;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.guest-entry:active {
    transform: translateX(2px);
}

.guest-entry .guest-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.guest-entry .guest-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.9rem;
}

.guest-entry .guest-email {
    color: var(--text-color);
    flex: 1 1 200px;
}

.guest-entry .guest-date {
    color: var(--text-light);
    font-size: 0.85rem;
}

.guest-entry .guest-count {
    color: var(--text-light);
    font-size: 0.85rem;
}

.guest-entry .guest-type {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.guest-entry .badge-guest {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.guest-entry .badge-renter {
    background-color: #fff3e0;
    color: #f57c00;
}

.guest-list-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
}

.guest-list-empty p {
    margin: 0.5rem 0;
}

.guest-list-empty .error-message {
    color: var(--danger-color);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Empty state styles */
.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.empty-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.empty-message {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.empty-help {
    background: var(--light-bg);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
    text-align: left;
}

.empty-help p {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    color: var(--text-color);
}

.empty-help ul {
    margin: 0.5rem 0 0 0;
    padding-left: 1.5rem;
    text-align: left;
}

.empty-help li {
    margin: 0.5rem 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.guest-list-empty .retry-btn {
    margin-top: 1rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.guest-list-empty .retry-btn:hover {
    background: #2980b9;
}

.guest-list-empty .retry-btn:active {
    transform: scale(0.98);
}

/* Error state styles */
.guest-list-error {
    padding: 2rem 1rem;
}

.error-icon-large {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.error-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--danger-color);
    margin-bottom: 0.5rem;
}

.error-message {
    color: var(--text-color);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.error-note {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 1rem;
}

.retry-icon {
    display: inline-block;
    margin-right: 0.25rem;
    font-size: 1.1rem;
}

.error-icon {
    color: #f39c12;
    margin-right: 0.25rem;
}

/* Offline state styles */
.guest-list-offline {
    padding: 2rem 1rem;
}

.offline-icon-large {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.offline-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.offline-message {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.offline-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.status-indicator.offline {
    background-color: #e74c3c;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

.offline-note {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 1rem;
}

.offline-icon {
    margin-right: 0.25rem;
}

/* Auto-fill visual feedback */
.auto-filled {
    animation: highlightFill 2s ease;
}

@keyframes highlightFill {
    0% {
        background-color: #fff9c4;
        border-color: #fbc02d;
    }
    100% {
        background-color: white;
        border-color: var(--border-color);
    }
}

/* Loading spinner styles for guest panel */
.loading-spinner-inline {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 4px;
}

.loading-spinner-large {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.guest-renter-panel.loading {
    pointer-events: none;
}

/* Mobile responsive styles for guest panel */

/* Tablet breakpoint (481-768px) */
@media (max-width: 768px) and (min-width: 481px) {
    .guest-renter-panel {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    /* Touch-friendly header for tablets */
    .guest-renter-panel .panel-header {
        padding: 0.875rem 1rem;
        min-height: 44px;
    }
    
    .guest-renter-panel .panel-header h3 {
        font-size: 1rem;
    }
    
    .guest-renter-panel .panel-icon {
        font-size: 1.1rem;
    }
    
    .guest-renter-panel .panel-content {
        padding: 1rem;
    }
    
    /* Touch-friendly search input for tablets */
    .guest-renter-panel .panel-search input {
        min-height: 44px;
    }
    
    .guest-renter-panel .guest-list {
        max-height: 300px;
        gap: 0.875rem;
    }
    
    /* Touch-friendly guest entries for tablets */
    .guest-entry {
        padding: 0.875rem;
        min-height: 44px;
    }
    
    .guest-entry .guest-name {
        font-size: 1rem;
    }
    
    .guest-entry .guest-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .guest-entry .guest-email {
        flex: 1 1 auto;
        width: 100%;
        word-break: break-word;
    }
    
    .guest-entry .guest-date,
    .guest-entry .guest-count {
        font-size: 0.85rem;
    }
    
    /* Touch-friendly buttons for tablets */
    .guest-renter-panel .refresh-btn {
        min-width: 44px;
        min-height: 44px;
    }
    
    .guest-list-empty .retry-btn {
        min-height: 44px;
    }
}

/* Mobile breakpoint (<480px) */
@media (max-width: 480px) {
    .guest-renter-panel {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        border-radius: 6px;
    }
    
    /* Touch-friendly header - min 44px height */
    .guest-renter-panel .panel-header {
        padding: 0.875rem;
        flex-wrap: wrap;
        min-height: 44px;
    }
    
    .guest-renter-panel .panel-header h3 {
        font-size: 0.95rem;
        flex: 1 1 100%;
        margin-bottom: 0.25rem;
    }
    
    .guest-renter-panel .panel-icon {
        font-size: 1rem;
    }
    
    .guest-renter-panel .panel-count {
        font-size: 0.85rem;
    }
    
    .guest-renter-panel .panel-header-actions {
        gap: 0.5rem;
    }
    
    /* Touch-friendly refresh button - min 44px */
    .guest-renter-panel .refresh-btn {
        padding: 0.625rem 0.875rem;
        font-size: 0.9rem;
        min-width: 44px;
        min-height: 44px;
    }
    
    .guest-renter-panel .cache-indicator {
        font-size: 0.75rem;
    }
    
    .guest-renter-panel .panel-content {
        padding: 0.875rem;
    }
    
    /* Touch-friendly search input - min 44px height */
    .guest-renter-panel .panel-search input {
        padding: 0.75rem 0.875rem;
        font-size: 0.95rem;
        min-height: 44px;
    }
    
    .guest-renter-panel .guest-list {
        max-height: 250px;
        gap: 0.875rem;
    }
    
    /* Touch-friendly guest entries - min 44px height with better spacing */
    .guest-entry {
        padding: 0.875rem;
        border-radius: 6px;
        min-height: 44px;
    }
    
    .guest-entry .guest-name {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    .guest-entry .guest-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        font-size: 0.85rem;
    }
    
    .guest-entry .guest-email {
        flex: 1 1 auto;
        width: 100%;
        word-break: break-word;
        font-size: 0.85rem;
    }
    
    .guest-entry .guest-date,
    .guest-entry .guest-count {
        font-size: 0.8rem;
    }
    
    .guest-entry .guest-type {
        padding: 0.25rem 0.75rem;
        font-size: 0.75rem;
    }
    
    /* Stack empty state content */
    .guest-list-empty {
        padding: 2rem 0.875rem;
    }
    
    .empty-icon {
        font-size: 2.5rem;
    }
    
    .empty-title {
        font-size: 1rem;
    }
    
    .empty-message {
        font-size: 0.9rem;
    }
    
    .empty-help {
        padding: 0.875rem;
    }
    
    .empty-help p {
        font-size: 0.85rem;
    }
    
    .empty-help li {
        font-size: 0.85rem;
    }
    
    /* Stack error state content */
    .guest-list-error,
    .guest-list-offline {
        padding: 1.5rem 0.875rem;
    }
    
    .error-icon-large,
    .offline-icon-large {
        font-size: 2.5rem;
    }
    
    .error-title,
    .offline-title {
        font-size: 1rem;
    }
    
    .error-message,
    .offline-message {
        font-size: 0.9rem;
    }
    
    /* Touch-friendly retry button - min 44px height */
    .guest-list-empty .retry-btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.9rem;
        min-height: 44px;
    }
}
