/* Vet Engine – Vet Dashboard (MVP / upgraded) */

.ve-vetdash{
  --ve-bg: rgba(255,255,255,0.94);
  --ve-bg2: rgba(255,255,255,0.98);
  --ve-border: rgba(15,23,42,0.10);
  --ve-border-strong: rgba(15,23,42,0.16);

  --ve-text: rgba(15,23,42,0.92);
  --ve-muted: rgba(15,23,42,0.62);
  --ve-soft: rgba(15,23,42,0.08);

  --ve-primary: #1F6AE1;
  --ve-primary-2: rgba(31,106,225,0.10);
  --ve-primary-3: rgba(31,106,225,0.18);
  --ve-primary-4: rgba(31,106,225,0.28);

  --ve-danger: rgba(220,38,38,0.92);
  --ve-warn: rgba(245,158,11,0.95);
  --ve-ok: rgba(22,163,74,0.90);

  color: var(--ve-text);
  font-family: inherit;
  
}

.ve-vetdash *{ box-sizing:border-box; }

.ve-vetdash__wrap{
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 20px 0;
}

.ve-vetdash__top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.ve-vetdash__title{
  margin:0;
  font-size: clamp(22px, 2vw, 30px);
  line-height:1.1;
  letter-spacing:.2px;
}

.ve-vetdash__subtitle{
  margin: 8px 0 0;
  color: var(--ve-muted);
  font-size: 14px;
}

.ve-vetdash__pillrow{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.ve-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 9px 12px;
  border:1px solid var(--ve-border);
  background: var(--ve-bg);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ve-muted);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(15,23,42,0.05);
}

.ve-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background: var(--ve-soft);
}
.ve-dot--ok{ background: var(--ve-ok); }
.ve-dot--warn{ background: var(--ve-warn); }
.ve-dot--danger{ background: var(--ve-danger); }

.ve-vetdash__grid{
  display:grid;
  grid-template-columns: minmax(320px, 30%) minmax(0, 70%);
  gap: 18px;
  align-items:start;
}

@media (max-width: 1100px){
  .ve-vetdash__grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 940px){
  .ve-vetdash__top{ flex-direction:column; }
  .ve-vetdash__pillrow{ justify-content:flex-start; }
}

.ve-card{
  border:1px solid var(--ve-border);
  background: linear-gradient(180deg, var(--ve-bg2), var(--ve-bg));
  border-radius: 20px;
  padding: 18px;
  backdrop-filter: blur(10px);
  box-shadow:
    0 18px 40px rgba(15,23,42,0.08),
    inset 0 1px 0 rgba(255,255,255,0.45);
}

.ve-card--profile{
  position: sticky;
  top: 126px;
}

.ve-card--profile .ve-card__head{
  display:block;
}

.ve-card--profile .ve-card__title{
  margin-bottom:12px;
}

.ve-card--profile .ve-btnrow{
  width:100%;
  margin-left:0;
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:8px;
}

.ve-card--profile .ve-btnrow .ve-btn{
  width:100%;
  min-width:0;
  padding:0 10px !important;
}

@media (max-width: 1100px){
  .ve-card--profile{
    position: static;
  }
}

.ve-card--consultations{
  min-width: 0;
}

.ve-card__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom: 16px;
}

.ve-card__title{
  margin:0;
  font-size: 16px;
  color: var(--ve-text);
  font-weight: 800;
  letter-spacing: .1px;
}

.ve-btnrow{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-left:auto;
}

.ve-btn{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:6px !important;
  height:36px !important;
  min-height:36px !important;
  padding:0 12px !important;
  border-radius:999px !important;
  border:1px solid var(--ve-border) !important;
  background: rgba(255,255,255,0.82) !important;
  color: var(--ve-text) !important;
  font-size:12px !important;
  font-weight:700 !important;
  text-decoration:none !important;
  cursor:pointer !important;
  transition:
    transform .14s ease,
    background .14s ease,
    border-color .14s ease,
    box-shadow .14s ease,
    color .14s ease !important;
  box-shadow:none !important;
  white-space:nowrap !important;
}

