/* Registration uses the original form and the original controls; only layout changes. */
.entry-form .entry-block-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.entry-form .entry-block{padding:16px;background:#fff;border:1px solid #d7e2dc;border-radius:9px}
.entry-form .entry-block-requisites{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:12px}
.entry-form .entry-block-requisites>h2{grid-column:1/-1}
.entry-form .entry-block-content,.entry-form .entry-block-addresses{grid-column:1/-1}
.entry-form .next-contact-form{grid-column:auto}
.entry-form .next-contact-form>.form-error:empty{display:none}
.entry-form .next-contact-form .next-block{border:0;background:none;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px}
.entry-form .next-contact-form .next-block>.title-row,.entry-form .next-contact-form .next-block>label:first-of-type,.entry-form .next-contact-form .next-block>.check,.entry-form .next-contact-form .next-block>small,.entry-form .next-contact-form .next-block>select{grid-column:1/-1}
.entry-form .next-contact-form .next-block label{margin:0}
.entry-form .next-contact-form h2{margin-bottom:10px!important}
.entry-form .next-contact-form h3{font-size:13px;margin:0}
.entry-form .registration-address-person{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.entry-form .registration-address-person>.next-fields,.entry-form .registration-address-person>h3,.entry-form .registration-address-person>label,.entry-form .registration-address-person>select{grid-column:1/-1}
.entry-form .registration-address-person>.next-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px}
.entry-form .registration-address-person .next-house{grid-column:auto;grid-row:1/3;align-content:start;margin:0}
.entry-form .registration-address-person .next-house>strong{flex:1 1 60%;padding:7px 9px;border:1px solid #ccd9d1;border-radius:6px;font-weight:400}
.entry-form .registration-address-person .next-fields>label{margin:0}
.entry-form .registration-address-person .next-fields>label.check{grid-column:2}
.entry-form .entry-block-route .intake-route{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.entry-form .entry-block-route .route-stack,.entry-form .entry-block-route .route-picker,.entry-form .entry-block-route .wide{grid-column:1/-1}
.entry-form .entry-block input:not([type=checkbox]):not([type=hidden]):not([type=file]),.entry-form .entry-block select{height:36px;min-height:36px;font-size:13px}
.entry-form .entry-block button{min-height:34px;padding:6px 10px}
.entry-form .entry-block-content textarea{min-height:100px}
/* Compact task controls retain existing creation permissions and menus. */
.tasks-compact-page .journal-create{display:grid!important;grid-template-columns:repeat(3,minmax(0,260px));justify-content:start;gap:8px!important;margin:10px 0 12px!important;align-items:start}
html body .tasks-compact-page .journal-create>details,html body .tasks-compact-page .journal-create>a,html body .tasks-compact-page .journal-create>button{margin:0!important;width:100%!important;min-width:0!important;border:0;background:transparent;padding:0!important}
html body .tasks-compact-page .journal-create summary,html body .tasks-compact-page .journal-create>a,html body .tasks-compact-page .journal-create>button{box-sizing:border-box;height:36px!important;min-height:36px!important;padding:8px 10px!important;font-size:13px!important;line-height:18px!important;border:1px solid #c6d7cc!important;border-radius:6px!important;background:#fff!important;color:#204831!important;display:block;text-align:center;white-space:nowrap;font-weight:600!important;text-decoration:none}
.tasks-compact-page .task-create-options{position:absolute;z-index:30;background:white}
html body .tasks-compact-page .task-tabs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:0 0 10px}
html body .tasks-compact-page .task-tabs>a,html body .tasks-compact-page .quick-filters>a,.document-city-filters>a{padding:7px 10px!important;min-height:34px!important;font-size:13px!important;line-height:18px!important;border:1px solid #cbd9cf!important;border-radius:6px!important;background:#fff;color:#244b35;text-align:center;margin:0!important;white-space:normal}
html body .tasks-compact-page .task-tabs>a.active,html body .tasks-compact-page .quick-filters>a.active,.document-city-filters>a.active{background:#e4f0e7!important;border-color:#87b695!important;color:#164627!important}
.tasks-compact-page .quick-filters{display:grid!important;grid-template-columns:repeat(5,minmax(0,104px));gap:8px!important}
.tasks-compact-page .compact-filters{display:flex;align-items:end;gap:8px;margin:0 0 10px;padding:0;background:transparent;border:0}
.tasks-compact-page .compact-filters select,.tasks-compact-page .compact-filters button{height:34px;min-height:34px;font-size:13px;padding:5px 9px}
.tasks-compact-page .title-row.compact{margin:8px 0!important;gap:8px}
.document-city-filters{display:flex;gap:8px;margin:10px 0;flex-wrap:wrap}
.document-city-filters>a{min-width:80px}
/* Data remains readable; only topics are abbreviated. */
html body table.journal-fit td.journal-readable-cell{white-space:normal!important;overflow-wrap:break-word!important;overflow:visible!important;text-overflow:clip!important}
html body table.journal-fit td.journal-topic-cell{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body table.journal-fit td.journal-topic-cell details>summary{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body table.journal-fit .journal-pair-line{white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
html body table.journal-fit .status-pill{white-space:normal!important}
@media(max-width:1100px){html body .tasks-compact-page .task-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.entry-form .entry-block-grid,.entry-form .entry-block-requisites,.entry-form .registration-address-person,.entry-form .registration-address-person>.next-fields,.entry-form .entry-block-route .intake-route{grid-template-columns:1fr}
.entry-form .next-contact-form .next-block{grid-template-columns:1fr}.entry-form .registration-address-person .next-house{grid-column:1;grid-row:auto}.entry-form .registration-address-person .next-fields>label.check{grid-column:1}.entry-form .entry-block{padding:12px}
html body .tasks-compact-page .journal-create{grid-template-columns:1fr!important}html body .tasks-compact-page .task-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.tasks-compact-page .quick-filters{grid-template-columns:repeat(3,minmax(0,1fr))!important;width:100%}.tasks-compact-page .compact-filters{flex-wrap:wrap}
html body .tasks-compact-page .journal-create summary,html body .tasks-compact-page .journal-create>a{height:auto!important;min-height:44px!important;white-space:normal}
.entry-form .entry-block input:not([type=checkbox]):not([type=hidden]):not([type=file]),.entry-form .entry-block select{font-size:16px;height:42px;min-height:42px}
}

/* 1.9.3: prevent nested nowrap text from escaping fixed-width journal cells. */
html body table.journal-fit td.journal-readable-cell,html body table.journal-fit td.journal-paired-cell{overflow:hidden!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important}
html body table.journal-fit td.journal-readable-cell :is(a:not(.mini):not(.btn),b,strong,span,div),html body table.journal-fit td.journal-paired-cell .journal-pair-line,html body table.journal-fit td.journal-paired-cell .journal-pair-line :is(a:not(.mini):not(.btn),b,strong,span){white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;max-width:100%!important;min-width:0;box-sizing:border-box;overflow:hidden!important;text-overflow:clip!important}
html body table.journal-fit .column-header-line{display:flex;align-items:center;min-width:0;gap:4px}
html body table.journal-fit .column-header-line .column-title{white-space:normal!important;overflow:visible!important;overflow-wrap:anywhere!important;text-overflow:clip!important;min-width:0;line-height:1.35}
html body table.journal-fit .column-header-line button{flex-shrink:0}
html body table.journal-fit .journal-pair-line .table-date-text{white-space:nowrap!important;overflow-wrap:normal!important}

.journal-heading-line{display:flex;align-items:center;flex-wrap:wrap;gap:12px 24px;min-width:0}
.journal-heading-line h1{margin:0}
html body .journal-heading-counter{display:flex;align-items:center;flex-wrap:wrap;gap:8px;background:transparent;padding:0;margin:0;font-size:13px;color:#526a5b;min-width:0;max-width:100%}
.journal-top-pagination{display:flex;justify-content:flex-end;align-items:center;padding:8px 12px;border-bottom:1px solid #e5ecf1;background:transparent}
.journal-top-pagination .journal-pager{margin:0;padding:0;display:flex;align-items:center;gap:10px}
.journal-top-pagination .journal-pager button{min-width:34px;min-height:34px}
@media(max-width:600px){.journal-heading-line{gap:6px}.journal-heading-line h1{width:100%}.journal-top-pagination .journal-pager button{min-width:44px;min-height:44px}}

.organization-back{display:inline-block;margin-bottom:10px}
.organization-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:stretch}
.organization-settings-grid>.settings-section{margin:0!important;min-width:0;padding:20px;border:1px solid #d7e2dc;border-radius:10px}
.organization-settings-grid>.settings-section form{display:flex;flex-direction:column;gap:14px}
.organization-settings-grid .form-actions{display:flex;justify-content:flex-start;padding-top:12px}
.organization-settings-grid .grid.three{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.organization-settings-page label{min-width:0}
.organization-settings-page input,.organization-settings-page select,.organization-settings-page textarea{width:100%;max-width:100%;box-sizing:border-box}
.organization-settings-page input[type=checkbox]{width:auto}
.organization-settings-page button{white-space:normal;overflow-wrap:anywhere;min-height:38px;padding:8px 14px;max-width:100%;height:auto}
.organization-settings-page input:not([type=checkbox]):not([type=file]),.organization-settings-page select{height:38px}
.organization-letterhead-block{grid-column:1/-1;min-width:0}
.organization-letterhead-block #official-letterhead{margin:0;padding:20px}
.organization-letterhead-block .letterhead-editor{align-items:start;gap:16px}
.organization-letterhead-block .letterhead-editor label{display:flex;flex-direction:column;gap:6px}
.organization-letterhead-block .letterhead-editor label:has(input[type=checkbox]){flex-direction:row;align-items:center}
.organization-letterhead-block .letterhead-editor>button[type=submit]{justify-self:start}
@media(max-width:900px){.organization-settings-grid .grid.three{grid-template-columns:1fr}}
@media(max-width:700px){.organization-settings-grid{grid-template-columns:1fr}.organization-settings-grid>.settings-section,.organization-letterhead-block #official-letterhead{padding:14px}.organization-settings-page button{min-height:44px}.organization-settings-page input,.organization-settings-page textarea,.organization-settings-page select{font-size:16px}}

/* Approved: paired document values share a left edge. Header controls retain their layout. */
html body table.journal-fit[data-column-pairs] td.journal-paired-cell{ text-align:left!important }
html body table.journal-fit[data-column-pairs] td.journal-paired-cell .journal-pair-line{ text-align:left!important }
html body table.journal-fit[data-column-pairs] td.journal-paired-cell .table-date-text{grid-template-columns:7px auto!important}
html body table.journal-fit[data-column-pairs] td.journal-paired-cell .table-date-text::after{display:none!important}

html body table.journal-fit[data-column-pairs] td.journal-paired-cell:has(.table-date-text)>.journal-pair-line+.journal-pair-line{padding-left:14px}

html body .tasks-compact-page .journal-create summary,html body .tasks-compact-page .journal-create>a,html body .tasks-compact-page .journal-create>button{background:var(--green)!important;color:#fff!important;border-color:var(--green)!important;white-space:normal!important;height:auto!important;min-height:36px!important}
html body .tasks-compact-page .journal-create summary:hover,html body .tasks-compact-page .journal-create>a:hover,html body .tasks-compact-page .journal-create>button:hover{background:var(--green-dark)!important}

.journal-pager{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.journal-page-size{display:flex;align-items:center;gap:6px;margin-right:12px;font-size:13px}.journal-page-size select{width:auto;min-width:65px;max-width:230px;height:34px;margin:0}.journal-scroll-status{font-size:13px;color:var(--muted)}

@media(min-width:1001px){body:has(.compact-journal-desktop) .topbar{min-height:44px;height:44px;padding:4px 24px}body:has(.compact-journal-desktop) .global-btn{padding:6px 16px!important;min-height:32px!important}.compact-journal-desktop{padding-top:12px!important}.compact-journal-desktop .compact-journal-top{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:8px}.compact-journal-desktop .journal-heading-line{margin:0!important}.compact-journal-desktop .compact-journal-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.compact-journal-desktop .compact-origin-empty,.compact-journal-desktop .compact-original-nav,.compact-journal-desktop .title-row:empty,.compact-journal-desktop .title-row:has(>div:empty){display:none!important}.compact-journal-desktop .title-row p{display:none}.compact-journal-desktop .compact-journal-dock{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 10px;background:var(--panel,#fff);border:1px solid var(--border,#dce6e0);border-radius:8px;padding:8px 10px;margin-bottom:8px}.compact-journal-desktop .compact-journal-filter-row,.compact-journal-desktop .compact-journal-tools{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0}.compact-journal-desktop .journal-top-pagination{grid-column:1/-1;margin:0!important;padding:0!important;border-top:1px solid var(--border,#dce6e0);padding-top:6px!important}.compact-journal-desktop .journal-toolbar:empty{display:none}.compact-journal-desktop :is(.compact-journal-top,.compact-journal-dock) :is(button,a.btn,select,summary){font-size:13px!important;height:32px!important;min-height:32px!important;padding:5px 9px!important;line-height:20px!important;margin:0!important;white-space:nowrap}.compact-journal-desktop .compact-journal-select{display:flex;align-items:center;gap:6px;margin:0;font-size:13px}.compact-journal-desktop .compact-journal-select select{width:auto;max-width:230px}.compact-journal-desktop .compact-journal-menu{position:relative}.compact-journal-desktop .compact-journal-menu>summary{list-style:none;border:1px solid var(--border,#dce6e0);border-radius:6px;cursor:pointer}.compact-journal-desktop .compact-journal-menu-body{position:absolute;right:0;top:36px;z-index:50;background:var(--panel,#fff);border:1px solid var(--border,#dce6e0);border-radius:8px;box-shadow:0 5px 18px #0002;padding:10px;width:max-content;max-width:360px}.compact-journal-desktop .compact-journal-filter-row .compact-journal-menu-body{left:0;right:auto}.compact-journal-desktop .compact-journal-menu-body>.journal-view-controls{display:flex;flex-direction:column;align-items:stretch;margin:0;gap:6px}.compact-journal-desktop .compact-journal-menu-body>button{display:block;width:100%;margin-bottom:6px!important}.compact-journal-desktop .compact-journal-period-fields{display:flex;gap:6px}.compact-journal-desktop .compact-journal-period-fields input{width:145px}.compact-journal-desktop .compact-print-icon{font-size:0!important;width:32px}.compact-journal-desktop .compact-print-icon svg{width:18px;height:18px}.compact-journal-desktop form.compact-filters{display:flex!important;align-items:center;padding:0;margin:0!important;gap:6px}.compact-journal-desktop form.compact-filters label{display:flex;gap:6px;align-items:center;font-size:13px}.compact-journal-desktop .table-panel{padding-top:0!important}.compact-journal-desktop .journal-create{margin:0!important}.compact-journal-desktop .compact-journal-actions .task-create-primary{width:auto!important}.compact-journal-desktop .compact-journal-actions .btn{width:auto!important}}

@media(min-width:1001px){.compact-journal-desktop .compact-journal-tools{justify-content:flex-end}.compact-journal-desktop .compact-journal-dock .compact-print-icon{font-size:0!important;min-width:32px;flex-shrink:0}.compact-journal-desktop .compact-journal-actions>*{flex-shrink:0}.compact-journal-desktop>.title-row:has(.journal-heading-counter){display:none}}

html body table.journal-fit[data-column-pairs] td.journal-paired-cell.journal-centered-pair,html body table.journal-fit[data-column-pairs] td.journal-paired-cell.journal-centered-pair .journal-pair-line{text-align:center!important}html body table.journal-fit[data-column-pairs] td.journal-centered-pair .table-date-text{grid-template-columns:7px auto 7px!important;justify-content:center!important}html body table.journal-fit[data-column-pairs] td.journal-centered-pair .table-date-text::after{display:block!important;content:"";width:7px}html body table.journal-fit[data-column-pairs] td.journal-centered-pair>.journal-pair-line+.journal-pair-line{padding-left:0!important}
@media(min-width:1001px){.compact-journal-desktop .compact-journal-top+.title-row{margin:0!important}.compact-journal-desktop .compact-journal-actions details:not(.compact-journal-menu){padding:0!important;width:auto!important;min-height:32px!important;height:32px!important;border:0!important;background:var(--green,#17804a)!important;color:#fff!important}.compact-journal-desktop .compact-journal-actions details:not(.compact-journal-menu)>summary{padding:5px 9px!important;color:#fff!important;background:var(--green,#17804a)!important;border-radius:6px}.compact-journal-desktop .compact-journal-filter-row .completed-control-folder{margin:0!important}.compact-journal-desktop .completed-control-folder .home-folder{padding:5px 8px!important;min-height:32px!important;height:32px!important;font-size:13px}.compact-journal-desktop .completed-control-folder svg{width:16px!important;height:16px!important}.compact-journal-desktop .compact-journal-dock .quick-filter-help{display:none}.compact-journal-desktop .title-row:has(>.compact-original-nav){display:none!important}}

@media(min-width:1001px){.compact-journal-desktop .compact-journal-filter-row>*{flex:0 0 auto;width:auto;max-width:100%;margin:0!important}.compact-journal-desktop .compact-journal-filter-row .compact-journal-select{flex-direction:row!important;width:auto!important;gap:6px!important}.compact-journal-desktop .compact-journal-filter-row .completed-control-folder{width:auto!important;display:flex!important;gap:0!important}.compact-journal-desktop .completed-control-folder .home-folder{display:flex!important;width:auto!important;gap:8px!important;white-space:nowrap!important}.compact-journal-desktop .completed-control-folder .home-folder span{white-space:nowrap!important}.compact-journal-desktop .compact-journal-dock{grid-template-columns:1fr}.compact-journal-desktop .compact-journal-tools{grid-row:2;justify-content:flex-end}.compact-journal-desktop .journal-top-pagination{grid-row:2;justify-self:start;border-top:0;padding-top:0!important}.compact-journal-desktop .journal-top-pagination .journal-pager{justify-content:flex-start}.compact-journal-desktop .compact-journal-filter-row select{max-width:195px!important}.compact-journal-desktop .compact-journal-filter-row .quick-filter-help{display:none!important}}

html body table.journal-fit td.journal-topic-cell,html body table.journal-fit td.journal-topic-cell :is(a,b,strong,span,div,summary){white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;text-overflow:clip!important;overflow:visible!important;max-height:none!important;-webkit-line-clamp:unset!important;display:revert}html body table.journal-fit td.journal-topic-cell{height:auto!important}
@media(min-width:1001px) and (max-width:1200px){.compact-journal-desktop .compact-journal-dock .compact-journal-tools{grid-row:2}.compact-journal-desktop .compact-journal-dock .journal-top-pagination{grid-row:3;justify-self:stretch}}

@media(min-width:1201px){.compact-journal-desktop .compact-journal-dock{grid-template-columns:minmax(0,1fr) auto}.compact-journal-desktop .compact-journal-filter-row{grid-column:1/-1}.compact-journal-desktop .compact-journal-tools{grid-row:2;grid-column:2}.compact-journal-desktop .journal-top-pagination{grid-row:2;grid-column:1}}

/* Outgoing registration state, with its number on a separate line. */
.card-footer-actions .card-registration{background:#c93636!important;color:#fff!important;border-color:#c93636!important;display:inline-flex;flex-direction:column;justify-content:center;gap:2px;min-height:42px;padding:7px 14px}
.card-footer-actions .card-registration-done{background:#207b42!important;border-color:#207b42!important;opacity:1!important;cursor:default}
.card-registration small{font-size:11px;font-weight:400;line-height:1.2}

@media(max-width:1000px){
html body .journal-top-pagination{padding:8px 0!important;justify-content:stretch!important;min-height:0!important}
html body .journal-top-pagination .journal-pager{width:100%;display:grid!important;grid-template-columns:minmax(0,1fr) 40px 48px 40px;gap:5px!important;align-items:center;flex-wrap:nowrap!important}
html body .journal-top-pagination .journal-page-size{display:flex!important;flex-direction:row!important;align-items:center;min-width:0;margin:0!important;gap:4px;font-size:12px;white-space:nowrap}
html body .journal-top-pagination .journal-page-size select{width:100%!important;min-width:0!important;max-width:130px!important;height:40px!important;padding:4px 20px 4px 6px!important;font-size:16px;flex:1}
html body .journal-top-pagination .journal-pager button{width:40px!important;min-width:40px!important;height:44px!important;min-height:44px!important;padding:0!important;margin:0!important}
html body .journal-top-pagination .journal-pager>span:not(.journal-scroll-status){text-align:center;white-space:nowrap;font-size:13px}
html body .journal-top-pagination .journal-scroll-status:empty{display:none!important}
html body .journal-top-pagination .journal-scroll-status:not(:empty){grid-column:2/-1;text-align:right;font-size:12px}
}

@media(min-width:1001px){
html body table.journal-fit .column-header-line .column-title{overflow-wrap:normal!important;word-break:normal!important}
html body table.journal-fit td.table-date-cell .table-date-text{white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important}
}
