/* Sidesk Platform Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

/* Login Styles */
.planspace-login-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.planspace-login-container {
    background: white;
    border-radius: 20px;
    padding: 48px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 400px;
    backdrop-filter: blur(10px);
}

.planspace-logo-section {
    text-align: center;
    margin-bottom: 40px;
}

.planspace-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.planspace-logo-icon {
    width: 32px;
    height: 32px;
}

.planspace-logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
}

.planspace-logo-text .light {
    font-weight: 400;
    color: #64748b;
}

.planspace-welcome-text {
    color: #64748b;
    font-size: 16px;
    margin-bottom: 8px;
}

.planspace-subtitle {
    color: #94a3b8;
    font-size: 14px;
}

.planspace-form-input:focus {
    outline: none;
    border-color: #10b981;
    background: white;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.planspace-login-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.planspace-login-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.planspace-login-footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
    color: #94a3b8;
    font-size: 12px;
}

/* App Layout */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-mobile {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 8px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    display: none;
    min-height: 44px;
}

.header-mobile .mobile-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.header-mobile .logo {
    font-size: 16px;
    font-weight: 700;
    color: #10b981;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.header-mobile .mobile-user-info {
    flex: 1;
    min-width: 0;
    text-align: center;
}

.header-mobile .mobile-user-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-mobile .mobile-department {
    color: #64748b;
    font-size: 10px;
    line-height: 1;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-mobile .mobile-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.header-mobile .mobile-profile-btn {
    padding: 4px 6px;
    font-size: 10px;
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    white-space: nowrap;
}

.header-mobile .mobile-logout {
    padding: 4px 8px;
    font-size: 10px;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    white-space: nowrap;
}

.header-mobile .mobile-logout:hover,
.header-mobile .mobile-profile-btn:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: #10b981;
    display: flex;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-role {
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
}

.main-content {
    flex: 1;
    padding: 24px;
    padding-bottom: 250px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    background: white;
    border-radius: 12px 12px 0 0;
}

.tab {
    padding: 16px 24px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    font-weight: 500;
    background: white;
    border: none;
    color: #64748b;
}

.tab.active {
    border-bottom-color: #10b981;
    color: #10b981;
}

.tab:hover {
    background: #f0fdf4;
    color: #059669;
}

.tab-content {
    display: none !important;
    padding: 24px;
    background: white;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.tab-content.active {
    display: block !important;
}

/* Form Elements */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    color: #374151;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s;
    background: #fff;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* Week Grid */

/* Planning Management Styles */
.planning-view-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.planning-view-btn {
    padding: 10px 20px;
    border: 2px solid #e2e8f0;
    background: white;
    color: #64748b;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 14px;
}

.planning-view-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.planning-view-btn:hover:not(.active) {
    border-color: #3b82f6;
    color: #3b82f6;
}

.planning-view {
    display: none;
}

.planning-view.active {
    display: block;
}

.planning-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 20px;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-btn {
    padding: 8px 16px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    color: #475569;
    font-size: 14px;
    transition: all 0.2s;
}

.nav-btn:hover:not(:disabled) {
    background: #e2e8f0;
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.current-period {
    font-weight: 600;
    color: #1e293b;
    font-size: 16px;
}

/* Hours Modal Styles */
.planning-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

#hours-modal {
    z-index: 1100;
}

#day-management-modal {
    z-index: 1000;
}

.planning-modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.modal-header {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1e293b;
}

.employee-hours-info {
    background: #f8fafc;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    color: #64748b;
    font-size: 14px;
}

.hours-config {
    margin-bottom: 25px;
}

.hours-range {
    display: flex;
    gap: 10px;
    align-items: center;
}

.hours-range label {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
    min-width: 40px;
}

#start-hour-select, #end-hour-select {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    background: white;
    color: #1e293b;
    cursor: pointer;
    min-width: 80px;
}

#start-hour-select:focus, #end-hour-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.modal-btn.primary {
    background: #3b82f6;
    color: white;
}

.modal-btn.primary:hover {
    background: #2563eb;
}

