/* HiDEAL V36 — purely scoped presentation corrections. Existing business logic untouched. */
html { --hd36-primary:var(--primary,#1668D2); }
/* Gallery/Property and breadcrumb keep theme border even with inline styles. */
body.hd03-inner-page .hd-inner-breadcrumb,
body.hd03-inner-page #hidealRouteContent > .boxmiddle,
body.hd03-inner-page #hidealRouteContent .boxmiddle,
body.hd03-inner-page .gallery-grid,
body.hd03-inner-page .agent-card {border-color:var(--hd-border,var(--primary,#1668D2))!important;}
body.hd03-inner-page .agent-card .agent-action-row>button:first-child,
body.hd03-inner-page .agent-card button[onclick*="openPublicProfile"] {background:var(--primary,#1668D2)!important;color:#fff!important;}
/* Real chat DOM is #chatBoxContainer (scriptchat.php). Original markup uses
   inline #66ccff on CHAT MAIN, SEARCH, HEADER and HEADER-BOX. */
#chatBoxContainer.chat-container {border:1px solid var(--hd-border,#cbd5e1)!important;}
#chatBoxContainer .chat-main,
#chatBoxContainer .chat-search,
#chatBoxContainer .chat-header,
#chatBoxContainer .chat-header-box,
#chatBoxContainer .chat-top-row,
#chatBoxContainer .chat-actions-row {background-color:var(--primary,#1668D2)!important;}
#chatBoxContainer .chat-property-info {background:var(--hd-soft,#eaf5fc)!important;border-color:var(--hd-border,#cbd5e1)!important;}
#chatBoxContainer .chat-messages {background:var(--hd-page-bg,#f4f7fb)!important;}
#chatBoxContainer .chat-user.active {background:var(--hd-soft,#eaf5fc)!important;border-inline-start:3px solid var(--primary,#1668D2)!important;}
#chatBoxContainer .chat-property-btn button,
#chatBoxContainer .prop-btn button,
#chatBoxContainer .send-btn,
#chatBoxContainer .chat-avatar-icon {background:var(--primary,#1668D2)!important;border-color:var(--primary,#1668D2)!important;color:white!important;}
#chatBoxContainer .prop-price {color:var(--primary,#1668D2)!important;}
#chatBoxContainer .chat-input-wrapper {border-color:var(--hd-border,#cbd5e1)!important;}
/* ViewData and property dashboard: replace presentation-only blue tokens.
   Keep destructive statuses (red), approval statuses (green), and chart series as they are. */
body.hd03-inner-page .hideal-viewdata-shell .hideal-nav-btn,
body.hd03-inner-page .hideal-viewdata-shell button:not(.btn-danger):not(.delete):not([data-status="Rejected"]),
body.hd03-inner-page .hideal-viewdata-shell a.hideal-nav-btn,
body.hd03-inner-page .hideal-cityedit-shell .workflow-nav-button,
body.hd03-inner-page .hideal-cityedit-shell .step.active .circle,
body.hd03-inner-page .hideal-cityedit-shell .progress-fill {background-color:var(--primary,#1668D2)!important;border-color:var(--primary,#1668D2)!important;}
body.hd03-inner-page .hideal-viewdata-shell .hideal-nav-btn {color:#fff!important;}
/* Full-width outer shells; 70%-width inner forms only, 15% gap on either side. */
@media(min-width:1000px){
 body.hd03-inner-page #hidealRouteContent .hideal-form-v35,
 body.hd03-inner-page #hidealRouteContent .hideal-cityedit-shell {width:100%!important;max-width:100%!important;margin-left:auto!important;margin-right:auto!important;float:none!important;}
 body.hd03-inner-page #hidealRouteContent .hideal-form-v35 form,
 body.hd03-inner-page #hidealRouteContent .hideal-form-v35 .hideal-form-heading-shell,
 body.hd03-inner-page #hidealRouteContent .hideal-form-v35 .w3-container.city,
 body.hd03-inner-page #hidealRouteContent .hideal-cityedit-shell form,
 body.hd03-inner-page #hidealRouteContent .hideal-cityedit-shell .w3-container.city {width:70%!important;max-width:70%!important;margin-left:15%!important;margin-right:15%!important;float:none!important;box-sizing:border-box!important;left:auto!important;transform:none!important;}
 body.hd03-inner-page #hidealRouteContent .hideal-form-v35 > .row {width:100%!important;margin-left:0!important;margin-right:0!important;}
}
@media(max-width:999px){
 body.hd03-inner-page #hidealRouteContent .hideal-form-v35,
 body.hd03-inner-page #hidealRouteContent .hideal-cityedit-shell,
 body.hd03-inner-page #hidealRouteContent .hideal-form-v35 form,
 body.hd03-inner-page #hidealRouteContent .hideal-cityedit-shell form,
 body.hd03-inner-page #hidealRouteContent .hideal-cityedit-shell .w3-container.city {width:100%!important;max-width:100%!important;margin-left:auto!important;margin-right:auto!important;}
}

/* Additional ViewData and Property Dashboard components (actual uploaded selectors). */
body.hd03-inner-page .hideal-viewdata-shell .hideal-nav-actions,
body.hd03-inner-page .hideal-viewdata-shell table,
body.hd03-inner-page .bi-header,
body.hd03-inner-page .bi-tabs {border-color:var(--hd-border,#cbd5e1)!important;}
body.hd03-inner-page .bi-header {background:var(--hd-soft,#eff8ff)!important;}
body.hd03-inner-page .bi-title {color:var(--hd-dark,#144563)!important;}
body.hd03-inner-page .bi-tabs .nav-tabs>li.active>a,
body.hd03-inner-page .bi-wrapper a.view-btn,
body.hd03-inner-page .bi-wrapper .scrollBtn,
body.hd03-inner-page .bi-wrapper .action-toolbar a:not(.btn-danger),
body.hd03-inner-page .hideal-viewdata-shell button[onclick^="saveStatus"],
body.hd03-inner-page .hideal-viewdata-shell button#loadMoreBtn {background:var(--primary,#1668D2)!important;border-color:var(--primary,#1668D2)!important;color:#fff!important;}
body.hd03-inner-page .bi-wrapper .nav-tabs>li>a:not(.active) {color:var(--hd-dark,#144563)!important;}
body.hd03-inner-page .hideal-viewdata-shell a:hover,
body.hd03-inner-page .hideal-viewdata-shell .text-primary {color:var(--primary,#1668D2)!important;}
