:root{
  --bgTop:#d2e3ff;
  --bgMid:#b8d2ff;
  --bgBot:#8fb3ff;

  --panel:rgba(255,255,255,.86);
  --panel2:rgba(255,255,255,.94);

  --text:#0b1738;
  
  
  --muted:rgba(11,23,56,.70);

  --primary:#1f5fff;
  --primary2:#1346c8;

  --stroke:rgba(11,23,56,.10);
  --shadow:0 22px 70px rgba(6,20,60,.18);
  --shadow2:0 10px 26px rgba(6,20,60,.14);

  --radius:18px;
  --pageMax:1880px;
  --pagePad:18px;
  --headerH:104px;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  min-height:100vh;
  color:var(--text);
  overflow-x:hidden;
  background:
    radial-gradient(900px 520px at 18% 0%,
      rgba(255,255,255,.90) 0%,
      var(--bgTop) 42%,
      var(--bgMid) 78%,
      var(--bgBot) 120%);
}

.hidden{ display:none !important; }

.waves{ position:fixed; inset:0; z-index:1; pointer-events:none; overflow:hidden; }
.view{ position:relative; z-index:2; min-height:100vh; padding:calc(var(--headerH) + 22px) var(--pagePad) 80px; }
.menu{ position:relative; z-index:3; }
.logo-header{ position:fixed; z-index:4; left:50%; top:12px; transform:translateX(-50%); pointer-events:none; }

body::before{
  content:"";
  position:fixed;
  left:0; right:0; top:0;
  height:var(--headerH);
  z-index:2;
  background:linear-gradient(180deg,rgba(255,255,255,.62) 0%,rgba(255,255,255,.22) 55%,rgba(255,255,255,0) 100%);
  backdrop-filter:blur(14px) saturate(140%);
  box-shadow:0 18px 50px rgba(6,20,60,.08);
}

.logo-header img{
  height:78px;
  max-width:92vw;
  object-fit:contain;
  filter:drop-shadow(0 14px 26px rgba(6,20,60,.24));
}

.wrap{
  max-width:var(--pageMax);
  margin:0 auto;
}

.topbar{
  display:flex;
  align-items:center;
  gap:12px;
  margin:0 0 18px;
  padding:0;
}

#btnLogout2,
#btnLogoutUsers{
  min-width:108px;
  text-align:center;
  margin-left:auto;
  margin-right:0;
}

.title{
  margin:0 0 14px;
  font-weight:950;
  font-size:24px;
  letter-spacing:.2px;
  text-shadow:0 10px 30px rgba(6,20,60,.12);
}

.back{
  border:1px solid rgba(31,95,255,.18);
  background:rgba(255,255,255,.86);
  padding:9px 14px;
  border-radius:999px;
  cursor:pointer;
  box-shadow:var(--shadow2);
  color:var(--text);
  font-weight:800;
  transition:transform .12s ease,background .12s ease;
}
.back:hover{ transform:translateY(-1px); background:rgba(255,255,255,.94); }
.back:active{ transform:translateY(0) scale(.99); }

.menu{
  position:fixed;
  left:50%;
  top:52%;
  transform:translate(-50%,-50%);
  display:grid;
  gap:14px;
  width:min(540px,calc(100vw - 46px));
  padding:18px;
  border-radius:22px;
  background:rgba(255,255,255,.42);
  border:1px solid rgba(255,255,255,.60);
  backdrop-filter:blur(16px) saturate(140%);
  box-shadow:var(--shadow);
}

.menu-logout{
  position:fixed;
  top:calc(var(--headerH) + 18px);
  right:24px;
  z-index:5;
  min-width:108px;
  text-align:center;
}

.pill{
  width:100%;
  height:56px;
  border-radius:16px;
  border:1px solid rgba(11,23,56,.08);
  background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(255,255,255,.84));
  color:var(--text);
  font-size:16px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 16px 40px rgba(6,20,60,.12);
  transition:transform .14s ease,box-shadow .14s ease,border-color .14s ease;
}
.pill:hover{
  transform:translateY(-2px);
  box-shadow:0 22px 60px rgba(6,20,60,.16);
  border-color:rgba(31,95,255,.30);
}
.pill:active{ transform:translateY(0) scale(.99); }