.modal-btn.secondary {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.modal-btn.secondary:hover {
    background: #f1f5f9;
}

.modal-btn.danger {
    background: #ef4444;
    color: white;
}

.toggle-controls {
    display: flex;
    gap: 15px;
}

.toggle-switch {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle {
    width: 44px;
    height: 24px;
    background: #e2e8f0;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
}

.toggle.active {
    background: #3b82f6;
}

.toggle-thumb {
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: transform 0.2s;
}

.toggle.active .toggle-thumb {
    transform: translateX(20px);
}

.toggle-label {
    font-size: 14px;
    color: #475569;
}

.month-day.weekend {
    background: #f8fafc;
    border-left: 3px solid #94a3b8;
}

.month-day.weekend:hover {
    background: #f1f5f9;
}

.month-day.weekend .month-planning {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #cbd5e1;
}

.day-modal-content {
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.day-info {
    background: #f8fafc;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
}

.day-employees-section,
.add-employee-section {
    margin-bottom: 25px;
}

.day-employees-section h4,
.add-employee-section h4 {
    font-size: 16px;
    color: #1e293b;
    margin-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 5px;
}

.day-employees-list {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    min-height: 100px;
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
}

.day-employee-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.day-employee-item:hover {
    background: #f1f5f9;
    border-color: #3b82f6;
}

.day-employee-item:last-child {
    margin-bottom: 0;
}

.day-employee-name {
    font-weight: 500;
    color: #1e293b;
    flex: 1;
}

.day-employee-hours {
    font-size: 12px;
    color: #64748b;
    background: #e2e8f0;
    padding: 2px 6px;
    border-radius: 3px;
    margin-right: 10px;
}

.day-employee-remove {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 4px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.day-employee-remove:hover {
    background: #dc2626;
}

.employee-selector {
    display: flex;
    gap: 10px;
    align-items: center;
}

.employee-selector select {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    color: #1e293b;
    font-size: 14px;
}

.employee-selector select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.day-employees-list:empty::after {
    content: "No employees scheduled for this day";
    color: #94a3b8;
    font-style: italic;
    display: block;
    text-align: center;
    padding: 20px;
}

.monthly-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.month-day-header {
    background: #f8fafc;
    padding: 10px;
    text-align: center;
    font-weight: 600;
    color: #1e293b;
    font-size: 12px;
}

.month-day {
    background: white;
    min-height: 80px;
    padding: 8px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
}

.month-day:hover {
    background: #f8fafc;
}

.month-day.other-month {
    background: #f8fafc;
    opacity: 0.6;
}

.month-day.today {
    background: #fef3c7;
}

.month-date {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
    font-weight: 500;
}

.month-planning {
    font-size: 9px;
    color: #059669;
    background: #ecfdf5;
    padding: 2px 4px;
    border-radius: 3px;
    margin-bottom: 2px;
    line-height: 1.2;
}

.day-date {
    font-size: 12px;
    color: #94a3b8;
    margin-left: 5px;
}

/* Employee chip enhancements for hours */
.employee-chip {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.employee-chip:hover {
    background: #2563eb !important;
}

.employee-name {
    flex: 1;
}

.employee-hours-tag {
    background: rgba(255,255,255,0.2);
    color: white;
    font-size: 9px;
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.3);
}

.employee-chip .remove-btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

.employee-chip .remove-btn:hover {
    background: #ef4444;
    border-color: #ef4444;
}


.week-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.day-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    min-height: 180px;
    transition: all 0.2s;
}

.day-card:hover {
    border-color: #10b981;
    background: #f0fdf4;
}

.day-card.selected {
    border-color: #10b981;
    background: #ecfdf5;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.1);
}

.day-card.today {
    border-color: #f59e0b;
    background: #fef3c7;
}

.day-header {
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.capacity-indicator {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px 8px;
    text-align: center;
    margin-bottom: 12px;
    font-size: 11px;
    font-weight: 500;
}

.capacity-indicator.low { 
    background: #dcfce7; 
    border-color: #bbf7d0; 
    color: #166534; 
}

.capacity-indicator.medium { 
    background: #fef3c7; 
    border-color: #fde68a; 
    color: #92400e; 
}

.capacity-indicator.high { 
    background: #fef2f2; 
    border-color: #fecaca; 
    color: #991b1b; 
}

.employee-chip {
    background: #3b82f6;
    color: white;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 12px;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.employee-chip:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.team-color-1 { background: #10b981; }
.team-color-2 { background: #10b981; }
.team-color-3 { background: #f59e0b; }
.team-color-4 { background: #ef4444; }
.team-color-5 { background: #8b5cf6; }

.remove-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 3px;
    color: white;
    cursor: pointer;
    padding: 2px 6px;
    font-size: 10px;
    margin-left: 8px;
}

.remove-btn:hover {
    background: rgba(255,255,255,0.3);
}

.add-btn {
    border: 2px dashed #cbd5e1;
    background: none;
    border-radius: 6px;
    padding: 8px;
    width: 100%;
    color: #64748b;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.add-btn:hover {
    border-color: #10b981;
    color: #059669;
    background: #f0fdf4;
}

/* Desk Grid */
.desk-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    max-width: 500px;
    margin: 20px 0;
}

.desk {
    aspect-ratio: 1;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 12px;
    background: white;
}

.desk.available {
    background: #10b981;
    color: white;
    border-color: #059669;
}

.desk.available:hover {
    background: #059669;
    transform: scale(1.05);
}

.desk.booked {
    background: #ef4444;
    color: white;
    border-color: #dc2626;
    cursor: not-allowed;
}

.desk.selected {
    border-color: #059669;
    border-width: 3px;
    transform: scale(1.1);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.3);
}

.desk-occupant {
    font-size: 9px;
    opacity: 0.8;
    margin-top: 2px;
    text-align: center;
}

/* Tables */
.user-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.user-table th,
.user-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.user-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #374151;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-table tr:hover {
    background: #f8fafc;
}

.user-table tr:last-child td {
    border-bottom: none;
}

/* Status Badges */
.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active { 
    background: #dcfce7; 
    color: #166534; 
}

.status-inactive { 
    background: #fef2f2; 
    color: #991b1b; 
}

/* Schedule Summary */
.schedule-summary {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin: 0 auto 24px auto;
    max-width: 500px;
    text-align: center;
}

.schedule-summary h3 {
    margin-bottom: 12px;
    color: #1e293b;
}

.schedule-days {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.schedule-day {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    min-width: 40px;
    text-align: center;
}

.schedule-day.work-day {
    background: #3b82f6;
    color: white;
}

.schedule-day.off-day {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

/* Meeting Room Calendar */
.meeting-room-calendar {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 16px;
    margin-top: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.time-slots {
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
}

.time-slot {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #64748b;
    border-bottom: 1px solid #f1f5f9;
    font-weight: 500;
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.room-column {
    border-right: 1px solid #e2e8f0;
}

.room-column:last-child {
    border-right: none;
}

.room-header {
    background: #f8fafc;
    padding: 8px 12px;
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    border-bottom: 1px solid #e2e8f0;
    color: #1e293b;
}

.room-slot {
    height: 40px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 10px;
    font-weight: 500;
}

.room-slot:hover {
    background: #f1f5f9;
}

.room-slot.booked {
    background: #fef2f2;
    color: #991b1b;
    cursor: not-allowed;
}

.room-slot.available {
    background: #dcfce7;
    color: #166534;
}

.room-slot.available:hover {
    background: #bbf7d0;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    width: 100%;
    max-width: 500px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #f1f5f9;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #64748b;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.close-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* Modal Mobile Styles */
@media (max-width: 1024px) {
    .modal {
        padding: 8px;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .modal-content {
        padding: 20px;
        border-radius: 8px;
        max-height: calc(100vh - 40px);
        margin: 0;
    }
    
    .modal-content h3 {
        font-size: 18px;
        margin-bottom: 16px;
        margin-top: 8px;
        padding-right: 40px;
    }
    
    .modal-content .form-group {
        margin-bottom: 12px;
    }
    
    .modal-content .form-group label {
        font-size: 13px;
        margin-bottom: 4px;
    }
    
    .modal-content .form-input {
        padding: 10px 12px;
        font-size: 14px;
        border-radius: 6px;
    }
    
    .modal-content .btn {
        padding: 10px 16px;
        font-size: 13px;
        border-radius: 6px;
    }
    
    .modal-content .btn-full {
        margin-top: 8px;
    }
    
    .close-btn {
        width: 28px;
        height: 28px;
        font-size: 16px;
        top: 8px;
        right: 8px;
    }
    

    
    /* Edit User Modal - Department Checkboxes Mobile */
    #edit-departments-checkboxes {
        max-height: 120px;
        overflow-y: auto;
        border: 1px solid #e2e8f0;
        border-radius: 6px;
        padding: 8px;
        background: #f8fafc;
    }
    
    #edit-departments-checkboxes label {
        font-size: 12px;
        margin-bottom: 6px;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    
    /* Time Input Group Mobile */
    .time-input-group {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .time-input label {
        font-size: 12px;
        margin-bottom: 3px;
    }
    
    /* Modal form elements mobile optimization */
    .modal-content select.form-input {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
        background-position: right 8px center;
        background-repeat: no-repeat;
        background-size: 16px;
        padding-right: 32px;
    }
    
    /* Small text in modals */
    .modal-content small {
        font-size: 11px;
        line-height: 1.3;
    }
    
    /* HR in modals */
    .modal-content hr {
        margin: 16px 0;
    }
    
    /* Modal h4 */
    .modal-content h4 {
        font-size: 16px;
        margin-bottom: 12px;
    }
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stat-card:hover {
    border-color: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        padding: 16px;
    }
    
    .week-grid {
        grid-template-columns: 1fr;
    }
    
    .desk-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .rooms-grid {
        grid-template-columns: 1fr;
    }
    
    .meeting-room-calendar {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-content {
        padding: 16px;
        margin: 16px;
    }
    
    .header {
        display: none;
    }
    
    .header-mobile {
        display: block;
    }
    
    .user-info .btn[data-action="logout"] {
        padding: 8px;
        min-width: auto;
        border-radius: 6px;
    }
    
    .user-info .btn[data-action="logout"]:before {
        content: "🔓";
        font-size: 16px;
    }
    
    .user-info .btn[data-action="logout"] {
        font-size: 0;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .user-profile-section {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 2px;
    }
    
    .user-info #user-profile-btn {
        padding: 4px 8px;
        font-size: 12px;
        border-radius: 4px;
    }
    
    .user-info #user-department-role {
        font-size: 10px;
        padding: 2px 6px;
        border-radius: 4px;
        text-align: right;
        line-height: 1.2;
    }
    
    .tabs {
        flex-wrap: wrap;
    }
    
    .tab {
        flex: 1;

        text-align: center;
        padding: 12px 8px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .sidesk-login-container {
        padding: 24px;
        margin: 16px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .schedule-days {
        justify-content: center;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.hidden { display: none; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.w-full { width: 100%; }

/* Admin specific styles */
.sidesk-admin-login {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.sidesk-admin-login h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.sidesk-admin-login label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.sidesk-admin-login input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    box-sizing: border-box;
}






/* Office Layout Styles */
.office-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
}

.office-floor {
    width: 600px;
    height: 700px;
    background: linear-gradient(135deg, #6b7c93 0%, #5a6b7d 100%);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    padding: 40px 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

/* Windows light effect from right */
.windows {
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(270deg, 
        rgba(255, 255, 255, 0.3) 0%, 
        rgba(255, 255, 255, 0.15) 15%, 
        rgba(135, 206, 235, 0.1) 25%, 
        rgba(135, 206, 235, 0.05) 40%, 
        transparent 60%);
    pointer-events: none;
}

/* Window frames on the right wall */
.windows::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50px;
    width: 20px;
    height: calc(100% - 100px);
    background: linear-gradient(to bottom,
        rgba(173, 216, 230, 0.4) 0%,
        rgba(173, 216, 230, 0.3) 25%,
        rgba(135, 206, 235, 0.4) 25%,
        rgba(135, 206, 235, 0.3) 50%,
        rgba(173, 216, 230, 0.4) 50%,
        rgba(173, 216, 230, 0.3) 75%,
        rgba(135, 206, 235, 0.4) 75%,
        rgba(135, 206, 235, 0.3) 100%);
    border-radius: 8px 0 0 8px;
}

.desk-set {
    background: linear-gradient(145deg, #f5f0e8, #e8ddd4);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    width: 520px;
    height: 160px;
    position: relative;
}

.desk-grid-office {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2px;
    height: 100%;
    width: 100%;
}

.green-separator {
    position: absolute;
    left: 8px;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    background: linear-gradient(90deg, #2d5a27, #4a7c59, #2d5a27);
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(45, 90, 39, 0.3);
}

.desk-office {
    background: linear-gradient(145deg, #f5f0e8, #e8ddd4);
    border: 1px solid #d4c4b0;
    border-radius: 8px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.1),
        inset 0 1px 2px rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.desk-office:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.15),
        inset 0 1px 2px rgba(255,255,255,0.4);
    background: linear-gradient(145deg, #f8f3eb, #ebe0d7);
}

.desk-office.booked {
    background: #fecaca;
    border-color: #f87171;
    cursor: not-allowed;
}

.desk-office.partially-available {
    background: #fed7aa;
    border-color: #fb923c;
    cursor: pointer;
}

.desk-office.partially-available:hover {
    background: #fdba74;
    border-color: #ea580c;
}

.manager-desk.partially-available {
    background: #fed7aa;
    border-color: #fb923c;
    cursor: pointer;
}

.manager-desk.partially-available:hover {
    background: #fdba74;
    border-color: #ea580c;
}

.desk-office_fkjh9.partially-available {
    background: #fed7aa;
    border-color: #fb923c;
    cursor: pointer;
}

.desk-office_fkjh9.partially-available:hover {
    background: #fdba74;
    border-color: #ea580c;
}

.desk-office.available {
    background: linear-gradient(145deg, #f5f0e8, #e8ddd4);
    cursor: pointer;
}

.desk-office.selected {
    background: linear-gradient(145deg, #d1fae5, #a7f3d0);
    border-color: #10b981;
    box-shadow: 
        0 0 0 3px rgba(16, 185, 129, 0.3),
        0 4px 8px rgba(0,0,0,0.15);
}

.desk-number {
    font-weight: 700;
    font-size: 16px;
    color: #2c3e50;
}

.desk-office.booked .desk-number {
    color: #c62828;
}

.desk-office.selected .desk-number {
    color: #2e7d32;
}

.desk-occupant {
    font-size: 9px;
    opacity: 0.8;
    margin-top: 2px;
    text-align: center;
    color: #2c3e50;
}

.desk-office.booked .desk-occupant {
    color: #c62828;
}

.office-legend {
    display: flex;
    gap: 20px;
    background: rgba(255,255,255,0.95);
    padding: 12px 16px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.legend-available { 
    background: linear-gradient(145deg, #f5f0e8, #e8ddd4); 
}

.legend-booked { 
    background: linear-gradient(145deg, #ffebee, #ffc1cc); 
}

.legend-selected { 
    background: linear-gradient(145deg, #e8f5e8, #c8e6c9); 
}
.legend-my-booking { 
    background: linear-gradient(145deg, #e1f5fe, #b3e5fc);
}

.set-label {
    position: absolute;
    top: -8px;
    left: 20px;
    background: #2c3e50;
    color: white;
    z-index: 15;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .office-floor {
        width: 100%;
        max-width: 500px;
        height: 600px;
        padding: 20px 10px;
    }
    
    .desk-set {
        width: 90%;
        height: 140px;
    }
    
    .desk-number {
        font-size: 14px;
    }
    
    .office-legend {
        flex-wrap: wrap;
        justify-content: center;
    }
}




.desk-office.my-booking {
    background: linear-gradient(145deg, #e1f5fe, #b3e5fc);
    border-color: #10b981;
}

.desk-office.my-booking .desk-number {
    color: #1976d2;
}

.desk-office.my-booking .desk-occupant {
    color: #1976d2;
}

.desk-office.my-booking:hover {
    background: linear-gradient(145deg, #e1f5fe, #b3e5fc);
}

/* Cancel button for personal bookings */
.cancel-booking {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 18px;
    height: 18px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
}

.cancel-booking:hover {
    background: #d32f2f;
    transform: scale(1.1);
}

.desk-office.my-booking:hover .cancel-booking {
    display: flex;
}

/* Update legend for personal bookings */
.week-nav-btn:hover:not(:disabled) {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}


/* Custom Calendar Styles */
#custom-calendar {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin: 8px 0;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.calendar-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 16px;
}

.calendar-weeks {
    display: flex;
    gap: 16px;
}

.calendar-week {
    flex: 1;
    background: #f8fafc;
    border-radius: 8px;
    padding: 12px;
}

.week-label {
    text-align: center;
    font-weight: 600;
    color: #64748b;
    font-size: 12px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.week-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.day-header {
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
    padding: 4px;
    text-transform: uppercase;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    position: relative;
}

.calendar-day.selectable {
    background: #ffffff;
    color: #1e293b;
    border-color: #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.calendar-day.selectable:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.calendar-day.weekend {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.6;
}

.calendar-day.weekend::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 1px;
    background: #94a3b8;
    transform: translateY(-50%);
}

.calendar-day.selected {
    background: #3b82f6;
    color: white;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.calendar-day.today {
    border-color: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.3);
}

.calendar-day.today.selected {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.calendar-day.past {
    background: #f8fafc;
    color: #cbd5e1;
    cursor: not-allowed;
    opacity: 0.5;
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #64748b;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    border: 1px solid #cbd5e1;
}

.legend-selectable { background: #ffffff; }
.legend-weekend { background: #f1f5f9; }
.legend-today { background: #f59e0b; }
.legend-selected { background: #3b82f6; }

@media (max-width: 1024px) {
    .calendar-weeks {
        flex-direction: column;
        gap: 12px;
    }
    
    .calendar-legend {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .legend-item {
        font-size: 10px;
    }
}




/* Simple Calendar Dropdown Styles */
.calendar-dropdown {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin: 8px auto;
    max-width: 400px;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.week-nav-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
    color: #64748b;
}

.week-nav-btn:hover:not(:disabled) {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.week-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.week-display {
    font-weight: 600;
    color: #1e293b;
    font-size: 16px;
    text-align: center;
    flex: 1;
}

.week-calendar {
    width: 100%;
}

.weekdays-header {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

.weekday-header {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    padding: 8px 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.weekdays-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid #e2e8f0;
    background: white;
    color: #1e293b;
    min-height: 48px;
}

.calendar-day:hover {
    background: #10b981;
    color: white;
    border-color: #10b981;
    transform: translateY(-1px);
}

.calendar-day.selected {
    background: #10b981;
    color: white;
    border-color: #059669;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.calendar-day.today {
    border-color: #f59e0b;
    background: #fef3c7;
    color: #92400e;
}

.calendar-day.today.selected {
    background: #3b82f6;
    color: white;
    border-color: #2563eb;
}

.calendar-day.past {
    background: #f8fafc;
    color: #cbd5e1;
    cursor: not-allowed;
    opacity: 0.6;
}

.calendar-day.past:hover {
    background: #f8fafc;
    color: #cbd5e1;
    border-color: #e2e8f0;
    transform: none;
}

.day-number {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.day-name {
    font-size: 10px;
    font-weight: 400;
    opacity: 0.8;
}

@media (max-width: 1024px) {
    .weekdays-header,
    .weekdays-grid {
        gap: 4px;
    }
    
    .calendar-day {
        min-height: 40px;
    }
    
    .day-number {
        font-size: 14px;
    }
    
    .day-name {
        font-size: 9px;
    }
}


.day-name {
    font-size: 10px;
    font-weight: 500;
    opacity: 0.9;
    text-transform: capitalize;
    color: inherit;
}

.calendar-day.today .day-name {
    color: inherit;
    opacity: 0.8;
}

.calendar-day.selected .day-name {
    color: inherit;
    opacity: 0.9;
}









/* Microsoft Teams Style Meeting Room Calendar - Flexible Design _fdr25 */
.room-selection-container_fdr25 {
    margin-bottom: 24px;
}

.room-selection-container_fdr25 h3 {
    margin-bottom: 16px;
    color: #242424;
    font-weight: 600;
    font-size: 20px;
}

.rooms-grid_fdr25 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.room-card_fdr25 {
    background: #ffffff;
    border: 1px solid #d1d1d1;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.room-card_fdr25:hover {
    border-color: #0078d4;
    box-shadow: 0 2px 8px rgba(0, 120, 212, 0.15);
}

.room-card_fdr25.selected {
    border-color: #0078d4;
    background: #f3f9fd;
    box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.3);
}

.room-icon_fdr25 {
    font-size: 28px;
    margin-bottom: 8px;
}

.room-name_fdr25 {
    font-weight: 600;
    color: #242424;
    margin-bottom: 4px;
    font-size: 16px;
}

.room-capacity_fdr25 {
    font-size: 14px;
    color: #616161;
}

.calendar-header-meeting_fdr25 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #edebe9;
    background: #faf9f8;
}

.calendar-header-meeting_fdr25 h3 {
    margin: 0;
    color: #242424;
    font-size: 20px;
    font-weight: 600;
}

.week-nav-container_fdr25 {
    display: flex;
    align-items: center;
    gap: 20px;
}

.week-nav-meeting_fdr25 {
    display: flex;
    align-items: center;
    gap: 12px;
}

.week-nav-btn-meeting_fdr25 {
    background: #ffffff;
    border: 1px solid #d1d1d1;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
    color: #242424;
}

.week-nav-btn-meeting_fdr25:hover:not(:disabled) {
    background: #f0fdf4;
    border-color: #10b981;
}

.week-nav-btn-meeting_fdr25:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.week-label-meeting_fdr25 {
    font-size: 16px;
    color: #242424;
    font-weight: 500;
    min-width: 100px;
    text-align: center;
}

/* Clean Calendar Grid _fdr25 */
.weekly-calendar_fdr25 {
    background: #ffffff;
    border: 1px solid #d1d1d1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.calendar-grid_fdr25 {
    display: grid;
    grid-template-columns: 80px repeat(5, 1fr);
    background: #ffffff;
}

.calendar-header-cell_fdr25 {
    background: #f8f8f8;
    border-right: 1px solid #edebe9;
    border-bottom: 2px solid #edebe9;
    padding: 16px 8px;
    text-align: center;
    font-weight: 600;
    color: #242424;
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.calendar-header-cell_fdr25:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.calendar-time-cell_fdr25 {
    background: #f8f8f8;
    border-right: 1px solid #edebe9;
    border-bottom: 1px solid #edebe9;
    padding: 8px;
    text-align: center;
    font-size: 12px;
    color: #616161;
    font-weight: 500;
    height: 60px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 4px;
}

.day-column_fdr25 {
    border-right: 1px solid #edebe9;
    position: relative;
    min-height: 600px;
    background: #ffffff;
}

.day-column_fdr25:last-child {
    border-right: none;
}

/* Hour lines _fdr25 */
.hour-line_fdr25 {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: #edebe9;
    z-index: 1;
}

/* Meeting blocks - positioned absolutely for flexibility _fdr25 */
.meeting-block_fdr25 {
    position: absolute;
    left: 4px;
    right: 4px;
    background: #e1f5fe;
    border-left: 3px solid #0078d4;
    border-radius: 4px;
    padding: 6px 8px;
    font-size: 11px;
    line-height: 1.3;
    color: #323130;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 2;
}

.meeting-block_fdr25:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.meeting-block_fdr25.other-booking {
    background: #fef7f7;
    border-left-color: #c4314b;
}

.meeting-block_fdr25.my-booking {
    background: #e8f5e8;
    border-left-color: #107c10;
}

.meeting-person_fdr25 {
    font-weight: 500;
    margin-bottom: 1px;
}

.meeting-team_fdr25 {
    font-size: 10px;
    color: #605e5c;
    opacity: 0.8;
}

/* Cancel button for my meetings _fdr25 */
.cancel-meeting-btn_fdr25 {
    position: absolute;
    top: 2px;
    right: 4px;
    width: 14px;
    height: 14px;
    background: #c4314b;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: bold;
    line-height: 1;
}

.meeting-block_fdr25.my-booking:hover .cancel-meeting-btn_fdr25 {
    display: flex;
}

/* Booking zones (clickable areas for available slots) _fdr25 */
.booking-zone_fdr25 {
    position: absolute;
    left: 0;
    right: 0;
    height: 30px;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 1;
}

.booking-zone_fdr25:hover {
    background: rgba(0, 120, 212, 0.1);
}

.day-name_fdr25 {
    font-size: 14px;
    font-weight: 600;
}

.day-date_fdr25 {
    font-size: 12px;
    color: #616161;
    font-weight: 400;
}

/* Responsive _fdr25 */
@media (max-width: 1024px) {
    .rooms-grid_fdr25 {
        grid-template-columns: 1fr;
    }
    
    .calendar-grid_fdr25 {
        grid-template-columns: 60px repeat(5, 1fr);
    }
    
    .week-nav-container_fdr25 {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .calendar-header-cell_fdr25 {
        padding: 12px 4px;
        font-size: 12px;
    }
    
    .calendar-time-cell_fdr25 {
        font-size: 10px;
        padding: 4px;
    }
    
    .day-column_fdr25 {
        min-height: 500px;
    }
}




/* Office Layout Meeting Room Selection - Exact Implementation */
.office-meeting-layout_fdr25 {
    background: linear-gradient(135deg, #6b7c93 0%, #5a6b7d 100%);
    min-height: 600px;
    position: relative;
    padding: 40px 20px;
    border-radius: 8px;

}

.office-meeting-layout_fdr25::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.1) 0%, 
        rgba(0, 0, 0, 0.3) 40%, 
        rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
    z-index: 1;
}

.meeting-rooms-top_fdr25 {
    display: flex;
    justify-content: flex-start;
    gap: 0;
    margin-bottom: 80px;
    margin-left: 40px;
    position: relative;
    z-index: 2;
}

@media (max-width: 1024px) {
    .meeting-rooms-top_fdr25 {
        justify-content: center !important;
        margin-left: 0 !important;
        margin-bottom: 40px !important;
        gap: 4px !important;
        flex-direction: row !important;
        display: flex !important;
    }
}



.meeting-room_fdr25 {
    background: #f5f0e8;
    border: 3px solid #2c3e50;
    border-radius: 12px;
    width: 160px;
    height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

@media (max-width: 1024px) {
    .meeting-room_fdr25 {
        width: 90px;
        height: 90px;
        border-width: 2px;
        border-radius: 8px;
    }
}

@media (max-width: 1024px) {
    #employee-view .desk-area_fdr25 {
        display: none;
    }
    #employee-view .desk-area_fdr255 {
        display: none;
    }
}

.meeting-room_fdr25:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: 1px solid #2c3e50;
}

.meeting-room_fdr25:nth-child(2) {
    border-radius: 0;
    border-left: 1px solid #2c3e50;
    border-right: 1px solid #2c3e50;
}

.meeting-room_fdr25:last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: 1px solid #2c3e50;
}

@media (max-width: 1024px) {
    .meeting-room_fdr25:first-child {
        border-radius: 8px;
        border-right: 3px solid #2c3e50;
    }

    .meeting-room_fdr25:nth-child(2) {
        border-radius: 8px;
        border-left: 3px solid #2c3e50;
        border-right: 3px solid #2c3e50;
    }

    .meeting-room_fdr25:last-child {
        border-radius: 8px;
        border-left: 3px solid #2c3e50;
    }
}

.meeting-room_fdr25:hover {
    background: #e8ddd4;
    transform: translateY(-2px);
}

.meeting-room_fdr25.selected {
    background: #d1fae5;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.5);
}

.room-text_fdr25 {
    font-size: 16px;
    font-weight: bold;
    color: #2c3e50;
    text-align: center;
    line-height: 1.2;
}

@media (max-width: 1024px) {
    .room-text_fdr25 {
        font-size: 10px;
        line-height: 1.1;
    }
}

.desk-area_fdr25 {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 30px;
    position: relative;
    z-index: 1;
    opacity: 0.4;
    margin-right: 40px;
}
.desk-area_fdr255 {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 30px;
    position: relative;
    z-index: 1;
    opacity: 0.4;
    margin-right: 40px;
}

.desk-set_fdr25 {
    background: linear-gradient(145deg, #f5f0e8, #e8ddd4);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    width: 520px;
    height: 160px;
    position: relative;
}

.desk-grid_fdr25 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2px;
    height: 100%;
    width: 100%;
}

.green-separator_fdr25 {
    position: absolute;
    left: 8px;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    background: linear-gradient(90deg, #2d5a27, #4a7c59, #2d5a27);
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(45, 90, 39, 0.3);
}

.desk_fdr25 {
    background: linear-gradient(145deg, #f5f0e8, #e8ddd4);
    border: 1px solid #d4c4b0;
    border-radius: 8px;
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.1),
        inset 0 1px 2px rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.desk-number_fdr25 {
    font-weight: 700;
    font-size: 16px;
    color: #2c3e50;
}

.set-label_fdr25 {
    position: absolute;
    top: -8px;
    left: 20px;
    background: #2c3e50;
    color: white;
    z-index: 15;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Calendar overlay that appears over desks */
.calendar-overlay_fdr25 {
    position: absolute;
    top: 280px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    background: #ffffff;
    border: 1px solid #d1d1d1;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 10;
    display: none;
}

@media (max-width: 1024px) {
    .calendar-overlay_fdr25 {
        position: absolute;
        top: 200px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 1000px;
        background: #ffffff;
        border: 1px solid #d1d1d1;
        border-radius: 8px;
        margin-bottom: 200px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        z-index: 10;
        display: none;
    }
}

.calendar-overlay_fdr25.active {
    display: block;
    margin-bottom: 200px !important;
}

.calendar-header-meeting_fdr25 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #edebe9;
    background: #faf9f8;
    border-radius: 8px 8px 0 0;
}

.calendar-header-meeting_fdr25 h3 {
    margin: 0;
    color: #242424;
    font-size: 20px;
    font-weight: 600;
}

.week-nav-container_fdr25 {
    display: flex;
    align-items: center;
    gap: 20px;
}

.week-nav-meeting_fdr25 {
    display: flex;
    align-items: center;
    gap: 12px;
}

.week-nav-btn-meeting_fdr25 {
    background: #ffffff;
    border: 1px solid #d1d1d1;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
    color: #242424;
}

.week-nav-btn-meeting_fdr25:hover:not(:disabled) {
    background: #f3f2f1;
    border-color: #0078d4;
}

.week-nav-btn-meeting_fdr25:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.week-label-meeting_fdr25 {
    font-size: 16px;
    color: #242424;
    font-weight: 500;
    min-width: 100px;
    text-align: center;
}

.weekly-calendar_fdr25 {
    background: #ffffff;
}

.calendar-grid_fdr25 {
    display: grid;
    grid-template-columns: 80px repeat(5, 1fr);
    background: #ffffff;
}

.calendar-header-cell_fdr25 {
    background: #f8f8f8;
    border-right: 1px solid #edebe9;
    border-bottom: 2px solid #edebe9;
    padding: 16px 8px;
    text-align: center;
    font-weight: 600;
    color: #242424;
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.calendar-header-cell_fdr25:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.calendar-time-cell_fdr25 {
    background: #f8f8f8;
    border-right: 1px solid #edebe9;
    border-bottom: 1px solid #edebe9;
    padding: 8px;
    text-align: center;
    font-size: 12px;
    color: #616161;
    font-weight: 500;
    height: 60px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 4px;
}

.day-column_fdr25 {
    border-right: 1px solid #edebe9;
    position: relative;
    min-height: 600px;
    background: #ffffff;
}

.day-column_fdr25:last-child {
    border-right: none;
}

.hour-line_fdr25 {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: #edebe9;
    z-index: 1;
}

.meeting-block_fdr25 {
    position: absolute;
    left: 4px;
    right: 4px;
    background: #e1f5fe;
    border-left: 3px solid #0078d4;
    border-radius: 4px;
    padding: 6px 8px;
    font-size: 11px;
    line-height: 1.3;
    color: #323130;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 2;
}

.meeting-block_fdr25:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.meeting-block_fdr25.other-booking {
    background: #fef7f7;
    border-left-color: #c4314b;
}

.meeting-block_fdr25.my-booking {
    background: #e8f5e8;
    border-left-color: #107c10;
}

.meeting-person_fdr25 {
    font-weight: 500;
    margin-bottom: 1px;
}

.meeting-team_fdr25 {
    font-size: 10px;
    color: #605e5c;
    opacity: 0.8;
}

.cancel-meeting-btn_fdr25 {
    position: absolute;
    top: 2px;
    right: 4px;
    width: 14px;
    height: 14px;
    background: #c4314b;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: bold;
    line-height: 1;
}

.meeting-block_fdr25.my-booking:hover .cancel-meeting-btn_fdr25 {
    display: flex;
}

.booking-zone_fdr25 {
    position: absolute;
    left: 0;
    right: 0;
    height: 30px;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 1;
}

.booking-zone_fdr25:hover {
    background: rgba(0, 120, 212, 0.1);
}

.day-name_fdr25 {
    font-size: 14px;
    font-weight: 600;
}

.day-date_fdr25 {
    font-size: 12px;
    color: #616161;
    font-weight: 400;
}

@media (max-width: 1024px) {
    .office-meeting-layout_fdr25 {
        padding: 20px 10px;
    }
    
    .meeting-rooms-top_fdr25 {
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 4px !important;
        margin-left: 0 !important;
        margin-bottom: 0px !important;
    }

    .meeting-room_fdr25 {
        width: 90px !important;
        height: 90px !important;
    }
    
    .desk-area_fdr25 {
        align-items: center;
        margin-right: 0;
    }
    .desk-area_fdr255 {
        align-items: center;
        margin-right: 0;
    }
    
    .desk-set_fdr25 {
        width: 90%;
        max-width: 400px;
    }
    
    .calendar-overlay_fdr25 {
        width: 120%;
        margin-bottom: 200px;
    }
}






.time-input-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.time-input {
    display: flex;
    flex-direction: column;
}

.time-input label {
    margin-bottom: 4px;
    font-weight: 500;
    color: #374151;
}

/* Manager Desk Overview Styles */
.manager-desk-overview {
    opacity: 1 !important;
    margin-top: 20px;
}

.desk-overview-nav {
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 20px;
}

.date-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.date-nav-header h4 {
    margin: 0;
    color: #1e293b;
    font-size: 18px;
    font-weight: 600;
}

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

.week-nav-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
    color: #64748b;
}

.week-nav-btn:hover:not(:disabled) {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.week-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.week-display {
    font-weight: 600;
    color: #1e293b;
    font-size: 16px;
    min-width: 100px;
    text-align: center;
}

.weekdays-header-desk {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.weekday-header-desk {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    padding: 8px 4px;
    background: #f8fafc;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.weekday-header-desk.active {
    background: #10b981;
    color: white;
    border-color: #059669;
}

.weekday-header-desk:hover {
    background: #e2e8f0;
}

.weekday-header-desk.active:hover {
    background: #2563eb;
}

.weekday-name {
    font-size: 12px;
    font-weight: 600;
}

.weekday-date {
    font-size: 9px;
    font-weight: 400;
    opacity: 0.8;
}

.desk-sets-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.manager-desk {
    cursor: default !important;
    transition: all 0.2s ease;
}

.manager-desk.occupied {
    background: linear-gradient(145deg, #d9d4e8, #b9b0d4) !important;
    border-color: #9182b8 !important;
}

/* Enable booking zones for manager view */
#calendar-overlay-manager-fdr25 .booking-zone_fdr25 {
    cursor: pointer !important;
}

#calendar-overlay-manager-fdr25 .booking-zone_fdr25:hover {
    background: rgba(0, 120, 212, 0.1) !important;
}

.desk-occupant_fdr25 {
    font-size: 9px;
    color: #1e293b;
    margin-top: 2px;
    text-align: center;
    font-weight: 500;
    min-height: 12px;
}

/* Manager desk booking styles */
.manager-desk.available {
    cursor: pointer;
}

.manager-desk.available:hover {
    background: #e8ddd4;
    transform: translateY(-2px);
}

.manager-desk.selected {
    background: #d1fae5 !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.5);
}

.manager-desk.booked {
    background: linear-gradient(145deg, #ffebee, #ffc1cc) !important;
    border-color: #f8bbd9 !important;
    cursor: not-allowed !important;
}

.manager-desk.my-booking {
    background: linear-gradient(145deg, #e3f2fd, #bbdefb) !important;
    border-color: #2196f3 !important;
}

@media (max-width: 1024px) {
    .date-nav-header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .weekdays-header-desk {
        gap: 4px;
    }
    
    .desk-sets-container {
        gap: 15px;
    }
}



/* Profile Info Display Styles */
.profile-info-display {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.profile-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.profile-info-item:last-child {
    border-bottom: none;
}

.profile-label {
    font-weight: 600;
    color: #374151;
    min-width: 100px;
}

.profile-value {
    color: #1e293b;
    font-weight: 500;
    text-align: right;
}


/* Day count indicator for team planning */
.employee-chip .day-count {
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 10px;
    margin-right: 8px;
    min-width: 16px;
    text-align: center;
    display: inline-block;
    position: absolute;
    right: 20px;
}

.employee-chip {
    position: relative;
}


/* Remote day styling */
.calendar-day.remote {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.7;
}

.calendar-day.remote:hover {
    background: #f1f5f9;
    color: #94a3b8;
    transform: none;
    box-shadow: none;
}

.remote-label {
    font-size: 8px;
    color: #94a3b8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}


/* Manager Mobile Styles */
@media (max-width: 1024px) {
    /* My Team Table Mobile */
    #manager-team .user-table {
        font-size: 12px;
    }
    
    #manager-team .user-table th,
    #manager-team .user-table td {
        padding: 8px 6px;
        font-size: 11px;
    }
    
    #manager-team .user-table th:first-child,
    #manager-team .user-table td:first-child {
        max-width: 120px;
        word-break: break-word;
    }
    
    #manager-team .user-table th:nth-child(2),
    #manager-team .user-table td:nth-child(2) {
        max-width: 100px;
        word-break: break-word;
    }
    
    #manager-team .user-table .btn {
        padding: 3px 6px;
        font-size: 10px;
        border-radius: 3px;
    }
    
    #manager-team .user-table .btn-danger {
        background: #ef4444;
        color: white;
        border: none;
    }
    
    /* Office Overview Mobile */
    #manager-overview .week-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    #manager-overview .day-card {
        padding: 12px;
        min-height: auto;
    }
    
    #manager-overview .day-header {
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 8px;
    }
    
    #manager-overview .employee-chip {
        font-size: 11px;
        padding: 4px 6px;
        margin-bottom: 3px;
    }
    
    #manager-overview .expand-btn {
        font-size: 9px;
        margin-top: 6px;
    }
    
    /* Meeting Rooms Overview Mobile */
    #manager-overview .office-meeting-layout_fdr25 {
        margin-top: 20px;
    }
    
    #manager-overview h3 {
        font-size: 18px;
        margin-top: 24px;
        margin-bottom: 12px;
        text-align: center;
    }
    
    /* Desk Overview Mobile */
    #manager-overview .manager-desk-overview {
        margin-top: 16px;
    }
    
    #manager-overview .desk-overview-nav {
        padding: 16px;
        width: 280px;
        border-radius: 12px;
    }
    
    #manager-overview .date-nav-header h4 {
        font-size: 16px;
        margin: 0;
    }
    
    #manager-overview .date-nav-controls {
        gap: 12px;
    }
    
    #manager-overview .week-display {
        font-size: 14px;
        min-width: 100px;
    }
    
    #manager-overview .weekday-header-desk {
        padding: 10px 4px;
        font-size: 12px;
    }
    
    #manager-overview .weekday-name {
        font-size: 12px;
    }
    
    #manager-overview .weekday-date {
        font-size: 10px;
    }
    
    #manager-overview .desk-set_fdr25 {
        width: 100%;
        height: 160px;
    }
    
    #manager-overview .desk_fdr25 {
        border-radius: 8px;
    }
    
    #manager-overview .desk-number_fdr25 {
        font-size: 16px;
    }
    
    #manager-overview .desk-occupant_fdr25 {
        font-size: 10px;
    }
    
    #manager-overview .set-label_fdr25 {
        font-size: 12px;
        padding: 4px 12px;
        top: -8px;
    }
    
    #manager-overview .desk-sets-container {
        gap: 20px;
        width: 280px;
    }
    
    /* Add Team Member Button Mobile */
    #manager-team .btn-primary {
        width: 100%;
        margin-top: 12px;
        font-size: 12px;
        padding: 8px 16px;
    }
    
    #manager-team > div:first-child {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    #manager-team h2 {
        font-size: 18px;
        margin-bottom: 0;
    }
}


/* Admin Mobile Styles */
@media (max-width: 1024px) {
    /* Admin Stats Grid Mobile */
    #admin-view .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 20px;
    }
    
    #admin-view .stat-card {
        padding: 16px;
    }
    
    #admin-view .stat-value {
        font-size: 24px;
        margin-bottom: 4px;
    }
    
    #admin-view .stat-label {
        font-size: 11px;
    }
    
    /* Admin Table Mobile - Horizontal Scroll */
    #admin-users {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    #admin-users .user-table {
        min-width: 700px;
        font-size: 11px;
        margin-top: 12px;
    }
    
    #admin-users .user-table th,
    #admin-users .user-table td {
        padding: 8px 6px;
        font-size: 11px;
        white-space: nowrap;
    }
    
    /* Adjust column widths for better mobile viewing */
    #admin-users .user-table th:nth-child(1),
    #admin-users .user-table td:nth-child(1) {
        min-width: 140px;
    }
    
    #admin-users .user-table th:nth-child(2),
    #admin-users .user-table td:nth-child(2) {
        min-width: 80px;
    }
    
    #admin-users .user-table th:nth-child(3),
    #admin-users .user-table td:nth-child(3) {
        min-width: 80px;
    }
    
    #admin-users .user-table th:nth-child(4),
    #admin-users .user-table td:nth-child(4) {
        min-width: 70px;
    }
    
    #admin-users .user-table th:nth-child(5),
    #admin-users .user-table td:nth-child(5) {
        min-width: 120px;
    }
    
    #admin-users .user-table th:nth-child(6),
    #admin-users .user-table td:nth-child(6) {
        min-width: 120px;
    }
    
    #admin-users .user-table .btn {
        padding: 4px 6px;
        font-size: 10px;
        border-radius: 3px;
        margin-right: 2px;
    }
    
    /* Add User Button Mobile */
    #admin-users .btn-primary {
        width: 100%;
        margin-top: 12px;
        font-size: 12px;
        padding: 10px 16px;
    }
    
    #admin-users > div:first-child {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    #admin-users h2 {
        font-size: 18px;
        margin-bottom: 0;
    }
    
    /* Add scroll indicator */
    #admin-users::after {
        content: "← Scroll horizontally to view all columns →";
        display: block;
        text-align: center;
        font-size: 10px;
        color: #64748b;
        margin-top: 8px;
        font-style: italic;
    }
}

