/* Rental Unit Status Styling */

/* Available units (空室) - normal display */
.unit-available {
    opacity: 1;
}

/* Rented units (賃貸中) - slightly transparent when shown in admin debug mode */
.unit-rented {
    opacity: 0.7;
    background-color: #f5f5f5;
}

/* Status overlay for rented units */
.status-overlay {
    position: absolute;
    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: 10;
}

/* Status badge */
.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    color: white;
    text-align: center;
}

.rented-badge {
    background-color: #dc3545;
}

/* Rented status text in actions column */
.rented-status {
    color: #dc3545;
    font-weight: bold;
    font-size: 14px;
    padding: 8px 12px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    display: inline-block;
}

/* Floor plan diagram position relative for overlay */
.jre-floor-diagram {
    position: relative;
}

/* Unit row styling */
tr.unit-rented td {
    background-color: #f8f9fa;
    color: #6c757d;
}

tr.unit-available td {
    background-color: #ffffff;
}

/* Disable buttons for rented units */
.unit-rented .jre-btn {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

/* Admin debug indicators */
body.admin-logged-in .unit-rented {
    border-left: 4px solid #dc3545;
}

body.admin-logged-in .unit-available {
    border-left: 4px solid #28a745;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .status-badge {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    .rented-status {
        font-size: 12px;
        padding: 6px 8px;
    }
    
    .status-overlay {
        background: rgba(0, 0, 0, 0.7);
    }
} 