/* Build 53: Case Manager responsive overview + UK offline/online map. */
#app .bs43-case-table-wrap{overflow-x:hidden;overflow-y:auto;width:100%;max-width:100%;border-radius:16px;}
#app .bs43-case-table{min-width:0;width:100%;max-width:100%;table-layout:fixed;border-spacing:0;font-size:12px;}
#app .bs43-case-table th{box-sizing:border-box;width:auto!important;min-width:0!important;overflow-wrap:anywhere;word-break:normal;white-space:normal;padding:11px 6px;font-size:11px;line-height:1.35;}
#app .bs43-case-table td{box-sizing:border-box;max-width:0;min-width:0;overflow-wrap:anywhere;padding:9px 5px;position:relative;}
#app .bs43-case-table th:nth-child(1){width:5%!important}
#app .bs43-case-table th:nth-child(2){width:12%!important}
#app .bs43-case-table th:nth-child(3){width:20%!important}
#app .bs43-case-table th:nth-child(4){width:11%!important}
#app .bs43-case-table th:nth-child(5){width:9%!important}
#app .bs43-case-table th:nth-child(6){width:9%!important}
#app .bs43-case-table th:nth-child(7){width:10%!important}
#app .bs43-case-table th:nth-child(8){width:14%!important}
#app .bs43-case-table th:nth-child(9){width:10%!important}
#app .bs43-case-table .bs40-field{min-width:0;max-width:100%;width:100%;box-sizing:border-box;position:relative;display:block;margin:0 0 6px;}
#app .bs43-case-table .bs40-field input,
#app .bs43-case-table .bs40-field textarea,
#app .bs43-case-table .bs40-field select{font-size:12px;min-width:0;max-width:100%;width:100%;box-sizing:border-box;padding:7px 5px;min-height:38px;border-radius:8px;text-overflow:ellipsis;}
#app .bs43-case-table .bs40-field textarea{height:54px;min-height:54px;max-height:110px;resize:vertical;line-height:1.4;overflow:auto;}
#app .bs43-case-table .bs40-field:focus-within textarea{min-height:100px;max-height:300px;}
#app .bs43-case-table .bs40-field input:focus{overflow:visible;text-overflow:clip;}
#app .bs43-case-table .bs53-field-expand{display:block;position:absolute;right:3px;bottom:3px;width:23px;height:23px;z-index:2;border-radius:6px;background:#fff0f8;color:#a0497d;border:1px solid #e9c6da;font-size:13px;line-height:1;padding:2px;box-shadow:0 1px 3px #be9bb154}
#app .bs43-case-table .bs53-field-expand:hover{background:#efc8e2;color:#87376d}
#app .bs43-case-table .bs43-open-case{white-space:normal;max-width:100%;font-size:11px!important;margin-top:5px;padding:6px 4px!important}
#app .bs43-case-table td:nth-child(9) select{min-width:0;width:100%}
#app .bs43-case-table td:nth-child(3) .bs40-field{margin-bottom:7px}
#app .bs43-case-editor .bs40-field textarea{resize:vertical;min-height:126px}
/* On a narrower window preserve all columns as compact expandable case cards, without a horizontal scrollbar. */
@media(max-width:1250px){
 #app .bs43-case-table thead{display:none}
 #app .bs43-case-table tbody{display:block;width:100%}
 #app .bs43-case-table tbody tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:12px 0;border:1px solid #eed6e3;border-radius:14px;overflow:hidden;background:#fffafd;box-shadow:0 2px 9px #d9b9ce28}
 #app .bs43-case-table tbody tr td{display:block;max-width:100%;min-width:0!important;padding:10px;border-right:1px solid #f1ddea;border-bottom:1px solid #f1ddea}
 #app .bs43-case-table tbody tr td:nth-child(1):before{content:'Key'}
 #app .bs43-case-table tbody tr td:nth-child(2):before{content:'Case'}
 #app .bs43-case-table tbody tr td:nth-child(3):before{content:'Case status & next steps'}
 #app .bs43-case-table tbody tr td:nth-child(4):before{content:'Key dates'}
 #app .bs43-case-table tbody tr td:nth-child(5):before{content:'Case number'}
 #app .bs43-case-table tbody tr td:nth-child(6):before{content:'Court'}
 #app .bs43-case-table tbody tr td:nth-child(7):before{content:'Court email'}
 #app .bs43-case-table tbody tr td:nth-child(8):before{content:'Defendants / claimants email'}
 #app .bs43-case-table tbody tr td:nth-child(9):before{content:'Linked project'}
 #app .bs43-case-table tbody tr td:before{display:block;font-size:10px;font-weight:650;color:#a04e7f;letter-spacing:.02em;margin-bottom:5px}
 #app .bs43-case-table .bs40-field textarea{height:50px;}
}
@media(max-width:720px){#app .bs43-case-table tbody tr{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:470px){#app .bs43-case-table tbody tr{grid-template-columns:1fr}}
/* UK geography is bundled locally, so the map shows actual land masses without tile access. */
#app .bs49-map{background:#e2edf3;touch-action:none}
#app .bs49-map .bs49-map-grid{opacity:.23;z-index:4}
#app .bs49-map .bs49-map-message{z-index:6;background:#fffdfaee;font-weight:550;font-size:11px;max-width:calc(100% - 24px)}
#app .bs49-map .bs53-uk-outline{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1;}
#app .bs49-map .bs53-uk-outline path{stroke-width:1.4;stroke:#7092ab;fill:#e5efde;vector-effect:non-scaling-stroke}
#app .bs49-map .bs53-uk-outline path.bs53-uk-country{fill:#c3ddc2;stroke:#527a79;stroke-width:1.8}
#app .bs49-map .bs53-uk-cities{position:absolute;inset:0;pointer-events:none;z-index:2;overflow:hidden}
#app .bs49-map .bs53-city-label{position:absolute;display:inline-flex;align-items:center;gap:4px;font-size:10px;color:#496574;background:#ffffffae;border-radius:5px;padding:2px 4px;white-space:nowrap;font-weight:650;text-shadow:0 1px #fff}
#app .bs49-map .bs53-city-label i{display:inline-block;width:5px;height:5px;flex:none;background:#a44d82;border:1px solid white;border-radius:50%}
#app .bs49-map .bs49-map-markers{z-index:5}
#app .bs49-map .bs49-tiles{z-index:3}
#app .bs49-map.bs53-tiles-loaded:not(.bs53-offline-map) .bs53-uk-outline,
#app .bs49-map.bs53-tiles-loaded:not(.bs53-offline-map) .bs53-uk-cities{display:none}
#app .bs49-map.bs53-tiles-loaded:not(.bs53-offline-map) .bs49-map-grid{display:none}
#app .bs49-map.bs53-offline-map .bs49-tiles{display:none}
#app .bs49-map .bs49-tiles img{image-rendering:auto}
#app .bs49-locations-main .bs49-toolbar{gap:8px;justify-content:flex-end}
#app .bs49-locations-main .bs49-toolbar button{white-space:nowrap}