.ve-btn:hover{
  transform: translateY(-1px) !important;
  border-color: var(--ve-border-strong) !important; 
  background: rgba(255,255,255,0.96) !important;
}

.ve-btn:active{ transform: translateY(0); }

.ve-btn--primary{
  background: rgba(31,106,225,0.08) !important;
  border-color: rgba(31,106,225,0.20) !important;
  color: var(--ve-primary) !important;
  box-shadow:none !important;
}

.ve-btn--primary:hover{
  background: rgba(31,106,225,0.12) !important;
  border-color: rgba(31,106,225,0.28) !important;
  color: var(--ve-primary) !important;
}
.ve-btn--danger{
  background: rgba(255,99,99,.10);
  border-color: rgba(255,99,99,.28);
  color: var(--ve-danger);
}




.ve-card--profile .ve-btnrow .ve-open-profile{
  order:1;
}

.ve-card--profile .ve-btnrow .ve-open-hours{
  order:2;
}

.ve-card--profile .ve-btnrow .ve-open-settings{
  order:3;
}

.ve-profile{
  display:flex;
  gap:14px;
  align-items:flex-start;
}

.ve-avatar{
  width: 76px;
  height: 76px;
  border-radius: 18px;
  border:1px solid var(--ve-border);
  background: linear-gradient(180deg, rgba(31,106,225,0.08), rgba(255,255,255,0.75));
  overflow:hidden;
  flex:0 0 auto;
  box-shadow: 0 10px 24px rgba(15,23,42,0.06);
}
.ve-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.ve-profile__meta{
  flex:1 1 auto;
  min-width:0;
}

.ve-profile__name{
  margin:0;
  font-weight:800;
  letter-spacing:.2px;
  font-size:18px;
}

.ve-profile__line{
  margin:6px 0 0;
  color: var(--ve-muted);
  font-size: 13px;
  line-height:1.45;
}

.ve-profile__line--sub{
  font-size: 13px;
}

.ve-kv{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

@media (max-width: 520px){
  .ve-kv{ grid-template-columns:1fr; }
}

.ve-kv__item{
  border:1px solid var(--ve-border);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255,255,255,0.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45);
}

.ve-kv__k{
  font-size: 12px;
  color: var(--ve-muted);
  margin-bottom: 5px;
}

.ve-kv__v{
  font-size: 13px;
  color: var(--ve-text);
  word-break: break-word;
  line-height:1.45;
}

.ve-alert{
  border:1px solid rgba(245,158,11,0.22);
  border-left: 4px solid var(--ve-warn);
  background: rgba(245,158,11,0.09);
  border-radius: 14px;
  padding: 12px;
  color: var(--ve-text);
  font-size: 13px;
  line-height:1.45;
  margin-top: 14px;
}

.ve-muted{ color: var(--ve-muted); }
.ve-small{ font-size: 12px; color: var(--ve-muted); }

.ve-links a{
  color: var(--ve-primary);
  text-decoration:none;
  font-weight:600;
}
.ve-links a:hover{ text-decoration:underline; }

.ve-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 7px 10px;
  border-radius: 999px;
  border:1px solid var(--ve-border);
  background: rgba(255,255,255,0.78);
  font-size: 12px;
  color: var(--ve-muted);
  white-space: nowrap;
  font-weight: 700;
}

.ve-badge--ok{
  border-color: rgba(22,163,74,0.25);
  background: rgba(22,163,74,0.08);
  color: rgba(22,163,74,0.92);
}
.ve-badge--warn{
  border-color: rgba(245,158,11,0.26);
  background: rgba(245,158,11,0.10);
  color: rgba(180,110,0,0.95);
}
.ve-badge--danger{
  border-color: rgba(220,38,38,0.24);
  background: rgba(220,38,38,0.08);
  color: rgba(220,38,38,0.92);
}

/* RIGHT SIDE */
.ve-sections{
  display:grid;
  gap: 14px;
}

.ve-section{
  border:1px solid var(--ve-border);
  border-radius: 18px;
  background: rgba(255,255,255,0.62);
  padding: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.42);
}

.ve-section__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  margin-bottom: 12px;
}

