/* Entech Transfer */
:root {
  /* Ngjyrat e Entech: blu e errët #04081A, blu #004AAD, blu e çelët #3FA0FF */
  --ink: #0f1626;
  --ink-2: #33405a;
  --muted: #6b7690;
  --line: #dfe4ee;
  --line-2: #eef1f7;
  --paper: #ffffff;
  --bg: #f3f5fa;
  --gold: #004AAD;
  --gold-2: #3FA0FF;
  --gold-soft: #e7f1ff;
  --black: #04081A;
  --ok: #2f7d4f;
  --ok-soft: #e5f2ea;
  --warn: #9a6400;
  --warn-soft: #fbf0d9;
  --err: #b3261e;
  --err-soft: #fbe7e5;
  --blue: #2457a6;
  --radius: 6px;
  font-size: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.45;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; margin: 0 0 4px; font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: 16px; margin: 0 0 12px; font-weight: 600; }
h3 { font-size: 14px; margin: 0 0 8px; font-weight: 600; }
code, .mono { font-family: Consolas, "SFMono-Regular", Menlo, monospace; font-size: 12.5px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.hidden { display: none !important; }

/* Shiriti i sipërm */
.top {
  background: var(--black);
  color: #ddd;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 22px;
  height: 56px;
  border-bottom: 2px solid var(--gold-2);
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand .prod { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2); padding-left: 10px; border-left: 1px solid #2b3556; line-height: 1.2; }
.navtoggle { display: none; background: none; border: 1px solid #2b3556; color: #fff; border-radius: 6px; width: 38px; height: 34px; font-size: 18px; cursor: pointer; }
.installbtn { background: var(--gold-2); color: #04081A; border: 0; border-radius: 6px; padding: 6px 10px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.mainnav { display: flex; gap: 2px; flex: 1; overflow-x: auto; }
.mainnav a { color: #bdbdbd; padding: 17px 12px 15px; border-bottom: 2px solid transparent; white-space: nowrap; }
.mainnav a:hover { color: #fff; text-decoration: none; }
.mainnav a.on { color: #fff; border-bottom-color: var(--gold-2); }
.who { display: flex; align-items: center; gap: 14px; }
.who a { display: flex; flex-direction: column; align-items: flex-end; color: #fff; line-height: 1.2; }
.who a:hover { text-decoration: none; }
.who-org { color: var(--gold-2); font-size: 11.5px; }
.linkbtn { background: none; border: 1px solid #2b3556; color: #c7cfe2; padding: 5px 10px; border-radius: 4px; cursor: pointer; font: inherit; }
.linkbtn:hover { border-color: var(--gold-2); color: #fff; }

.page { flex: 1; width: 100%; max-width: 1400px; margin: 0 auto; padding: 22px; }
.foot { display: flex; justify-content: space-between; padding: 12px 22px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); }

/* Elementet bazë */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  padding: 7px 12px; border-radius: var(--radius); cursor: pointer; font: inherit; line-height: 1.2;
}
.btn:hover { border-color: #b9c6dc; text-decoration: none; background: #f8faff; }
.btn:disabled { opacity: .45; cursor: default; }
.btn-gold { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn-gold:hover { background: #003c8f; border-color: #003c8f; }
.btn-gold .ic { color: #fff; }
.btn-danger { color: var(--err); }
.btn-danger:hover { border-color: var(--err); background: var(--err-soft); }
.btn-sm { padding: 4px 9px; font-size: 12.5px; }
.ic { width: 16px; height: 16px; flex: none; }

input[type=text], input[type=password], input[type=email], input[type=number], input[type=datetime-local], input[type=search], select, textarea {
  font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #cdd5e3; border-radius: var(--radius); padding: 7px 10px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 3px solid var(--gold-soft); border-color: var(--gold); }
textarea { resize: vertical; min-height: 80px; }
label.f { display: block; margin-bottom: 12px; }
label.f > span { display: block; font-size: 12.5px; color: var(--ink-2); margin-bottom: 4px; font-weight: 500; }
label.f small { color: var(--muted); display: block; margin-top: 3px; }
.check { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 10px; }
.check input { margin-top: 3px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 18px; margin-bottom: 18px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.pagehead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.pagehead p { margin: 0; color: var(--muted); }

.flash { padding: 10px 14px; border-radius: var(--radius); margin-bottom: 16px; border: 1px solid; }
.flash-ok { background: var(--ok-soft); border-color: #bfe0cc; color: #1d5a37; }
.flash-error { background: var(--err-soft); border-color: #f1c4c0; color: #8c1d17; }
.flash-warn { background: var(--warn-soft); border-color: #ecd6a6; color: #6d4700; }

table.t { width: 100%; border-collapse: collapse; background: var(--paper); }
table.t th { text-align: left; font-weight: 600; font-size: 12px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; padding: 9px 10px; border-bottom: 1px solid var(--line); background: #f7f9fc; white-space: nowrap; }
table.t td { padding: 9px 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.t tr:hover td { background: #f8faff; }
.tablewrap { border: 1px solid var(--line); border-radius: 8px; overflow: auto; background: var(--paper); }

.tag { display: inline-block; font-size: 11.5px; padding: 2px 8px; border-radius: 99px; background: #efede7; color: var(--ink-2); white-space: nowrap; line-height: 1.5; }
.tag-gold { background: var(--gold-soft); color: #0b3d8c; }
.st { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; white-space: nowrap; }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #aaa; }
.st-queued::before, .st-processing::before, .st-publishing::before, .st-stamped::before { background: var(--gold-2); animation: pulse 1.4s infinite; }
.st-published::before { background: var(--ok); }
.st-scheduled::before { background: var(--blue); }
.st-held::before { background: #999; }
.st-failed::before { background: var(--err); }
.st-failed { color: var(--err); }
@keyframes pulse { 50% { opacity: .3; } }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.stat b { display: block; font-size: 24px; font-weight: 600; }
.stat span { color: var(--muted); font-size: 12.5px; }
.stat.alert b { color: var(--err); }

.kv { display: grid; grid-template-columns: 170px 1fr; gap: 6px 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }

/* Shfletuesi i skedarëve */
.fb-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.fb-bar .sep { width: 1px; align-self: stretch; background: var(--line); margin: 0 2px; }
.fb-bar .grow { flex: 1; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 15px; margin-bottom: 12px; }
.crumbs a { color: var(--ink); padding: 2px 4px; border-radius: 4px; }
.crumbs a:hover { background: var(--gold-soft); text-decoration: none; }
.crumbs .slash { color: #bbb; }
.crumbs .cur { font-weight: 600; padding: 2px 4px; }
input.fb-filter { width: 220px; }
.fb-info { display: flex; justify-content: space-between; color: var(--muted); font-size: 12.5px; margin: 8px 2px 0; }

.drop {
  border: 1.5px dashed #b9c6dc; border-radius: 8px; padding: 14px; text-align: center; color: var(--muted);
  margin-bottom: 12px; background: #fafbfe; transition: background .15s, border-color .15s;
}
.drop.over { background: var(--gold-soft); border-color: var(--gold); color: var(--ink); }
.drop b { color: var(--ink); }
.excl-note { background: var(--gold-soft); border: 1px solid #c4dcfb; color: #0b3d8c; padding: 8px 12px; border-radius: 6px; margin-bottom: 12px; font-size: 13px; }

table.files td.name { display: flex; align-items: center; gap: 9px; min-width: 260px; }
table.files td.name a { color: var(--ink); }
table.files tr.sel td { background: #edf4ff; }
table.files tr.dragover td { background: var(--gold-soft); }
table.files .fi { width: 20px; height: 20px; flex: none; }
table.files th.sortable { cursor: pointer; user-select: none; }
table.files th.sortable:hover { color: var(--ink); }
table.files th .arr { color: var(--gold); }
.fname { overflow: hidden; text-overflow: ellipsis; }

.grid-view { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; padding: 12px; }
.tile { border: 1px solid var(--line); border-radius: 8px; padding: 10px; text-align: center; cursor: pointer; background: #fff; position: relative; }
.tile:hover { border-color: #b9c6dc; }
.tile.sel { border-color: var(--gold); background: #edf4ff; }
.tile .thumb { height: 90px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; background: #eef1f7; border-radius: 5px; overflow: hidden; }
.tile .thumb img { max-width: 100%; max-height: 100%; object-fit: cover; }
.tile .thumb .fi { width: 40px; height: 40px; }
.tile .tn { font-size: 12.5px; word-break: break-word; }
.tile input { position: absolute; top: 8px; left: 8px; }

.ctx { position: fixed; z-index: 50; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 6px 24px rgba(0,0,0,.12); padding: 4px 0; min-width: 190px; }
.ctx button { display: flex; width: 100%; align-items: center; gap: 8px; background: none; border: 0; padding: 7px 14px; font: inherit; cursor: pointer; text-align: left; color: var(--ink); }
.ctx button:hover { background: var(--gold-soft); }
.ctx hr { border: 0; border-top: 1px solid var(--line-2); margin: 4px 0; }

/* Dritaret (modal) */
.modal-bg { position: fixed; inset: 0; background: rgba(4,8,26,.5); z-index: 60; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow-y: auto; }
.modal { background: #fff; border-radius: 10px; width: 100%; max-width: 560px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal.wide { max-width: 760px; }
.modal header { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.modal header h2 { margin: 0; }
.modal .body { padding: 18px; }
.modal footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); background: #f7f9fc; border-radius: 0 0 10px 10px; }
.x { background: none; border: 0; font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted); }

/* Paneli i ngarkimeve */
.uq { position: fixed; right: 18px; bottom: 18px; width: 420px; max-height: 60vh; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 40px rgba(0,0,0,.18); z-index: 40; }
.uq header { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: var(--black); color: #fff; border-radius: 10px 10px 0 0; }
.uq header b { font-weight: 600; }
.uq header .x { color: #aaa; }
.uq .list { overflow-y: auto; padding: 6px 0; }
.uq .item { padding: 8px 14px; border-bottom: 1px solid var(--line-2); }
.uq .item:last-child { border-bottom: 0; }
.uq .row1 { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.uq .row1 .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uq .bar { height: 5px; background: #eee; border-radius: 3px; margin: 6px 0 4px; overflow: hidden; }
.uq .bar i { display: block; height: 100%; width: 0; background: var(--gold-2); transition: width .2s; }
.uq .item.done .bar i { background: var(--ok); }
.uq .item.err .bar i { background: var(--err); }
.uq .row2 { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); }
.uq .row2 button { background: none; border: 0; color: var(--blue); cursor: pointer; font: inherit; padding: 0; }
.uq footer { padding: 8px 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }

.meta-file { border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin-bottom: 12px; }
.meta-file .mf-name { font-weight: 600; margin-bottom: 8px; display: flex; justify-content: space-between; gap: 8px; }
.declare { background: var(--gold-soft); border: 1px solid #c4dcfb; border-radius: 6px; padding: 10px 12px; font-size: 13px; }

/* Faqja e hyrjes */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 440px; }
.login-side { background: radial-gradient(1200px 500px at 0% 0%, #0b1a44 0%, var(--black) 60%); color: #c7cfe2; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; border-right: 3px solid var(--gold-2); }
.login-side h1 { color: #fff; font-size: 30px; font-weight: 500; max-width: 480px; line-height: 1.25; }
.login-side h1 em { color: var(--gold-2); font-style: normal; }
.login-side ul { padding: 0; list-style: none; margin: 26px 0 0; max-width: 460px; }
.login-side li { padding: 9px 0 9px 22px; border-top: 1px solid #1b2340; position: relative; }
.login-side li::before { content: ""; position: absolute; left: 0; top: 16px; width: 9px; height: 2px; background: var(--gold-2); }
.login-form { display: flex; flex-direction: column; justify-content: center; padding: 48px 44px; background: #fff; }
.login-form h2 { font-size: 20px; margin-bottom: 4px; }

/* Faqe publike (verifikimi, ndarja) */
.pub { max-width: 760px; margin: 0 auto; padding: 32px 18px 60px; }
.pub-head { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.pub-head .prod { letter-spacing: .18em; font-weight: 600; font-size: 12px; color: var(--gold); text-transform: uppercase; padding-left: 12px; border-left: 1px solid var(--line); }
.verdict { border-radius: 8px; padding: 16px 18px; margin-bottom: 18px; border: 1px solid; }
.verdict.good { background: var(--ok-soft); border-color: #bfe0cc; }
.verdict.bad { background: var(--err-soft); border-color: #f1c4c0; }
.verdict.revoked { background: var(--warn-soft); border-color: #ecd6a6; }
.verdict strong { display: block; font-size: 17px; margin-bottom: 3px; }
.hashbox { word-break: break-all; background: #f3f5fa; padding: 6px 8px; border-radius: 4px; }

.video-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; }
.video-hero video { width: 100%; border-radius: 8px; background: #000; max-height: 420px; }

/* ---------- Telefon dhe tablet ---------- */
.m-only { display: none; }
@media (max-width: 900px) {
  .login-wrap { grid-template-columns: 1fr; }
  .login-side { display: none; }
  .video-hero, .grid2, .grid3 { grid-template-columns: 1fr; }
  .uq { left: 10px; right: 10px; width: auto; bottom: calc(10px + env(safe-area-inset-bottom)); }
}
@media (max-width: 760px) {
  :root { font-size: 15px; }
  .m-only { display: block; }
  .hide-m { display: none !important; }
  .top { gap: 10px; padding: 0 12px; padding-top: env(safe-area-inset-top); height: calc(56px + env(safe-area-inset-top)); position: sticky; top: 0; z-index: 30; }
  .brand img { height: 20px !important; }
  .brand .prod { font-size: 10.5px; padding-left: 8px; }
  .navtoggle { display: block; margin-left: auto; }
  .who { display: none; }
  .mainnav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; background: var(--black); border-bottom: 2px solid var(--gold-2); padding: 6px 0 10px; box-shadow: 0 12px 30px rgba(0,0,0,.3); }
  .mainnav.open { display: flex; }
  .mainnav a { padding: 12px 20px; border-bottom: 0; border-left: 3px solid transparent; font-size: 16px; }
  .mainnav a.on { border-left-color: var(--gold-2); background: #0b1430; }
  .mainnav .m-acc { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px 4px; margin-top: 6px; border-top: 1px solid #1b2340; color: #8f9bb8; font-size: 13px; }
  .page { padding: 14px 12px calc(90px + env(safe-area-inset-bottom)); }
  .foot { flex-direction: column; gap: 2px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  h1 { font-size: 19px; }
  .pagehead { margin-bottom: 12px; align-items: flex-start; }
  .pagehead > form, .pagehead > .fb-bar { width: 100%; }
  .pagehead form.fb-bar input, .pagehead form.fb-bar select { flex: 1 1 140px; width: auto !important; }
  .panel { padding: 14px; border-radius: 10px; }
  .kv { grid-template-columns: 1fr; gap: 0; }
  .kv dt { margin-top: 8px; font-size: 12px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat { padding: 10px 12px; }
  .stat b { font-size: 20px; }
  .btn { padding: 9px 12px; }
  input[type=text], input[type=password], input[type=email], input[type=number], input[type=datetime-local], input[type=search], select, textarea { font-size: 16px; padding: 10px 12px; }

  /* Shfletuesi i skedarëve */
  .crumbs { font-size: 14px; overflow-x: auto; flex-wrap: nowrap; white-space: nowrap; padding-bottom: 4px; }
  .fb-bar { gap: 6px; }
  .fb-bar .sep, .fb-bar .grow { display: none; }
  .fb-bar .btn { flex: 1 1 auto; justify-content: center; }
  .fb-bar .btn:disabled { display: none; }
  #bView, #bRefresh { flex: 0 0 auto; }
  .excl-note { font-size: 13px; padding: 8px 10px; }
  input.fb-filter { width: 100%; order: 10; }
  #bUpload { display: none; }
  .drop { padding: 18px 12px; font-size: 14px; }
  table.files th:nth-child(4), table.files td:nth-child(4), table.files th:nth-child(5), table.files td:nth-child(5) { display: none; }
  table.files th:nth-child(3), table.files td:nth-child(3) { display: none; }
  table.files td.name { min-width: 0; flex-wrap: wrap; }
  table.files td.name .mmeta { display: block; width: 100%; padding-left: 29px; font-size: 12px; color: var(--muted); margin-top: 2px; }
  table.files td.name .mmeta .st { font-size: 11.5px; }
  .grid-view { grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 8px; }
  .fab { position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 35; width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--gold); color: #fff; box-shadow: 0 8px 24px rgba(0,74,173,.45); display: flex; align-items: center; justify-content: center; cursor: pointer; }
  .fab svg { width: 28px; height: 28px; }

  /* Dritaret në ekran të plotë */
  .modal-bg { padding: 0; align-items: stretch; }
  .modal, .modal.wide { max-width: none; border-radius: 0; min-height: 100%; display: flex; flex-direction: column; }
  .modal .body { flex: 1; overflow-y: auto; }
  .modal footer { border-radius: 0; position: sticky; bottom: 0; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .modal footer .btn { flex: 1; justify-content: center; }
  .ctx { left: 8px !important; right: 8px; top: auto !important; bottom: calc(8px + env(safe-area-inset-bottom)); min-width: 0; border-radius: 12px; padding: 6px 0; }
  .ctx button { padding: 12px 18px; font-size: 15px; }
  .uq { max-height: 50vh; }
  table.t td, table.t th { padding: 8px; }
  .video-hero video { max-height: 260px; }
  .pub { padding: 18px 12px 40px; }
}
@media (max-width: 760px) and (display-mode: standalone) {
  .foot { display: none; }
}
.mmeta { display: none; }

@media print {
  .top, .foot, .noprint { display: none !important; }
  body { background: #fff; }
}
