/* VLADIO Control Center — document list only. */
body:has(.vl-shell) .vl-doc-list { display:grid; gap:12px; margin-top:16px; }
body:has(.vl-shell) .vl-doc-list .vl-item {
  display:flex; align-items:center; justify-content:space-between; gap:18px;
  padding:17px 18px; border:1px solid #29445c; border-radius:14px;
  background:linear-gradient(135deg,#13273b 0%,#0d1c2d 100%);
  box-shadow:0 3px 14px rgba(0,0,0,.12); min-width:0;
  transition:border-color .18s, background .18s;
}
body:has(.vl-shell) .vl-doc-list .vl-item:hover { border-color:#569cc6; background:#142c42; }
body:has(.vl-shell) .vl-doc-list .vl-item > div:first-child { min-width:0; flex:1; }
body:has(.vl-shell) .vl-doc-list .vl-item b {
 display:block; font-size:15px; line-height:1.45; font-weight:650;
 color:#f1f8ff; overflow-wrap:anywhere; margin-bottom:7px;
}
body:has(.vl-shell) .vl-doc-list .vl-item small {
 display:block; font-size:12px; line-height:1.45; color:#9db9ce;
}
body:has(.vl-shell) .vl-doc-list .vl-doc-actions { display:flex; gap:9px; flex-wrap:wrap; flex-shrink:0; }
body:has(.vl-shell) .vl-doc-list .vl-doc-actions .vl-action {
 display:inline-flex; justify-content:center; align-items:center; min-height:38px;
 padding:9px 14px; border-radius:9px; background:#48b7f2; color:#081827;
 font-size:13px; font-weight:700; text-decoration:none; border:1px solid transparent;
 box-sizing:border-box; transition:background .18s, border-color .18s;
}
body:has(.vl-shell) .vl-doc-list .vl-doc-actions .vl-action:hover { background:#87d7ff; }
body:has(.vl-shell) .vl-doc-list .vl-doc-actions .vl-action-secondary {
 background:#182d43!important; color:#cae6f7!important; border-color:#375a77!important;
}
body:has(.vl-shell) .vl-doc-list .vl-doc-actions .vl-action-secondary:hover { background:#25445f!important; }
body:has(.vl-shell) .vl-doc-list .vl-doc-actions a:focus-visible { outline:2px solid #9bddff; outline-offset:3px; }
@media(max-width:680px) {
 body:has(.vl-shell) .vl-doc-list .vl-item { flex-direction:column; align-items:stretch; padding:14px; gap:12px; }
 body:has(.vl-shell) .vl-doc-list .vl-doc-actions { width:100%; }
 body:has(.vl-shell) .vl-doc-list .vl-doc-actions .vl-action { flex:1; min-width:0; }
}
*{box-sizing:border-box}body{margin:0;min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at top,#193653,#07111d 72%);color:#eff7ff;font:16px/1.5 system-ui,Arial,sans-serif;padding:22px}.panel{width:min(100%,470px);background:#112439;border:1px solid #34516c;border-radius:20px;padding:clamp(20px,4vw,34px);box-shadow:0 20px 50px #0005}.brand{font-weight:850;font-size:22px;letter-spacing:2px}.brand span{display:block;font-size:10px;letter-spacing:3px;color:#73ceff}h1{font-size:26px;margin:28px 0 8px}p{color:#c2d2e1}label{display:block;margin:16px 0 6px;font-weight:650}input{width:100%;border:1px solid #476681;background:#091929;color:#fff;border-radius:10px;padding:13px;font:inherit;outline-offset:3px}input:focus{outline:2px solid #56c7ff}button{width:100%;border:0;border-radius:10px;background:#67cfff;color:#092036;font-weight:750;font:inherit;padding:13px;margin-top:22px;cursor:pointer}button:hover{background:#a1e2ff}.alert{padding:12px;background:#40232a;border:1px solid #d86f7a;border-radius:10px;margin-top:16px}.small{font-size:12px;margin-top:24px;color:#a5bad0}.secret,.uri{overflow-wrap:anywhere;padding:13px;background:#071827;border:1px solid #34516c;border-radius:9px;letter-spacing:1px}.uri{letter-spacing:0;font-size:12px}details{margin:18px 0}


/* Dashboard — scoped to authenticated view only */
body:has(.vl-shell) {background:#07121e;color:#f1f7fc;margin:0}
body:has(.vl-shell) .panel {width:auto;max-width:none;margin:0;padding:0;border:0;box-shadow:none;background:transparent}
.vl-shell{min-height:100vh;display:grid;grid-template-columns:248px minmax(0,1fr);font-family:system-ui,-apple-system,Segoe UI,sans-serif}
.vl-sidebar{background:#0c1a2b;border-right:1px solid #253a52;padding:26px 14px;display:flex;flex-direction:column;gap:18px}
.vl-sidebrand{font-weight:800;font-size:23px;letter-spacing:.06em;color:#fff;padding:0 11px}
.vl-sidebrand span{display:block;color:#79cfff;font-size:11px;letter-spacing:.15em;margin-top:3px}
.vl-sidecaption,.vl-muted{color:#b4c8d9;line-height:1.6}
.vl-sidecaption{font-size:12px;padding:0 11px;margin:0}
.vl-nav{display:grid;gap:6px}
.vl-nav a{display:flex;gap:10px;align-items:center;text-decoration:none;color:#d4e4f1;border-radius:11px;padding:13px 12px;font-size:14px}
.vl-nav a small{display:block;color:#9db6ca;margin-top:4px;font-size:11px}
.vl-nav a:hover,.vl-nav a.is-active{background:#1a3d5b;color:#fff}
.vl-logout{margin-top:auto}.vl-logout button{width:100%;background:#1d3045;color:#d8e7f3;border:1px solid #39546d}
.vl-main{min-width:0;padding:30px clamp(18px,4vw,55px) 55px;max-width:1250px;width:100%;box-sizing:border-box}
.vl-top{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:22px}.vl-top h1{font-size:30px;color:#fff;margin:5px 0}
.vl-eyebrow{font-size:11px;font-weight:800;letter-spacing:.16em;color:#67c5ff}.vl-private{color:#b6d2e4;font-size:12px;white-space:nowrap}
.vl-statgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:22px 0}
.vl-stat,.vl-card{border:1px solid #2a435d;background:#122438;border-radius:16px;padding:22px;min-width:0}
.vl-stat span,.vl-stat small{display:block;color:#afc5d8;font-size:13px}.vl-stat strong{display:block;font-size:32px;color:white;margin:11px 0}
.vl-card{margin-top:20px}.vl-card h2{color:#fff;margin:0 0 16px;font-size:20px}
.vl-linkgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.vl-linkgrid a{background:#193147;border:1px solid #38566c;border-radius:12px;padding:16px;color:#fff;text-decoration:none}.vl-linkgrid small{display:block;color:#b8cad9;margin-top:6px}
.vl-tabs{display:flex;gap:9px;flex-wrap:wrap;margin:20px 0}.vl-tabs a{color:#c6ddeb;border:1px solid #36536d;border-radius:10px;padding:10px 16px;text-decoration:none}.vl-tabs a.is-active{background:#2374a5;border-color:#2374a5;color:white}
.vl-tablewrap{max-width:100%;overflow:auto}.vl-tablewrap table{width:100%;border-collapse:collapse;min-width:590px;font-size:13px}.vl-tablewrap th,.vl-tablewrap td{padding:12px;border-bottom:1px solid #2f465b;text-align:left;white-space:nowrap}.vl-tablewrap th{color:#a9c9dc}.vl-tablewrap td{color:#fff}
@media(max-width:820px){.vl-shell{display:block}.vl-sidebar{padding:16px;position:static}.vl-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.vl-main{padding:20px 16px}.vl-statgrid,.vl-linkgrid{grid-template-columns:1fr}.vl-top h1{font-size:25px}.vl-private{white-space:normal}.vl-top{align-items:flex-start}}

/* VLADIO navigation icon system: uniform 20px line SVGs */
.vl-icon{width:20px;height:20px;flex:none;display:inline-block;vertical-align:middle;color:#8db8d6;transition:color .15s ease;stroke:currentColor}
.vl-nav a:hover .vl-icon,.vl-nav a.is-active .vl-icon{color:#73d2ff}
.vl-nav a span{min-width:0}
.vl-logout button{display:flex;align-items:center;justify-content:center;gap:10px}
.vl-logout button .vl-icon{color:inherit}
@media(prefers-reduced-motion:reduce){.vl-icon{transition:none}}
/* GROUP: calendar, tasks, documents */
.vl-form{display:grid;gap:12px;max-width:800px}.vl-form label{display:grid;gap:7px;margin:0;color:#d1e3f0;font-weight:600}.vl-form input,.vl-form textarea,.vl-form select,.vl-inline select{background:#0a1a2b;border:1px solid #49657b;border-radius:9px;color:#fff;padding:11px;width:100%;font:inherit}.vl-formgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.vl-form button,.vl-inline button{width:auto;margin:0;justify-self:start}.vl-form button{padding:11px 19px}.vl-stack{display:grid;gap:9px}.vl-item{display:flex;gap:16px;align-items:center;justify-content:space-between;border:1px solid #314e65;background:#152d44;border-radius:11px;padding:13px 16px;min-width:0;flex-wrap:wrap}.vl-item small{display:block;color:#b4c9d9;font-size:12px}.vl-item b,.vl-item span{overflow-wrap:anywhere}.vl-inline{display:flex;align-items:center;gap:8px}.vl-inline select{min-width:125px}.vl-inline button{padding:10px}.vl-message{background:#173d37;border:1px solid #4e9d8d;border-radius:11px;padding:14px;color:#e8fff9}.vl-action{background:#286b98;border-radius:9px;color:white;text-decoration:none;padding:9px 13px;white-space:nowrap}@media(max-width:620px){.vl-formgrid{grid-template-columns:1fr}.vl-item{align-items:flex-start;flex-direction:column}}

/* Control Center 2.0 Core — theme tokens */
body:has(.vl-shell){--cc-bg:#081321;--cc-side:#0b1a2b;--cc-panel:#14283d;--cc-soft:#193147;--cc-border:#2b4761;--cc-fg:#f1f7ff;--cc-muted:#b1c6d8;--cc-accent:#68cbff;background:var(--cc-bg);color:var(--cc-fg)}
body.cc-light:has(.vl-shell){--cc-bg:#f4f7fb;--cc-side:#e7eef6;--cc-panel:#fff;--cc-soft:#edf4fa;--cc-border:#cbd9e5;--cc-fg:#14283c;--cc-muted:#455b70;--cc-accent:#005e99}
body:has(.vl-shell) .vl-sidebar{background:var(--cc-side);border-color:var(--cc-border)}
body:has(.vl-shell) .vl-stat,body:has(.vl-shell) .vl-card{background:var(--cc-panel);border-color:var(--cc-border)}
body:has(.vl-shell) .vl-item,body:has(.vl-shell) .vl-linkgrid a{background:var(--cc-soft);border-color:var(--cc-border)}
body:has(.vl-shell) .vl-sidebrand,body:has(.vl-shell) .vl-top h1,body:has(.vl-shell) .vl-card h2,body:has(.vl-shell) .vl-stat strong,body:has(.vl-shell) .vl-tablewrap td,body:has(.vl-shell) .vl-linkgrid a,body:has(.vl-shell) .vl-nav a,body:has(.vl-shell) .vl-form label,body:has(.vl-shell) .vl-item{color:var(--cc-fg)}
body:has(.vl-shell) .vl-muted,body:has(.vl-shell) .vl-sidecaption,body:has(.vl-shell) .vl-stat span,body:has(.vl-shell) .vl-stat small,body:has(.vl-shell) .vl-item small,body:has(.vl-shell) .vl-linkgrid small{color:var(--cc-muted)}
body:has(.vl-shell) .vl-form :is(input,select,textarea),body:has(.vl-shell) .vl-inline select{background:var(--cc-soft);color:var(--cc-fg);border-color:var(--cc-border)}
body:has(.vl-shell) .vl-nav a.is-active,body:has(.vl-shell) .vl-nav a:hover{background:var(--cc-panel);color:var(--cc-fg)}
body:has(.vl-shell) .vl-tablewrap th,body:has(.vl-shell) .vl-tablewrap td{border-color:var(--cc-border)}
body:has(.vl-shell) .vl-tablewrap th{color:var(--cc-muted)}
body:has(.vl-shell) .vl-tabs a{color:var(--cc-fg);border-color:var(--cc-border)}
body:has(.vl-shell) .vl-tabs a.is-active{background:var(--cc-accent);color:var(--cc-bg)}
body:has(.vl-shell) .vl-logout button{color:var(--cc-fg);background:var(--cc-panel);border-color:var(--cc-border)}
body:has(.vl-shell) :is(a,button,input,select,textarea):focus-visible{outline:3px solid var(--cc-accent);outline-offset:2px}
@media(max-width:820px){body:has(.vl-shell) .vl-nav{grid-template-columns:1fr 1fr}}
@media(max-width:420px){body:has(.vl-shell) .vl-nav{grid-template-columns:1fr}}

/* VLADIO Document Viewer · dark only */
.vl-doc-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.vl-action-secondary{background:transparent!important;color:#a5c9e0!important;border:1px solid #36516a!important}
.vl-doc-viewer{background:#0c1d30;border:1px solid #29475e;border-radius:18px;margin:18px 0 24px;padding:16px;color:#eef7ff}
.vl-viewer-top{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:12px}
.vl-viewer-top h3{margin:5px 0;font-size:19px;overflow-wrap:anywhere;color:#fff}
.vl-viewer-top p{margin:0;color:#a6bbd0;font-size:13px}
.vl-viewer-eyebrow{letter-spacing:1.2px;color:#6dccff;font-size:11px;font-weight:700}
.vl-document-frame{display:block;width:100%;height:min(75vh,760px);min-height:360px;background:#f4f7fa;border:1px solid #36516a;border-radius:10px}
@media(max-width:600px){/* VLADIO Control Center — Documente filters, list, viewer (dark) */
body:has(.vl-shell) .vl-doc-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:18px;border:1px solid #2d4a64;border-radius:14px;background:#0e2033;margin:16px 0 20px;align-items:end}
body:has(.vl-shell) .vl-doc-filters label{display:flex;flex-direction:column;gap:9px;margin:0;color:#bed4e7;font-size:13px;font-weight:700;letter-spacing:.01em;min-width:0}
body:has(.vl-shell) .vl-doc-filters select{display:block;width:100%;min-height:46px;padding:11px 42px 11px 14px;border-radius:10px;border:1px solid #41617c;background:#152d43;color:#f0f9ff;font:inherit;font-weight:500;cursor:pointer;appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%2389d7ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 13px center;background-size:18px}
body:has(.vl-shell) .vl-doc-filters select:focus-visible{outline:2px solid #72cbff;outline-offset:2px;border-color:#72cbff}
body:has(.vl-shell) .vl-doc-filters select option{background:#12273c;color:#f1f8ff}
body:has(.vl-shell) .vl-doc-list{display:grid;gap:12px}
body:has(.vl-shell) .vl-doc-list .vl-doc-item{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;background:#10283d;border:1px solid #304f6a;border-radius:14px;transition:border-color .18s,background .18s}
body:has(.vl-shell) .vl-doc-list .vl-doc-item:hover,body:has(.vl-shell) .vl-doc-list .vl-doc-item.is-previewed{background:#17354d;border-color:#5a9bc2}
body:has(.vl-shell) .vl-doc-info{display:flex;gap:14px;align-items:center;min-width:0;flex:1}
body:has(.vl-shell) .vl-doc-icon{display:grid;place-items:center;flex-shrink:0;width:44px;height:48px;border:1px solid #355e7f;border-radius:11px;background:#1b3a54;color:#82d6ff;font-size:26px}
body:has(.vl-shell) .vl-doc-details{min-width:0}
body:has(.vl-shell) .vl-doc-details b{display:block;color:#fff;font-size:15px;overflow-wrap:anywhere;line-height:1.4}
body:has(.vl-shell) .vl-doc-details small{display:block;color:#aec8db;font-size:12px;line-height:1.6;margin-top:5px}
body:has(.vl-shell) .vl-doc-category{font-weight:750;color:#80d3ff}
body:has(.vl-shell) .vl-doc-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
body:has(.vl-shell) .vl-doc-actions .vl-action{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:9px 14px;border-radius:9px;border:1px solid #367da9;background:#226b9b;color:#fff;text-decoration:none;font-size:13px;font-weight:700;line-height:1.25;white-space:nowrap;transition:background .15s}
body:has(.vl-shell) .vl-doc-actions .vl-action:hover{background:#338fc5}
body:has(.vl-shell) .vl-doc-actions .vl-action-secondary{background:#142d43!important;color:#d0e9f8!important;border-color:#426783!important}
body:has(.vl-shell) .vl-doc-actions .vl-action-secondary:hover{background:#214360!important}
body:has(.vl-shell) .vl-doc-viewer{background:#0b1e30;border:1px solid #37617d;border-radius:17px;padding:20px;margin:18px 0 22px;box-shadow:0 14px 35px #0003}
body:has(.vl-shell) .vl-viewer-top{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;margin-bottom:16px}
body:has(.vl-shell) .vl-viewer-top h3{font-size:19px;color:#fff;overflow-wrap:anywhere;margin:6px 0}
body:has(.vl-shell) .vl-viewer-top p{font-size:13px;color:#adc9dc;margin:0}
body:has(.vl-shell) .vl-document-frame{display:block;width:100%;height:min(75vh,800px);min-height:360px;background:#f3f6f9;border:1px solid #365c77;border-radius:11px}
@media(max-width:700px){body:has(.vl-shell) .vl-doc-filters{grid-template-columns:1fr;padding:13px}body:has(.vl-shell) .vl-doc-list .vl-doc-item{align-items:stretch;flex-direction:column;padding:14px}body:has(.vl-shell) .vl-doc-list .vl-doc-actions{width:100%}body:has(.vl-shell) .vl-doc-list .vl-doc-actions .vl-action{flex:1}body:has(.vl-shell) .vl-doc-viewer{padding:12px}body:has(.vl-shell) .vl-document-frame{height:60vh;min-height:300px}}
@media(prefers-reduced-motion:reduce){body:has(.vl-shell) .vl-doc-list .vl-doc-item,body:has(.vl-shell) .vl-doc-actions .vl-action{transition:none}}
.vl-doc-viewer{padding:10px}.vl-document-frame{height:62vh;min-height:320px}.vl-doc-actions{width:100%}}
/* VLADIO Control Center — Documente filters, list, viewer (dark) */
body:has(.vl-shell) .vl-doc-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:18px;border:1px solid #2d4a64;border-radius:14px;background:#0e2033;margin:16px 0 20px;align-items:end}
body:has(.vl-shell) .vl-doc-filters label{display:flex;flex-direction:column;gap:9px;margin:0;color:#bed4e7;font-size:13px;font-weight:700;letter-spacing:.01em;min-width:0}
body:has(.vl-shell) .vl-doc-filters select{display:block;width:100%;min-height:46px;padding:11px 42px 11px 14px;border-radius:10px;border:1px solid #41617c;background:#152d43;color:#f0f9ff;font:inherit;font-weight:500;cursor:pointer;appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%2389d7ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 13px center;background-size:18px}
body:has(.vl-shell) .vl-doc-filters select:focus-visible{outline:2px solid #72cbff;outline-offset:2px;border-color:#72cbff}
body:has(.vl-shell) .vl-doc-filters select option{background:#12273c;color:#f1f8ff}
body:has(.vl-shell) .vl-doc-list{display:grid;gap:12px}
body:has(.vl-shell) .vl-doc-list .vl-doc-item{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;background:#10283d;border:1px solid #304f6a;border-radius:14px;transition:border-color .18s,background .18s}
body:has(.vl-shell) .vl-doc-list .vl-doc-item:hover,body:has(.vl-shell) .vl-doc-list .vl-doc-item.is-previewed{background:#17354d;border-color:#5a9bc2}
body:has(.vl-shell) .vl-doc-info{display:flex;gap:14px;align-items:center;min-width:0;flex:1}
body:has(.vl-shell) .vl-doc-icon{display:grid;place-items:center;flex-shrink:0;width:44px;height:48px;border:1px solid #355e7f;border-radius:11px;background:#1b3a54;color:#82d6ff;font-size:26px}
body:has(.vl-shell) .vl-doc-details{min-width:0}
body:has(.vl-shell) .vl-doc-details b{display:block;color:#fff;font-size:15px;overflow-wrap:anywhere;line-height:1.4}
body:has(.vl-shell) .vl-doc-details small{display:block;color:#aec8db;font-size:12px;line-height:1.6;margin-top:5px}
body:has(.vl-shell) .vl-doc-category{font-weight:750;color:#80d3ff}
body:has(.vl-shell) .vl-doc-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
body:has(.vl-shell) .vl-doc-actions .vl-action{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:9px 14px;border-radius:9px;border:1px solid #367da9;background:#226b9b;color:#fff;text-decoration:none;font-size:13px;font-weight:700;line-height:1.25;white-space:nowrap;transition:background .15s}
body:has(.vl-shell) .vl-doc-actions .vl-action:hover{background:#338fc5}
body:has(.vl-shell) .vl-doc-actions .vl-action-secondary{background:#142d43!important;color:#d0e9f8!important;border-color:#426783!important}
body:has(.vl-shell) .vl-doc-actions .vl-action-secondary:hover{background:#214360!important}
body:has(.vl-shell) .vl-doc-viewer{background:#0b1e30;border:1px solid #37617d;border-radius:17px;padding:20px;margin:18px 0 22px;box-shadow:0 14px 35px #0003}
body:has(.vl-shell) .vl-viewer-top{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;margin-bottom:16px}
body:has(.vl-shell) .vl-viewer-top h3{font-size:19px;color:#fff;overflow-wrap:anywhere;margin:6px 0}
body:has(.vl-shell) .vl-viewer-top p{font-size:13px;color:#adc9dc;margin:0}
body:has(.vl-shell) .vl-document-frame{display:block;width:100%;height:min(75vh,800px);min-height:360px;background:#f3f6f9;border:1px solid #365c77;border-radius:11px}
@media(max-width:700px){body:has(.vl-shell) .vl-doc-filters{grid-template-columns:1fr;padding:13px}body:has(.vl-shell) .vl-doc-list .vl-doc-item{align-items:stretch;flex-direction:column;padding:14px}body:has(.vl-shell) .vl-doc-list .vl-doc-actions{width:100%}body:has(.vl-shell) .vl-doc-list .vl-doc-actions .vl-action{flex:1}body:has(.vl-shell) .vl-doc-viewer{padding:12px}body:has(.vl-shell) .vl-document-frame{height:60vh;min-height:300px}}
@media(prefers-reduced-motion:reduce){body:has(.vl-shell) .vl-doc-list .vl-doc-item,body:has(.vl-shell) .vl-doc-actions .vl-action{transition:none}}
/* VLADIO Control Center — Documente file picker */
/* Add class="vl-file-input" to the existing file input for precise targeting. */
.vl-file-input {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 9px;
  border: 1px solid #34536b;
  border-radius: 12px;
  background: #10283d;
  color: #c5d9e8;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.vl-file-input::file-selector-button {
  border: 1px solid #62caff;
  border-radius: 9px;
  background: #17608b;
  color: #fff;
  padding: 11px 16px;
  margin-right: 14px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}
.vl-file-input:hover::file-selector-button { background: #247eab; }
.vl-file-input:focus-visible { outline: 2px solid #75d4ff; outline-offset: 3px; }
.vl-file-input:disabled { opacity: .55; cursor: not-allowed; }
.vl-file-input:disabled::file-selector-button { cursor: not-allowed; }
@media (max-width: 600px) {
  .vl-file-input { font-size: 13px; }
  .vl-file-input::file-selector-button { padding: 10px 12px; margin-right: 8px; }
}
/* VLADIO Control Center: Calendar 2.0 */
.vl-calendar{overflow:hidden}.vl-cal-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;margin-bottom:22px}.vl-cal-nav,.vl-cal-modes{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.vl-cal-nav h2{min-width:150px;text-align:center;margin:0;font-size:1.23rem;color:#f0f8ff}.vl-cal-nav a,.vl-cal-modes a{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:6px 12px;border:1px solid #34526b;border-radius:10px;color:#c6e0f2;text-decoration:none;background:#10263b}.vl-cal-nav a:hover,.vl-cal-modes a:hover,.vl-cal-modes a.is-active{background:#1d4d72;color:#fff;border-color:#69caff}.vl-cal-nav a{font-size:23px;min-width:39px}.vl-cal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border:1px solid #29435b;border-radius:12px;overflow:hidden;background:#0c1d2e}.vl-cal-weekday{text-align:center;background:#163249;color:#b9d7e9;font-size:.8rem;font-weight:700;padding:11px 3px;border-bottom:1px solid #29435b}.vl-cal-day{min-height:125px;padding:8px;min-width:0;border-right:1px solid #29435b;border-bottom:1px solid #29435b}.vl-cal-day:nth-child(7n){border-right:0}.vl-cal-day.is-outside{opacity:.42}.vl-cal-day.is-today{background:#15364d}.vl-cal-day-number{display:inline-flex;width:27px;height:27px;align-items:center;justify-content:center;color:#e6f5ff!important;border-radius:50%;text-decoration:none!important;font-weight:650}.vl-cal-day.is-today .vl-cal-day-number{background:#54bdf1;color:#061827!important}.vl-cal-day-events{display:flex;flex-direction:column;gap:4px;margin-top:6px}.vl-cal-event{background:#1b4768;border-left:3px solid #67ccff;border-radius:5px;padding:5px;color:#e6f6ff;font-size:11px;line-height:1.35;overflow-wrap:anywhere}.vl-cal-event.is-appointment{background:#163d38;border-color:#5cdec1}.vl-cal-event time{font-weight:750}.vl-cal-more{font-size:11px;color:#8bd5ff!important;text-decoration:none}.vl-cal-grid.is-week .vl-cal-day{min-height:230px}.vl-cal-agenda{background:#10263b;border:1px solid #29435b;border-radius:12px;padding:18px}.vl-cal-agenda h3{margin:0 0 14px;color:#fff}.vl-cal-agenda-row{display:flex;gap:16px;padding:12px 0;border-top:1px solid #29435b}.vl-cal-agenda-row time{color:#7bd4ff;min-width:48px;font-weight:700}.vl-cal-agenda-row strong{display:block;color:#f0f8ff}.vl-cal-agenda-row small{display:block;color:#a8c4d9;margin-top:3px}.vl-cal-legend{display:flex;gap:22px;flex-wrap:wrap;margin-top:16px;color:#b8cad9;font-size:12px}.vl-cal-legend span{display:inline-flex;align-items:center;gap:7px}.vl-cal-legend i{width:11px;height:11px;border-radius:3px;background:#67ccff}.vl-cal-legend i.is-appointment{background:#5cdec1}@media(max-width:850px){.vl-calendar{padding:13px}.vl-cal-grid{overflow-x:auto;grid-template-columns:repeat(7,minmax(85px,1fr))}.vl-cal-day{min-height:100px;padding:4px}.vl-cal-event{font-size:10px;padding:4px}.vl-cal-toolbar{align-items:flex-start}.vl-cal-nav h2{min-width:105px;font-size:1rem}}@media(max-width:480px){.vl-cal-modes a{padding:6px 9px;font-size:12px}.vl-cal-grid{grid-template-columns:repeat(7,minmax(72px,1fr))}}
/* VLADIO Software module — read-only console */
.sw-head,.sw-list-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.sw-external,.sw-link,.sw-action,.sw-list-heading a,.sw-pages a{color:#81d4ff;text-decoration:none}
.sw-external:hover,.sw-link:hover,.sw-action:hover,.sw-pages a:hover{text-decoration:underline}
.sw-filters{display:grid;grid-template-columns:minmax(200px,2fr) minmax(150px,1fr) auto auto;gap:12px;align-items:end}
.sw-filters label{display:grid;gap:6px;font-weight:600;color:#c9e0ee;font-size:14px}
.sw-filters input,.sw-filters select{min-height:44px;width:100%;box-sizing:border-box;background:#0c1f31;color:#eef7ff;border:1px solid #34536b;border-radius:10px;padding:9px 12px}
.sw-filters button{min-height:44px;border:0;border-radius:10px;background:#66caff;color:#071827;font-weight:700;padding:0 16px;cursor:pointer}
.sw-filters input:focus-visible,.sw-filters select:focus-visible,.sw-filters button:focus-visible,.sw-action:focus-visible{outline:2px solid #9be2ff;outline-offset:2px}
.sw-records{display:grid;gap:10px;margin-top:12px}
.sw-record{background:#10283d;border:1px solid #2d4d66;border-radius:12px;padding:14px;display:flex;align-items:center;gap:15px;justify-content:space-between;flex-wrap:wrap;color:#f2f8fd}
.sw-record-primary{display:grid;gap:4px;min-width:145px;flex:1}
.sw-record small,.sw-record-primary small{display:block;color:#a5bfd1;font-size:12px}
.sw-record-meta{display:flex;align-items:center;gap:9px;flex-wrap:wrap;color:#c3d8e8;font-size:13px}
.sw-status{border:1px solid #41637c;background:#1b3d55;border-radius:30px;padding:4px 9px}
.sw-action{border:1px solid #4b7f9f;border-radius:9px;padding:9px 13px;white-space:nowrap}
.sw-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}
.sw-details div{background:#10283d;border:1px solid #29445d;padding:12px;border-radius:9px;min-width:0;overflow-wrap:anywhere}
.sw-details dt{font-size:12px;color:#9ebdd3;margin-bottom:6px}
.sw-details dd{margin:0;color:#eff8ff;white-space:pre-wrap}
.sw-pages{display:flex;justify-content:space-between;gap:12px;margin-top:16px;align-items:center;color:#aec5d8;font-size:13px}
.sw-note{margin-top:18px;font-size:13px}
@media(max-width:780px){.sw-filters{grid-template-columns:1fr 1fr}.sw-details{grid-template-columns:1fr}}
@media(max-width:520px){.sw-filters{grid-template-columns:1fr}.sw-record{align-items:flex-start}.sw-action{width:100%;text-align:center}}


/* VLADIO Documente: responsive JPEG/PNG preview */
body:has(.vl-shell) .vl-image-viewer{
 display:flex;align-items:center;justify-content:center;
 width:100%;min-height:210px;max-height:78vh;overflow:auto;
 background:repeating-conic-gradient(#182c40 0% 25%,#20374d 0% 50%) 0 0/22px 22px;
 border:1px solid #365c77;border-radius:12px;padding:16px;
}
body:has(.vl-shell) .vl-image-preview{
 display:block;width:auto;height:auto;max-width:100%;max-height:calc(78vh - 34px);
 object-fit:contain;border-radius:5px;box-shadow:0 10px 30px #0005;
}
body:has(.vl-shell) .vl-image-hint{color:#a9c8df;font-size:12px;margin:10px 0}
@media(max-width:700px){body:has(.vl-shell) .vl-image-viewer{max-height:65vh;min-height:180px;padding:8px}body:has(.vl-shell) .vl-image-preview{max-height:calc(65vh - 20px)}}

/* VLADIO PREVIEW FIX V2 */
.vl-image-viewer {width:100%;min-height:220px;display:flex;align-items:center;justify-content:center;overflow:auto;padding:16px;background:#102438;border:1px solid #31506b;border-radius:14px}
.vl-image-viewer .vl-image-preview{display:block!important;width:auto!important;height:auto!important;max-width:100%!important;max-height:75vh!important;object-fit:contain!important;opacity:1!important;visibility:visible!important}
@media(max-width:700px){.vl-image-viewer{min-height:180px;padding:8px}.vl-image-viewer .vl-image-preview{max-height:65vh!important}}
/* VLADIO Calendar: event cancellation */
.vl-event-cancel{margin-top:10px;max-width:320px}
.vl-event-cancel>summary{cursor:pointer;list-style:none;display:inline-flex;align-items:center;padding:8px 12px;border-radius:10px;border:1px solid #a74a58;background:#301b28;color:#ffc9d2;font-weight:600;font-size:13px}
.vl-event-cancel>summary::-webkit-details-marker{display:none}
.vl-event-cancel>summary:hover{background:#472431}
.vl-event-cancel-form{margin-top:10px;padding:12px;border:1px solid #61404b;background:#1b2635;border-radius:12px}
.vl-event-cancel-form p{margin:0 0 10px;color:#e3d9de;font-size:13px}
.vl-event-cancel-form button{background:#ae3e54!important;color:#fff!important;border:1px solid #cf6377!important;border-radius:9px;padding:9px 12px;cursor:pointer}
.vl-event-cancel-form button:hover{background:#bf4860!important}

/* VLADIO Software v2 */
.sw-manage{margin-top:24px;padding:20px;border:1px solid #29465f;border-radius:16px;background:#10253a}
.sw-manage h3{margin:0 0 8px;color:#f0f8ff}.sw-manage-form{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin-top:14px}
.sw-manage-form label{display:grid;gap:8px;min-width:220px;flex:1;color:#c8deef;font-weight:600}
.sw-manage-form select{width:100%;min-height:45px;background:#0d1c2d;color:#fff;border:1px solid #385a75;border-radius:11px;padding:10px 12px}
.sw-manage-form button{min-height:45px;padding:10px 18px;border-radius:11px;background:#1677ab;color:white;border:1px solid #46b7f1;cursor:pointer}
.sw-manage-form button:hover{background:#238cbe}.sw-flash{border-color:#3b7193!important;color:#d9f3ff}
@media(max-width:560px){.sw-manage{padding:14px}.sw-manage-form button{width:100%}}

.sw-manage-form .sw-confirm{display:flex;align-items:center;gap:9px;flex-basis:100%;font-size:14px}.sw-confirm input{width:18px;height:18px;accent-color:#47b9f1}
/* VLADIO Software — Detalii (Comenzi / Programări). Append to style.css. */
.vl-card.sw-detail {
  margin-top: 22px;
  padding: clamp(16px, 2.6vw, 28px);
  background: linear-gradient(155deg,#142a40 0%,#0c1c2d 100%);
  border: 1px solid #2c4a64;
  border-radius: 20px;
  box-shadow: 0 12px 36px rgba(0, 7, 17, .25);
  color: #eaf5ff;
  min-width: 0;
}
.sw-detail > .sw-list-heading {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; margin: 0 0 20px;
  padding-bottom: 16px; border-bottom: 1px solid #29455d;
}
.sw-detail > .sw-list-heading h2 { margin:0; color:#f6fbff; font-size:clamp(18px,2.4vw,23px); line-height:1.3; overflow-wrap:anywhere; }
.sw-detail > .sw-list-heading a {
  display:inline-flex; align-items:center; justify-content:center; min-height:40px;
  padding:9px 14px; background:#19344d; border:1px solid #3c607c;
  border-radius:11px; color:#d9efff; text-decoration:none; font-weight:600;
  transition:background .15s ease,border-color .15s ease;
}
.sw-detail > .sw-list-heading a:hover { background:#264b68; border-color:#68cafa; }
.sw-detail > .sw-list-heading a:focus-visible { outline:3px solid #7dd3fc; outline-offset:2px; }
.sw-detail .sw-details {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px; margin:0 0 22px; padding:0;
}
.sw-detail .sw-details > div {
  min-width:0; padding:15px 16px; border-radius:13px;
  border:1px solid #2b4861; background:#10263a;
}
.sw-detail .sw-details dt {
  color:#99b8ce; font-size:12px; font-weight:700;
  line-height:1.45; letter-spacing:.035em; text-transform:uppercase;
  margin:0 0 7px; overflow-wrap:anywhere;
}
.sw-detail .sw-details dd {
  color:#f1f8ff; font-size:14px; font-weight:550;
  line-height:1.55; margin:0; overflow-wrap:anywhere; white-space:pre-wrap;
}
.sw-detail h3 { color:#eef8ff; font-size:17px; margin:22px 0 13px; }
.sw-detail .sw-records { display:grid; gap:9px; }
.sw-detail .sw-record {
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap;
  gap:10px; padding:14px 16px; border-radius:12px;
  background:#10263a; border:1px solid #29475e;
}
.sw-detail .sw-record strong {color:#ecf8ff;overflow-wrap:anywhere;}
.sw-detail .sw-record span {color:#8cd9ff; font-weight:650;}
.sw-detail .sw-manage {
  margin:20px 0 24px; background:#10283e;
  border:1px solid #355a75; border-radius:15px; padding:20px;
}
.sw-detail .sw-manage h3 { margin-top:0; }
.sw-detail .sw-manage-form select:focus-visible,
.sw-detail .sw-manage-form button:focus-visible {outline:3px solid #7dd3fc;outline-offset:2px;}
@media(max-width:700px) {
  .vl-card.sw-detail {padding:15px;border-radius:15px;}
  .sw-detail .sw-details {grid-template-columns:minmax(0,1fr); gap:9px;}
  .sw-detail .sw-details > div {padding:12px 13px;}
  .sw-detail .sw-manage {padding:14px;}
  .sw-detail .sw-record {align-items:flex-start;flex-direction:column;}
}
/* VLADIO Software / Programari — overview "Urmatoarele programari" and Detalii.
   Add AFTER existing Software Detalii stylesheet. No PHP changes needed. */

/* Upcoming appointments: styled card and Detalii action */
.sw-records > .sw-record:has(a[href*="tab=appointments"]) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  margin: 0 0 10px;
  border: 1px solid #294a65;
  border-radius: 15px;
  background: linear-gradient(125deg, #142e45, #102337);
  box-shadow: 0 6px 20px rgba(0, 10, 24, .12);
  min-width: 0;
}
.sw-records > .sw-record:has(a[href*="tab=appointments"]) > div:first-child {min-width: 0; display: grid; gap: 6px;}
.sw-records > .sw-record:has(a[href*="tab=appointments"]) strong {color: #f1f9ff; font-size: 15px; line-height: 1.35; font-weight: 700;}
.sw-records > .sw-record:has(a[href*="tab=appointments"]) small {display: block; color: #afc9db; line-height: 1.6; font-size: 13px; overflow-wrap: anywhere;}
.sw-records > .sw-record a[href*="tab=appointments"][href*="detail="] {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 15px;
  border-radius: 11px;
  border: 1px solid #3988b7;
  background: linear-gradient(180deg, #1b668e, #164c70);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.sw-records > .sw-record a[href*="tab=appointments"][href*="detail="]:hover {background: #227cab; border-color: #72d0ff; transform: translateY(-1px);}
.sw-records > .sw-record a[href*="tab=appointments"][href*="detail="]:focus-visible {outline: 3px solid #7dd3fc; outline-offset: 3px;}

/* Appointment details panel only. */
body:has(a[href*="tab=appointments"]) .sw-detail {scroll-margin-top: 24px;}
.sw-detail:has(h2) {border-color: #345b77;}
.sw-detail .sw-details {grid-template-columns: repeat(2, minmax(0, 1fr));}
.sw-detail .sw-details > div {min-width: 0;}
.sw-detail .sw-details dd {overflow-wrap: anywhere; word-break: normal;}
.sw-detail .sw-details dd a {color: #80d2ff;}
@media (max-width: 720px) {
  .sw-records > .sw-record:has(a[href*="tab=appointments"]) {flex-direction: column; align-items: stretch; gap: 12px; padding: 15px;}
  .sw-records > .sw-record a[href*="tab=appointments"][href*="detail="] {width: 100%; box-sizing: border-box;}
  .sw-detail .sw-details {grid-template-columns: minmax(0, 1fr);}
}
@media (prefers-reduced-motion: reduce) {
  .sw-records > .sw-record a[href*="tab=appointments"][href*="detail="] {transition: none;}
}
/* VLADIO Software status-based dashboard projections */
.sw-finance-stats { margin-top: 14px; }
.sw-finance-stats .vl-stat { border: 1px solid rgba(95, 179, 229, .24); background: linear-gradient(145deg,#11283d,#0e2032); }
.sw-finance-stats .vl-stat strong { color: #86d7ff; font-variant-numeric: tabular-nums; }
.sw-finance-stats .vl-stat small { line-height: 1.5; }
.sw-finance-disclaimer { margin: 10px 0 22px; font-size: .83rem; line-height: 1.65; }

/* VLADIO GROUP website news manager */
.news-manager{display:grid;gap:20px;color:#eff7ff}
.nm-hero{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:28px;border:1px solid #31506b;border-radius:22px;background:radial-gradient(circle at 90% 0%,#1d4b73 0%,transparent 45%),linear-gradient(125deg,#142c44,#0b192a);box-shadow:0 18px 50px #0004}
.nm-hero h2{margin:5px 0;font-size:clamp(22px,3vw,30px);color:#fff}.nm-hero p{color:#b7cede;line-height:1.6;max-width:640px;margin:5px 0}.nm-eyebrow{font-size:11px!important;letter-spacing:.15em;font-weight:800;color:#67c8ff!important;text-transform:uppercase}.nm-hero-actions{display:flex;gap:10px;flex-wrap:wrap;flex-shrink:0}
.news-manager .nm-btn{display:inline-flex;align-items:center;justify-content:center;border-radius:10px;padding:11px 16px;min-height:42px;text-decoration:none;font:700 13px system-ui,sans-serif;cursor:pointer;white-space:nowrap;width:auto!important;margin:0!important}
.nm-btn-primary{color:#071928!important;background:linear-gradient(120deg,#69d2ff,#9bdfff)!important;border:1px solid #9bdfff!important}
.nm-btn-ghost{background:#18334c!important;border:1px solid #3b607e!important;color:#e7f6ff!important}.nm-btn-danger{background:#44232d!important;border:1px solid #7b4453!important;color:#ffe7ec!important}
.nm-btn:hover{filter:brightness(1.09)}.nm-notice{padding:13px 17px;border-radius:12px}.nm-success{background:#153c33;border:1px solid #3c9476;color:#d8fff0}.nm-danger{background:#4b232d;border:1px solid #a85b6a;color:#ffe0e5}
.nm-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.nm-stats>div{padding:22px;border:1px solid #2d4b65;background:#11253a;border-radius:16px}.nm-stats small{display:block;color:#a7c6da;font-size:12px}.nm-stats strong{display:block;color:#fff;font-size:34px;margin-top:8px}
.nm-card{padding:26px;border:1px solid #2c4b64;background:#102337;border-radius:19px;min-width:0}.nm-sectionhead{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.nm-sectionhead h3{color:#fff;font-size:21px;margin:4px 0}.nm-textlink{color:#a8dcff;text-decoration:none}.nm-muted{color:#a4bdce;font-size:13px}
.nm-form{display:grid;gap:19px}.nm-form label{display:grid;gap:7px;color:#d9eaf6;font-weight:650;font-size:13px;margin:0}.nm-form input,.nm-form textarea,.nm-form select{display:block;width:100%;max-width:100%;padding:12px 13px;background:#081a2b;color:#f2f9ff;border:1px solid #3c5b75;border-radius:10px;font:inherit;resize:vertical}.nm-formgrid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.nm-languages{display:grid;gap:17px}.nm-language{min-width:0;padding:18px;border:1px solid #31526d;border-radius:15px;display:grid;gap:14px}.nm-language legend{font-size:14px;color:#82d3ff;font-weight:750;padding:0 8px}.nm-publish{display:flex;justify-content:space-between;align-items:end;gap:15px}.nm-publish select{min-width:160px}
.nm-list{display:grid;gap:12px}.nm-item{display:flex;align-items:center;justify-content:space-between;gap:20px;background:#132a40;border:1px solid #28475e;border-radius:14px;padding:17px 19px}.nm-iteminfo{min-width:0;flex:1}.nm-iteminfo small{color:#8fb0c8}.nm-iteminfo h4{color:#eff9ff;font-size:16px;margin:8px 0;overflow-wrap:anywhere}.nm-badge{display:inline-block;font-size:11px;padding:4px 10px;border-radius:99px;border:1px solid #365e75;color:#d9effc}.nm-published{background:#153e39;color:#b6f5e4;border-color:#357768}.nm-draft{background:#3a3121;color:#f7dba6;border-color:#695438}.nm-itemactions{display:flex;flex-wrap:wrap;gap:8px}.nm-itemactions form{margin:0}
@media(max-width:950px){.nm-hero,.nm-item{flex-direction:column;align-items:stretch}.nm-hero-actions,.nm-itemactions{width:100%}.nm-formgrid{grid-template-columns:1fr}}@media(max-width:600px){.nm-stats{grid-template-columns:1fr}.nm-card,.nm-hero{padding:18px}.nm-publish{align-items:stretch;flex-direction:column}}

/* VLADIO Software · promocoduri */
.promo-admin-list{display:grid;gap:12px}
.promo-entry{border:1px solid var(--cc-border,#36536d);border-radius:12px;padding:15px;background:var(--cc-soft,#0c2134)}
.promo-entry summary{display:flex;gap:12px;justify-content:space-between;align-items:center;flex-wrap:wrap;cursor:pointer;color:var(--cc-fg,#f3f8ff)}
.promo-entry summary span{font-size:13px;color:var(--cc-muted,#b5c9d8)}
.promo-entry .vl-form{margin-top:18px}
.promo-admin-form{max-width:100%}
.promo-admin-form .promo-check{display:flex;align-items:center;gap:10px}
.promo-admin-form .promo-check input{width:18px;height:18px;accent-color:#47b9f1}
.promo-admin-form input[readonly]{opacity:.7}
@media(max-width:600px){.promo-entry summary{align-items:flex-start;flex-direction:column}}