.ve-section__titleWrap{
  min-width:0;
}

.ve-section__title{
  margin:0;
  font-size: 15px;
  font-weight: 800;
  color: var(--ve-text);
}

.ve-section__sub{
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--ve-muted);
}

.ve-statline{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.ve-statpill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 8px 10px;
  border-radius: 999px;
  border:1px solid var(--ve-border);
  background: rgba(255,255,255,0.80);
  font-size: 12px;
  color: var(--ve-muted);
  font-weight: 700;
}

.ve-list{
  display:grid;
  gap: 10px;
}

.ve-consultCard{
  display:grid;
  grid-template-columns: 180px minmax(0,1fr) auto;
  gap: 12px;
  align-items:stretch;
  border:1px solid var(--ve-border);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(248,250,252,0.82));
  padding: 12px;
  box-shadow: 0 8px 20px rgba(15,23,42,0.04);
}

.ve-consultCard--recent{
  grid-template-columns: 190px minmax(0,1fr) auto;
}

.ve-consultCard__time{
  border:1px solid var(--ve-border);
  border-radius: 14px;
  background: rgba(31,106,225,0.05);
  padding: 12px;
  min-width: 0;
}

.ve-consultCard__date{
  font-size: 12px;
  color: var(--ve-muted);
  margin-bottom: 4px;
  font-weight: 700;
}

.ve-consultCard__hour{
  font-size: 17px;
  line-height: 1.15;
  font-weight: 800;
  color: var(--ve-text);
}

.ve-consultCard__meta{
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.ve-consultCard__name{
  margin:0;
  font-size: 15px;
  font-weight: 800;
  color: var(--ve-text);
  line-height: 1.3;
}

.ve-consultCard__pet{
  margin: 5px 0 0;
  font-size: 13px;
  color: var(--ve-muted);
}

.ve-consultCard__issue{
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--ve-text);
  line-height: 1.45;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(15,23,42,0.04);
  border:1px solid rgba(15,23,42,0.06);
}

.ve-consultCard__actions{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  justify-content:space-between;
  gap: 10px;
  min-width: 145px;
}

.ve-consultCard__id{
  font-size: 11px;
  color: var(--ve-muted);
  text-align:right;
  line-height: 1.4;
}

.ve-empty{
  border:1px dashed var(--ve-border-strong);
  border-radius: 16px;
  padding: 18px;
  background: rgba(255,255,255,0.52);
  color: var(--ve-muted);
  font-size: 13px;
}

/* DOCUMENTS */
.ve-docList{
  display:grid;
  gap: 10px;
}

.ve-docCard{
  display:grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 12px;
  align-items:center;
  border:1px solid var(--ve-border);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(248,250,252,0.82));
  padding: 12px;
  box-shadow: 0 8px 20px rgba(15,23,42,0.04);
}

.ve-docCard__main{
  min-width:0;
}

.ve-docCard__top{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom: 6px;
}

.ve-docType{
  display:inline-flex;
  align-items:center;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(31,106,225,0.08);
  color: var(--ve-primary);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.ve-docCard__title{
  font-size: 15px;
  font-weight: 800;
  color: var(--ve-text);
  line-height: 1.3;
}

.ve-docCard__meta{
  font-size: 12px;
  color: var(--ve-muted);
  line-height:1.45;
}

.ve-docCard__actions{
  display:flex;
  align-items:center;
  gap: 8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.ve-doc-pdf-link{
  color: var(--ve-primary);
  text-decoration:none;
  font-size: 13px;
  font-weight: 700;
}
.ve-doc-pdf-link:hover{ text-decoration:underline; }

/* legacy table safe fallback */
.ve-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border-radius: 14px;
  border:1px solid var(--ve-border);
}

.ve-table th,
.ve-table td{
  padding: 10px;
  vertical-align:top;
  font-size: 13px;
}
.ve-table th{
  text-align:left;
  color: var(--ve-muted);
  background: rgba(255,255,255,0.70);
  border-bottom:1px solid var(--ve-border);
}
.ve-table tr:not(:last-child) td{
  border-bottom:1px solid rgba(15,23,42,0.06);
}

/* Modal */
.ve-modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
  overflow-y: auto;
}