.card{
  background:var(--panel);
  border-radius:22px;
  box-shadow:var(--shadow);
  padding:14px;
  border:1px solid rgba(255,255,255,.72);
  backdrop-filter:blur(10px);
}

table{
  width:100%;
  border-collapse:collapse;
  font-size:14.5px;
  background:transparent;
}

thead th{
  text-align:left;
  font-weight:950;
  padding:14px 12px;
  color:rgba(11,23,56,.92);
  background:rgba(255,255,255,.70);
  border-bottom:1px solid rgba(11,23,56,.08);
}

tbody td{
  padding:12px 12px;
  border-top:1px solid rgba(11,23,56,.06);
  vertical-align:middle;
}

tbody tr:hover td{ background:rgba(31,95,255,.06); }

.actions{
  display:flex;
  gap:8px;
  justify-content:flex-end;
  white-space:nowrap;
  flex-wrap:nowrap;
}

.mini{
  border:1px solid rgba(31,95,255,.22);
  background:linear-gradient(180deg,rgba(31,95,255,.14),rgba(31,95,255,.08));
  padding:7px 11px;
  border-radius:10px;
  cursor:pointer;
  font-size:12.5px;
  font-weight:900;
  color:var(--text);
  transition:background .12s ease,transform .08s ease,border-color .12s ease;
}
.mini:hover{
  background:linear-gradient(180deg,rgba(31,95,255,.18),rgba(31,95,255,.10));
  border-color:rgba(31,95,255,.32);
}
.mini:active{ transform:scale(.98); }

#customersTable .mini{
  padding:6px 8px;
  font-size:11.5px;
}

#customersTable thead th,
#customersTable tbody td{
  padding-left:8px;
  padding-right:8px;
}

.icon-btn{
  width:34px;
  height:30px;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:center;
}
.icon-btn svg{ width:16px; height:16px; }

.cell-input{
  width:100%;
  padding:9px 10px;
  border-radius:12px;
  border:1px solid rgba(11,23,56,.14);
  background:rgba(255,255,255,.94);
  outline:none;
  font-size:14px;
  color:var(--text);
  transition:border-color .12s ease,box-shadow .12s ease;
}
.cell-input:focus{
  border-color:rgba(31,95,255,.60);
  box-shadow:0 0 0 4px rgba(31,95,255,.14);
}

.badge{
  display:inline-block;
  padding:5px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:950;
  border:1px solid rgba(31,95,255,.22);
  background:rgba(31,95,255,.10);
  color:rgba(11,23,56,.92);
}

.badge.pending{
  background:rgba(255,152,0,.18);
  border-color:rgba(255,152,0,.45);
}

.below-row{
  display:flex;
  align-items:center;
  gap:12px;
  margin:14px 0 0;
}

.add-row{
  border:1px solid rgba(31,95,255,.18);
  background:rgba(255,255,255,.86);
  color:var(--text);
  padding:9px 13px;
  border-radius:999px;
  cursor:pointer;
  box-shadow:var(--shadow2);
  font-size:13.5px;
  font-weight:900;
}
.add-row:hover{ background:rgba(255,255,255,.94); }

.uploader{
  margin:22px auto 0;
  max-width:var(--pageMax);
  text-align:center;
  color:rgba(11,23,56,.85);
}

.dropzone{
  margin:0 auto;
  width:min(620px,92vw);
  border-radius:22px;
  padding:18px;
  border:2px dashed rgba(31,95,255,.32);
  background:rgba(255,255,255,.52);
  transition:background .12s ease,border-color .12s ease,transform .12s ease;
  user-select:none;
}
.dropzone.dragover{
  background:rgba(31,95,255,.10);
  border-color:rgba(31,95,255,.55);
  transform:translateY(-2px);
}

.upload-btn{
  display:inline-block;
  background:linear-gradient(180deg,rgba(31,95,255,.18),rgba(31,95,255,.10));
  color:var(--text);
  border:1px solid rgba(31,95,255,.25);
  padding:10px 14px;
  border-radius:12px;
  cursor:pointer;
  font-size:14px;
  font-weight:950;
  box-shadow:0 14px 26px rgba(6,20,60,.12);
  margin-top:10px;
}
input[type="file"]{ display:none; }

