.projects-layout{
  grid-template-columns: 1fr;
  align-items: start;
}

.projects-head{
  align-items: center;
  min-height: 74px;
  padding: 12px 16px;
}

.projects-head h1{
  font-size: 22px;
}

.projects-actions{
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.projects-layout.board-open{
  display: block;
}

.projects-list-wrap{
  display: grid;
  gap: 12px;
}

.projects-search{
  display: block;
  width: 260px;
  max-width: 100%;
  justify-self: end;
}

.projects-search input{
  width: 100%;
  height: 40px;
  border: 1px solid #dfe5ed;
  border-radius: 10px;
  background: #fff;
  color: #253041;
  padding: 0 12px;
  outline: none;
}

.projects-search input:focus{
  border-color: var(--day-red);
  box-shadow: 0 0 0 4px rgba(209, 34, 68, .08);
}

.projects-list{
  display: grid;
  grid-template-columns: repeat(auto-fill, 286px);
  gap: 10px;
  align-items: start;
  justify-content: end;
}

.project-row.project-card-oldstyle{
  width: 286px;
  min-height: 196px;
  padding: 12px 13px;
  border-color: #e0e5eb;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
  display: grid;
  grid-template-rows: auto auto auto auto;
  gap: 9px;
  text-align: right;
}

.project-row.project-card-oldstyle:hover{
  border-color: #9dbacc;
  box-shadow: 0 7px 20px rgba(36, 95, 134, .08);
}

.project-row.project-card-oldstyle.active{
  border-color: #7a8793;
  box-shadow: inset 0 0 0 1px #7a8793;
  background: #fff;
}

.project-card-cover{
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-card-logo{
  width: 52px;
  height: 52px;
  border-radius: 13px;
  border: 2px solid var(--day-red);
  color: var(--day-red);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 26px;
  background: #fff;
  flex: 0 0 auto;
}

.project-card-logo img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-card-title{
  min-width: 0;
  display: grid;
  gap: 5px;
}

.project-card-title strong{
  font-size: 14px;
  line-height: 1.45;
  font-weight: 800;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card-title small{
  color: #607083;
  font-size: 10px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card-stat{
  display: grid;
  gap: 4px;
}

.project-card-stat label,.project-card-footer{
  font-size: 10px;
  color: #657384;
}

.project-progress-text{
  color: #2f3d4d;
  font-size: 10px;
}

.project-progress-bar{
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: #e9eef2;
  overflow: hidden;
  direction: ltr;
}

.project-progress-bar i{
  display: block;
  width: var(--progress);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--day-red), #ef6c88);
}

.project-progress-bar.muted i{
  background: linear-gradient(90deg, #426773, #78909a);
}

.project-progress-bar b{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 8px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .28);
}

.project-card-footer{
  align-self: end;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 24px;
}

.project-card-footer small{
  display: inline-flex;
}

.project-card-footer b{
  color: #526274;
  font-size: 9px;
  font-weight: 700;
}

.project-card-add{
  min-height: 196px;
  place-items: center;
  align-content: center;
  color: var(--day-red);
  border-style: dashed !important;
  background: #fff;
}

.project-card-add:hover{
  background: #fff8fa;
}

.project-add-plus{
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid #f0b4bf;
  background: #fff1f4;
  color: var(--day-red);
  font-size: 30px;
  line-height: 1;
  font-weight: 800;
}

.project-board-workspace{
  min-height: calc(100vh - 150px);
}

.project-board-header{
  border: 0;
  border-bottom: 1px solid #dce3ea;
  border-radius: 0;
  background: #f8fafc;
  padding: 7px 8px 9px;
  margin: -2px -4px 8px;
  min-height: 48px;
}

.project-board-title{
  min-width: 0;
  display: grid;
  gap: 4px;
}

.project-board-header h2{
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(430px, 42vw);
  background: #fff;
  border: 1px solid #dfe5ed;
  border-radius: 10px;
  padding: 8px 12px;
  box-shadow: 0 1px 3px rgba(31, 48, 69, .04);
}

.project-board-header span{
  font-size: 11px;
}

.project-board-title > span{
  padding-inline: 12px;
}

.project-board-tools select{
  height: 36px;
  border-radius: 8px;
  min-width: 118px;
}

.tool-square{
  width: 36px;
  height: 36px;
  border: 1px solid #dfe5ed;
  border-radius: 8px;
  background: #fff;
  color: #3d4b5c;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(31, 48, 69, .04);
}

.project-add-task-main{
  height: 36px !important;
  min-width: 76px;
  border-radius: 8px !important;
  padding: 0 14px !important;
}

.kanban-board{
  padding: 7px 8px 10px;
  background: #eef3f7;
  border-radius: 0;
  min-height: calc(100vh - 222px);
  overflow-x: auto;
  overflow-y: hidden;
}

.kanban-column{
  width: 254px;
  min-width: 254px;
  background: #f8fbfd;
  border: 0;
  border-radius: 8px 8px 4px 4px;
  padding: 0 5px 8px;
}

.kanban-column header{
  min-height: 38px;
  border-radius: 6px;
  margin: 0 0 8px;
  background: var(--column-color);
  padding: 7px 9px;
}

.kanban-column header b{
  font-size: 12px;
}

.column-gear{
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.column-tools{
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.column-color{
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 7px;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.column-add-task{
  margin: 0 0 8px;
  border-radius: 4px;
  height: 31px;
  background: #fff;
  border-color: #f2b5bf;
}

.column-tasks{
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 0 4px;
  min-height: 0;
}

.task-card{
  border-radius: 8px;
  padding: 10px 11px;
  min-height: 104px;
  box-shadow: 0 3px 8px rgba(31, 48, 69, .06);
}

.task-card:hover{
  border-color: #a2bdcf;
  box-shadow: 0 3px 9px rgba(36, 95, 134, .08);
}

.task-card-top{
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

.task-done{
  grid-column: 1;
  grid-row: 1;
}

.task-card-top b{
  grid-column: 2;
  font-size: 13px;
  line-height: 1.65;
  text-align: right;
}

.task-card p{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.task-check-mini{
  border: 1px solid #e0e5e9;
  border-radius: 6px;
  padding: 6px;
}

.task-card-actions{
  justify-content: flex-end;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity .12s ease, max-height .12s ease;
}

.task-card:hover .task-card-actions,.task-card:focus-within .task-card-actions{
  opacity: 1;
  max-height: 32px;
}

.task-card-meta{
  margin-top: auto;
  justify-content: space-between;
}

.task-card-counts{
  display: flex;
  align-items: center;
  gap: 8px;
  color: #66758a;
  font-size: 11px;
}

.task-card-counts button{
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.project-add-column{
  width: 120px;
  min-width: 120px;
  align-self: flex-start;
  border: 0;
  border-radius: 6px;
  background: #dce0e5;
  color: #586d7e;
  min-height: 38px;
}

.mention-compose{
  position: relative;
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding-top: 8px;
  background: #fff;
}

.mention-compose textarea{
  min-height: 118px;
}

.mention-menu{
  position: absolute;
  right: 0;
  left: 0;
  top: calc(100% - 52px);
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  max-height: 214px;
  overflow: auto;
  padding: 8px;
  border: 1px solid #dfe5ed;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 42px rgba(15, 23, 42, .16);
}

.mention-menu.hidden,.mention-selected.hidden{
  display: none;
}

.mention-option{
  min-height: 46px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border: 1px solid #edf0f3;
  border-radius: 10px;
  background: #fff;
  color: #253041;
  text-align: right;
  padding: 7px 9px;
  cursor: pointer;
}

.mention-option:hover,.mention-option:focus{
  border-color: #f0b4bf;
  background: #fff9fb;
  outline: none;
}

.mention-option span{
  min-width: 0;
  display: grid;
  gap: 2px;
}

.mention-option strong,.mention-option small{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mention-option strong{
  font-size: 12px;
}

.mention-option small{
  color: #7a8492;
  font-size: 10px;
}

.mention-selected{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mention-chip{
  height: 31px;
  max-width: 210px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #243041;
  padding: 0 7px 0 10px;
  cursor: pointer;
}

.mention-chip span{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mention-chip b{
  color: var(--day-red);
  font-size: 14px;
}

@media (max-width: 1000px) {
  .projects-layout,.projects-layout.board-open{
    display: block;
  }

  .projects-list{
    grid-template-columns: repeat(auto-fill, minmax(236px, 1fr));
    justify-content: stretch;
  }

  .projects-search{
    max-width: none;
    justify-self: stretch;
  }

  .project-row.project-card-oldstyle{
    width: 100%;
  }

  .mention-menu{
    grid-template-columns: 1fr;
  }

  .project-board-header{
    align-items: stretch;
  }

  .project-board-header h2{
    max-width: 100%;
  }
}

/* DAY ERP 1.1.77: Projects board parity pass. */
.projects-page .projects-shell{
  display: block;
}

.projects-page .projects-head{
  min-height: 90px;
  padding: 18px 17px;
  border-radius: 0 12px 12px 0;
}

.projects-page .projects-head p{
  max-width: 520px;
}

.projects-page .projects-actions{
  gap: 8px;
}

.projects-page .projects-layout.list-open{
  display: block;
  padding: 12px;
  border: 1px solid #d9e1e8;
  border-radius: 6px;
  background: #fff;
}

.projects-page .projects-list{
  grid-template-columns: repeat(auto-fill, 250px);
  justify-content: end;
  gap: 14px;
}

.projects-page .project-row.project-card-oldstyle{
  width: 250px;
  min-height: 352px;
  padding: 0;
  gap: 0;
  border-radius: 8px;
  border: 1px solid #d7dbdf;
  box-shadow: 0 1px 4px #00000020;
  position: relative;
  text-align: right;
}

.projects-page .project-card-logo{
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 0;
  background: #879a66;
  color: #fff;
  font-size: 24px;
}

.projects-page .project-card-title strong{
  font-size: 13px;
  line-height: 1.65;
  font-weight: 600;
  max-width: 215px;
  text-align: center;
}

.projects-page .project-card-stat{
  gap: 7px;
  padding: 0 15px;
}

.projects-page .mizito-project-group{
  justify-self: center;
  color: #b94828;
  background: #fff0e9;
  padding: 4px 8px;
  font-size: 10px;
  margin: 6px 0 4px;
  line-height: 1.3;
  border-radius: 2px;
}

.projects-page .project-card-cover{
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  min-height: 153px;
  padding: 4px 12px 0;
  gap: 9px;
}

.projects-page .project-card-title{
  justify-items: center;
}

.projects-page .project-card-title small{
  text-align: center;
}

.projects-page .project-card-footer{
  border-top: 1px solid #e0e2e5;
  padding: 14px 14px 10px;
  display: grid;
  gap: 11px;
  color: #7b858e;
  font-size: 10px;
  min-height: 65px;
}

.projects-page .project-card-footer > div,.projects-page .project-card-footer b{
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.projects-page .project-card-add{
  width: 250px;
  min-height: 352px;
  border: 2px dashed #c8cdd2 !important;
  border-radius: 8px !important;
  background: #fff;
  color: #426773;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
}

.projects-page .project-card-add strong{
  font-size: 20px;
  font-weight: 500;
}

.projects-page .project-add-plus{
  width: auto;
  height: auto;
  border: 0;
  background: transparent;
  color: #426773;
  font-size: 48px;
  font-weight: 300;
  line-height: 1;
}

.projects-page .project-board-workspace{
  min-height: calc(100vh - 126px);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.projects-page .project-board-header{
  box-sizing: border-box;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 7px 8px;
  min-height: 48px;
  background: #fff;
  border: 1px solid #d7dfe6;
  border-radius: 6px 6px 0 0;
  box-shadow: none;
  direction: rtl;
}

.projects-page .project-board-header-identity{
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.projects-page .project-board-header-identity h2{
  flex: 0 1 auto;
  min-width: 0;
  max-width: 320px;
  margin: 0;
  padding: 0 4px;
  font-size: 13.5px;
  line-height: 1.25;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #2d4354;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.projects-page .project-board-back.iconish{
  width: 31px;
  min-width: 31px;
  padding: 0;
  font-size: 20px;
  line-height: 1;
}

.projects-page .project-board-progress{
  flex: 0 0 auto;
  font-size: 9.5px;
  color: #71808c;
  white-space: nowrap;
}

.projects-page .project-board-header-actions{
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  direction: rtl;
}

.projects-page .project-board-header-actions select{
  flex: 0 0 150px;
  width: 150px;
  min-width: 150px;
  height: 31px;
  min-height: 31px;
  margin: 0;
  padding: 3px 9px;
  border: 1px solid #d7dfe6;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 10.5px;
  color: #344b5d;
}

.projects-page .project-board-new-task,.projects-page .project-board-settings,.projects-page .project-board-back{
  height: 31px;
  min-height: 31px;
  margin: 0;
  border: 1px solid #d7dfe6;
  border-radius: 8px;
  background: #fff;
  color: #344b5d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  box-shadow: none;
  font-size: 10.5px;
  font-family: inherit;
}

.projects-page .project-board-settings{
  width: 31px;
  min-width: 31px;
  padding: 0;
}

.projects-page .project-board-new-task{
  padding: 4px 9px;
  font-weight: 700;
}

.projects-page .project-board-back{
  padding: 4px 10px;
}

.projects-page .project-mizito-tabs{
  height: 42px;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 0;
  background: #fff;
  border: 1px solid #d7dfe6;
  border-top: 0;
  direction: rtl;
}

.projects-page .project-mizito-tabs button{
  height: 41px;
  min-width: 96px;
  padding: 0 12px;
  border: 0;
  border-left: 1px solid #e4e9ee;
  background: #fff;
  color: #516170;
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
}

.projects-page .project-mizito-tabs .active-tab{
  color: #245f82;
  box-shadow: inset 0 -3px 0 #2b79a0;
  font-weight: 800;
}

.projects-page .project-mizito-tabs .compact-icon{
  min-width: 42px;
  width: 42px;
  font-size: 19px;
  color: #6b7680;
}

.projects-page .kanban-board{
  display: flex;
  align-items: flex-start;
  gap: 6px;
  min-height: calc(100vh - 168px);
  padding: 7px 6px;
  overflow-x: auto;
  overflow-y: hidden;
  background: #e4e7eb;
  border: 1px solid #d1d8e0;
  border-top: 0;
  border-radius: 0 0 6px 6px;
}

.projects-page .kanban-column{
  flex: 0 0 274px;
  width: 274px;
  min-width: 274px;
  max-width: 274px;
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  box-shadow: none;
}

.projects-page .kanban-column header{
  min-height: 34px;
  margin: 0;
  padding: 0 9px;
  border-radius: 5px 5px 0 0;
  color: #fff;
  background: var(--column-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-shadow: none;
}

.projects-page .kanban-column header b{
  font-size: 12px;
  line-height: 1.3;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.projects-page .kanban-column header > div{
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.projects-page .column-tools{
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.projects-page .column-gear,.projects-page .column-color{
  width: 26px;
  height: 26px;
  min-width: 26px;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.projects-page .column-summary{
  height: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #cfd5db;
  border-bottom: 1px solid #cfd5db;
}

.projects-page .column-summary button{
  border: 0;
  background: #eef1f4;
  color: #7c858e;
  font-family: inherit;
  font-size: 9px;
  padding: 0;
}

.projects-page .column-add-task{
  width: 100%;
  min-height: 29px;
  margin: 1px 0 7px;
  border: 0;
  border-radius: 0 0 4px 4px;
  background: #d9dde2;
  color: #7b838c;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.projects-page .column-tasks{
  flex: 1 1 auto;
  min-height: 32px;
  max-height: calc(100vh - 238px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
}

.projects-page .task-card{
  width: 100%;
  box-sizing: border-box;
  min-height: 0;
  margin: 0 0 7px;
  padding: 7px 8px 8px;
  border: 1px solid #c8cdd2;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .17);
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.projects-page .task-card:hover{
  border-color: #aeb8c2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .19);
  transform: none;
}

.projects-page .task-card-top{
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 6px;
  align-items: start;
}

.projects-page .task-drag-handle{
  color: #94a3b8;
  font-size: 17px;
  line-height: 1;
  letter-spacing: 0;
}

.projects-page .task-card-top b{
  color: #223449;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 700;
  white-space: normal;
}

.projects-page .task-done{
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid #9ba5ad;
  background: #fff;
  color: var(--day-red);
  cursor: pointer;
  font-size: 10px;
  padding: 0;
  align-self: center;
}

.projects-page .task-card-icons{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #f2a900;
  font-size: 14px;
  line-height: 1;
}

.projects-page .task-card p{
  margin: 6px 0 0;
  color: #6f7780;
  font-size: 11px;
  line-height: 1.58;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.projects-page .task-card-meta{
  display: flex;
  align-items: center;
  gap: 0;
  margin: 4px 0 0;
  min-height: 20px;
  flex-wrap: wrap;
  color: #526174;
  font-size: 10.5px;
}

.projects-page .task-card-owner{
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.projects-page .task-card-counts{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  margin-top: 7px;
}

.projects-page .task-card-counts button,.projects-page .task-card-counts span{
  min-height: 24px;
  border: 1px solid #d7dee5;
  border-radius: 4px;
  background: #f7f8fa;
  color: #53606c;
  padding: 2px 6px;
  font-size: 10px;
  font-family: inherit;
}

.projects-page .task-card-actions{
  display: none;
}

.projects-page .project-add-column{
  flex: 0 0 274px;
  width: 274px;
  min-width: 274px;
  height: 34px;
  border: 0;
  border-radius: 5px;
  background: #d9dde2;
  color: #6c747d;
  font-family: inherit;
  cursor: pointer;
}

.project-logo-field{
  border: 1px solid #edf0f3;
  border-radius: 12px;
  padding: 12px;
}

.project-logo-editor{
  display: flex;
  align-items: center;
  gap: 12px;
}

.project-logo-preview{
  width: 62px;
  height: 62px;
  min-width: 62px;
  border: 2px solid var(--day-red);
  border-radius: 14px;
  background: #fff;
  color: var(--day-red);
  display: grid;
  place-items: center;
  font-size: 32px;
  font-weight: 900;
  overflow: hidden;
}

.project-logo-preview img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-logo-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.logo-choice{
  min-height: 38px;
  display: inline-flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 7px !important;
  padding: 8px 10px;
  border: 1px solid #dfe5ed;
  border-radius: 10px;
  background: #fff;
  color: #344255 !important;
  cursor: pointer;
}

.logo-choice input{
  width: auto !important;
}

.logo-choice.selected{
  border-color: var(--day-red);
  background: #fff7f9;
  color: var(--day-red) !important;
}

@media (max-width: 900px) {
  .projects-page .project-board-header{
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
    padding: 7px;
  }

  .projects-page .project-board-header-identity,.projects-page .project-board-header-actions{
    width: 100%;
    flex-wrap: wrap;
  }

  .projects-page .project-board-header-actions select{
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    min-width: 0;
  }
}

/* DAY ERP 1.1.77: task cards keep natural height inside tall columns. */
.projects-page .kanban-column{
  align-items: stretch;
}

.projects-page .column-tasks{
  display: block !important;
  align-content: start !important;
  justify-content: stretch !important;
}

.projects-page .column-tasks > .task-card,.projects-page .task-card{
  display: block !important;
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  align-self: stretch !important;
}

.projects-page .task-card + .task-card{
  margin-top: 8px;
}

.projects-page .task-card-top{
  display: grid !important;
}

.projects-page .person-picker-options,.project-modal .person-picker-options{
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 7px;
  max-height: 254px;
}

.projects-page .person-option,.project-modal .person-option{
  min-height: 46px;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  border-radius: 8px;
  padding: 6px 8px;
}

.projects-page .person-option strong,.project-modal .person-option strong{
  font-size: 11.5px;
}

.projects-page .person-option small,.project-modal .person-option small{
  font-size: 9.5px;
}

.projects-page .primary-action,.project-modal .primary-action{
  background: #c23b55;
  box-shadow: 0 8px 16px rgba(115, 35, 50, .14);
}

.projects-page .task-card-icons{
  color: #b98b23;
}

.projects-page .project-mizito-tabs .active-tab{
  color: #28556d;
  box-shadow: inset 0 -3px 0 #2f6f8c;
}

@media (max-width: 980px) {
  .projects-page .person-picker-options,.project-modal .person-picker-options{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .projects-page .person-picker-options,.project-modal .person-picker-options{
    grid-template-columns: 1fr !important;
  }
}





.projects-page .color-palette .color-choice,.project-modal .color-palette .color-choice{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;border:1px solid #dfe5ed;background:#fff;cursor:pointer;padding:0}.projects-page .color-palette .color-choice span,.project-modal .color-palette .color-choice span{width:24px;height:24px;border-radius:8px;background:var(--swatch);display:block}.projects-page .color-palette .color-choice.selected,.project-modal .color-palette .color-choice.selected{border-color:#8aa9bd;box-shadow:0 0 0 3px rgba(48,111,159,.16)}

.projects-page .projects-list,.projects-page .project-row.project-card-oldstyle,.projects-page .project-card-cover,.projects-page .project-card-title,.projects-page .project-card-footer{direction:rtl;text-align:right}.projects-page .project-card-title,.projects-page .project-card-title strong,.projects-page .project-card-title small{text-align:center}.project-modal .color-palette{display:grid;grid-template-columns:repeat(8,36px);gap:8px;align-items:center}.project-modal .color-builder{display:grid;grid-template-columns:minmax(0,1fr) 64px;align-items:center;gap:10px;border:1px solid #e4e9ef;border-radius:12px;padding:9px 10px;color:#5f6b7a}.project-modal .color-builder input[type=color]{width:64px;height:38px;border:0;background:transparent;padding:0;cursor:pointer}.project-modal .column-summary,.projects-page .column-summary{display:none!important}@media(max-width:760px){.project-modal .color-palette{grid-template-columns:repeat(4,36px)}}

.projects-page .projects-list{direction:rtl;display:grid!important;grid-template-columns:repeat(auto-fill,250px)!important;justify-content:start!important;justify-items:stretch!important}.projects-page .projects-list-wrap,.projects-page .projects-layout.list-open{direction:rtl}.projects-page .project-row.project-card-oldstyle{direction:rtl;text-align:center}.projects-page .project-card-add{order:initial}.projects-page .project-card-stat,.projects-page .project-card-footer{direction:rtl;text-align:right}.projects-page .project-card-footer > div,.projects-page .project-card-footer b{direction:rtl}

.project-modal .compact-person-field .person-picker{gap:7px}.project-modal .compact-person-field .person-picker-search span{display:none}.project-modal .compact-person-field .person-picker-selected{min-height:38px}.project-modal .compact-person-field .person-picker-options{max-height:164px}.project-modal .checklist-editor{border:1px solid #edf0f3;border-radius:12px;padding:10px;display:grid;gap:9px}.project-modal .checklist-items{display:grid;gap:7px}.project-modal .checklist-item-row{display:grid;grid-template-columns:28px minmax(0,1fr) 32px;align-items:center;gap:8px}.project-modal .checklist-item-row input[type=checkbox]{width:18px;height:18px}.project-modal .checklist-item-row input[data-checklist-item-title]{height:38px;border:1px solid #dfe5ed;border-radius:9px;padding:0 10px}.project-modal .checklist-item-row button{width:32px;height:32px;border:1px solid #e3e7ec;border-radius:8px;background:#fff;cursor:pointer;color:#9b3348}.project-modal .checklist-add-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.project-modal .checklist-add-row input{height:40px;border:1px solid #dfe5ed;border-radius:10px;padding:0 12px}@media(max-width:640px){.project-modal .checklist-add-row{grid-template-columns:1fr}.project-modal .checklist-add-row button{width:100%}}

/* DAY ERP 1.1.77: softer task/project dialogs; fewer white boxes. */
.project-modal{
  background: #f6f8fb !important;
  border: 1px solid #d8e0e8 !important;
  box-shadow: 0 28px 70px rgba(21, 32, 43, .22) !important;
}
.project-modal > header{
  background: rgba(255,255,255,.82) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e1e7ee !important;
}
.project-modal > header h3{
  font-size: 17px !important;
  font-weight: 800 !important;
  color: #1f2d3d !important;
}
.project-modal > header button{
  border: 0 !important;
  background: #edf2f7 !important;
  color: #263747 !important;
}
.project-modal .project-form{
  padding: 18px !important;
  gap: 14px !important;
  background: transparent !important;
}
.project-modal .project-form > label,.project-modal .project-form > fieldset,.project-modal .checklist-editor,.project-modal .compact-person-field{
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}
.project-modal .project-form label,.project-modal .project-form legend{
  color: #5f6b7a !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}
.project-modal .project-form input,.project-modal .project-form select,.project-modal .project-form textarea,.project-modal .person-picker-search input,.project-modal .checklist-add-row input,.project-modal .checklist-item-row input[data-checklist-item-title]{
  background: #eef3f7 !important;
  border: 1px solid transparent !important;
  border-radius: 12px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75) !important;
}
.project-modal .project-form input:focus,.project-modal .project-form select:focus,.project-modal .project-form textarea:focus,.project-modal .person-picker-search input:focus,.project-modal .checklist-add-row input:focus,.project-modal .checklist-item-row input[data-checklist-item-title]:focus{
  background: #fff !important;
  border-color: #93b3c5 !important;
  box-shadow: 0 0 0 3px rgba(80, 127, 150, .14) !important;
}
.project-modal .person-picker{
  gap: 8px !important;
  background: #eef3f7 !important;
  border-radius: 14px !important;
  padding: 10px !important;
}
.project-modal .person-picker-selected{
  border: 0 !important;
  background: transparent !important;
  min-height: 32px !important;
  padding: 0 !important;
}
.project-modal .person-picker-placeholder{
  color: #748293 !important;
}
.project-modal .person-picker-options{
  background: transparent !important;
  padding: 0 !important;
  gap: 6px !important;
  max-height: 150px !important;
}
.project-modal .person-option{
  background: rgba(255,255,255,.74) !important;
  border: 1px solid #dde6ee !important;
  min-height: 42px !important;
  border-radius: 10px !important;
}
.project-modal .person-option:hover,.project-modal .person-option.selected{
  background: #fff !important;
  border-color: #9eb8c8 !important;
}
.project-modal .person-chip{
  background: #fff !important;
  border: 1px solid #dbe4ec !important;
  height: 30px !important;
}
.project-modal .checklist-editor{
  background: #eef3f7 !important;
  border-radius: 14px !important;
  padding: 10px !important;
}
.project-modal .checklist-items{
  gap: 6px !important;
}
.project-modal .checklist-item-row{
  background: rgba(255,255,255,.78) !important;
  border: 1px solid #dfe7ee !important;
  border-radius: 12px !important;
  padding: 6px !important;
  grid-template-columns: 24px minmax(0,1fr) 30px !important;
}
.project-modal .checklist-item-row input[data-checklist-item-title]{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  height: 32px !important;
}
.project-modal .checklist-item-row button{
  border: 0 !important;
  background: #f3dfe4 !important;
  color: #a43e55 !important;
}
.project-modal .checklist-add-row{
  gap: 7px !important;
}
.project-modal .checklist-add-row input{
  background: #fff !important;
}
.project-modal .checklist-add-row button,.project-modal .secondary-action.compact-action{
  border: 0 !important;
  background: #dfe8ef !important;
  color: #263747 !important;
  border-radius: 11px !important;
  font-weight: 800 !important;
}
.project-modal .primary-action{
  border-radius: 12px !important;
  box-shadow: none !important;
}
.project-modal .project-empty.tiny{
  background: transparent !important;
  border: 1px dashed #cbd7e1 !important;
  color: #758496 !important;
}

/* DAY ERP 1.1.77: lighter task dialog controls; checklist behaves like a work list. */
.project-modal .project-form{
  gap: 12px !important;
}
.project-modal .project-form > label,.project-modal .project-form > fieldset,.project-modal .compact-person-field{
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}
.project-modal .project-form > label:has(textarea){
  margin-top: 2px !important;
}
.project-modal .project-form textarea{
  min-height: 88px !important;
  resize: vertical !important;
}
.project-modal .project-form input,.project-modal .project-form select,.project-modal .project-form textarea,.project-modal .person-picker-search input{
  background: #f2f5f8 !important;
  border: 1px solid transparent !important;
}
.project-modal .project-form input:hover,.project-modal .project-form select:hover,.project-modal .project-form textarea:hover,.project-modal .person-picker-search input:hover{
  background: #edf2f6 !important;
}
.project-modal .checklist-editor{
  background: #f1f5f8 !important;
  border: 0 !important;
  border-radius: 16px !important;
  padding: 12px !important;
  gap: 8px !important;
}
.project-modal .checklist-head{
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}
.project-modal .checklist-head legend{
  padding: 0 !important;
  margin: 0 !important;
  color: #1f2d3d !important;
  font-weight: 900 !important;
}
.project-modal .checklist-head span{
  color: #7a8795 !important;
  font-size: 12px !important;
  white-space: nowrap !important;
}
.project-modal .checklist-items{
  display: grid !important;
  gap: 6px !important;
}
.project-modal .checklist-empty{
  min-height: 28px !important;
  display: flex !important;
  align-items: center !important;
  color: #8a96a5 !important;
  font-size: 12px !important;
}
.project-modal .checklist-item-row{
  grid-template-columns: 22px minmax(0,1fr) 28px !important;
  min-height: 36px !important;
  padding: 3px 6px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(160,174,190,.28) !important;
  background: rgba(255,255,255,.62) !important;
}
.project-modal .checklist-check{
  width: 17px !important;
  height: 17px !important;
  accent-color: #256f88 !important;
  cursor: pointer !important;
}
.project-modal .checklist-item-row input[data-checklist-item-title]{
  height: 30px !important;
  padding: 0 6px !important;
  background: transparent !important;
  border: 0 !important;
  font-weight: 700 !important;
}
.project-modal .checklist-item-row:has(.checklist-check:checked) input[data-checklist-item-title]{
  color: #7b8794 !important;
  text-decoration: line-through !important;
}
.project-modal .checklist-item-row button{
  width: 26px !important;
  height: 26px !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #9a5262 !important;
}
.project-modal .checklist-item-row button:hover{
  background: #f5dce3 !important;
}
.project-modal .checklist-add-row{
  grid-template-columns: minmax(0,1fr) 38px !important;
  gap: 6px !important;
  margin-top: 2px !important;
}
.project-modal .checklist-add-row input{
  height: 36px !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,.7) !important;
}
.project-modal .checklist-add-row button{
  width: 38px !important;
  height: 36px !important;
  border-radius: 10px !important;
  padding: 0 !important;
  font-size: 22px !important;
  line-height: 1 !important;
  background: #256f88 !important;
  color: #fff !important;
}
.project-modal .person-picker{
  background: #f1f5f8 !important;
  border: 0 !important;
  border-radius: 16px !important;
  padding: 10px !important;
}
.project-modal .person-picker-selected{
  background: transparent !important;
  border: 0 !important;
  min-height: 30px !important;
  padding: 0 !important;
}
.project-modal .person-picker-search input{
  height: 36px !important;
}

/* DAY ERP 1.1.77: colored progress, Jalali due date, complete action, cleaner person picker. */
.project-modal .task-form .task-meta-row{
  grid-template-columns: minmax(170px, 1.15fr) minmax(190px, 1fr) 150px !important;
}
.project-modal .task-form .task-meta-row select{
  min-width: 0 !important;
  width: 100% !important;
  padding-inline: 34px 12px !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
  direction: rtl !important;
  text-align: right !important;
}
.project-modal .task-progress-field{
  display: grid !important;
  gap: 7px !important;
}
.project-modal .task-progress-field > span{
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}
.project-modal .task-progress-field em{
  color: var(--progress-color, #be3455) !important;
  font-style: normal !important;
  font-weight: 900 !important;
}
.project-modal .task-progress-field input[type=range]{
  appearance: none !important;
  height: 10px !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 0 !important;
  background: linear-gradient(90deg, var(--progress-color, #be3455) var(--progress, 0%), #dde5ec var(--progress, 0%)) !important;
  cursor: pointer !important;
}
.project-modal .task-progress-field input[type=range]::-webkit-slider-thumb{
  appearance: none !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  background: #fff !important;
  border: 4px solid var(--progress-color, #be3455) !important;
  box-shadow: 0 3px 10px rgba(30,41,59,.16) !important;
}
.project-modal .task-action-row{
  display: grid !important;
  grid-template-columns: 46px minmax(0,1fr) !important;
  gap: 10px !important;
  align-items: center !important;
}
.project-modal .task-complete-action{
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  border: 0 !important;
  background: #2563EB !important;
  color: #fff !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  box-shadow: 0 10px 22px rgba(37,99,235,.22) !important;
}
.project-modal .task-complete-action:hover{
  background: #1D4ED8 !important;
}
.project-modal .task-people-field .person-picker{
  display: grid !important;
}
.project-modal .task-people-field .person-picker-search{
  order: 1 !important;
}
.project-modal .task-people-field .person-picker-selected{
  order: 2 !important;
}
.project-modal .task-people-field .person-picker-options{
  order: 3 !important;
}

/* DAY ERP 1.1.77: compact task form layout; less empty administrative space. */
.project-modal .task-form{
  gap: 10px !important;
}
.project-modal .task-form .task-main-row{
  display: grid !important;
  grid-template-columns: minmax(220px, .82fr) minmax(260px, 1.18fr) !important;
  gap: 10px !important;
  align-items: stretch !important;
}
.project-modal .task-form .task-meta-row{
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 96px 148px !important;
  gap: 10px !important;
}
.project-modal .task-form .task-work-row{
  display: grid !important;
  grid-template-columns: minmax(270px, 1fr) minmax(270px, 1fr) !important;
  gap: 10px !important;
  align-items: start !important;
}
.project-modal .task-form .task-title-field input{
  height: 38px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
}
.project-modal .task-form .task-description-field textarea{
  min-height: 38px !important;
  height: 38px !important;
  max-height: 92px !important;
}
.project-modal .task-form .task-meta-row select,.project-modal .task-form .task-meta-row input{
  height: 36px !important;
}
.project-modal .task-people-field .person-picker{
  gap: 7px !important;
}
.project-modal .task-people-field .person-picker-selected{
  min-height: 26px !important;
}
.project-modal .task-people-field .person-picker-placeholder{
  font-size: 12px !important;
}
.project-modal .task-people-field .person-picker-options{
  max-height: 126px !important;
}
.project-modal .task-people-field .person-option{
  min-height: 44px !important;
  padding: 6px 8px !important;
}
.project-modal .task-form .checklist-editor{
  padding: 10px !important;
}
.project-modal .task-form .checklist-head span{
  display: none !important;
}
.project-modal .task-form .checklist-items{
  max-height: 118px !important;
  overflow: auto !important;
  padding-left: 2px !important;
}
.project-modal .task-form .checklist-empty{
  min-height: 22px !important;
  padding-inline: 2px !important;
}
.project-modal .task-form .checklist-add-row{
  position: relative !important;
}
.project-modal .task-form .checklist-add-row input{
  height: 34px !important;
  padding-inline-end: 12px !important;
}
.project-modal .task-form .checklist-add-row button{
  height: 34px !important;
}
.project-modal .task-form .primary-action{
  height: 40px !important;
  margin-top: 2px !important;
}
@media (max-width: 640px) {
  .project-modal .task-form .task-main-row,.project-modal .task-form .task-work-row,.project-modal .task-form .task-meta-row{
    grid-template-columns: 1fr !important;
  }
}

/* DAY ERP 1.1.77 final task form overrides. */
.project-modal .task-form .task-meta-row{
  grid-template-columns: minmax(170px, 1.15fr) minmax(190px, 1fr) 150px !important;
}
.project-modal .task-form .task-meta-row select{
  width: 100% !important;
  min-width: 0 !important;
  padding-inline: 34px 12px !important;
  direction: rtl !important;
  text-align: right !important;
  white-space: nowrap !important;
}
.project-modal .task-form .task-description-field textarea{
  resize: none !important;
  overflow: hidden !important;
}
.project-modal .task-progress-field.is-checklist-driven input[type=range]{
  opacity: .78 !important;
  cursor: default !important;
}
.project-modal .task-progress-field.is-checklist-driven em::after{
  content: " ✓" !important;
  color: var(--progress-color, #2563EB) !important;
}
.project-modal .task-form .checklist-editor{
  padding: 8px !important;
  border-radius: 13px !important;
}
.project-modal .task-form .checklist-head{
  min-height: 20px !important;
}
.project-modal .task-form .checklist-head legend{
  font-size: 12px !important;
}
.project-modal .task-form .checklist-items{
  max-height: 104px !important;
  gap: 4px !important;
}
.project-modal .task-form .checklist-item-row{
  min-height: 30px !important;
  grid-template-columns: 19px minmax(0,1fr) 24px !important;
  padding: 2px 5px !important;
  border-radius: 8px !important;
}
.project-modal .task-form .checklist-check{
  width: 15px !important;
  height: 15px !important;
}
.project-modal .task-form .checklist-item-row input[data-checklist-item-title]{
  height: 26px !important;
  font-size: 12px !important;
  padding: 0 4px !important;
}
.project-modal .task-form .checklist-item-row button{
  width: 22px !important;
  height: 22px !important;
  border-radius: 7px !important;
}
.project-modal .task-form .checklist-add-row{
  grid-template-columns: minmax(0,1fr) 32px !important;
}
.project-modal .task-form .checklist-add-row input{
  height: 30px !important;
  font-size: 12px !important;
}
.project-modal .task-form .checklist-add-row button{
  width: 32px !important;
  height: 30px !important;
  font-size: 18px !important;
}
@media (max-width: 640px) {
  .project-modal .task-form .task-meta-row{
    grid-template-columns: 1fr !important;
  }
}

/* DAY ERP 1.1.77: task detail follows the compact Mizito-style report flow without legacy behavior. */
.project-modal:has(.task-report-panel){
  width: min(760px, 92vw) !important;
  max-height: min(92vh, 900px) !important;
}
.task-report-panel{
  align-content: start !important;
}
.task-report-card{
  display: grid !important;
  grid-template-columns: 30px minmax(0, 1fr) !important;
  align-items: start !important;
  column-gap: 9px !important;
  row-gap: 0 !important;
  position: relative !important;
  padding: 9px 10px !important;
  min-height: 64px !important;
}
.task-report-card.pinned{
  box-shadow: inset 3px 0 0 #d97706, 0 8px 20px rgba(217, 119, 6, .08) !important;
}
.task-report-avatar{
  grid-column: 1 !important;
  grid-row: 1 / span 2 !important;
  width: 28px !important;
  height: 28px !important;
  margin-top: 2px !important;
}
.task-report-avatar .project-avatar,.task-report-avatar img{
  width: 28px !important;
  height: 28px !important;
}
.task-report-content{
  grid-column: 2 !important;
  min-width: 0 !important;
}
.task-report-card-head{
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin: 0 0 3px !important;
}
.task-report-card-head small{
  color: #0e9fba !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
}
.task-report-card p{
  margin: 0 !important;
  min-width: 0 !important;
}
.report-pin-button{
  width: 24px !important;
  height: 24px !important;
  border: 0 !important;
  border-radius: 999px !important;
  display: inline-grid !important;
  place-items: center !important;
  background: transparent !important;
  color: #94a3b8 !important;
  cursor: pointer !important;
  padding: 0 !important;
}
.report-pin-button svg{
  width: 15px !important;
  height: 15px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}
.report-pin-button:hover,.report-pin-button:focus-visible,.report-pin-button.active{
  background: #fff7ed !important;
  color: #d97706 !important;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, .10) !important;
}
.task-report-attachments{
  margin-top: 7px !important;
}
.task-report-attachments a{
  width: 152px !important;
  max-width: 152px !important;
  min-height: 34px !important;
  border-radius: 10px !important;
  padding: 5px 8px !important;
  white-space: normal !important;
  line-height: 1.35 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
}
.task-report-composer{
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  padding: 7px 8px !important;
  background: #fff !important;
  border: 1px solid rgba(15, 23, 42, .18) !important;
  border-radius: 12px !important;
}
.task-report-composer .mention-compose{
  grid-column: 1 / -1 !important;
}
.task-report-composer textarea{
  min-height: 42px !important;
  max-height: 74px !important;
  border: 0 !important;
  background: transparent !important;
  padding: 6px 4px !important;
}
.task-report-composer textarea:focus{
  box-shadow: none !important;
  border-color: transparent !important;
}
.task-report-composer .task-report-file-row{
  grid-column: 1 / 2 !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  min-width: 0 !important;
}
.task-report-composer .task-report-submit{
  grid-column: 2 / 3 !important;
  min-width: 92px !important;
  min-height: 32px !important;
}
.task-report-file{
  background: transparent !important;
  border-color: transparent !important;
  color: #64748b !important;
}
.task-report-file:hover,.task-report-file:focus-visible{
  background: rgba(37, 111, 136, .08) !important;
  border-color: rgba(37, 111, 136, .18) !important;
  color: #256f88 !important;
  box-shadow: 0 0 0 3px rgba(37, 111, 136, .10) !important;
}
.task-report-file-row.has-files,.task-report-file-row.is-dragging{
  background: transparent !important;
  box-shadow: none !important;
}
.pending-file-list{
  max-height: 44px !important;
}
.pending-file-chip{
  width: min(100%, 190px) !important;
  max-width: 190px !important;
}
.task-edit-files{
  display: grid !important;
  gap: 7px !important;
  padding: 9px !important;
  border-radius: 13px !important;
  background: #f8fafc !important;
  border: 1px solid rgba(148, 163, 184, .18) !important;
}
.task-edit-file-row{
  grid-template-columns: auto minmax(0, 1fr) !important;
}
.project-icon-action{
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #64748b !important;
  display: inline-grid !important;
  place-items: center !important;
  cursor: pointer !important;
  padding: 0 !important;
}
.project-icon-action svg{
  width: 17px !important;
  height: 17px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}
.project-icon-action:hover,.project-icon-action:focus-visible,.project-icon-action.active{
  color: #8f2943 !important;
  border-color: rgba(190, 52, 85, .22) !important;
  background: rgba(190, 52, 85, .06) !important;
  box-shadow: 0 0 0 3px rgba(190, 52, 85, .08) !important;
}
.task-number-badge{
  direction: ltr !important;
  unicode-bidi: isolate !important;
  display: inline-flex !important;
  align-items: center !important;
  width: max-content !important;
  max-width: 72px !important;
  color: #94a3b8 !important;
  font-size: 10px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
}
.task-card-top .task-number-badge{
  margin-inline-start: 5px !important;
}

/* DAY ERP 1.1.77: report attachment chips must stay inside their own card, with no forced blank panel tail. */
.task-report-list{
  align-content: start !important;
  overflow: auto !important;
  padding-bottom: 8px !important;
}
.task-report-card{
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}
.task-report-content,.task-report-attachments{
  min-width: 0 !important;
  overflow: visible !important;
}
.task-report-attachments{
  position: static !important;
  display: flex !important;
  align-items: flex-start !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 14mm;
  }
  body{
    background: #fff !important;
  }
  body *{
    visibility: hidden !important;
  }
  .project-modal,.project-modal *,.project-modal-backdrop,.project-modal-backdrop *{
    visibility: visible !important;
  }
  .project-modal-backdrop{
    position: static !important;
    inset: auto !important;
    display: block !important;
    background: #fff !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  .project-modal{
    position: static !important;
    width: 100% !important;
    max-width: none !important;
    max-height: none !important;
    overflow: visible !important;
    box-shadow: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
  }
  .project-modal > header,.task-report-actions,.task-report-file-row,.task-report-composer,.task-report-done-toggle{
    display: none !important;
  }
  .task-report-panel{
    max-height: none !important;
    overflow: visible !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    gap: 8px !important;
  }
  .task-report-panel::before{
    display: none !important;
  }
  .task-report-hero,.task-report-list,.task-file-list,.task-report-card{
    break-inside: avoid !important;
  }
  .task-report-list{
    max-height: none !important;
    overflow: visible !important;
    background: #fff !important;
    border: 1px solid #ddd !important;
  }
  .task-report-card{
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
  .task-report-attachments a,.task-file-list a{
    max-width: 100% !important;
    color: #111827 !important;
    border-color: #ddd !important;
    background: #fff !important;
  }
}

/* DAY ERP 1.1.77: task report/detail modal rebuilt from the old project behavior rules with native UI. */
.task-report-panel{
  direction: rtl;
  display: grid;
  gap: 12px;
  padding: 14px;
  color: #162232;
}
.task-report-hero{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, .26);
  border-radius: 18px;
  background: radial-gradient(circle at 100% 0%, rgba(194, 59, 85, .08), transparent 34%), linear-gradient(135deg, #f8fafc, #eef3f7);
}
.task-report-heading{
  display: grid;
  gap: 8px;
  min-width: 0;
}
.task-report-heading h3{
  margin: 0;
  font-size: 19px;
  line-height: 1.5;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 10px;
}
.task-report-heading p{
  margin: 0;
  color: #526174;
  line-height: 1.9;
  white-space: pre-wrap;
}
.task-report-state{
  justify-self: start;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(213, 161, 30, .14);
  color: #9a6500;
  font-size: 12px;
  font-weight: 800;
}
.task-report-state.done{
  background: rgba(91, 91, 214, .12);
  color: #5B5BD6;
}
.task-report-actions{
  display: flex;
  gap: 8px;
  align-items: center;
}
.task-report-action{
  height: 38px;
  border: 1px solid rgba(148, 163, 184, .34);
  border-radius: 12px;
  padding: 0 12px;
  background: rgba(255, 255, 255, .72);
  color: #334155;
  font: inherit;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(15, 23, 42, .06);
}
.task-report-action:hover,.task-report-action:focus-visible{
  border-color: rgba(194, 59, 85, .34);
  background: #fff;
  color: #b32646;
}
.task-report-action.strong{
  background: #162232;
  border-color: #162232;
  color: #fff;
}
.task-report-action span{
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .2);
  line-height: 1;
}
.task-report-done-toggle{
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 999px;
  border: 2px solid rgba(194, 59, 85, .32);
  background: #fff;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 0 0 5px rgba(194, 59, 85, .055);
}
.task-report-done-toggle:hover,.task-report-done-toggle:focus-visible{
  outline: none;
  border-color: #c23b55;
  box-shadow: 0 0 0 6px rgba(194, 59, 85, .12);
}
.task-report-done-toggle.done{
  background: #5B5BD6;
  border-color: #5B5BD6;
  color: #fff;
  box-shadow: 0 0 0 5px rgba(91,91,214,.12);
}
.task-report-facts{
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.task-report-facts span{
  min-width: 0;
  border-radius: 14px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, .64);
  color: #334155;
  font-size: 12px;
  line-height: 1.7;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-report-facts b{
  display: block;
  color: #7a8492;
  font-size: 11px;
  font-weight: 700;
}
.task-report-section-title{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 28px;
  color: #1f2937;
}
.task-report-section-title b{
  font-size: 14px;
}
.task-report-section-title small{
  color: #7a8492;
  font-size: 12px;
}
.task-report-checklist{
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 16px;
  background: #f8fafc;
}
.task-report-checklist > div:last-child{
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.task-report-checklist span{
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, .24);
  color: #475569;
  font-size: 12px;
}
.task-report-checklist span.done{
  border-color: rgba(91,91,214,.20);
  background: rgba(91,91,214,.09);
  color: #5B5BD6;
}
.task-report-list{
  display: grid;
  gap: 9px;
  max-height: 240px;
  overflow: auto;
  padding: 2px 2px 2px 0;
}
.task-report-card{
  position: relative;
  display: grid;
  gap: 7px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, .22);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .045);
}
.task-report-card::before{
  content: "";
  position: absolute;
  inset-block: 12px;
  inset-inline-start: 0;
  width: 3px;
  border-radius: 999px;
  background: #c23b55;
}
.task-report-card-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.task-report-avatar{
  position: relative;
  display: inline-flex;
  align-items: center;
}
.task-report-avatar::after{
  content: attr(data-author);
  position: absolute;
  inset-inline-start: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 5px 9px;
  border-radius: 10px;
  background: #172232;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .18);
  transition: opacity .15s ease, transform .15s ease;
}
.task-report-avatar:hover::after,.task-report-avatar:focus-within::after{
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}
.task-report-card-head b{
  color: #111827;
  font-size: 13px;
}
.task-report-card-head small{
  color: #7a8492;
  font-size: 11px;
  white-space: nowrap;
}
.task-report-card p{
  margin: 0;
  color: #334155;
  line-height: 1.9;
}
.task-report-empty{
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: #f8fafc;
  color: #7a8492;
  border: 1px dashed rgba(148, 163, 184, .35);
}
.task-report-composer{
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  background: #eef3f7;
  border: 1px solid rgba(148, 163, 184, .18);
}
.task-report-composer .mention-compose{
  display: grid;
  gap: 8px;
  border: 0;
  padding: 0;
  background: transparent;
}
.task-report-composer .mention-compose > span{
  color: #526174;
  font-size: 12px;
  font-weight: 800;
}
.task-report-composer textarea{
  width: 100%;
  min-height: 92px;
  resize: vertical;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 16px;
  padding: 12px 14px;
  background: #fff;
  color: #162232;
  line-height: 1.9;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65), 0 0 0 4px rgba(47, 111, 159, .035);
}
.task-report-composer textarea:focus{
  outline: none;
  border-color: rgba(47, 111, 159, .48);
  box-shadow: 0 0 0 4px rgba(47, 111, 159, .12);
}
.task-report-submit{
  min-height: 44px;
  border-radius: 14px;
}
@media (max-width: 760px) {
  .task-report-hero,.task-report-facts{
    grid-template-columns: 1fr;
  }
  .task-report-actions{
    width: 100%;
  }
  .task-report-action{
    flex: 1;
    justify-content: center;
  }
}

/* DAY ERP 1.1.77 final layout and searchable-field cue. */
.project-modal .task-form .task-meta-row{
  grid-template-columns: minmax(260px, 1.35fr) minmax(260px, 1.35fr) 150px !important;
}
.project-modal .task-column-field select{
  font-size: 13px !important;
  padding-inline: 40px 16px !important;
}
.project-modal .task-progress-field input[type=range]{
  width: 100% !important;
  cursor: pointer !important;
}
.project-modal .task-people-field .person-picker-search{
  position: relative !important;
  display: block !important;
}
.project-modal .task-people-field .person-picker-search::before{
  content: "⌕" !important;
  position: absolute !important;
  inset-inline-start: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #7d8b99 !important;
  font-size: 18px !important;
  pointer-events: none !important;
  z-index: 1 !important;
}
.project-modal .task-people-field .person-picker-search:focus-within::before,.project-modal .task-people-field .person-picker-search:has(input:not(:placeholder-shown))::before{
  opacity: 0 !important;
}
.project-modal .task-people-field .person-picker-search input,.person-picker-search input,[data-person-search],[data-search],input[type="search"]{
  border: 1px solid #d8e2ea !important;
  box-shadow:
    0 0 0 1px rgba(37,111,136,.10),
    0 0 18px rgba(37,111,136,.10) !important;
}
.project-modal .task-people-field .person-picker-search input{
  height: 40px !important;
  border-radius: 12px !important;
  background: #fff !important;
  padding-inline: 38px 14px !important;
}
.person-picker-search input:hover,[data-person-search]:hover,[data-search]:hover,input[type="search"]:hover{
  box-shadow:
    0 0 0 1px rgba(37,111,136,.18),
    0 0 20px rgba(37,111,136,.14) !important;
}
.person-picker-search input:focus,[data-person-search]:focus,[data-search]:focus,input[type="search"]:focus{
  box-shadow:
    0 0 0 3px rgba(37,111,136,.16),
    0 0 24px rgba(37,111,136,.20) !important;
}
@media (max-width: 640px) {
  .project-modal .task-form .task-meta-row{
    grid-template-columns: 1fr !important;
  }
}

/* DAY ERP 1.1.77: task form proportions and inviting people search. */
.project-modal .task-form .task-meta-row{
  grid-template-columns: minmax(260px, 1.35fr) minmax(260px, 1.35fr) 150px !important;
}
.project-modal .task-progress-field input[type=range]{
  width: 100% !important;
  cursor: pointer !important;
}
.project-modal .task-column-field select{
  font-size: 13px !important;
  padding-inline: 40px 16px !important;
}
.project-modal .task-people-field .person-picker-search{
  position: relative !important;
  display: block !important;
}
.project-modal .task-people-field .person-picker-search::before{
  content: "⌕" !important;
  position: absolute !important;
  inset-inline-start: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #7d8b99 !important;
  font-size: 18px !important;
  line-height: 1 !important;
  pointer-events: none !important;
  z-index: 1 !important;
}
.project-modal .task-people-field .person-picker-search:focus-within::before,.project-modal .task-people-field .person-picker-search:has(input:not(:placeholder-shown))::before{
  opacity: 0 !important;
}
.project-modal .task-people-field .person-picker-search input{
  height: 40px !important;
  border-radius: 12px !important;
  background: #fff !important;
  border: 1px solid #d8e2ea !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), 0 6px 14px rgba(41,56,72,.06) !important;
  padding-inline: 38px 14px !important;
}
.project-modal .task-people-field .person-picker-search input:focus{
  border-color: #9bb4c5 !important;
  box-shadow: 0 0 0 3px rgba(54,105,133,.12) !important;
}
.project-modal .task-people-field .person-picker-selected{
  margin-top: 2px !important;
  background: transparent !important;
}
@media (max-width: 640px) {
  .project-modal .task-form .task-meta-row{
    grid-template-columns: 1fr !important;
  }
}

/* DAY ERP 1.1.77: global subtle neon cue for searchable pickers. */
.person-picker-search input,[data-person-search],[data-search],input[type="search"]{
  box-shadow:
    0 0 0 1px rgba(37,111,136,.10),
    0 0 18px rgba(37,111,136,.10) !important;
}
.person-picker-search input:hover,[data-person-search]:hover,[data-search]:hover,input[type="search"]:hover{
  box-shadow:
    0 0 0 1px rgba(37,111,136,.18),
    0 0 20px rgba(37,111,136,.14) !important;
}
.person-picker-search input:focus,[data-person-search]:focus,[data-search]:focus,input[type="search"]:focus{
  box-shadow:
    0 0 0 3px rgba(37,111,136,.16),
    0 0 24px rgba(37,111,136,.20) !important;
}

/* DAY ERP 1.1.77 final progress thumb removal. */
.project-modal .task-progress-field input[type=range]::-webkit-slider-thumb{
  appearance: none !important;
  width: 0 !important;
  height: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.project-modal .task-progress-field input[type=range]::-moz-range-thumb{
  width: 0 !important;
  height: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* DAY ERP 1.1.77: progress slider without bulky thumb. */
.project-modal .task-progress-field input[type=range]{
  height: 12px !important;
  cursor: pointer !important;
}
.project-modal .task-progress-field input[type=range]::-webkit-slider-thumb{
  appearance: none !important;
  width: 2px !important;
  height: 12px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
}
.project-modal .task-progress-field input[type=range]::-moz-range-thumb{
  width: 2px !important;
  height: 12px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* DAY ERP 1.1.77: corrected task form direction, column width, and Jalali picker. */
.project-modal .task-form .task-meta-row{
  grid-template-columns: minmax(230px, 1.45fr) minmax(180px, .95fr) 156px !important;
}
.project-modal .task-column-field{
  min-width: 0 !important;
}
.project-modal .task-column-field select{
  width: 100% !important;
  height: 38px !important;
  padding-inline: 36px 14px !important;
  overflow: visible !important;
  text-overflow: clip !important;
}
.project-modal .task-progress-field input[type=range]{
  direction: rtl !important;
  background: linear-gradient(270deg, var(--progress-color, #be3455) var(--progress, 0%), #dde5ec var(--progress, 0%)) !important;
}
.project-modal .task-action-row{
  display: block !important;
}
.project-modal .task-action-row .primary-action{
  width: 100% !important;
}
.project-modal .task-complete-action{
  display: none !important;
}
@media (max-width: 640px) {
  .project-modal .task-form .task-meta-row{
    grid-template-columns: 1fr !important;
  }
}

/* DAY ERP 1.1.77: final non-native task column select and cursor reset. */
.project-modal .task-form .task-meta-row{
  grid-template-columns: minmax(300px, 1.55fr) minmax(240px, 1.2fr) 150px !important;
}
.project-modal .task-column-field{
  min-width: 0 !important;
}
.project-modal .task-column-select{
  position: relative !important;
  display: block !important;
  width: 100% !important;
}
.project-modal .task-column-select::after{
  content: "⌄" !important;
  position: absolute !important;
  inset-inline-start: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 24px !important;
  height: 24px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 8px !important;
  background: #e6eef4 !important;
  color: #263747 !important;
  pointer-events: none !important;
  font-weight: 900 !important;
}
.project-modal .task-column-select select,.project-modal .task-column-field select{
  -webkit-appearance: none !important;
  appearance: none !important;
  background-image: none !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 40px !important;
  line-height: 40px !important;
  direction: rtl !important;
  text-align: right !important;
  text-align-last: right !important;
  padding: 0 14px 0 46px !important;
  overflow: visible !important;
  white-space: nowrap !important;
  text-overflow: clip !important;
  font-size: 13px !important;
  cursor: pointer !important;
}
.project-modal .task-progress-field input[type=range]{
  cursor: pointer !important;
}

/* DAY ERP 1.1.77: compact report cards, stable inline completion check, and native report attachments. */
.task-report-panel{
  gap: 9px !important;
  padding: 10px !important;
  max-height: min(76vh, 720px) !important;
  overflow: auto !important;
  padding-bottom: 0 !important;
  position: relative !important;
  border-radius: 18px !important;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, rgba(255,255,255,.68), var(--task-progress-color, #be3455), rgba(255,255,255,.3)) border-box !important;
  border: 1px solid transparent !important;
  box-shadow:
    0 18px 46px rgba(15, 23, 42, .10),
    0 0 0 4px var(--task-progress-soft, rgba(190, 52, 85, .10)) !important;
}
.task-report-panel::before{
  content: "";
  position: sticky;
  top: 0;
  z-index: 2;
  display: block;
  height: 2px;
  margin: -1px 10px 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--task-progress-color, #be3455), transparent);
  opacity: .55;
  pointer-events: none;
}
.task-report-hero{
  grid-template-columns: minmax(220px, 1fr) auto auto !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 7px 10px !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: linear-gradient(135deg, #fff, rgba(248, 250, 252, .88)) !important;
}
.task-report-heading{
  gap: 4px !important;
  min-width: 0 !important;
}
.task-report-heading h3{
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  gap: 8px !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
}
.task-report-title-text{
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.task-report-done-toggle{
  box-sizing: border-box !important;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  max-width: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  flex: 0 0 24px !important;
  border-width: 2px !important;
  font-size: 13px !important;
  line-height: 1 !important;
  margin: 0 !important;
  transform: none !important;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7) !important;
}
.task-report-done-toggle:hover,.task-report-done-toggle:focus-visible{
  border-color: #2563EB !important;
  color: #2563EB !important;
  box-shadow: 0 0 0 3px rgba(37,99,235,.14), inset 0 0 0 2px rgba(255, 255, 255, .7) !important;
}
.task-report-done-toggle.done{
  background: #2563EB !important;
  border-color: #2563EB !important;
  color: #fff !important;
  box-shadow: 0 0 0 3px rgba(91,91,214,.12), inset 0 0 0 2px rgba(255, 255, 255, .2) !important;
}
.task-report-heading p{
  line-height: 1.5 !important;
  font-size: 11px !important;
  margin: 0 !important;
  color: #64748b !important;
}
.task-report-state{
  min-height: 18px !important;
  padding: 1px 7px !important;
  font-size: 10px !important;
  width: max-content !important;
}
.task-report-action{
  height: 32px !important;
  padding: 0 10px !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}
.task-report-actions{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 5px !important;
  min-width: max-content !important;
}
.task-report-facts{
  grid-column: auto !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  gap: 5px !important;
  max-width: 360px !important;
}
.task-report-facts span{
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 150px !important;
  min-height: 24px !important;
  padding: 2px 7px !important;
  border-radius: 999px !important;
  font-size: 10px !important;
  background: rgba(248, 250, 252, .9) !important;
  border: 1px solid rgba(148, 163, 184, .20) !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}
.task-report-facts span b{
  color: #64748b !important;
  font-size: 9px !important;
  font-weight: 800 !important;
}
.task-report-list{
  gap: 7px !important;
  max-height: 166px !important;
  background: #f4f5f7 !important;
  border: 1px solid rgba(15, 23, 42, .08) !important;
  border-radius: 14px !important;
  padding: 7px !important;
}
.task-report-card{
  gap: 4px !important;
  padding: 8px 10px !important;
  border-radius: 10px !important;
  border: 0 !important;
  background: #fff !important;
  box-shadow: inset 3px 0 0 rgba(190, 52, 85, .12), 0 1px 2px rgba(15, 23, 42, .05) !important;
}
.task-report-card::before{
  inset-block: 8px !important;
  width: 2px !important;
}
.task-report-card-head b{
  font-size: 12px !important;
}
.task-report-card-head small{
  font-size: 10px !important;
}
.task-report-card p{
  line-height: 1.55 !important;
  font-size: 12px !important;
  margin: 4px 0 0 !important;
  color: #1f2937 !important;
}
.task-report-attachments{
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}
.task-report-attachments a,.task-file-list a{
  min-height: 22px;
  max-width: 210px;
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(248, 250, 252, .96);
  color: #334155;
  border: 1px solid rgba(148, 163, 184, .24);
  text-decoration: none;
  font-size: 10px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-file-list{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.task-report-empty.small{
  min-height: 42px !important;
  border-radius: 12px !important;
  font-size: 12px;
  flex: 1 1 100%;
}
.task-report-composer{
  padding: 7px !important;
  border-radius: 14px !important;
  position: sticky !important;
  bottom: 0 !important;
  z-index: 8 !important;
  margin-inline: -2px !important;
  border: 1px solid rgba(15, 23, 42, .10) !important;
  background: rgba(255, 255, 255, .96) !important;
  box-shadow: 0 -12px 24px rgba(15, 23, 42, .10) !important;
}
.task-report-composer .mention-compose{
  background: #f5f6f8 !important;
  border: 1px solid transparent !important;
  border-radius: 14px !important;
  padding: 6px 8px !important;
}
.task-report-composer .mention-compose:focus-within{
  background: #fff !important;
  border-color: rgba(190, 52, 85, .24) !important;
  box-shadow: 0 0 0 3px rgba(190, 52, 85, .06) !important;
}
.task-report-composer .mention-compose > span{
  color: #64748b !important;
  font-size: 11px !important;
}
.task-report-composer textarea{
  min-height: 48px !important;
  max-height: 86px !important;
  border-radius: 10px !important;
  padding: 8px 10px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.task-report-file{
  display: inline-flex;
  justify-self: start;
  align-items: center;
  justify-content: center;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(190, 52, 85, .28);
  background: linear-gradient(135deg, rgba(190, 52, 85, .13), rgba(217, 119, 6, .10));
  color: #8f2943;
  cursor: pointer;
  font-weight: 800;
  font-size: 0;
  font: inherit;
}
.task-report-file svg,.task-report-action.icon-print svg{
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.task-report-file:hover,.task-report-file:focus-visible{
  border-color: rgba(190, 52, 85, .48);
  box-shadow: 0 0 0 3px rgba(190, 52, 85, .10);
}
.task-report-action.icon-print{
  width: 34px !important;
  min-width: 34px !important;
  padding: 0 !important;
  border-radius: 999px !important;
}
.task-report-action.icon-print span{
  background: transparent !important;
}
.task-report-action.icon-print svg{
  width: 17px;
  height: 17px;
}
.task-report-file-row{
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 5px 6px;
  border-radius: 12px;
  background: rgba(248, 250, 252, .82);
  border: 1px solid rgba(148, 163, 184, .18);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.task-file-strip{
  display: inline-grid;
  width: max-content;
  max-width: 100%;
  grid-template-columns: auto !important;
  padding: 3px !important;
  border-radius: 999px !important;
  background: transparent !important;
  border-color: transparent !important;
}
.task-file-strip.has-files,.task-file-strip.is-dragging{
  background: transparent !important;
  box-shadow: none !important;
}
.task-report-composer .task-report-file-row{
  grid-column: 1 / -1;
}
.task-report-composer{
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 6px !important;
  align-items: end !important;
}
.task-report-composer .mention-compose{
  grid-column: 1 / -1 !important;
}
.task-report-composer .task-report-file-row{
  grid-column: 1 / 2 !important;
}
.task-report-composer .task-report-submit{
  grid-column: 2 / 3 !important;
  min-width: 118px !important;
  align-self: stretch !important;
}
.task-report-file-row:not(.has-files) .pending-file-list{
  display: none;
}
.task-report-file-row.is-dragging,.task-report-file-row.has-files{
  border-color: rgba(190, 52, 85, .34);
  background: linear-gradient(135deg, rgba(255, 247, 249, .78), rgba(255, 251, 235, .65));
  box-shadow: 0 0 0 2px rgba(190, 52, 85, .06);
}
.pending-file-list{
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
  max-height: 58px;
  overflow: auto;
  align-content: flex-start;
}
.pending-file-chip{
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 5px;
  width: min(100%, 238px);
  max-width: 238px;
  min-height: 26px;
  padding: 3px 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff, #fff8fb);
  border: 1px solid rgba(190, 52, 85, .16);
  color: #334155;
  box-shadow: 0 4px 10px rgba(15, 23, 42, .04);
}
.pending-file-chip b{
  color: #8f2943;
  font-size: 9px;
  font-weight: 900;
}
.pending-file-chip span{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 800;
}
.pending-file-chip small{
  color: #64748b;
  font-size: 9px;
  white-space: nowrap;
}
.pending-file-chip button{
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, .06);
  color: #475569;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  font-weight: 900;
}
.pending-file-chip button:hover,.pending-file-chip button:focus-visible{
  background: rgba(190, 52, 85, .12);
  color: #8f2943;
}
.task-report-submit{
  min-height: 34px !important;
  border-radius: 10px !important;
}
.project-modal .task-action-row{
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
}
.project-modal .task-action-row .primary-action,.project-modal .task-action-row .secondary-action{
  width: auto !important;
  min-width: 132px !important;
  height: 38px !important;
  border-radius: 10px !important;
  padding-inline: 16px !important;
}

/* DAY ERP 1.1.77: Mizito-like report flow; compose first, reports below. */
.task-report-panel{
  gap: 7px !important;
}
.task-report-section-title{
  margin-top: 2px !important;
}
.task-report-composer{
  position: static !important;
  bottom: auto !important;
  z-index: auto !important;
  margin: 0 !important;
  padding: 6px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #f4f5f7 !important;
  box-shadow: none !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  gap: 6px !important;
  align-items: end !important;
}
.task-report-composer .mention-compose{
  grid-column: 1 / -1 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 10px !important;
  padding: 0 !important;
  box-shadow: none !important;
}
.task-report-composer .mention-compose:focus-within{
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
.task-report-composer .mention-compose > span{
  font-size: 10px !important;
  color: #8a94a3 !important;
}
.task-report-composer textarea{
  min-height: 34px !important;
  max-height: 72px !important;
  padding: 7px 9px !important;
  border-radius: 10px !important;
  background: #fff !important;
  border: 1px solid rgba(148, 163, 184, .22) !important;
  box-shadow: none !important;
}
.task-report-composer textarea:focus{
  border-color: rgba(190, 52, 85, .34) !important;
  box-shadow: 0 0 0 3px rgba(190, 52, 85, .07) !important;
}
.task-report-composer .task-report-file-row{
  grid-column: 1 / 2 !important;
  padding: 3px !important;
  background: transparent !important;
  border: 0 !important;
}
.task-report-composer .task-report-submit{
  grid-column: 3 / 4 !important;
  min-width: 96px !important;
  min-height: 32px !important;
  align-self: stretch !important;
}
.task-report-list{
  max-height: 240px !important;
  background: #f4f5f7 !important;
  border: 0 !important;
  padding: 7px !important;
}
.task-report-action.icon-print{
  border-color: transparent !important;
  background: transparent !important;
  color: #64748b !important;
  box-shadow: none !important;
}
.task-report-action.icon-print:hover,.task-report-action.icon-print:focus-visible{
  border-color: rgba(100, 116, 139, .26) !important;
  background: rgba(248, 250, 252, .92) !important;
  color: #334155 !important;
  box-shadow: 0 0 0 3px rgba(100, 116, 139, .08) !important;
}
@media (max-width: 760px) {
  .task-report-hero{
    grid-template-columns: 1fr !important;
  }
  .task-report-facts,.task-report-actions{
    justify-content: flex-start !important;
    max-width: 100% !important;
  }
}
@media (max-width: 640px) {
  .project-modal .task-form .task-meta-row{
    grid-template-columns: 1fr !important;
  }
}

/* DAY ERP 1.1.77: final report card repair. Keep each report a real card, not a collapsed stripe. */
.project-modal:has(.task-report-panel) .task-report-list{
  display: grid !important;
  grid-auto-rows: auto !important;
  align-items: start !important;
  align-content: start !important;
  gap: 8px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  min-height: 0 !important;
  max-height: 260px !important;
  padding: 8px !important;
}
.project-modal:has(.task-report-panel) .task-report-card{
  display: grid !important;
  grid-template-columns: 30px minmax(0, 1fr) !important;
  grid-auto-rows: auto !important;
  align-items: start !important;
  gap: 0 9px !important;
  height: auto !important;
  min-height: 66px !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 10px 12px !important;
  background: #fff !important;
  border-radius: 12px !important;
}
.project-modal:has(.task-report-panel) .task-report-content{
  display: grid !important;
  gap: 4px !important;
  min-width: 0 !important;
  overflow: visible !important;
}
.project-modal:has(.task-report-panel) .task-report-card p{
  display: block !important;
  height: auto !important;
  min-height: 20px !important;
  max-height: none !important;
  overflow: visible !important;
  margin: 0 !important;
  white-space: normal !important;
}
.project-modal:has(.task-report-panel) .task-report-attachments{
  position: static !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  margin-top: 5px !important;
}
.project-modal:has(.task-report-panel) .task-report-attachments a{
  flex: 0 0 150px !important;
  width: 150px !important;
  max-width: 150px !important;
  min-height: 32px !important;
  max-height: none !important;
}

/* DAY ERP 1.1.78: attachments belong to the report that created them. */
.project-modal:has(.task-report-panel) .task-report-list{
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  align-content: initial !important;
}
.project-modal:has(.task-report-panel) .task-report-card{
  display: flex !important;
  flex: 0 0 auto !important;
  align-items: flex-start !important;
  min-height: 72px !important;
  height: auto !important;
  contain: layout !important;
}
.project-modal:has(.task-report-panel) .task-report-avatar{
  flex: 0 0 30px !important;
  margin-inline-end: 9px !important;
}
.project-modal:has(.task-report-panel) .task-report-content{
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  align-items: stretch !important;
  min-width: 0 !important;
}
.project-modal:has(.task-report-panel) .task-report-attachments{
  display: flex !important;
  position: static !important;
  flex: 0 0 auto !important;
  order: 3 !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 8px 0 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}
.project-modal:has(.task-report-panel) .task-report-attachments a{
  display: inline-flex !important;
  flex: 0 1 190px !important;
  align-items: center !important;
  gap: 6px !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: min(190px, 100%) !important;
  min-height: 30px !important;
  padding: 4px 9px !important;
  color: #475569 !important;
  background: #f8fafc !important;
  border-color: rgba(71, 85, 105, .2) !important;
}
.project-modal:has(.task-report-panel) .task-report-attachment-icon{
  display: inline-grid !important;
  flex: 0 0 14px !important;
  width: 14px !important;
  height: 14px !important;
  color: #667a94 !important;
}
.project-modal:has(.task-report-panel) .task-report-attachment-icon svg{
  width: 14px !important;
  height: 14px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.8 !important;
}
.project-modal:has(.task-report-panel) .task-report-attachment-name{
  display: block !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

/* Let reports use the modal's working area instead of leaving an empty panel below them. */
.project-modal:has(.task-report-panel){
  height: min(90vh, 920px) !important;
  max-height: min(90vh, 920px) !important;
}
.project-modal:has(.task-report-panel) .task-report-panel{
  display: flex !important;
  flex-direction: column !important;
  height: calc(min(90vh, 920px) - 58px) !important;
  max-height: none !important;
  overflow: hidden !important;
}
.project-modal:has(.task-report-panel) .task-report-composer{
  flex: 0 0 auto !important;
  padding: 5px 6px !important;
}
.project-modal:has(.task-report-panel) .task-report-composer textarea{
  height: 42px !important;
  min-height: 42px !important;
  max-height: 64px !important;
  resize: none !important;
  padding: 7px 9px !important;
}
.project-modal:has(.task-report-panel) .task-report-list{
  flex: 1 1 0 !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

/* DAY ERP 1.1.79: write reports directly in the flow, with compact actions beside the text. */
.project-modal:has(.task-report-panel) .task-report-composer{
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  grid-template-rows: auto !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 2px 4px !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(190, 52, 85, .52) !important;
  border-bottom: 1px solid rgba(148, 163, 184, .22) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.project-modal:has(.task-report-panel) .task-report-composer .mention-compose{
  grid-column: 2 / 3 !important;
  grid-row: 1 !important;
  display: block !important;
  min-width: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
}
.project-modal:has(.task-report-panel) .task-report-composer textarea{
  display: block !important;
  width: 100% !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 104px !important;
  margin: 0 !important;
  padding: 7px 2px !important;
  line-height: 1.65 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}
.project-modal:has(.task-report-panel) .task-report-composer textarea:focus{
  border: 0 !important;
  border-bottom: 2px solid rgba(190, 52, 85, .72) !important;
  box-shadow: inset 0 -2px 0 rgba(190, 52, 85, .52) !important;
}
.project-modal:has(.task-report-panel) .task-report-composer .task-report-file-row{
  grid-column: 1 / 2 !important;
  grid-row: 1 !important;
  display: flex !important;
  align-items: center !important;
  gap: 2px !important;
  min-width: auto !important;
  padding: 0 !important;
  position: relative !important;
}
.project-modal:has(.task-report-panel) .report-emoji-menu{
  position: absolute !important;
  inset-inline-start: 0 !important;
  inset-block-start: calc(100% + 8px) !important;
  inset-block-end: auto !important;
  z-index: 32 !important;
  display: block !important;
  width: min(390px, calc(100vw - 48px)) !important;
  height: 330px !important;
  padding: 0 !important;
  border: 1px solid rgba(190, 52, 85, .22) !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 14px 28px rgba(15, 23, 42, .16) !important;
}
.project-modal:has(.task-report-panel) .report-emoji-tabs{
  display: flex !important;
  direction: rtl !important;
  align-items: center !important;
  gap: 2px !important;
  min-height: 44px !important;
  padding: 6px !important;
  border-bottom: 1px solid #edf0f3 !important;
  overflow-x: auto !important;
}
.project-modal:has(.task-report-panel) .report-emoji-tab,.project-modal:has(.task-report-panel) .report-emoji-clear{
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #64748b !important;
  font-family: "Noto Color Emoji", "Segoe UI Emoji", "Apple Color Emoji", sans-serif !important;
  font-size: 17px !important;
  cursor: pointer !important;
}
.project-modal:has(.task-report-panel) .report-emoji-tab:hover,.project-modal:has(.task-report-panel) .report-emoji-tab.active,.project-modal:has(.task-report-panel) .report-emoji-clear:hover{
  background: rgba(190, 52, 85, .1) !important;
  color: #be3455 !important;
}
.project-modal:has(.task-report-panel) .report-emoji-clear{ margin-inline-start: auto !important; font-family: inherit !important; font-size: 20px !important; }
.project-modal:has(.task-report-panel) .report-emoji-grid{
  display: grid !important;
  grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
  gap: 2px !important;
  height: calc(100% - 44px) !important;
  padding: 9px !important;
  overflow-y: auto !important;
  direction: rtl !important;
}
.project-modal:has(.task-report-panel) .task-report-facts .task-report-assignee-avatars{
  display: flex !important;
  align-items: center !important;
  width: auto !important;
  min-width: 0 !important;
  padding: 0 4px !important;
  border: 0 !important;
  background: transparent !important;
  overflow: visible !important;
}
.project-modal:has(.task-report-panel) .task-report-assignee-avatars .project-avatar{
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  min-height: 26px !important;
  padding: 0 !important;
  line-height: 1 !important;
  overflow: hidden !important;
  margin-inline-start: -6px !important;
  border: 2px solid #fff !important;
  box-shadow: 0 1px 4px rgba(38, 52, 68, .14) !important;
}
.project-modal:has(.task-report-panel) .task-report-assignee-avatars .project-avatar img{ width: 100% !important; height: 100% !important; display: block !important; object-fit: cover !important; }
.project-modal:has(.task-report-panel) .task-report-assignee-avatars .project-avatar:first-child{ margin-inline-start: 0 !important; }
.project-modal:has(.task-report-panel) .report-emoji-menu.hidden{
  display: none !important;
}
.project-modal:has(.task-report-panel) .report-emoji-choice{
  display: grid !important;
  width: 32px !important;
  height: 32px !important;
  place-items: center !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  line-height: 1 !important;
  cursor: pointer !important;
}
.project-modal:has(.task-report-panel) .report-emoji-art,.project-modal:has(.task-report-panel) .report-emoji-tab-art{
  display: block !important;
  width: 23px !important;
  height: 23px !important;
  object-fit: contain !important;
}
.project-modal:has(.task-report-panel) .report-emoji-tab-art{
  width: 19px !important;
  height: 19px !important;
}
.project-modal:has(.task-report-panel) .report-inline-emoji{
  display: inline-block !important;
  width: 1.18em !important;
  height: 1.18em !important;
  margin: 0 .06em !important;
  vertical-align: -.22em !important;
}
.project-modal:has(.task-report-panel) .report-emoji-choice:hover,.project-modal:has(.task-report-panel) .report-emoji-choice:focus-visible{
  background: rgba(190, 52, 85, .10) !important;
  outline: 0 !important;
}

/* DAY ERP 1.1.83: assignee search results always use the whole task field. */
.project-modal .task-people-field .person-picker{
  width: 100% !important;
  min-width: 0 !important;
}
.project-modal .task-people-field .person-picker-options{
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100% !important;
  min-width: 0 !important;
  max-height: 196px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
}
.project-modal .task-people-field .person-option{
  grid-template-columns: 30px minmax(0, 1fr) auto !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 48px !important;
  box-sizing: border-box !important;
}
.project-modal .task-people-field .person-option span{
  min-width: 0 !important;
}
.project-modal .task-people-field .person-option strong,.project-modal .task-people-field .person-option small{
  display: block !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.project-modal:has(.task-report-panel) .task-report-composer .task-report-file{
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  padding: 6px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #64748b !important;
  box-shadow: none !important;
}
.project-modal:has(.task-report-panel) .task-report-composer .task-report-file:hover,.project-modal:has(.task-report-panel) .task-report-composer .task-report-file:focus-visible{
  background: rgba(190, 52, 85, .09) !important;
  color: #be3455 !important;
  box-shadow: 0 0 0 3px rgba(190, 52, 85, .07) !important;
}
.project-modal:has(.task-report-panel) .task-report-composer .task-report-submit{
  grid-column: 3 / 4 !important;
  grid-row: 1 !important;
  width: auto !important;
  min-width: 86px !important;
  min-height: 32px !important;
  height: 32px !important;
  padding-inline: 12px !important;
  border-radius: 9px !important;
}
.project-modal:has(.task-report-panel) .task-report-composer .pending-file-list{
  position: absolute !important;
  inset-inline-start: 4px !important;
  inset-inline-end: 4px !important;
  inset-block-start: calc(100% + 5px) !important;
  z-index: 3 !important;
  max-height: 92px !important;
  overflow: auto !important;
}
.project-modal:has(.task-report-panel) .task-report-composer:has(.pending-file-list:not(:empty)){
  margin-bottom: 58px !important;
}

/* Replies stay visually attached to the report they answer and remain quiet until needed. */
.project-modal:has(.task-report-panel) .task-report-card-actions{
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
}
.project-modal:has(.task-report-panel) .report-reply-button{
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  height: 24px !important;
  padding: 0 6px !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: transparent !important;
  color: #64748b !important;
  font: inherit !important;
  font-size: 10px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(2px) !important;
  transition: opacity 140ms ease, transform 140ms ease, color 140ms ease, background 140ms ease !important;
}
.project-modal:has(.task-report-panel) .report-reply-button svg{
  width: 13px !important;
  height: 13px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.9 !important;
}
.project-modal:has(.task-report-panel) .task-report-card:hover .report-reply-button,.project-modal:has(.task-report-panel) .task-report-card:focus-within .report-reply-button{
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}
.project-modal:has(.task-report-panel) .report-reply-button:hover,.project-modal:has(.task-report-panel) .report-reply-button:focus-visible{
  color: #be3455 !important;
  background: rgba(190, 52, 85, .09) !important;
  outline: 0 !important;
}
.project-modal:has(.task-report-panel) .task-report-reply{
  margin-top: 8px !important;
  margin-inline-start: 16px !important;
  min-height: 58px !important;
  padding: 8px 10px !important;
  background: #f8fafc !important;
  border-inline-start: 2px solid rgba(14, 159, 186, .32) !important;
  border-radius: 9px !important;
  box-shadow: none !important;
}
.project-modal:has(.task-report-panel) .task-report-reply::before{
  display: none !important;
}

/* DAY ERP 1.1.82: mention choices open below the writing row, never over its text. */
.project-modal:has(.task-report-panel) .task-report-composer{
  position: relative !important;
  overflow: visible !important;
}
.project-modal:has(.task-report-panel) .task-report-composer .mention-compose{
  position: static !important;
  overflow: visible !important;
}
.project-modal:has(.task-report-panel) .task-report-composer .mention-menu{
  position: absolute !important;
  inset-inline: 0 !important;
  inset-block-start: calc(100% + 7px) !important;
  top: auto !important;
  z-index: 30 !important;
  max-height: 216px !important;
  padding: 8px !important;
  border: 1px solid rgba(148, 163, 184, .34) !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .14) !important;
}

/* Keep selected mentions as compact avatars; names remain available in the tooltip. */
.project-modal:has(.task-report-panel) .mention-selected{
  position: static !important;
  z-index: auto !important;
  margin: 0 !important;
  gap: 4px !important;
}
.project-modal:has(.task-report-panel) .task-report-composer .mention-compose{display:flex!important;align-items:flex-end!important;gap:5px!important}
.project-modal:has(.task-report-panel) .task-report-composer .mention-compose textarea{flex:1 1 auto!important;min-width:0!important}
.project-modal:has(.task-report-panel) .mention-chip{
  display: inline-grid !important;
  place-items: center !important;
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  min-height: 26px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 999px !important;
  border-color: rgba(190, 52, 85, .26) !important;
  box-shadow: 0 2px 7px rgba(15, 23, 42, .10) !important;
}
.project-modal:has(.task-report-panel) .mention-chip > span,.project-modal:has(.task-report-panel) .mention-chip > b{
  display: none !important;
}
.project-modal:has(.task-report-panel) .mention-chip .project-avatar,.project-modal:has(.task-report-panel) .mention-chip img{
  width: 24px !important;
  height: 24px !important;
  border-radius: 999px !important;
}

/* DAY ERP 1.1.83: the report composer stays legible before focus. */
.project-modal:has(.task-report-panel) .task-report-composer{
  border-bottom-color: rgba(190, 52, 85, .48) !important;
}
.project-modal:has(.task-report-panel) .task-report-composer textarea{
  border-bottom: 1px solid rgba(190, 52, 85, .52) !important;
}
.project-modal:has(.task-report-panel) .task-report-composer textarea:focus{
  border-bottom: 2px solid rgba(190, 52, 85, .72) !important;
}
.project-modal:has(.task-report-panel) .mention-selected,.project-modal:has(.task-report-panel) .mention-chip{ display: none !important; }
.project-modal:has(.task-report-panel) .mention-editor{ display: block !important; min-height: 38px !important; max-height: 104px !important; overflow-y: hidden !important; padding: 7px 2px !important; color: #243246 !important; line-height: 1.9 !important; outline: 0 !important; white-space: pre-wrap !important; word-break: break-word !important; }
.project-modal:has(.task-report-panel) .mention-editor:empty::before{ content: attr(data-placeholder); color: #94a0af; pointer-events: none; }
.project-modal:has(.task-report-panel) .mention-token,.project-modal:has(.task-report-panel) .report-mention{ color: #1677c8 !important; font-weight: 750 !important; }
.project-modal:has(.task-report-panel) .task-report-composer textarea{
  min-height: 72px !important;
  max-height: 128px !important;
  padding: 9px 2px !important;
  line-height: 1.9 !important;
}
.project-modal .modal-inline-message{
  margin: 8px 12px 0 !important;
  padding: 9px 11px !important;
  border: 1px solid rgba(190, 52, 85, .28) !important;
  border-radius: 9px !important;
  background: rgba(255, 242, 245, .92) !important;
  color: #a22343 !important;
  font-size: 12px !important;
  line-height: 1.6 !important;
}
.project-modal .modal-inline-message.hidden{
  display: none !important;
}
.task-card-schedule{
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  margin: 2px 0 4px !important;
  color: #7c4d16 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}
.task-card-schedule time{
  direction: ltr !important;
  unicode-bidi: plaintext !important;
}
.project-modal:has(.task-report-panel) .task-primary-files{
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 0 4px !important;
  padding: 1px 2px !important;
}
.project-modal:has(.task-report-panel) .task-primary-file{
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  min-width: 0 !important;
  max-width: 210px !important;
  height: 26px !important;
  padding: 0 8px !important;
  border: 1px solid rgba(148, 163, 184, .28) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #526174 !important;
  font-size: 10px !important;
  text-decoration: none !important;
}
.project-modal:has(.task-report-panel) .task-primary-file > span:last-child{
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.project-modal:has(.task-report-panel) .task-primary-file svg{
  width: 13px !important;
  height: 13px !important;
  flex: 0 0 auto !important;
}
.project-modal:has(.task-report-panel) .task-primary-file:hover,.project-modal:has(.task-report-panel) .task-primary-file:focus-visible{
  border-color: rgba(190, 52, 85, .42) !important;
  color: #be3455 !important;
  outline: 0 !important;
}

/* Native chat workspace: information-dense, colourful, and free of generic form cards. */



.storage-toolbar{display:flex;justify-content:flex-start;margin-bottom:10px}.storage-list{display:grid;gap:5px}.storage-file{display:grid;grid-template-columns:18px minmax(0,1fr);gap:5px;padding:8px;border-bottom:1px solid #edf1f3;color:#316487;text-decoration:none}.storage-file svg{width:16px}.storage-file span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.storage-file small{grid-column:2;color:#8595a3;font-size:10px}.notification-modal-actions{display:flex;justify-content:flex-start;margin-bottom:8px}.notification-modal-actions button{border:0;background:transparent;color:#2d818b;display:flex;align-items:center;gap:4px;cursor:pointer;font:inherit;font-size:12px}.notification-modal-actions svg{width:16px}.notification-list{display:grid;gap:4px}.notification-row{border:0;border-bottom:1px solid #edf1f4;background:transparent;text-align:right;padding:10px 7px;display:grid;gap:3px;cursor:pointer;font:inherit}.notification-row.is-unread{background:#eef9f8}.notification-row strong{font-size:13px;color:#29475f}.notification-row span{font-size:12px;color:#697f92}.notification-row time{font-size:10px;color:#8294a5}
.storage-file a{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:#316487;text-decoration:none}.storage-file button{border:0;background:transparent;color:#be3b55;width:24px;height:24px;padding:3px;cursor:pointer}.storage-file button svg{width:15px}










/* Conversation geometry is explicit so RTL text does not reverse message ownership. */





.notification-popover{position:fixed;z-index:110;width:min(360px,calc(100vw - 24px));max-height:min(520px,calc(100vh - 90px));display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid #d7e3ec;border-radius:7px;box-shadow:0 14px 34px rgba(29,48,69,.2);direction:rtl}.notification-popover>header{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border-bottom:1px solid #e9eff3;color:#29465e;font-size:13px}.notification-popover>header button{width:28px;height:28px;display:grid;place-items:center;border:0;border-radius:5px;background:transparent;color:#318c94;cursor:pointer}.notification-popover>header button:hover{background:#e6f5f3}.notification-popover .notification-list{overflow:auto;padding:4px}.notification-popover .notification-row{width:100%;border-radius:5px}
.admin-primary-button{color:#fff!important;background:#c93d59!important}.admin-primary-button svg{color:#fff!important}.admin-picker-field{position:relative}.admin-search-picker{position:relative;min-width:0}.admin-search-picker>input[type=search]{padding-left:34px!important}.admin-picker-clear{position:absolute;left:3px;top:4px;width:29px;height:29px;border:0;border-radius:5px;background:transparent;color:#70879a;font-size:20px;line-height:1;cursor:pointer}.admin-picker-clear:hover{background:#f0f5f7;color:#b73751}.admin-picker-results{position:absolute;right:0;left:0;top:calc(100% + 4px);z-index:24;max-height:245px;overflow:auto;background:#fff;border:1px solid #d7e3ea;border-radius:6px;box-shadow:0 10px 24px rgba(28,51,71,.16);padding:4px}.admin-picker-results.hidden{display:none}.admin-picker-results button{display:block;width:100%;border:0;border-radius:4px;background:transparent;padding:8px;text-align:right;color:#36536c;font:inherit;font-size:12px;cursor:pointer}.admin-picker-results button:hover{background:#e9f6f4;color:#137d86}.admin-picker-results span{display:block;padding:9px;color:#8094a4;font-size:11px}.admin-role-picker{position:relative;max-width:460px}.admin-role-picker .admin-search-picker input{height:38px;border:0;border-bottom:1px solid #cbdce4;background:#fbfdfe;padding:0 8px;outline:none;font:inherit;color:#263f56;width:100%;box-sizing:border-box}.admin-role-picker .admin-search-picker input:focus{border-bottom-color:#1b9aa3;box-shadow:0 2px 0 -1px rgba(27,154,163,.22)}.admin-role-chips{display:flex;flex-wrap:wrap;gap:6px;padding-top:9px}.admin-role-chips>span{display:inline-flex;align-items:center;gap:5px;max-width:100%;padding:5px 7px;border:1px solid #b9dedd;border-radius:5px;background:#edf8f7;color:#23666d;font-size:12px}.admin-role-chips button{display:grid;place-items:center;width:17px;height:17px;border:0;border-radius:50%;background:transparent;color:#4a7b80;font-size:17px;line-height:1;cursor:pointer}.admin-role-chips button:hover{background:#f5dfe4;color:#b6324d}.admin-access-all{display:flex!important;align-items:center;gap:7px;margin:0 0 13px;padding:9px 0;border-bottom:1px solid #dfe9ec;color:#34546d;font-size:12px;cursor:pointer}.admin-access-all input,.admin-permission-item input{position:absolute;opacity:0;pointer-events:none}.admin-check-mark{width:17px;height:17px;flex:0 0 17px;border:1px solid #b7cbd7;border-radius:4px;background:#fff;display:grid;place-items:center;color:#fff;box-sizing:border-box}.admin-access-all input:checked+.admin-check-mark,.admin-permission-item input:checked+.admin-check-mark,.admin-group-toggle.is-checked .admin-check-mark{border-color:#16958f;background:#16958f}.admin-access-all input:checked+.admin-check-mark::after,.admin-permission-item input:checked+.admin-check-mark::after,.admin-group-toggle.is-checked .admin-check-mark::after{content:"✓";font-size:12px;font-weight:800}.admin-access-all input:indeterminate+.admin-check-mark::after,.admin-group-toggle.is-partial .admin-check-mark::after{content:"−";font-size:16px;line-height:1;color:#177e86}.admin-access-all input:indeterminate+.admin-check-mark{border-color:#177e86;background:#e8f6f5}.admin-permission-group{padding:0 0 12px!important;margin:0 0 10px!important;border:0!important;border-bottom:1px solid #e0e9ee!important}.admin-permission-group legend{display:flex;align-items:center;gap:7px;width:100%;padding:0 0 9px!important}.admin-permission-group legend strong{font-size:13px;color:#34546d}.admin-permission-group legend small{margin-right:auto;color:#7c94a5;font-size:10px;font-weight:500}.admin-group-toggle{padding:0;border:0;background:transparent;cursor:pointer}.admin-permission-group>div{display:flex;flex-wrap:wrap;gap:6px 16px}.admin-permission-item{display:flex!important;align-items:center;gap:5px;color:#5d778d;font-size:11px;cursor:pointer}.admin-permission-item:hover{color:#167e88}.admin-permission-item .admin-check-mark{width:15px;height:15px;flex-basis:15px;border-radius:3px}.admin-permission-item input:checked+.admin-check-mark::after{font-size:11px}













/* Users and access: dense administration without nested generic cards. */
.users-page{padding:14px;overflow:auto}.user-admin{max-width:1420px;margin:0 auto}.user-admin svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.user-admin-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:4px 0 14px;border-bottom:2px solid #e2ebf0}.user-admin-head h1{margin:0;font-size:21px;color:#1e3854}.user-admin-head span{display:block;margin-top:4px;color:#668095;font-size:12px}.user-admin-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.admin-icon-button,.admin-plain-button,.admin-primary-button{border:0;min-height:34px;font:inherit;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:6px;transition:.16s ease}.admin-icon-button{width:34px;padding:0;background:transparent;color:#416681;border-radius:6px;position:relative}.admin-icon-button:hover{background:#e4f1f2;color:#117d87;box-shadow:0 0 0 3px rgba(22,143,151,.1)}.admin-plain-button{padding:0 10px;background:transparent;color:#42617b;border-radius:6px}.admin-plain-button:hover{background:#edf4f7}.admin-template-button{border:1px dashed #8296a8;min-height:34px;padding:0 12px;background:#fff;color:#50677b;border-radius:6px;font:inherit;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:7px;transition:.16s ease}.admin-template-button:hover{border-color:#566f84;background:#f2f6f8;color:#294b63}.admin-template-button svg{width:17px;height:17px}.admin-export-button{border:1px solid #147e86;min-height:34px;padding:0 13px;background:#147e86;color:#fff;border-radius:6px;font:inherit;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:7px;transition:.16s ease;box-shadow:0 3px 8px rgba(20,126,134,.14)}.admin-export-button:hover{border-color:#0e6970;background:#0e6970;color:#fff;box-shadow:0 4px 11px rgba(20,126,134,.22)}.admin-export-button svg{width:17px;height:17px}.admin-primary-button{padding:0 12px;background:#c93d59;color:#fff;border-radius:6px;box-shadow:0 4px 10px rgba(201,61,89,.18)}.admin-primary-button:hover{background:#aa2f48}.user-admin-layout{display:grid;grid-template-columns:minmax(255px,315px) minmax(0,1fr);gap:18px;padding-top:16px;min-height:600px}.admin-user-list{border-left:1px solid #dbe6ec;padding-left:12px;display:flex;flex-direction:column;min-height:0}.admin-search{display:grid;gap:6px}.admin-search span,.admin-form label>span{font-size:11px;color:#637d92}.admin-search input,.admin-form input:not([type=checkbox]),.admin-form select{box-sizing:border-box;width:100%;height:38px;border:0;border-bottom:1px solid #cbdce4;background:#fbfdfe;padding:0 8px;outline:none;font:inherit;color:#263f56}.admin-search input:focus,.admin-form input:focus,.admin-form select:focus{border-bottom-color:#1b9aa3;box-shadow:0 2px 0 -1px rgba(27,154,163,.22)}.admin-archive-filter{display:flex;gap:6px;align-items:center;margin:10px 0;color:#5e788e;font-size:12px}.admin-users-rows{display:grid;gap:3px;overflow:auto;min-height:0;padding-left:2px}.admin-user-row{width:100%;border:0;border-right:3px solid transparent;background:transparent;display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:8px;align-items:center;padding:8px 5px;text-align:right;cursor:pointer;border-radius:5px}.admin-user-row:hover{background:#eef7f7}.admin-user-row.is-selected{border-right-color:#14939b;background:#e0f2ef}.admin-user-row>span{min-width:0;display:grid;gap:3px}.admin-user-row strong,.admin-user-row em{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.admin-user-row strong{font-size:12px;color:#2d4c65}.admin-user-row strong small{font-weight:500;color:#7891a4}.admin-user-row em{font-size:10px;font-style:normal;color:#7d91a2}.admin-user-row i{font-size:9px;font-style:normal;padding:3px 5px;border-radius:99px}.admin-user-row i.is-active{background:#e6f5ec;color:#26764b}.admin-user-row i.is-archived{background:#f4e9ec;color:#9e5361}.admin-avatar{width:32px;height:32px;border-radius:50%;background:#dceaf0;color:#37677f;display:grid;place-items:center;overflow:hidden;font-size:12px;font-weight:800;flex:0 0 auto}.admin-avatar img{width:100%;height:100%;object-fit:cover}.admin-avatar.large{width:54px;height:54px;font-size:19px;background:#dff2ef;color:#168982}.admin-avatar.xl{width:78px;height:78px;font-size:28px}.admin-user-detail{min-width:0;padding:2px 0 30px}.admin-detail-head{display:grid;grid-template-columns:54px minmax(0,1fr) auto;align-items:center;gap:10px;padding:0 0 14px;border-bottom:1px solid #dfe9ee}.admin-detail-head h2{margin:0;color:#24445d;font-size:19px}.admin-detail-head h2 small{color:#8196a8;font-size:11px;font-weight:500}.admin-detail-head p{margin:3px 0 0;color:#72899b;font-size:12px}.admin-icon-button.archive:hover{color:#bd3d56;background:#fff0f2}.admin-icon-button.restore:hover{color:#257a51;background:#e8f7ec}.admin-tabs{display:flex;gap:20px;border-bottom:1px solid #e2e9ee}.admin-tabs button{border:0;border-bottom:2px solid transparent;background:transparent;padding:12px 2px 9px;color:#70879a;font:inherit;font-size:12px;cursor:pointer}.admin-tabs button.is-active{border-bottom-color:#15939c;color:#147c85;font-weight:800}.admin-form{padding-top:18px}.admin-avatar-editor{display:flex;align-items:center;gap:10px;margin-bottom:18px;color:#6c8598}.admin-avatar-editor small{font-size:11px}.admin-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 12px}.admin-form-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-form label{display:grid;gap:6px;min-width:0}.admin-form select{padding:0 5px}.admin-check{display:flex!important;align-items:center;gap:7px;padding-top:20px;font-size:12px;color:#49677d}.admin-check input{accent-color:#168f96}.admin-check.full{padding:10px 0;border-bottom:1px solid #e5ecef}.admin-form-actions{display:flex;gap:8px;margin-top:22px}.admin-form-message{min-height:18px;margin:12px 0 0;color:#28774d;font-size:12px}.admin-form-message.is-error{color:#c03350}.admin-password{display:grid!important;grid-template-columns:minmax(0,1fr) 32px;align-items:center;border-bottom:1px solid #cbdce4;background:#fbfdfe}.admin-password input{border:0!important;box-shadow:none!important}.admin-password button{width:30px;height:30px;border:0;background:transparent;color:#557189;cursor:pointer;padding:6px}.admin-password svg{width:16px}.admin-access-block{padding:0 0 18px}.admin-access-block h3{margin:0 0 9px;color:#3e5d74;font-size:13px}.admin-role-choices{display:flex;gap:7px;flex-wrap:wrap}.admin-role-choice{display:flex!important;align-items:center;gap:5px;padding:5px 7px;border:1px solid #d9e4ea;border-radius:5px;background:#fbfdfe;font-size:12px;color:#49677e}.admin-permission-group{margin:12px 0 0;padding:9px 0 0;border:0;border-top:1px solid #e4ebef;display:flex;gap:8px 14px;flex-wrap:wrap}.admin-permission-group legend{padding:0 0 8px;color:#56738a;font-size:12px;font-weight:700}.admin-permission-group label{display:flex;align-items:center;gap:4px;color:#5d7488;font-size:11px}.admin-security-note{display:flex;gap:8px;align-items:center;color:#557085;font-size:12px;margin-bottom:16px}.admin-security-note svg{color:#168e96}.admin-empty{padding:28px 10px;text-align:center;color:#7c92a2;font-size:12px}.admin-empty.large{padding:120px 0}.admin-modal-backdrop{position:fixed;inset:0;z-index:120;background:rgba(26,44,60,.42);display:grid;place-items:center;padding:18px}.admin-modal{width:min(840px,100%);max-height:calc(100vh - 36px);background:#fff;box-shadow:0 20px 50px rgba(18,40,58,.3);border-radius:8px;display:flex;flex-direction:column}.admin-modal>header{padding:14px 18px;border-bottom:1px solid #e1e9ee;display:flex;align-items:center;justify-content:space-between}.admin-modal h2{margin:0;font-size:17px;color:#294b64}.admin-modal>header button{border:0;background:transparent;color:#567286;font-size:23px;cursor:pointer}.admin-modal-body{overflow:auto;padding:0 18px 18px}.admin-role-layout{display:grid;grid-template-columns:185px minmax(0,1fr);gap:18px;min-height:420px;padding-top:17px}.admin-role-list{display:grid;align-content:start;gap:4px;border-left:1px solid #e0e8ed;padding-left:10px}.admin-role-list button{border:0;background:transparent;text-align:right;padding:8px;color:#48677e;font:inherit;font-size:12px;cursor:pointer;border-radius:5px}.admin-role-list button:hover,.admin-role-list button.is-selected{background:#e6f3f2;color:#147f88}.admin-role-list button[data-new-role]{display:flex;align-items:center;gap:5px;color:#b03450;margin-bottom:7px}.admin-role-list svg{width:14px;height:14px}.admin-modal .admin-form{padding-top:0}@media(max-width:900px){.user-admin-layout{grid-template-columns:1fr}.admin-user-list{border-left:0;border-bottom:1px solid #dbe6ec;padding:0 0 12px;max-height:300px}.admin-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.user-admin-head{align-items:flex-start;flex-direction:column}.admin-role-layout{grid-template-columns:1fr}.admin-role-list{border-left:0;border-bottom:1px solid #e0e8ed;padding:0 0 10px;grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.users-page{padding:8px}.admin-form-grid,.admin-form-grid.two{grid-template-columns:1fr}.user-admin-actions{width:100%}.admin-primary-button span,.admin-plain-button span,.admin-template-button span,.admin-export-button span{display:none}.admin-primary-button,.admin-plain-button,.admin-template-button,.admin-export-button{width:34px;padding:0}.admin-role-layout{min-height:auto}}



























/* Chat counters and contextual message controls. */
.sidebar-item{position:relative}
.sidebar-unread{margin-right:auto;min-width:18px;height:18px;padding:0 5px;display:grid;place-items:center;border-radius:9px;background:#cc3d5a;color:#fff;font-size:10px;line-height:1;font-weight:800;box-sizing:border-box}
.sidebar-unread[hidden]{display:none!important}



















/* Message metadata stays outside each neutral card; the accent identifies delivery state. */
















.notification-popover{box-sizing:border-box;max-height:calc(100vh - 24px)}

/* 1.2.0: Kanban column theme derives readable foreground from the selected background. */
.projects-page .kanban-column header,.kanban-column header{color:var(--column-fg,#fff)!important}
.projects-page .column-gear,.projects-page .column-color,.column-gear,.column-color{background:var(--column-soft,rgba(255,255,255,.18))!important;color:var(--column-fg,#fff)!important;border:1px solid var(--column-border,transparent)!important}
.projects-page .kanban-column header .project-avatar,.kanban-column header .project-avatar{border-color:var(--column-border,rgba(255,255,255,.35))!important;background:var(--column-soft,rgba(255,255,255,.18))!important;color:var(--column-fg,#fff)!important}


/* DAY ERP 1.3.12 — mobile projects workspace hardening */
@media(max-width:760px){
  .projects-page{padding:6px!important;overflow-x:hidden!important}
  .projects-page .projects-shell{width:100%;min-width:0}
  .projects-page .projects-head{min-height:0!important;padding:10px!important;border-radius:8px!important;gap:9px!important}
  .projects-page .projects-head h1{font-size:18px!important}
  .projects-page .projects-head p{font-size:11px!important;margin-top:2px!important}
  .projects-page .projects-actions{display:grid!important;grid-template-columns:1fr 1fr;gap:6px!important;width:100%}
  .projects-page .projects-actions>*{width:100%!important;min-width:0}
  .projects-page .projects-layout.list-open{padding:7px!important;border-radius:8px!important}
  .projects-page .projects-list{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:9px!important;width:100%!important;max-width:none!important;padding:0!important}
  .projects-page .project-row.project-card-oldstyle,.projects-page .project-card-add{width:100%!important;max-width:none!important;min-height:0!important}
  .projects-page .project-row.project-card-oldstyle{display:grid!important;grid-template-columns:58px minmax(0,1fr);grid-template-areas:'cover cover' 'stat stat' 'footer footer';padding:10px!important;gap:8px!important}
  .projects-page .project-card-cover{grid-area:cover;min-height:0!important;padding:0!important;display:grid!important;grid-template-columns:52px minmax(0,1fr);align-items:center!important;text-align:right!important;gap:10px!important}
  .projects-page .project-card-logo{width:50px!important;height:50px!important;font-size:20px!important}
  .projects-page .project-card-title{justify-items:start!important;text-align:right!important}
  .projects-page .project-card-title strong,.projects-page .project-card-title small{text-align:right!important;max-width:100%!important}
  .projects-page .project-card-stat{grid-area:stat;padding:0!important;gap:5px!important}
  .projects-page .project-card-footer{grid-area:footer;min-height:0!important;padding:8px 0 0!important;gap:6px!important}
  .projects-page .project-card-add{min-height:118px!important;padding:14px!important;gap:7px!important}
  .projects-page .project-card-add strong{font-size:16px!important}
  .projects-page .project-add-plus{font-size:34px!important}
  .projects-page .project-board-panel{padding:7px!important;border-radius:8px!important;overflow:hidden}
  .projects-page .project-board-header{gap:8px!important;padding:4px 2px 8px!important}
  .projects-page .project-board-tools{display:grid!important;grid-template-columns:1fr auto auto;width:100%;gap:5px!important}
  .projects-page .project-board-tools select{min-width:0;width:100%}
  .projects-page .project-mizito-tabs{overflow-x:auto!important;white-space:nowrap;scrollbar-width:thin}
  .projects-page .kanban-board{gap:8px!important;padding-bottom:8px!important;scroll-snap-type:x proximity}
  .projects-page .kanban-column{width:min(86vw,310px)!important;min-width:min(86vw,310px)!important;max-height:calc(100dvh - 250px)!important;scroll-snap-align:start}
  .project-modal-backdrop{padding:5px!important;place-items:end center!important}
  .project-modal{width:100%!important;max-width:none!important;max-height:calc(100dvh - 8px)!important;border-radius:12px 12px 0 0!important}
  .project-modal>header{height:50px!important;position:sticky;top:0;z-index:4;background:#fff}
  .project-form{padding:10px!important;gap:9px!important}
  .person-checks{grid-template-columns:1fr!important}
}
@media(max-width:430px){
  .projects-page .projects-actions{grid-template-columns:1fr!important}
  .projects-page .kanban-column{width:88vw!important;min-width:88vw!important}
}


/* 1.3.20 users action contrast: header's generic span rule must not wash out button labels */
.user-admin-head .admin-template-button span{
  display:inline;
  margin-top:0;
  color:#294b63;
  font-size:12px;
  font-weight:700;
}
.user-admin-head .admin-export-button span{
  display:inline;
  margin-top:0;
  color:#ffffff;
  font-size:12px;
  font-weight:800;
}
.user-admin-head .admin-template-button svg{color:#50677b}
.user-admin-head .admin-export-button svg{color:#ffffff}
.user-admin-head .admin-template-button:hover span{color:#203f55}
.user-admin-head .admin-export-button:hover span{color:#ffffff}
/* Operational project dialogs retain the board beneath the native modal layer. */
dialog.day-project-dialog .project-form fieldset { background: #f1f7f5 !important; border: 0 !important; border-radius: 5px !important; padding: 10px !important; }
@media(min-width:761px) {
  dialog.day-project-dialog .project-settings-form { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 12px !important; }
  dialog.day-project-dialog .project-settings-form > label, dialog.day-project-dialog .project-settings-form > .modal-inline-message, dialog.day-project-dialog .project-settings-form > button { grid-column: 1 / -1; }
  dialog.day-project-dialog .project-settings-form > button { justify-self: end; }
}
dialog.day-project-dialog .project-form .color-builder { display: flex !important; align-items: center !important; justify-content: flex-start !important; width: fit-content !important; gap: 12px !important; }
dialog.day-project-dialog .project-form .color-builder input { width: 42px !important; height: 32px !important; padding: 3px !important; border: 1px solid #cbdad4 !important; border-radius: 5px !important; background: #fff !important; }
dialog.day-project-dialog .project-modal:has(.task-report-panel) .task-report-panel { border: 0 !important; box-shadow: none !important; border-radius: 0 !important; padding: 0 !important; }
dialog.day-project-dialog .project-modal:has(.task-report-panel) .task-report-hero { padding: 10px 0 !important; border: 0 !important; border-bottom: 1px solid #e3e9e7 !important; border-radius: 0 !important; }
dialog.day-project-dialog .project-modal:has(.task-report-panel) .task-report-composer textarea { border: 0 !important; border-bottom: 1px solid #cbdad4 !important; }
dialog.day-project-dialog .project-modal:has(.task-report-panel) .task-report-section-title { font-weight: 700 !important; font-size: 14px !important; }
dialog.day-project-dialog .project-modal:has(.task-report-panel), dialog.day-project-dialog .project-modal:has(.task-report-panel) .task-report-panel { height: auto !important; min-height: 0 !important; display: block !important; }
dialog.day-project-dialog .project-modal:has(.task-report-panel) .task-report-panel::before { display: none !important; }
dialog.day-project-dialog .project-modal:has(.task-report-panel) .task-report-list { height: auto !important; min-height: 0 !important; max-height: none !important; overflow: visible !important; background: #fff !important; }
dialog.day-project-dialog .project-modal:has(.task-report-panel) .task-report-composer { display: grid !important; grid-template-columns: minmax(0,1fr) auto !important; align-items: end !important; gap: 8px !important; padding: 10px !important; border: 1px solid #dce4e0 !important; }
dialog.day-project-dialog .project-modal:has(.task-report-panel) .task-report-composer .mention-compose { grid-column: 1 / -1 !important; grid-row: 1 !important; width: 100% !important; }
dialog.day-project-dialog .project-modal:has(.task-report-panel) .task-report-composer .task-report-file-row { grid-column: 1 !important; grid-row: 2 !important; }
dialog.day-project-dialog .project-modal:has(.task-report-panel) .task-report-composer .task-report-submit { grid-column: 2 !important; grid-row: 2 !important; }
dialog.day-project-dialog .task-report-checklist[hidden] { display: none !important; }
dialog.day-project-dialog .task-primary-files[hidden] { display: none !important; }
dialog.day-project-dialog .project-modal > header [data-close] { display: grid !important; place-items: center; width: 32px !important; height: 32px !important; padding: 6px !important; }
dialog.day-project-dialog .task-main-row > label, dialog.day-project-dialog .task-meta-row > label { display: flex !important; flex-direction: column !important; align-items: stretch !important; padding: 0 !important; gap: 5px !important; }
dialog.day-project-dialog .task-main-row input, dialog.day-project-dialog .task-main-row textarea { width: 100% !important; }
dialog.day-project-dialog .task-form { display: block !important; }
dialog.day-project-dialog .task-form > div { width: 100% !important; min-width: 0 !important; max-width: 100% !important; box-sizing: border-box !important; margin-inline: 0 !important; }
dialog.day-project-dialog .task-meta-row > label { width: auto !important; min-width: 0 !important; max-width: 100% !important; }
dialog.day-project-dialog .day-date-field { width: 100% !important; max-width: 100% !important; min-width: 0 !important; }
dialog.day-project-dialog .day-date-control { width: 100% !important; max-width: 100% !important; min-width: 0 !important; grid-template-columns: minmax(0,1fr) 40px !important; }
dialog.day-project-dialog .task-work-row, dialog.day-project-dialog .task-meta-row { margin-block: 12px !important; }
dialog.day-project-dialog .task-report-checklist { padding: 10px 0 !important; margin: 10px 0 !important; background: #f1f8f4 !important; border: 0 !important; border-radius: 5px; }
dialog.day-project-dialog .task-report-check-item { display: flex !important; align-items: center; gap: 8px; margin: 4px 10px; font-size: 13px !important; }
dialog.day-project-dialog .task-report-check-item input { width: 18px !important; height: 18px !important; flex: 0 0 18px; accent-color: #237d68; }
dialog.day-project-dialog .task-report-check-item input:checked + span { text-decoration: line-through; color: #237d68; }
dialog.day-project-dialog .task-report-hero { display: flex !important; flex-wrap: wrap !important; align-items: center !important; gap: 10px !important; padding: 0 0 12px !important; border: 0 !important; border-bottom: 1px solid #e3e9e7 !important; background: #fff !important; }
dialog.day-project-dialog .task-report-heading { flex: 1 1 100% !important; min-width: 0; }
dialog.day-project-dialog .task-report-facts { flex: 1 1 auto !important; display: flex !important; flex-wrap: wrap; gap: 8px !important; }
dialog.day-project-dialog .task-report-actions { flex: 0 0 auto !important; display: flex !important; gap: 8px; }
dialog.day-project-dialog .task-report-heading h3 { font-size: 15px !important; line-height: 1.7 !important; margin: 4px 0 !important; }
dialog.day-project-dialog .task-report-state { font-size: 11px; color: #237d68; }
dialog.day-project-dialog .task-report-composer { margin-block: 10px !important; padding: 10px !important; border: 1px solid #dce4e0 !important; border-radius: 6px !important; }
dialog.day-project-dialog .task-report-composer textarea { min-height: 64px !important; height: 64px !important; }
dialog.day-project-dialog .task-report-section-title { margin-block: 10px !important; font-size: 14px !important; font-weight: 700 !important; }
#page-projects .project-board-toolbar { border-radius: 6px !important; }
#page-projects .kanban-column > header { min-height: 34px !important; padding: 4px 8px !important; border-radius: 5px !important; }
#page-projects .column-gear { width: 26px !important; height: 26px !important; min-height: 26px !important; padding: 3px !important; border-radius: 4px !important; }
#page-projects .column-gear svg { width: 18px; height: 18px; }
dialog.day-project-dialog .project-modal > header { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; padding: 0 0 12px !important; background: #fff !important; border-bottom: 2px solid #237d68 !important; }
dialog.day-project-dialog .project-modal > header h3 { font-size: 16px !important; font-weight: 700; }
dialog.day-project-dialog .project-form { padding: 12px 0 0 !important; background: #fff !important; }
dialog.day-project-dialog .project-form label { color: #254a40; font-size: 12px; font-weight: 600; }
dialog.day-project-dialog .project-form input:not([type=range]):not([type=color]), dialog.day-project-dialog .project-form textarea, dialog.day-project-dialog .project-form select { background: #fff !important; color: #1e3230 !important; border: 1px solid #cbdad4 !important; border-radius: 5px !important; }
dialog.day-project-dialog .project-form button:not(.color-choice):not(.primary-action) { color: #237d68 !important; border-color: #bed9ce !important; }
html.day-modal-locked, html.day-modal-locked body { overflow: hidden !important; overscroll-behavior: none; }
dialog.day-project-dialog.day-workspace-editorhost {
  position: fixed !important; inset: 0 !important; margin: auto !important;
  width: min(680px, calc(100vw - 32px)) !important;
  max-width: calc(100vw - 32px) !important; height: fit-content !important;
  max-height: calc(100dvh - 48px) !important; min-height: 0 !important;
  padding: 0 !important; border: 0 !important; border-radius: 8px !important;
  background: #fff !important; box-shadow: 0 12px 42px #0004;
  overflow: auto !important; overscroll-behavior: contain; letter-spacing: 0;
}
dialog.day-project-dialog::backdrop { background: #16252e66; }
dialog.day-project-dialog .project-modal.day-action-panel {
  width: 100% !important; max-width: 100% !important; min-width: 0 !important;
  min-height: 0 !important; max-height: none !important; margin: 0 !important;
  padding: 20px !important; border: 0 !important; box-sizing: border-box;
}
dialog.day-project-dialog .task-report-panel { min-height: 0 !important; padding: 0 !important; border: 0 !important; background: #fff !important; }
dialog.day-project-dialog .project-modal .task-form .task-meta-row { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 190px !important; gap: 12px !important; }
dialog.day-project-dialog .project-modal .task-form .task-main-row, dialog.day-project-dialog .project-modal .task-form .task-work-row { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 12px !important; }
dialog.day-project-dialog label, dialog.day-project-dialog fieldset, dialog.day-project-dialog .day-date-control { min-width: 0 !important; max-width: 100% !important; }
dialog.day-project-dialog input:not([type=checkbox]):not([type=range]), dialog.day-project-dialog textarea, dialog.day-project-dialog select { box-sizing: border-box !important; max-width: 100% !important; }
dialog.day-project-dialog .task-report-card { box-shadow: none !important; border: 0 !important; background: #f3f5f7 !important; border-radius: 6px !important; }
dialog.day-project-dialog .task-report-submit, dialog.day-project-dialog .primary-action { background: #237d68 !important; color: #fff !important; border-color: #237d68 !important; }
dialog.day-project-dialog .task-report-file, dialog.day-project-dialog .task-report-action { color: #237d68 !important; background: #edf7f4 !important; }
dialog.day-project-dialog .task-report-done-toggle, #page-projects .task-done {
  width: 20px !important; min-width: 20px !important; height: 20px !important; min-height: 20px !important;
  padding: 0 !important; border-radius: 4px !important; flex: 0 0 20px !important;
}
#page-projects .task-card { min-height: 0 !important; padding: 10px !important; margin-block: 0 8px !important; }
#page-projects .task-card-icons svg { width: 16px; height: 16px; color: #42746b; }
@media(max-width:760px) {
  dialog.day-project-dialog.day-workspace-editorhost { width: calc(100vw - 16px) !important; max-width: calc(100vw - 16px) !important; max-height: calc(100dvh - 16px) !important; }
  dialog.day-project-dialog .project-modal .task-form .task-meta-row, dialog.day-project-dialog .project-modal .task-form .task-main-row, dialog.day-project-dialog .project-modal .task-form .task-work-row { grid-template-columns: minmax(0,1fr) !important; }
}