.ve-modal.is-open{ display:block; }

.ve-modal__overlay{
  position:absolute;
  inset:0;
  background: rgba(15,23,42,.45);
  backdrop-filter: blur(6px);
}

.ve-modal__panel{
  position: relative;
  width: min(860px, calc(100% - 24px));
  max-height: calc(100vh - 40px);
  height: auto;
  margin: 20px auto;
  background: #fff;
  border:1px solid rgba(15,23,42,.12);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(15,23,42,.20);
  display:flex;
  flex-direction:column;
  overflow:hidden;
}

.ve-modal__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 16px;
  border-bottom:1px solid rgba(15,23,42,.10);
}

.ve-modal__head h3{
  margin:0;
  font-size:16px;
  color: rgba(15,23,42,.92);
}

.ve-modal__close{
  border:1px solid rgba(15,23,42,.12);
  background: rgba(15,23,42,.04);
  color: rgba(15,23,42,.85);
  border-radius: 12px;
  padding: 8px 10px;
  cursor:pointer;
}

.ve-modal__form{
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
  min-height:0;
}

.ve-modal__body{
  padding: 14px 16px 16px;
  overflow-y:auto;
  overflow-x:hidden;
  flex:1 1 auto;
  min-height:0;
  -webkit-overflow-scrolling: touch;
}

.ve-formgrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 820px){
  .ve-formgrid{ grid-template-columns:1fr; }
}

.ve-field label{
  display:block;
  font-size: 12px;
  color: rgba(15,23,42,.70);
  margin-bottom: 6px;
}

.ve-field input,
.ve-field textarea,
.ve-field select{
  width:100%;
  padding: 11px 12px;
  border-radius: 12px;
  border:1px solid rgba(15,23,42,.14);
  background: #fff;
  color: rgba(15,23,42,.92);
  outline:none;
}

.ve-field textarea{
  min-height: 96px;
  resize: vertical;
}

.ve-modal__foot{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  padding: 14px 16px;
  border-top:1px solid rgba(15,23,42,.10);
  background: rgba(15,23,42,.02);
  flex:0 0 auto;
}

.ve-modal__notice{
  display:none;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 13px;
}

.ve-modal__notice--error{
  display:block;
  background: rgba(220,38,38,.08);
  border:1px solid rgba(220,38,38,.18);
  color: rgba(220,38,38,.92);
}
.ve-modal__notice--success{
  display:block;
  background: rgba(22,163,74,.08);
  border:1px solid rgba(22,163,74,.18);
  color: rgba(22,163,74,.92);
}

.ve-modal__actions{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:nowrap;
  margin-left:auto;
}

.ve-modal__actions .ve-btn{
  min-width: 140px;
  width: auto;
}

.ve-modal__spinner{
  width:14px;
  height:14px;
  border-radius:50%;
  border:2px solid rgba(15,23,42,.20);
  border-top-color: rgba(15,23,42,.65);
  display:none;
  animation: veSpin .8s linear infinite;
}

@keyframes veSpin { to { transform: rotate(360deg); } }

