/* Main application styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #ecf0f1;
    margin: 0;
    font-size: 0.95em;
}

.topbar {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    background: #fff;
    border-bottom: 2px solid #e9ecef;
    padding: 1rem 2rem;
    gap: 2rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.topbar-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.upload-section .upload-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.upload-icon {
    font-size: 2rem;
}

.file-name {
    font-size: 0.95rem;
    color: #3498db;
    margin-left: 0.5rem;
}

.row-count {
    font-size: 0.95rem;
    color: #888;
    margin-left: 0.5rem;
}

.config-section input[type="text"],
.config-section input[type="date"] {
    padding: 0.5rem 1rem;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 1rem;
    margin-right: 0.5rem;
}

.role-checkboxes-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    align-items: center;
}

.role-checkbox {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: #f8f9fa;
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
    border: 1px solid #e9ecef;
}

.mandatory-checkbox {
    margin-left: 0.5rem !important;
}

.mandatory-label {
    color: #dc3545;
    font-weight: 600;
    font-size: 0.9rem;
}

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

@media (max-width: 900px) {
    .topbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    .main-content {
        padding: 1rem;
    }
    .config-section input[type="text"],
    .config-section input[type="date"] {
        font-size: 0.95rem;
        padding: 0.4rem 0.7rem;
    }
}

.container {
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

h1 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

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

h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

/* File upload styles */
.upload-area {
    border: 2px dashed #bdc3c7;
    border-radius: 8px;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover, .upload-area.dragover {
    border-color: #3498db;
    background-color: #f8f9fa;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Configuration styles */
.config-group {
    margin-bottom: 1.5rem;
}

.config-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.config-group input[type="text"],
.config-group input[type="date"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 1rem;
}

.date-inputs {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.date-inputs input {
    flex: 1;
}

.role-controls {
    margin-bottom: 1rem;
}

.role-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.role-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    background: #f8f9fa;
}

.role-checkbox input[type="checkbox"] {
    margin: 0;
}

.role-checkbox label {
    margin: 0;
    font-weight: normal;
}

.mandatory-checkbox {
    margin-left: 1rem !important;
}

.mandatory-label {
    color: #dc3545;
    font-weight: 600;
    font-size: 0.9rem;
}

.role-selection-help {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #e3f2fd;
    border-radius: 4px;
    border-left: 4px solid #2196f3;
}

.role-selection-help p {
    margin: 0;
    color: #1976d2;
    font-size: 0.9rem;
}

/* Mandatory analysis styles */
.mandatory-summary {
    background-color: #ecf0f1;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.summary-item {
    text-align: center;
    padding: 0.75rem;
    background: white;
    border-radius: 4px;
    border: 1px solid #bdc3c7;
}

.summary-item.warning {
    background-color: #fdf2f2;
    border-color: #e74c3c;
    color: #e74c3c;
}

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

.mandatory-table th, .mandatory-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #bdc3c7;
}

.mandatory-table th {
    background-color: #ecf0f1;
    color: #34495e;
    font-weight: 600;
}

.warning-table {
    border: 2px solid #e74c3c;
    border-radius: 4px;
    margin-top: 1rem;
}

.warning-row {
    background-color: #fdf2f2;
}

.warning-row:hover {
    background-color: #fadbd8;
}

.unfilled-mandatory h3 {
    color: #e74c3c;
    margin-bottom: 1rem;
}

.mandatory-badge {
    background-color: #e74c3c;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.report-options {
    display: flex;
    gap: 2rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

/* Tab styles */
.tab-container {
    margin-top: 0rem;
}

.tab-buttons {
    display: flex;
    border-bottom: 2px solid #bdc3c7;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 1rem 2rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #7f8c8d;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: #2c3e50;
}

.tab-btn.active {
    color: #3498db;
    border-bottom-color: #3498db;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.report-actions {
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
}

/* Calendar styles */
.week {
    background: white;
    margin-bottom: 2rem;
    page-break-inside: avoid;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem 0.5rem 2rem;
    background: #fff;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 0.5rem;
}
.logo {
  display: flex;
  align-items: center;
}
.logo img {
  max-height: 54px;
  max-width: 180px;
}
.title h3 {
    margin: 0;
    color: #1a237e;
    font-size: 1.6em;
    font-weight: bold;
    text-align: left;
}

.calendar {
    border-collapse: collapse;
    width: 100%;
    font-size: 1.08em;
}

.calendar th, .calendar td {
    border: 1px solid #e0e0e0 !important;
    padding: 12px 8px !important;
    text-align: center;
    vertical-align: middle;
    min-height: 60px;
}

.calendar th {
    background: #f2f2f2;
    font-weight: bold;
    font-size: 1.08em;
    color: #1a237e;
}

.role-column {
    font-weight: bold;
    vertical-align: middle !important;
    font-size: 1.12em;
    min-width: 200px;
    text-align: left;
}

.shift-cell {
    height: 70px;
    vertical-align: top;
    padding: 0.5rem;
    background: #f8fbfd;
    min-height: 60px;
}

.shift-block {
    background: #fff;
    border: 2px solid #1976d2;
    border-radius: 8px;
    margin: 6px 0;
    padding: 10px 8px;
    text-align: left;
    font-size: 1.08em;
    color: #1976d2;
}

.shift-block.available {
    border: 2px solid #d32f2f;
    color: #d32f2f;
}

.shift-block.continuing {
    border-left: 3px solid #007bff;
    margin-left: 0;
}

.shift-block.continues {
    border-right: 3px solid #007bff;
    margin-right: 0;
}

.shift-block.continuing.continues {
    background-color: #f8f9fa;
}

.shift-block .time {
    font-weight: bold;
    font-size: 1.12em;
    margin-bottom: 2px;
    color: inherit;
}

.shift-block .name {
    font-weight: bold;
    font-size: 1.08em;
    margin-bottom: 2px;
    color: inherit;
}

.shift-block .name.available {
    color: #dc3545;
}

.shift-block .phone {
    font-size: 1em;
    color: #34495e;
    margin-top: 4px;
}

.shift-block .phone a {
    color: #1976d2;
    text-decoration: underline;
    font-size: 1em;
}

.shift-block .phone a:hover {
    text-decoration: underline;
}

.shift-block.available .phone a {
    color: #1976d2;
}

.shift-block.available .time,
.shift-block.available .name {
    color: #d32f2f;
}

.shift-block.available .phone {
    color: #d32f2f;
}

.shift-block .signup-link {
    color: #1976d2;
    text-decoration: underline;
    font-size: 1em;
    font-weight: normal;
}

.week h4 {
    text-align: left;
    padding: 0.5rem 2rem;
    color: #444;
    font-style: italic;
    margin: 0;
    font-size: 0.95em;
    font-weight: normal;
}

/* Analysis styles */
.analysis-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.analysis-container header {
    text-align: center;
    margin-bottom: 3rem;
}

.date-range {
    color: #34495e;
    font-size: 1.1rem;
}

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

.metric-card {
    background: #ecf0f1;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.metric-card h3 {
    color: #34495e;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.metric-card p {
    font-size: 2rem;
    font-weight: bold;
    color: #3498db;
}

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

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #bdc3c7;
}

th {
    background-color: #ecf0f1;
    color: #34495e;
    font-weight: 600;
}

tr:hover {
    background-color: #ecf0f1;
}

.compact {
    font-size: 0.9rem;
}

.compact th, .compact td {
    padding: 0.5rem 0.75rem;
}

.compact th {
    font-size: 0.85rem;
}

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

.role-section h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.role-stats {
    background-color: #ecf0f1;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.role-stats p {
    margin: 0;
    font-size: 0.9rem;
}

/* Print styles */
@media print {
    body {
        background: white;
        margin: 0;
        padding: 0;
        font-family: Arial, sans-serif;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .section {
        box-shadow: none;
        border: 1px solid #ddd;
        margin-bottom: 1rem;
        page-break-inside: avoid;
    }
    
    .week {
        page-break-before: always;
        page-break-after: avoid;
        break-before: page;
        break-after: avoid;
        width: 100vw !important;
        max-width: 100vw !important;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .week:first-child {
        page-break-before: auto;
    }
    
    .header-container {
        background: #fff !important;
        border-bottom: 2px solid #e9ecef !important;
        align-items: center !important;
        padding: 1.2rem 2rem 0.5rem 2rem !important;
    }
    
    .title h3 {
        margin: 0;
        color: #1a237e;
        font-size: 1.6em;
        font-weight: bold;
        text-align: left;
    }
    
    .logo img {
        max-height: 54px;
        max-width: 180px;
    }
    
    .calendar {
        font-size: 0.8rem;
        border-collapse: collapse;
        background: white;
        margin: 0;
        width: 100%;
        font-size: 1.08em;
    }
    
    .calendar th, .calendar td {
        border: 1px solid #e0e0e0 !important;
        padding: 12px 8px !important;
        text-align: center;
        vertical-align: middle;
        min-height: 60px;
    }
    
    .calendar th {
        background: #f2f2f2;
        font-weight: bold;
        font-size: 1.08em;
        color: #1a237e;
    }
    
    .role-column {
        font-weight: bold;
        vertical-align: middle !important;
        font-size: 1.12em;
        min-width: 200px;
        text-align: left;
    }
    
    .shift-cell {
        height: 50px;
        vertical-align: top;
        padding: 0.25rem;
    }
    
    .shift-block {
        background: #fff;
        border: 2px solid #1976d2;
        border-radius: 8px;
        margin: 6px 0;
        padding: 10px 8px;
        text-align: left;
        font-size: 1.08em;
        color: #1976d2;
    }
    
    .shift-block.available {
        border: 2px solid #d32f2f;
        color: #d32f2f;
    }
    
    .shift-block .time {
        font-weight: bold;
        font-size: 0.95em;
        color: #2c3e50;
        margin-bottom: 2px;
    }
    
    .shift-block .name {
        font-size: 0.92em;
        color: #34495e;
        margin-bottom: 2px;
    }
    
    .shift-block .name.available {
        color: #dc3545;
    }
    
    .shift-block .phone {
        font-size: 0.9em;
        color: #34495e;
        margin-top: 2px;
    }
    
    .week h4 {
        text-align: left;
        padding: 0.5rem 2rem;
        color: #444 !important;
        font-style: italic;
        margin: 0;
        font-size: 0.95em;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
    
    .metric-card {
        padding: 1rem;
    }
    
    .metric-card h3 {
        font-size: 0.9rem;
    }
    
    .metric-card p {
        font-size: 1.5rem;
    }
    
    table {
        font-size: 0.8rem;
    }
    
    th, td {
        padding: 0.5rem;
    }
    
    .compact th, .compact td {
        padding: 0.25rem 0.5rem;
    }

    .navbar, #sidebar, .report-actions, .tab-buttons, .tab-container .tab-btn, .tab-container .tab-buttons, .tab-container .tab-content > .tab-pane:not(.active) {
        display: none !important;
    }
    body, main, .container-fluid, .row, .card, #resultsSection, #combinedContent, #printScheduleContent {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
    main.col-md-10, main.col-12 {
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .header-container {
        background: #fff !important;
        border-bottom: 2px solid #e9ecef !important;
    }
    .week h4 {
        color: #444 !important;
        text-align: left !important;
        padding-left: 2rem !important;
    }
    .shift-cell {
      background: #fff !important;
    }
    .calendar td, .calendar th {
      min-height: 60px !important;
      border: 1px solid #e0e0e0 !important;
    }
}

/* Error display */
#errorArea {
    background: #fed7d7;
    color: #c53030;
    padding: 16px;
    margin: 20px 0;
    border-radius: 8px;
    font-weight: bold;
    display: none;
}

/* File info */
.file-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
}

.file-info h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.file-info p {
    margin-bottom: 0.25rem;
} 

/* Week analysis styles */
.week-analysis {
    background: white;
    margin: 2rem 0;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    page-break-inside: avoid;
}

.week-analysis h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.week-analysis h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.week-metrics {
    margin-bottom: 2rem;
}

.week-metrics .metrics-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.week-metrics .metric-card {
    padding: 1rem;
}

.week-metrics .metric-card h4 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.week-metrics .metric-card p {
    font-size: 1.5rem;
}

.mandatory-week-analysis {
    margin-bottom: 2rem;
}

.week-role-coverage {
    margin-top: 2rem;
}

.week-role-coverage h4 {
    margin-bottom: 1rem;
} 

/* Restore clean web styles for screen display */
body { 
    font-family: Arial, sans-serif; 
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}
.calendar { 
    border-collapse: collapse; 
    background: white;
    margin: 0;
    width: 100%;
}
.calendar th, .calendar td { 
    border: 1px solid #e0e0e0; 
    text-align: center;
    padding: 10px 6px;
    vertical-align: middle;
}
.calendar th { 
    background-color: #f2f2f2; 
    font-weight: bold;
    font-size: 1.08em;
    color: #1a237e;
}
.role-column {
    font-weight: bold;
    font-size: 1.12em;
    min-width: 180px;
    text-align: left;
    background-color: #f8f9fa;
}
.shift-cell {
    min-height: 60px;
    background: #fff;
}
.shift-block {
    background: #f0f7ff;
    border-left: 3px solid #4a90e2;
    border-radius: 4px;
    margin: 4px 0;
    padding: 8px 6px;
    text-align: left;
    font-size: 1em;
    color: #1976d2;
}
.shift-block.available {
    background: #ffebee !important;
    border-left: 3px solid #ef5350 !important;
    border-right: none !important;
    color: #d32f2f !important;
}
.shift-block.available.continues {
    border-right: 3px solid #ef5350 !important;
}
.shift-block.available.continuing {
    border-left: 3px solid #ef5350 !important;
}
.shift-block.available.continuing.continues {
    border-left: 3px solid #ef5350 !important;
    border-right: 3px solid #ef5350 !important;
}
.shift-block .time {
    font-weight: bold;
    font-size: 1.08em;
    color: #2c3e50;
    margin-bottom: 2px;
}
.shift-block .name {
    font-weight: bold;
    font-size: 1em;
    margin-bottom: 2px;
    color: inherit;
}
.shift-block .name.available {
    color: #d32f2f;
}
.shift-block .phone a {
    color: #1976d2;
    text-decoration: underline;
    font-size: 1em;
}
.shift-block .phone {
    margin-top: 2px;
    font-size: 1em;
}
.week h4 {
    text-align: left;
    padding: 0.5rem 2rem;
    color: #444;
    font-style: italic;
    margin: 0;
    font-size: 0.95em;
    font-weight: normal;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem 0.5rem 2rem;
    background: #fff;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 0.5rem;
}
.title h3 {
    margin: 0;
    color: #1a237e;
    font-size: 1.6em;
    font-weight: bold;
    text-align: left;
}
.logo img {
    max-height: 54px;
    max-width: 180px;
}

/* --- Begin template calendar styles for print --- */
@media print {
  @page {
    size: 11in 8.5in landscape;
    margin: 0.3in;
  }
  .calendar {
    font-size: 0.85em !important;
    table-layout: fixed !important;
    width: 100% !important;
  }
  .calendar tr, .calendar td, .calendar th {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
  .header-container, .week h4 {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
  .shift-block, .shift-block.available {
    padding: 2px 1px !important;
    font-size: 0.85em !important;
  }
  .calendar th, .calendar td {
    padding: 3px 1px !important;
    border-width: 1px !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }
}
/* --- End template calendar styles for print --- */ 

.small-text, .navbar, .tab-buttons, .tab-btn, .form-label, .form-control, .input-group-text, .btn, .card-header, .card-body, .tab-content, .tab-pane {
    font-size: 0.92em !important;
} 

/* Remove print-specific styling from base calendar classes */
.calendar, .calendar th, .calendar td, .shift-block, .shift-block.available {
    /* Remove any @media print or !important overrides here */
}

/* Information-dense, responsive calendar for on-screen display */
.calendar {
    border-collapse: collapse;
    background: white;
    margin: 0;
    width: 100%;
    font-size: 0.95em;
    table-layout: auto;
}
.calendar th, .calendar td {
    border: 1px solid #e0e0e0;
    text-align: center;
    padding: 6px 2px;
    vertical-align: middle;
    min-width: 70px;
    min-height: 36px;
}
.calendar th {
    background-color: #f2f2f2;
    font-weight: bold;
    font-size: 1em;
    color: #1a237e;
    padding: 6px 2px;
}
.role-column {
    font-weight: bold;
    font-size: 1em;
    min-width: 120px;
    text-align: left;
    background-color: #f8f9fa;
    padding: 6px 2px;
}
.shift-cell {
    min-height: 36px;
    background: #fff;
    padding: 2px 1px;
}
.shift-block {
    background: #f0f7ff;
    border-left: 2px solid #4a90e2;
    border-radius: 3px;
    margin: 2px 0;
    padding: 4px 2px;
    text-align: left;
    font-size: 0.95em;
    color: #1976d2;
}
.shift-block.available {
    background: #ffebee;
    border-left: 2px solid #ef5350;
    color: #d32f2f;
}
.shift-block .time {
    font-weight: bold;
    font-size: 1em;
    color: #2c3e50;
    margin-bottom: 1px;
}
.shift-block .name {
    font-weight: bold;
    font-size: 0.97em;
    margin-bottom: 1px;
    color: inherit;
}
.shift-block .name.available {
    color: #d32f2f;
}
.shift-block .phone a {
    color: #1976d2;
    text-decoration: underline;
    font-size: 0.95em;
}
.shift-block .phone {
    margin-top: 1px;
    font-size: 0.95em;
}
.week h4 {
    text-align: left;
    padding: 0.3rem 1rem;
    color: #444;
    font-style: italic;
    margin: 0;
    font-size: 0.9em;
    font-weight: normal;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 1rem 0.3rem 1rem;
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 0.3rem;
}
.title h3 {
    margin: 0;
    color: #1a237e;
    font-size: 1.2em;
    font-weight: bold;
    text-align: left;
}
.logo img {
    max-height: 36px;
    max-width: 100px;
}

/* Responsive tweaks for mobile */
@media (max-width: 900px) {
    .calendar th, .calendar td {
        font-size: 0.85em;
        min-width: 50px;
        padding: 3px 1px;
    }
    .role-column {
        min-width: 80px;
        font-size: 0.9em;
    }
    .header-container, .week h4 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}
@media (max-width: 600px) {
    .calendar th, .calendar td {
        font-size: 0.75em;
        min-width: 30px;
        padding: 1px 0;
    }
    .role-column {
        min-width: 50px;
        font-size: 0.8em;
    }
    .header-container, .week h4 {
        padding-left: 0.2rem;
        padding-right: 0.2rem;
    }
} 