 td {
    text-align: left !important;
}

.factory-reservation-wrapper {
    max-width: 100%;
    margin: 20px auto;
    padding: 15px;
}

.date-control-buttons {
    margin-bottom: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sunday-toggle,
.remarks-toggle {
    margin-left: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 0.9em;
    color: #666;
}

.sunday-toggle input[type="checkbox"],
.remarks-toggle input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
}

.print-btn {
    margin-left: 20px;
    padding: 5px 15px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.print-btn:hover {
    background: #005177;
}

.date-control-btn {
    padding: 10px 20px;
    margin: 0 5px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.date-control-btn:hover {
    background: #005177;
}

.date-control-btn.active {
    background: #005177;
}

.factory-status-table-container {
    overflow-x: auto;
}

.factory-status-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.factory-status-table th,
.factory-status-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

.factory-status-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.factory-status-table thead th {
    position: sticky;
    top: 0;
    background-color: #f5f5f5;
    z-index: 1;
}

.quota-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.quota-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.quota-label {
    font-size: 0.9em;
    color: #666;
}

.quota-value {
    font-weight: bold;
    color: #333;
}

.medium-car{
    background-color: #f0f7ff;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 0.8em;
    color: #0066cc;
}

.big-car {
    background-color: #f0f7ff;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 0.8em;
    color: #cc0000;
}

.current-user-row {
    background-color: #f0f7ff;
}

.weekend {
    color: #ff0000;  /* 日曜日は赤色 */
}

.saturday {
    color: #0066cc;  /* 土曜日は青色 */
}

.reservation-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 4px;
    font-size: 1em;
}
.factory-status-table .reservation-info {
    
    font-size: 0.9em;
}

.vehicle-row {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 1em;
}

.vehicle-number {
    font-weight: bold;
    color: #333;
}

.vehicle-name {
    color: #666;
}

/* 車両タイプによる色分け */
.vehicle-large {
    color: #ff0000 !important; /* 大型車は赤 */
}

.vehicle-medium {
    color: #0066cc !important; /* 中型車は青 */
}

.vehicle-remarks {
    display: none;  /* デフォルトで非表示 */
    color: #666;
    font-size: 0.85em;
    margin-top: 2px;
    padding-left: 5px;
    border-left: 2px solid #ddd;
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.2;
}

.factory-status-table td {
    vertical-align: top;
    min-width: 200px;
}