body.case-updates-mode #content{padding-bottom:36px}.cu-shell,.cu-history{display:grid;gap:18px;color:#0d1d3b}.cu-target-card,.cu-case-card,.cu-history>section,.cu-history-stats{background:#fff;border:1px solid #d5deeb;border-radius:10px;box-shadow:0 2px 7px #0c24400b}.cu-target-card{padding:22px 24px}.cu-card-heading,.cu-step-title{display:flex;align-items:center;justify-content:space-between;gap:20px}.cu-card-heading h2,.cu-step-title h2{font-family:Georgia,serif;font-size:25px;margin:0 0 5px}.cu-card-heading p,.cu-step-title p{color:#66748c;margin:0}.cu-mode-tabs{display:flex;border:1px solid #b9c7dc;border-radius:7px;overflow:hidden}.cu-mode-tabs button{border:0;border-radius:0;padding:12px 21px;background:#fff;color:#122544;font-weight:700}.cu-mode-tabs button+button{border-left:1px solid #b9c7dc}.cu-mode-tabs button.active{background:#10284f;color:#fff}.cu-statuses{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px;padding-top:18px;border-top:1px solid #e2e7ef}.cu-statuses label{display:flex;align-items:center;gap:8px;border:1px solid #d3dce9;border-radius:22px;padding:8px 13px;cursor:pointer;background:#fbfcfe}.cu-statuses input{accent-color:#c9962e}.cu-statuses b{background:#eef2f7;border-radius:12px;padding:1px 7px}.cu-status-dot{width:8px;height:8px;border-radius:50%;background:#62748f}.cu-status-dot.s-open,.cu-status-dot.s-active{background:#3ca15a}.cu-status-dot.s-pending{background:#d19629}.cu-status-dot.s-closed{background:#8793a7}.cu-status-dot.s-on-hold{background:#7d58c7}.cu-select-help{margin:17px 0 0;color:#66748c}.cu-table-tools{display:flex;align-items:center;justify-content:space-between;padding:16px}.cu-search{display:flex;align-items:center;gap:8px;border:1px solid #cbd6e5;border-radius:6px;padding:0 13px;width:min(610px,70%);color:#58708e}.cu-search input{border:0;outline:0;width:100%;padding:12px 0;font:inherit}.cu-table-tools>span{color:#69778e;font-size:14px}.cu-table-scroll{overflow:auto;max-height:510px;border-top:1px solid #e0e6ef;border-bottom:1px solid #e0e6ef}.cu-case-card table,.cu-history table,.cu-recipient-list table,.cu-history-detail table{width:100%;border-collapse:collapse;table-layout:fixed}.cu-case-card th,.cu-history th,.cu-recipient-list th,.cu-history-detail th{text-align:left;padding:13px 14px;background:#10284f;color:#fff;font-size:12px;text-transform:uppercase;letter-spacing:.02em}.cu-case-card td,.cu-history td,.cu-recipient-list td,.cu-history-detail td{padding:15px 14px;border-bottom:1px solid #e1e6ee;vertical-align:middle}.cu-case-card tr.included td{background:#fbfdff}.cu-case-card td b,.cu-history td b,.cu-recipient-list td b{display:block}.cu-case-card td small,.cu-history td small,.cu-recipient-list td small{display:block;color:#6b7890;margin-top:4px}.cu-case-card td.missing,.cu-recipient-list td.missing{color:#bd342c;font-weight:700}.cu-case-card th:nth-child(1){width:20%}.cu-case-card th:nth-child(2){width:15%}.cu-case-card th:nth-child(3){width:10%}.cu-case-card th:nth-child(4){width:16%}.cu-case-card th:nth-child(5){width:13%}.cu-case-card th:nth-child(6){width:19%}.cu-case-card th:nth-child(7){width:7%;text-align:center}.cu-case-card td:last-child{text-align:center}.cu-check input{display:none}.cu-check span{display:inline-grid;place-items:center;width:24px;height:24px;border:1px solid #aebdd0;border-radius:5px;color:transparent;cursor:pointer}.cu-check input:checked+span{background:#0e2a55;border-color:#0e2a55;color:#fff}.cu-case-card footer{display:flex;align-items:center;gap:34px;padding:17px 20px}.cu-case-card footer>div{display:flex;gap:8px;align-items:baseline}.cu-case-card footer strong{font:700 24px Georgia;color:#112341}.cu-case-card footer span{font-size:13px;color:#6e7b91}.cu-case-card footer .warn strong{color:#b4472d}.cu-case-card footer>button{margin-left:auto}.cu-primary{background:#c8952e!important;color:#fff!important;border-color:#c8952e!important;font-weight:800!important}.cu-primary:hover{background:#b58222!important}.cu-note{display:flex;gap:14px;align-items:center;background:#faf7ef;border:1px solid #e3cd99;border-radius:8px;padding:13px 17px}.cu-note b{white-space:nowrap}.cu-note span{color:#5f6c80}.cu-loading,.cu-error{min-height:420px;display:grid;place-content:center;text-align:center;color:#63718a}.cu-error h2{color:#132442}.cu-empty{text-align:center!important;color:#738197!important;padding:35px!important}.cu-pill{display:inline-flex;border-radius:4px;padding:4px 9px;background:#edf1f6;color:#4e607a;font-weight:700;font-size:12px}.cu-pill.s-open,.cu-pill.s-active,.cu-pill.s-sent{background:#e4f4e8;color:#287840}.cu-pill.s-pending,.cu-pill.s-scheduled,.cu-pill.s-draft{background:#fff1d9;color:#946417}.cu-pill.s-failed,.cu-pill.s-partially-sent{background:#fee8e6;color:#b7372e}

