.cm-users-page{
  display:grid;
  gap:10px;
  width:100%;
  min-width:0;
  max-width:1150px;
  margin:0 auto;
}

.cm-users-panel{
  background:rgba(255,255,255,.96);
  border:1px solid rgba(203,223,163,.95);
  border-radius:16px;
  box-shadow:0 10px 24px rgba(160,185,110,.12);
  min-width:0;
}

.cm-users-toolbar{
  padding:14px 16px 14px;
}

.cm-users-toolbar__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}

.cm-users-title{
  margin:0;
  color:#33352D;
  font-family:"Mulish", sans-serif;
  font-size:16px;
  font-weight:700;
  line-height:1;
  letter-spacing:0;
}

.cm-users-toolbar__actions{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}

.cm-users-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  min-width:160px;
  height:36px;
  padding:7px 17px;
  border-radius:4px;
  border:1px solid #C3E366;
  background:#fff;
  color:#33352D;
  font-family:"Mulish", sans-serif;
  font-size:12px;
  font-weight:700;
  line-height:1;
  letter-spacing:0;
  box-shadow:0.4px 0 1.4px rgba(51,53,45,.2);
  cursor:pointer;
  white-space:nowrap;
}

.cm-users-btn .mi{
  font-family:"Material Symbols Outlined";
  font-size:16px;
  line-height:1;
}

.cm-users-btn--primary{
  background:#C3E366;
  border-color:#C3E366;
}

.cm-users-btn--outline{
  background:#fff;
  border-color:#C3E366;
}

.cm-users-btn--danger{
  background:#FFBDD9;
  border-color:#FFBDD9;
}

.cm-users-toolbar__filters{
  display:grid;
  grid-template-columns:minmax(220px, 270px) 140px 160px;
  gap:10px;
  margin-bottom:10px;
  min-width:0;
}

.cm-users-input,
.cm-users-select,
.cm-users-modal input,
.cm-users-modal select{
  width:100%;
  height:36px;
  min-height:36px;
  padding:10px 12px;
  border:1px solid #DFE4CF;
  border-radius:4px;
  background:#fff;
  color:#33352D;
  box-sizing:border-box;
  font-family:"Mulish", sans-serif;
  font-size:12px;
  font-weight:400;
  line-height:1;
  letter-spacing:0;
}

.cm-users-input{
  padding-left:30px;
  background-image:url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_11001_43182)'%3E%3Ccircle cx='5.5' cy='5.5' r='4.5' stroke='%23BDBDBD' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M9 9L11 11' stroke='%23BDBDBD' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_11001_43182'%3E%3Crect width='12' height='12' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:12px center;
  background-size:12px 12px;
}

.cm-users-input::placeholder,
.cm-users-modal input::placeholder{
  color:#BDBDBD;
}

.cm-users-toolbar__hint{
  color:#818181;
  font-family:"Mulish", sans-serif;
  font-size:12px;
  font-weight:500;
  line-height:1.25;
  letter-spacing:0;
}

.cm-users-tablecard{
  padding:14px 16px 12px;
  min-height:404px;
}

.cm-users-tablecard__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:14px;
}

.cm-users-subtitle{
  margin:0;
  color:#33352D;
  font-family:"Mulish", sans-serif;
  font-size:16px;
  font-weight:700;
  line-height:1;
  letter-spacing:0;
}

.cm-users-tablewrap{
  border:1px solid #ECEEDF;
  overflow:hidden;
  min-width:0;
}

.cm-users-table{
  width:100%;
  border-collapse:collapse;
  table-layout:fixed;
}

.cm-users-table th,
.cm-users-table td{
  padding:11px 10px;
  border:1px solid #ECEEDF;
  vertical-align:middle;
  box-sizing:border-box;
}

.cm-users-table th{
  background:#FBFCF7;
  color:#92AD44;
  font-family:"Mulish", sans-serif;
  font-size:14px;
  font-weight:700;
  line-height:1;
  letter-spacing:0;
  text-align:left;
}

.cm-users-table td{
  color:#33352D;
  font-family:"Mulish", sans-serif;
  font-size:12px;
  font-weight:500;
  line-height:1.25;
  letter-spacing:0;
}

.cm-users-table th:nth-child(1),
.cm-users-table td:nth-child(1){ width:18%; }
.cm-users-table th:nth-child(2),
.cm-users-table td:nth-child(2){ width:19%; }
.cm-users-table th:nth-child(3),
.cm-users-table td:nth-child(3){ width:12%; text-align:center; }
.cm-users-table th:nth-child(4),
.cm-users-table td:nth-child(4){ width:13%; text-align:center; }
.cm-users-table th:nth-child(5),
.cm-users-table td:nth-child(5){ width:38%; }
.cm-users-table th:nth-child(5){
  width:38%;
  text-align:center;
}