.wave{
  position:absolute;
  left:-30%;
  width:160%;
  height:52vh;
  bottom:-30vh;
  border-radius:50%;
  filter:blur(28px);
  opacity:.36;
  background:radial-gradient(closest-side at 50% 50%,rgba(31,95,255,.34) 0%,rgba(31,95,255,.16) 40%,rgba(31,95,255,.00) 74%);
  animation:drift 16s ease-in-out infinite alternate;
}
.wave.w1{ opacity:.42; animation-duration:18s; }
.wave.w2{ opacity:.28; filter:blur(34px); animation-duration:22s; }
.wave.w3{ opacity:.20; filter:blur(40px); animation-duration:28s; }

@keyframes drift{
  0%{ transform:translateX(-8%) scale(1.02); }
  50%{ transform:translateX(6%) scale(1.07); }
  100%{ transform:translateX(12%) scale(1.03); }
}

body.logged-out #menu,
body.logged-out #customersView,
body.logged-out #usersView{ display:none !important; }

body.logged-in #loginView,
body.logged-in #setPasswordView{ display:none !important; }

#usersView .card,
#customersView .card{ padding:14px; }

.admin-only{ display:none; }
body.is-admin .admin-only{ display:table-cell; }

.admin-only-btn{ display:none; }
body.is-admin .admin-only-btn{ display:block; }

@media (max-width:860px){
  :root{
    --headerH:84px;
    --pagePad:14px;
  }

  .logo-header img{
    height:56px;
  }

  .title{
    font-size:20px;
  }

  .actions{
    justify-content:flex-start;
  }

  .menu-logout{
    top:calc(var(--headerH) + 12px);
    right:14px;
  }
}

/* ===== CUSTOMERS FULL-WIDTH LAYOUT FIX ===== */
#customersView .wrap{
  max-width:none;
  width:100%;
  margin:0;
}

#customersView .customers-layout{
  display:grid;
  grid-template-columns:240px minmax(0,1fr);
  gap:10px;
  align-items:start;
  width:100%;
  max-width:none;
}

#customersView .customers-layout > section{
  width:100%;
  min-width:0;
}

#customersView .filters-panel{
  position:static;
  width:100%;
  min-width:0;
}

#customersView .filters-panel .card{ padding:12px; }

#customersView .filters-panel .filters-title{
  font-weight:950;
  margin:2px 0 10px;
  opacity:.92;
}

#customersView .filters-panel .filter-block{
  display:grid;
  gap:10px;
  padding:10px 0;
  border-top:1px solid rgba(11,23,56,.08);
}
#customersView .filters-panel .filter-block:first-of-type{
  border-top:none;
  padding-top:0;
}
#customersView .filters-panel .row{ display:grid; gap:8px; }
#customersView .filters-panel .cell-input{ width:100%; min-width:0; }
#customersView .filters-panel .badge{ width:fit-content; }

#customersView .card{
  width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}

#customersView .dataTables_wrapper{
  width:100%;
  overflow-x:auto;
}

#customersTable{
  min-width:1650px;
  width:max-content !important;
}

#customersTable td:last-child,
#customersTable th:last-child{
  white-space:nowrap;
  text-align:right;
}

@media (max-width:1200px){
  #customersView .customers-layout{
    grid-template-columns:1fr;
  }
}

.th-sort{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}

.sort-arrow,
.filter-arrow{
  border:1px solid rgba(31,95,255,.22);
  background:linear-gradient(180deg,rgba(31,95,255,.14),rgba(31,95,255,.08));
  width:34px;
  height:30px;
  border-radius:10px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:950;
  color:var(--text);
  transition:transform .08s ease,background .12s ease,border-color .12s ease;
}
.sort-arrow:hover,
.filter-arrow:hover{
  background:linear-gradient(180deg,rgba(31,95,255,.18),rgba(31,95,255,.10));
  border-color:rgba(31,95,255,.32);
}
.sort-arrow:active,
.filter-arrow:active{ transform:scale(.98); }