.modal.cu-modal{padding:18px;align-items:center;justify-content:center}.modal.cu-modal>.dialog.cu-dialog{width:min(1220px,calc(100vw - 36px));max-width:none;height:min(900px,calc(100vh - 36px));max-height:none;padding:0;overflow:hidden;border-radius:12px;display:block;background:#f6f8fb}.modal.cu-modal>.dialog.cu-dialog>.x{display:none}.cu-composer{height:100%;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;color:#10213e}.cu-compose-head{display:flex;align-items:center;justify-content:space-between;background:#fff;padding:18px 24px;border-bottom:1px solid #d9e0ea}.cu-compose-head>div{display:flex;align-items:center;gap:13px}.cu-compose-head h1{font:700 27px Georgia;margin:0}.cu-compose-head p{color:#718097;margin:3px 0 0}.cu-compose-head>button{border:0;background:transparent;font-size:29px;padding:3px 8px}.cu-mail-mark{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:#f6ead0;color:#a87314;font-size:20px}.cu-steps{display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border-bottom:1px solid #d9e0ea;padding:0 28px}.cu-steps button{border:0;background:transparent;padding:13px;display:flex;justify-content:center;align-items:center;gap:9px;color:#718097;border-bottom:3px solid transparent}.cu-steps button i{font-style:normal;border:1px solid #a9b7c9;border-radius:50%;width:27px;height:27px;display:grid;place-items:center;font-weight:700}.cu-steps button.active{color:#10284f;border-color:#c9952d;font-weight:800}.cu-steps button.active i{background:#10284f;color:#fff;border-color:#10284f}.cu-steps button.done i{background:#e5f4e8;color:#287a42;border-color:#7cbc8c}.cu-step-body{overflow:auto;padding:22px 28px}.cu-step-title{margin-bottom:18px}.cu-step-title>button,.cu-step-title>span{background:#fff;border:1px solid #bfcbda;border-radius:5px;padding:9px 13px;color:#183257;font-weight:700}.cu-recipient-options{display:grid;grid-template-columns:1fr 1fr;gap:13px}.cu-recipient-options>label{display:flex;gap:12px;padding:16px;border:1px solid #cbd6e3;border-radius:8px;background:#fff}.cu-recipient-options input{accent-color:#c58e26}.cu-recipient-options span b,.cu-recipient-options span small{display:block}.cu-recipient-options small{color:#738096;margin-top:4px}.cu-recipient-summary{display:flex;gap:28px;background:#10284f;color:#fff;padding:14px 18px;margin-top:16px;border-radius:7px}.cu-recipient-summary span{display:flex;align-items:baseline;gap:7px}.cu-recipient-summary b{font:700 23px Georgia}.cu-recipient-summary .warn{color:#ffcf6c}.cu-recipient-list{background:#fff;border:1px solid #d5deea;border-radius:8px;margin-top:14px;overflow:auto;max-height:330px}.cu-recipient-list th{background:#eef2f7;color:#35445c}.cu-ready,.cu-excluded{display:inline-block;border-radius:4px;padding:4px 8px;background:#e6f5e9;color:#287942;font-size:12px;font-weight:700}.cu-excluded{background:#fde8e5;color:#af342e}.cu-warning{display:flex;align-items:center;gap:12px;background:#fff8e7;border:1px solid #edcd7a;border-radius:7px;padding:13px 15px;margin-top:14px;color:#704f0e}.cu-warning b{white-space:nowrap}.cu-warning span{flex:1}.cu-warning button{background:#fff}.cu-message-grid{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:16px}.cu-message-grid>main,.cu-message-grid>aside,.cu-followup,.cu-review-grid>main,.cu-review-grid>aside,.cu-final-summary{background:#fff;border:1px solid #d3dde9;border-radius:8px;padding:18px}.cu-message-grid label{display:block;font-weight:700;margin-bottom:14px}.cu-message-grid input,.cu-message-grid select,.cu-schedule input,.cu-template-manager input,.cu-template-manager textarea{display:block;width:100%;box-sizing:border-box;border:1px solid #bdcada;border-radius:5px;padding:11px 12px;margin-top:6px;font:inherit}.cu-editor-toolbar{display:flex;gap:3px;border:1px solid #bdcada;border-bottom:0;border-radius:6px 6px 0 0;padding:5px;background:#f4f6f9;margin-top:6px}.cu-editor-toolbar button{min-width:34px;border:0;background:transparent}.cu-editor{min-height:230px;border:1px solid #bdcada;border-radius:0 0 6px 6px;padding:17px;font-weight:400;line-height:1.55;outline:0;overflow:auto}.cu-message-grid>aside h3{font:700 21px Georgia;margin:0 0 4px}.cu-message-grid>aside p{color:#718097;margin:0 0 11px}.cu-message-grid>aside button{display:flex;justify-content:space-between;align-items:center;width:100%;border:0;border-top:1px solid #e2e7ef;background:#fff;padding:10px 2px;text-align:left}.cu-message-grid>aside button span{font-weight:700}.cu-message-grid>aside code{font-size:11px;color:#9a6716}.cu-attachments{border-top:1px solid #e0e6ee;padding-top:13px}.cu-attachments>div{display:inline-flex;flex-direction:column}.cu-attachments>div span{font-size:12px;color:#77849a}.cu-file-btn{float:right!important;border:1px solid #b8c5d5;border-radius:5px;padding:8px 11px;margin:0!important}.cu-file-btn input{display:none}.cu-attachments ul{clear:both;list-style:none;padding:10px 0 0;margin:0}.cu-attachments li{display:flex;justify-content:space-between;padding:8px;background:#f4f7fa;margin-top:5px}.cu-attachments li button{border:0;background:transparent}.cu-followup{margin-top:15px}.cu-followup-head{display:flex;align-items:center;gap:13px}.cu-followup-head b,.cu-followup-head small{display:block}.cu-followup-head small{color:#738097}.cu-switch input{display:none}.cu-switch span{display:block;width:43px;height:24px;border-radius:15px;background:#aeb8c7;position:relative}.cu-switch span:after{content:'';position:absolute;width:18px;height:18px;border-radius:50%;background:#fff;left:3px;top:3px;transition:.2s}.cu-switch input:checked+span{background:#318e4f}.cu-switch input:checked+span:after{left:22px}.cu-followup-fields{display:grid;grid-template-columns:210px 1fr 270px;align-items:end;gap:15px;margin:16px 0 0 56px}.cu-followup-fields label{font-weight:700}.cu-followup-fields input,.cu-followup-fields select{padding:9px;border:1px solid #becbda;border-radius:5px;margin:5px}.cu-review-grid{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:16px}.cu-preview-pager{display:flex;align-items:center;justify-content:space-between;background:#edf2f7;padding:9px;border-radius:5px}.cu-preview-pager button{width:35px;height:31px}.cu-email-preview{margin-top:12px;border:1px solid #cbd5e2;border-radius:7px;overflow:hidden}.cu-email-preview>div{display:grid;grid-template-columns:72px 1fr;gap:8px;padding:10px 14px;border-bottom:1px solid #e1e6ee}.cu-email-preview small{color:#6c7990}.cu-email-preview section{padding:22px;min-height:260px;line-height:1.6}.cu-email-preview footer{padding:11px;background:#f4f7fa}.cu-email-preview footer span{display:inline-block;margin-right:8px}.cu-review-grid>aside h3,.cu-final-summary h3{font:700 21px Georgia;margin-top:0}.cu-review-grid dl{display:grid;grid-template-columns:1fr auto;gap:11px;margin-bottom:18px}.cu-review-grid dt,.cu-review-grid dd{border-bottom:1px solid #e1e6ee;padding-bottom:8px;margin:0}.cu-review-grid dd{font-weight:800}.cu-review-grid aside label{display:block;margin-top:13px}.cu-separate-note{color:#2d7542!important;background:#e8f5eb!important;border-color:#b8dfc1!important}.cu-delivery-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.cu-delivery-grid>label{display:flex;align-items:center;gap:13px;background:#fff;border:2px solid #d2dce8;border-radius:9px;padding:21px}.cu-delivery-grid>label.active{border-color:#c8952d;background:#fffaf0}.cu-delivery-grid i{font-style:normal;font-size:25px}.cu-delivery-grid b,.cu-delivery-grid small{display:block}.cu-delivery-grid small{color:#738097;margin-top:3px}.cu-schedule{display:block;background:#fff;border:1px solid #d4dce7;border-radius:8px;padding:16px;margin-top:14px;font-weight:700}.cu-schedule input{max-width:340px}.cu-final-summary{margin-top:15px}.cu-final-summary>div{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.cu-final-summary span{background:#f1f5f9;padding:14px;text-align:center;border-radius:6px}.cu-final-summary span b{display:block;font:700 27px Georgia}.cu-compose-footer{display:flex;align-items:center;gap:9px;background:#fff;border-top:1px solid #d4dce7;padding:13px 21px}.cu-compose-footer>span{flex:1}.cu-compose-footer button{padding:10px 16px}.cu-compose-footer button:disabled{opacity:.45;cursor:not-allowed}

.cu-history-stats{display:grid;grid-template-columns:repeat(4,1fr);padding:18px}.cu-history-stats>div{display:flex;align-items:baseline;gap:10px;padding:5px 20px;border-right:1px solid #e0e6ef}.cu-history-stats>div:last-child{border:0}.cu-history-stats b{font:700 29px Georgia}.cu-history-stats span{color:#6f7c91}.cu-history>section{overflow:auto}.cu-history td:last-child{white-space:nowrap}.cu-history td:last-child button{margin-right:5px}.cu-history-detail{max-height:75vh;overflow:auto}.cu-history-detail>h1{margin-bottom:4px}.cu-history-summary{display:flex;gap:20px;padding:14px;background:#eff3f7;border-radius:7px;margin:17px 0}.cu-history-summary span{display:flex;gap:5px}.cu-history-detail table{font-size:13px}.cu-history-detail h2{font:700 20px Georgia;margin-top:20px}.cu-activity>div{display:grid;grid-template-columns:16px 1fr auto;gap:9px;padding:9px 0;border-bottom:1px solid #e1e6ee}.cu-activity i{width:9px;height:9px;border-radius:50%;background:#c9952d;margin-top:6px}.cu-activity span b{display:block}.cu-template-manager{min-width:min(650px,80vw)}.cu-template-manager>p{color:#6e7c91}.cu-template-list{display:grid;gap:7px;margin:15px 0}.cu-template-list button{text-align:left;padding:12px}.cu-template-list b,.cu-template-list small{display:block}.cu-template-list small{color:#6e7b90;margin-top:3px}.cu-template-manager form label{display:block;font-weight:700;margin:13px 0}.cu-template-manager .danger{color:#ae302d;border-color:#d9a6a3}

@media(max-width:1000px){.cu-message-grid,.cu-review-grid{grid-template-columns:1fr}.cu-message-grid>aside{max-height:220px;overflow:auto}.cu-followup-fields{grid-template-columns:1fr 1fr;margin-left:0}.cu-followup-fields label:last-child{grid-column:1/-1}.cu-case-card footer{gap:14px;flex-wrap:wrap}.cu-case-card footer>button{margin-left:0}.cu-table-scroll{min-width:0}.cu-case-card table{min-width:960px}.cu-history table{min-width:920px}}@media(max-width:700px){.cu-card-heading,.cu-step-title{align-items:flex-start;flex-direction:column}.cu-mode-tabs{width:100%}.cu-mode-tabs button{flex:1;padding:10px}.cu-recipient-options,.cu-delivery-grid{grid-template-columns:1fr}.cu-statuses{gap:6px}.cu-final-summary>div,.cu-history-stats{grid-template-columns:1fr 1fr}.cu-case-card footer>div{width:45%}.cu-followup-fields{grid-template-columns:1fr}.cu-followup-fields label:last-child{grid-column:auto}.modal.cu-modal{padding:0}.modal.cu-modal>.dialog.cu-dialog{width:100vw;height:100vh;border-radius:0}.cu-steps{padding:0 5px}.cu-steps button span{display:none}.cu-step-body{padding:16px}.cu-compose-head p{display:none}}
@media print{body.case-updates-mode nav,body.case-updates-mode header,body.case-updates-mode aside{display:none!important}}
.cu-protected{display:flex;gap:13px;align-items:flex-start;border:1px solid #9dcea9;background:#eef9f1;color:#276f39;border-radius:8px;padding:14px 16px;margin-top:16px}.cu-protected b{white-space:nowrap}.cu-protected span{color:#496b52;line-height:1.45}.cu-pill.s-queued,.cu-pill.s-sending{background:#e7f0ff;color:#2458aa}.cu-pill.s-paused,.cu-pill.s-rate-limited,.cu-pill.s-retrying{background:#fff1d9;color:#946417}@media(max-width:700px){.cu-protected{display:block}.cu-protected b{display:block;margin-bottom:5px}}

/* The delivery note is page content, not the application's fixed navigation sidebar. */
.cu-shell{grid-template-columns:minmax(0,1fr)}
body.case-updates-mode #content .cu-shell > .cu-note{
  position:static!important;
  inset:auto!important;
  left:auto!important;
  right:auto!important;
  top:auto!important;
  bottom:auto!important;
  width:auto!important;
  max-width:none!important;
  height:auto!important;
  min-height:0!important;
  margin:0!important;
  padding:13px 17px!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:14px!important;
  overflow:visible!important;
  color:#0d1d3b!important;
  background:#faf7ef!important;
  background-image:none!important;
  border:1px solid #e3cd99!important;
  border-radius:8px!important;
  box-shadow:none!important;
  z-index:auto!important;
  grid-column:1/-1;
}
body.case-updates-mode #content .cu-shell > .cu-note b{color:#0d1d3b!important;white-space:nowrap}
body.case-updates-mode #content .cu-shell > .cu-note span{color:#5f6c80!important;min-width:0;overflow-wrap:anywhere}
@media(max-width:700px){
  body.case-updates-mode #content .cu-shell > .cu-note{align-items:flex-start!important;flex-direction:column!important;gap:5px!important}
  body.case-updates-mode #content .cu-shell > .cu-note b{white-space:normal}
}

/* The full case-update workflow is a normal page, never a window over a window. */
body.case-update-compose-page-mode main{background:#f4f7fb}
body.case-update-compose-page-mode #content{padding-bottom:42px;overflow:visible}
.cu-composer-page{width:100%;max-width:1480px;margin:0 auto;background:#fff;border:1px solid #d3dce8;border-radius:10px;box-shadow:0 3px 14px #10284f12;overflow:visible}
.cu-composer-page .cu-composer{height:auto;min-height:calc(100vh - 185px);grid-template-rows:auto auto auto auto}
.cu-composer-page .cu-step-body{overflow:visible;min-height:430px;padding:26px 30px}
.cu-composer-page .cu-compose-head{border-radius:10px 10px 0 0}
.cu-composer-page .cu-compose-head>button{width:42px;height:42px;border:1px solid #cbd5e2;border-radius:6px;background:#fff}
.cu-composer-page .cu-compose-footer{position:sticky;bottom:0;z-index:5;border-radius:0 0 10px 10px;box-shadow:0 -5px 14px #10284f0d}
.cu-composer-page .cu-message-grid{grid-template-columns:minmax(0,1fr) 310px}
.cu-composer-page .cu-editor{min-height:310px}
.cu-composer-page .cu-recipient-list{max-height:none}

/* Nested workflow regions must not inherit the application's fixed main/aside shell. */
.cu-composer-page .cu-message-grid>main,
.cu-composer-page .cu-review-grid>main{
  position:static!important;
  inset:auto!important;
  width:auto!important;
  height:auto!important;
  min-width:0!important;
  min-height:0!important;
  margin:0!important;
  padding:18px!important;
  display:block!important;
  overflow:visible!important;
}
.cu-composer-page .cu-message-grid>aside,
.cu-composer-page .cu-review-grid>aside{
  position:static!important;
  inset:auto!important;
  width:auto!important;
  height:auto!important;
  min-width:0!important;
  min-height:0!important;
  margin:0!important;
  padding:18px!important;
  display:block!important;
  overflow:visible!important;
  color:#10213e!important;
  background:#fff!important;
  background-image:none!important;
  border:1px solid #d3dde9!important;
  border-radius:8px!important;
  box-shadow:none!important;
  z-index:auto!important;
}
.cu-composer-page .cu-message-grid>aside h3,
.cu-composer-page .cu-review-grid>aside h3{color:#10213e}
.cu-composer-page .cu-message-grid>aside p{color:#718097}
@media(max-width:1000px){
  .cu-composer-page .cu-message-grid,.cu-composer-page .cu-review-grid{grid-template-columns:1fr}
  .cu-composer-page .cu-message-grid>aside{max-height:none;overflow:visible}
}
@media(max-width:700px){
  body.case-update-compose-page-mode #content{padding-left:0;padding-right:0}
  .cu-composer-page{border-radius:0;border-left:0;border-right:0}
  .cu-composer-page .cu-step-body{padding:18px 15px}
  .cu-composer-page .cu-compose-head{border-radius:0;padding:15px}
  .cu-composer-page .cu-compose-footer{flex-wrap:wrap;border-radius:0;padding:10px}
  .cu-composer-page .cu-compose-footer>span{display:none}
  .cu-composer-page .cu-compose-footer button{flex:1}
}
