.cm-tasks-shell{
  position:relative;
  display:grid;
  gap:12px;
  width:100%;
  min-width:0;
}

.cm-tasks-page,
.cm-tasks-content-col{
  display:grid;
  gap:12px;
  width:100%;
  min-width:0;
  max-width:1180px;
  margin:0 auto;
}

.cm-tasks-card{
  min-width:0;
  padding:16px;
  border:1px solid rgba(203, 223, 163, 0.95);
  border-radius:16px;
  background:rgba(255,255,255,.96);
  box-shadow:0 10px 24px rgba(160, 185, 110, 0.12);
}

.cm-tasks-filter-card{
  padding:16px 18px 14px;
}

.cm-tasks-list-card{
  display:grid;
  gap:14px;
  padding:18px 18px 16px;
}

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

.cm-tasks-row{
  display:flex;
  align-items:center;
  gap:10px;
}

.cm-tasks-row-space{
  justify-content:space-between;
}

.cm-tasks-topline{
  margin-bottom:10px;
}

.cm-tasks-actions-top,
.cm-tasks-actions-list,
.cm-tasks-modal-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.cm-tasks-row-nowrap{
  display:grid;
  grid-template-columns:330px 140px 140px 140px 140px;
  gap:8px;
  align-items:center;
}

.cm-tasks-search-wrap{
  position:relative;
  width:330px;
}

.cm-tasks-search-icon{
  position:absolute;
  left:10px;
  top:50%;
  transform:translateY(-50%);
  font-size:16px;
  color:#BDBDBD;
  pointer-events:none;
}

.cm-tasks-in{
  padding-left:32px;
}

.cm-tasks-search-wrap .cm-tasks-in{
  padding-left:34px;
}

.cm-tasks-muted{
  color:#818181;
  font-family:"Mulish", sans-serif;
  font-size:12px;
  font-weight:500;
  line-height:1;
  letter-spacing:0;
  margin-top:10px !important;
}

.cm-tasks-spacer{
  display:none;
}

.cm-tasks-sel,
.cm-tasks-btn,
.cm-tasks-in,
.cm-tasks-dialog input[type="text"],
.cm-tasks-dialog select,
.cm-tasks-dialog textarea{
  width:100%;
  min-height:36px;
  padding:10px 12px;
  border:1px solid #DFE4CF;
  border-radius:4px;
  background:#fff;
  box-sizing:border-box;
  font-family:"Mulish", sans-serif;
  font-size:12px;
  font-weight:400;
  line-height:1;
  letter-spacing:0;
  color:#33352D;
}

.cm-tasks-in::placeholder,
.cm-tasks-dialog input::placeholder,
.cm-tasks-dialog textarea::placeholder{
  color:#BDBDBD;
}

.cm-tasks-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  padding:7px 17px;
  border:1px solid #C3E366;
  background:#fffef7;
  color:#33352D;
  font-family:"Mulish", sans-serif;
  font-size:12px;
  font-weight:700;
  line-height:1;
  letter-spacing:0;
  cursor:pointer;
  white-space:nowrap;
}

.cm-tasks-btn-primary{
  background:#C3E366;
}

.cm-tasks-btn-danger{
  width:160px;
  min-width:160px;
  border-color:#FFBDD9;
  background:rgba(255, 189, 217, 0.5);
  color:#9F7F8A;
}

.cm-tasks-btn[disabled]{
  opacity:.55;
  cursor:not-allowed;
}

.cm-tasks-mi{
  font-family:"Material Symbols Outlined";
  font-size:18px;
  line-height:1;
}

#btn-sync{
  min-width:236px;
}

#btn-new{
  min-width:160px;
  width:160px;
}

#btn-bulk-done{
  min-width:224px;
}

#btn-bulk-del{
  min-width:160px;
  width:160px;
}

.cm-tasks-list-head{
  margin-bottom:0;
}

.cm-tasks-table-wrap{
  overflow:auto;
  border:1px solid #E8ECD9;
  border-radius:0;
  background:#fff;
}