.ve-langpicker{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.ve-langpill{
  appearance:none !important;
  border:1px solid rgba(15,23,42,.12) !important;
  background: rgba(255,255,255,.84) !important;
  color: var(--ve-text) !important;
  padding: 8px 10px !important;
  border-radius: 999px !important;
  cursor:pointer !important;
  font-weight:700 !important;
  font-size:13px !important;
  line-height:1 !important;
  transition: transform .08s ease, background .12s ease, border-color .12s ease, color .12s ease !important;
}
.ve-langpill:hover{
  transform: translateY(-1px) !important;
  border-color: rgba(31,106,225,.24) !important;
}
.ve-langpill.is-on{
  background: rgba(31,106,225,.10) !important;
  border-color: rgba(31,106,225,.28) !important;
  color: var(--ve-primary) !important;
}

@media (max-width: 900px){
  .ve-section{
    padding: 12px;
  }

  .ve-consultCard,
  .ve-consultCard--recent,
  .ve-docCard{
    grid-template-columns: 1fr;
  }

  .ve-consultCard__actions,
  .ve-docCard__actions{
    min-width: 0;
    align-items: stretch;
    justify-content:flex-start;
  }

  .ve-consultCard__id{
    text-align:left;
  }

  .ve-card__head{
  flex-direction:column;
  align-items:stretch;
}

.ve-btnrow{
  width:100%;
  flex-wrap:wrap;
  margin-left:0;
}

.ve-card--profile .ve-btnrow{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:8px;
}

.ve-card--profile .ve-btnrow .ve-btn{
  width:100%;
  min-width:0;
  padding:0 10px;
}
}

@media (max-width: 640px){
  .ve-vetdash__wrap{
    padding: 14px 0;
  }

  .ve-card{
    padding: 14px;
    border-radius: 18px;
  }

  .ve-profile{
    align-items:center;
  }

  .ve-avatar{
    width:64px;
    height:64px;
    border-radius:16px;
  }

  .ve-modal__panel{
    width: calc(100% - 12px);
    margin: 6px auto;
    max-height: calc(100vh - 12px);
    border-radius: 16px;
  }

  .ve-modal__head,
  .ve-modal__body,
  .ve-modal__foot{
    padding-left: 12px;
    padding-right: 12px;
  }
  
    .ve-modal__foot{
    flex-direction: column;
    align-items: stretch;
  }

  .ve-modal__foot > .ve-small{
    display:none;
  }

  .ve-modal__actions{
    width:100%;
    flex-direction: column-reverse;
    align-items: stretch;
    justify-content: stretch;
    gap:10px;
    margin-left:0;
  }

  .ve-modal__actions .ve-btn{
    width:100%;
    min-width:0;
  }
}

.ve-open-doc,
.ve-doc-regen,
.ve-modal__save,
.ve-doc-save-draft,
.ve-doc-finalize {
    color: var(--ve-primary) !important;
}

.ve-consultCard__time{
  min-height: 120px;
  min-width: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
}

.ve-consultCard__date{
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.ve-consultCard__hour{
  font-size: 32px;
  line-height: 1;
  font-weight: 800;
  text-align: center;
}

/* smaller time font for recently finished consultations */
.ve-consultCard--recent .ve-consultCard__hour{
  font-size: 24px;
  white-space: nowrap;
}


.ve-statusPill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid rgba(34, 197, 94, 0.18);
  background: rgba(34, 197, 94, 0.10);
  color: #166534;
}

.ve-statusPill--done{
  border-color: rgba(34, 197, 94, 0.22);
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
}


/* SETTINGS MODAL */
.ve-settings-modal .ve-modal__panel{
  width: min(560px, calc(100% - 24px));
  border-radius: 22px;
  border: 1px solid rgba(15,23,42,.10);
  box-shadow:
    0 28px 80px rgba(15,23,42,.22),
    0 8px 24px rgba(15,23,42,.10);
  overflow: hidden;
}

.ve-settings-modal .ve-modal__head{
  padding: 18px 20px;
  border-bottom: 1px solid rgba(15,23,42,.08);
  background:
    linear-gradient(180deg, rgba(31,106,225,0.04), rgba(255,255,255,0.96));
}

.ve-settings-modal .ve-modal__head h3{
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--ve-text);
}

.ve-settings-modal .ve-modal__close{
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.86);
  color: var(--ve-text);
  font-size: 13px;
  font-weight: 700;
  transition: background .14s ease, border-color .14s ease, transform .14s ease;
}

.ve-settings-modal .ve-modal__close:hover{
  background: rgba(255,255,255,1);
  border-color: rgba(15,23,42,.16);
  transform: translateY(-1px);
}

.ve-settings-modal .ve-modal__body{
  padding: 20px;
}

.ve-settings-form{
  background: #fff;
}

.ve-settings-form .ve-field + .ve-field{
  margin-top: 14px;
}

.ve-settings-form .ve-field label{
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(15,23,42,.72);
  letter-spacing: .01em;
}

