/* ════════════════════════════════════════════════════════════════
   Theme inspired by Microsoft Teams (2026) and Windows 11 (Fluent 2):
   a light title bar, a rounded left rail, mica-like surfaces, 8px corners,
   soft layered shadows, and outline icons. Brand colours come from the
   Prokuro logo. Loaded after style.css and fiori.css; it only overrides looks.
   ════════════════════════════════════════════════════════════════ */
:root {
  --brand-navy: #14306a;
  --brand: #1f6fc5;
  --brand-light: #5fb3ea;
  --bg: #f3f5f9;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --border: #e3e6eb;
  --border-strong: #c7ccd4;
  --text: #1f2430;
  --text-2: #5b6170;
  --text-3: #8a90a0;
  --primary: #1f6fc5;
  --primary-2: #175aa3;
  --primary-soft: #e8f1fb;
  --ok: #0f7b3f;   --ok-soft: #eef8f1;
  --warn: #b85c00; --warn-soft: #fff6eb;
  --bad: #c42b1c;  --bad-soft: #fdecea;
  --info: #1f6fc5; --info-soft: #eef5fd;
  --radius: 8px;
  --s2: 0 0 2px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.14);
  --s4: 0 0 2px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.12);
  --s8: 0 0 2px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.12);
  --s16: 0 0 2px rgba(0,0,0,.10), 0 8px 16px rgba(0,0,0,.14);
  --s64: 0 0 8px rgba(0,0,0,.12), 0 32px 64px rgba(0,0,0,.20);
  --f-shadow0: var(--s4);
  --f-shadow1: var(--s8);
  --f-shadow2: var(--s16);
  --f-ease: cubic-bezier(.33, 0, .1, 1);
  --font: "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --top-h: 48px;
}
body { background: var(--bg); color: var(--text); font: 14px/1.43 var(--font); -webkit-font-smoothing: antialiased; }
h1 { font-size: 24px; font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: 18px; font-weight: 600; }
h3 { font-size: 15px; font-weight: 600; }
::selection { background: #cfe2f7; }
* { scrollbar-color: #b9bec8 transparent; }

/* ——— Title bar (Teams) ——— */
.shell { grid-template-rows: var(--top-h) 1fr; grid-template-columns: 260px minmax(0, 1fr); }
.top { height: var(--top-h); background: rgba(235, 239, 245, .92); backdrop-filter: saturate(160%) blur(20px); -webkit-backdrop-filter: saturate(160%) blur(20px);
  color: var(--text); box-shadow: inset 0 -1px 0 var(--border); padding-right: 10px; gap: 4px; }
.top .brand { color: var(--text); font-size: 15px; font-weight: 600; gap: 10px; width: 260px; padding: 0 16px; }
.top .brand .logo-img { width: 32px; height: 32px; object-fit: contain; display: block; }
.top #burger { color: var(--text); border-radius: 6px; margin: 6px 4px; padding: 0 10px; }
.top #burger:hover { background: rgba(0,0,0,.06); }
.toptabs { gap: 2px; align-items: center; }
.toptabs a { color: var(--text-2); font-weight: 400; font-size: 14px; height: 34px; padding: 0 14px; border-radius: 6px; border-bottom: 0; }
.toptabs a:hover { background: rgba(0,0,0,.05); color: var(--text); }
.toptabs a.active { background: #fff; color: var(--text); font-weight: 600; box-shadow: var(--s2); }
.toptabs a.active::after { display: none; }
.top-new { background: var(--primary) !important; color: #fff !important; border-radius: 6px !important; font-weight: 600 !important; height: 32px !important; box-shadow: var(--s2); }
.top-new:hover { background: var(--primary-2) !important; }
.topright a, .topright button { color: var(--text); border-radius: 6px; }
.topright a:hover, .topright button:hover { background: rgba(0,0,0,.06); }
.topright .co { color: var(--text-2); }
.sec-chip, .sec-seller, .sec-buyer { background: #fff; color: var(--text-2); border-radius: 999px; box-shadow: inset 0 0 0 1px var(--border); padding: 2px 10px; font-size: 12px; }
.sec-switch { background: #fff !important; color: var(--primary) !important; border: 1px solid var(--border) !important; border-radius: 6px !important; font-weight: 600 !important; }
.sec-switch:hover { background: var(--primary-soft) !important; }
.toptabs .cnt, .tree .cnt, #burger .cnt, .sec-switch .cnt { background: #c42b1c; color: #fff; }

/* ——— Left rail (Teams list) ——— */
.tree { top: var(--top-h); height: calc(100vh - var(--top-h)); background: rgba(247, 248, 251, .9); box-shadow: inset -1px 0 0 var(--border); padding: 6px 8px 0; font-size: 14px; }
.tree .lbl { min-height: 40px; margin: 2px 0; padding: 0 12px; border-radius: 8px; gap: 12px; color: var(--text); position: relative; transition: background .15s var(--f-ease); }
.tree .lbl:hover { background: rgba(0,0,0,.045); }
.tree a.lbl.active { background: #fff; color: var(--text); font-weight: 600; box-shadow: var(--s2); }
.tree a.lbl.active::before { content: ""; position: absolute; left: 0; top: 11px; bottom: 11px; width: 3px; border-radius: 3px; background: var(--primary); }
.tree .fi { width: 22px; height: 22px; border-radius: 0; overflow: visible; color: var(--text-2); }
.tree a.lbl.active .fi { color: var(--primary); box-shadow: none; }
.tree-head { padding: 2px 4px 0; }
.tree-refresh { border-radius: 6px; }
.tree-foot { background: transparent; border-top: 1px solid var(--border); box-shadow: none; margin: 8px -8px 0; padding: 12px 16px 14px; }
.tf-logout { border-radius: 6px !important; }

/* Outline icons (Fluent): drawn with the text colour */
svg.ti { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; display: block; }
.tree a.lbl.active svg.ti { fill: currentColor; fill-opacity: .12; stroke-width: 1.7; }
.corr-btn { border-radius: 999px; border-color: var(--border); background: #fff; color: var(--primary); padding: 3px 12px 3px 8px; }
.corr-btn:hover { background: var(--primary-soft); }
.corr-btn .ti { width: 18px; height: 18px; border-radius: 0; }
.corr-btn.short .ti { width: 16px; height: 16px; }
.tile .ti-ic { border-radius: 0; color: var(--primary); }

/* ——— Page ——— */
.content { padding: 20px 32px 56px; }
.content > .page-head:first-child, .content > .crumbs:first-child { margin: -20px -32px 20px; padding: 20px 32px 16px; background: transparent; box-shadow: none; }
.content > .crumbs:first-child { margin-bottom: 0; padding-bottom: 0; }
.content > .crumbs:first-child + .page-head { margin: 0 -32px 16px; padding: 6px 32px 8px; background: transparent; box-shadow: none; }
.content > .crumbs:first-child + .card.hero { margin: 4px 0 16px; border-radius: var(--radius); box-shadow: var(--s4); padding: 16px 20px; }
.page-head h1 { font-size: 24px; }
.crumbs { color: var(--text-3); }

/* ——— Cards, tables ——— */
.card, .gridbox, .tabs, .offer-box { border: 0; border-radius: var(--radius); box-shadow: var(--s4); background: #fff; }
.card-head { border-bottom: 1px solid var(--border); }
.tbl th, .dense th { color: var(--text-2); font-size: 12.5px; font-weight: 600; background: #fff; }
.tbl td, .tbl th { border-bottom-color: #edf0f3; }
.dense tr.clickable:hover td, .tbl tr.clickable:hover td { background: #f5f8fc !important; }
.tbl tfoot td { background: var(--surface-2); }
.tbl-wrap { border-radius: var(--radius); }

/* ——— Buttons (Fluent) ——— */
.btn { height: 32px; padding: 0 14px; border-radius: 6px; border: 1px solid var(--border-strong); background: #fff; color: var(--text); font: 600 14px var(--font);
  transition: background .12s var(--f-ease), border-color .12s var(--f-ease), box-shadow .12s var(--f-ease); }
.btn:hover { background: #f5f6f8; border-color: #b4bac4; }
.btn:active { background: #eceef1; color: var(--text); }
.btn:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; }
.btn.primary, .btn.add-main { background: var(--primary); border-color: transparent; color: #fff; box-shadow: var(--s2); }
.btn.primary:hover, .btn.add-main:hover { background: var(--primary-2); border-color: transparent; color: #fff; }
.btn.primary:active, .btn.add-main:active { background: #124a87; }
.btn.ok { background: var(--ok); border-color: transparent; color: #fff; }
.btn.danger { color: var(--bad); border-color: #e8b4ae; background: #fff; }
.btn.danger:hover { background: var(--bad-soft); }
.btn.danger-solid { background: var(--bad); border-color: transparent; color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--primary); }
.btn.ghost:hover { background: var(--primary-soft); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 13px; border-radius: 6px; }
.btn.lg { height: 40px; padding: 0 20px; font-size: 15px; border-radius: 8px; }

/* ——— Fields (Fluent: underline that turns blue on focus) ——— */
input, select, textarea { font: 14px var(--font); color: var(--text); border: 1px solid var(--border-strong); border-bottom-color: #8a909c; border-radius: 6px; background: #fff; height: 34px; }
textarea { height: auto; }
input:hover, select:hover, textarea:hover { border-color: #b4bac4; border-bottom-color: #6b7180; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--border-strong); border-bottom-color: var(--primary); box-shadow: inset 0 -1px 0 var(--primary); }
label.f { color: var(--text); font-weight: 600; font-size: 13.5px; }
label.f .label-opt, label.f .hint { font-weight: 400; }
.amount-in { border-radius: 6px; border-color: var(--border-strong); }
.amount-in:focus-within { outline: none; box-shadow: inset 0 -2px 0 var(--primary); }
.amount-in > span { background: var(--surface-2); }
.dyn-row { border-radius: var(--radius); border-color: var(--border); background: var(--surface-2); }
.form-section h3 { font-size: 16px; }

/* ——— Tabs (Fluent TabList) ——— */
.tabs { padding: 0 8px; }
.tabs button { font: 400 14px var(--font); color: var(--text-2); }
.tabs button:hover { color: var(--text); }
.tabs button.active { color: var(--text); font-weight: 600; }
.tabs button.active::after { left: 14px; right: 14px; height: 3px; border-radius: 3px; background: var(--primary); }
.tabs button.active .cnt { color: var(--primary); }

/* ——— Badges and alerts ——— */
.badge { border-radius: 999px; font-weight: 600; padding: 2px 9px; background: #eef0f3; color: var(--text-2); box-shadow: none !important; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.info, .badge.primary { background: var(--info-soft); color: var(--primary-2); }
.alert { border-radius: var(--radius); border: 1px solid; }
.alert.info { background: var(--info-soft); border-color: #c4dbf3; }
.alert.ok { background: var(--ok-soft); border-color: #bfe3cc; }
.alert.warn { background: var(--warn-soft); border-color: #f3d4ae; }
.alert.bad { background: var(--bad-soft); border-color: #f1c1bc; }

/* ——— Dialogs (Windows 11) ——— */
.modal-bg { background: rgba(0,0,0,.4); backdrop-filter: blur(2px); }
.modal { border-radius: 12px; box-shadow: var(--s64); border: 1px solid rgba(0,0,0,.06); animation: w11-in .2s var(--f-ease); }
@keyframes w11-in { from { opacity: 0; transform: scale(.96); } }
.modal .mh { min-height: 52px; padding: 0 12px 0 24px; box-shadow: none; }
.modal .mh h2 { font-size: 18px; font-weight: 600; }
.modal .mb { padding: 4px 24px 20px; }
.modal .mf { padding: 16px 24px; background: var(--surface-2); box-shadow: inset 0 1px 0 var(--border); border-radius: 0 0 12px 12px; }
/* close button: a red X, like a Windows close button */
.modal .mh button.x, .tree-x, .chat-x { width: 32px; height: 32px; border-radius: 6px; background: transparent; color: var(--bad); font-size: 15px; transform: none; }
.modal .mh button.x:hover, .tree-x:hover, .chat-x:hover { background: #c42b1c; color: #fff; transform: none; }

/* ——— Toasts (Windows 11 notifications) ——— */
.toast { background: #fff; color: var(--text); border-radius: 8px; box-shadow: var(--s16); border: 1px solid var(--border); border-left: 4px solid var(--primary); padding: 12px 18px; }
.toast.ok { background: #fff; border-left-color: var(--ok); }
.toast.bad { background: #fff; border-left-color: var(--bad); }

/* ——— Support chat (Teams) ——— */
.chat-btn { background: var(--primary); box-shadow: var(--s16); }
.chat-pop { border-radius: 12px; box-shadow: var(--s64); }
.chat-head { background: #fff; color: var(--text); box-shadow: inset 0 -1px 0 var(--border); }
.chat-head .small { color: var(--text-2); }
.chat-back { color: var(--text); }
.chat-body { background: var(--bg); }
.chat-bubble { border-radius: 4px 12px 12px 12px; box-shadow: var(--s2); }
.chat-item { border-radius: 8px; border-color: var(--border); }

/* ——— Other bits ——— */
.stepper .st { border-radius: 8px; }
.live-search input { border-radius: 6px; }
.cur-switch { border-color: var(--border-strong); border-radius: 8px; padding: 2px; gap: 2px; background: var(--surface-2); }
.cur-switch button { border-radius: 6px; color: var(--text-2); padding: 6px 20px; }
.cur-switch button + button { border-left: 0; }
.cur-switch button.on { background: #fff; color: var(--primary); box-shadow: var(--s2); }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  /* phones: menu button on the left, logo in the top-right corner */
  .top .brand { width: auto; padding: 0 6px 0 10px; order: 99; margin-left: auto; }
  .tree { top: var(--top-h); height: auto; background: #f7f8fb; border-radius: 0 12px 12px 0; }
  .content { padding: 14px 16px 56px; }
  .content > .page-head:first-child, .content > .crumbs:first-child { margin: -14px -16px 12px; padding: 14px 16px 8px; }
  .content > .crumbs:first-child + .page-head { margin: 0 -16px 12px; padding: 4px 16px 8px; }
}

/* ════════════ Sign-in: compact glass card + promo image, no page scroll at any size ════════════ */
.signin { min-height: 100vh; min-height: 100svh; overflow: hidden; display: grid; align-items: center; gap: 0;
  background:
    radial-gradient(760px 620px at 0% 0%, rgba(95,179,234,.32), transparent 62%),
    radial-gradient(620px 520px at 0% 100%, rgba(31,111,197,.14), transparent 62%),
    #efeff1; }
.signin-left { position: relative; z-index: 2; display: flex; justify-content: center; }
.signin-card { width: min(420px, 100%); background: rgba(255,255,255,.84); backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid rgba(255,255,255,.8); border-radius: 16px; box-shadow: var(--s64); padding: 24px 30px 20px; animation: w11-in .25s var(--f-ease); }
.signin-logo { display: block; width: 64px; height: 64px; object-fit: contain; margin: 0 auto 8px; }
.signin h1 { font-size: 22px; font-weight: 600; margin: 0; text-align: center; }
.signin-sub { text-align: center; color: var(--text-2); margin: 4px 0 14px; font-size: 13.5px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 3px; background: #eef1f5; border-radius: 10px; margin-bottom: 14px; }
.seg button { display: flex; align-items: center; justify-content: center; gap: 8px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--text-2);
  font: 600 14px var(--font); cursor: pointer; transition: background .15s var(--f-ease), color .15s var(--f-ease); }
.seg button:hover { color: var(--text); }
.seg button.on { background: #fff; color: var(--primary); box-shadow: var(--s4); }
.seg .seg-ico { width: 18px; height: 18px; display: block; }
.seg .seg-ico svg { width: 18px; height: 18px; stroke-width: 3; }
.signin form { gap: 11px; }
.signin label.f { gap: 3px; }
.signin input { height: 38px; font-size: 15px; }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 42px; }
.pw-eye { position: absolute; right: 3px; top: 3px; width: 34px; height: 32px; border: 0; background: transparent; border-radius: 6px; cursor: pointer; opacity: .6; font-size: 15px; }
.pw-eye:hover { background: rgba(0,0,0,.05); opacity: 1; }
.signin-btn { width: 100%; height: 40px !important; margin-top: 2px; }
.signin-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 6px; margin-top: 14px; font-size: 13.5px; color: var(--text-2); }
.signin-links a { font-weight: 600; text-decoration: none; }
.signin-links a:hover { text-decoration: underline; }
.signin #login-msg .alert { margin-bottom: 10px; }
.signin-banner { position: relative; z-index: 1; }
.signin-banner picture, .signin-banner img { display: block; width: 100%; height: auto; }

/* Wide screens: card on the left, the full banner on the right, overlapping its empty left side */
@media (min-width: 1100px) {
  .signin { grid-template-columns: minmax(420px, .7fr) minmax(0, 1.5fr);
    /* very wide monitors: keep card + banner together in the middle (max ~1600px) */
    padding: 16px max(0px, calc((100vw - 1600px) / 2)) 16px max(56px, calc((100vw - 1600px) / 2 + 56px)); }
  .signin-banner { margin: 0 -2.5% 0 -12%; transform: translateY(-5%); }
  .signin-banner img {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 26%), linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent 0, #000 26%), linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
    mask-composite: intersect; }
}
/* Phones and tablets: no banner (no room for it), just the card in the middle */
@media (max-width: 1099px) {
  .signin { grid-template-columns: minmax(0, 1fr); justify-items: center; padding: 16px; }
  .signin-left { width: 100%; max-width: 420px; }
  .signin-card { width: 100%; }
  .signin-banner { display: none; }
}
@media (max-width: 599px) {
  .signin { padding: 12px; }
  .signin-card { padding: 20px 18px 16px; border-radius: 14px; }
  .signin-logo { width: 52px; height: 52px; margin-bottom: 6px; }
  .signin h1 { font-size: 20px; }
  .signin-sub { margin-bottom: 12px; }
}
/* short laptop screens: a slightly tighter card */
@media (min-width: 1100px) and (max-height: 640px) {
  .signin-card { padding: 16px 28px 14px; }
  .signin-logo { width: 48px; height: 48px; }
  .signin-sub { margin-bottom: 10px; }
}

/* Registration page (authLayout) */
.auth { background: var(--bg); }
.auth .promo { background: radial-gradient(700px 500px at 0% 0%, #2b7fd6 0%, transparent 60%), linear-gradient(160deg, var(--brand) 0%, var(--brand-navy) 100%); }
.auth .promo .brand { color: #fff; gap: 12px; display: flex; align-items: center; }
.auth .promo .brand small { display: block; color: #cfe3f7; font-weight: 400; font-size: 12.5px; }
.brand-tile { width: 56px; height: 56px; border-radius: 12px; background: #fff; display: grid; place-items: center; box-shadow: var(--s8); flex: none; }
.brand-tile .logo-img { width: 44px; height: 44px; object-fit: contain; }
.auth .promo li .i { border-radius: 10px; }
.auth .formside .box { background: #fff; border-radius: 16px; box-shadow: var(--s16); padding: 28px 32px; }
.roles label { border-radius: 10px; }

/* The "I accept" tick before «Përfundo»: large and easy to read, especially on phones */
.accept-box { margin-top: 16px; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid #c4dbf3; border-radius: 10px; background: var(--info-soft); font-size: 15px; line-height: 1.5; color: var(--text); }
.accept-box:has(input:checked) { border-color: var(--primary); background: #e3effc; }
.accept-box input[type=checkbox] { width: 24px; height: 24px; min-width: 24px; margin: 1px 0 0; accent-color: var(--primary); cursor: pointer; }
@media (max-width: 600px) {
  .accept-box { font-size: 16px; padding: 16px; gap: 14px; }
  .accept-box input[type=checkbox] { width: 28px; height: 28px; min-width: 28px; }
}

/* Economic offer (Excel) note on the supplier's side */
.sheet-note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 0; padding: 8px 12px; border-radius: 8px; background: #eef8f1; border: 1px solid #bfe3cc; color: var(--text); }
.sheet-note .btn { height: 28px; }

/* phones: the search box keeps its width; a filter dropdown next to it moves to its own line */
@media (max-width: 600px) {
  .live-search { flex-wrap: wrap; }
  .live-search input { flex: 1 1 0; min-width: 0; }
  .searchbar.live-search select, .searchbar select#sph { flex: 1 1 100%; width: 100%; }
}

/* sign-in: remember me */
.signin-row { display: flex; align-items: center; justify-content: space-between; margin-top: -2px; }
.signin .remember { font-size: 14px; color: var(--text-2); align-items: center; gap: 10px; }
.signin .remember input { width: 18px; height: 18px; margin: 0; }