.countdown{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:52px;
  padding:5px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:950;
  border:1px solid rgba(11,23,56,.12);
  background:rgba(255,255,255,.70);
}
.countdown.warn{
  background:rgba(255,193,7,.22);
  border-color:rgba(255,193,7,.45);
}
.countdown.expired{
  background:rgba(220,53,69,.18);
  border-color:rgba(220,53,69,.40);
}
.expired-date{
  color:rgba(220,53,69,.95);
  font-weight:950;
}

th.days-col,
td.days-col{
  text-align:center;
  white-space:nowrap;
}

.badge.ok{
  background:rgba(40,167,69,.14);
  border-color:rgba(40,167,69,.30);
}
.badge.miss{
  background:rgba(220,53,69,.14);
  border-color:rgba(220,53,69,.30);
}

.policy-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:58px;
  text-align:center;
}

.policy-cell{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:nowrap;
  min-width:150px;
}

.policy-cell .badge{
  margin-left:auto;
  white-space:nowrap;
}

.policy-cell .mini{
  white-space:nowrap;
}

.modal-backdrop{
  position:fixed;
  inset:0;
  background:rgba(10,16,32,.45);
  backdrop-filter:blur(10px);
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
}

.modal{
  width:min(680px,96vw);
  border-radius:22px;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(255,255,255,.75);
  box-shadow:0 30px 90px rgba(6,20,60,.22);
  overflow:hidden;
}

.modal-header{
  position:relative;
  padding:14px 16px;
  font-weight:950;
  display:flex;
  align-items:center;
  justify-content:center;
  border-bottom:1px solid rgba(11,23,56,.08);
}
.modal-header #policyModalTitle{ text-align:center; }

.modal-close{
  position:absolute;
  right:12px;
  top:50%;
  transform:translateY(-50%);
  border:1px solid rgba(11,23,56,.12);
  background:rgba(255,255,255,.85);
  border-radius:999px;
  padding:6px 10px;
  cursor:pointer;
  font-weight:900;
}

.modal-body{
  padding:16px;
  display:grid;
  gap:12px;
}

.modal-actions{
  display:flex;
  gap:10px;
  justify-content:center;
  padding:0 16px 16px;
}

.modal-note{
  color:rgba(11,23,56,.75);
  font-size:13px;
  line-height:1.35;
}

#policyModalPrompt{ text-align:center; }

.modal-dropzone{
  border-radius:18px;
  padding:16px;
  border:2px dashed rgba(31,95,255,.35);
  background:rgba(255,255,255,.72);
  user-select:none;
  text-align:center;
}
.modal-dropzone.dragover{
  background:rgba(31,95,255,.10);
  border-color:rgba(31,95,255,.60);
  transform:translateY(-1px);
}

.small{
  font-size:12.5px;
  color:rgba(11,23,56,.72);
}

/* ===== DATATABLES ===== */
.dataTables_filter,
.dataTables_length{ display:none !important; }

.dataTables_info{
  margin-top:10px;
  opacity:.75;
  font-weight:700;
}

.dataTables_paginate{ margin-top:10px; }

table.dataTable thead th,
table.dataTable thead td{
  border-bottom:1px solid rgba(11,23,56,.08) !important;
}

/* ===== USERS TABLE ===== */
#usersView .card{
  overflow:hidden;
}

#usersView .dataTables_wrapper{ width:100% !important; }

#usersView table.dataTable{ width:100% !important; }

#usersTable{
  width:100% !important;
  table-layout:fixed;
}

#usersTable th,
#usersTable td{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

#usersTable td:last-child,
#usersTable th:last-child{
  white-space:nowrap;
  text-align:right;
}

@media (max-width:900px){
  #usersView .card{ overflow-x:auto; }
  #usersTable{
    min-width:900px;
    table-layout:auto;
  }
}

/* ===== PORTAL CUSTOMERS TABLE ===== */
#portalCustomersTable{
  width:100% !important;
  table-layout:fixed;
}

#portalCustomersTable th,
#portalCustomersTable td{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

