.bt, .bteam-body, .bteam-cols {display:grid;gap:1rem;min-width:0;grid-template-columns:minmax(0,1fr)}
.bt {container:bt / inline-size;font-variant-numeric:tabular-nums}
.bt :is(p,h3) {margin:0}
.bt :is(p,small,strong,.bteam-line,.bteam-check) {overflow-wrap:anywhere;min-width:0}
.bt small {display:block;font-size:.82rem;font-weight:450;line-height:1.5}
.bt :is(.bteam-bar,header,footer,.bteam-buttons,.bteam-report) {display:flex;align-items:center;flex-wrap:wrap;gap:.55rem}
.bt header {justify-content:space-between;margin-bottom:.8rem}
.bt button {min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:.45rem}
.bt .office-icon {width:1.08rem;height:1.08rem;flex:none}
.bt [data-new] {margin-inline-start:auto}
.bteam-date {display:flex;align-items:center;max-width:100%;min-width:0}
.bteam-date input {width:10rem;min-width:0;height:42px;border-radius:0}
.bteam-date button {flex:none;padding-inline:.75rem}
.bteam-date button:first-child {border-radius:9px 0 0 9px;border-right:0}
.bteam-date button:last-child {border-radius:0 9px 9px 0;border-left:0}
.bteam-row,.bteam-report {border-top:1px solid var(--line);padding:1rem 0}
.bteam-report {margin-top:.7rem}
.bteam-report>div {min-width:0;flex:1 1 16rem}
.bt :is(.bteam-row,.bteam-report):last-child {padding-bottom:0}
.bteam-row {display:grid;gap:.8rem;align-items:center;grid-template-columns:minmax(0,1.2fr) minmax(0,.9fr) max-content minmax(0,1.35fr)}
.bt .bteam-buttons {justify-content:flex-end;gap:.45rem}
.bteam-buttons button {font-size:.82rem;padding-inline:.75rem}
.bt [data-action="cancel"] {color:#93402b}
.bteam-badge {display:inline-block;justify-self:start;font-size:.77rem;line-height:1.35;font-weight:650;padding:.3rem .68rem;color:#554f43;border-radius:1rem;background:#f2f0e9}
.bteam-ok {color:#176145;background:#ddf4e9}
.bteam-warn {color:#844b0d;background:#fff0d7}
.bt .bteam-check {width:100%;display:grid;grid-template-columns:1.3rem minmax(0,1fr);align-items:start;gap:.78rem;text-align:left;line-height:1.45;font-weight:550;border-radius:0;border:0;border-top:1px solid var(--line);padding:.86rem .3rem}
.bt .bteam-check:disabled {opacity:1}
.bteam-check span:first-child {display:grid;place-items:center;border:1px solid #bcb4a2;border-radius:5px;height:1.3rem}
.bteam-check[aria-checked="true"] span:first-child {color:white;background:#176145;border-color:#176145}
.bteam-check small {margin-top:.22rem}
.bt dialog {width:min(32rem,94vw);max-height:90dvh;overflow:auto;color:var(--ink);padding:clamp(1rem,4vw,1.6rem);border:1px solid var(--line);border-radius:16px;box-shadow:0 26px 70px #231e1826}
.bt dialog::backdrop {background:#201c1670}
.bt dialog form {display:grid;grid-template-columns:minmax(0,1fr);gap:.92rem}
.bt dialog :is(label,input,textarea,select) {width:100%;min-width:0}
.bt dialog textarea {resize:vertical}
.bt footer {justify-content:flex-end;border-top:1px solid var(--line);padding-top:1rem}
.bt dialog details {padding-top:.8rem;margin:0}
.bt .bteam-line {white-space:pre-line;font-size:.88rem;padding-top:.65rem}
.bteam-note {white-space:pre-wrap;border-left:3px solid var(--gold);background:#faf8f1;padding:.85rem 1rem}
@container bt (min-width:44rem) {
  .bteam-cols {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@container bt (max-width:54rem) {
  .bteam-row {grid-template-columns:minmax(0,1fr) minmax(0,.8fr) max-content}
  .bt .bteam-buttons {grid-column:1/-1;justify-content:start}
}
@container bt (max-width:36rem) {
  .bteam-row {grid-template-columns:minmax(0,1fr) auto}
  .bteam-row>div:first-child {grid-column:1/-1}
  .bteam-report>div {flex-basis:100%}
  .bteam-report button {margin-left:auto}
  .bteam-date {flex:1 1 14rem}
  .bteam-date input {flex:1}
  .bt [data-new] {flex:1 1 12rem}
}
@container bt (max-width:23rem) {
  .bt [data-today] {flex:auto}
  .bt [data-new],.bteam-date {flex-basis:100%}
}
@container bt (max-width:19rem) {
  .bteam-row {grid-template-columns:minmax(0,1fr)}
}