/* Manager cancel buttons */
.manager-desk.my-booking .cancel-booking {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 18px;
    height: 18px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
    z-index: 10;
}

.manager-desk.my-booking .cancel-booking:hover {
    background: #d32f2f;
    transform: scale(1.1);
}

.manager-desk.my-booking:hover .cancel-booking {
    display: flex;
}

.manager-desk {
    position: relative;
}

/* Enhanced employee chips for office overview */


.employee-chip:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
}

/* My team special styling */
.employee-chip[style*="#10b981"] {
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3) !important;
}

.employee-chip[style*="#10b981"]:hover {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4) !important;
}


.day-header {
    font-weight: 600 !important;
    margin-bottom: 12px !important;
    text-align: center !important;
    color: #1e293b !important;
    font-size: 14px !important;
    border-bottom: 1px solid #e2e8f0 !important;
}







/* Meeting Rooms Layout - Updated for Room 4 */
.meeting-rooms-layout_fdr25 {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 80px;
    margin-left: 40px;
    position: relative;
    z-index: 2;
}

/* Office Meeting Layout - Room 4 on Left Side */
.office-meeting-layout_fdr25 {
    background: linear-gradient(135deg, #6b7c93 0%, #5a6b7d 100%);
    min-height: 600px;
    position: relative;
    padding: 40px 20px;
    border-radius: 8px;
    display: flex;
    gap: 40px;
}

.office-meeting-layout_fdr25::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.1) 0%, 
        rgba(0, 0, 0, 0.3) 40%, 
        rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Meeting Room 4 - Left Side Vertical */
