.main-content {
    margin-left: 0;
    padding: 20px;
    width: 100%;
}
#content {
    padding-bottom: 50px;
}
.dashboard-card {
    margin-bottom: 20px;
    transition: transform 0.2s;
}
.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.stat-number {
    font-size: 2rem;
    font-weight: bold;
}
.stat-icon {
    font-size: 1.5rem;
    opacity: 0.7;
}
.office-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}
.office-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.office-header {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
    padding: 15px;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
}
.office-content {
    padding: 0;
}
.service-center {
    border-left: 3px solid #198754;
    margin: 10px;
    background-color: #f8f9fa;
}
.service-center-header {
    background-color: #e9ecef;
    padding: 10px 15px;
    font-weight: bold;
    color: #495057;
}
.dormitory-list {
    padding: 10px 15px;
}
.dormitory-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}
.dormitory-item:last-child {
    border-bottom: none;
}
.dormitory-name {
    font-weight: 500;
    color: #495057;
    min-width: 180px;
    padding-top: 15px;
}
.dormitory-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    max-width: 1200px;
}
.stat-item {
    text-align: center;
    min-width: 65px;
    max-width: 70px;
    flex: 0 0 70px;
}
.stat-item.subtotal {
    min-width: 65px;
    max-width: 65px;
    flex: 0 0 65px;
}
.stat-label {
    font-size: 0.7rem;
    color: #6c757d;
    display: block;
    line-height: 1.2;
    min-height: 2em;
}
.stat-value {
    font-size: 0.95rem;
    font-weight: bold;
    display: block;
    margin-top: 2px;
}
.stat-value.danger {
    color: #dc3545;
}
.stat-value.warning {
    color: #fd7e14;
}
.stat-value.success {
    color: #198754;
}
.stat-value.info {
    color: #0dcaf0;
}
.stat-value.primary {
    color: #0d6efd;
}
.stat-value.secondary {
    color: #6c757d;
}
.stat-value.warning {
    color: #f57c00;
}
.stat-value.danger {
    color: #dc3545;
}

/* 部屋情報グループのスタイル */
.stat-item.room-info-group {
    padding: 4px 6px;
    margin: 0 2px;
    border: 1px solid rgba(13, 110, 253, 0.0);
}

/* 入居可能状況グループのスタイル */
.stat-item.availability-group {
    background-color: rgba(13, 110, 253, 0.08);
    border-radius: 4px;
    padding: 4px 6px;
    margin: 0 2px;
    border: 1px solid rgba(13, 110, 253, 0.3);
}
.stat-item.availability-group .stat-label {
    color: #084298;
}
/* 退居日調整中・退居日調整済の共通背景色 */
.stat-item.availability-group.move-out-adjusting,
.stat-item.availability-group.move-out-adjusted {
    background-color: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.6);
}
.stat-item.availability-group.move-out-adjusting .stat-label,
.stat-item.availability-group.move-out-adjusted .stat-label {
    color: #856404;
}
/* グループヘッダー */
.stat-group-header {
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #495057;
    background-color: rgba(0, 0, 0, 0.03);
    padding: 4px 0;
    margin: 8px 0 4px 0;
    border-radius: 4px;
}
/* グループボーダー */
.stat-item.availability-group:first-of-type {
    border-left: 3px solid rgba(13, 110, 253, 0.5);
}
/* 入退居統計グループのスタイル */
.stat-item.move-stats-group {
    background-color: rgba(25, 135, 84, 0.1);
    border-radius: 4px;
    padding: 4px 6px;
    margin: 0 2px;
    border: 1px solid rgba(25, 135, 84, 0.2);
}
.stat-item.move-stats-group .stat-label {
    color: #0f5132;
}
/* 計行のスタイル */
.dormitory-item.subtotal-row {
    background-color: #f0f0f0;
    font-weight: bold;
    margin-top: 10px;
    padding-top: 15px;
}
.dormitory-item.subtotal-row .dormitory-name {
    color: #212529;
    font-weight: 700;
}
.dormitory-item.subtotal-row .stat-value {
    font-weight: 700;
    font-size: 1.05rem;
}
.filter-container {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.summary-stats {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}
.summary-item {
    text-align: center;
}
.summary-number {
    font-size: 2rem;
    font-weight: bold;
    display: block;
}
.summary-label {
    font-size: 0.9rem;
    opacity: 0.9;
}
.collapse-icon {
    transition: transform 0.3s ease;
}
.collapsed .collapse-icon {
    transform: rotate(-90deg);
}
/* 修繕状況<br>未入力の背景色 */
.stat-item.availability-group.repair-status-missing {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
}
.stat-item.availability-group.repair-status-missing .stat-label {
    color: #721c24;
}