/* ZenCaps | Usuarios e permissoes: camada exclusivamente visual. */
@media screen {
  .users-shell{max-width:1680px;padding:14px clamp(20px,2.7vw,46px) 55px}
  .users-shell .page-heading{display:flex;align-items:center;gap:14px 24px;min-height:68px;margin-bottom:19px}
  .users-shell .page-heading .eyebrow{color:#168a50;font-size:10px;letter-spacing:.1em;font-weight:850;margin-bottom:7px}
  .users-shell .page-heading h1{
    position:static;display:block;clip:auto;clip-path:none;overflow:visible;
    width:auto;height:auto;padding:0;border:0;margin:0;white-space:normal;
    color:#193e29;font-size:clamp(23px,2.15vw,31px);line-height:1.18;
    letter-spacing:-.043em;font-weight:850
  }
  .users-shell .page-heading p{font-size:12px;color:#6d8272;line-height:1.5;margin-top:7px}
  .users-shell .heading-actions .btn.primary{border-radius:10px;min-height:42px;padding:10px 16px;font-weight:800;box-shadow:0 7px 16px rgba(11,136,74,.12)}
  .users-shell .staff-metrics{gap:14px;margin-bottom:16px}
  .users-shell .staff-metrics .stat{
    min-height:141px;padding:18px 19px;border-radius:16px;
    border:1px solid #dce9df;box-shadow:0 2px 7px rgba(27,66,36,.03),0 12px 28px rgba(27,66,36,.05);
    background:linear-gradient(145deg,#fff 55%,#fcfffd);
  }
  .users-shell .staff-metrics .stat::after{height:3px;left:17px;right:17px}
  .users-shell .staff-metrics .stat-label{font-size:10px;letter-spacing:.065em;color:#657e6d;font-weight:850}
  .users-shell .staff-metrics .stat-value{font-size:clamp(22px,2vw,29px);margin-top:21px;color:#204631}
  .users-shell .staff-metrics .stat-foot{font-size:10.8px;color:#728878}
  .users-shell .staff-metrics .stat-icon{width:37px;height:37px;border-radius:11px}
  .users-shell .staff-role-panel,.users-shell .zen-staff-card{
    border-radius:16px;border:1px solid #dce9df;
    box-shadow:0 2px 7px rgba(27,66,36,.025),0 12px 28px rgba(27,66,36,.05);
    background:#fff;
  }
  .users-shell .staff-role-panel{padding:19px 20px 20px;margin-bottom:16px}
  .users-shell .zen-staff-kicker{
    display:block;color:#228c51;font-size:9.5px;font-weight:850;
    letter-spacing:.11em;margin-bottom:5px
  }
  .users-shell .zen-staff-role-intro h2{font-weight:850;color:#214a34;font-size:15px;letter-spacing:-.025em}
  .users-shell .zen-staff-role-intro p{color:#748a7a;font-size:11px;line-height:1.5;margin:6px 0 16px}
  .users-shell .staff-role-grid{gap:11px}
  .users-shell .staff-role-option{
    border:1px solid #d8e9dd;border-radius:11px;padding:13px 14px;
    background:linear-gradient(135deg,#f8fcf9,#f4faf6);
    min-width:0
  }
  .users-shell .zen-staff-role-title{display:flex;align-items:center;gap:9px;margin-bottom:8px}
  .users-shell .zen-staff-role-title b{font-size:12px;font-weight:850;color:#255039;margin:0}
  .users-shell .zen-staff-role-icon{
    display:grid;place-items:center;width:30px;height:30px;flex:0 0 30px;
    background:#e2f5e9;color:#19844e;border-radius:9px
  }
  .users-shell .zen-staff-role-finance .zen-staff-role-icon{color:#477aaa;background:#eaf2fd}
  .users-shell .zen-staff-role-viewer .zen-staff-role-icon{color:#9070a8;background:#f1eafa}
  .users-shell .zen-staff-role-operator .zen-staff-role-icon{color:#aa7a27;background:#fff3df}
  .users-shell .staff-role-option p{margin:0;color:#5b7764;font-size:10.8px;line-height:1.55}
  .users-shell .zen-staff-card{overflow:hidden;margin-top:0}
  .users-shell .zen-staff-toolbar{
    display:flex;justify-content:space-between;align-items:center;gap:12px 22px;
    padding:17px 19px;flex-wrap:wrap;
    background:linear-gradient(115deg,#f7fbf8,#fff 65%);
    border-bottom:1px solid #e0ebe3
  }
  .users-shell .zen-staff-toolbar>b,.users-shell .zen-staff-toolbar>div>b{
    display:block;color:#224a33;font-size:15px;letter-spacing:-.02em;font-weight:850
  }
  .users-shell .zen-staff-count{font-weight:750;color:#738c7b}
  .users-shell .zen-staff-toolbar .finance-helper{font-size:10.7px;color:#708674;line-height:1.5;margin-top:5px}
  .users-shell .zen-staff-filters{
    display:flex;align-items:center;justify-content:flex-end;gap:8px;
    flex:1 1 480px;max-width:720px;min-width:0;flex-wrap:wrap
  }
  .users-shell .zen-staff-search{
    display:flex;gap:9px;align-items:center;min-width:190px;flex:1 1 225px;
    padding:0 11px;height:40px;border:1px solid #d6e5dc;border-radius:10px;
    background:#fff;color:#708878
  }
  .users-shell .zen-staff-search input{
    width:100%;min-width:0;border:0;outline:0;background:transparent;
    color:#284d37;font-size:11px
  }
  .users-shell .zen-staff-search input::placeholder{color:#8fa394}
  .users-shell .zen-staff-filters .select.compact{
    flex:1 1 150px;min-width:155px;max-width:200px;height:40px;
    border:1px solid #d6e5dc;border-radius:10px;background:#fff;
    color:#375b45;font-size:11px
  }
  .users-shell .zen-staff-filters .btn{min-height:40px;min-width:130px;border-radius:10px}
  .users-shell .zen-staff-search:focus-within,.users-shell .zen-staff-filters .select:focus-visible{
    outline:2px solid #22a15e;outline-offset:1px
  }
  .users-shell .zen-staff-scroll{overflow-x:auto;max-width:100%}
  .users-shell .zen-staff-table{min-width:850px;width:100%}
  .users-shell .zen-staff-table th{
    padding:13px 14px;background:#f2f8f4;color:#617967;
    border-bottom:1px solid #e0ebe4;white-space:nowrap;letter-spacing:.07em;font-weight:850
  }
  .users-shell .zen-staff-table td{padding:15px 14px;font-size:11px;color:#496653;vertical-align:middle}
  .users-shell .zen-staff-person{font-size:11.7px;font-weight:850;color:#204e32}
  .users-shell .zen-staff-email{font-size:10.8px;overflow-wrap:anywhere}
  .users-shell .zen-staff-role-badge{
    display:inline-flex;align-items:center;border-radius:8px;padding:5px 9px;
    background:#f1f7f3;border:1px solid #dce9df;color:#43644b;
    font-size:10.5px;font-weight:800;white-space:nowrap
  }
  .users-shell .staff-action-group{display:inline-flex;align-items:center;justify-content:flex-end;flex-wrap:nowrap;gap:7px}
  .users-shell .staff-action-group .btn{
    min-height:34px;white-space:nowrap;border-radius:9px;font-size:10.7px;font-weight:800
  }
  .users-shell .staff-action-group .btn:not(.danger){border:1px solid #dce9df;background:#fff;color:#285c3e}
  .users-shell .staff-action-group .btn.danger{border:1px solid #efd4d2;background:#fff;color:#b9433f}
  .users-shell .staff-action-group .btn:focus-visible{outline:2px solid #159052;outline-offset:2px}
  .users-shell .staff-secret{border-radius:14px;padding:19px 21px;margin-bottom:16px}
  @media(max-width:1110px){
    .users-shell .zen-staff-filters{max-width:none;flex:1 1 100%;justify-content:flex-start}
  }
  @media(max-width:680px){
    .users-shell{padding:12px 13px 43px}
    .users-shell .page-heading{align-items:stretch;flex-wrap:wrap}
    .users-shell .heading-actions,.users-shell .heading-actions .btn{width:100%}
    .users-shell .staff-role-panel{padding:15px}
    .users-shell .zen-staff-toolbar{padding:15px 13px}
    .users-shell .zen-staff-filters .select.compact{max-width:none}
    .users-shell .zen-staff-filters .btn{flex:1 1 100%}
    .users-shell .staff-action-group{flex-wrap:nowrap}
  }
  @media(prefers-reduced-motion:reduce){
    .users-shell .zen-staff-table tr{transition:none}
  }
  html[data-theme="dark"] .users-shell .page-heading h1{color:#e7f5eb}
  html[data-theme="dark"] .users-shell .staff-metrics .stat{
    background:linear-gradient(145deg,#21382a,#1d2e23);border-color:#42624b
  }
  html[data-theme="dark"] .users-shell .staff-metrics .stat-label,
  html[data-theme="dark"] .users-shell .staff-metrics .stat-foot{color:#bbd4c3}
  html[data-theme="dark"] .users-shell .staff-metrics .stat-value{color:#ecf7ef}
  html[data-theme="dark"] .users-shell .staff-role-panel,
  html[data-theme="dark"] .users-shell .zen-staff-card{
    background:#1e3024;border-color:#3f5d47
  }
  html[data-theme="dark"] .users-shell .zen-staff-kicker{color:#8de1b0}
  html[data-theme="dark"] .users-shell .zen-staff-role-intro h2,
  html[data-theme="dark"] .users-shell .zen-staff-toolbar>div>b{color:#e9f6ed}
  html[data-theme="dark"] .users-shell .zen-staff-role-intro p,
  html[data-theme="dark"] .users-shell .zen-staff-toolbar .finance-helper{color:#bdd5c5}
  html[data-theme="dark"] .users-shell .staff-role-option{
    background:#243a2a;border-color:#41664c
  }
  html[data-theme="dark"] .users-shell .staff-role-option b,
  html[data-theme="dark"] .users-shell .staff-role-option p{color:#d8efdf}
  html[data-theme="dark"] .users-shell .zen-staff-toolbar{
    background:linear-gradient(115deg,#243c2b,#1d3023);
    border-color:#3f5e47
  }
  html[data-theme="dark"] .users-shell .zen-staff-count{color:#bed4c4}
  html[data-theme="dark"] .users-shell .zen-staff-search,
  html[data-theme="dark"] .users-shell .zen-staff-filters .select.compact{
    background:#29412f;border-color:#4d7057;color:#e4f1e8
  }
  html[data-theme="dark"] .users-shell .zen-staff-search input{color:#e9f4eb}
  html[data-theme="dark"] .users-shell .zen-staff-table th{
    background:#284331;color:#c0ddc9;border-color:#3f5f49
  }
  html[data-theme="dark"] .users-shell .zen-staff-table td{color:#d9eddf;border-color:#3d5745}
  html[data-theme="dark"] .users-shell .zen-staff-person{color:#e9f6eb}
  html[data-theme="dark"] .users-shell .zen-staff-role-badge{
    background:#304a37;color:#d8f1de;border-color:#51715a
  }
  html[data-theme="dark"] .users-shell .staff-action-group .btn:not(.danger){
    background:#304a38;border-color:#50715a;color:#d9f0df
  }
  html[data-theme="dark"] .users-shell .staff-action-group .btn.danger{
    background:#402e2e;border-color:#78504e;color:#f6cbc9
  }
}