.cm-users-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  width:auto;
  max-width:100%;
  height:24px;
  padding:0 10px;
  border-radius:20px;
  color:#33352D;
  font-family:"Mulish", sans-serif;
  font-size:12px;
  font-weight:500;
  line-height:1;
  letter-spacing:0;
  white-space:nowrap;
}

.cm-users-chip .mi{
  font-family:"Material Symbols Outlined";
  font-size:14px;
  line-height:1;
}

.cm-users-chip__icon{
  display:inline-block;
  flex:0 0 auto;
}

.cm-users-chip__icon--superadmin{
  width:10px;
  height:10px;
  background-image:url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_11001_45260)'%3E%3Cpath d='M5.00065 9.58268C2.68523 9.0681 0.833984 6.88352 0.833984 4.58268V2.08268L5.00065 0.416016L9.16732 2.08268V4.58268C9.16732 6.88435 7.31607 9.0681 5.00065 9.58268ZM1.66732 2.49935V4.58268C1.69113 5.54607 2.02997 6.47512 2.63198 7.22762C3.23398 7.98013 4.06599 8.51464 5.00065 8.74935C5.93531 8.51464 6.76732 7.98013 7.36933 7.22762C7.97133 6.47512 8.31017 5.54607 8.33398 4.58268V2.49935L5.00065 1.24935L1.66732 2.49935Z' fill='%2333352D'/%3E%3Cpath d='M5.00065 4.58333C5.57595 4.58333 6.04232 4.11696 6.04232 3.54167C6.04232 2.96637 5.57595 2.5 5.00065 2.5C4.42535 2.5 3.95898 2.96637 3.95898 3.54167C3.95898 4.11696 4.42535 4.58333 5.00065 4.58333Z' fill='%2333352D'/%3E%3Cpath d='M2.91602 6.25C3.12132 6.62431 3.42243 6.93732 3.78851 7.15696C4.15458 7.37661 4.57246 7.495 4.99935 7.5C5.42623 7.495 5.84412 7.37661 6.21019 7.15696C6.57627 6.93732 6.87738 6.62431 7.08268 6.25C7.07227 5.46 5.69018 5 4.99935 5C4.30477 5 2.92643 5.46 2.91602 6.25Z' fill='%2333352D'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_11001_45260'%3E%3Crect width='10' height='10' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:center;
  background-size:10px 10px;
}

.cm-users-chip--role{
  background:#E9EDFF;
}

.cm-users-chip--active{
  background:#E8F5A8;
}

.cm-users-actions{
  display:grid;
  grid-template-columns:repeat(4, 80px);
  justify-content:space-between;
  width:390px;
  margin:0 auto;
}

.cm-users-action{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  width:80px;
  height:28px;
  padding:7px 10px;
  border:1px solid #DFE4CF;
  border-radius:4px;
  background:#fff;
  color:#33352D;
  font-family:"Mulish", sans-serif;
  font-size:12px;
  font-weight:500;
  line-height:1;
  letter-spacing:0;
  box-shadow:0.4px 0 1.4px rgba(51,53,45,.2);
  cursor:pointer;
  white-space:nowrap;
  flex:0 0 80px;
}

.cm-users-action .mi{
  font-family:"Material Symbols Outlined";
  font-size:14px;
  line-height:1;
}

.cm-users-action--danger{
  border-color:#FFBDD9;
}

.cm-users-pager{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding-top:12px;
}

.cm-users-pager__nav{
  display:flex;
  align-items:center;
  gap:8px;
}

.cm-users-pager__arrow{
  width:24px;
  height:24px;
  border:1px solid #DFE4CF;
  border-radius:4px;
  background:#fff;
  color:#C5CCB0;
  font-size:16px;
  line-height:1;
  cursor:pointer;
}

.cm-users-pager__arrow.is-active{
  color:#92AD44;
}

.cm-users-pager__arrow:disabled{
  opacity:.65;
}

.cm-users-pager__info,
.cm-users-pager__size{
  color:#818181;
  font-family:"Mulish", sans-serif;
  font-size:12px;
  font-weight:500;
  line-height:1;
}

.cm-users-pager__size{
  display:flex;
  align-items:center;
  gap:8px;
}

.cm-users-pager__select{
  width:68px;
  min-width:68px;
  height:28px;
  min-height:28px;
  padding:6px 10px;
  border:1px solid #DFE4CF;
  border-radius:4px;
  background:#fff;
  font-family:"Mulish", sans-serif;
  font-size:12px;
}

.cm-users-modal{
  position:fixed;
  inset:0;
  display:none;
  z-index:60;
}

.cm-users-modal.is-open{
  display:block;
}

