/* ===== ShiftSure Manage Users – Modernized CSS ===== */
:root {
  --brand-blue: #00AEEF;
  --brand-green: #6BBE44;
  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --ink-300: #cbd5e1;
  --ink-200: #e2e8f0;
  --ink-100: #f1f5f9;
  --success-bg: #d4edda;
  --success-text: #155724;
  --error-bg: #f8d7da;
  --error-text: #721c24;
  --card-bg: #ffffff;
  --page-bg: #f6fbff;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
}



body.page-template-employer-dashboard .manageusers-title{
	text-align: left;
    font-size: 24px;
    color: #222;
    margin: 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    height: 100%;
	
}

body.page-template-employer-dashboard .manageusers-header{
	display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0px 1px 32px 0;
    padding: 50px 20px 30px 20px;
    background-color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 8px 8px;
}

body.page-template-employer-dashboard .mu-page section{
	padding: 5px 0px;
}


/* ===== Page ===== */
.mu-page {
  background: var(--page-bg);
  border-radius: var(--radius);
  font-family: 'Segoe UI', sans-serif;
  min-height: 100vh;
}

/* ===== Cards / Sections ===== */
.manager-content {
  padding: 0px 0;
}

.mu-card {
  background: var(--card-bg);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  margin: 20px;
  margin-top: 20px;
  transition: all 0.3s ease;
  overflow: hidden;
}
.mu-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.mu-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--ink-200);
  
}
.mu-card__title {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--ink-900);
}
.mu-card__hint {
  color: var(--ink-500);
  font-size: 0.9rem;
}
.mu-card__body {
  padding: 20px;
}
.manageusersrow{
	padding:0px;
}
/* ===== Forms ===== */
.mu-form {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.mu-field {
  flex: 1 1 220px;
  min-width: 200px;
}
.mu-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-700);
  margin-bottom: 4px;
}
input.mu-inputmanage,
select.mu-selectmanage {
    all: unset;
    box-sizing: border-box;
    display: block;
    width: 100% !important;
    padding: 6px 10px !important;
    font-size: 0.85rem !important;
    height: 32px !important;
    border: 1px solid var(--ink-200) !important;
    border-radius: var(--radius) !important;
    background: #fff !important;
	line-height: 18px; 
}

.mu-inputmanage:focus,
.mu-selectmanage:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 8px rgba(0,174,239,0.25);
  outline: none;
}

/* ===== Buttons ===== */
.mu-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.btn {
  border: 1px solid var(--ink-200);
  background: #fff;
  color: var(--ink-900);
  border-radius: var(--radius);
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  background: #DEF7F6; 
}
.btn.primary {
  border-color: transparent;
  color: #fff;
  background-color: #2CA6A4 ;
}
.btn.primaryaddrep {
      border-color: transparent;
    color: #fff;
    background-color: #2CA6A4;
    height: 35px;
    margin-top: 11px;
}
}
.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,174,239,0.25);
}
.btn.danger {
  border-color: #fecaca;
  background: #fff;
  color: #b91c1c;
}
.btn.danger:hover {
  background: #fee2e2;
}

/* ===== Table ===== */
.mu-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    border-radius: 6px;
    overflow: hidden;
}

.mu-table thead th {
    background: #f8f9fa;
    text-align: left;
    padding: 14px 20px;
    font-weight: 600;
    font-size: 12px;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #dee2e6;
}
.mu-table tbody td {
    padding: 0px 20px;
    color: #495057;
    border-bottom: 1px solid #dee2e6;
}

.mu-table tbody tr:last-child td {
    border-bottom: none;
}

.mu-table tbody tr:hover {
    background-color: #f1f3f5;
}
.mu-table .user-name {
    font-weight: 600;
    color: #212529;
}
.mu-table__actions {
  display: flex;
  gap: 10px;
  justify-content: start;
}
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 99px;
    font-weight: 500;
    font-size: 12px;
}

.table-actions {
    display: flex;
    gap: 12px;
}

.btn-icon {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    border-radius: 4px;
    color: #495057;
    transition: 0.2s ease-in-out;
}

.btn-icon:hover {
    background-color: #f8f9fa;
    color: #005A9C;
}

.btn-icon.danger:hover {
    color: #d94848;
}
status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-active { background-color: #eaf6ec; color: #216e39; }
.status-active::before { background-color: #28a745; }

.status-inactive { background-color: #f1f3f5; color: #6c757d; }
.status-inactive::before { background-color: #6c757d; }





/* ===== Modals ===== */
.mu-modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.55);
  align-items: center;
  justify-content: center;
}
.mu-modal-content {
  background: #fff;
  padding: 28px;
  border-radius: var(--radius);
  max-width: 480px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  position: relative;
  animation: modalFade 0.3s ease;
}
@keyframes modalFade {
  from {opacity: 0; transform: translateY(-20px);}
  to {opacity: 1; transform: translateY(0);}
}
.mu-close {
  position: absolute;
  right: 16px;
  top: 12px;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--ink-500);
}
.mu-close:hover {
  color: var(--ink-900);
}



/* ===== Spinner ===== */
.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  0% {transform: rotate(0deg);}
  100% {transform: rotate(360deg);}
}