#portalCustomersTable td:last-child,
#portalCustomersTable th:last-child{
  white-space:nowrap;
  text-align:right;
}

@media (max-width:900px){
  #portalCustomersTable{
    min-width:1000px;
    table-layout:auto;
  }
}



/* ===== CUSTOMER PORTAL ===== */
.customer-login-link{
  display:block;
  margin-top:14px;
  text-align:center;
  color:#fff;
  font-weight:900;
  text-decoration:none;
  opacity:.95;
}
.customer-login-link:hover{ opacity:1; text-decoration:underline; }

.customer-portal-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin:0 0 18px;
}

.customer-portal-stat{
  padding:14px;
  border-radius:18px;
  background:rgba(255,255,255,.76);
  border:1px solid rgba(11,23,56,.08);
}

.customer-portal-label{
  font-size:12px;
  font-weight:950;
  color:rgba(11,23,56,.62);
  margin-bottom:6px;
}

.customer-portal-value{
  font-size:17px;
  font-weight:950;
  color:var(--text);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}


.customer-vehicle-tabs-card{
  margin-bottom:18px;
}

.vehicle-tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.vehicle-tab{
  border:1px solid rgba(31,95,255,.20);
  background:rgba(255,255,255,.72);
  border-radius:16px;
  padding:11px 14px;
  cursor:pointer;
  color:var(--text);
  min-width:150px;
  text-align:left;
  box-shadow:0 10px 24px rgba(6,20,60,.08);
  transition:transform .12s ease, border-color .12s ease, background .12s ease;
}

.vehicle-tab:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.88);
  border-color:rgba(31,95,255,.38);
}

.vehicle-tab.active{
  background:linear-gradient(180deg,rgba(31,95,255,.20),rgba(31,95,255,.10));
  border-color:rgba(31,95,255,.56);
}

.vehicle-tab-plate{
  display:block;
  font-size:16px;
  font-weight:950;
}

.vehicle-tab-meta{
  display:block;
  margin-top:4px;
  font-size:12px;
  font-weight:800;
  color:rgba(11,23,56,.66);
}

.portal-files-list{
  display:grid;
  gap:10px;
}

.portal-file-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px;
  border-radius:16px;
  background:rgba(255,255,255,.72);
  border:1px solid rgba(11,23,56,.08);
}

.portal-file-main{
  min-width:0;
}

