/* ===== MẠNH LIFE V48 - COMPACT CREATE DOCK =====
   Move the task create box out of the large top card and dock it beside the allocation header. */

.ml-task-panel .ml-task-row{
  display:block !important;
  grid-template-columns:none !important;
  gap:10px !important;
}

.ml-task-panel .ml-top-task-form.ml-v48-source-form{
  display:none !important;
}

.ml-task-panel .ml-current-task-wrap{
  width:100% !important;
  min-width:0 !important;
}

.ml-allocation-panel{
  position:relative !important;
  padding:14px 16px 12px !important;
}

.ml-allocation-head{
  display:grid !important;
  grid-template-columns:minmax(220px,1fr) minmax(300px,520px) !important;
  align-items:center !important;
  gap:12px !important;
  margin-bottom:10px !important;
}

.ml-allocation-head > div:first-child{
  min-width:0 !important;
}

.ml-allocation-head strong{
  display:block !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

.ml-allocation-head .ml-allocation-summary{
  display:inline-flex !important;
  max-width:100% !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

.ml-allocation-hint{
  display:none !important;
}

.ml-v48-create-slot{
  width:100% !important;
  min-width:0 !important;
  justify-self:end !important;
}

.ml-v48-create-slot .ml-compact-create-box,
.ml-v48-create-slot .ml-v28-create-box{
  position:relative !important;
  display:grid !important;
  grid-template-columns:minmax(180px,1fr) auto !important;
  align-items:center !important;
  gap:8px !important;
  width:100% !important;
  min-height:42px !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}

.ml-v48-create-slot .ml-compact-title-line{
  min-width:0 !important;
  width:100% !important;
}

.ml-v48-create-slot .ml-compact-title-input,
.ml-v48-create-slot textarea[data-compact-title]{
  width:100% !important;
  height:42px !important;
  min-height:42px !important;
  max-height:42px !important;
  line-height:20px !important;
  resize:none !important;
  overflow:hidden !important;
  border-radius:18px !important;
  padding:10px 14px !important;
  font-size:15px !important;
  font-weight:750 !important;
  letter-spacing:-.01em !important;
  background:#fff !important;
  border:1px solid rgba(148,163,184,.38) !important;
  box-shadow:0 8px 22px rgba(15,23,42,.05) !important;
}

.ml-v48-create-slot .ml-compact-create-row{
  display:flex !important;
  align-items:center !important;
  gap:7px !important;
  margin:0 !important;
}

.ml-v48-create-slot .ml-compact-action{
  width:42px !important;
  height:42px !important;
  min-width:42px !important;
  border-radius:18px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:0 !important;
  margin:0 !important;
  font-size:17px !important;
  font-weight:900 !important;
  border:0 !important;
  box-shadow:0 10px 24px rgba(15,23,42,.07) !important;
}

.ml-v48-create-slot .ml-compact-action.mic{
  background:#071122 !important;
  color:#fff !important;
}

.ml-v48-create-slot .ml-compact-action.add{
  width:52px !important;
  min-width:52px !important;
  background:#f97316 !important;
  color:#fff !important;
  font-size:28px !important;
  line-height:1 !important;
}

.ml-v48-create-slot .ml-compact-action.more{
  background:#f8fafc !important;
  color:#64748b !important;
}

.ml-v48-create-slot .ml-compact-audio-drawer,
.ml-v48-create-slot .ml-compact-detail-drawer{
  position:absolute !important;
  top:50px !important;
  right:0 !important;
  width:min(440px, 88vw) !important;
  z-index:90 !important;
  background:rgba(255,255,255,.98) !important;
  border:1px solid rgba(226,232,240,.95) !important;
  border-radius:18px !important;
  box-shadow:0 24px 70px rgba(15,23,42,.18) !important;
  padding:12px !important;
}

.ml-v48-create-slot .ml-compact-detail-drawer textarea{
  min-height:44px !important;
  max-height:90px !important;
  border-radius:14px !important;
  font-size:13px !important;
  padding:10px 12px !important;
}

.ml-v48-create-slot .ml-compact-detail-grid{
  display:grid !important;
  grid-template-columns:1fr 1fr 1fr !important;
  gap:8px !important;
}

.ml-v48-create-slot .ml-compact-detail-grid select{
  height:36px !important;
  border-radius:12px !important;
  font-size:12px !important;
  font-weight:750 !important;
}

.ml-time-budget-bar{
  margin-top:0 !important;
}

/* Reduce blank vertical space around task workspace */
.ml-hero-card.ml-task-panel{
  padding-bottom:16px !important;
}

.ml-current-task-list{
  margin-top:10px !important;
}

@media (max-width: 980px){
  .ml-allocation-head{
    grid-template-columns:1fr !important;
  }
  .ml-v48-create-slot{
    justify-self:stretch !important;
  }
  .ml-v48-create-slot .ml-compact-create-box,
  .ml-v48-create-slot .ml-v28-create-box{
    grid-template-columns:1fr auto !important;
  }
}

@media (max-width: 560px){
  .ml-v48-create-slot .ml-compact-action{
    width:38px !important;
    height:38px !important;
    min-width:38px !important;
    border-radius:15px !important;
  }
  .ml-v48-create-slot .ml-compact-action.add{
    width:46px !important;
    min-width:46px !important;
  }
  .ml-v48-create-slot .ml-compact-title-input,
  .ml-v48-create-slot textarea[data-compact-title]{
    height:38px !important;
    min-height:38px !important;
    max-height:38px !important;
    font-size:14px !important;
  }
}
