/* CALEGAL V61: latest overrides; keep after conditional styles. */

/* --- calegal-v56.css --- */
/* V56 – compact business-category editor */
.ca-inquiry-wrap .ca-inquiry-table th,.ca-inquiry-wrap .ca-inquiry-table td{padding:5px 9px!important;line-height:1.25!important;vertical-align:middle!important}
.ca-inquiry-wrap .ca-inquiry-table input,.ca-inquiry-wrap .ca-inquiry-table select{min-height:30px!important;padding:3px 7px!important;font-size:13px!important;line-height:1.25!important;margin:0!important}
.ca-inquiry-wrap .ca-inquiry-table .ca-check{line-height:1.25!important;margin:0!important;white-space:nowrap}
.ca-inquiry-wrap .ca-inquiry-table .ca-check input{min-height:auto!important}
@media(max-width:760px){.ca-inquiry-wrap .ca-inquiry-table th,.ca-inquiry-wrap .ca-inquiry-table td{padding:5px!important}}

/* V56: member management only — eliminate inherited app container padding and mt-5. */
.site-main > .container.admin-member-list {
  margin-top: 0 !important;
  padding-top: 12px !important;
  padding-bottom: 36px !important;
}
.site-main > .container.admin-member-list > h2 {
  margin-top: 0 !important;
  margin-bottom: 16px !important;
  font-size: clamp(22px, 2vw, 27px) !important;
  line-height: 1.3;
  font-weight: 500;
}
@media (max-width: 767px) {
  .site-main > .container.admin-member-list { padding-top: 8px !important; }
}


