.trv-box {
    max-width: 480px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.trv-btn {
    display: inline-block;
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    margin-top: 10px;
    transition: background 0.15s ease;
}
.trv-btn:hover { background: #135e96; color: #fff; }
.trv-btn-sm { padding: 6px 12px; font-size: 13px; margin-top: 0; }

.trv-rota-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 100%;
}
.trv-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}
.trv-header h2 { margin: 0; }
.trv-nav { display: flex; gap: 8px; }

.trv-department {
    margin-bottom: 36px;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    padding: 16px;
}
.trv-department h3 {
    margin-top: 0;
    border-bottom: 2px solid #2271b1;
    padding-bottom: 8px;
}

.trv-month-label {
    font-size: 18px;
    margin: 0 0 16px;
}

.trv-calendar {
    border: 1px solid #e2e2e2;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
}
.trv-cal-weekdays, .trv-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}
.trv-cal-weekday {
    padding: 8px;
    text-align: center;
    font-weight: 600;
    background: #f6f7f7;
    border-bottom: 1px solid #e2e2e2;
    border-right: 1px solid #eee;
    font-size: 13px;
}
.trv-cal-weekday:last-child { border-right: none; }

.trv-cal-day {
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    min-height: 90px;
    padding: 6px;
}
.trv-cal-grid > .trv-cal-day:nth-child(7n) { border-right: none; }

.trv-cal-outside { background: #fafafa; color: #bbb; }
.trv-cal-today { background: #f0f7ff; }

.trv-cal-date {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 4px;
}

.trv-cal-entries {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.trv-cal-entry {
    font-size: 12px;
    line-height: 1.3;
    padding: 2px 4px;
    border-radius: 3px;
    background: #f6f7f7;
}
.trv-cal-role {
    font-weight: 600;
    color: #555;
}
.trv-cal-calltime {
    font-weight: 600;
    color: #1a5276;
    margin-left: 2px;
}
.trv-cal-mine {
    background: #e6f4ea;
}
.trv-cal-mine .trv-cal-role,
.trv-cal-mine .trv-cal-person {
    color: #1e7e34;
    font-weight: 600;
}

@media (max-width: 700px) {
    .trv-cal-day { min-height: 70px; }
    .trv-cal-weekday { font-size: 11px; padding: 4px; }
    .trv-cal-date { font-size: 12px; }
    .trv-cal-entry { font-size: 10px; padding: 1px 3px; }
}

.trv-myshifts-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    margin-bottom: 14px;
    cursor: pointer;
}
.trv-myshifts-toggle input { cursor: pointer; }

.trv-cal-markers {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 4px;
}
.trv-cal-marker-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 4px;
    border-radius: 3px;
}
.trv-marker-performance { background: #fde2e2; color: #9b1c1c; }
.trv-marker-get_in { background: #e0e7ff; color: #3730a3; }
.trv-marker-setup { background: #dbeafe; color: #1e40af; }
.trv-marker-take_down { background: #f3e8ff; color: #6b21a8; }
.trv-marker-other { background: #f0f0f1; color: #444; }

.trv-cal-note {
    font-size: 11px;
    font-style: italic;
    color: #777;
    margin-top: 1px;
}
.trv-cal-mine .trv-cal-note { color: #2f6b3e; }

.trv-help {
    font-size: 13px;
    color: #777;
    margin-top: 10px;
}

.trv-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.trv-toolbar-actions {
    display: flex;
    gap: 8px;
}

.trv-filter-box {
    margin-bottom: 14px;
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    padding: 8px 12px;
    background: #fafafa;
}
.trv-filter-box summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
}
.trv-filter-form {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.trv-filter-form fieldset {
    border: 1px solid #e2e2e2;
    border-radius: 4px;
    padding: 6px 10px;
    min-width: 160px;
}
.trv-filter-form legend {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    padding: 0 4px;
}
.trv-filter-option {
    display: block;
    font-size: 13px;
    margin: 2px 0;
}
.trv-filter-buttons {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}
