/* Sinalis RF: shared application identity. RF scales and semantic status colors are unchanged. */
@font-face{font-family:Sinalis Lato;src:url('../fonts/lato/Lato-Regular.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:Sinalis Lato;src:url('../fonts/lato/Lato-Bold.ttf') format('truetype');font-weight:700 900;font-display:swap}
:root,html[data-theme]{
  --theme-brand-primary:#123c78;--theme-brand-primary-strong:#09245c;
  --theme-brand-accent:#ca1235;--theme-brand-accent-soft:#ffced7;
  --theme-topbar:#09245c;--theme-footer:#09245c;
  --theme-sidebar:linear-gradient(180deg,#0d2c62,#091e42);
  --theme-sidebar-active:#264b81;--theme-sidebar-active-border:#5575a4;
  --theme-topbar-control:#1e3a69;--theme-topbar-control-hover:#2d4e7f;
  --theme-primary-button:#123c78;--theme-primary-button-hover:#09245c;
  --theme-primary-button-border:#123c78;--theme-primary-button-shadow:0 3px 9px #09245c20;
  --theme-hero:linear-gradient(120deg,#09245c,#153b74);--theme-metric:#123c78;
}
html[data-theme="light"]{
  --theme-topbar:#fff;--theme-footer:#edf1f7;--theme-sidebar:#f4f6fa;
  --theme-sidebar-active:#e1e9f5;--theme-sidebar-active-border:#c4d2e7;
  --theme-topbar-control:#edf1f7;--theme-topbar-control-hover:#e1e9f5;
  --theme-metric:#edf1f7;--theme-hero:linear-gradient(120deg,#fff,#e7eef8);
}
body,body.app-auth{
  --brand-primary:#123c78;--brand-primary-strong:#09245c;--brand-accent:#ca1235;--brand-accent-soft:#ffced7;
  --focus:0 0 0 3px #3159a13d;font-family:'Sinalis Lato',Arial,sans-serif;
}
body.app-auth .app-topbar{border-bottom:3px solid #ca1235}
.brand-logo img,.login-eftx-brand img,.register-eftx-brand img,.sinalis-brand img,.adt-brand-logo{
  object-fit:contain!important;filter:none!important;background:#fff;border-radius:4px;
}
body .brand-logo img{width:150px;height:50px;max-width:100%;padding:1px 5px}
body .login-eftx-brand img,body .register-eftx-brand img{width:210px;height:70px;padding:4px}
.sinalis-brand{display:inline-flex;align-items:center;flex:none;max-width:100%;vertical-align:middle}
.sinalis-brand img{display:block;width:120px;height:40px;padding:2px 5px;max-width:100%}
body .adt-brand-logo{width:135px;height:45px;padding:2px 5px}
#topbar .brand{margin-right:8px}#topbar .sinalis-brand img{width:102px;height:34px}
.mn-map-toolbar .sinalis-brand,.hf-map-toolbar .sinalis-brand{margin:0 10px 4px 0}
.sinalis-map-corner{position:fixed;right:12px;bottom:30px;z-index:20}
.public-auth-page .btn-primary{background:#123c78;border-color:#123c78;color:#fff}
.public-auth-page .btn-primary:hover{background:#09245c;border-color:#09245c}
#v-spacing-reference{display:block;margin-top:.4rem;line-height:1.45;color:var(--text-soft,#40536b)}
#v-spacing-reference[data-state="custom"]{padding:.55rem .7rem;border-left:3px solid #a86100;background:#fff4df;color:#694000}
#v-spacing-use-lambda{margin-top:.5rem;min-height:36px}
#project-form fieldset,#project-form .form-field{min-width:0}
#project-form .form-field :is(input,select,textarea){max-width:100%;min-width:0}
@media(max-width:600px){#project-form .project-grid-identity{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){body .brand-logo img{width:120px;height:40px}.sinalis-brand img{width:105px;height:35px}}
@media print{.sinalis-map-corner{display:none}}

.topbar-quick-links{display:flex;align-items:center;gap:5px;min-width:0;margin-left:auto}
.topbar-quick-links a{display:inline-flex;align-items:center;gap:6px;color:var(--theme-topbar-text,#fff);min-height:36px;padding:6px 9px;border-radius:7px;text-decoration:none;font-size:12px;white-space:nowrap}
.topbar-quick-links a:hover,.topbar-quick-links a:focus-visible{background:var(--theme-topbar-control-hover,#2d4e7f);outline-offset:2px}
@media(min-width:901px){.app-auth .app-topbar #app-nav-toggle{display:none!important}.app-topbar .topbar-context{max-width:240px}.app-topbar .topbar-actions{margin-left:10px}}
@media(min-width:901px) and (max-width:1200px){.topbar-quick-links a{font-size:11px;padding:5px}.topbar-quick-links a i{display:none}.app-topbar .topbar-context{max-width:130px}}
@media(max-width:900px){.topbar-quick-links{display:none}}

/* Keep the mobile toggle usable while its drawer is open. */
@media(max-width:900px){.app-auth .app-topbar{z-index:1410}.app-auth #app-sidebar.sidebar-v2{top:var(--app-topbar-height,64px);height:calc(100dvh - var(--app-topbar-height,64px))}}