.ve-settings-form .ve-field input[type="password"]{
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(248,250,252,.92);
  color: var(--ve-text);
  font-size: 14px;
  transition:
    border-color .16s ease,
    background .16s ease,
    box-shadow .16s ease,
    transform .16s ease;
}

.ve-settings-form .ve-field input[type="password"]:hover{
  border-color: rgba(15,23,42,.18);
  background: #fff;
}

.ve-settings-form .ve-field input[type="password"]:focus{
  outline: none;
  background: #fff;
  border-color: rgba(31,106,225,.30);
  box-shadow: 0 0 0 4px rgba(31,106,225,.10);
  transform: translateY(-1px);
}

.ve-settings-notice{
  margin-top: 16px;
}

.ve-settings-form .ve-modal__body > div[style*="margin-top:18px"]{
  margin-top: 22px !important;
  padding-top: 18px !important;
  border-top: 1px solid rgba(15,23,42,.08) !important;
}

.ve-settings-logout{
  min-width: 140px;
  justify-content: center;
}

.ve-btn--danger.ve-settings-logout{
  background: rgba(220,38,38,.08) !important;
  border-color: rgba(220,38,38,.20) !important;
  color: rgba(220,38,38,.96) !important;
  box-shadow: none !important;
}

.ve-btn--danger.ve-settings-logout:hover{
  background: rgba(220,38,38,.12) !important;
  border-color: rgba(220,38,38,.30) !important;
  color: rgba(185,28,28,.98) !important;
}

.ve-settings-modal .ve-modal__foot{
  padding: 16px 20px;
  border-top: 1px solid rgba(15,23,42,.08);
  background: rgba(248,250,252,.72);
}

.ve-settings-modal .ve-modal__actions{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.ve-settings-modal .ve-modal__actions .ve-btn{
  min-width: 132px;
}

.ve-settings-save{
  box-shadow: 0 10px 24px rgba(31,106,225,.16) !important;
}

.ve-settings-save:hover{
  box-shadow: 0 14px 28px rgba(31,106,225,.20) !important;
}

.ve-settings-spinner{
  margin-right: 2px;
}

@media (max-width: 640px){
  .ve-settings-modal .ve-modal__panel{
    width: calc(100% - 12px);
    margin: 6px auto;
    border-radius: 18px;
  }

  .ve-settings-modal .ve-modal__head,
  .ve-settings-modal .ve-modal__body,
  .ve-settings-modal .ve-modal__foot{
    padding-left: 14px;
    padding-right: 14px;
  }

  .ve-settings-modal .ve-modal__actions{
    flex-direction: column-reverse;
    align-items: stretch;
    justify-content: stretch;
  }

  .ve-settings-modal .ve-modal__actions .ve-btn,
  .ve-settings-logout{
    width: 100%;
    min-width: 0;
  }
}


/* =========================================
   Dual modal layout: booking left + doc right
========================================= */
@media (min-width: 1200px){
  .ve-modal.ve-modal--split{
    display:block;
    pointer-events:none;
  }

  .ve-modal.ve-modal--split .ve-modal__overlay{
    display:none;
  }

  .ve-modal.ve-modal--split .ve-modal__panel{
    position: fixed;
    top: 24px;
    bottom: 24px;
    margin: 0;
    max-height: none;
    height: calc(100vh - 48px);
    width: calc(50vw - 36px);
    max-width: none;
    pointer-events:auto;
    border-radius: 20px;
  }

  /* left popup = consultation info */
  .ve-modal.ve-modal--split.ve-upcoming-booking-modal .ve-modal__panel,
  .ve-modal.ve-modal--split.ve-booking-modal .ve-modal__panel{
    left: 24px;
  }

  /* right popup = document modal */
  .ve-modal.ve-modal--split.ve-doc-modal .ve-modal__panel{
    right: 24px;
  }
}

/* normal mobile/tablet fallback */
@media (max-width: 1199px){
  .ve-modal.ve-modal--split .ve-modal__overlay{
    display:block;
  }

  .ve-modal.ve-modal--split .ve-modal__panel{
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: min(860px, calc(100% - 24px));
    height: auto;
    max-height: calc(100vh - 40px);
    margin: 20px auto;
  }
}