/* PABX PRIME - TRONCOS V3 20260817 */
.trunk-editor-modal{
  width:min(1600px,calc(100vw - 28px))!important;
  max-width:none!important;
}

.trunk-editor-modal .modal-body{
  width:100%;
  max-width:none!important;
  padding-left:16px!important;
  padding-right:16px!important;
}

.trunk-editor-form{
  width:100%;
  max-width:none!important;
}

.trunk-v2-card{
  width:100%;
}

.trunk-v2-grid{
  display:grid!important;
  gap:14px!important;
  align-items:start;
}

.trunk-v2-usage-grid{
  grid-template-columns:minmax(260px,360px) minmax(0,1fr)!important;
  align-items:end!important;
}

.trunk-v2-sip-grid{
  grid-template-columns:minmax(180px,1.05fr) minmax(180px,1.05fr) minmax(280px,1.75fr) minmax(160px,.75fr)!important;
}

.trunk-v2-identity-grid{
  grid-template-columns:minmax(220px,1fr) minmax(180px,.65fr) minmax(320px,1.7fr)!important;
}

.trunk-v2-description textarea{
  min-height:42px!important;
  height:42px!important;
  resize:vertical;
}

.trunk-v2-usage-summary{
  min-height:42px;
  display:flex;
  align-items:center;
  padding:10px 12px;
  border:1px solid #cfe8f4;
  border-radius:9px;
  background:#f3faff;
  color:#31576c;
  font-size:12px;
  line-height:1.45;
}

.trunk-v2-usage-summary strong{
  color:#0f729e;
  margin-right:4px;
}

.trunk-v2-caller-id{
  grid-column:auto!important;
}

.trunk-v2-action-note{
  margin-right:auto;
  max-width:68%;
  color:#64748b;
  font-size:12px;
  line-height:1.4;
}

.trunk-v2-action-note strong{
  color:#334155;
}

.trunk-editor-form .extension-editor-actions{
  align-items:center;
  gap:10px;
}

.trunk-v2-confirm-backdrop{
  position:fixed;
  inset:0;
  z-index:200000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(15,23,42,.36);
}

.trunk-v2-confirm{
  width:min(520px,calc(100vw - 28px));
  overflow:hidden;
  border:1px solid #dce4ee;
  border-radius:14px;
  background:#fff;
  box-shadow:0 24px 60px rgba(15,23,42,.22);
}

.trunk-v2-confirm-head{
  padding:16px 18px;
  border-bottom:1px solid #dce4ee;
  color:#172033;
  font-size:15px;
  font-weight:800;
}

.trunk-v2-confirm-body{
  padding:16px 18px;
  color:#475569;
  font-size:13px;
  line-height:1.55;
}

.trunk-v2-confirm-body p{
  margin:0 0 10px;
}

.trunk-v2-confirm-list{
  padding:11px 12px;
  border:1px solid #dce4ee;
  border-radius:9px;
  background:#f8fafc;
}

.trunk-v2-confirm-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  padding:13px 18px;
  border-top:1px solid #dce4ee;
  background:#fbfdff;
}

@media(max-width:1100px){
  .trunk-v2-sip-grid,
  .trunk-v2-identity-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .trunk-v2-description{
    grid-column:1/-1!important;
  }
}

@media(max-width:760px){
  .trunk-editor-modal{
    width:calc(100vw - 12px)!important;
  }
  .trunk-v2-usage-grid,
  .trunk-v2-sip-grid,
  .trunk-v2-identity-grid{
    grid-template-columns:1fr!important;
  }
  .trunk-v2-description{
    grid-column:auto!important;
  }
  .trunk-v2-action-note{
    width:100%;
    max-width:none;
    margin:0 0 4px;
  }
  .trunk-editor-form .extension-editor-actions{
    flex-wrap:wrap;
  }
}


/* TRONCOS V3 - listagem sem ações e exclusão interna */
.trunk-v3-clickable-table tbody tr[data-trunk-v3-open="1"]{
  cursor:pointer;
}

.trunk-v3-clickable-table tbody tr[data-trunk-v3-open="1"]:focus{
  outline:2px solid #7db7f4;
  outline-offset:-2px;
}

.trunk-v3-delete-accordion{
  border-color:#efcbd0!important;
}

.trunk-v3-delete-accordion > summary strong{
  color:#9f2938;
}

.trunk-v3-delete-warning{
  padding:12px 14px;
  border:1px solid #f0cbd0;
  border-radius:9px;
  background:#fff5f6;
  color:#7f3440;
  font-size:12px;
  line-height:1.5;
}

.trunk-v3-delete-actions{
  display:flex;
  justify-content:flex-end;
  padding-top:14px;
}

.trunk-v3-delete-backdrop{
  position:fixed;
  inset:0;
  z-index:210000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(15,23,42,.42);
}

.trunk-v3-delete-confirm{
  width:min(540px,calc(100vw - 28px));
  overflow:hidden;
  border:1px solid #e1e7ef;
  border-radius:14px;
  background:#fff;
  box-shadow:0 24px 60px rgba(15,23,42,.24);
}

.trunk-v3-delete-confirm-head{
  padding:16px 18px;
  border-bottom:1px solid #e1e7ef;
  color:#8f2533;
  font-size:15px;
  font-weight:800;
}

.trunk-v3-delete-confirm-body{
  padding:17px 18px;
  color:#475569;
  font-size:13px;
  line-height:1.55;
}

.trunk-v3-delete-confirm-body p{
  margin:0 0 8px;
}

.trunk-v3-delete-name{
  margin-top:12px;
  padding:10px 12px;
  border:1px solid #dce4ee;
  border-radius:9px;
  background:#f8fafc;
  color:#25364f;
}

.trunk-v3-delete-note{
  margin-top:10px;
  color:#64748b;
  font-size:12px;
}

.trunk-v3-delete-confirm-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  padding:13px 18px;
  border-top:1px solid #e1e7ef;
  background:#fbfdff;
}
