.cin-page{max-width:1480px;margin:0 auto;color:#18394c}.cin-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:20px}.cin-kicker{font-size:11px;text-transform:uppercase;letter-spacing:.09em;font-weight:800;color:#557789}.cin-heading h1{font-size:27px;margin:5px 0 7px}.cin-heading p{margin:0;color:#60768a}.cin-header-actions{display:flex;gap:8px;flex-wrap:wrap}.cin-feedback:empty{display:none}.cin-feedback{padding:12px 16px;background:#eef6fa;border:1px solid #cee0e9;border-radius:12px;margin-bottom:12px}.cin-feedback.cin-error{background:#fff4ec;color:#8a4517}.cin-workspace{display:grid;grid-template-columns:175px minmax(260px,.85fr) minmax(360px,1.2fr);min-height:560px;height:min(770px,calc(100dvh - 230px));border:1px solid #dbe6ee;border-radius:18px;background:white;overflow:hidden;box-shadow:0 8px 30px #153b5010}.cin-folders{padding:18px 10px;background:#f5f8fb;border-right:1px solid #dbe6ee}.cin-folders button{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;padding:12px 10px;margin-bottom:5px;border:0;border-radius:10px;background:transparent;text-align:left;color:#476071;font-size:12px;font-weight:650;cursor:pointer}.cin-folders button strong{background:#e8eff5;padding:2px 7px;border-radius:20px;font-size:11px}.cin-folders button.is-active{background:#e1f2ee;color:#08796e}.cin-list{display:flex;flex-direction:column;min-width:0;border-right:1px solid #dbe6ee;overflow:hidden}.cin-search{padding:16px 14px 8px}.cin-search input{width:100%;min-width:0}.cin-list-count{font-size:11px;color:#718599;padding:2px 16px 10px}.cin-list-rows{overflow:auto;flex:1;min-height:0}.cin-row{display:block;width:100%;text-align:left;padding:16px;border:0;border-top:1px solid #e9eff4;border-left:3px solid transparent;background:#fff;cursor:pointer;color:inherit;overflow-wrap:anywhere}.cin-row:hover{background:#f6fafc}.cin-row.is-selected{background:#edf7f5;border-left-color:#0b8578}.cin-row>strong{display:block;font-size:13px;line-height:1.5;margin:6px 0}.cin-row-top,.cin-row-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;color:#678095}.cin-row-top i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#0b8578;margin-right:6px}.cin-row:not(.is-unread)>strong{font-weight:550}.cin-preview{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;color:#647c8e;line-height:1.5;margin-bottom:10px}.cin-state{display:inline-block;border-radius:20px;padding:4px 8px;background:#edf2f7;color:#557087;font-size:10px;font-weight:750}.cin-state.state-todo{background:#fff0d9;color:#8b5b09}.cin-state.state-done{background:#e4f4eb;color:#20714b}.cin-state.state-info{background:#e8f1ff;color:#345e98}.cin-pagination{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:8px 12px;font-size:11px}.cin-pagination:empty{display:none}.cin-detail{display:flex;flex-direction:column;min-width:0;overflow:hidden}.cin-detail-header{padding:24px;border-bottom:1px solid #e7eef4}.cin-detail-header h2{font-size:20px;line-height:1.4;margin:12px 0;overflow-wrap:anywhere}.cin-detail-header small{font-size:11px;color:#6d8293}.cin-detail-body{overflow:auto;flex:1;min-height:0;padding:22px 24px;font-size:13px;line-height:1.7;overflow-wrap:anywhere}.cin-detail-body>p{white-space:pre-wrap;margin-top:0}.cin-actions{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.cin-actions button{white-space:normal}.cin-history article{border:1px solid #dfe9ee;background:#f8fafc;padding:14px;border-radius:12px;margin-bottom:12px}.cin-history header{display:flex;align-items:center;justify-content:space-between;font-size:11px}.cin-history time{color:#7a8b98}.cin-history p{white-space:pre-wrap;font-size:12px;margin-bottom:0}.cin-detail-footer{border-top:1px solid #e7eef4;padding:12px 20px;display:flex;gap:10px;flex-wrap:wrap}.cin-detail form{display:grid;gap:10px;margin-top:20px}.cin-detail label{font-weight:700}.cin-detail textarea{width:100%;resize:vertical;margin-top:7px}.cin-detail form small{font-size:11px;color:#718699}.cin-detail form button{justify-self:start}.cin-empty{display:flex;align-items:center;justify-content:center;text-align:center;flex-direction:column;padding:45px 24px;color:#718599;gap:12px}.cin-empty>span{font-size:28px;color:#318b7b}.cin-empty strong{color:#284b61}.cin-empty p{font-size:12px;line-height:1.6;margin:0}.cin-detail-empty{height:100%}.cin-back{display:none}.cin-page button:focus-visible{outline:3px solid #2278bc;outline-offset:-3px}
@media(max-width:1180px){.cin-workspace{grid-template-columns:145px minmax(230px,.8fr) minmax(280px,1fr)}.cin-detail-header,.cin-detail-body{padding:18px}.cin-folders button{font-size:11px;padding:11px 6px}}
@media(max-width:900px){.cin-heading{align-items:flex-start;flex-direction:column;gap:12px}.cin-workspace{display:grid;grid-template-columns:1fr;height:auto;min-height:540px;overflow:visible}.cin-folders{display:flex;gap:4px;overflow:auto;padding:8px;border-right:0;border-bottom:1px solid #dbe6ee}.cin-folders button{width:auto;min-width:max-content;margin:0;padding:10px;font-size:11px}.cin-folders button strong{font-size:10px}.cin-list{border:0;max-height:640px}.cin-detail{display:none}.cin-mobile-detail .cin-folders,.cin-mobile-detail .cin-list{display:none}.cin-mobile-detail .cin-detail{display:flex;min-height:540px;max-height:none}.cin-detail-body{overflow:visible}.cin-detail-header{padding-top:10px}.cin-back{display:inline-flex;align-self:flex-start;margin:14px}.cin-heading h1{font-size:24px}.cin-header-actions .btn{font-size:12px;padding:10px 12px}.cin-detail-header h2{font-size:18px}.cin-header-actions{width:100%}.cin-detail-footer{padding:12px}.cin-detail-footer button{white-space:normal}.cin-page,.cin-workspace,.cin-detail{min-width:0;max-width:100%}.cin-detail-header small{overflow-wrap:anywhere}}

.cin-nav-badge{margin-left:auto;padding:2px 6px;border-radius:12px;font-size:10px;background:#d7f2e9;color:#076d60}.cin-nav-badge[hidden]{display:none}

/* A mailbox is a workspace: fill the space below the application header,
   including when the cabinet delegation banner is present. Scope every parent
   override to the active inbox so the other client pages retain their layout. */
body.az-erp-shell #main-screen .main.erp-main:has(#view-client.active [data-client-portal-mode="inbox"]){display:flex!important;flex-direction:column;height:100dvh!important;overflow:hidden!important}
body.az-erp-shell #main-screen .main.erp-main:has(#view-client.active [data-client-portal-mode="inbox"])>.topbar,
body.az-erp-shell #main-screen .main.erp-main:has(#view-client.active [data-client-portal-mode="inbox"])>#client-impersonation-banner{flex:0 0 auto}
body.az-erp-shell #main-screen #view-client.active:has([data-client-portal-mode="inbox"]){display:flex!important;flex-direction:column;flex:1 1 0;min-height:0!important;min-width:0;max-width:none!important;width:100%;margin:0!important;padding:16px!important;overflow:hidden}
#view-client #client-portal-root:has([data-client-portal-mode="inbox"]),
#view-client [data-client-portal-mode="inbox"],
#view-client [data-client-portal-mode="inbox"]>.client-mode-body,
#view-client .cin-page{display:flex;flex-direction:column;flex:1 1 0;min-height:0;min-width:0;width:100%;max-width:none!important;margin:0!important}
#view-client .cin-heading{flex:0 0 auto;margin-bottom:14px}
#view-client .cin-feedback{flex:0 0 auto}
.cin-detail [data-cin-routing] {
  padding: 16px;
  margin: 0 0 16px;
  border: 1px solid #cee0e9;
  border-radius: 12px;
  background: #f5f9fa;
}
.cin-detail [data-cin-routing] form { margin: 0; }
.cin-detail [data-cin-routing] .control { display: block; width: 100%; margin-top: 4px; }
.cin-detail [data-cin-routing] .cin-actions { margin: 4px 0 0; }
.cin-detail [data-cin-routing-feedback] { color: #8a4517; margin: 0; }
#view-client .cin-workspace{flex:1 1 0;min-height:0;height:auto;overflow:hidden}
#view-client .cin-detail-header,#view-client .cin-detail-footer{flex:0 0 auto}
@media(max-width:900px){
 #view-client .cin-workspace{grid-template-rows:auto minmax(0,1fr)}
 #view-client .cin-list{min-height:0;max-height:none}
 #view-client .cin-mobile-detail .cin-workspace{grid-template-rows:minmax(0,1fr)}
 #view-client .cin-mobile-detail .cin-detail{min-height:0;max-height:none}
 #view-client .cin-detail-body{overflow:auto}
 #view-client .cin-back{flex:0 0 auto}
}
@media(max-width:767px){body.az-erp-shell #main-screen #view-client.active:has([data-client-portal-mode="inbox"]){padding:12px!important}}