.portal-file-name{
  font-weight:950;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.portal-file-meta{
  margin-top:4px;
  font-size:12px;
  color:rgba(11,23,56,.70);
  font-weight:750;
}

@media (max-width:1000px){
  .customer-portal-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width:560px){
  .customer-portal-grid{ grid-template-columns:1fr; }
  .portal-file-row{ align-items:flex-start; flex-direction:column; }
}

/* ===== LOGIN ===== */
:is(#loginView,#customerLoginView) .login-container{
  width:100%;
  max-width:420px;
  margin:0 auto;
  perspective:1000px;
  padding-top:140px;
}

:is(#loginView,#customerLoginView) .login-card{
  background:rgba(255,255,255,.14);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  border:1px solid rgba(255,255,255,.35);
  border-radius:24px;
  padding:34px 30px;
  box-shadow:0 18px 70px rgba(6,20,60,.18);
  position:relative;
  overflow:hidden;
}

:is(#loginView,#customerLoginView) .login-card::before{
  content:'';
  position:absolute;
  top:0;
  left:-100%;
  width:100%;
  height:2px;
  background:linear-gradient(90deg,transparent,rgba(31,95,255,.95),transparent);
  transition:left .6s ease;
}
:is(#loginView,#customerLoginView) .login-card:hover::before{ left:100%; }

:is(#loginView,#customerLoginView) .login-header{
  text-align:center;
  margin-bottom:26px;
}

:is(#loginView,#customerLoginView) .login-header h2{
  margin:0 0 8px;
  color:#fff;
  font-size:2rem;
  font-weight:900;
  letter-spacing:.3px;
  text-shadow:0 1px 0 rgba(0,0,0,.15),0 4px 12px rgba(0,0,0,.18);
}

:is(#loginView,#customerLoginView) .login-header p{
  margin:0;
  color:rgba(255,255,255,.90);
  font-weight:750;
}

:is(#loginView,#customerLoginView) .form-group{
  margin-bottom:18px;
  position:relative;
}

:is(#loginView,#customerLoginView) .input-wrapper{
  position:relative;
  display:flex;
  flex-direction:column;
}

:is(#loginView,#customerLoginView) .input-wrapper input{
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.24);
  border-radius:12px;
  padding:26px 16px 10px;
  line-height:1.25;
  color:#fff;
  font-size:16px;
  font-weight:600;
  letter-spacing:.2px;
  text-shadow:0 1px 2px rgba(0,0,0,.22);
  outline:none;
  transition:all .25s ease;
  backdrop-filter:blur(10px);
}

:is(#loginView,#customerLoginView) .input-wrapper input::placeholder{ color:transparent; }

:is(#loginView,#customerLoginView) .input-wrapper label{
  position:absolute;
  left:16px;
  top:12px;
  font-size:15px;
  line-height:1;
  color:rgba(255,255,255,.92);
  font-weight:600;
  transition:all .25s ease;
  pointer-events:none;
  transform-origin:left top;
}

:is(#loginView,#customerLoginView) .input-wrapper input:not(:placeholder-shown) + label,
:is(#loginView,#customerLoginView) .input-wrapper input:focus + label,
:is(#loginView,#customerLoginView) .input-wrapper input.has-value + label{
  transform:translateY(-10px) scale(.84);
  color:#06b6d4;
  font-weight:800;
}

:is(#loginView,#customerLoginView) .input-wrapper input:focus,
:is(#loginView,#customerLoginView) .input-wrapper input.has-value{
  border-color:#06b6d4;
  background:rgba(255,255,255,.16);
  transform:translateY(-2px);
  box-shadow:0 8px 22px rgba(6,182,212,.18);
}

:is(#loginView,#customerLoginView) .focus-border{
  position:absolute;
  bottom:0;
  left:50%;
  width:0;
  height:2px;
  background:linear-gradient(90deg,#06b6d4,#6366f1);
  transition:all .25s ease;
  transform:translateX(-50%);
  border-radius:2px;
}

:is(#loginView,#customerLoginView) .input-wrapper input:focus ~ .focus-border{ width:100%; }

:is(#loginView,#customerLoginView) .password-wrapper input{ padding-right:50px; }

:is(#loginView,#customerLoginView) .password-toggle{
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  background:none;
  border:none;
  cursor:pointer;
  padding:8px;
  z-index:2;
  opacity:.9;
}

:is(#loginView,#customerLoginView) .eye-icon{
  display:block;
  width:20px;
  height:20px;
  background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='rgba(255,255,255,0.7)' stroke-width='1.5'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M15 12a3 3 0 11-6 0 3 3 0 016 0z'/%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z'/%3e%3c/svg%3e");
  background-size:contain;
  background-repeat:no-repeat;
  background-position:center;
}

:is(#loginView,#customerLoginView) .eye-icon.show-password{
  background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='rgba(255,255,255,0.7)' stroke-width='1.5'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M3.98 8.223A10.477 10.477 0 001.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.45 10.45 0 0112 4.5c4.756 0 8.773 3.162 10.065 7.498a10.523 10.523 0 01-4.293 5.774M6.228 6.228L3 3m3.228 3.228l3.65 3.65m7.894 7.894L21 21m-3.228-3.228l-3.65-3.65m0 0a3 3 0 11-4.243-4.243m4.242 4.242L9.88 9.88'/%3e%3c/svg%3e");
}

:is(#loginView,#customerLoginView) .form-options{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin:16px 0 22px;
  flex-wrap:wrap;
}

:is(#loginView,#customerLoginView) .remember-wrapper{
  display:flex;
  align-items:center;
  gap:8px;
  cursor:pointer;
}

:is(#loginView,#customerLoginView) .remember-wrapper input{ display:none; }

:is(#loginView,#customerLoginView) .checkbox-label{
  color:rgba(255,255,255,.95);
  font-size:14px;
  font-weight:800;
  display:flex;
  align-items:center;
  gap:8px;
  user-select:none;
}

:is(#loginView,#customerLoginView) .checkmark{
  width:18px;
  height:18px;
  border:2px solid rgba(255,255,255,.30);
  border-radius:4px;
  background:rgba(255,255,255,.10);
  display:flex;
  align-items:center;
  justify-content:center;
  transition:all .2s ease;
}

:is(#loginView,#customerLoginView) .remember-wrapper input:checked ~ .checkbox-label .checkmark{
  background:#06b6d4;
  border-color:#06b6d4;
}

:is(#loginView,#customerLoginView) .remember-wrapper input:checked ~ .checkbox-label .checkmark::after{
  content:'✓';
  color:#fff;
  font-size:11px;
  font-weight:900;
}

:is(#loginView,#customerLoginView) .forgot-password{
  color:#06b6d4;
  text-decoration:none;
  font-weight:900;
  font-size:14px;
}

:is(#loginView,#customerLoginView) .forgot-password:hover{ color:#fff; }

:is(#loginView,#customerLoginView) .btn{
  width:100%;
  background:linear-gradient(135deg,#6366f1 0%,#06b6d4 100%);
  border:none;
  border-radius:12px;
  padding:15px 18px;
  color:#fff;
  font-size:16px;
  font-weight:900;
  cursor:pointer;
  position:relative;
  overflow:hidden;
  box-shadow:0 10px 26px rgba(6,20,60,.18);
  transition:transform .12s ease;
}

:is(#loginView,#customerLoginView) .btn:hover{ transform:translateY(-2px); }
:is(#loginView,#customerLoginView) .btn:active{ transform:translateY(0); }

:is(#loginView,#customerLoginView) .btn-loader{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  width:20px;
  height:20px;
  border:2px solid transparent;
  border-top:2px solid #fff;
  border-radius:50%;
  opacity:0;
  animation:spin 1s linear infinite;
}

:is(#loginView,#customerLoginView) .btn.loading .btn-text{ opacity:0; }
:is(#loginView,#customerLoginView) .btn.loading .btn-loader{ opacity:1; }

@keyframes spin{
  to{ transform:translate(-50%,-50%) rotate(360deg); }
}

:is(#loginView,#customerLoginView) .error-message{
  display:block;
  color:#ff6b6b;
  font-size:12px;
  font-weight:800;
  background:rgba(239,68,68,.12);
  padding:6px 10px;
  border-radius:10px;
  border:1px solid rgba(239,68,68,.22);
}

:is(#loginView,#customerLoginView) .error-message:empty{ display:none; }

:is(#loginView,#customerLoginView) .success-message{
  display:none;
  text-align:center;
  padding:22px 10px 6px;
}

:is(#loginView,#customerLoginView) .success-message.show{ display:block; }

:is(#loginView,#customerLoginView) .success-icon{
  width:58px;
  height:58px;
  border-radius:50%;
  background:#22c55e;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
  margin:0 auto 14px;
  font-weight:900;
}

@media (max-width:480px){
  :is(#loginView,#customerLoginView) .login-card{ padding:26px 18px; }
}

/* Μετακίνηση ΟΛΟΥ του header row λίγο δεξιά */
#customersTable thead th{
  padding-left: 11px !important;
  padding-right: 8px !important;
}

/* popup */
#messagesModal{
  align-items:flex-start;
  padding-top:38px;
}

#messagesModal .modal{
  width:min(1180px,96vw) !important;
  max-height:88vh;
}

.messages-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.messages-column-title{
  font-weight:950;
  font-size:18px;
  margin:0 0 10px;
  color:var(--text);
}

.email-template-card{
  display:grid;
  gap:7px;
  padding:10px;
  border-radius:14px;
  background:rgba(255,255,255,.76);
  border:1px solid rgba(11,23,56,.10);
}

@media (max-width:900px){
  .messages-grid{
    grid-template-columns:1fr;
  }
}

#messagesModal .modal-body{
  max-height:68vh;
  overflow-y:auto;
  padding:12px;
}

.message-card{
  display:grid;
  gap:7px;
  padding:10px;
  border-radius:14px;
  background:rgba(255,255,255,.76);
  border:1px solid rgba(11,23,56,.10);
}

.message-title{
  font-weight:950;
  font-size:15px;
  color:var(--text);
}

.message-meta{
  font-size:11.5px;
  color:rgba(11,23,56,.70);
  font-weight:750;
}

.message-textarea{
  width:100%;
  min-height:105px;
  max-height:140px;
  resize:vertical;
  padding:9px;
  border-radius:14px;
  border:1px solid rgba(11,23,56,.14);
  background:rgba(255,255,255,.94);
  color:var(--text);
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  font-size:12px;
  line-height:1.35;
}

.message-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

#messagesModal{
  z-index:99999;
}

#messagesModal .modal-header{
  position:sticky;
  top:0;
  z-index:5;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(10px);
}

body.modal-open .logo-header{
  display:none !important;
}

/* ===== VEHICLES MODAL ===== */
.vehicle-modal-layout{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(260px,.65fr);
  gap:14px;
  align-items:start;
}

.vehicle-list{
  display:grid;
  gap:10px;
  max-height:54vh;
  overflow:auto;
  padding-right:4px;
}

.vehicle-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px;
  border-radius:16px;
  background:rgba(255,255,255,.76);
  border:1px solid rgba(11,23,56,.08);
}

.vehicle-row-main{
  min-width:0;
}

.vehicle-row-plate{
  font-size:17px;
  font-weight:950;
  color:var(--text);
}

.vehicle-row-meta{
  margin-top:4px;
  font-size:12.5px;
  font-weight:750;
  color:rgba(11,23,56,.70);
}

.vehicle-row-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:8px;
}

.vehicle-add-card{
  padding:12px;
  border-radius:18px;
  background:rgba(255,255,255,.62);
  border:1px solid rgba(11,23,56,.08);
}

.vehicle-add-form{
  display:grid;
  gap:10px;
}

.vehicle-add-form label{
  display:grid;
  gap:6px;
}

.vehicle-paid-check{
  display:flex !important;
  grid-template-columns:none !important;
  align-items:center;
  gap:8px !important;
  font-weight:900;
}

.vehicle-paid-check input{
  width:18px;
  height:18px;
}

@media (max-width:900px){
  .vehicle-modal-layout{
    grid-template-columns:1fr;
  }
  .vehicle-row{
    align-items:flex-start;
    flex-direction:column;
  }
  .vehicle-row-actions{
    justify-content:flex-start;
  }
}


/* ===== USERS ROLE ALIGNMENT ===== */
#usersTable .role-select{
  width:170px !important;
  min-width:170px !important;
  max-width:170px !important;
  margin-left:-14px;
}

#usersTable td:nth-child(4) .badge{
  min-width:74px;
  text-align:center;
}

/* ===== TOAST NOTIFICATIONS ===== */

.toast-container{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:200000;
  width:min(380px,calc(100vw - 32px));
  display:grid;
  gap:10px;
  pointer-events:none;
}

.toast{
  pointer-events:auto;
  padding:14px 16px;
  border-radius:16px;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(255,255,255,.72);
  box-shadow:0 18px 50px rgba(6,20,60,.22);
  backdrop-filter:blur(18px) saturate(150%);
  -webkit-backdrop-filter:blur(18px) saturate(150%);

  color:var(--text);
  font-size:14px;
  font-weight:850;
  line-height:1.4;

  opacity:0;
  transform:translateY(16px) scale(.97);

  transition:
    opacity .22s ease,
    transform .22s ease;

  position:relative;
  overflow:hidden;
}

.toast::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:4px;
  background:var(--toast-color,#1f5fff);
}

.toast.show{
  opacity:1;
  transform:translateY(0) scale(1);
}

.toast.success{
  --toast-color:#22c55e;
}

.toast.error{
  --toast-color:#ef4444;
}

.toast.info{
  --toast-color:#1f5fff;
}

.toast.warning{
  --toast-color:#f59e0b;
}

@media (max-width:560px){
  .toast-container{
    left:16px;
    right:16px;
    bottom:16px;
    width:auto;
  }
}