/* --- calegal-v58.css --- */
/* V58: calmer admin heading scale, keep customer and public typography unchanged. */
body.page-app .site-main > .container.ca58-admin-page { padding-top: 18px !important; }
body.page-app .ca58-admin-page .ca58-admin-heading { padding: 0 0 12px; margin: 0 0 17px !important; border-bottom: 1px solid #e1e7eb; }
body.page-app .site-main .ca58-admin-heading h1 { font-size: clamp(21px,1.85vw,25px) !important; line-height: 1.3 !important; font-weight: 540 !important; letter-spacing: -.025em; margin: 2px 0 5px !important; }
body.page-app .ca58-eyebrow { font-size: 11px; color: #768998; letter-spacing: .08em; }
body.page-app .ca58-admin-heading p { font-size: 12.75px; line-height: 1.4; }
body.page-app .ca58-site-update .card h2 { font-size: 16.5px !important; font-weight: 550 !important; line-height: 1.35; }
body.page-app .site-main .admin-dashboard-page .dashboard-heading h1 { font-size: clamp(23px,2vw,29px) !important; font-weight: 550 !important; }
body.page-app .site-main .admin-member-list > h2,
body.page-app .site-main .admin-member-heading h1,
body.page-app .site-main .admin-journal-page .admin-journal-header h1,
body.page-app .site-main .ca-customer-heading h1,
body.page-app .site-main .ca-admin-inquiry-list-page .ca-inquiry-heading h1 { font-size: clamp(22px,2vw,28px) !important; font-weight: 550 !important; line-height:1.32 !important; }
body.page-app .ca58-order-table { font-size: 14px; }
body.page-app .ca58-order-table :is(td,th) { padding: 9px 12px; }
body.page-app .ca58-order-settings .btn { font-weight: 520; }
@media (max-width:600px) {
  body.page-app .site-main > .container.ca58-admin-page {padding-top:12px !important;}
  body.page-app .ca58-admin-page .ca58-admin-heading { margin-bottom:11px !important; }
}

/* Same restrained main-heading scale on all admin routes, not on customer pages. */
body.page-admin .site-main > .container > h1,
body.page-admin .site-main > .container > h2,
body.page-admin .site-main > .container > header h1,
body.page-admin .site-main > .container-xl > header h1,
body.page-admin .site-main > .container > .admin-journal-header h1 {
  font-size: clamp(22px,2vw,28px) !important;
  font-weight: 550 !important;
  line-height: 1.3 !important;
}


/* --- calegal-v59.css --- */
/* V59: full admin tile click target, independent secondary actions, live order numbers. */
body.page-admin .admin-dashboard-page .dashboard-tile {position:relative;cursor:pointer;isolation:isolate;}
body.page-admin .admin-dashboard-page .dashboard-tile-main::after {content:"";position:absolute;inset:0;z-index:1;}
body.page-admin .admin-dashboard-page .dashboard-tile-sub {position:relative;z-index:2;padding:6px 5px;margin:-6px -5px -6px 0;}
body.page-admin .admin-dashboard-page .dashboard-tile:has(.dashboard-tile-main:focus-visible) {outline:3px solid #6c97b1;outline-offset:2px;}
body.page-admin .admin-dashboard-page .dashboard-tile:hover {background:#f9fbfc;border-color:#aabec9;box-shadow:0 5px 14px rgba(25,55,76,.075);}
body.page-admin .admin-dashboard-page .ca59-tile-number {position:absolute;right:13px;top:10px;display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border:1px solid #dce5e9;border-radius:50%;background:#f5f8fa;color:#536978;font-size:12px;font-weight:550;pointer-events:none;}
body.page-admin .admin-dashboard-page .dashboard-tile-label {padding-right:22px;}
/* One consistent, restrained level for entry-page headings in every admin module. */
body.page-admin .site-main :is(.dashboard-heading,.ca-inquiry-heading,.ca-customer-heading,.admin-journal-header,.admin-member-heading,.ca58-admin-heading) h1,
body.page-admin .site-main > .container > h1,
body.page-admin .site-main > .container > h2,
body.page-admin .site-main > .container > header h1,
body.page-admin .site-main > .container-xl > header h1,
body.page-admin .site-main .admin-member-list > h2 {
  font-size:clamp(21px,1.85vw,25px)!important;line-height:1.3!important;font-weight:540!important;
}
body.page-admin .site-main .dashboard-tile h2 {font-size:19px!important;}
.ca59-contact-inquiry {margin:12px 0 16px;}
.ca59-inquiry-button {background:#234a60!important;border:1px solid #234a60!important;color:#fff!important;font-weight:550;padding:9px 19px;border-radius:7px;}
.ca59-inquiry-button:hover,.ca59-inquiry-button:focus-visible {background:#173647!important;border-color:#173647!important;color:#fff!important;}
@media(max-width:600px){body.page-admin .admin-dashboard-page .ca59-tile-number{top:8px;right:10px;}}


/* --- calegal-v60.css --- */
/* CALEGAL.NET V60: compact update upload view and related admin heading spacing. */
body.page-admin .site-main > .container.ca58-site-update {
  padding-top: 7px !important;
}
body.page-admin .ca58-site-update .ca58-admin-heading {
  padding-bottom: 7px !important;
  margin-bottom: 8px !important;
  row-gap: 4px !important;
}
body.page-admin .ca58-site-update .ca58-admin-heading p {margin-bottom:2px !important;}
body.page-admin .ca58-site-update .ca37-version-panel {margin-bottom: 9px !important;}
body.page-admin .ca58-site-update .ca37-version-panel .card-body {padding:8px 13px !important;}
body.page-admin .ca58-site-update .ca37-version-policy {margin-top: 2px !important;line-height:1.3;}
body.page-admin .ca58-site-update > section.card {margin-bottom: 12px !important;}
body.page-admin .ca58-site-update > section.card > .card-body.p-4 {padding:14px 17px !important;}
body.page-admin .ca58-site-update > section.card .card-body > h2 {margin-bottom: 5px !important;}
body.page-admin .ca58-site-update > section.card .card-body > p {margin-bottom: 9px !important;line-height:1.4;}
body.page-admin .ca58-site-update #updateZip {margin-bottom:8px !important;}
body.page-admin .ca58-site-update .form-label {margin-bottom: 4px;}
@media (max-width:600px) {
 body.page-admin .site-main > .container.ca58-site-update {padding-top:5px !important;}
 body.page-admin .ca58-site-update > section.card > .card-body.p-4 {padding:12px 13px !important;}
}


/* V62: Rich-text journal alignment after Quill migration. */
.ql-align-center{text-align:center}.ql-align-right{text-align:right}.ql-align-justify{text-align:justify}
.ql-indent-1{padding-left:2em}.ql-indent-2{padding-left:4em}.ql-indent-3{padding-left:6em}
.calegal-journal-editor .ql-editor{min-height:350px;font-size:16px;line-height:1.6}
.calegal-journal-editor.ql-container{background:#fff}
