/* HiDEAL V40: narrowly scoped fixes. DB-defined --primary is authoritative. */
:root{--hd40-accent:var(--primary,#087e70);--hd40-soft:var(--hd-soft,#eff8f7);}
/* Keep breadcrumb and outer form panel to the same width; do not constrain outer shell. */
#hidealRouteContent,#hidealRouteContent>.boxmiddle,#hidealRouteContent>.container-fluid,
#hidealRouteContent .hideal-form-outer,
#hidealRouteContent .hideal-cityedit-shell,
#hidealRouteContent .hideal-form-heading-shell{max-width:100%!important;box-sizing:border-box!important;}
#hidealRouteContent .hideal-form-outer{width:100%!important;margin-inline:auto!important;}
/* Form fields centered; do NOT squeeze table screens. */
#hidealRouteContent .hideal-form-outer form,
#hidealRouteContent .hideal-cityedit-shell form,
#hidealRouteContent form[action*="cityEdit.php"]{width:80%!important;max-width:80%!important;margin-inline:auto!important;box-sizing:border-box!important;}
#hidealRouteContent .hideal-cityedit-shell form,
#hidealRouteContent form[action*="cityEdit.php"]{width:90%!important;max-width:90%!important;}
@media(max-width:780px){#hidealRouteContent .hideal-form-outer form,#hidealRouteContent .hideal-cityedit-shell form,#hidealRouteContent form[action*="cityEdit.php"]{width:100%!important;max-width:100%!important;}}
/* Theme inputs, upload boxes, progress steps and action buttons. */
#hidealRouteContent .hideal-richtext,#hidealRouteContent .hideal-upload-preview,#hidealRouteContent .hideal-field-row input:not([type=checkbox]):not([type=radio]),#hidealRouteContent .hideal-field-row select,#hidealRouteContent .hideal-field-row textarea{border-color:var(--hd40-accent)!important;}
#hidealRouteContent .progress-fill,#hidealRouteContent .step.active .circle,#hidealRouteContent .workflow-nav-button{background:var(--hd40-accent)!important;border-color:var(--hd40-accent)!important;}
#hidealRouteContent .workflow-nav-button,#hidealRouteContent .hideal-nav-btn,#hidealRouteContent .hideal-admin-toolbar-v23 a:not(.back),#hidealRouteContent .hideal-admin-toolbar-v23 button{color:#fff!important;}
#hidealRouteContent #newcheck thead th,#hidealRouteContent #newcheck thead td{background:var(--hd40-accent)!important;color:#fff!important;border-color:var(--hd40-accent)!important;}
#hidealRouteContent #loadMoreBtn,#hidealRouteContent #loadMoreBtn .btn-text,#hidealRouteContent #loadMoreBtn .btn-spinner{background:var(--hd40-accent)!important;border-color:var(--hd40-accent)!important;color:#fff!important;}
#hidealRouteContent [style*="background: #00AAFF"],#hidealRouteContent [style*="background-color:#00AAFF"]{background:var(--hd40-accent)!important;}
/* Service icons and popup status text: only monochrome service tiles. */
.services-wrap,.service-item{border-color:var(--hd40-accent)!important;}
.services-wrap{background:var(--hd40-soft)!important;}
.service-item:hover{background:var(--hd40-accent)!important;}
/* Keep all content text legible on dark theme actions. */
button[style*="background:var(--primary)"],.hideal-nav-btn,.workflow-nav-button{color:#fff!important;}
