/* Shared presentation refinements. Existing data, roles and workflows stay in their modules. */
:root{--line:#e3e6ec;--bg:#f5f6f9;--muted:#667184;--soft-rose:#fbf0f3;--focus:#a41f3d}
body{line-height:1.5}.content{padding-top:32px}.heading{padding-bottom:22px;border-bottom:1px solid var(--line);margin-bottom:26px}.heading h1{line-height:1.2}.heading .sub{max-width:680px;line-height:1.65}.panel,.property,.package{border-radius:13px;box-shadow:0 2px 9px #202b3b03}.panel{padding:25px}.panel-head{align-items:flex-start}.panel-head p{margin:7px 0 0}.btn{min-height:41px;border-radius:8px;padding:10px 15px;transition:background .15s,border-color .15s,box-shadow .15s}.btn.small{min-height:35px;font-size:12px}.btn:not(.primary):not(.danger):hover{border-color:#bec5d0;background:#fafbfe}.btn.primary{box-shadow:0 2px 5px #c5294614}.btn.primary:disabled{box-shadow:none}.danger{background:#b42340;color:white;border-color:#b42340}.danger-quiet{color:#a41f3d;border-color:#efdce1}.btn.danger-quiet:hover{background:var(--soft-rose);border-color:#cf9aa7}.row-actions{display:flex;gap:7px;flex-wrap:wrap;align-items:center}.row-actions .btn{white-space:nowrap}.table-primary{font-size:inherit!important;font-weight:650!important;margin-left:0!important}.linkbtn:hover{text-decoration:underline;text-underline-offset:3px}.stat{border-radius:12px}.stat-link{transition:border-color .15s,box-shadow .15s}.stat-link:hover{box-shadow:0 3px 12px #c529460b}.stat-link:focus-visible{outline:3px solid #c5294633}.badge{font-size:11px;line-height:1.35;border-radius:6px;padding:5px 8px}.section-tabs,.crm-tabs{gap:8px}.section-tabs .btn,.crm-tabs .btn{min-height:39px}.crm-column{background:#eef0f5;padding:14px;border-color:#e3e6ed}.crm-case{padding:16px;box-shadow:0 3px 7px #202b3b04}.crm-case:hover{border-color:#d7b3bc;box-shadow:0 4px 14px #202b3b08}.crm-case.dragging{box-shadow:none}.crm-column.drop-ready{background:#faeaf0}.card-title{display:block;border:0;background:none;color:var(--ink);padding:0;text-align:left;font:inherit;font-weight:700;line-height:1.4;cursor:pointer}.card-title:hover{color:var(--red)}.property-photo{height:205px;background:#edf0f4}.property-body{padding:21px}.property .actions .btn{min-width:110px}.property:hover{box-shadow:0 5px 18px #202b3b08}.no-photo{background:linear-gradient(135deg,#edf0f4,#f7f8fa);color:#a2aabc}.package{padding:28px}.package h2{font-size:20px}.package p{font-size:14px;line-height:1.65}.package .amount{letter-spacing:-.04em}.package small{font-size:12px}table th{font-size:12px;font-weight:600;color:#647084;background:#f8f9fc;white-space:nowrap}table td{font-size:13px;vertical-align:middle;padding:16px 14px}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fcfbfd}.table-wrap{border-radius:12px}.table-wrap>table{min-width:540px}.table-wrap .table-wrap{border:0;border-radius:0}.table-wrap small{margin-top:5px;font-size:12px}.table-wrap .row-actions{min-width:155px}.list-tools,.journal-toolbar{display:flex;align-items:flex-end;gap:15px;flex-wrap:wrap;margin:16px 0 20px}.search-field{flex:1;min-width:230px;max-width:500px}.search-field>span,.filter-field>span{display:block;font-size:12px;font-weight:600;color:var(--muted);margin:0 0 7px}.search-field .search{width:100%;margin:0}.filter-field select{min-width:160px}.filter-field{min-width:150px}.list-count{margin:0 0 10px auto;font-size:12px;white-space:nowrap}.journal-toolbar .search{flex:1;min-width:220px;max-width:480px;margin-left:auto}.count-chip{display:inline-block;min-width:20px;text-align:center;background:#0000000a;border-radius:5px;padding:1px 5px;font-size:11px}.btn.primary .count-chip{background:#ffffff26}.mailbox-address{display:block;margin-top:3px}.mail-frame-heading strong{font-size:18px}.editor-disclosure>summary{cursor:pointer;font-weight:650;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px}.editor-disclosure>summary:after{content:'+';font-size:22px;line-height:1;color:var(--red)}.editor-disclosure[open]>summary:after{content:'−'}.editor-disclosure[open]>summary{padding-bottom:16px;border-bottom:1px solid var(--line);margin-bottom:12px}.editor-disclosure input,.editor-disclosure select{min-height:43px}.editor-disclosure .notice{background:#f8f9fc}.password-field{position:relative}.password-field input{padding-right:75px!important}.password-field .password-toggle{position:absolute;right:7px;top:50%;transform:translateY(-50%);margin:0!important;display:inline-flex!important}.password-toggle{border:0;background:#f6f7fa;color:#47536a;padding:7px 10px;border-radius:6px;font:inherit;font-size:12px;min-height:32px;cursor:pointer}.editor-disclosure .password-toggle{display:block;margin-top:-8px;margin-bottom:14px}input[type=search],input[type=text],input[type=email],input[type=tel],input[type=number],input[type=datetime-local],input[type=password],textarea,select{color:var(--ink)}input:focus-visible,textarea:focus-visible,select:focus-visible{border-color:#c52946!important;outline:3px solid #c529461c}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #c5294640;outline-offset:3px}dialog{max-height:90dvh;border-radius:15px;max-width:650px;scroll-padding:24px}.form-message:empty{display:none}.empty{border-radius:12px}.empty h3{font-size:16px;color:var(--ink)}.notice{border:1px solid #f0dfe4}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}.side .nav-folder>div{border-color:#ffffff25}.side .nav-folder summary{border-radius:8px}.side .nav-folder[open]>summary{color:#fff}.side .nav-folder>div button{width:100%}.side .tagline{line-height:1.6}.support{padding-top:18px;margin-top:24px}.side .nav{margin-bottom:auto}.profile>span{max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(min-width:701px){.topbar{box-shadow:0 2px 7px #202b3b03}.crm-case select{border:1px solid #dce1e9;border-radius:6px;background:#fff;min-height:35px}.crm-inline-label select{padding:9px 12px;border:1px solid #dce1e9;border-radius:8px;background:#fff}}
@media(max-width:900px){.panel{padding:21px}.list-count{margin-left:0}.property-photo{height:190px}}
@media(max-width:700px){body{font-size:14px}.content{padding:23px 16px 35px}.heading{padding-bottom:18px;margin-bottom:20px}.panel{padding:19px}.btn{min-height:44px}.btn.small{min-height:40px}.list-tools{gap:12px;align-items:stretch}.search-field{min-width:100%;max-width:none}.filter-field{flex:1}.filter-field select{width:100%;min-height:43px}.list-count{align-self:flex-end;margin-bottom:10px}.journal-toolbar{align-items:stretch}.journal-toolbar .range{width:100%}.journal-toolbar .range .btn{flex:1}.journal-toolbar .search{width:100%;max-width:none;margin:0}.table-wrap>table{min-width:510px}table th{font-size:11px}table td{font-size:12px;padding:14px 11px}.row-actions .btn{min-height:38px}.crm-tabs .btn{min-height:43px}.crm-case .btn,.crm-case select{min-height:42px}.property-photo{height:220px}.property-body{padding:19px}.profile{gap:8px}.side .nav-folder summary{min-height:44px}.side .nav-folder>div button{min-height:44px}.support{margin-top:24px}.section-tabs{margin-bottom:20px}.editor-disclosure .detail{gap:0}.password-toggle{min-height:36px}.editor-disclosure{scroll-margin-top:80px}.list-tools input,.filter-field select{font-size:16px}.heading h1{font-size:26px}.private-mail-frame.mail-expanded{min-height:760px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}

@media(max-width:700px){.side .brand{margin-bottom:13px}.side .tagline{display:none}}

@media(max-width:700px){.table-wrap>.journal-table{min-width:0}.journal-table,.journal-table tbody,.journal-table tr,.journal-table td{display:block;width:100%}.journal-table thead{display:none}.journal-table tr{padding:12px 0;border-top:1px solid var(--line)}.journal-table td{padding:7px 0;border:0;overflow-wrap:anywhere}.journal-table td:before{content:attr(data-label);display:block;color:var(--muted);font-size:11px;margin-bottom:4px}.journal-table .row-actions{min-width:0;gap:8px}.journal-table .table-primary{font-size:14px!important}.journal-table .row-actions .btn{min-height:41px}.journal-table .row-actions .danger-quiet{margin-left:auto}.journal-toolbar .search{font-size:16px}}

/* CRM work overview and consistent deadline controls. */
.task-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:24px 0}.task-summary button{background:#f8f9fc;border:1px solid var(--line);border-radius:10px;text-align:left;color:var(--ink);padding:17px}.task-summary button:hover{border-color:#cf9aa7;background:var(--soft-rose)}.task-summary strong{display:block;font:700 25px Manrope,Arial,sans-serif;margin-bottom:4px}.task-summary span{font-size:12px;color:var(--muted)}.task-filters{display:flex;align-items:flex-end;gap:16px;margin:18px 0 24px;flex-wrap:wrap}.task-filters label{display:block;font-size:12px;font-weight:600;color:var(--muted)}.task-filters label:last-of-type{flex:1;min-width:200px}.task-filters input,.task-filters select,.case-filters select,.crm-facts select{display:block;min-height:43px;background:#fff;border:1px solid var(--line);border-radius:7px;padding:10px 12px;color:var(--ink);font:inherit;margin-top:6px}.task-filters input{width:100%;font-size:14px}.task-filters .list-count{margin:0 0 10px auto}.case-filters{display:flex;align-items:center;gap:12px;margin:0 0 20px}.case-filters label{font-size:12px;color:var(--muted)}.case-filters #crm-case-search{margin:0;flex:1}.case-filters select{margin:0}.crm-facts dd{overflow-wrap:anywhere}.crm-facts select{max-width:100%;margin:0}.crm-facts dt label{font:inherit}.crm-task-description{max-width:500px}.crm-facts a{text-underline-offset:3px}.task-summary button:focus-visible{outline:3px solid #c5294640;outline-offset:3px}
@media(max-width:700px){.task-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.task-summary button{padding:14px}.task-filters{align-items:stretch;gap:12px}.task-filters label{width:100%}.task-filters select,.task-filters input,.case-filters select{width:100%;font-size:16px}.task-filters .list-count{margin-left:0}.case-filters{flex-wrap:wrap}.case-filters #crm-case-search{min-width:100%}.crm-facts select{min-height:44px;font-size:16px}}

/* Professional CRM email editor; the sent email itself uses its own inline styles. */
.email-style-note{background:#fbf0f3;border-left:3px solid #c52946;border-radius:6px;padding:13px 16px;font-size:13px;line-height:1.65}.email-preview-section{border:1px solid var(--line);border-radius:12px;padding:16px;background:#f8f9fc;min-width:0}.email-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.email-preview-heading h3{margin:0}.email-preview-section>.muted{font-size:11px;line-height:1.65}.email-preview-metadata{display:grid;gap:4px;padding:10px 0 13px;font-size:11px;overflow-wrap:anywhere}.email-preview-metadata span{color:var(--muted)}.email-preview-metadata strong{font-weight:500}.email-preview-frame{display:block;width:100%;height:720px;min-height:400px;border:0;background:#f5f6f9;border-radius:8px;margin:0 auto}.email-preview-frame.mobile{max-width:375px}.email-editor-grid{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:25px;margin-top:12px}.email-editor-fields{min-width:0}.email-editor-fields>label:first-child{margin-top:0}.email-editor-grid .email-preview-section{position:sticky;top:0;align-self:start}.email-editor-grid .actions{margin-top:14px}.email-editor-grid textarea{min-height:300px}dialog:has(#auto-form){width:min(1160px,96vw);max-width:1160px;padding:27px}.automation-editor>.footer{bottom:-27px}
@media(max-width:950px){.email-editor-grid{grid-template-columns:1fr}.email-editor-grid .email-preview-section{position:static}.email-editor-grid textarea{min-height:220px}dialog:has(#auto-form){width:min(720px,96vw);padding:20px}.automation-editor>.footer{bottom:-20px}}
@media(max-width:700px){.email-preview-section{padding:10px}.email-preview-heading .range{display:flex;width:100%}.email-preview-heading .range .btn{flex:1}.email-preview-frame{height:780px}.email-editor-grid{gap:20px}.email-editor-fields input,.email-editor-fields textarea,.email-editor-fields select{font-size:16px}}

@media(max-width:700px){.table-wrap>.crm-task-table{min-width:0}.crm-task-table,.crm-task-table tbody,.crm-task-table tr,.crm-task-table td{display:block;width:100%}.crm-task-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.crm-task-table tr{position:relative;border-top:1px solid var(--line);padding:15px 0}.crm-task-table td{padding:7px 0;border:0;overflow-wrap:anywhere}.crm-task-table td:before{content:attr(data-label);display:block;font-size:11px;color:var(--muted);margin-bottom:4px}.crm-task-table td:first-child{position:absolute;right:0;top:19px;width:auto;padding:0;z-index:1}.crm-task-table td:first-child:before{display:none}.crm-task-table td:first-child input{width:22px;height:22px;margin:0;accent-color:var(--red)}.crm-task-table td:nth-child(2){padding-right:35px}.crm-task-table td:nth-child(2)>.linkbtn{font-size:15px;font-weight:600}.crm-task-table .crm-task-description{margin:8px 0}.crm-task-table .btn{min-height:40px}}

/* Shared action buttons: keep the label intact and wrap whole buttons instead. */
.btn{white-space:nowrap;flex-shrink:0;line-height:1.35;font-weight:600;letter-spacing:0;vertical-align:middle;text-align:center}.btn>svg{flex:0 0 auto;width:17px;height:17px}.actions{flex-wrap:wrap;align-items:center;gap:9px}.actions>.btn{flex:0 0 auto;min-width:max-content}.property .actions>.btn.primary{flex:1 0 auto}.panel-head,.section-title{flex-wrap:wrap}.panel-head>div,.section-title>div{min-width:0}.panel-head>.btn,.section-title>.btn{max-width:none}.section-title>.actions{margin-left:auto}.row-actions{gap:9px}dialog .footer{flex-wrap:wrap}.crm-tabs,.section-tabs{flex-wrap:wrap}.crm-tabs .btn,.section-tabs .btn{min-width:max-content}.crm-facts .btn{min-width:max-content}
.journal-section-title{font-size:14px;color:var(--muted);margin:24px 0 14px}.journal-month-folders{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:13px}.journal-month-folder{display:flex;align-items:center;gap:15px;min-height:85px;text-align:left;padding:19px;border:1px solid var(--line);border-radius:11px;background:#fff;color:var(--ink);font:inherit;transition:border-color .15s,background .15s}.journal-month-folder:hover{border-color:#cf9aa7;background:#fdf6f8}.journal-month-folder>svg{width:31px;height:31px;flex-shrink:0;color:var(--red)}.journal-month-folder strong{display:block;font-weight:650;font-size:14px}.journal-month-folder small{display:block;color:var(--muted);font-size:12px;margin-top:5px}.folder-chevron{margin-left:auto;color:#9b6573;font-size:24px}.journal-customer-heading{display:flex;align-items:center;gap:10px;margin-top:29px;padding:0 0 14px}.journal-customer-heading h3{font-size:15px;margin:0}.journal-toolbar .range{display:flex;flex-wrap:wrap;gap:8px}.journal-month-folder:focus-visible{outline:3px solid #c5294640;outline-offset:3px}
@media(max-width:700px){.actions{gap:9px}.section-title>.actions{margin-left:0;width:100%}.actions>.btn{min-height:44px}.panel-head{gap:14px}.journal-month-folders{grid-template-columns:1fr}.journal-month-folder{min-height:82px}.journal-toolbar .range .btn{flex:0 0 auto}.journal-toolbar .range .btn.primary{flex-grow:1}.crm-tabs .btn,.section-tabs .btn{flex:1 0 auto}.row-actions .btn{min-height:42px}}
/* Customer names and case titles are content, so these links may wrap naturally. */
.btn[data-crm-case],.btn[data-crm-contact]{white-space:normal;overflow-wrap:anywhere;max-width:100%;min-width:0;text-align:left}
.range{display:flex;flex-wrap:wrap;align-items:center;gap:7px}
/* Keep wide tables inside their scroll area instead of expanding the workspace. */
.main,.panel,.property,.package{min-width:0}.table-wrap{max-width:100%}.detail{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:1000px){.detail{grid-template-columns:minmax(0,1fr)}}

/* Calendar stays inside CRM; content never squeezes the shared action buttons. */
.calendar-panel{margin-top:24px}.private-calendar-frame{width:100%;min-height:1120px;border:1px solid var(--border,#e2e6ee);border-radius:10px;background:#fff}.calendar-setup{display:grid;grid-template-columns:1fr 1fr;gap:20px}.calendar-setup>div:last-child{grid-column:1/-1}.calendar-setup p{margin-top:6px;color:#707b8e}@media(max-width:650px){.calendar-setup{grid-template-columns:1fr}.private-calendar-frame{min-height:1450px}}