/* ===== Message Modal ===== */
#message-modal .mu-modal-content {
  text-align: center;
  padding: 30px;
}
#message-text {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  color: var(--ink-700);
}
#message-modal.success .mu-modal-content { border-top: 5px solid var(--brand-green); }
#message-modal.error .mu-modal-content { border-top: 5px solid var(--error-text); }



/*
========================================
=====   DARK MODE OVERRIDES (Part 9) =====
=====        (Manage Users View)       =====
========================================
*/

/* --- 1. Page & Header --- */
body.dark-mode .mu-page {
  background: var(--page-bg); /* This file uses a variable, let's override it */
  background-color: #111827; /* gray-900 */
}

body.dark-mode .manageusers-header {
  background-color: #1f2937; /* gray-800 */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid #374151;
}

body.dark-mode .manageusers-title {
  color: #e5e7eb; /* gray-200 */
}

/* --- 2. Cards --- */
body.dark-mode .mu-card {
  background: #1f2937; /* gray-800 */
  border: 1px solid #374151; /* gray-700 */
}
body.dark-mode .mu-card:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

body.dark-mode .mu-card__head {
  border-bottom: 1px solid #374151; /* gray-700 */
}
body.dark-mode .mu-card__title {
  color: #e5e7eb; /* gray-200 */
}
body.dark-mode .mu-card__hint {
  color: #9ca3af; /* gray-400 */
}

/* --- 3. Forms --- */
body.dark-mode .mu-label {
  color: #d1d5db; /* gray-300 */
}
body.dark-mode input.mu-inputmanage,
body.dark-mode select.mu-selectmanage {
  border: 1px solid #4b5563 !important; /* gray-600 */
  background: #374151 !important; /* gray-700 */
  color: #e5e7eb;
}

body.dark-mode .mu-inputmanage:focus,
body.dark-mode .mu-selectmanage:focus {
  border-color: #38b6ff !important; /* Use our standard blue focus */
  box-shadow: 0 0 8px rgba(56, 182, 255, 0.25);
}

/* --- 4. Buttons --- */
body.dark-mode .btn {
  border: 1px solid #4b5563; /* gray-600 */
  background: #374151; /* gray-700 */
  color: #e5e7eb;
}
body.dark-mode .btn:hover {
  background: #4b5563; /* gray-600 */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
body.dark-mode .btn.primary {
  /* This class already sets a good color, no override needed */
  /* You can optionally add a dark mode specific hover */
}
body.dark-mode .btn.primary:hover {
  /* You can add a specific dark hover if you want */
}
body.dark-mode .btn.danger {
  border-color: #7f1d1d; /* red-900 */
  background: #1f2937; /* gray-800 */
  color: #fca5a5; /* red-300 */
}
body.dark-mode .btn.danger:hover {
  background: #7f1d1d; /* red-900 */
  color: #fee2e2;
}

/* --- 5. Table --- */
body.dark-mode .mu-table thead th {
  background: #374151; /* gray-700 */
  color: #e5e7eb; /* gray-200 */
  border-bottom: 2px solid #4b5563; /* gray-600 */
}
body.dark-mode .mu-table tbody td {
  color: #d1d5db; /* gray-300 */
  border-bottom: 1px solid #374151; /* gray-700 */
}

body.dark-mode .mu-table tbody tr:hover {
  background-color: #111827; /* gray-900 */
}
body.dark-mode .mu-table .user-name {
  color: #e5e7eb; /* gray-200 */
}

/* Invert Status Badges */
body.dark-mode .status-active {
  background-color: #065f46;
  color: #d1fae5;
}
body.dark-mode .status-active::before {
  background-color: #34d399;
}
body.dark-mode .status-inactive {
  background-color: #374151;
  color: #d1d5db;
}
body.dark-mode .status-inactive::before {
  background-color: #9ca3af;
}

/* Table Actions */
body.dark-mode .btn-icon {
  color: #9ca3af;
}
body.dark-mode .btn-icon:hover {
  background-color: #374151;
  color: #60a5fa; /* light blue */
}
body.dark-mode .btn-icon.danger:hover {
  color: #f87171; /* light red */
}

/* --- 6. Modals --- */
body.dark-mode .mu-modal-content {
  background: #1f2937; /* gray-800 */
  border: 1px solid #374151;
}
body.dark-mode .mu-close {
  color: #9ca3af;
}

body.dark-mode .mu-modal-content h3 {
  color: #fff;
}


body.dark-mode .mu-close:hover {
  color: #e5e7eb;
}

/* Message Modal */
body.dark-mode #message-text {
  color: #d1d5db;
}
body.dark-mode #message-modal.success .mu-modal-content {
  border-top: 5px solid #34d399; /* lighter green */
}
body.dark-mode #message-modal.error .mu-modal-content {
  border-top: 5px solid #f87171; /* lighter red */
}



/* ===== Responsive ===== */
@media(max-width: 820px) {
  .mu-form { flex-direction: column; }
  .mu-field { width: 100%; }
}