#tasks-table{
  width:100%;
  min-width:1040px;
  border-collapse:collapse;
  background:#fff;
}

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

#tasks-table td,
#tasks-table th{
  padding:12px 12px;
  border:1px solid #ECEEDF;
}

#tasks-table td{
  color:#33352D;
  font-family:"Mulish", sans-serif;
  font-size:12px;
  font-weight:500;
  line-height:1.2;
  letter-spacing:0;
  vertical-align:top;
}

.cm-tasks-center{
  text-align:center;
}

.cm-tasks-nowrap{
  white-space:nowrap;
}

.cm-tasks-object-title{
  margin-bottom:4px;
  font-weight:700;
  line-height:1.1;
}

.cm-tasks-table-muted br{
  content:"";
}

.cm-tasks-table-muted{
  color:#818181;
  font-weight:500;
  line-height:1.2;
}

.cm-tasks-go-link{
  border:none;
  background:transparent;
  color:#33352D;
  font-family:"Mulish", sans-serif;
  font-size:12px;
  font-weight:500;
  line-height:1;
  letter-spacing:0;
  cursor:pointer;
  padding:0;
}

.cm-tasks-checkbox{
  width:22px;
  height:22px;
  margin:0;
  border:1px solid #ECEEDF;
  border-radius:4px;
  appearance:none;
  background:#fff;
}

.cm-tasks-checkbox:checked{
  background:#C3E366;
  border-color:#C3E366;
}

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

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

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

.cm-tasks-dialog{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%, -50%);
  width:min(770px, 96vw);
  max-height:88vh;
  overflow:auto;
  background:#fff;
  border:1px solid #E6EBD7;
  border-radius:8px;
  box-shadow:0 12px 30px rgba(99,111,72,.10);
}

.cm-tasks-modal-head,
.cm-tasks-modal-foot{
  background:#fff;
}

.cm-tasks-modal-head{
  border-bottom:1px solid #EFF3E7;
}

.cm-tasks-modal-foot{
  border-top:1px solid #EFF3E7;
}

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

.cm-tasks-head h3{
  margin:0;
  color:#33352D;
  font-family:"Mulish", sans-serif;
  font-size:14px;
  font-weight:600;
  line-height:1;
}

.cm-tasks-modal-body{
  padding:18px 18px 18px;
}

.cm-tasks-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px 10px;
}

.cm-tasks-field{
  display:grid;
  gap:6px;
  min-width:0;
}

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

#f-title,
#f-desc{
  width:100%;
}

#f-due{
  width:100%;
}

#f-desc{
  min-height:124px;
  padding:11px 12px;
  resize:none;
}

.cm-tasks-desc-meta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:4px;
  color:#BDBDBD;
  font-family:"Mulish", sans-serif;
  font-size:12px;
  font-weight:400;
  line-height:1;
}

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

.cm-tasks-foot{
  justify-content:flex-end;
}

.cm-tasks-modal-actions{
  margin-left:auto;
  gap:10px;
  flex-wrap:nowrap;
}

.cm-tasks-modal-actions .cm-tasks-btn{
  width:138px;
  min-width:138px;
  height:36px;
  min-height:36px;
}

.cm-tasks-modal-actions #btn-save-task{
  background:#C3E366;
}

.cm-tasks-modal-actions #btn-assign-task{
  background:#fffef7;
}

.cm-tasks-modal-actions #task-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.cm-tasks-modal-actions #task-actions:empty{
  display:none;
}

.cm-tasks-modal-actions #btn-assign-task.is-hidden{
  display:none;
}

.cm-tasks-modal-actions #task-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

#f-type{
  text-transform:lowercase;
}

#f-status{
  color:#BDBDBD;
}

#f-status option{
  color:#33352D;
}

#tasks-table tbody td:first-child{
  vertical-align:middle;
}

#tasks-table tbody tr.cm-tasks-preview-row td{
  background:#fff;
}

