/* Header Aggregato */
.aggregate-header {
    background: linear-gradient(135deg, #669999 0%, #82ACAC 100%);
    color: white;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1800px;
    margin: 0 auto;
}

.header-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-display {
    font-size: 14px;
    opacity: 0.9;
}

.aggregate-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.stat-card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
}

.stat-label {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
}

.stat-subtext {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 3px;
}

/* Toolbar */
.toolbar {
    background: white;
    padding: 15px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.toolbar-content {
    max-width: 1800px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
}

.date-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    color:#333;
}

.nav-btn:hover {
    background: #f5f5f5;
}

.today-btn {
    background: #ffffff;
    color: #669999;
    border: 1px solid #669999;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.search-box {
    flex: 1;
    max-width: 300px;
}

.search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.action-buttons {
    margin-left: auto;
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
    width:auto;
    font-size: 13px;
}

.btn-primary {
    background: #669999;
    color: white;
}

.btn-secondary {
    background: #f0f2f5;
    color: #333;
}

.btn-primary:hover {
    background: #ffcc66;
}

/* Grid Attività */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 20px;
    max-width: 1800px;
    margin: 0 auto;
    min-height: calc(100vh - 200px);
}

.activity-column {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
    position: relative;
}

.activity-column:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.activity-column.expanded {
    position: fixed;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 1000;
    max-width: none;
    grid-column: 1 / -1;
}

/* Header Attività */
.activity-header {
    padding: 15px;
    color: white;
    position: relative;
}

.activity-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.expand-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.expand-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.activity-metrics {
    display: flex;
    gap: 15px;
    font-size: 13px;
}

.metric {
    display: flex;
    align-items: center;
    gap: 5px;
}

.metric-value {
    font-weight: bold;
}

.pending-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4444;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Contenuto Attività */
.activity-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

/* Sezione Capacità */
.capacity-section {
    margin-bottom: 20px;
}

.capacity-title {
    font-size: 14px;
    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.meal-capacity {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    border-left: 6px solid;
}


.meal-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-transform: uppercase;
}

.capacity-bar {
    background: #e0e0e0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
}

.capacity-fill {
    height: 100%;
    transition: width 0.3s;
}


.capacity-text {
    font-size: 11px;
    color: #666;
    display: flex;
    justify-content: space-between;
}

.capacity-available {
    color: #4CAF50;
    font-weight: 600;
}

.capacity-booked {
    font-weight: 600;
}

/* Mini Toggle */
.mini-toggle {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}

.mini-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.mini-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 20px;
}

.mini-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .mini-slider {
    background-color: currentColor;
}

input:checked + .mini-slider:before {
    transform: translateX(16px);
}

/* Prenotazioni Compatte */
.reservations-compact {
    margin-top: 10px;
}

.time-group {
    margin-bottom: 15px;
}

.time-header {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.reservation-mini {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    border-left: 6px solid;
}

.reservation-mini:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateX(3px);
}

.reservation-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.covers-badge {
    background: rgba(0,0,0,0.1);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 14px;
    display: inline-block;
  vertical-align: middle;
}
.google-badge{
  width:26px;
  height:26px;
  display: inline-block;
  vertical-align: middle;
}
.google-badge img{
  width:100%;
}

.reservation-info {
    font-size: 10px;
    color: #666;
    display: flex;
    gap: 5px;
}

.status-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 3px;
}

.status-dot.confirmed {
    background: #4CAF50;
}

.status-dot.pending {
    background: #FFC107;
}

.status-dot.cancelled {
    background: #F44336;
}

/* Sezione Da Confermare */
.pending-section {
    background: #ffffff;
    border: 2px solid #ffcc66;
    border-radius: 8px;
    padding: 12px;
    margin-top: 15px;
}

.pending-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pending-item {
    background: #f8f9fa;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 6px;
    font-size: 12px;
}

.pending-name {
    font-weight: 600;
    margin-bottom: 3px;
}

.pending-details {
    color: #666;
    font-size: 11px;
}

.quick-actions {
    display: flex;
    gap: 5px;
    margin-top: 5px;
}

.quick-btn {
    padding: 4px 10px;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    font-weight: 600;
}

.quick-confirm {
    background: #ffcc66;
    color: white;
}

.quick-reject {
    background: #f44336;
    color: white;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 30px;
    color: #999;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 10px;
    opacity: 0.3;
}

.empty-text {
    font-size: 14px;
}

/* Responsive */
@media (max-width: 1600px) {
    /*.activities-grid {
        grid-template-columns: repeat(2, 1fr);
    }*/
}

@media (max-width: 900px) {
    /*.activities-grid {
        grid-template-columns: 1fr;
    }*/
}

/* Overlay */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 7;
}

.overlay.active {
    display: block;
}
.ellipsis{
 
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

}