/* v18: steady lists, calm forms, and visible feedback. */
.ds-containers-list .ds-content-region>.content{overflow:hidden;padding-bottom:20px;display:flex;flex-direction:column}
.containers-page{display:flex;flex-direction:column;flex:1;min-height:0;gap:0}
.containers-title{flex:none}
.containers-list-card{display:flex;flex:1;min-height:0;flex-direction:column}
.containers-toolbar,.container-status-tabs{flex:none}
.containers-list-card>.table-wrap{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.containers-table thead{position:sticky;top:0;z-index:2;background:#f8f9fc}
.containers-table{min-width:1120px;table-layout:auto}
.container-row-actions{width:44px;padding-inline:6px!important}
.delete-container-button{width:30px;height:32px;padding:6px;color:#85879b;border-color:transparent;background:transparent}
.delete-container-button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6}
.delete-container-button:hover{color:#ba3030;background:#fff2f2;border-color:#f1cccc}
.template-grid>.template-card.manual{grid-column:2;background:#f5f2ff;border-style:dashed}
.deletion-dialog{width:min(640px,calc(100vw - 32px))}
.deletion-dialog h3{margin:20px 0 10px}
.deletion-dialog p{line-height:1.65}
.deletion-impact{margin:12px 0}
.deletion-impact>div{display:flex;justify-content:space-between;gap:18px;border-bottom:1px solid var(--line,#e5e6ef);padding:12px 0}
.deletion-impact dd{margin:0;text-align:right;font-weight:600}
.deletion-retained{background:#f7f8fc;padding:14px 16px;border:1px solid #e4e6f0;border-radius:10px;margin:18px 0}
.deletion-retained h3{margin:0}.deletion-retained p{margin:8px 0}.deletion-retained ul{padding-left:20px;line-height:1.7}
.optional-hint{font-size:10px;font-weight:400;color:#787d91;white-space:nowrap;margin-left:5px}
.notice,.notice.warning,.notice.danger-note,.ui-form-error{position:relative;margin-block:14px;padding:14px 16px 14px 44px;border-radius:10px;line-height:1.65}
.notice:before{content:'!';position:absolute;left:16px;top:15px;border:1.5px solid currentColor;border-radius:50%;width:16px;height:16px;display:grid;place-items:center;font-size:11px;font-weight:700;line-height:1}
.notice:not(.warning):not(.danger-note):before{content:'i'}
.modal-body>.notice:first-child{margin-top:0}
.ui-form-error{display:flex;gap:12px;padding:14px 16px;background:#fff5f4;border:1px solid #efc8c4;color:#96382f;margin-bottom:20px}
.ui-form-error p{margin:3px 0 0}.ui-form-error b{font-size:13px}
.message-icon{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.toast-stack{position:fixed;right:24px;bottom:24px;width:min(430px,calc(100vw - 32px));z-index:20000;display:flex;flex-direction:column;gap:10px;pointer-events:none}
.toast-stack .toast{display:flex;align-items:flex-start;gap:12px;pointer-events:none;margin:0;padding:16px;background:white;color:#242936;border:1px solid #dce4df;border-radius:12px;box-shadow:0 8px 30px #25233e1c;min-width:0;line-height:1.5}
.toast-stack .message-icon{color:#258264;margin-top:1px}.toast-stack .warn .message-icon,.toast-stack .bad .message-icon,.toast-stack .error .message-icon{color:#b86613}
.toast-copy{flex:1;min-width:0;overflow-wrap:anywhere}.toast-copy b{font-size:13px}.toast-copy p{margin:4px 0 0;font-size:12px;color:#555e71}
.toast-dismiss{pointer-events:auto;border:0;background:transparent;border-radius:6px;min-width:24px;height:24px;font-size:20px;line-height:1;color:#6b7284;padding:0}.toast-dismiss:hover{background:#f0f1f7}
.modal-head,.modal-foot{flex:none}.modal-foot{gap:10px}.modal-body{min-height:0;overscroll-behavior:contain}
.ds-modal-slot .modal{max-height:calc(100dvh - 40px)}
.fx-view .table-wrap,.fx-view table,.fx-view tbody{height:auto!important;flex:none!important}
.summary-financial-grid{align-items:start}
@media(max-width:760px){.template-grid>.template-card.manual{grid-column:1}.toast-stack{right:16px;bottom:16px}.deletion-impact>div{flex-direction:column;gap:5px}.deletion-impact dd{text-align:left}.containers-title p{display:none}.ds-modal-slot .modal{max-height:calc(100dvh - 20px)}}

.cu-finance-grid{align-items:start}.cu-finance-grid .fx-card,.cu-finance-grid .fx-rate-table{height:auto;flex:none}.cu-finance-grid .fx-card>.table-wrap{display:block;flex:none}
