/* ==========================================================
   EVCT Forms theme – "Colour top bar"
   Each section has its own colour: the top bar, menu highlight, buttons
   and table headings take the colour of the section you're in.
   Uses the fonts already on each device (nothing extra to download).
   Loaded after app.css.
   ========================================================== */
:root{--ink:#1f2433;--text:#363c4e;--muted:#6c7285;--faint:#a3a8b8;--line:#eceef4;--line-soft:#f4f5f9;--surface:#fff;--radius:16px;
 --font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;--alert:#e11d48;--alert-soft:#F0F0EE}
.ev-t-dash{--vivid:#6366f1;--accent:#4f46e5!important;--accent-hover:#4f46e5!important;--accent-soft:#eef0ff!important}
.ev-t-nonpay{--vivid:#f43f5e;--accent:#e11d48!important;--accent-hover:#e11d48!important;--accent-soft:#F0F0EE!important}
.ev-t-holdover{--vivid:#f97316;--accent:#c2410c!important;--accent-hover:#c2410c!important;--accent-soft:#fff4ec!important}
.ev-t-court{--vivid:#d946ef;--accent:#a21caf!important;--accent-hover:#a21caf!important;--accent-soft:#fdf0ff!important}
.ev-t-lease{--vivid:#8b5cf6;--accent:#6d28d9!important;--accent-hover:#6d28d9!important;--accent-soft:#f4f0ff!important}
.ev-t-rental{--vivid:#14b8a6;--accent:#0f766e!important;--accent-hover:#0f766e!important;--accent-soft:#ecfbf8!important}
.ev-t-deposit{--vivid:#22c55e;--accent:#15803d!important;--accent-hover:#15803d!important;--accent-soft:#effbf3!important}
.ev-t-inspect{--vivid:#eab308;--accent:#a16207!important;--accent-hover:#a16207!important;--accent-soft:#fefaea!important}
.ev-t-docs{--vivid:#0ea5e9;--accent:#0369a1!important;--accent-hover:#0369a1!important;--accent-soft:#ebf7fe!important}
.ev-t-tenants{--vivid:#3b82f6;--accent:#1d4ed8!important;--accent-hover:#1d4ed8!important;--accent-soft:#eef4ff!important}
.ev-t-owners{--vivid:#ec4899;--accent:#be185d!important;--accent-hover:#be185d!important;--accent-soft:#fdf0f7!important}
.ev-t-help{--vivid:#06b6d4;--accent:#0e7490!important;--accent-hover:#0e7490!important;--accent-soft:#ebfafd!important}

body{font-family:var(--font)!important;-webkit-font-smoothing:antialiased}
.header::after{display:none!important}
.header .logo span{background:none!important;-webkit-background-clip:border-box!important;background-clip:border-box!important;color:var(--ink)!important;font-weight:700}
.pagetitle h1::before{display:none!important}
.card{border:0!important;border-radius:var(--radius)!important;box-shadow:0 1px 2px rgba(31,36,51,.04),0 6px 20px rgba(31,36,51,.05)!important}
.card-title,.ev-dash-title,.ev-help-title{color:var(--ink)!important}
.table>thead th,.dataTable-table>thead>tr>th{text-transform:none!important;letter-spacing:0!important;font-size:13px!important;font-weight:600!important;background:var(--accent-soft)!important;color:var(--accent)!important;border:0!important}
.table>thead th:first-child{border-radius:10px 0 0 10px!important}.table>thead th:last-child{border-radius:0 10px 10px 0!important}
.ev-cards tbody td::before{text-transform:none!important;letter-spacing:0!important}
.sidebar-nav .nav-heading{text-transform:none!important;letter-spacing:0!important;font-size:12.5px!important;font-weight:600;color:var(--faint)!important}
.btn{border-radius:999px!important;font-weight:600}
.btn-sm{border-radius:10px!important}
.form-control,.form-select{border-radius:12px!important;border-color:#e2e5ee!important}
.ev-dash-title i,.ev-help-title i{color:var(--vivid)!important}
.ev-count{background:var(--accent)!important;color:#fff!important}
.sidebar{top:var(--header-h)!important}

/* P3 Colour header: the top bar takes the section colour */
body{background:#fafafc!important}
.header{background:var(--accent-strong-bg,#4f46e5)!important;box-shadow:none!important}
body.ev-t-dash .header{--accent-strong-bg:#4f46e5} body.ev-t-nonpay .header{--accent-strong-bg:#e11d48} body.ev-t-holdover .header{--accent-strong-bg:#c2410c}
body.ev-t-court .header{--accent-strong-bg:#a21caf} body.ev-t-lease .header{--accent-strong-bg:#6d28d9} body.ev-t-rental .header{--accent-strong-bg:#0f766e}
body.ev-t-deposit .header{--accent-strong-bg:#15803d} body.ev-t-inspect .header{--accent-strong-bg:#a16207} body.ev-t-docs .header{--accent-strong-bg:#0369a1}
body.ev-t-tenants .header{--accent-strong-bg:#1d4ed8} body.ev-t-owners .header{--accent-strong-bg:#be185d} body.ev-t-help .header{--accent-strong-bg:#0e7490}
.header .logo span,.header-nav .nav-profile{color:#fff!important}.toggle-sidebar-btn{color:rgba(255,255,255,.85)!important}
.header .ev-avatar{background:rgba(255,255,255,.2)!important;color:#fff!important}
.header .logo img{box-shadow:0 0 0 2px rgba(255,255,255,.4);border-radius:7px}
.sidebar{background:#fff!important;border-right:1px solid var(--line)!important}
.sidebar-nav .nav-link,.sidebar-nav .nav-link.collapsed{background:transparent!important;color:var(--text)!important;font-weight:500!important;border-radius:12px}
.sidebar-nav .nav-link i:first-child{width:30px;height:30px;border-radius:50%;background:var(--accent-soft)!important;color:var(--vivid)!important}
.sidebar-nav .nav-link:not(.collapsed){background:var(--accent-soft)!important;color:var(--accent)!important;font-weight:600!important}
.sidebar-nav .nav-link:not(.collapsed) i:first-child{background:var(--vivid)!important;color:#fff!important}
.sidebar-nav .nav-content a::before{background:var(--vivid)!important}
.pagetitle h1{font-size:26px;font-weight:700;color:var(--ink)}
.ev-quick a{border-radius:999px!important;border:1.5px solid var(--accent-soft)!important;background:#fff!important;color:var(--accent)!important;font-weight:600}
.ev-quick a i{color:var(--vivid)!important}
.ev-dash-card{background:linear-gradient(var(--accent-soft),var(--accent-soft)) top/100% 54px no-repeat,#fff!important}

/* anything marked hidden stays hidden, even with a display class */
[hidden]{display:none!important}
.ev-flex-note:not([hidden]){display:flex;gap:8px;align-items:flex-start}

/* notices */
.alert{border-radius:14px;border:0}
.alert-info{background:var(--accent-soft);color:#2b3157}
.alert-success{background:#effbf3;color:#14532d}
.alert-warning{background:#fefaea;color:#713f12}
.alert-danger{background:#F0F0EE;color:#9f1239}

/* sign-in page */
.ev-signin .card{box-shadow:0 2px 6px rgba(31,36,51,.05),0 16px 40px rgba(79,70,229,.10)!important}
.ev-signin{background:linear-gradient(180deg,#eef0ff 0,#fafafc 60%)}

/* phones and tablets: comfortable tap targets */
@media (max-width:1199px){
  .sidebar-nav .nav-link{padding:10px 10px!important}
}
@media (max-width:991px){
  .pagetitle h1{font-size:23px}
  .btn{min-height:44px}
  .table .btn-sm{min-width:38px;min-height:38px}
}
