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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: #8B4513;
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

header h1 {
    font-size: 24px;
    margin-bottom: 5px;
}

.subtitle {
    font-size: 14px;
    opacity: 0.8;
}

.controls {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    font-size: 12px;
    font-weight: bold;
    color: #666;
    margin-bottom: 4px;
}

.filter-group select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.export-group {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.btn {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    color: white;
    cursor: pointer;
    display: inline-block;
}

.btn-print { background: #6c757d; }
.btn-print:hover { background: #5a6268; }
.btn-ical { background: #007bff; }
.btn-ical:hover { background: #0056b3; }

.rota-container {
    background: white;
    border-radius: 8px;
    overflow: auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.rota-grid {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.rota-grid thead {
    background: #8B4513;
    color: white;
}

.rota-grid th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
}

.rota-grid td {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.rota-grid tr:hover {
    background: #f9f9f9;
}

.no-data {
    text-align: center;
    color: #999;
    padding: 40px !important;
}

footer {
    margin-top: 20px;
    text-align: center;
    font-size: 12px;
    color: #999;
}

footer a {
    color: #8B4513;
    text-decoration: none;
}

@media (max-width: 768px) {
    .controls {
        flex-direction: column;
        align-items: stretch;
    }
    .export-group {
        margin-left: 0;
        justify-content: center;
    }
    .rota-grid {
        font-size: 12px;
    }
    .rota-grid th,
    .rota-grid td {
        padding: 8px 10px;
    }
}

/* Header with logo */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #8B4513;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

header .header-left {
    display: flex;
    flex-direction: column;
}

header .header-left h1 {
    font-size: 24px;
    margin: 0;
}

header .header-left .subtitle {
    font-size: 14px;
    opacity: 0.8;
    margin: 0;
}

.header-logo {
    height: 60px;
    width: auto;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(255,255,255,0.15);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    object-fit: contain;
}

@media (max-width: 600px) {
    header {
        flex-direction: column;
        text-align: center;
    }
    header .header-left {
        align-items: center;
    }
}
/* ============================================================
   COMPACT TABLE - More lines on screen
   ============================================================ */

/* Reduce padding in table cells */
.rota-grid th,
.rota-grid td {
    padding: 4px 8px !important;
    font-size: 13px;
}

/* Reduce header padding */
.rota-grid thead th {
    padding: 6px 8px !important;
    font-size: 12px;
}

/* Reduce row height */
.rota-grid tr {
    line-height: 1.3;
}

/* Reduce container padding */
.rota-container {
    padding: 0;
}

/* Make the table more compact overall */
.rota-grid {
    font-size: 13px;
}

/* For even more compact - optional */
@media (min-width: 1024px) {
    .rota-grid th,
    .rota-grid td {
        padding: 3px 6px !important;
        font-size: 12px;
    }
    .rota-grid thead th {
        padding: 4px 6px !important;
        font-size: 11px;
    }
}
