:root{
  --bg:#f6f7fb;
  --card:#ffffff;
  --accent:#0a84ff;
  --muted:#6b7280;
  --logo-color:#0b4a86;
  --accent-contrast:#fff;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial;
}

/* Reset */
*{box-sizing:border-box}
html,body{height:100%;margin:0;background:var(--bg);color:#111;-webkit-font-smoothing:antialiased}

/* Page container — restored wider original width for appointments/users/clients */
.wrap{max-width:1100px;margin:18px auto;padding:18px}

/* Header / Brand layout restored */
.page-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
}
.header-left{display:flex;align-items:center;gap:14px}
/* reduced global logo height for compact header while preserving aspect ratio */
.header-logo{height:48px;width:auto;border-radius:8px;box-shadow:0 8px 24px rgba(11,74,134,0.06);max-height:4.5rem}
.header-titles{display:flex;flex-direction:column;line-height:1}
.header-company{font-weight:900;text-transform:uppercase;font-size:16px;color:var(--logo-color);letter-spacing:0.4px}
.header-page-title{font-weight:800;color:#071026;font-size:18px;margin-top:6px}
.header-actions{display:flex;gap:10px;align-items:center}

/* ensure any generic .logo img used across pages follows the same compact sizing */
.logo img{height:48px;width:auto;max-height:4.5rem;display:block}

/* Toolbar / Controls spacing restored */
.toolbar{display:flex;gap:10px;align-items:center}
.search-input{flex:1;padding:10px;border-radius:10px;border:1px solid #e6e6e6}
.btn{background:var(--accent);color:var(--accent-contrast);border:0;padding:10px 14px;border-radius:10px;font-weight:700;box-shadow:0 8px 26px rgba(10,132,255,0.08);transition:transform .12s}
.btn:hover{transform:translateY(-2px)}
.btn.secondary{background:#fff;color:#111;border:1px solid #e6e6e6;box-shadow:none}
.btn.ghost{background:#fff;color:#111;border:1px solid #e6e6e6}

/* Icon button consistent style for actions in lists */
.icon-btn{width:40px;height:40px;border-radius:8px;border:1px solid #eef3f7;background:#fff;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 6px 18px rgba(2,6,23,0.04);transition:transform .12s,box-shadow .12s}
.icon-btn:hover{transform:translateY(-3px);box-shadow:0 12px 30px rgba(2,6,23,0.10)}
/* Smaller icon variant (used in users list) */
.icon-btn.sm { width:36px;height:36px;border-radius:8px;padding:6px; }
/* role badges for users list */
.role-badge { display:inline-block;padding:6px 8px;border-radius:999px;font-weight:800;font-size:12px;color:#fff }
.role-badge.admin { background: linear-gradient(180deg,#0f6ee8,#0b5fd0); box-shadow:0 8px 20px rgba(10,110,232,0.12) }
.role-badge.tecnico { background: linear-gradient(180deg,#10b981,#0b8f5f); box-shadow:0 8px 20px rgba(16,185,129,0.12) }

/* Action icons area layout */
.icons{display:flex;gap:8px;align-items:center}

/* Cards & lists — restore original spacing and visual rhythm */
.card{background:var(--card);padding:14px;border-radius:12px;box-shadow:0 10px 30px rgba(11,74,134,0.04);margin-bottom:12px;display:flex;flex-direction:column;gap:10px}
.list{display:flex;flex-direction:column;gap:12px}
.card-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.card-main{flex:1;min-width:0}
.card-title{font-weight:800;font-size:15px}
.card-info{font-size:13px;color:var(--muted);margin-top:6px}
.card-notes{margin-top:8px;color:#111}

/* Small text utilities */
.small{font-size:13px;color:var(--muted)}
.meta{color:var(--muted);font-size:13px;margin-top:4px}

/* Forms / modal layout restored */
.modal-backdrop{position:fixed;inset:0;background:rgba(2,6,23,0.45);display:none;align-items:center;justify-content:center;padding:18px;z-index:60}
.modal{background:var(--card);border-radius:12px;padding:18px;max-width:720px;width:100%;box-shadow:0 20px 60px rgba(2,6,23,0.18)}
.modal h3{margin-top:0}

/* Grid helpers used by pages */
.row{display:flex;gap:10px;align-items:center}
.col{flex:1}

/* Signature canvas visuals restored */
#sigCanvas{width:100%;height:120px;border-radius:8px;border:1px dashed #e6e6e6;background:#fff;touch-action:none;display:block}

/* Executed label */
.executed-label{color:#10b981;font-weight:800;background:rgba(16,185,129,0.06);padding:6px 10px;border-radius:10px;font-size:13px;display:inline-block}

/* Icon system simplified: keep stroke controlled by currentColor to match clients_manage */
.mi-icon{width:20px;height:20px;display:inline-block;vertical-align:middle;stroke:currentColor;fill:none}
.mi-accent-blue{color:var(--logo-color)}
.mi-accent-cyan{color:#00B3FF}
.mi-accent-success{color:#22C55E}

/* Ensure lists/tables layout consistent */
table{width:100%;border-collapse:collapse}
th,td{padding:10px;border-bottom:1px solid #f1f5f9;text-align:left;font-size:14px}
.td-icon{width:44px}

/* Responsive — restore original breakpoints */
@media (max-width:980px){
  .wrap{padding:14px}
  /* slightly smaller on medium screens */
  .header-logo{height:42px}
  .logo img{height:42px}
  .modal{max-width:560px}
}
@media (max-width:640px){
  .page-header{flex-direction:column;align-items:flex-start;gap:12px}
  .toolbar{flex-direction:column;align-items:stretch}
  .icon-btn{width:36px;height:36px}
  /* compact logo on small screens to preserve header proportions */
  .header-logo{height:36px}
  .logo img{height:36px}
}

/* Login page styles (centralized) */
.login-page {
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  background: linear-gradient(180deg, rgba(11,74,134,0.03) 0%, rgba(246,247,251,1) 45%);
  padding:24px;
}

.login-card {
  width:100%;
  max-width:420px;
  background:var(--card);
  border-radius:14px;
  padding:28px;
  box-shadow:0 20px 50px rgba(11,74,134,0.08);
  display:flex;
  flex-direction:column;
  gap:16px;
  align-items:stretch;
}

.login-top {
  display:flex;
  align-items:center;
  gap:12px;
}

.login-top .logo {
  flex:0 0 auto;
}

.login-top .logo img{
  height:44px;
  width:auto;
  border-radius:8px;
  display:block;
  box-shadow:none;
}

.login-title {
  display:flex;
  flex-direction:column;
  line-height:1;
}

.login-title h1{
  margin:0;
  font-size:20px;
  font-weight:800;
  color:var(--logo-color);
}

.login-title p{
  margin:2px 0 0;
  font-size:13px;
  color:var(--muted);
}

/* Form fields */
.login-form { display:flex;flex-direction:column;gap:12px;margin-top:4px; }
.login-form label{display:block;font-size:13px;color:#374151;font-weight:600}
.login-form input[type="text"],
.login-form input[type="password"]{
  width:100%;
  padding:12px 14px;
  border-radius:10px;
  border:1px solid #e6e6e6;
  background:#fff;
  font-size:15px;
  outline:none;
  transition:box-shadow .12s, border-color .12s;
}
.login-form input:focus{
  border-color:var(--accent);
  box-shadow:0 6px 20px rgba(10,132,255,0.08);
}

/* Primary button override to be slightly taller, full width on mobile */
.login-actions{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  margin-top:6px;
}
.login-actions .btn{padding:12px 16px;border-radius:10px}
.login-actions .btn.full{flex:1}

/* Error styling */
.error{color:#b00020;font-weight:700;font-size:13px;margin-top:6px}

/* Helper text */
.help{font-size:13px;color:var(--muted);margin-top:8px}

/* Responsive tweaks */
@media (max-width:480px){
  .login-card{padding:18px;border-radius:12px}
  .login-top .logo img{height:40px}
  .login-title h1{font-size:18px}
  .login-form input{padding:10px 12px;font-size:14px}
  .login-actions{flex-direction:column}
  .login-actions .btn{width:100%}
}

/* Dashboard card grid (modular, responsive, professional SaaS look) */
.dashboard {
  padding-top: 6px;
}
.dashboard-hero {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
}
.dashboard-hero .greeting { font-weight:800; font-size:20px; color:var(--logo-color); }
.dashboard-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
  align-items:stretch;
}
/* Card baseline */
.dash-card {
  background:var(--card);
  border-radius:12px;
  padding:18px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:12px;
  box-shadow:0 12px 34px rgba(2,6,23,0.06);
  transition:transform .14s ease,box-shadow .14s ease,background .14s ease;
  cursor:pointer;
  min-height:160px; /* consistent height */
  text-decoration:none;
  color:inherit;
}
.dash-card:focus, .dash-card:hover {
  transform:translateY(-6px);
  box-shadow:0 20px 50px rgba(2,6,23,0.12);
  outline: none;
}
.dash-card .card-icon {
  width:64px;
  height:64px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  /* refined two-tone subtle gradient for elegant lift */
  background: linear-gradient(180deg, rgba(11,74,134,0.07), rgba(3,147,255,0.035));
  color:var(--logo-color);
  flex-shrink:0;
  transition:box-shadow .18s ease, transform .14s ease, filter .18s ease;
  box-shadow: 0 6px 18px rgba(11,74,134,0.04), inset 0 -6px 12px rgba(255,255,255,0.02);
  /* allow slightly brighter backdrop for filled icons */
  -webkit-backdrop-filter: blur(0.6px);
  backdrop-filter: blur(0.6px);
}
/* subtle glow and lift on hover/focus for visual emphasis */
.dash-card:focus .card-icon,
.dash-card:hover .card-icon {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 24px 48px rgba(2,6,23,0.12), 0 6px 28px rgba(3,147,255,0.08);
  filter: drop-shadow(0 6px 18px rgba(3,147,255,0.06));
}
.dash-card .card-title { font-weight:800; font-size:16px; }
.dash-card .card-sub { font-size:13px; color:var(--muted); }

/* Emphasize primary card style */
.dash-card.primary .card-icon { background:linear-gradient(180deg, rgba(10,132,255,0.12), rgba(10,132,255,0.04)); color:var(--accent-contrast); }
.dash-card.secondary .card-icon { background:linear-gradient(180deg, rgba(16,185,129,0.06), rgba(16,185,129,0.02)); color:#065f46; }

/* Make icons consistent */
.dash-card svg.mi-icon {
  width:44px;
  height:44px;
  stroke:currentColor;
  fill:currentColor;
  opacity:0.98;
  /* ensure icons render crisply and are centered */
  display:block;
  /* make inline icon fills slightly brighter and allow multi-tone accents via SVG fills */
  transition:transform .14s ease, opacity .14s ease;
  will-change:transform, opacity;
}

/* Accent overrides for common semantic colors inside inline SVGs (use classes on SVGs if needed) */
.dash-card .mi-accent-cyan { color: #00B3FF; }
.dash-card .mi-accent-blue { color: #163A5F; }
.dash-card .mi-accent-success { color: #10b981; }

/* On card hover, nudge icon color/scale for emphasis */
.dash-card:hover svg.mi-icon,
.dash-card:focus svg.mi-icon {
  transform: translateY(-2px) scale(1.04);
  opacity: 1;
}

/* Responsive breakpoints */
@media (max-width:1100px){
  .dashboard-grid{grid-template-columns:repeat(3,1fr)}
}
@media (max-width:800px){
  .dashboard-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:480px){
  .dashboard-grid{grid-template-columns:1fr}
  .dash-card{min-height:140px;padding:14px}
  .dash-card .card-icon{width:48px;height:48px}
}

/* Clients management specific classes (new) */
.clients-page { background: var(--bg); color: #071026; min-height:100vh; }
.clients-card { display:flex; flex-direction:column; gap:12px; padding:14px; border-radius:12px; box-shadow:0 10px 30px rgba(11,74,134,0.04); background:var(--card); }

/* toolbar */
/* Redesigned toolbar for enterprise look: balanced spacing, subtle shadows, modern controls */
.clients-toolbar {
  display:flex;
  gap:12px;
  align-items:center;
  width:100%;
  background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0.5));
  padding:10px;
  border-radius:12px;
  border:1px solid rgba(14, 45, 77, 0.04);
  box-shadow: 0 6px 18px rgba(11,74,134,0.04);
}

/* Enhanced client card presentation */
.clients-list { display:flex; flex-direction:column; gap:12px; margin-top:10px; }
.client-card {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px;
  border-radius:12px;
  background: linear-gradient(180deg,#ffffff,#fbfdff);
  border:1px solid #eef3f7;
  box-shadow: 0 8px 26px rgba(2,6,23,0.04);
  transition:transform .12s, box-shadow .12s;
}

/* Slight lift on hover for desktop */
.client-card:hover { transform: translateY(-4px); box-shadow: 0 20px 48px rgba(2,6,23,0.08); }

/* Main content area */
.client-main { flex:1; min-width:0; display:flex; flex-direction:column; gap:8px; }
.client-title { font-weight:800; font-size:16px; color:#071026; line-height:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* Rows for contact details with icons */
.client-rows { display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
.client-row { display:inline-flex; gap:8px; align-items:center; color:var(--muted); font-size:13px; min-width:0; }
.client-meta-text { display:inline-block; max-width:320px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:#374151; }

/* smaller icons inside rows */
.client-row .mi-icon { width:16px; height:16px; color:#6b7280; flex:0 0 16px; }

/* Actions */
.client-actions { display:flex; gap:8px; align-items:center; flex-shrink:0; }
.client-actions .icon-btn { width:40px; height:40px; border-radius:8px; background:#fff; border:1px solid #eef3f7; box-shadow:none; display:inline-flex; align-items:center; justify-content:center; padding:6px; }
.client-actions .icon-btn:hover { transform:translateY(-2px); box-shadow:0 8px 20px rgba(2,6,23,0.06); }
.btn-delete .mi-icon { color:#b00020; }

/* Make primary textual buttons compact if present */
.client-actions .btn { padding:8px 10px; border-radius:8px; font-weight:700; }

/* Responsive: stack on small screens */
@media (max-width:720px) {
  .client-card { flex-direction:column; align-items:flex-start; padding:12px; }
  .client-rows { flex-direction:column; gap:6px; align-items:flex-start; }
  .client-meta-text { max-width:100%; white-space:normal; }
  .client-actions { width:100%; justify-content:flex-end; margin-top:8px; }
}

/* modern search field */
.clients-search {
  flex:1;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid #e6eaf0;
  font-size:15px;
  background: linear-gradient(180deg,#fff,#fbfdff);
  outline:none;
  box-shadow: 0 6px 20px rgba(10,132,255,0.03);
  transition:box-shadow .15s, border-color .15s, transform .12s;
  color:#071026;
}

/* placeholder color */
.clients-search::placeholder { color:#9aa6b2; font-weight:600; opacity:1; }

/* focus state */
.clients-search:focus {
  border-color: rgba(10,132,255,0.9);
  box-shadow: 0 12px 30px rgba(10,132,255,0.08);
  transform: translateY(-1px);
}

/* toolbar actions group */
.clients-toolbar-actions { display:flex; gap:8px; align-items:center; }

/* Users toolbar refinements (shared with clients toolbar by using both classes) */
.users-toolbar { display:flex; gap:12px; align-items:center; justify-content:space-between; width:100%; }
.users-search-wrap { flex:1; min-width:0; display:flex; align-items:center; }
.users-search { width:100%; padding:12px 14px; border-radius:12px; border:1px solid #e6eaf0; font-size:15px; background:linear-gradient(180deg,#fff,#fbfdff); outline:none; box-shadow:0 6px 20px rgba(10,132,255,0.03); color:#071026; transition:box-shadow .15s, border-color .15s, transform .12s; }
.users-search::placeholder { color:#9aa6b2; font-weight:600; opacity:1; }
.users-search:focus { border-color: rgba(10,132,255,0.9); box-shadow: 0 12px 30px rgba(10,132,255,0.08); transform: translateY(-1px); }

/* Accessible helper: visually-hidden utility */
.visually-hidden { position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; border: 0; padding:0; margin:-1px; }

/* Search / action buttons styling variations for users toolbar */
.users-toolbar-actions { display:flex; gap:8px; align-items:center; }
.users-btn { display:inline-flex; align-items:center; gap:8px; padding:10px 12px; border-radius:10px; font-weight:800; transition:transform .12s, box-shadow .12s, opacity .12s; border: none; cursor: pointer; text-decoration: none; }
.users-btn svg.mi-icon { width:16px; height:16px; }

/* Primary search button - compact icon button */
.users-btn--primary { background: linear-gradient(180deg, var(--accent), #0a6fe6); color: var(--accent-contrast); box-shadow: 0 10px 26px rgba(10,132,255,0.12); padding:10px; border-radius:10px; }
.users-btn--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(10,132,255,0.16); }

/* Ghost/secondary refresh */
.users-btn--ghost { background: transparent; color:#566674; border:1px solid rgba(86,102,116,0.06); padding:9px 10px; box-shadow:none; }
.users-btn--ghost:hover { background: rgba(9,30,53,0.03); transform: translateY(-2px); }

/* Accent create user button: visible call-to-action */
.users-btn--accent { display:inline-flex; align-items:center; gap:8px; padding:10px 14px; border-radius:10px; background:linear-gradient(180deg,var(--accent),#0a6fe6); color:var(--accent-contrast); box-shadow:0 12px 34px rgba(10,132,255,0.12); border:none; font-weight:800; }
.users-btn--accent:hover { transform: translateY(-3px); opacity:0.98; box-shadow:0 18px 46px rgba(10,132,255,0.16); }

/* small screen: wrap toolbar vertically and ensure spacing */
@media (max-width:720px) {
  .users-toolbar { flex-direction:column; align-items:stretch; gap:10px; }
  .users-toolbar .clients-toolbar-actions { justify-content:flex-end; width:100%; }
  .users-btn--accent { width:100%; justify-content:center; }
  .users-btn--primary { width:48px; justify-content:center; padding:10px; }
}

/* Primary new client button (prominent) */
#createToggleBtn.btn {
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:10px;
  background:linear-gradient(180deg, var(--accent), #0a6fe6);
  color:var(--accent-contrast);
  box-shadow: 0 10px 30px rgba(10,132,255,0.14), 0 2px 6px rgba(10,132,255,0.06);
  border: none;
  font-weight:800;
  transition: transform .12s, box-shadow .12s, opacity .12s;
}

/* plus icon sizing inside create button */
#createToggleBtn .mi-icon { width:18px; height:18px; }

/* hover/active for primary */
#createToggleBtn.btn:hover { transform: translateY(-3px); opacity:0.98; box-shadow: 0 16px 40px rgba(10,132,255,0.18); }

/* Search button with icon-only modern style */
#searchBtn.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 12px;
  border-radius:10px;
  background: linear-gradient(180deg, #0f6ee8, #0b5fd0);
  color: #fff;
  box-shadow: 0 8px 24px rgba(11,74,134,0.08);
  border: none;
  transition: transform .12s, box-shadow .12s;
  font-weight:700;
}

/* small icon inside search button */
#searchBtn .mi-icon { width:16px; height:16px; stroke:currentColor; fill:none; }

/* subtle hover */
#searchBtn.btn:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(11,74,134,0.12); }

/* Refresh / reset button lighter & ghost */
#refreshBtn.btn.secondary {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:transparent;
  color:#566674;
  border:1px solid rgba(86,102,116,0.06);
  padding:9px 10px;
  border-radius:10px;
  box-shadow:none;
  transition: background .12s, transform .12s;
}

/* refresh icon style */
#refreshBtn .mi-icon { width:18px; height:18px; color:#566674; }

/* hover state for refresh button */
#refreshBtn.btn.secondary:hover { background: rgba(9,30,53,0.03); transform: translateY(-2px); }

/* list and cards */
.clients-list { display:flex; flex-direction:column; gap:10px; margin-top:10px; }
.client-card { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px; border-radius:10px; background:linear-gradient(180deg, #fff, #fbfdff); box-shadow:0 6px 18px rgba(2,6,23,0.04); border:1px solid #f1f5f9; }
.client-main { flex:1; min-width:0; }
.client-title { font-weight:800; font-size:15px; color:#071026; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.client-meta { margin-top:6px; color:var(--muted); font-size:13px; }

/* actions */
.client-actions { display:flex; gap:8px; align-items:center; flex-shrink:0; }
.client-actions .btn { padding:8px 10px; border-radius:8px; font-weight:700; }
.client-actions .btn.secondary { background:#fff; color:#111; border:1px solid #e6e6e6; box-shadow:none; }

/* Modal (class-based) */
.modal-backdrop { position:fixed; inset:0; display:none; align-items:center; justify-content:center; background:rgba(2,6,23,0.45); z-index:60; padding:18px; }
.modal-backdrop[style*="display:flex"], .modal-backdrop[style*="display: block"] { display:flex; }
.modal-card { background:var(--card); border-radius:12px; padding:18px; max-width:720px; width:100%; box-shadow:0 20px 60px rgba(2,6,23,0.18); }
.modal-title { margin:0 0 8px 0; font-size:18px; font-weight:800; color:var(--logo-color); }
.modal-error { color:#b00020; margin-bottom:8px; font-weight:700; }

/* form grid */
.form-grid { display:flex; flex-direction:column; gap:10px; }
.form-field label { display:block; font-size:13px; color:#374151; font-weight:600; }
.form-field input, .form-field textarea { width:100%; padding:10px 12px; border-radius:8px; border:1px solid #e6e6e6; background:#fff; font-size:14px; box-sizing:border-box; outline:none; transition:box-shadow .12s, border-color .12s; }
.form-field textarea { resize:vertical; min-height:72px; }

.modal-actions { display:flex; gap:8px; justify-content:flex-end; margin-top:6px; }

/* small utilities for clients page */
.clients-card .muted { color:var(--muted); font-size:13px; }
.small { font-size:13px; color:var(--muted); }

.app-tech-name {
  color: #16a34a !important;
  font-weight: 800 !important;
  font-style: italic !important;
}

.app-date-time {
  color: #dc2626 !important;
  font-weight: 800 !important;
}

/* responsive tweaks */
@media (max-width:720px){
  .clients-toolbar { flex-direction:column; align-items:stretch; padding:8px; }
  .clients-toolbar-actions { justify-content:flex-end; width:100%; display:flex; gap:8px; }
  .clients-toolbar-actions > * { flex:0 0 auto; }
  .client-card { flex-direction:column; align-items:flex-start; }
  .client-actions { width:100%; justify-content:flex-end; }
}
#clientSuggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 1000;
  margin-top: 4px;
}

.client-help {
  font-size: 12px;
  color: #6b7280;
  margin-top: 6px;
}
/* =========================
   USERS MANAGE MOBILE
========================= */

@media (max-width: 760px) {

  .users-toolbar {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    align-items: stretch !important;
  }

  .users-search-wrap {
    width: 100% !important;
  }

  .users-search {
    width: 100% !important;
    min-width: 0 !important;
    height: 46px !important;
    font-size: 16px !important;
    box-sizing: border-box !important;
  }

  .users-toolbar-actions {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .users-btn {
    width: 100% !important;
    min-width: 0 !important;
    height: 46px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .users-list,
  #usersList {
    width: 100% !important;
    overflow: hidden !important;
  }

  .user-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 14px !important;
  }

  .client-main {
    width: 100% !important;
    min-width: 0 !important;
  }

  .client-title {
    font-size: 17px !important;
    line-height: 1.3 !important;
    word-break: break-word !important;
  }

  .client-meta {
    font-size: 13px !important;
    line-height: 1.4 !important;
    word-break: break-word !important;
  }

  .client-actions {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .client-actions .btn {
    width: 100% !important;
    height: 46px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .modal-card {
    width: calc(100vw - 24px) !important;
    max-width: 100% !important;
    margin: 12px !important;
    border-radius: 16px !important;
    padding: 16px !important;
    box-sizing: border-box !important;
  }

  .form-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  .form-field {
    width: 100% !important;
  }

  .form-field input,
  .form-field select {
    width: 100% !important;
    height: 46px !important;
    font-size: 16px !important;
    box-sizing: border-box !important;
  }

  .modal-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    margin-top: 10px !important;
  }

  .modal-actions .btn {
    width: 100% !important;
    height: 46px !important;
  }

  .header-left {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }

  .header-actions {
    width: 100% !important;
    margin-top: 12px !important;
  }

  .header-return {
    width: 100% !important;
    justify-content: center !important;
  }

}
.delete-user-modal {
  max-width: 420px;
}

.delete-user-text {
  color: #374151;
  font-size: 15px;
  line-height: 1.5;
  margin: 8px 0 14px;
}

.delete-user-confirm {
  background: #dc2626 !important;
  color: #fff !important;
}

@media (max-width: 640px) {
  .delete-user-modal {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
  }

  .delete-user-actions {
    flex-direction: column-reverse !important;
  }

  .delete-user-actions .btn {
    width: 100% !important;
  }
}