#tasks-table tbody tr.cm-tasks-preview-row td:nth-child(2),
#tasks-table tbody tr.cm-tasks-preview-row td:nth-child(4),
#tasks-table tbody tr.cm-tasks-preview-row td:nth-child(5),
#tasks-table tbody tr.cm-tasks-preview-row td:nth-child(6),
#tasks-table tbody tr.cm-tasks-preview-row td:nth-child(7),
#tasks-table tbody tr.cm-tasks-preview-row td:nth-child(8){
  vertical-align:middle;
}

#tasks-table tbody tr:last-child td{
  border-bottom:1px solid #ECEEDF;
}

#tasks-table tbody tr td[colspan="8"]{
  height:48px;
  padding:0 12px;
  color:#33352D;
  font-weight:500;
  line-height:48px;
}

.cm-tasks-actions-top .cm-tasks-btn,
.cm-tasks-actions-list .cm-tasks-btn{
  height:36px;
}

.cm-tasks-actions-list .cm-tasks-btn{
  color:#B7B7B7;
}

.cm-tasks-actions-list .cm-tasks-btn-danger{
  color:#B08A98;
}

@media (max-width: 1180px){
  .cm-tasks-row-nowrap{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px){
  .cm-tasks-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width: 720px){
  .cm-tasks-shell{
    gap:12px;
  }

  .cm-tasks-card{
    padding:14px;
  }

  .cm-tasks-filter-card,
  .cm-tasks-list-card{
    padding:14px;
  }

  .cm-tasks-topline{
    margin-bottom:14px;
  }

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

  .cm-tasks-actions-top{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:10px;
    margin-top:14px;
  }

  #btn-sync,
  #btn-new{
    width:100%;
    min-width:0;
    height:36px;
    min-height:36px;
  }

  .cm-tasks-row-nowrap{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:10px;
  }

  .cm-tasks-search-wrap{
    grid-column:1 / -1;
    width:100%;
  }

  .cm-tasks-muted{
    line-height:1.35;
  }

  .cm-tasks-actions-list{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:10px;
    width:100%;
    margin-top:0;
    align-items:stretch;
  }

  #btn-bulk-del,
  #btn-bulk-done{
    width:100%;
    min-width:0;
    height:36px;
    min-height:36px;
  }

  .cm-tasks-table-wrap{
    overflow-x:auto;
    overflow-y:hidden;
    border:1px solid #E8ECD9;
    background:#fff;
  }

  #tasks-table{
    min-width:1100px;
  }

  .cm-tasks-dialog{
    width:min(96vw, 520px);
    max-height:calc(100vh - 88px);
    top:72px;
    transform:translateX(-50%);
  }

  .cm-tasks-head,
  .cm-tasks-foot,
  .cm-tasks-modal-body{
    padding:16px;
  }

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

  .cm-tasks-field[style*="grid-column:1/-1"]{
    grid-column:1 / -1;
  }

  .cm-tasks-modal-actions{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:10px;
    width:100%;
    margin-left:0;
  }

  .cm-tasks-modal-actions .cm-tasks-btn{
    width:100%;
    min-width:0;
    height:36px;
    min-height:36px;
  }

  .cm-tasks-modal-actions #btn-assign-task{
    order:1;
  }

  .cm-tasks-modal-actions #btn-save-task{
    order:2;
  }

  .cm-tasks-modal-actions #task-actions{
    grid-column:1 / -1;
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:10px;
    order:3;
  }

  .cm-tasks-modal-actions [data-close="task-modal"]{
    grid-column:1 / -1;
    order:4;
  }
}

@media (max-width: 520px){
  .cm-tasks-row-nowrap{
    grid-template-columns:1fr;
  }

  .cm-tasks-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px){
  #btn-sync{
    font-size:11px;
    padding-inline:10px;
    line-height:1.15;
    white-space:normal;
  }

  #btn-new,
  #btn-bulk-del,
  #btn-bulk-done{
    padding-inline:12px;
  }
}