.meeting-room-4_fdr25 {
    background: #f5f0e8;
    border: 3px solid #2c3e50;
    border-radius: 12px;
    width: 220px;
    height: 300px;
    display: flex;
    flex-direction: column;
    margin-left: 40px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.meeting-room_fdr25.meeting-room-4_fdr25 {
    width: 220px;
    height: 300px;
    margin-left: 40px;
    border-radius: 12px !important;
}

.meeting-room-4_fdr25:hover,
.meeting-room_fdr25.meeting-room-4_fdr25:hover {
    background: #e8ddd4;
    transform: translateY(-2px);
}

.meeting-room-4_fdr25.selected,
.meeting-room_fdr25.meeting-room-4_fdr25.selected {
    background: #d1fae5;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.5);
}

.meeting-room-4_fdr25 .room-text_fdr25 {
    font-size: 16px;
    font-weight: bold;
    color: #2c3e50;
    text-align: center;
    line-height: 1.2;
}

/* Right side content area */
.meeting-rooms-and-desks_fdr25 {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

/* Meeting rooms 1-3 at top */
.meeting-rooms-top_fdr25 {
    display: flex;
    justify-content: flex-start;
    gap: 0;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.meeting-room_fdr25 {
    background: #f5f0e8;
    border: 3px solid #2c3e50;
    border-radius: 12px;
    width: 160px;
    height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.meeting-room_fdr25:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: 1px solid #2c3e50;
}

.meeting-room_fdr25:nth-child(2) {
    border-radius: 0;
    border-left: 1px solid #2c3e50;
    border-right: 1px solid #2c3e50;
}

.meeting-room_fdr25:last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: 1px solid #2c3e50;
}

.meeting-room_fdr25:hover {
    background: #e8ddd4;
    transform: translateY(-2px);
}

.meeting-room_fdr25.selected {
    background: #d1fae5;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.5);
}

.room-text_fdr25 {
    font-size: 16px;
    font-weight: bold;
    color: #2c3e50;
    text-align: center;
    line-height: 1.2;
}

/* Desk area positioning */
.desk-area_fdr25 {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 30px;
    position: relative;
    z-index: 1;
    opacity: 0.4;
    margin-right: 40px;
    margin-top: 8px;
    margin-left: -140px;
}
.desk-area_fdr255 {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 30px;
    position: relative;
    z-index: 1;
    opacity: 0.4;
    margin-right: 40px;
    margin-top: 220px;
    margin-left: -140px;
}

/* Mobile adjustments */
@media (max-width: 1024px) {
    .office-meeting-layout_fdr25 {
        flex-direction: column;
        gap: 20px;
        padding: 20px 10px;
    }
    
    .meeting-room-4_fdr25 {
        width: 100% !important;
        max-width: 300px;
        height: 120px;
        margin: 0 auto !important;
    }
    
    .meeting-rooms-and-desks_fdr25 {
        align-items: center;
    }
    
    .meeting-rooms-top_fdr25 {
        flex-direction: row;
        justify-content: center;
        gap: 4px;
        margin-bottom: 20px;
    }
    
    .meeting-room_fdr25 {
        width: 90px;
        height: 90px;
        border-radius: 8px !important;
        border: 2px solid #2c3e50 !important;
    }
    
    .room-text_fdr25 {
        font-size: 16px;
    }
    
    .desk-area_fdr25 {
        align-items: center;
        margin-right: 0;
    }
    .desk-area_fdr255 {
        align-items: center;
        margin-right: 0;
    }


    .meeting-rooms-layout_fdr25 {
        display: flex;
        align-items:center;
        gap: 20px;
        margin-bottom: 0px;
        margin-left: 0px;
        position: relative;
        z-index: 2;
    }
    .desk-area_fdr25 {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
        position: relative;
        z-index: 1;
        opacity: 0.4;
        margin-right: 0px;
        margin-top: 0px;
        margin-left: 0px;
    }
}



.meeting-rooms-layout_fdr25 {
  display: flex;
  flex-direction: column;
}







/* CODIR Meeting Styling */
.meeting-block_fdr25.codir-meeting {
    background: #ffeaa7 !important;
    border-left-color: #fdcb6e !important;
    font-weight: 600;
}

.meeting-block_fdr25.codir-meeting .meeting-person_fdr25 {
    font-weight: 700;
    color: #2d3436;
}

.meeting-block_fdr25.codir-meeting .meeting-team_fdr25 {
    color: #636e72;
    font-weight: 500;
}


/* PWA Install Button Animation */
@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.pwa-install-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4) !important;
}

