/* Appearance layer. Light mode keeps the existing site palette. */
.m24-theme-control {display:inline-flex;align-items:center;gap:6px;flex-shrink:0;margin:0;font:500 12px/1.3 system-ui,sans-serif;color:#374151;}
.m24-theme-control select {width:122px;min-height:36px;padding:6px 22px 6px 9px;border:1px solid #cbd5e1;border-radius:9px;background-color:#fff;color:#273244;cursor:pointer;font:inherit;font-size:12px!important;line-height:1.3!important;}
.m24-theme-control select:focus-visible {outline:3px solid #e30613;outline-offset:3px;}
.m24-theme-icon {font-size:20px;line-height:1;}
.m24-theme-standalone {position:fixed;top:12px;right:12px;z-index:1050;padding:5px;border-radius:12px;background:#fff;box-shadow:0 3px 16px #0002;}
html[data-m24-theme="dark"] .m24-theme-standalone {background:var(--m24-theme-surface);}
html[data-m24-theme] {overflow-x:hidden;}
html[data-m24-theme] :is(.m24-hero,.m24-business-hero,.form-section,.image-section) {overflow:clip;}
html[data-m24-brand="business"] .container {padding-inline:20px!important;}
html[data-m24-theme="dark"] {
 --m24-theme-bg:#0d1420;--m24-theme-surface:#172131;--m24-theme-raised:#202d40;--m24-theme-text:#edf2f9;--m24-theme-muted:#b1bfd1;--m24-theme-line:#3b4c62;
 --m24-black:#edf2f9!important;--m24-grey:#b1bfd1!important;--m24-light:#172131!important;--m24-border:#3b4c62!important;
 --m24-text:#edf2f9!important;--m24-muted:#b1bfd1!important;
 --bg:#0d1420!important;--text:#edf2f9!important;
 --bs-body-bg:#0d1420;--bs-body-color:#edf2f9;--bs-secondary-color:#b1bfd1;--bs-tertiary-bg:#202d40;--bs-border-color:#3b4c62;
 background:#0d1420;color:#edf2f9;color-scheme:dark;
}
html[data-m24-theme="dark"] body {background:var(--m24-theme-bg)!important;color:var(--m24-theme-text)!important;}
html[data-m24-theme="dark"] :is(.m24-header,.m24-navbar,.m24-navigation,.header,.navbar,.offcanvas,.dropdown-menu,.modal-content,.login-required-box) {background:var(--m24-theme-surface)!important;color:var(--m24-theme-text)!important;border-color:var(--m24-theme-line)!important;}
html[data-m24-theme="dark"] .navbar-blue {background:#102a46!important;}
html[data-m24-theme="dark"] :is(.m24-hero,.m24-business-hero,.m24-section-light,.m24-services,.m24-how,.m24-request,.m24-packages,.feature-block,.feature-block:nth-child(even),#naruci,#zatraziuslugu,#zatraziuslugu-pravna,.main-content,.bg-light,.bg-body-tertiary) {background:var(--m24-theme-bg)!important;color:var(--m24-theme-text)!important;}
html[data-m24-theme="dark"] :is(.card,.card-body,.card-header,.card-footer,.package-box,.package-card,.paket-card,.m24-package-card,.m24-service-card,.m24-hero-card,.m24-hero-service,.m24-how-card,.m24-step,.m24-review-card,.m24-testimonial-card,.m24-request-box,.m24-request-card,.m24-contact-card,.m24-feature-card,.m24-benefit-card,.m24-magazine-card,.login-box,.register-box,.form-container,.profile-card,.profile-box,.kartica-item,.list-group-item,.accordion-item,.accordion-body,.bg-white) {background:var(--m24-theme-surface)!important;color:var(--m24-theme-text)!important;border-color:var(--m24-theme-line)!important;box-shadow:0 8px 24px #0003;}
html[data-m24-theme="dark"] :is(.login-card,.form-section,.registration-card,.m24-card,.m24-cart-item,.m24-empty-cart,.m24-confirm-card,.m24-card-option,.m24-package-option,.m24-package-summary,.m24-payment-option,.m24-total-box,.m24-request-wrapper,.m24-login-box,.m24-business-card,.user-block,.admin-card,.article-card,.card-box,.card-custom,.card-main,.card-review,.contact-card,.content-card,.form-card,.info-box,.info-card,.modal-box-custom,.modal-box-small,.notice-box,.package-bonitet,.package-navigation,.payment-box,.policy-card,.problem-card,.registration-card,.request-box,.review-card,.service-card,.sms-box,.terms-card,.summary,.package,.contact,.safety,.safety-box) {background:var(--m24-theme-surface)!important;color:var(--m24-theme-text)!important;border-color:var(--m24-theme-line)!important;}
html[data-m24-theme="dark"] :is(.m24-empty-cart-icon,.m24-card-icon,.m24-card-symbol,.m24-service-icon,.m24-hero-service-icon,.m24-icon-btn,.m24-no-cards,.m24-confirm-action,.m24-package-preview,.package-bonitet,.package-promo,.price-note,.highlight,.price-badge,.heating-note,.stats-badge,.expect-box,.emergency-box,.bg-light-transparent,.m24-modal-header,.modal-header,.m24-card-modal-footer) {background:var(--m24-theme-raised)!important;border-color:var(--m24-theme-line)!important;}
html[data-m24-theme="dark"] :is(h1,h2,h3,h4,h5,h6,.m24-title,.m24-title-small,.card-title,.form-label,label,legend,.modal-title,.accordion-button,.m24-nav-action,.nav-link,.dropdown-item,.package-header h3,.m24-hero-service strong,.text-dark,.text-body,.text-black) {color:var(--m24-theme-text)!important;}
html[data-m24-theme="dark"] :is(p,.m24-text,.text-muted,.text-secondary,.m24-hero-subtitle,.m24-hero-service small,.card-text,.form-text,small) {color:var(--m24-theme-muted);}
html[data-m24-theme="dark"] :is(.text-muted,.text-secondary) {color:var(--m24-theme-muted)!important;}
html[data-m24-theme="dark"] :is(a:not(.btn):not([class*="btn"]):not(.m24-nav-action):not(.nav-link),.text-danger,.m24-eyebrow,.m24-hero h1 span) {color:#ff7982!important;}
html[data-m24-theme="dark"] :is(.m24-primary-action,.m24-btn-primary,.btn-danger,.btn-primary,.cta-btn) {color:#fff!important;}
html[data-m24-theme="dark"] :is(.m24-nav-action:hover,.nav-link:hover,.dropdown-item:hover,.dropdown-item:focus,.accordion-button,.accordion-button:not(.collapsed),.btn-top,.tab-btn,.status-pill,.m24-btn-secondary,.btn-light,.btn-secondary,.btn-outline-secondary,.page-link) {background:var(--m24-theme-raised)!important;color:var(--m24-theme-text)!important;border-color:var(--m24-theme-line)!important;}
html[data-m24-theme="dark"] :is(.tab-btn.active,.nav-pills .nav-link.active) {background:#174b7b!important;color:#fff!important;}
html[data-m24-theme="dark"] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),select,textarea,.form-control,.form-select,.input-group-text) {background-color:var(--m24-theme-bg)!important;color:var(--m24-theme-text)!important;border-color:#5a6d86!important;}
html[data-m24-theme="dark"] :is(input,textarea)::placeholder {color:#a6b5c9!important;opacity:1;}
html[data-m24-theme="dark"] :is(input,select,textarea):disabled {background:#263347!important;color:#a6b5c9!important;}
html[data-m24-theme="dark"] :is(input,select,textarea):focus {border-color:#ff7982!important;box-shadow:0 0 0 3px #ff798233!important;}
html[data-m24-theme="dark"] :is(input[type="checkbox"],input[type="radio"]) {accent-color:#e30613;}
html[data-m24-theme="dark"] :is(table,.table) {color:var(--m24-theme-text)!important;--bs-table-bg:var(--m24-theme-surface);--bs-table-color:var(--m24-theme-text);--bs-table-striped-bg:#202d40;--bs-table-striped-color:var(--m24-theme-text);--bs-table-hover-bg:#2b3b51;--bs-table-hover-color:var(--m24-theme-text);--bs-table-border-color:var(--m24-theme-line);}
html[data-m24-theme="dark"] :is(th,td,.table>thead,.table>tbody) {background-color:var(--m24-theme-surface)!important;color:var(--m24-theme-text)!important;border-color:var(--m24-theme-line)!important;}
html[data-m24-theme="dark"] :is(hr,.border,.border-bottom,.border-top) {border-color:var(--m24-theme-line)!important;}
html[data-m24-theme="dark"] :is(footer,.m24-footer,.footer) {background:#09111e!important;color:var(--m24-theme-text)!important;}
html[data-m24-theme="dark"] .alert-success {background:#103b2d!important;color:#b5f3d0!important;border-color:#367f61!important;}
html[data-m24-theme="dark"] .alert-danger {background:#451d2b!important;color:#ffc3c9!important;border-color:#a24c5b!important;}
html[data-m24-theme="dark"] .alert-warning {background:#3b3016!important;color:#ffe5a4!important;border-color:#8a7033!important;}
html[data-m24-theme="dark"] .alert-info {background:#12344b!important;color:#b8e5ff!important;border-color:#437e9e!important;}
html[data-m24-theme="dark"] .btn-close {filter:invert(1) grayscale(1) brightness(2);}
html[data-m24-theme="dark"] .navbar-toggler-icon {filter:brightness(0) invert(1);}
html[data-m24-theme="dark"] .m24-menu-toggle span {background:#edf2f9!important;}
html[data-m24-theme="dark"] .m24-menu-toggle {background:var(--m24-theme-raised)!important;border-color:var(--m24-theme-line)!important;}
html[data-m24-theme="dark"] :is(.m24-trust-item,.m24-trust-item span,.m24-hero-card small,.m24-package-subtitle,.package-subtitle,.m24-package-features,.package-features) {color:var(--m24-theme-muted)!important;}
html[data-m24-theme="dark"] .navbar-brand img {background:#fff;border-radius:8px;padding:4px;}
html[data-m24-theme="dark"] .m24-theme-control {color:var(--m24-theme-text);}
@media(max-width:900px){.m24-theme-control select{width:108px;}.m24-theme-icon{display:none;}}
@media print{html[data-m24-theme] body{background:#fff!important;color:#000!important;}.m24-theme-control{display:none!important;}}

html[data-m24-theme="dark"] .header img[src="/img/majstor24.png"],
html[data-m24-theme="dark"] .m24-payment-logokupipaket img { background:#fff; border-radius:8px; padding:8px; }

.m24-theme-footer-control {display:flex;justify-content:center;padding:20px 16px;position:relative;}
.m24-theme-footer-control .m24-theme-control {gap:12px;}
.m24-theme-footer-standalone {background:#f5f6f8;border-top:1px solid #cbd5e1;}
@media print {.m24-theme-footer-control {display:none!important;}}

/* Keep CRM product descriptions readable against dark package cards. */
html[data-m24-theme="dark"] .package-box .package-features :is(li,p,span,div,strong,em) {color:var(--m24-theme-text)!important;}