.cm-users-modal .backdrop{
  position:absolute;
  inset:0;
  background:rgba(137,149,104,.18);
  backdrop-filter:blur(1px);
}

.cm-users-modal .dialog{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%, -50%);
  width:min(980px, 94vw);
  min-height:448px;
  background:#fff;
  border:1px solid #E6EBD7;
  border-radius:8px;
  box-shadow:0 12px 30px rgba(99,111,72,.1);
  overflow:auto;
}

.cm-users-modal header,
.cm-users-modal footer{
  background:#fff;
}

.cm-users-modal header{
  border-bottom:1px solid #EFF3E7;
}

.cm-users-modal footer{
  border-top:1px solid #EFF3E7;
}

.cm-users-modal .head,
.cm-users-modal .foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:16px 20px;
}

.cm-users-modal .head h3{
  margin:0;
  color:#33352D;
  font-family:"Mulish", sans-serif;
  font-size:16px;
  font-weight:700;
  line-height:1;
  letter-spacing:0;
}

.cm-users-modal .body{
  padding:18px 20px 22px;
}

.cm-users-modal__grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px 12px;
}

.cm-users-modal__field-wide{
  max-width:370px;
}

.cm-users-modal .field{
  display:grid;
  gap:6px;
}

.cm-users-modal .field label{
  color:#565A48;
  font-family:"Mulish", sans-serif;
  font-size:11px;
  font-weight:600;
  line-height:1;
  letter-spacing:0;
}

.cm-users-modal__actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.cm-users-modal .xbtn{
  width:28px;
  min-width:28px;
  height:28px;
  padding:0;
  border:1px solid #E9EEDC;
  border-radius:4px;
  background:#fff;
  color:#8A9075;
  cursor:pointer;
}

.cm-users-modal .xbtn .mi{
  font-family:"Material Symbols Outlined";
  font-size:18px;
}

@media (max-width: 1180px){
  .cm-users-toolbar__filters{
    grid-template-columns:minmax(220px,1fr) 140px 160px;
  }
}

@media (max-width: 760px){
  .cm-users-toolbar{
    padding:14px;
  }

  .cm-users-toolbar__head{
    display:grid;
    gap:12px;
    margin-bottom:12px;
  }

  .cm-users-title{
    line-height:1.1;
  }

  .cm-users-toolbar__actions{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:10px;
  }

  .cm-users-btn{
    width:100%;
    min-width:0;
  }

  .cm-users-toolbar__filters{
    grid-template-columns:1fr;
    gap:10px;
  }

  .cm-users-tablecard{
    padding:14px;
  }

  .cm-users-tablewrap{
    overflow:auto;
  }

  .cm-users-table{
    min-width:0;
    table-layout:fixed;
  }

  .cm-users-table th:nth-child(4),
  .cm-users-table td:nth-child(4),
  .cm-users-table th:nth-child(5),
  .cm-users-table td:nth-child(5){
    display:none;
  }

  .cm-users-table th:nth-child(1),
  .cm-users-table td:nth-child(1){
    width:28%;
  }

  .cm-users-table th:nth-child(2),
  .cm-users-table td:nth-child(2){
    width:36%;
  }

  .cm-users-table th:nth-child(3),
  .cm-users-table td:nth-child(3){
    width:36%;
    text-align:left;
  }

  .cm-users-chip--role{
    justify-content:flex-start;
  }

  .cm-users-pager{
    display:grid;
    grid-template-columns:1fr auto;
    align-items:end;
    gap:12px 16px;
  }

  .cm-users-pager__nav{
    justify-content:flex-start;
    gap:24px;
  }

  .cm-users-pager__info{
    min-width:90px;
    text-align:center;
  }

  .cm-users-pager__size{
    justify-content:flex-end;
    white-space:nowrap;
  }

  .cm-users-modal .dialog{
    width:min(540px, calc(100vw - 24px));
    min-height:0;
    max-height:88vh;
  }

  .cm-users-modal .head,
  .cm-users-modal .foot{
    padding:16px 14px;
  }

  .cm-users-modal .body{
    padding:16px 14px 18px;
  }

  .cm-users-modal__grid{
    grid-template-columns:1fr;
    gap:12px;
  }

  .cm-users-modal__field-wide{
    max-width:none;
  }

  .cm-users-modal__actions{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    width:100%;
  }

  .cm-users-modal__actions .cm-users-btn{
    width:100%;
    min-width:0;
  }
}

@media (max-width: 350px){
  .cm-users-toolbar__actions,
  .cm-users-modal__actions{
    grid-template-columns:1fr;
  }

  .cm-users-pager{
    grid-template-columns:1fr;
  }

  .cm-users-pager__size{
    justify-content:space-between;
  }
}