/* Enhanced install button for better visibility */
.pwa-install-btn {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Mobile specific styling */
@media (max-width: 768px) {
    .pwa-install-btn {
        bottom: 80px !important;
        right: 16px !important;
        padding: 10px 16px !important;
        font-size: 13px !important;
    }
}


/* Sales Team Open Space - Traditional Layout _fkjh9 */
.sales-office-layout_fkjh9 {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
}

.sales-office-floor_fkjh9 {
    width: 600px;
    height: 720px;
    background: linear-gradient(135deg, #6b7c93 0%, #5a6b7d 100%);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

/* Green horizontal line at top */
.top-line_fkjh9 {
    position: absolute;
    top: 60px;
    left: 50px;
    right: 0px;
    height: 8px;
    background: #10b981;
    border-radius: 4px;
}

/* Green vertical line on left */
.left-line_fkjh9 {
    position: absolute;
    left: 50px;
    top: 180px;
    bottom: 0px;
    width: 8px;
    background: #10b981;
    border-radius: 4px;
}

/* Desk sets container */
.desk-sets-container_fkjh9 {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
    z-index: 2;
    position: relative;
    margin-top: 10px;
    flex-direction: row;
    right: -60px;
    bottom: -80px;
}

/* Individual desk set */
.desk-set_fkjh9 {
    background: linear-gradient(145deg, #f5f0e8, #e8ddd4);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    width: 180px;
    height: 400px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 8px;
    flex-shrink: 0;
}

/* Green separator line in middle of each set */
.green-separator_fkjh9 {
    position: absolute;
    left: 8px;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    background: linear-gradient(90deg, #2d5a27, #4a7c59, #2d5a27);
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(45, 90, 39, 0.3);
}

/* Desk grid - 2 columns, 3 rows */
.desk-grid_fkjh9 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 2px;
    height: 100%;
    width: 100%;
}

/* Individual desk */
.desk-office_fkjh9 {
    background: linear-gradient(145deg, #f5f0e8, #e8ddd4);
    border: 1px solid #d4c4b0;
    border-radius: 8px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.1),
        inset 0 1px 2px rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.desk-office_fkjh9:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.15),
        inset 0 1px 2px rgba(255,255,255,0.4);
    background: linear-gradient(145deg, #f8f3eb, #ebe0d7);
}

.desk-office_fkjh9.booked {
    background: linear-gradient(145deg, #ffebee, #ffc1cc);
    border-color: #f8bbd9;
    cursor: not-allowed;
}

.desk-office_fkjh9.available {
    background: linear-gradient(145deg, #f5f0e8, #e8ddd4);
    cursor: pointer;
}

.desk-office_fkjh9.selected {
    background: linear-gradient(145deg, #d1fae5, #a7f3d0);
    border-color: #10b981;
    box-shadow: 
        0 0 0 3px rgba(16, 185, 129, 0.3),
        0 4px 8px rgba(0,0,0,0.15);
}

.desk-office_fkjh9.my-booking {
    background: linear-gradient(145deg, #e1f5fe, #b3e5fc);
    border-color: #2196f3;
}

.desk-number_fkjh9 {
    font-weight: 700;
    font-size: 16px;
    color: #2c3e50;
}

.desk-office_fkjh9.booked .desk-number_fkjh9 {
    color: #c62828;
}

.desk-office_fkjh9.selected .desk-number_fkjh9 {
    color: #2e7d32;
}

.desk-office_fkjh9.my-booking .desk-number_fkjh9 {
    color: #1976d2;
}

.desk-occupant_fkjh9 {
    font-size: 9px;
    opacity: 0.8;
    margin-top: 2px;
    text-align: center;
    color: #2c3e50;
}

.desk-office_fkjh9.booked .desk-occupant_fkjh9 {
    color: #c62828;
}

/* Set labels */
.set-label_fkjh9 {
    position: absolute;
    top: -8px;
    left: 20px;
    background: #2c3e50;
    color: white;
    z-index: 15;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Cancel button for personal bookings */
.cancel-booking_fkjh9 {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 18px;
    height: 18px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
}

.cancel-booking_fkjh9:hover {
    background: #d32f2f;
    transform: scale(1.1);
}

.desk-office_fkjh9.my-booking:hover .cancel-booking_fkjh9 {
    display: flex;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .sales-office-floor_fkjh9 {
        width: 90%;
        max-width: 500px;
        height: 400px;
        padding: 20px 10px;
    }
    
    .desk-sets-container_fkjh9 {
        gap: 20px;
    }
    
    .desk-set_fkjh9 {
        width: 110px;
        height: 200px;
        right: 45px;
        bottom:30px;
    }
    
    .desk-number_fkjh9 {
        font-size: 14px;
    }
}



/* PWA Install Button Animation */
@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.pwa-install-btn {
    animation: slideInUp 0.3s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

.pwa-install-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4) !important;
}



/* Set C for Sales Team - Above Green Line */
.desk-set-c_fkjh9 {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(145deg, #f5f0e8, #e8ddd4);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    width: 520px;
    height: 160px;
    z-index: 3;
    padding: 8px;
}

.desk-grid-c_fkjh9 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2px;
    height: 100%;
    width: 100%;
}

/* Adjust the top green line to be below Set C */
.top-line_fkjh9 {
    top: 200px;
}

/* Adjust the left green line to start below Set C */
.left-line_fkjh9 {
    top: 320px;
}

/* Adjust the main desk sets container to be lower */
.desk-sets-container_fkjh9 {
    margin-top: 120px;
}

@media (max-width: 1024px) {
    .desk-set-c_fkjh9 {
        width: 90%;
        max-width: 400px;
        height: 120px;
        top: 10px;
    }
    
    .top-line_fkjh9 {
        top: 160px;
    }
    
    .left-line_fkjh9 {
        top: 230px;
        left: 15px;
    }
    
    .desk-sets-container_fkjh9 {
        margin-top: 80px;
    }
}


















/* Unified Calendar Styles */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.calendar-view-selector {
    display: flex;
    gap: 5px;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 6px;
}

.view-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    transition: all 0.2s;
}

.view-btn.active {
    background: white;
    color: #3b82f6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.view-btn:hover:not(.active) {
    color: #3b82f6;
}

.calendar-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.unified-calendar {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.calendar-grid-header {
    display: grid;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.calendar-grid-body {
    display: grid;
    min-height: 600px;
}

.calendar-day-header {
    padding: 12px;
    text-align: center;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    border-right: 1px solid #e2e8f0;
}

.calendar-day-header:last-child {
    border-right: none;
}

.calendar-day-cell {
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 8px;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
    min-height: 120px;
}

.calendar-day-cell:hover {
    background: #f8fafc;
}

.calendar-day-cell.other-month {
    background: #f8fafc;
    opacity: 0.6;
}

.calendar-day-cell.today {
    background: #fef3c7;
}

.calendar-day-cell.weekend {
    background: #f9fafb;
}

.day-number {
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
    font-size: 14px;
}

.day-capacity {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 10px;
    background: #e2e8f0;
    color: #64748b;
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: 500;
}

.day-capacity.high {
    background: #fecaca;
    color: #991b1b;
}

.day-capacity.medium {
    background: #fde68a;
    color: #92400e;
}

.day-capacity.low {
    background: #bbf7d0;
    color: #166534;
}

.day-employees {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 5px;
    max-width: 140px;
}

.day-employee {
    background: #3b82f6;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
}

.day-employee:hover {
    background: #2563eb;
}

.employee-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.employee-count {
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 600;
    margin-left: 4px;
}

.employee-hours-indicator {
    font-size: 8px;
    opacity: 0.8;
    margin-left: 4px;
}

/* Week View Specific */
.calendar-grid-header.week-view {
    grid-template-columns: repeat(7, 1fr);
}

.calendar-grid-body.week-view {
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: 1fr;
}

.calendar-day-cell.week-view {
    min-height: 400px;
}

/* Month View Specific */
.calendar-grid-header.month-view {
    grid-template-columns: repeat(7, 1fr);
}

.calendar-grid-body.month-view {
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(6, 1fr);
}

.calendar-day-cell.month-view {
    min-height: 100px;
}

/* Modal Updates */
.capacity-info {
    background: #f8fafc;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #3b82f6;
}

.capacity-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.capacity-label {
    font-size: 14px;
    color: #475569;
    font-weight: 500;
}

.capacity-value {
    font-size: 14px;
    color: #1e293b;
    font-weight: 600;
}

.day-employee-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.day-employee-item:hover {
    background: #f1f5f9;
    border-color: #3b82f6;
}

.day-employee-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.day-employee-name {
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 2px;
}

.day-employee-details {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #64748b;
}

.day-employee-hours {
    background: #e2e8f0;
    padding: 1px 5px;
    border-radius: 3px;
}

.day-employee-count {
    background: #dbeafe;
    color: #1e40af;
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: 500;
}

.day-employee-remove {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 4px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.day-employee-remove:hover {
    background: #dc2626;
}

.day-modal-content {
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.day-info {
    background: #f8fafc;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
}

.day-employees-section,
.add-employee-section {
    margin-bottom: 25px;
}

.day-employees-section h4,
.add-employee-section h4 {
    font-size: 16px;
    color: #1e293b;
    margin-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 5px;
}

.day-employees-list {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    min-height: 100px;
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
}

.day-employees-list:empty::after {
    content: "No employees scheduled for this day";
    color: #94a3b8;
    font-style: italic;
    display: block;
    text-align: center;
    padding: 20px;
}

.employee-selector {
    display: flex;
    gap: 10px;
    align-items: center;
}

.employee-selector select {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    color: #1e293b;
    font-size: 14px;
}

/* Toggle styles */
.toggle-switch {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle {
    width: 44px;
    height: 24px;
    background: #e2e8f0;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
}

.toggle.active {
    background: #3b82f6;
}

.toggle-thumb {
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: transform 0.2s;
}

.toggle.active .toggle-thumb {
    transform: translateX(20px);
}

.toggle-label {
    font-size: 14px;
    color: #475569;
}

/* Responsive Design */
@media (max-width: 768px) {
    .calendar-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .calendar-nav,
    .calendar-controls {
        justify-content: center;
    }
    
    .calendar-day-cell {
        min-height: 80px;
        padding: 4px;
    }
    
    .day-employee {
        font-size: 10px;
        padding: 1px 4px;
    }
    
    .employee-count {
        width: 14px;
        height: 14px;
        font-size: 8px;
    }
}


/* Employee Schedule Styles */
.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.schedule-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.schedule-nav-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    font-size: 14px;
}

.schedule-nav-btn:hover {
    background: #e2e8f0;
    color: #3b82f6;
}

.schedule-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.expand-schedule-btn {
    background: #3b82f6;
    color: white;
    border: 1px solid #3b82f6;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    margin-left: 8px;
}

.expand-schedule-btn:hover {
    background: #2563eb;
}

#current-schedule-week {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    min-width: 80px;
    text-align: center;
}

.employee-week-schedule {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.week-days-header {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: #f8fafc;
}

.week-day-header {
    padding: 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    border-right: 1px solid #e2e8f0;
}

.week-day-header:last-child {
    border-right: none;
}

.week-days-body {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.employee-week-day {
    border-right: 1px solid #e2e8f0;
    padding: 8px;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.employee-week-day:last-child {
    border-right: none;
}

.employee-week-day.today {
    background: #fef3c7;
}

.employee-week-day.scheduled {
    background: #dbeafe;
}

.employee-week-day.past {
    background: #f8fafc;
    opacity: 0.7;
}

.employee-day-number {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 4px;
}

.employee-day-status {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    text-align: center;
    font-weight: 500;
}

.employee-day-status.scheduled {
    background: #3b82f6;
    color: white;
}

.employee-day-status.remote {
    background: #f1f5f9;
    color: #64748b;
}

.employee-hours-display {
    font-size: 9px;
    color: #059669;
    margin-top: 2px;
    text-align: center;
}

/* Month Schedule Modal */
.month-schedule-content {
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header-schedule {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
}

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

#current-month-modal {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    min-width: 70px;
    text-align: center;
}

.employee-calendar-grid {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    margin: 20px;
}

.calendar-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f8fafc;
}

.calendar-day-header {
    padding: 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    border-right: 1px solid #e2e8f0;
}

.calendar-day-header:last-child {
    border-right: none;
}

.calendar-days-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: minmax(50px, auto);
}

.employee-calendar-day {
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 6px;
    min-height: 50px;
    min-width: 42px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.employee-calendar-day:nth-child(7n) {
    border-right: none;
}

.employee-calendar-day.other-month {
    background: #f8fafc;
    opacity: 0.6;
}

.employee-calendar-day.today {
    background: #fef3c7;
}

.employee-calendar-day.scheduled {
    background: #dbeafe;
}

.employee-calendar-day.weekend {
    background: #f9fafb;
}

@media (max-width: 768px) {
    .schedule-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .week-days-header {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .week-days-body {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .employee-week-day {
        min-height: 50px;
        padding: 6px;
    }
    
    .employee-day-number {
        font-size: 11px;
    }
    
    .employee-day-status {
        font-size: 9px;
        padding: 0px;
    }
    
    .month-schedule-content {
        max-width: 95%;
        margin: 20px auto;
    }
}



/* Booking Calendar Indicators */
.office-indicator {
    font-size: 9px;
    background: #10b981;
    color: white;
    padding: 1px 4px;
    border-radius: 2px;
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.remote-indicator {
    font-size: 9px;
    background: #f1f5f9;
    color: #64748b;
    padding: 1px 4px;
    border-radius: 2px;
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.calendar-day.work-day {
    background: #dcfce7;
    border-color: #bbf7d0;
}

.calendar-day.work-day:hover {
    background: #bbf7d0;
    border-color: #10b981;
}

.calendar-day.remote {
    background: #f1f5f9;
    color: #94a3b8;
}

.calendar-day.remote:hover {
    background: #e2e8f0;
}

/* Modal z-index fix */
#month-schedule-modal {
    z-index: 1050;
}



/* Clickable Week Schedule */
.employee-week-day {
    border-right: 1px solid #e2e8f0;
    padding: 8px;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
}

.employee-week-day:last-child {
    border-right: none;
}

.employee-week-day.today {
    background: #fef3c7;
    border: 2px solid #f59e0b;
}

.employee-week-day.scheduled {
    background: #dbeafe;
}

.employee-week-day.scheduled:hover {
    background: #bfdbfe;
    transform: translateY(-1px);
}

.employee-week-day.past {
    background: #f8fafc;
    opacity: 0.7;
    cursor: not-allowed;
}

.employee-week-day.remote {
    background: #f1f5f9;
    cursor: not-allowed;
}

.employee-week-day.selected {
    border: 2px solid #10b981;
    background: #ecfdf5;
}

.employee-calendar-day.today {
    background: #fef3c7;
    border: 2px solid #f59e0b;
}

.employee-calendar-day.scheduled:hover {
    background: #bfdbfe;
}



/* All Teams View Styles */
.team-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 2px;
    margin-bottom: 2px;
}

.day-teams {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin-top: 5px;
}

.team-group {
    margin-bottom: 8px;
}

.team-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.person-item {
    padding: 1px 0;
}

.team-section {
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.person-card {
    transition: background 0.2s;
}

.person-card:hover {
    background: #f1f5f9 !important;
}

#allteams-calendar .calendar-day-cell {
    cursor: pointer;
}

#allteams-calendar .calendar-day-cell:hover {
    background: #f1f5f9;
}


/* My Team Table Mobile - Now in Planning Tab */
    #manager-planning .user-table {
        font-size: 12px;
        margin-top: 20px;
    }
    
    #manager-planning .user-table th,
    #manager-planning .user-table td {
        padding: 8px 6px;
        font-size: 11px;
    }
    
    #manager-planning .user-table th:first-child,
    #manager-planning .user-table td:first-child {
        max-width: 120px;
        word-break: break-word;
    }
    
    #manager-planning .user-table th:nth-child(2),
    #manager-planning .user-table td:nth-child(2) {
        max-width: 100px;
        word-break: break-word;
    }
    
    #manager-planning .user-table .btn {
        padding: 3px 6px;
        font-size: 10px;
        border-radius: 3px;
    }
    
    #manager-planning .user-table .btn-danger {
        background: #ef4444;
        color: white;
        border: none;
    }


/* All Teams View Styles _15rt14 */
.calendar-header-_15rt14 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.calendar-nav-_15rt14 {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-btn-_15rt14 {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    color: #374151;
}

.nav-btn-_15rt14:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.current-period-_15rt14 {
    font-weight: 600;
    color: #1e293b;
    font-size: 16px;
    min-width: 150px;
    text-align: center;
}

.calendar-view-selector-_15rt14 {
    display: flex;
    gap: 5px;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 6px;
}

.view-btn-_15rt14 {
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    transition: all 0.2s;
}

.view-btn-_15rt14.active {
    background: white;
    color: #3b82f6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.view-btn-_15rt14:hover:not(.active) {
    color: #3b82f6;
}

.unified-calendar-_15rt14 {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.calendar-grid-header-_15rt14 {
    display: grid;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.calendar-grid-body-_15rt14 {
    display: grid;
    min-height: 600px;
}

.calendar-day-header-_15rt14 {
    padding: 12px;
    text-align: center;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    border-right: 1px solid #e2e8f0;
}

.calendar-day-header-_15rt14:last-child {
    border-right: none;
}

.calendar-day-cell-_15rt14 {
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 8px;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
    min-height: 120px;
}

.calendar-day-cell-_15rt14:hover {
    background: #f8fafc;
}

.calendar-day-cell-_15rt14.other-month {
    background: #f8fafc;
    opacity: 0.6;
    cursor: default;
}

.calendar-day-cell-_15rt14.today-_15rt14 {
    background: #fef3c7;
}

.calendar-day-cell-_15rt14.weekend-_15rt14 {
    background: #f9fafb;
}

.day-number-_15rt14 {
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
    font-size: 14px;
}

.day-capacity-_15rt14 {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 10px;
    background: #e2e8f0;
    color: #64748b;
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: 500;
}

.day-teams-_15rt14 {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin-top: 5px;
}

.team-indicator-_15rt14 {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.day-employees-_15rt14 {
   display: flex;
   flex-direction: column;
   gap: 3px;
   margin-top: 5px;
   
}

.team-group-_15rt14 {
   margin-bottom: 5px;
}

.team-name-_15rt14 {
   font-weight: 600;
   margin-bottom: 2px;
}

.person-item-_15rt14 {
   padding: 1px 0;
}

/* Week View Specific */
.calendar-grid-header-_15rt14.week-view-_15rt14 {
    grid-template-columns: repeat(7, 1fr);
}

.calendar-grid-body-_15rt14.week-view-_15rt14 {
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: 1fr;
}

.calendar-day-cell-_15rt14.week-view-_15rt14 {
   min-height: 400px;
}

/* Month View Specific */
.calendar-grid-header-_15rt14.month-view-_15rt14 {
   grid-template-columns: repeat(7, 1fr);
}

.calendar-grid-body-_15rt14.month-view-_15rt14 {
   grid-template-columns: repeat(7, 1fr);
   grid-template-rows: repeat(6, 1fr);
}

.calendar-day-cell-_15rt14.month-view-_15rt14 {
   min-height: 100px;
}

/* Modal Styles */
.modal-content-_15rt14 {
    background: white;
    border-radius: 12px;
    padding: 24px;
    position: relative;
    margin: 20px auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-content-_15rt14 h3 {
    margin: 0 0 20px 0;
    color: #1e293b;
    font-size: 20px;
    font-weight: 600;
}

.modal-content-_15rt14 .close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: #64748b;
    transition: all 0.2s;
}

.modal-content-_15rt14 .close-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.day-summary-_15rt14 {
    background: #f8fafc !important;
    padding: 15px !important;
    border-radius: 8px !important;
    margin-bottom: 20px !important;
    border-left: 4px solid #3b82f6 !important;
    transition: all 0.2s;
}

.teams-breakdown-_15rt14 {
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 8px;
}

.teams-breakdown-_15rt14::-webkit-scrollbar {
    width: 6px;
}

.teams-breakdown-_15rt14::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.teams-breakdown-_15rt14::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.teams-breakdown-_15rt14::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.team-section-_15rt14 {
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.team-section-_15rt14:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.team-header-_15rt14 {
    padding: 12px 15px;
    font-weight: 600;
    font-size: 16px;
    color: white;
    position: relative;
    background: linear-gradient(135deg, var(--team-color, #3b82f6) 0%, color-mix(in srgb, var(--team-color, #3b82f6) 85%, black) 100%);
}

.team-members-_15rt14 {
    padding: 15px;
    background: #fafbfc;
}

.team-members-_15rt14 > div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.person-card-_15rt14 {
    background: #f8fafc;
    padding: 10px 12px;
    border-radius: 6px;
    border-left: 3px solid var(--team-color, #3b82f6);
    border: 1px solid #e8eaed;
    transition: all 0.2s;
    cursor: default;
}

.person-card-_15rt14:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.person-card-_15rt14 > div:first-child {
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 4px;
    font-size: 14px;
}

.person-card-_15rt14 > div:last-child {
    font-size: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
}

.person-card-_15rt14 > div:last-child span:first-child {
    margin-right: 8px;
}

.weekend-label-_15rt14 {
    font-size: 10px !important;
    color: #94a3b8 !important;
    text-align: center !important;
    margin-top: 10px !important;
    font-style: italic;
}


.calendar-day-cell-_15rt14.weekend-_15rt14 {
    background: #f9fafb;
    border-color: #f1f5f9;
}

.calendar-day-cell-_15rt14.weekend-_15rt14 .day-number-_15rt14 {
    color: #94a3b8;
}

.calendar-day-cell-_15rt14.weekend-_15rt14:hover {
    background: #f5f6f7;
}

/* Mobile Styles */
@media (max-width: 1024px) {
   .calendar-header-_15rt14 {
       flex-direction: column;
       gap: 10px;
       padding: 15px;
   }
   
   .calendar-nav-_15rt14 {
       order: 2;
   }
   
   .calendar-view-selector-_15rt14 {
       order: 1;
   }
   
   .calendar-controls-_15rt14 {
       order: 3;
   }
   
   .current-period-_15rt14 {
       font-size: 14px;
       min-width: 120px;
   }
   
   .nav-btn-_15rt14 {
       padding: 6px 10px;
       font-size: 12px;
   }
   
   .calendar-day-cell-_15rt14.week-view-_15rt14 {
       min-height: 300px;
   }
   
   .calendar-day-cell-_15rt14.month-view-_15rt14 {
       min-height: 80px;
   }
   
   .day-number-_15rt14 {
       font-size: 12px;
   }
   
   .day-capacity-_15rt14 {
       font-size: 9px;
       padding: 1px 4px;
   }
   
   .team-indicator-_15rt14 {
       width: 10px;
       height: 10px;
   }
   
   .modal-content-_15rt14 {
       margin: 10px;
       max-height: 90vh;
   }
   
   .team-header-_15rt14 {
       padding: 10px 12px;
       font-size: 14px;
   }
   
   .team-members-_15rt14 {
       padding: 12px;
   }
   
   .person-card-_15rt14 {
       padding: 8px 10px;
   }
}

@media (max-width: 640px) {
   .calendar-grid-body-_15rt14.month-view-_15rt14 {
       grid-template-columns: repeat(7, 1fr);
       gap: 1px;
   }
   
   .calendar-day-cell-_15rt14.month-view-_15rt14 {
       min-height: 60px;
       padding: 4px;
   }
   
   .day-number-_15rt14 {
       font-size: 10px;
   }
   
   .team-members-_15rt14 > div {
       grid-template-columns: 1fr;
   }
}

/* Employee Team Calendar Styles (_5876) */
.calendar-header-_5876 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.calendar-nav-_5876 {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-btn-_5876 {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    color: #374151;
}

.nav-btn-_5876:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.current-period-_5876 {
    font-weight: 600;
    color: #1e293b;
    font-size: 16px;
    min-width: 150px;
    text-align: center;
}

.calendar-view-selector-_5876 {
    display: flex;
    gap: 5px;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 6px;
}

.view-btn-_5876 {
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    transition: all 0.2s;
}

.view-btn-_5876.active {
    background: white;
    color: #3b82f6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.view-btn-_5876:hover:not(.active) {
    color: #3b82f6;
}

.unified-calendar-_5876 {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.calendar-grid-header-_5876 {
    display: grid;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.calendar-grid-body-_5876 {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    min-height: 600px;
}

.calendar-day-header-_5876 {
    padding: 12px;
    text-align: center;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    border-right: 1px solid #e2e8f0;
}

.calendar-day-header-_5876:last-child {
    border-right: none;
}

.calendar-day-body-_5876 {
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 8px;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
    min-height: 120px;
}

.calendar-day-body-_5876:hover {
    background: #f8fafc;
}

.calendar-day-body-_5876.other-month {
    background: #f8fafc;
    opacity: 0.6;
    cursor: default;
}

.calendar-day-body-_5876.today-_5876 {
    background: #fef3c7;
}

.calendar-day-body-_5876.weekend-_5876 {
    background: #f9fafb;
}

.day-number-_5876 {
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
    font-size: 14px;
}

.teams-container-_5876 {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 5px;
}

.team-group-_5876 {
    margin-bottom: 5px;
}

.team-name-_5876 {
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 10px;
    color: #3b82f6;
}

.person-item-_5876 {
    padding: 1px 0;
    font-size: 9px;
    color: #64748b;
}

.weekend-label-_5876 {
    font-size: 10px !important;
    color: #94a3b8 !important;
    text-align: center !important;
    margin-top: 10px !important;
    font-style: italic;
}

.calendar-week-row-_5876 {
    display: contents;
}

/* Week View Specific for Employee */
.calendar-grid-header-_5876 {
    grid-template-columns: repeat(7, 1fr);
}

.calendar-grid-body-_5876 {
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: 1fr;
}

.calendar-day-body-_5876.week-view-_5876 {
    min-height: 400px;
}

/* Month View Specific for Employee */
.calendar-grid-header-_5876.month-view-_5876 {
    grid-template-columns: repeat(7, 1fr);
}

.calendar-grid-body-_5876.month-view {
    grid-template-rows: repeat(6, 1fr);
}

.calendar-day-body-_5876.month-view-_5876 {
    min-height: 100px;
}

/* Sales Team Calendar Styles (_52fd) */
.calendar-header-_52fd {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.calendar-nav-_52fd {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-btn-_52fd {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    color: #374151;
}

.nav-btn-_52fd:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.current-period-_52fd {
    font-weight: 600;
    color: #1e293b;
    font-size: 16px;
    min-width: 150px;
    text-align: center;
}

.calendar-view-selector-_52fd {
    display: flex;
    gap: 5px;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 6px;
}

.view-btn-_52fd {
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    transition: all 0.2s;
}

.view-btn-_52fd.active {
    background: white;
    color: #3b82f6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.view-btn-_52fd:hover:not(.active) {
    color: #3b82f6;
}

.unified-calendar-_52fd {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.calendar-grid-header-_52fd {
    display: grid;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.calendar-grid-body-_52fd {
    display: grid;
    min-height: 600px;
}

.calendar-day-header-_52fd {
    padding: 12px;
    text-align: center;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    border-right: 1px solid #e2e8f0;
}

.calendar-day-header-_52fd:last-child {
    border-right: none;
}

.calendar-day-body-_52fd {
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 8px;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
    min-height: 120px;
}

.calendar-day-body-_52fd:hover {
    background: #f8fafc;
}

.calendar-day-body-_52fd.other-month {
    background: #f8fafc;
    opacity: 0.6;
    cursor: default;
}

.calendar-day-body-_52fd.today-_52fd {
    background: #fef3c7;
}

.calendar-day-body-_52fd.weekend-_52fd {
    background: #f9fafb;
}

.day-number-_52fd {
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
    font-size: 14px;
}

.teams-container-_52fd {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 5px;
}

.team-group-_52fd {
    margin-bottom: 5px;
}

.team-name-_52fd {
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 10px;
    color: #3b82f6;
}

.person-item-_52fd {
    padding: 1px 0;
    font-size: 9px;
    color: #64748b;
}

.weekend-label-_5876,
.weekend-label-_52fd {
    font-size: 11px !important;
    color: #a1a1aa !important;
    text-align: center !important;
    margin-top: 15px !important;
    font-style: italic;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f9fafb;
    padding: 4px 8px;
    border-radius: 4px;
}

.calendar-week-row-_52fd {
    display: contents;
}

/* Week View Specific for Sales */
.calendar-grid-header-_52fd.week-view-_52fd {
    grid-template-columns: repeat(7, 1fr);
}

.calendar-grid-body-_52fd.week-view-_52fd {
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: 1fr;
}

.calendar-day-body-_52fd.week-view-_52fd {
    min-height: 400px;
}

/* Month View Specific for Sales */
.calendar-grid-header-_52fd.month-view-_52fd {
    grid-template-columns: repeat(7, 1fr);
}

.calendar-grid-body-_52fd.month-view-_52fd {
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(6, 1fr);
}

.calendar-day-body-_52fd.month-view-_52fd {
    min-height: 100px;
}

/* Mobile Responsive Styles for Employee Calendar */
@media (max-width: 1024px) {
    .calendar-header-_5876 {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }
    
    .calendar-nav-_5876 {
        order: 2;
    }
    
    .calendar-view-selector-_5876 {
        order: 1;
    }
    
    .calendar-controls-_5876 {
        order: 3;
    }
    
    .current-period-_5876 {
        font-size: 14px;
        min-width: 120px;
    }
    
    .nav-btn-_5876 {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .calendar-day-body-_5876.week-view-_5876 {
        min-height: 300px;
    }
    
    .calendar-day-body-_5876.month-view-_5876 {
        min-height: 80px;
    }
    
    .day-number-_5876 {
        font-size: 12px;
    }
    
    .team-name-_5876 {
        font-size: 9px;
    }
    
    .person-item-_5876 {
        font-size: 8px;
    }
}

/* Mobile Responsive Styles for Sales Calendar */
@media (max-width: 1024px) {
    .calendar-header-_52fd {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }
    
    .calendar-nav-_52fd {
        order: 2;
    }
    
    .calendar-view-selector-_52fd {
        order: 1;
    }
    
    .calendar-controls-_52fd {
        order: 3;
    }
    
    .current-period-_52fd {
        font-size: 14px;
        min-width: 120px;
    }
    
    .nav-btn-_52fd {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .calendar-day-body-_52fd.week-view-_52fd {
        min-height: 300px;
    }
    
    .calendar-day-body-_52fd.month-view-_52fd {
        min-height: 80px;
    }
    
    .day-number-_52fd {
        font-size: 12px;
    }
    
    .team-name-_52fd {
        font-size: 9px;
    }
    
    .person-item-_52fd {
        font-size: 8px;
    }
}

@media (max-width: 640px) {
    .calendar-grid-body-_5876.month-view-_5876 {
        grid-template-columns: repeat(7, 1fr);
        gap: 1px;
    }
    
    .calendar-day-body-_5876.month-view-_5876 {
        min-height: 60px;
        padding: 4px;
    }
    
    .calendar-grid-body-_52fd.month-view-_52fd {
        grid-template-columns: repeat(7, 1fr);
        gap: 1px;
    }
    
    .calendar-day-body-_52fd.month-view-_52fd {
        min-height: 60px;
        padding: 4px;
    }
}


.calendar-day-cell-_5876 {
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 8px;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
    min-height: 120px;
    display: flex;
    flex-direction: column;
}

.calendar-day-cell-_5876:hover {
    background: #f8fafc;
}

.calendar-day-cell-_5876.other-month {
    background: #f8fafc;
    opacity: 0.6;
    cursor: default;
}

.calendar-day-cell-_5876.today {
    background: linear-gradient(135deg, #fffbf0 0%, #fef7e0 100%);
    border: 1px solid #fbbf24;
    box-shadow: 0 2px 6px rgba(251, 191, 36, 0.15);
    position: relative;
}

.calendar-day-cell-_5876.today .day-number-_5876 {
    font-weight: 600;
    color: #d97706;
    font-size: 15px;
}

.calendar-day-cell-_5876.weekend {
    background: #fafbfc;
    border-color: #e5e7eb;
    position: relative;
}

.calendar-day-cell-_5876.weekend .day-number-_5876 {
    color: #9ca3af;
    font-weight: 500;
}

.calendar-day-cell-_5876.weekend:hover {
    background: #f5f6f7;
}

.weekend-label-_5876 {
    font-size: 11px !important;
    color: #94a3b8 !important;
    text-align: center !important;
    margin-top: 15px !important;
    font-style: italic;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-day-cell-_5876:last-child {
    border-right: none;
}


/* Force proper grid layout for employee calendar */
#allteams-calendar-_5876 .calendar-grid-header-_5876 {
    grid-template-columns: repeat(7, 1fr) !important;
}

#allteams-calendar-_5876 .calendar-grid-body-_5876 {
    grid-template-columns: repeat(7, 1fr) !important;
}

/* Force proper grid layout for sales calendar */
#allteams-calendar-_52fd .calendar-grid-header-_52fd {
    grid-template-columns: repeat(7, 1fr) !important;
}

#allteams-calendar-_52fd .calendar-grid-body-_52fd {
    grid-template-columns: repeat(7, 1fr) !important;
}

/* Enhanced Day Numbers */
.day-number-_5876 {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
    transition: all 0.2s;
}

/* Enhanced Team Display */
.team-name-_5876 {
    font-weight: 700;
    margin-bottom: 3px;
    font-size: 10px;
    color: #3b82f6;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.person-item-_5876 {
    padding: 2px 0;
    font-size: 9px;
    color: #64748b;
    font-weight: 500;
    line-height: 1.2;
}

/* Enhanced Hover Effects */
.calendar-day-cell-_5876:hover:not(.weekend):not(.today) {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.calendar-day-cell-_5876:hover .day-number-_5876 {
    color: #1e293b;
    transform: scale(1.05);
}

/* Enhanced Grid Borders */
.calendar-day-cell-_5876 {
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    min-height: 120px;
    display: flex;
    flex-direction: column;
}

/* Enhanced Calendar Headers */
.calendar-day-header-_5876 {
    padding: 15px 12px;
    text-align: center;
    font-weight: 700;
    color: #374151;
    font-size: 14px;
    min-width: 42px;
    border-right: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* Team Color System for Employee Calendar */
.team-group-_5876[data-team="Marketing Team"] .team-name-_5876 {
    color: #3b82f6;
    background: #eff6ff;
    padding: 2px 6px;
    border-radius: 3px;
    border-left: 3px solid #3b82f6;
}

.team-group-_5876[data-team="Marketing Team"] .person-item-_5876 {
    color: #1e40af;
    background: #f8faff;
    padding: 1px 4px;
    border-radius: 2px;
    margin: 1px 0;
}

.team-group-_5876[data-team="Online Team"] .team-name-_5876 {
    color: #10b981;
    background: #ecfdf5;
    padding: 2px 6px;
    border-radius: 3px;
    border-left: 3px solid #10b981;
}

.team-group-_5876[data-team="Online Team"] .person-item-_5876 {
    color: #047857;
    background: #f0fdf9;
    padding: 1px 4px;
    border-radius: 2px;
    margin: 1px 0;
}

.team-group-_5876[data-team="Sales Team"] .team-name-_5876 {
    color: #f59e0b;
    background: #fffbeb;
    padding: 2px 6px;
    border-radius: 3px;
    border-left: 3px solid #f59e0b;
}

.team-group-_5876[data-team="Sales Team"] .person-item-_5876 {
    color: #d97706;
    background: #fefcf0;
    padding: 1px 4px;
    border-radius: 2px;
    margin: 1px 0;
}

.team-group-_5876[data-team="Development Team"] .team-name-_5876 {
    color: #8b5cf6;
    background: #f5f3ff;
    padding: 2px 6px;
    border-radius: 3px;
    border-left: 3px solid #8b5cf6;
}

.team-group-_5876[data-team="Development Team"] .person-item-_5876 {
    color: #7c3aed;
    background: #faf8ff;
    padding: 1px 4px;
    border-radius: 2px;
    margin: 1px 0;
}

.team-group-_5876[data-team="Design Team"] .team-name-_5876 {
    color: #ec4899;
    background: #fdf2f8;
    padding: 2px 6px;
    border-radius: 3px;
    border-left: 3px solid #ec4899;
}

.team-group-_5876[data-team="Design Team"] .person-item-_5876 {
    color: #db2777;
    background: #fef7f3;
    padding: 1px 4px;
    border-radius: 2px;
    margin: 1px 0;
}

.team-group-_5876[data-team="Support Team"] .team-name-_5876 {
    color: #06b6d4;
    background: #ecfeff;
    padding: 2px 6px;
    border-radius: 3px;
    border-left: 3px solid #06b6d4;
}

.team-group-_5876[data-team="Support Team"] .person-item-_5876 {
    color: #0891b2;
    background: #f0fdff;
    padding: 1px 4px;
    border-radius: 2px;
    margin: 1px 0;
}

/* Default team styling for any other teams */
.team-group-_5876 .team-name-_5876 {
    color: #64748b;
    background: #f8fafc;
    padding: 2px 6px;
    border-radius: 3px;
    border-left: 3px solid #64748b;
    font-weight: 600;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.team-group-_5876 .person-item-_5876 {
    color: #475569;
    background: #f9fafb;
    padding: 1px 4px;
    border-radius: 2px;
    margin: 1px 0;
    font-size: 9px;
    font-weight: 500;
}
/* Team Color System for Sales Calendar (_52fd) */
.team-group-_52fd[data-team="Marketing Team"] .team-name-_52fd {
    color: #3b82f6;
    background: #eff6ff;
    padding: 2px 6px;
    border-radius: 3px;
    border-left: 3px solid #3b82f6;
}

.team-group-_52fd[data-team="Marketing Team"] .person-item-_52fd {
    color: #1e40af;
    background: #f8faff;
    padding: 1px 4px;
    border-radius: 2px;
    margin: 1px 0;
}

/* Fixed height calendar cells with overflow control */
/* Fixed height calendar cells with overflow control */
.calendar-day-cell-_5876 {
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.calendar-day-cell-_5876.week-view {
    min-height: 580px;
    max-height: 580px;
    height: 180px;
}

.calendar-day-cell-_5876.month-view {
    min-height: 120px;
    max-height: 120px;
    height: 120px;
}

.calendar-day-cell-_52fd {
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.calendar-day-cell-_52fd.week-view {
    min-height: 180px;
    max-height: 180px;
    height: 180px;
}

.calendar-day-cell-_52fd.month-view {
    min-height: 120px;
    max-height: 120px;
    height: 120px;
}

/* Teams container with controlled height */
.teams-container-_5876 {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.teams-container-_5876.week-view {
    max-height: 145px;
}

.teams-container-_5876.month-view {
    max-height: 85px;
}

.teams-container-_52fd {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.teams-container-_52fd.week-view {
    max-height: 145px;
}

.teams-container-_52fd.month-view {
    max-height: 85px;
}

/* Click handler for ALL cells */
.calendar-day-cell-_5876,
.calendar-day-cell-_52fd {
    cursor: pointer;
}

.calendar-day-cell-_5876:hover,
.calendar-day-cell-_52fd:hover {
    background: #f8fafc;
}

/* Remove the has-more restriction - make all cells clickable */
.calendar-day-cell-_5876.has-content::after,
.calendar-day-cell-_52fd.has-content::after {

}

/* Modal styles */
.day-detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.day-detail-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.day-detail-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    max-width: 500px;
    max-height: 70vh;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.day-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.day-detail-title {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.day-detail-close {
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #64748b;
    transition: all 0.2s;
}

.day-detail-close:hover {
    background: #e2e8f0;
    color: #1e293b;
    transform: scale(1.1);
}

.day-detail-body {
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 8px;
}

.day-detail-body::-webkit-scrollbar {
    width: 6px;
}

.day-detail-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.day-detail-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.day-detail-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Enhanced team sections in modal */
.modal-team-section {
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.modal-team-header {
    padding: 12px 16px;
    font-weight: 600;
    font-size: 14px;
    color: white;
    background: var(--team-color, #64748b);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.team-member-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.modal-team-members {
    padding: 16px;
    background: #fafbfc;
}

.modal-person-card {
    background: white;
    padding: 10px 12px;
    border-radius: 6px;
    border-left: 3px solid var(--team-color, #64748b);
    margin-bottom: 8px;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.modal-person-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.modal-person-name {
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 4px;
    font-size: 14px;
}

.modal-person-hours {
    font-size: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
}

.modal-person-hours::before {
    content: '🕒';
    margin-right: 6px;
}

/* Empty state */
.day-detail-empty {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
}

.day-detail-empty::before {
    content: '📅';
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

.calendar-day-header-_5876{
        font-size: 12px; 
        font-weight: normal;
    }


@media (max-width: 500px) {
    .calendar-day-header-tx-_5876{
        font-size: 10px; 
        font-weight: normal;
    }
    .calendar-day-header-_5876 {

        font-size: 9px;

    }
    
.calendar-day-cell-_5876 { 
    padding:3px;

    }
}












/* Sales Team Calendar Styles (_52fd) - Complete Mirror of Employee (_5876) */

/* Modal Styles for Sales */
.modal-content-_52fd {
    background: white;
    border-radius: 12px;
    padding: 24px;
    position: relative;
    margin: 20px auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-content-_52fd h3 {
    margin: 0 0 20px 0;
    color: #1e293b;
    font-size: 20px;
    font-weight: 600;
}

.modal-content-_52fd .close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: #64748b;
    transition: all 0.2s;
}

.modal-content-_52fd .close-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.day-summary-_52fd {
    background: #f8fafc !important;
    padding: 15px !important;
    border-radius: 8px !important;
    margin-bottom: 20px !important;
    border-left: 4px solid #3b82f6 !important;
    transition: all 0.2s;
}

.teams-breakdown-_52fd {
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 8px;
}

.teams-breakdown-_52fd::-webkit-scrollbar {
    width: 6px;
}

.teams-breakdown-_52fd::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.teams-breakdown-_52fd::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.teams-breakdown-_52fd::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.team-section-_52fd {
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.team-header-_52fd {
    padding: 12px 16px;
    font-weight: 600;
    font-size: 14px;
    color: white;
    background: var(--team-color, #64748b);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.team-members-_52fd {
    padding: 16px;
    background: #fafbfc;
}

.person-detail-_52fd {
    background: white;
    padding: 10px 12px;
    border-radius: 6px;
    border-left: 3px solid var(--team-color, #64748b);
    margin-bottom: 8px;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.person-detail-_52fd:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Calendar Body Structure for Sales */
.calendar-day-body-_52fd {
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 120px;
}

.calendar-day-body-_52fd.week-view {
    min-height: 180px;
    max-height: 180px;
    height: 180px;
}

.calendar-day-body-_52fd.month-view {
    min-height: 120px;
    max-height: 120px;
    height: 120px;
}

.calendar-day-body-_52fd:hover {
    background: #f8fafc;
}

.calendar-day-body-_52fd.other-month {
    background: #f8fafc;
    opacity: 0.6;
    cursor: default;
}

.calendar-day-body-_52fd.today-_52fd {
    background: linear-gradient(135deg, #fffbf0 0%, #fef7e0 100%);
    border: 1px solid #fbbf24;
    box-shadow: 0 2px 6px rgba(251, 191, 36, 0.15);
    position: relative;
}

.calendar-day-body-_52fd.today-_52fd .day-number-_52fd {
    font-weight: 600;
    color: #d97706;
    font-size: 15px;
}

.calendar-day-body-_52fd.weekend-_52fd {
    background: #fafbfc;
    border-color: #e5e7eb;
    position: relative;
}

.calendar-day-body-_52fd.weekend-_52fd .day-number-_52fd {
    color: #9ca3af;
    font-weight: 500;
}

.calendar-day-body-_52fd.weekend-_52fd:hover {
    background: #f5f6f7;
}

/* Enhanced Day Numbers for Sales */
.day-number-_52fd {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
    transition: all 0.2s;
}

/* Enhanced Team Display for Sales */
.team-name-_52fd {
    font-weight: 700;
    margin-bottom: 3px;
    font-size: 10px;
    color: #3b82f6;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.person-item-_52fd {
    padding: 2px 0;
    font-size: 9px;
    color: #64748b;
    font-weight: 500;
    line-height: 1.2;
}

/* Enhanced Hover Effects for Sales */
.calendar-day-body-_52fd:hover:not(.weekend-_52fd):not(.today-_52fd) {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.calendar-day-body-_52fd:hover .day-number-_52fd {
    color: #1e293b;
    transform: scale(1.05);
}

/* Teams container with controlled height for Sales */
.teams-container-_52fd {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.teams-container-_52fd.week-view {
    max-height: 145px;
}

.teams-container-_52fd.month-view {
    max-height: 85px;
}

/* Content indicator for Sales */
.calendar-day-body-_52fd.has-content::after {

}

/* Enhanced Calendar Headers for Sales */
.calendar-day-header-_52fd {
    padding: 15px 12px;
    text-align: center;
    font-weight: 700;
    color: #374151;
    font-size: 14px;
    border-right: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-day-header-_52fd:last-child {
    border-right: none;
}

/* Mobile responsive for Sales Modal */
@media (max-width: 1024px) {
    .modal-content-_52fd {
        margin: 10px;
        padding-top: 55px;
        max-height: 90vh;
    }
    
    .team-header-_52fd {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .team-members-_52fd {
        padding: 12px;
    }
    
    .person-detail-_52fd {
        padding: 8px 10px;
    }
}

@media (max-width: 640px) {
    .team-members-_52fd > div {
        grid-template-columns: 1fr;
    }
}

/* Force proper grid layout for sales calendar */
#allteams-calendar-_52fd .calendar-grid-header-_52fd {
    grid-template-columns: repeat(7, 1fr) !important;
}

#allteams-calendar-_52fd .calendar-grid-body-_52fd {
    grid-template-columns: repeat(7, 1fr) !important;
}

.calendar-day-header-_52fd{
        font-size: 12px; 
        font-weight: normal;
    }


@media (max-width: 500px) {
    .calendar-day-cell-_15rt14{
        font-size: 9px;
        min-width: 51px;
        max-width: 51px;
         padding:5px;
         overflow: hidden;
    }
    .calendar-day-header-_15rt14{
        font-size: 9px;
        min-width: 51px;
         max-width: 51px;
    }
    .calendar-day-header-tx-_52fd{
        font-size: 10px; 
        font-weight: normal;
    }
    .calendar-day-header-_52fd {

        font-size: 9px;
         

    }
    .day-capacity-_15rt14{

        font-size: 0px;

    }
    
.calendar-day-cell-_52fd { 
    padding:3px;

    }
}


/* Copy/Paste Planning Styles */
.day-context-menu {
    font-size: 14px;
}

.context-menu-item {
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f1f5f9;
}

.context-menu-item:last-child {
    border-bottom: none;
}

.context-menu-item:hover {
    background: #f8fafc;
}

.calendar-day-cell.paste-mode {
    cursor: pointer;
    border: 2px dashed #3b82f6 !important;
    transition: all 0.2s;
}

.calendar-day-cell.paste-mode:hover {
    background: #eff6ff !important;
    transform: scale(1.02);
}

.calendar-day-cell.selected-for-paste {
    background: #dbeafe !important;
    border: 2px solid #3b82f6 !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.selecting-paste-days .calendar-day-cell.paste-mode::after {
    content: '📋 Click to select';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: #3b82f6;
    background: white;
    padding: 2px 4px;
    border-radius: 4px;
    border: 1px solid #3b82f6;
}

.planning-toolbar {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.toolbar-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn.active {
    background: #3b82f6 !important;
    color: white !important;
}

.btn-outline {
    background: transparent;
    border: 1px solid #d1d5db;
    color: #6b7280;
}

.btn-outline:hover {
    background: #f3f4f6;
}


/* Copy/Paste Planning Styles - Header Click Method */
.calendar-day-header {
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
}

.calendar-day-header:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
}

.calendar-day-header.copy-source {
    background: #dbeafe !important;
    border: 2px solid #3b82f6 !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.calendar-day-header.copy-source::before {
    content: '📋 SOURCE';
    position: absolute;
    top: -8px;
    right: -8px;
    background: #3b82f6;
    color: white;
    font-size: 8px;
    padding: 2px 4px;
    border-radius: 4px;
    z-index: 10;
}

.calendar-day-header.paste-target {
    border: 2px dashed #10b981;
}

.paste-checkbox-wrapper {
    position: absolute;
    bottom: 4px;
    right: 4px;
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(255, 255, 255, 0.95);
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 10px;
    cursor: pointer;
    z-index: 10;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.paste-checkbox-wrapper:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #10b981;
    transform: scale(1.05);
}

.paste-day-checkbox {
    width: 12px;
    height: 12px;
    cursor: pointer;
}

.checkbox-label {
    font-size: 9px;
    color: #059669;
    font-weight: 600;
    white-space: nowrap;
}

.calendar-day-cell.selected-for-paste {
    background: #d1fae5 !important;
    border: 2px solid #10b981 !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.selected-for-paste::after {
    content: '✓ Selected';
    position: absolute;
    top: 4px;
    right: 4px;
    background: #10b981;
    color: white;
    font-size: 9px;
    padding: 2px 4px;
    border-radius: 4px;
    z-index: 10;
}

#planning-toolbar {
    animation: slideDown 0.3s ease;
}

/* Weekend checkbox styling */
.calendar-day-header.weekend .paste-checkbox-wrapper {
    background: rgba(248, 250, 252, 0.95);
    border-color: #cbd5e1;
}

.calendar-day-header.weekend .paste-checkbox-wrapper:hover {
    background: rgba(248, 250, 252, 1);
    border-color: #10b981;
}

.calendar-day-header.weekend .checkbox-label {
    color: #64748b;
}


/* Cross-week copying styles */
.cross-week-hint {
    animation: fadeIn 0.5s ease;
    padding: 8px;
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 6px;
    margin-top: 8px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Visual indicator for cross-week copy mode */
.calendar-header.copy-mode-active {
    border: 2px solid #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.calendar-header.copy-mode-active .nav-btn {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #3b82f6;
}

.calendar-header.copy-mode-active .nav-btn:hover {
    background: #3b82f6;
    color: white;
}


/* Loading state for copy mode navigation */
.calendar-header.copy-mode-active.navigating {
    opacity: 0.7;
    pointer-events: none;
}

.calendar-header.copy-mode-active.navigating::after {
    content: 'Loading...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(59, 130, 246, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 1000;
}

.copy-source-selected {
    background: #fef3c7 !important;
    border: 2px solid #f59e0b !important;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.copy-source-selected::before {
    content: '📅 SELECTED';
    position: absolute;
    top: -8px;
    right: -8px;
    background: #f59e0b;
    color: white;
    font-size: 8px;
    padding: 2px 4px;
    border-radius: 4px;
    z-index: 10;
}

#multi-source-toolbar {
    animation: slideDown 0.3s ease;
}


/* When in copy mode, make source days more prominent */
.calendar-header.copy-mode-active .copy-source-selected::before {
    content: '📋 COPIED';
    background: #059669;
    color: white;
}

/* Disable hover effects on source days when in copy mode */
.calendar-header.copy-mode-active .copy-source-selected {
    pointer-events: none;
    opacity: 0.8;
}

.calendar-header.copy-mode-active .copy-source-selected:hover {
    transform: none;
    background: #fef3c7 !important;
}

.capacity-info.over-capacity {
    border-left-color: #ef4444;
    background: #fef2f2;
}

.capacity-info.high-usage {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

.capacity-info.normal-usage {
    border-left-color: #10b981;
    background: #f0fdf4;
}

.day-capacity.high {
    background: #fecaca !important;
    color: #991b1b !important;
}

.day-capacity.medium {
    background: #fed7aa !important;
    color: #c2410c !important;
}

.day-capacity.low {
    background: #bbf7d0 !important;
    color: #166534 !important;
}



/* Manager Planning Calendar Mobile Styles */
@media (max-width: 1024px) {
    #manager-planning .unified-calendar {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        width: 100%;
    }
    
    #manager-planning .calendar-grid-header {
        display: flex; /* Use flex instead of grid */
        background: #f8fafc;
        border-bottom: 1px solid #e2e8f0;
        width: max-content; /* Only as wide as content */
    }
    
    #manager-planning .calendar-grid-body {
        display: flex;
        flex-direction: column;
        width: max-content; /* Only as wide as content */
        max-width: 120px;
    }
    
    #manager-planning .calendar-row {
        display: flex; /* Each row is a flex container */
    }
    
    #manager-planning .calendar-day-header {
        flex: 0 0 140px; /* Fixed width, no grow/shrink */
        padding: 12px 8px;
        text-align: center;
        font-weight: 600;
        color: #374151;
        font-size: 12px;
        border-right: 1px solid #e2e8f0;
        background: #f8fafc;
        box-sizing: border-box;
        display: flex;
        max-width: 120px;
        align-items: center;
        justify-content: center;
    }
    

    
    #manager-planning .calendar-day-header:last-child {
        border-right: none;
    }
    
    #manager-planning .calendar-day-cell {
        flex: 0 0 140px; /* Same width as headers */
        border-right: 1px solid #e2e8f0;
        border-bottom: 1px solid #e2e8f0;
        padding: 8px;
        min-height: 100px;
        display: flex;
        flex-direction: column;
        position: relative;
        box-sizing: border-box;
        background: #ffffff;
    }
    
    #manager-planning .calendar-row > div:first-child {
        /* Employee name cell */
        flex: 0 0 120px; /* Match first header width */
        background: #fafafa;
        border-right: 2px solid #d1d5db;
        font-weight: 600;
        color: #374151;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        font-size: 12px;
        border-bottom: 1px solid #e2e8f0;
        box-sizing: border-box;
    }
    
    #manager-planning .calendar-day-cell:last-child {
        border-right: none;
    }
    
    /* Remove the scroll indicator to prevent extra space */
    #manager-planning .unified-calendar::after {
        display: none;
    }
    
    /* Add a subtle scroll hint above the calendar instead */
    #manager-planning .calendar-header::after {
        content: "💡 Swipe horizontally to view all days";
        display: block;
        text-align: center;
        font-size: 11px;
        color: #64748b;
        font-style: italic;
        margin-top: 8px;
        padding: 4px;
        background: #f8fafc;
        border-radius: 4px;
    }
    
    /* Calendar header mobile adjustments */
    #manager-planning .calendar-header {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
        margin-bottom: 15px;
    }
    
    #manager-planning .calendar-nav {
        order: 2;
        justify-content: center;
    }
    
    #manager-planning .calendar-view-selector {
        order: 1;
        align-self: center;
    }
    
    #manager-planning .calendar-controls {
        order: 3;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    #manager-planning .current-period {
        font-size: 14px;
        min-width: 120px;
        text-align: center;
    }
    
    #manager-planning .nav-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    #manager-planning .view-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    #manager-planning .toggle-switch {
        scale: 0.8;
    }
    
    #manager-planning .toggle-label {
        font-size: 12px;
    }
    
    /* Team members table mobile */
    #manager-planning .team-header-container {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    #manager-planning .btn-primary {
        width: 100%;
        font-size: 12px;
        padding: 10px 16px;
    }
    
    #manager-planning h2 {
        font-size: 18px;
        margin-bottom: 0;
        text-align: center;
    }
    
    /* Copy/paste toolbar mobile */
    #manager-planning #planning-toolbar {
        padding: 10px;
    }
    
    #manager-planning #planning-toolbar > div {
        flex-direction: column;
        gap: 8px;
    }
    
    #manager-planning .toolbar-section {
        flex-direction: column;
        gap: 6px;
    }
    
    #manager-planning .toolbar-section .btn {
        font-size: 11px;
        padding: 6px 12px;
    }
}

/* Extra small mobile screens */
@media (max-width: 640px) {
    #manager-planning .calendar-day-header {
        flex: 0 0 120px; /* Slightly smaller on very small screens */
        font-size: 11px;
        padding: 10px 6px;
        max-width: 120px;
    }
    

    
    #manager-planning .calendar-day-cell {
        flex: 0 0 120px;
        min-height: 80px;
        font-size: 11px;
        padding: 6px;
    }
    
    #manager-planning .calendar-row > div:first-child {
        flex: 0 0 100px;
        font-size: 11px;
    }
}