/* ===== EMPLOYEE ACCESS MODAL ===== */
.access-modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); z-index: 2000;
    display: flex; align-items: flex-end; justify-content: center;
}
@media (min-width: 768px) { .access-modal-overlay { align-items: center; } }
.access-modal {
    background: #fff; border-radius: 20px 20px 0 0;
    width: 100%; max-width: 500px; max-height: 90vh;
    display: flex; flex-direction: column; overflow: hidden;
    animation: slideUp 0.3s ease;
}
@media (min-width: 768px) { .access-modal { border-radius: 20px; max-height: 80vh; } }
.access-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px; border-bottom: 1px solid #f0f0f0; flex-shrink: 0;
}
.access-modal-back, .access-modal-close { background: none; border: none; padding: 8px; cursor: pointer; border-radius: 8px; display: flex; color: #666; }
.access-modal-back:hover, .access-modal-close:hover { background: #f5f5f5; }
.access-modal-title { font-size: 18px; font-weight: 600; color: #1a1a1a; margin: 0; }
.access-modal-body { flex: 1; overflow-y: auto; padding: 20px; -webkit-overflow-scrolling: touch; }
.access-modal-footer { padding: 20px; border-top: 1px solid #f0f0f0; flex-shrink: 0; }

.access-section { margin-bottom: 20px; }
.access-label { font-size: 14px; font-weight: 600; color: #1a1a1a; margin-bottom: 8px; display: block; }
.access-name-row { display: flex; gap: 12px; }
.access-name-field { flex: 1; }
.access-input {
    width: 100%; padding: 14px 16px; border: 1px solid #e0e0e0;
    border-radius: 12px; font-size: 15px; background: #f8f8f8;
    transition: all 0.2s; box-sizing: border-box; font-family: inherit;
}
.access-input:focus { outline: none; border-color: #dd1847; background: #fff; }
.access-role-selector {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px; background: #f8f8f8; border-radius: 12px; cursor: pointer;
}
.access-role-selector span { font-size: 14px; color: #1a1a1a; }

.access-subsection { margin-top: 16px; padding-top: 16px; border-top: 1px solid #f0f0f0; }
.access-subsection-title { font-size: 13px; font-weight: 600; color: #888; margin-bottom: 8px; text-transform: uppercase; }
.access-subsection-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 0; cursor: pointer; font-size: 14px; color: #1a1a1a;
}
.access-subsection-value { font-size: 13px; color: #888; display: flex; align-items: center; gap: 4px; }

.access-toggle { position: relative; display: inline-block; width: 48px; height: 26px; }
.access-toggle input { opacity: 0; width: 0; height: 0; }
.access-toggle-slider {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background: #ccc; transition: .3s; border-radius: 26px;
}
.access-toggle-slider:before {
    position: absolute; content: ""; height: 22px; width: 22px;
    left: 2px; bottom: 2px; background: #fff; transition: .3s; border-radius: 50%;
}
.access-toggle input:checked + .access-toggle-slider { background: #dd1847; }
.access-toggle input:checked + .access-toggle-slider:before { transform: translateX(22px); }

.access-save-btn {
    width: 100%; padding: 16px; background: #dd1847; color: #fff;
    border: none; border-radius: 12px; font-size: 16px; font-weight: 600;
    cursor: pointer; font-family: inherit;
}
.access-save-btn:disabled { background: #ccc; cursor: not-allowed; }

.am-role-overlay, .am-sub-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); z-index: 2200;
    display: flex; align-items: flex-end; justify-content: center;
}
.am-role-content, .am-sub-content {
    background: #fff; border-radius: 20px 20px 0 0;
    width: 100%; max-width: 500px; max-height: 70vh;
    display: flex; flex-direction: column; overflow: hidden;
}
.am-role-header, .am-sub-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px; border-bottom: 1px solid #f0f0f0;
}
.am-role-header h3, .am-sub-header h3 { font-size: 18px; font-weight: 600; margin: 0; }
.am-role-close, .am-sub-close { background: none; border: none; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 18px; color: #666; }
.am-role-list, .am-sub-list { padding: 8px; overflow-y: auto; }
.am-role-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; cursor: pointer; border-radius: 12px; margin: 4px 0; }
.am-role-item:hover { background: #f5f5f5; }
.am-role-item.selected { background: #fdf2f5; }
.am-role-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #ddd; flex-shrink: 0; margin-top: 2px; display: flex; align-items: center; justify-content: center; }
.am-role-item.selected .am-role-radio { border-color: #dd1847; }
.am-role-dot { width: 10px; height: 10px; border-radius: 50%; background: #dd1847; opacity: 0; }
.am-role-item.selected .am-role-dot { opacity: 1; }
.am-sub-item { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; cursor: pointer; border-radius: 10px; font-size: 14px; }
.am-sub-item:hover { background: #f5f5f5; }
.am-sub-item.selected { background: #fdf2f5; color: #dd1847; font-weight: 500; }

.btn-spinner svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }