/* ===================================================================
   ZEVION • Light Professional Theme Token (AdminLTE override)
   Version : 1.1.0  (core)
   Scope   : body.theme-zevion  (preporučeno)
   Brand   : Palette izvedena iz logo boje (#193046)
   =================================================================== */

/* ---------------------------------------------------------------
   1) TOKENS — PALETTE, NEUTRALS, TYPO, RADIUS, SHADOWS
   --------------------------------------------------------------- */
:root,
body.theme-zevion{
  /* Brand (iz logo hue) */
  --zv-brand-900: #1E3953; /* deep navy */
  --zv-brand-700: #2B5278; /* steel */
  --zv-brand-600: #3274B4; /* primary (interactions) */
  --zv-brand-100: #E8F1F9; /* subtle fill */
  --zv-brand-50:  #F4F8FC;

  /* Complement (za warning i akcente) */
  --zv-amber-600: #D18B47;

  /* Semantic (izvedeno iz brand hue) */
  --zv-primary:  var(--zv-brand-600);
  --zv-info:     #5190CD;
  --zv-success:  #34B271;
  --zv-warning:  var(--zv-amber-600);
  --zv-danger:   #BC2F30;

  /* Neutrals & surfaces */
  --zv-bg:             #FFFFFF;
  --zv-surface:        #FFFFFF;
  --zv-surface-subtle: #F7FAFE;
  --zv-surface-alt:    #F2F5F9;
  --zv-border:         #E5EDF5;
  --zv-divider:        #EDF2F7;

  /* Text/link */
  --zv-text:        #1F2937;
  --zv-text-muted:  #6B7280;
  --zv-link:        var(--zv-primary);
  --zv-link-hover:  #2B5F9B;

  /* Tables */
  --zv-striping: #FAFCFF;
  --zv-hover-row:#F2F7FF;

  /* Radii/shadows */
  --zv-radius-xs: 6px;
  --zv-radius-sm: 8px;
  --zv-radius-md: 12px;
  --zv-shadow-sm: 0 2px 6px rgba(31,41,55,.06);
  --zv-shadow-md: 0 6px 18px rgba(31,41,55,.08);
  --zv-shadow-lg: 0 12px 30px rgba(31,41,55,.10);

  /* Z-index (centralizovano) */
  --zv-z-modal-backdrop:  1090;
  --zv-z-modal:           1100;
  --zv-z-sticky:           1020;

  /* Chat/widget metrics */
  --chatSidebar-width-desktop:25%;
  --chatSidebar-width-tablet:50%;
  --chatSidebar-width-mobile:100%;
  --chat-widget-offset:20px;
  --chat-widget-width:350px;
  --chat-widget-height:500px;
  --chat-header-height:55px;
}

/* Base */
body.theme-zevion{background:var(--zv-bg);color:var(--zv-text)}
a{color:var(--zv-link);text-decoration:none}
a:hover{color:var(--zv-link-hover);text-decoration:underline}

/* Scrollbars (subtle) */
body.theme-zevion ::-webkit-scrollbar{height:10px;width:10px}
body.theme-zevion ::-webkit-scrollbar-thumb{background:#D8E2F0;border-radius:10px}
body.theme-zevion ::-webkit-scrollbar-thumb:hover{background:#C7D6EB}

/* ---------------------------------------------------------------
   2) LAYOUT / SIDEBAR OFFSETS  (čišće, bez duplikata)
   --------------------------------------------------------------- */
body.theme-zevion .content-wrapper,
body.theme-zevion .main-header,
body.theme-zevion .main-footer{transition:margin-left .25s ease-in-out}

/* expanded (desktop) */
@media (min-width:768px){
  body.theme-zevion:not(.sidebar-collapse) .content-wrapper,
  body.theme-zevion:not(.sidebar-collapse) .main-header,
  body.theme-zevion:not(.sidebar-collapse) .main-footer{margin-left:250px}
  /* mini + collapsed */
  body.theme-zevion.sidebar-mini.sidebar-collapse .content-wrapper,
  body.theme-zevion.sidebar-mini.sidebar-collapse .main-header,
  body.theme-zevion.sidebar-mini.sidebar-collapse .main-footer{margin-left:4.6rem}
  /* collapsed non-mini => full width */
  body.theme-zevion.sidebar-collapse:not(.sidebar-mini) .content-wrapper,
  body.theme-zevion.sidebar-collapse:not(.sidebar-mini) .main-header,
  body.theme-zevion.sidebar-collapse:not(.sidebar-mini) .main-footer{margin-left:0}
}
/* mobile: overlay */
@media (max-width:767.98px){
  body.theme-zevion .content-wrapper,
  body.theme-zevion .main-header,
  body.theme-zevion .main-footer{margin-left:0}
}

/* ---------------------------------------------------------------
   3) CARDS / TABS / PILLS
   --------------------------------------------------------------- */
body.theme-zevion .card{border:1px solid var(--zv-border);border-radius:var(--zv-radius-sm);box-shadow:var(--zv-shadow-sm);background:var(--zv-surface)}
body.theme-zevion .card-header{background:var(--zv-surface-subtle);border-bottom:1px solid var(--zv-border);font-weight:600}
body.theme-zevion .card-primary.card-outline{border-color:var(--zv-primary)!important}
body.theme-zevion .card-primary>.card-header{background:linear-gradient(180deg,#F4F8FF,#EBF2FF)}

/* Ensure card headers keep rounded top corners even with utility classes (d-flex, etc.) */
body.theme-zevion .card > .card-header:first-child{border-top-left-radius:var(--zv-radius-sm);border-top-right-radius:var(--zv-radius-sm)}
/* Mini / lite custom card shells reuse their own radii */
body.theme-zevion .card-mini > .card-header:first-child{border-top-left-radius:.5rem;border-top-right-radius:.5rem}
body.theme-zevion .card-lite > .card-header:first-child{border-top-left-radius:.65rem;border-top-right-radius:.65rem}
/* In case a header is the only child (no body), keep bottom radius off for visual consistency */
body.theme-zevion .card > .card-header:only-child{border-bottom-left-radius:var(--zv-radius-sm);border-bottom-right-radius:var(--zv-radius-sm)}
body.theme-zevion .card-mini > .card-header:only-child{border-bottom-left-radius:.5rem;border-bottom-right-radius:.5rem}
body.theme-zevion .card-lite > .card-header:only-child{border-bottom-left-radius:.65rem;border-bottom-right-radius:.65rem}

body.theme-zevion .nav-tabs .nav-link{color:var(--zv-text);border:1px solid transparent;border-top-left-radius:.5rem;border-top-right-radius:.5rem}
body.theme-zevion .nav-tabs .nav-link:hover{background:var(--zv-surface-subtle);color:var(--zv-primary)}
body.theme-zevion .nav-tabs .nav-link.active{background:#fff;color:var(--zv-primary);border-color:var(--zv-border) var(--zv-border) #fff;box-shadow:inset 0 -2px 0 var(--zv-primary)}
body.theme-zevion .nav-pills .nav-link{color:var(--zv-text)}
body.theme-zevion .nav-pills .nav-link:hover{background:var(--zv-surface-subtle);color:var(--zv-primary)}
body.theme-zevion .nav-pills .nav-link.active{background:var(--zv-primary)!important;color:#fff!important}

/* ---------------------------------------------------------------
   4) SIDEBAR & BRAND
   --------------------------------------------------------------- */
body.theme-zevion .brand-link{background:linear-gradient(90deg,var(--zv-brand-700) 0%, var(--zv-primary) 100%);color:#fff!important}
body.theme-zevion .brand-link .brand-image{opacity:.95;box-shadow:0 2px 8px rgba(0,0,0,.08)}
body.theme-zevion .main-sidebar{background:#fff;border-right:1px solid var(--zv-border);box-shadow:var(--zv-shadow-sm)}
body.theme-zevion .sidebar a{color:#334155!important}
body.theme-zevion .nav-sidebar .nav-link{border-radius:8px;margin:2px 8px;padding:.55rem .8rem}
body.theme-zevion .nav-sidebar .nav-link:hover{background:var(--zv-surface-subtle);color:var(--zv-primary)}
body.theme-zevion .nav-sidebar .nav-link.active{background:var(--zv-brand-100);color:var(--zv-primary);font-weight:700;box-shadow:inset 2px 0 0 var(--zv-primary)}
body.theme-zevion .content-wrapper{background:var(--zv-bg)}

/* ---------------------------------------------------------------
   5) TABLES
   --------------------------------------------------------------- */
body.theme-zevion .table{background:var(--zv-surface);border-color:var(--zv-border)}
body.theme-zevion .table th,
body.theme-zevion .table td{font-size:13px;padding:6px 10px;vertical-align:middle;text-align:center}
body.theme-zevion .table thead th{background:var(--zv-surface-subtle);color:var(--zv-text);border-bottom:1px solid var(--zv-border);font-weight:600}
body.theme-zevion .table-striped tbody tr:nth-child(even){background:var(--zv-striping)}
body.theme-zevion .table-hover tbody tr:hover{background:var(--zv-hover-row)}
/* sticky header primjer */
body.theme-zevion #worktrack thead th{position:sticky;top:0;background:var(--zv-surface-subtle);z-index:2}
body.theme-zevion .table-responsive{position:relative;border:1px solid var(--zv-border);border-radius:var(--zv-radius-sm);box-shadow:var(--zv-shadow-sm);background:var(--zv-surface)}

/* ---------------------------------------------------------------
   6) FORMS & SELECTS
   --------------------------------------------------------------- */
body.theme-zevion .form-control,
body.theme-zevion .form-select,
body.theme-zevion .select2-selection--single{
  background:#fff!important;color:var(--zv-text)!important;border:1px solid var(--zv-border)!important;
  border-radius:.55rem!important;transition:border-color .2s ease,box-shadow .2s ease
}
/* default (md) size controls: keep our comfy padding, but do NOT override sm/lg */
body.theme-zevion .form-control:not(.form-control-sm):not(.form-control-lg),
body.theme-zevion .form-select:not(.form-select-sm):not(.form-select-lg){
  padding:.45rem .75rem; /* no !important: allow size variants to win */
}
body.theme-zevion .form-control:focus,
body.theme-zevion .form-select:focus,
body.theme-zevion .select2-container--open .select2-selection--single{
  border-color:var(--zv-primary)!important;box-shadow:0 0 0 .2rem rgba(50,116,180,.15)!important;outline:none
}
body.theme-zevion input::placeholder, body.theme-zevion textarea::placeholder{color:#94A3B8;opacity:.9}
body.theme-zevion input[type=checkbox],body.theme-zevion input[type=radio]{accent-color:var(--zv-primary)!important}
body.theme-zevion .select2-results__option--highlighted[aria-selected]{background:var(--zv-primary)!important;color:#fff!important}
body.theme-zevion .select2-container--default .select2-selection--single,
body.theme-zevion .select2-container--bootstrap4 .select2-selection--single{display:flex!important;align-items:center!important}

/* ---------------------------------------------------------------
   7) BUTTONS
   --------------------------------------------------------------- */
body.theme-zevion .btn{border-radius:10px;padding:.45rem .9rem;font-weight:600;letter-spacing:.2px}
body.theme-zevion .btn:focus{box-shadow:0 0 0 .2rem rgba(50,116,180,.15)}
body.theme-zevion .btn-primary{background:var(--zv-primary)!important;border-color:var(--zv-primary)!important;color:#fff!important}
body.theme-zevion .btn-primary:hover{background:#2B5F9B!important;border-color:#2B5F9B!important}
body.theme-zevion .btn-secondary{background:#64748B!important;border-color:#64748B!important;color:#fff!important}
body.theme-zevion .btn-success{background:var(--zv-success)!important;border-color:var(--zv-success)!important}
body.theme-zevion .btn-info{background:var(--zv-info)!important;border-color:var(--zv-info)!important}
body.theme-zevion .btn-warning{background:var(--zv-warning)!important;border-color:var(--zv-warning)!important;color:#212529!important}
body.theme-zevion .btn-danger{background:var(--zv-danger)!important;border-color:var(--zv-danger)!important}
body.theme-zevion [class*="btn-outline-"]{background:transparent}
body.theme-zevion .btn-outline-primary{color:var(--zv-primary)!important;border-color:var(--zv-primary)!important}
body.theme-zevion .btn-outline-primary:hover{background:var(--zv-primary)!important;color:#fff!important}
/* Ensure outline variants hover to solid background with white content (match primary behavior) */
body.theme-zevion .btn-outline-secondary{color:#64748B!important;border-color:#64748B!important}
body.theme-zevion .btn-outline-secondary:hover{background:#64748B!important;border-color:#64748B!important;color:#fff!important}
body.theme-zevion .btn-outline-info{color:var(--zv-info)!important;border-color:var(--zv-info)!important}
body.theme-zevion .btn-outline-info:hover{background:var(--zv-info)!important;border-color:var(--zv-info)!important;color:#fff!important}
body.theme-zevion .btn-outline-success{color:var(--zv-success)!important;border-color:var(--zv-success)!important}
body.theme-zevion .btn-outline-success:hover{background:var(--zv-success)!important;border-color:var(--zv-success)!important;color:#fff!important}
body.theme-zevion .btn-outline-warning{color:var(--zv-warning)!important;border-color:var(--zv-warning)!important}
body.theme-zevion .btn-outline-warning:hover{background:var(--zv-warning)!important;border-color:var(--zv-warning)!important;color:#fff!important}
body.theme-zevion .btn-outline-danger{color:var(--zv-danger)!important;border-color:var(--zv-danger)!important}
body.theme-zevion .btn-outline-danger:hover{background:var(--zv-danger)!important;border-color:var(--zv-danger)!important;color:#fff!important}
/* Make sure icons inside outline buttons also turn white on hover */
body.theme-zevion .btn-outline-secondary:hover i,
body.theme-zevion .btn-outline-secondary:hover .bi,
body.theme-zevion .btn-outline-secondary:hover .fa,
body.theme-zevion .btn-outline-secondary:hover svg{color:#fff!important;fill:currentColor;stroke:currentColor}
body.theme-zevion .btn-outline-info:hover i,
body.theme-zevion .btn-outline-info:hover .bi,
body.theme-zevion .btn-outline-info:hover .fa,
body.theme-zevion .btn-outline-info:hover svg{color:#fff!important;fill:currentColor;stroke:currentColor}
body.theme-zevion .btn-outline-success:hover i,
body.theme-zevion .btn-outline-success:hover .bi,
body.theme-zevion .btn-outline-success:hover .fa,
body.theme-zevion .btn-outline-success:hover svg{color:#fff!important;fill:currentColor;stroke:currentColor}
body.theme-zevion .btn-outline-warning:hover i,
body.theme-zevion .btn-outline-warning:hover .bi,
body.theme-zevion .btn-outline-warning:hover .fa,
body.theme-zevion .btn-outline-warning:hover svg{color:#fff!important;fill:currentColor;stroke:currentColor}
body.theme-zevion .btn-outline-danger:hover i,
body.theme-zevion .btn-outline-danger:hover .bi,
body.theme-zevion .btn-outline-danger:hover .fa,
body.theme-zevion .btn-outline-danger:hover svg{color:#fff!important;fill:currentColor;stroke:currentColor}

/* ---------------------------------------------------------------
   8) DATATABLES
   --------------------------------------------------------------- */
body.theme-zevion .dataTables_wrapper .page-item.active .page-link{background:var(--zv-primary)!important;border-color:var(--zv-primary)!important;color:#fff!important}
body.theme-zevion .dataTables_wrapper .page-link{color:var(--zv-primary)!important;background:#fff!important;border-color:var(--zv-border)!important}
body.theme-zevion .dataTables_wrapper .dataTables_filter input{border:1px solid var(--zv-border);border-radius:var(--zv-radius-xs)}

/* ---------------------------------------------------------------
   9) BADGES / TOOLTIPS / NOTIFICATIONS
   --------------------------------------------------------------- */
body.theme-zevion .badge.bg-success{background:var(--zv-success)!important}
body.theme-zevion .badge.bg-warning{background:var(--zv-warning)!important;color:#212529!important}
body.theme-zevion .badge.bg-danger{background:var(--zv-danger)!important}
body.theme-zevion .tooltip .tooltip-inner{background:var(--zv-primary);color:#fff;font-size:14px;padding:8px 10px;border-radius:8px}
body.theme-zevion .tooltip.bs-tooltip-top .arrow::before{border-top-color:var(--zv-primary)}

/* ---------------------------------------------------------------
   10) MODALS (z-index centralizovan)
   --------------------------------------------------------------- */
body.theme-zevion .modal-backdrop{z-index:var(--zv-z-modal-backdrop)!important}
body.theme-zevion .modal{z-index:var(--zv-z-modal)!important}
body.theme-zevion .modal-lg{max-width:82%}
body.theme-zevion .modal-content{border:1px solid var(--zv-border);border-radius:16px;box-shadow:var(--zv-shadow-lg)}
body.theme-zevion .modal-header{background:var(--zv-surface-subtle)}
body.theme-zevion .modal-body{max-height:100vh;overflow-y:auto}
body.theme-zevion .modal-header{border-top-left-radius: 20px; border-top-right-radius: 20px}

/* ---------------------------------------------------------------
   11) STATUS CELLS / PRESENCE (jedan ton, varijacije iz njega)
   --------------------------------------------------------------- */
/* Možeš promijeniti --presence-hue na nivou sekcije/tablice ako treba. */
body.theme-zevion{
  --presence-tone: var(--zv-primary);
  --presence-bg-1: color-mix(in oklab, var(--presence-tone) 12%, white);
  --presence-bg-2: color-mix(in oklab, var(--presence-tone) 6%, white);
  --presence-br:   color-mix(in oklab, var(--presence-tone) 44%, transparent);
  --presence-tx:   color-mix(in oklab, var(--presence-tone) 70%, black);
}
@supports not (color-mix(in oklab, white, black)){
  /* Fallback bez color-mix (stariji browseri) */
  body.theme-zevion{ --presence-bg-1:#EDF5FF; --presence-bg-2:#F6FAFF; --presence-br:#9CC1EE; --presence-tx:#1E3A5A; }
}
body.theme-zevion .presence-variant{
  background:linear-gradient(to bottom,var(--presence-bg-1),var(--presence-bg-2));
  border:1px solid var(--presence-br); color:var(--presence-tx);
  font-size:12px;font-weight:600;border-radius:8px;padding:4px 6px;
  box-shadow:0 1px 3px rgba(0,0,0,.08);transition:.2s;cursor:pointer
}
body.theme-zevion .presence-variant:hover{transform:translateY(-1px);box-shadow:0 4px 8px rgba(0,0,0,.10);opacity:.95}

/* Ako baš treba više nijansi, mijenjaj samo --presence-tone na wrapperu:
   .presence-green { --presence-tone:#34B271; } itd. */

/* ---------------------------------------------------------------
   12) LOGIN (sa brend bojama)
   --------------------------------------------------------------- */
body.theme-zevion .login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:2rem 1rem;background:linear-gradient(180deg,var(--zv-surface-subtle) 0%, var(--zv-bg) 100%)}
body.theme-zevion .login-box{width:100%;max-width:420px;margin:0 auto}
body.theme-zevion .login-box .card{border-radius:var(--zv-radius-md);overflow:hidden;box-shadow:var(--zv-shadow-lg);border:1px solid var(--zv-border);background:var(--zv-surface)}
body.theme-zevion .login-card-body{padding:1.75rem 1.5rem}
body.theme-zevion .login-box .expanded-logo{display:block;margin:0 auto;width:60%;max-width:160px;height:auto;max-height:96px;object-fit:contain}
@media(min-width:992px){ body.theme-zevion .login-box .expanded-logo{width:70%;max-width:180px;max-height:120px} }
body.theme-zevion .login-box .login-box-msg{margin:0 0 1rem;color:var(--zv-text-muted);font-weight:600;text-align:center}
body.theme-zevion .login-card-body .input-group .form-control{border-radius:10px;padding:.65rem .85rem;height:46px;border:1px solid var(--zv-border);box-shadow:none}
body.theme-zevion .login-card-body .btn{display:block;width:100%;height:46px;border-radius:10px;font-weight:700;background:var(--zv-primary);border-color:var(--zv-primary);color:#fff;padding:.5rem 1rem;box-shadow:var(--zv-shadow-sm)}
body.theme-zevion .login-card-body .btn:hover{background:#2B5F9B;border-color:#2B5F9B;transform:translateY(-1px)}
@media (max-width:480px){ body.theme-zevion .login-card-body{padding:1.25rem} body.theme-zevion .login-card-body .input-group .form-control, body.theme-zevion .login-card-body .btn{height:52px} }

/* ---------------------------------------------------------------
   13) RESPONSIVE TWEAKS
   --------------------------------------------------------------- */
@media(max-width:992px){ body.theme-zevion .btn{padding:.4rem .75rem} .modal-lg{max-width:92%} }
@media(max-width:768px){ body.theme-zevion .table th, body.theme-zevion .table td{font-size:12px;padding:5px} body.theme-zevion .btn{font-size:12px} }

/* =====================================================================
   ZEVION • PAGE-SPECIFIC (aligned to core token v1.1)
   Uvoziti POSLIJE core tokena. Sve boje/radijusi/shadowi iz var(--zv-*)
   ===================================================================== */

/* ===================== property_tax.property_detail ================== */

body.theme-zevion .property-tax-property-detail .meta-badges .badge{
  font-weight:500; letter-spacing:.25px;
}
body.theme-zevion .property-tax-property-detail .badge-outline{
  background:var(--zv-surface); border:1px solid var(--zv-border); color:var(--zv-text);
}
body.theme-zevion .property-tax-property-detail .copy-btn{cursor:pointer}
body.theme-zevion .property-tax-property-detail .copy-btn:hover{opacity:.8}

body.theme-zevion .property-tax-property-detail .meta-badges{
  display:flex; flex-wrap:wrap; gap:.4rem; margin-top:.25rem;
}
body.theme-zevion .property-tax-property-detail .badge-meta{
  display:inline-flex; align-items:center; gap:.4rem;
  font-size:.65rem; font-weight:600; text-transform:uppercase; letter-spacing:.5px;
  padding:.45rem .55rem; border:1px solid var(--zv-border);
  background:var(--zv-surface); color:var(--zv-text);
  border-radius:50rem; line-height:1; box-shadow:0 0 0 1px #fff inset;
}
body.theme-zevion .property-tax-property-detail .badge-meta i{font-size:.7rem;opacity:.75}

/* manje šareno: sve meta-badge varijante su brand tinti */
body.theme-zevion .property-tax-property-detail .badge-meta.id{
  background:var(--zv-brand-50); border-color:color-mix(in oklab, var(--zv-primary) 20%, white);
}
body.theme-zevion .property-tax-property-detail .badge-meta.code{background:var(--zv-surface-subtle)}
body.theme-zevion .property-tax-property-detail .badge-meta.zone{
  background:var(--zv-brand-100); border-color:color-mix(in oklab, var(--zv-primary) 25%, white);
}
body.theme-zevion .property-tax-property-detail .badge-meta.use{
  background:color-mix(in oklab, var(--zv-success) 10%, white);
  border-color:color-mix(in oklab, var(--zv-success) 25%, white);
}
body.theme-zevion .property-tax-property-detail .badge-meta.area{
  background:color-mix(in oklab, var(--zv-warning) 10%, white);
  border-color:color-mix(in oklab, var(--zv-warning) 25%, white);
}
body.theme-zevion .property-tax-property-detail .badge-meta.owners{
  background:color-mix(in oklab, var(--zv-info) 10%, white);
  border-color:color-mix(in oklab, var(--zv-info) 25%, white);
}
body.theme-zevion .property-tax-property-detail .badge-meta .copy-btn{margin-left:.15rem;font-size:.65rem}
@media (max-width:575.98px){
  body.theme-zevion .property-tax-property-detail .badge-meta{font-size:.62rem;padding:.4rem .5rem}
}

body.theme-zevion .property-tax-property-detail .section-head{
  display:flex;justify-content:space-between;align-items:center;gap:.75rem;flex-wrap:wrap
}
body.theme-zevion .property-tax-property-detail .table thead th{
  font-size:.7rem;text-transform:uppercase;letter-spacing:.5px;
  color:var(--zv-text-muted);border-top:0
}
body.theme-zevion .property-tax-property-detail .table-sm td{vertical-align:middle}

/* Ownership bar — neutralna pozadina + segmenti izvedeni iz primary */
body.theme-zevion .property-tax-property-detail .ownership-bar{
  display:flex;height:10px;overflow:hidden;border-radius:4px;
  background:var(--zv-divider);margin-bottom:.5rem
}
body.theme-zevion .property-tax-property-detail .ownership-bar .seg{
  height:100%;transition:filter .2s ease
}
body.theme-zevion .property-tax-property-detail .ownership-bar .seg:hover{filter:brightness(1.1)}

/* Monohromatske nijanse iz brend boje (fallback prije color-mix) */
body.theme-zevion .property-tax-property-detail .seg-c0{background:#e7f0fb}
body.theme-zevion .property-tax-property-detail .seg-c1{background:#d6e6f8}
body.theme-zevion .property-tax-property-detail .seg-c2{background:#c5dbf4}
body.theme-zevion .property-tax-property-detail .seg-c3{background:#b3d0f1}
body.theme-zevion .property-tax-property-detail .seg-c4{background:#a1c5ed}
body.theme-zevion .property-tax-property-detail .seg-c5{background:#8eb9e8}
body.theme-zevion .property-tax-property-detail .seg-c6{background:#7aaee4}
body.theme-zevion .property-tax-property-detail .seg-c7{background:#65a2df}
body.theme-zevion .property-tax-property-detail .seg-c8{background:#4e96da}
body.theme-zevion .property-tax-property-detail .seg-c9{background:#3274B4}
/* modern mix */
body.theme-zevion .property-tax-property-detail .seg-c0{background:color-mix(in oklab,var(--zv-primary) 6%,  white)}
body.theme-zevion .property-tax-property-detail .seg-c1{background:color-mix(in oklab,var(--zv-primary) 10%, white)}
body.theme-zevion .property-tax-property-detail .seg-c2{background:color-mix(in oklab,var(--zv-primary) 14%, white)}
body.theme-zevion .property-tax-property-detail .seg-c3{background:color-mix(in oklab,var(--zv-primary) 18%, white)}
body.theme-zevion .property-tax-property-detail .seg-c4{background:color-mix(in oklab,var(--zv-primary) 22%, white)}
body.theme-zevion .property-tax-property-detail .seg-c5{background:color-mix(in oklab,var(--zv-primary) 28%, white)}
body.theme-zevion .property-tax-property-detail .seg-c6{background:color-mix(in oklab,var(--zv-primary) 36%, white)}
body.theme-zevion .property-tax-property-detail .seg-c7{background:color-mix(in oklab,var(--zv-primary) 46%, white)}
body.theme-zevion .property-tax-property-detail .seg-c8{background:color-mix(in oklab,var(--zv-primary) 58%, white)}
body.theme-zevion .property-tax-property-detail .seg-c9{background:var(--zv-primary)}

body.theme-zevion .property-tax-property-detail .card-mini{
  border:1px solid var(--zv-border); border-radius:.5rem; background:var(--zv-surface);
}
body.theme-zevion .property-tax-property-detail .card-mini + .card-mini{margin-top:1rem}
body.theme-zevion .property-tax-property-detail .card-mini .card-header{
  background:var(--zv-surface-subtle); border-bottom:1px solid var(--zv-border);
  font-size:.75rem; text-transform:uppercase; letter-spacing:.5px; font-weight:600;
}
body.theme-zevion .property-tax-property-detail .filter-input{max-width:170px}
body.theme-zevion .property-tax-property-detail .table-hover tbody tr:hover{background:var(--zv-surface-subtle)}

/* Status badges (soft semantika iz tokena) */
body.theme-zevion .property-tax-property-detail .status-badge{
  font-size:.65rem; padding:.35rem .5rem; border-radius:.5rem; font-weight:600; letter-spacing:.5px;
}
body.theme-zevion .property-tax-property-detail .status-DRAFT{
  background:#FFF3CD; color:#5C4A03; /* fallback */
  background:color-mix(in oklab, var(--zv-warning) 18%, white);
  color:color-mix(in oklab, var(--zv-warning) 70%, black);
}
body.theme-zevion .property-tax-property-detail .status-ISSUED{
  background:#DBEBFF; color:#1E3A8A; /* fallback */
  background:color-mix(in oklab, var(--zv-info) 18%, white);
  color:color-mix(in oklab, var(--zv-info) 70%, black);
}
body.theme-zevion .property-tax-property-detail .status-PAID{
  background:#D1E7DD; color:#0F5132; /* fallback */
  background:color-mix(in oklab, var(--zv-success) 18%, white);
  color:color-mix(in oklab, var(--zv-success) 70%, black);
}
body.theme-zevion .property-tax-property-detail .status-CANCELLED{
  background:#F8D7DA; color:#842029; /* fallback */
  background:color-mix(in oklab, var(--zv-danger) 18%, white);
  color:color-mix(in oklab, var(--zv-danger) 72%, black);
}

body.theme-zevion .property-tax-property-detail .empty-state{
  padding:1.25rem;text-align:center;color:var(--zv-text-muted);font-size:.9rem
}

/* Responsive grid helpers */
body.theme-zevion .property-tax-property-detail .form-grid{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:.75rem .85rem;
}
@media (min-width:1200px){
  body.theme-zevion .property-tax-property-detail .form-grid{grid-template-columns:repeat(6,1fr)}
}

body.theme-zevion .property-tax-property-detail .sticky-actions{
  position:sticky; bottom:0; z-index:var(--zv-z-sticky); background:var(--zv-surface);
  border-top:1px solid var(--zv-border); padding:.5rem .75rem; display:flex; justify-content:flex-end; gap:.5rem;
}

body.theme-zevion .property-tax-property-detail .rule-tags-grid{columns:2 180px; column-gap:1rem}
body.theme-zevion .property-tax-property-detail .rule-tags-grid label{
  break-inside:avoid; display:flex; align-items:center; font-size:.8rem; gap:.35rem;
  padding:.15rem .25rem; border-radius:.35rem;
}
body.theme-zevion .property-tax-property-detail .rule-tags-grid input[type=checkbox]{margin-top:0}
body.theme-zevion .property-tax-property-detail .search-wrapper{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}

/* Basic grid fields */
body.theme-zevion .property-tax-property-detail .basic-grid .field-wrapper > input,
body.theme-zevion .property-tax-property-detail .basic-grid .field-wrapper > select,
body.theme-zevion .property-tax-property-detail .basic-grid .field-wrapper > textarea,
body.theme-zevion .property-tax-property-detail .basic-grid .field-wrapper .form-control{width:100%}
body.theme-zevion .property-tax-property-detail .basic-grid .row > [class*="col-"] .field-wrapper{
  display:flex;flex-direction:column;height:100%
}
body.theme-zevion .property-tax-property-detail .basic-grid .row > [class*="col-"] .field-wrapper > label{flex:0 0 auto}
body.theme-zevion .property-tax-property-detail .basic-grid .row > [class*="col-"] .field-wrapper > input,
body.theme-zevion .property-tax-property-detail .basic-grid .row > [class*="col-"] .field-wrapper > select{flex:1 0 auto}

/* Equipment block (neutral/brand tints) */
body.theme-zevion .property-tax-property-detail .equipment-grid .equipment-feature-block{
  position:relative;border:1px solid var(--zv-border);
  background:linear-gradient(var(--zv-surface), var(--zv-surface-subtle));
  border-radius:.55rem;height:100%;display:flex;flex-direction:column;gap:.4rem;
  box-shadow:0 1px 2px rgba(0,0,0,.04)
}
body.theme-zevion .property-tax-property-detail .equipment-feature-block:hover{box-shadow:0 2px 4px rgba(0,0,0,.07)}
body.theme-zevion .property-tax-property-detail .equipment-feature-block .feature-title{
  font-size:.65rem;text-transform:uppercase;letter-spacing:.55px;font-weight:600;color:#64748b;
  display:flex;align-items:center;justify-content:space-between;padding:0 .1rem
}
body.theme-zevion .property-tax-property-detail .equipment-options label{
  border:1px solid var(--zv-border); background:var(--zv-surface);
  padding:.28rem .45rem; border-radius:.45rem; display:flex; align-items:center; gap:.45rem;
  transition:.15s background,.15s border-color,.15s box-shadow; line-height:1.1;
}
body.theme-zevion .property-tax-property-detail .equipment-options label:hover{border-color:color-mix(in oklab, var(--zv-border) 70%, var(--zv-text) 30%);background:var(--zv-surface-subtle)}
body.theme-zevion .property-tax-property-detail .equipment-options label.selected{
  border-color:var(--zv-primary); background:color-mix(in oklab, var(--zv-primary) 12%, white);
  box-shadow:0 0 0 1px var(--zv-primary) inset;
}
body.theme-zevion .property-tax-property-detail .equipment-options label.selected .badge{
  background:var(--zv-primary); color:#fff; border-color:var(--zv-primary)
}
body.theme-zevion .property-tax-property-detail .equipment-options input[type=radio]{margin:0}
body.theme-zevion .property-tax-property-detail .equipment-options .badge{
  font-weight:500; font-size:.65rem; border:1px solid #d0d7df; background:#f1f5f9; color:#334155;
}
body.theme-zevion .property-tax-property-detail .equipment-options label.selected .flex-grow-1{
  font-weight:600; color:#0d4a8f;
}
body.theme-zevion .property-tax-property-detail .equipment-options label.none-option{font-style:italic;color:var(--zv-text-muted)}
@media (min-width:1200px){
  body.theme-zevion .property-tax-property-detail .equipment-grid .col-md-6{padding-bottom:.35rem}
}

body.theme-zevion .property-tax-property-detail .resolution-form-card .card-header{background:var(--zv-surface-subtle)}
body.theme-zevion .property-tax-property-detail .resolution-form{padding:1rem 1rem .75rem}
body.theme-zevion .property-tax-property-detail .resolution-form .form-grid-inline{
  display:flex;flex-wrap:wrap;gap:.65rem;align-items:flex-end
}
body.theme-zevion .property-tax-property-detail .resolution-form .form-grid-inline .field{
  display:flex;flex-direction:column;gap:.25rem;min-width:140px
}
body.theme-zevion .property-tax-property-detail .resolution-form .form-grid-inline label{
  font-size:.6rem;text-transform:uppercase;letter-spacing:.45px;font-weight:600;color:var(--zv-text-muted);margin:0
}
body.theme-zevion .property-tax-property-detail .resolution-form small.hint{
  font-size:.6rem;color:var(--zv-text-muted);display:block;margin-top:.35rem
}

/* modal/tpicker z-index – koristi vrijednosti iz core-a */
body.theme-zevion .property-tax-property-detail #ownershipModalRows.ownership-initializing{opacity:0}
body.theme-zevion .property-tax-property-detail #ownershipModalRows{transition:opacity .18s ease-in}
body.theme-zevion .property-tax-property-detail .owns-date-wrap{position:relative}
body.theme-zevion .property-tax-property-detail .owns-date-btn{
  position:absolute; top:50%; transform:translateY(-50%); right:6px;
  border:0; background:transparent; color:var(--zv-text-muted); padding:2px 4px; cursor:pointer;
}
body.theme-zevion .property-tax-property-detail .owns-date-btn:hover{color:var(--zv-primary)}
body.theme-zevion .property-tax-property-detail .bootstrap-datetimepicker-widget{z-index:1102 !important}
body.theme-zevion .property-tax-property-detail .modal .bootstrap-datetimepicker-widget.dropdown-menu{margin:0}
body.theme-zevion .property-tax-property-detail #ownershipEditModal .modal-dialog.ownership-modal-dialog{max-width:1250px}
body.theme-zevion .property-tax-property-detail #ownershipEditModal .modal-content{max-height:92vh;display:flex;flex-direction:column}
body.theme-zevion .property-tax-property-detail #ownershipEditModal .modal-body{flex:1 1 auto;overflow:auto;padding-bottom:.75rem}
@media (max-width:575.98px){
  body.theme-zevion .property-tax-property-detail .resolution-form .form-grid-inline{flex-direction:column;align-items:stretch}
}

/* ===================== property_tax.party_list ======================= */

body.theme-zevion .property-tax-party-list .table-hover tbody tr:hover{background:var(--zv-surface-subtle)}
body.theme-zevion .property-tax-party-list .stats-bar{margin-bottom:.25rem}
body.theme-zevion .property-tax-party-list .stat-badge{
  font-size:.70rem; letter-spacing:.5px; line-height:1.05; text-transform:uppercase;
  text-align:center; padding:.45rem .6rem; min-width:90px;
}
body.theme-zevion .property-tax-party-list .badge-stretch strong{display:block;font-size:.9rem;margin-top:2px;letter-spacing:0}
body.theme-zevion .property-tax-party-list .badge-kind{font-weight:500}

/* umjesto plave/ljubičaste – brand i info tinti */
body.theme-zevion .property-tax-party-list .badge-kind.FL{
  background:color-mix(in oklab, var(--zv-primary) 12%, white);
  color:color-mix(in oklab, var(--zv-primary) 70%, black);
  border:1px solid color-mix(in oklab, var(--zv-primary) 28%, white);
}
body.theme-zevion .property-tax-party-list .badge-kind.PL{
  background:color-mix(in oklab, var(--zv-info) 12%, white);
  color:color-mix(in oklab, var(--zv-info) 70%, black);
  border:1px solid color-mix(in oklab, var(--zv-info) 28%, white);
}

/* -----------------------------
   Stat badges — color variants
   These override utility classes used in templates (bg-*) and align
   the badges with app tokens. Placed within the party_list section.
   ----------------------------- */
body.theme-zevion .property-tax-party-list .stat-badge{border-radius:.6rem;border:1px solid transparent}
body.theme-zevion .property-tax-party-list .stat-badge.bg-secondary{
  background:var(--zv-surface-subtle); color:var(--zv-text-muted); border-color:var(--zv-border);
}
body.theme-zevion .property-tax-party-list .stat-badge.bg-primary{
  background:var(--zv-primary); color:#fff; border-color:color-mix(in oklab,var(--zv-primary) 20%, white);
  box-shadow:0 1px 2px rgba(50,116,180,.06);
}
body.theme-zevion .property-tax-party-list .stat-badge.bg-info{
  background:var(--zv-info); color:#fff; border-color:color-mix(in oklab,var(--zv-info) 20%, white);
}
/* Some templates use an inline purple for 'Pravna' — normalize it here (overrides inline style via specificity)
   nth-child is used because the markup currently renders that badge third in the stats-bar. If markup changes,
   prefer adding a specific class in the template (recommended). */
body.theme-zevion .property-tax-party-list .stats-bar .stat-badge:nth-child(3){
  background:var(--zv-info) !important; color:#fff !important; border-color:color-mix(in oklab,var(--zv-info) 20%, white) !important;
}

body.theme-zevion .property-tax-party-list .row-actions a,
body.theme-zevion .property-tax-property-list .row-actions a{margin-right:4px}
body.theme-zevion .property-tax-party-list .search-match{background:#fff59a;padding:0 2px;border-radius:2px}

/* Filter bar */
body.theme-zevion .property-tax-party-list .filter-toolbar .form-control,
body.theme-zevion .property-tax-party-list .filter-toolbar .form-select{min-width:140px}
body.theme-zevion .property-tax-party-list .filter-form .form-label{margin-bottom:2px;font-weight:600}
body.theme-zevion .property-tax-party-list .filter-form .form-select,
body.theme-zevion .property-tax-party-list .filter-form .form-control{min-height:34px}
body.theme-zevion .property-tax-party-list .filter-form .search-group .form-control{border-right:0}
body.theme-zevion .property-tax-party-list .filter-form .search-group .btn{
  border-color:var(--zv-border);height:34px;display:flex;align-items:center;justify-content:center;padding:0 .65rem
}
body.theme-zevion .property-tax-party-list .filter-form .search-group .btn + .btn{border-left:0}
body.theme-zevion .property-tax-party-list .filter-form .search-group .btn:hover,
body.theme-zevion .property-tax-party-list .filter-form .new-party-btn:hover{background:var(--zv-surface-subtle)}
body.theme-zevion .property-tax-party-list .filter-form .smjer-select{max-width:90px}
body.theme-zevion .property-tax-party-list .filter-form .new-party-btn{
  height:34px;display:flex;align-items:center;justify-content:center;padding:0 .85rem;white-space:nowrap
}
body.theme-zevion .property-tax-party-list .filter-form .new-party-btn i{margin-right:.4rem}
body.theme-zevion .property-tax-party-list .reset-btn{border-color:var(--zv-danger);color:var(--zv-danger)}
body.theme-zevion .property-tax-party-list .reset-btn:hover{background:var(--zv-danger);color:#fff}

@media (max-width:767.98px){ body.theme-zevion .property-tax-party-list .stat-badge{min-width:70px} }
@media (min-width:992px){ body.theme-zevion .property-tax-party-list .filter-form{row-gap:.5rem} }
@media (max-width:991.98px){ body.theme-zevion .property-tax-party-list .filter-form .search-group{margin-bottom:2px} }
@media (max-width:575.98px){
  body.theme-zevion .property-tax-party-list .filter-form .search-group{display:flex}
  body.theme-zevion .property-tax-party-list .filter-form .search-group .form-control{flex:1 1 auto}
}

/* ===================== property_tax.batch_assessments =============== */

body.theme-zevion .property-tax-batch-assessments .ba-wrapper{max-width:940px}
body.theme-zevion .property-tax-batch-assessments .meta-badges .badge{font-weight:500;letter-spacing:.25px}
body.theme-zevion .property-tax-batch-assessments .card-lite{
  border:1px solid var(--zv-border); border-radius:.65rem; background:var(--zv-surface);
}
body.theme-zevion .property-tax-batch-assessments .card-lite + .card-lite{margin-top:1rem}
body.theme-zevion .property-tax-batch-assessments .card-lite .card-header{
  background:var(--zv-surface-subtle); border-bottom:1px solid var(--zv-border);
  font-size:.75rem;text-transform:uppercase;letter-spacing:.5px;font-weight:600
}
body.theme-zevion .property-tax-batch-assessments .form-grid{
  display:grid;gap:1rem .85rem;grid-template-columns:repeat(auto-fit,minmax(170px,1fr))
}
body.theme-zevion .property-tax-batch-assessments .field-wrapper label{
  font-size:.7rem;text-transform:uppercase;letter-spacing:.5px;font-weight:600;color:var(--zv-text-muted);margin-bottom:.25rem
}
body.theme-zevion .property-tax-batch-assessments .form-grid .field-wrapper input.form-control,
body.theme-zevion .property-tax-batch-assessments .form-grid .field-wrapper select.form-select{width:100%}
body.theme-zevion .property-tax-batch-assessments .form-grid .select2-container{width:100%!important}
body.theme-zevion .property-tax-batch-assessments .help-text{font-size:.65rem;color:var(--zv-text-muted);margin-top:.25rem}
body.theme-zevion .property-tax-batch-assessments .sticky-actions{
  position:sticky;bottom:0;background:var(--zv-surface);border-top:1px solid var(--zv-border);
  padding:.6rem .75rem;display:flex;justify-content:flex-end;gap:.5rem;z-index:var(--zv-z-sticky);
}
body.theme-zevion .property-tax-batch-assessments .alert + .card-lite{margin-top:.75rem}
body.theme-zevion .property-tax-batch-assessments .results-table thead th{
  font-size:.65rem;text-transform:uppercase;letter-spacing:.5px;color:var(--zv-text-muted);border-top:0
}
body.theme-zevion .property-tax-batch-assessments .results-table tbody td{font-size:.75rem}
body.theme-zevion .property-tax-batch-assessments .status-badge{
  font-size:.6rem;padding:.3rem .45rem;border-radius:.4rem;font-weight:600;letter-spacing:.5px
}
body.theme-zevion .property-tax-batch-assessments .status-OK{
  background:color-mix(in oklab, var(--zv-success) 18%, white);
  color:color-mix(in oklab, var(--zv-success) 70%, black);
}
body.theme-zevion .property-tax-batch-assessments .status-ERR{
  background:color-mix(in oklab, var(--zv-danger) 18%, white);
  color:color-mix(in oklab, var(--zv-danger) 72%, black);
}
body.theme-zevion .property-tax-batch-assessments .summary-box{
  background:var(--zv-surface-subtle); border:1px solid var(--zv-border); border-radius:.5rem;
  padding:.75rem .9rem; font-size:.75rem; box-shadow:var(--zv-shadow-sm);
}
body.theme-zevion .property-tax-batch-assessments .summary-box dt{font-weight:600;color:#495057}
body.theme-zevion .property-tax-batch-assessments .summary-box dd{margin-bottom:.4rem}
body.theme-zevion .property-tax-batch-assessments .fade-in{animation:fade .4s ease}
@keyframes property-tax-batch-assessments-fade{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}

/* ===================== property_tax.party_form ====================== */

body.theme-zevion .property-tax-party-form .form-shell{max-width:1100px;margin:0 auto}
body.theme-zevion .property-tax-party-form .section-title{
  font-size:.75rem;letter-spacing:.08em;font-weight:600;text-transform:uppercase;color:var(--zv-text-muted);margin-bottom:.35rem
}
body.theme-zevion .property-tax-party-form .field-wrapper{position:relative}
body.theme-zevion .property-tax-party-form .field-wrapper .req{color:var(--zv-danger);margin-left:2px}
body.theme-zevion .property-tax-party-form .field-wrapper input.form-control,
body.theme-zevion .property-tax-party-form .field-wrapper select.form-select{height:38px}
body.theme-zevion .property-tax-party-form .kind-badge{
  font-size:.65rem;letter-spacing:.05em;padding:.35rem .55rem;background:var(--zv-surface-subtle);
  border:1px solid var(--zv-border);border-radius:.4rem;font-weight:500
}
body.theme-zevion .property-tax-party-form .error-summary{
  border:1px solid color-mix(in oklab, var(--zv-danger) 40%, white);
  background:color-mix(in oklab, var(--zv-danger) 15%, white);
  color:color-mix(in oklab, var(--zv-danger) 75%, black);
  padding:.75rem .9rem;border-radius:.5rem;font-size:.85rem
}
body.theme-zevion .property-tax-party-form .error-summary ul{margin:0 0 0 .9rem;padding:0}
body.theme-zevion .property-tax-party-form .alt-address-toggle{text-decoration:none;font-size:.8rem;font-weight:600}
body.theme-zevion .property-tax-party-form .address-box{
  background:var(--zv-surface-subtle);border:1px solid var(--zv-border);border-radius:.65rem;padding:.85rem .9rem
}
body.theme-zevion .property-tax-party-form .address-box .form-control{height:36px}
body.theme-zevion .property-tax-party-form .sticky-actions{
  position:sticky;bottom:0;background:var(--zv-surface);padding:.75rem .5rem;border-top:1px solid var(--zv-border);
  display:flex;flex-wrap:wrap;gap:.5rem;justify-content:flex-end;z-index:var(--zv-z-sticky)
}
body.theme-zevion .property-tax-party-form .fade-slide{animation:fadeSlide .35s ease}
@keyframes property-tax-party-form-fadeSlide{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
body.theme-zevion .property-tax-party-form .hidden-soft{display:none!important}
body.theme-zevion .property-tax-party-form .help-hint{font-size:.65rem;color:var(--zv-text-muted);margin-top:2px}
body.theme-zevion .property-tax-party-form .divider{border-top:1px dashed #d0d5d9;margin:1.25rem 0}
body.theme-zevion .property-tax-party-form .form-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem .85rem;align-items:start
}
@media (min-width:1200px){
  body.theme-zevion .property-tax-party-form .form-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
}
body.theme-zevion .property-tax-party-form .form-grid .span-2{grid-column:span 2}
@media (max-width:599.98px){
  body.theme-zevion .property-tax-party-form .form-grid{grid-template-columns:1fr}
}
body.theme-zevion .property-tax-party-form .form-grid [data-kind].d-none{display:none!important}
body.theme-zevion .property-tax-party-form .form-grid select.form-select{width:100%}
body.theme-zevion .property-tax-party-form .form-grid .select2-container{width:100%!important;min-width:100%!important}
body.theme-zevion .property-tax-party-form .form-grid .select2-selection{width:100%!important}

/* Table specific (a11y) */
body.theme-zevion .property-tax-party-list thead.table-light th{position:relative}
body.theme-zevion .property-tax-party-list th .sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0
}

/* Template spacing parity */
body.theme-zevion .property-tax-party-list .filter-toolbar .form-control,
body.theme-zevion .property-tax-party-list .filter-toolbar .form-select{min-width:140px}
body.theme-zevion .property-tax-party-list .filter-form .smjer-select{max-width:48px}

/* ===================== stacking (modals) aligned to token ========= */
body.theme-zevion .modal-backdrop{z-index:var(--zv-z-modal-backdrop)!important}
body.theme-zevion .modal{z-index:var(--zv-z-modal)!important}
/* pojedinačni modal koji treba biti iznad ostalih */
body.theme-zevion #ownershipEditModal{z-index:1101!important}
/* ako je modal/render direktno pod <body> */
body > .modal-backdrop{z-index:var(--zv-z-modal-backdrop)!important}
body > .modal{z-index:var(--zv-z-modal)!important}

/* ===================== property_tax.property_list ================== */

body.theme-zevion .property-tax-property-list .stats-bar{margin-bottom:.65rem}
body.theme-zevion .property-tax-property-list .stat-badge{
  font-size:.70rem;letter-spacing:.5px;line-height:1.05;text-transform:uppercase;
  text-align:center;padding:.45rem .6rem;min-width:90px
}
body.theme-zevion .property-tax-property-list .badge-stretch strong{display:block;font-size:.9rem;margin-top:2px;letter-spacing:0}
/* Stat badge variants for property list (token-aligned) */
body.theme-zevion .property-tax-property-list .stat-badge{border-radius:.6rem;border:1px solid transparent}
body.theme-zevion .property-tax-property-list .stat-badge.bg-secondary{
  background:var(--zv-surface-subtle); color:var(--zv-text-muted); border-color:var(--zv-border);
}
body.theme-zevion .property-tax-property-list .stat-badge.bg-info{
  background:var(--zv-info); color:#fff; border-color:color-mix(in oklab,var(--zv-info) 22%, white);
}
body.theme-zevion .property-tax-property-list .filter-toolbar .form-control,
body.theme-zevion .property-tax-property-list .filter-toolbar .form-select{min-height:34px}
body.theme-zevion .property-tax-property-list .filter-toolbar .search-group .form-control{border-right:0}
body.theme-zevion .property-tax-property-list .filter-toolbar .search-group .btn{
  border-color:var(--zv-border);height:34px;display:flex;align-items:center;justify-content:center;padding:0 .65rem
}
body.theme-zevion .property-tax-property-list .filter-toolbar .search-group .btn + .btn{border-left:0}
body.theme-zevion .property-tax-property-list .filter-toolbar .search-group .btn:hover{background:var(--zv-surface-subtle)}
body.theme-zevion .property-tax-property-list .table-hover tbody tr:hover{background:var(--zv-surface-subtle)}
body.theme-zevion .property-tax-property-list .reset-btn{border-color:var(--zv-danger);color:var(--zv-danger)}
body.theme-zevion .property-tax-property-list .reset-btn:hover{background:var(--zv-danger);color:#fff}
body.theme-zevion .property-tax-property-list .new-property-btn{white-space:nowrap}
body.theme-zevion .property-tax-property-list .search-match{background:#ffff0066;padding:0 2px;border-radius:2px}
@media (max-width:767.98px){
  body.theme-zevion .property-tax-property-list .stat-badge{min-width:70px}
}

/* ===================== property_tax.property_form ================== */

body.theme-zevion .property-tax-property-form .field-wrapper .form-control,
body.theme-zevion .property-tax-property-form .field-wrapper .form-select{width:100%}
body.theme-zevion .property-tax-property-form .field-wrapper .select2-container{width:100%!important}

/* Inline checkbox column tweak */
body.theme-zevion .property-tax-property-form .col-checkbox-inline .field-wrapper{margin-top:1.7rem}

/* Custom checkbox */
body.theme-zevion .property-tax-property-form .custom-check input[type=checkbox]{
  width:1.05rem;height:1.05rem;margin-right:.4rem;cursor:pointer
}
body.theme-zevion .property-tax-property-form .custom-check label{cursor:pointer}
body.theme-zevion .property-tax-property-form .custom-check input[type=checkbox]:checked{
  border-color:var(--zv-primary);background-color:var(--zv-primary)
}
body.theme-zevion .property-tax-property-form .custom-check{
  display:flex;align-items:center;gap:.25rem;padding:.25rem .5rem .25rem .25rem;
  background:var(--zv-surface-subtle);border:1px solid var(--zv-border);border-radius:.4rem
}
body.theme-zevion .property-tax-property-form .custom-check:hover{background:var(--zv-surface-alt)}

/* ===================== property_tax.annual_invoice ================== */
body.theme-zevion .property-tax-annual-invoice__params .card{
  border:1px solid var(--zv-border);border-radius:var(--zv-radius-sm);background:var(--zv-surface);box-shadow:var(--zv-shadow-sm)
}
body.theme-zevion .property-tax-annual-invoice__params .form-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.75rem .85rem;align-items:start
}
body.theme-zevion .property-tax-annual-invoice__params .field-wrapper .form-label{font-size:.75rem;letter-spacing:.04em;font-weight:600;color:var(--zv-text-muted);margin-bottom:.35rem}
body.theme-zevion .property-tax-annual-invoice__params .field-wrapper .form-control,
body.theme-zevion .property-tax-annual-invoice__params .field-wrapper .form-select{height:38px}
body.theme-zevion .property-tax-annual-invoice__params .help-text{font-size:.75rem;color:var(--zv-text-muted);margin-top:.25rem}
@media (max-width:599.98px){
  body.theme-zevion .property-tax-annual-invoice__params .form-grid{grid-template-columns:1fr}
}

/* Meta badges used in annual invoice header (aligned with property detail badge-meta) */
body.theme-zevion .property-tax-annual-invoice .meta-badges .badge{
  font-weight:500; letter-spacing:.25px; padding:.35rem .5rem; border-radius:.45rem; border:1px solid var(--zv-border);
  background:var(--zv-surface); color:var(--zv-text); box-shadow:0 0 0 1px #fff inset; font-size:.8rem
}
body.theme-zevion .property-tax-annual-invoice .meta-badges .badge-meta.id{background:var(--zv-brand-50); border-color:color-mix(in oklab, var(--zv-primary) 20%, white)}
body.theme-zevion .property-tax-annual-invoice .meta-badges .badge-meta.code{background:var(--zv-surface-subtle)}
body.theme-zevion .property-tax-annual-invoice .meta-badges .badge-meta.zone{background:var(--zv-brand-100); border-color:color-mix(in oklab, var(--zv-primary) 25%, white)}
body.theme-zevion .property-tax-annual-invoice .meta-badges .badge-meta.area{background:color-mix(in oklab, var(--zv-warning) 10%, white); border-color:color-mix(in oklab, var(--zv-warning) 25%, white)}
body.theme-zevion .property-tax-annual-invoice .meta-badges .badge-meta.use{background:color-mix(in oklab, var(--zv-success) 10%, white); border-color:color-mix(in oklab, var(--zv-success) 25%, white)}

/* kpi cards */
.kpi .kpi-label { font-size:.7rem; text-transform:uppercase; letter-spacing:.5px; color:#6c757d; }
.kpi .kpi-value { font-weight:600; font-size:1rem; }
.note-box { font-size:.85rem; }
.party-kpi-grid .kpi-card{background:var(--zv-surface-subtle,#f8f9fa);border:1px solid #dee2e6;border-radius:.5rem;padding:.55rem .65rem;display:flex;align-items:center;gap:.55rem;min-height:64px;position:relative}
.party-kpi-grid .kpi-icon{font-size:1.05rem;color:#6c757d;flex-shrink:0}
.party-kpi-grid .kpi-label{font-size:.60rem;text-transform:uppercase;letter-spacing:.5px;color:#6c757d;font-weight:600;margin:0 0 2px 0;line-height:1}
.party-kpi-grid .kpi-value{font-weight:600;font-size:.95rem;line-height:1.1;word-break:break-word}
.party-kpi-grid .kpi-sub{font-size:.65rem;color:#6c757d;margin-top:2px;line-height:1}
.note-box.line-clamp{display:-webkit-box;line-clamp:5;-webkit-box-orient:vertical;overflow:hidden;position:relative}
.note-box.line-clamp:after{content:"";position:absolute;bottom:0;left:0;right:0;height:1.4rem;background:linear-gradient(180deg,rgba(255,255,255,0),var(--body-bg,#fff))}
.note-toggle{font-size:.7rem;text-decoration:none}
.note-toggle:hover{text-decoration:underline}