/* Išdėstymas ir valdymas pagal DASATA, spalvos ir logotipas – Lantel. */
:root {
  --c-accent: #f48220;          /* Lantel oranžinė */
  --c-accent-dark: #d9701f;     /* mygtukams (geresnis kontrastas su balta) */
  --c-accent-bg: #fff5ec;
  --c-ink: #3b3f46;             /* tamsiai pilka (logotipo „TEL" atspalvis) */
  --c-bg: #f1f1f1;
  --c-text: #212529;
  --c-ok: #28a745;
  --c-bad: #dc3545;
  --c-teal: #17a2b8;
}

html, body { min-height: 100%; }
body {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  color: var(--c-text);
  background: var(--c-bg);
}
a { color: var(--c-accent-dark); }
a:hover { color: #b4500a; }
body::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 277px; z-index: -1;
  background: linear-gradient(-45deg, var(--c-accent) 0%, var(--c-ink) 100%);
}

.layout { display: flex; max-width: 1180px; margin: 0 auto; padding: 0 15px; }
.side { width: 250px; flex: 0 0 250px; color: #fff; text-align: center; padding-top: 18px; }
.side .brand { display: block; text-align: left; margin-bottom: 18px; }
.side .brand img { height: 46px; width: auto; }
.avatar {
  width: 64px; height: 64px; border-radius: 50%; background: #555; color: #eee;
  display: flex; align-items: center; justify-content: center; font-size: 22px; margin: 0 auto 12px;
  box-shadow: 0 0 0 3px rgba(255,255,255,.25);
}
.side .uname { font-weight: 700; font-size: 15px; text-shadow: 0 1px 2px rgba(0,0,0,.3); }
.side .urole { font-size: 11px; opacity: .9; min-height: 14px; }
.actions { margin: 16px 0 0; display: flex; justify-content: center; }
.action-item { color: #fff; padding: 4px 22px; font-size: 16px; opacity: .9; }
.action-item:hover { color: #fff; opacity: 1; text-decoration: none; }
.menu { margin-top: 62px; }
.menu a { display: block; padding: 14px 0; color: #333; text-decoration: none; font-size: 14px; }
.menu a i { display: block; font-size: 28px; margin-bottom: 6px; color: #222; }
.menu a.active, .menu a.active i { color: var(--c-accent); }
.menu a:hover { color: var(--c-accent-dark); text-decoration: none; }

.main { flex: 1; padding: 0 0 0 24px; min-width: 0; }
.topbar { display: flex; align-items: center; height: 74px; gap: 20px; }
.topbar .spacer { flex: 1; }
.topbar a, .topbar button { color: #fff; font-size: 20px; background: none; border: 0; padding: 0; cursor: pointer; position: relative; }
.topbar a:hover, .topbar button:hover { color: #fff; opacity: .8; text-decoration: none; }
.badge-dot {
  position: absolute; top: -6px; right: -8px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: var(--c-bad); color: #fff; font-size: 10px; line-height: 16px; text-align: center;
}
.page-title { color: #fff; font-size: 20px; font-weight: 300; margin: 6px 0 14px; text-shadow: 0 1px 2px rgba(0,0,0,.2); }

.card-d { background: #fff; border-radius: 3px; padding: 16px 18px; margin-bottom: 16px; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.card-d h2 { font-size: 18px; font-weight: 300; color: #777; margin: 0 0 10px; }
.card-d .meta, .meta { font-size: 11px; color: #777; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; align-items: start; }
.grid3 .card-d { margin-bottom: 0; }
.scroll { max-height: 250px; overflow-y: auto; margin: 0 -6px; padding: 0 6px; }

.btn-d { display: inline-block; background: var(--c-accent-dark); color: #fff; border: 0; border-radius: 4px; padding: 8px 16px; cursor: pointer; text-align: center; }
.btn-d:hover { color: #fff; filter: brightness(1.07); text-decoration: none; }
.btn-d.disabled, .btn-d[disabled] { background: #f4f4f4; color: #bbb; pointer-events: none; }
.btn-block-d { display: block; width: 100%; margin-bottom: 10px; }
.btn-danger-d { background: var(--c-bad); color: #fff; border: 0; border-radius: 3px; padding: 4px 12px; font-size: 13px; }
.btn-teal { background: var(--c-teal); color: #fff; border: 0; border-radius: 4px; padding: 8px 16px; display: block; text-align: center; }
.btn-teal:hover { color: #fff; text-decoration: none; filter: brightness(1.07); }

.item { padding: 8px 0; border-bottom: 1px solid #eee; font-size: 13px; color: #555; }
.item:last-child { border-bottom: 0; }
.item .ok { color: var(--c-ok); margin-right: 4px; }
.item .wait { color: var(--c-bad); margin-right: 4px; }
.item .doc { color: #999; margin-left: 3px; font-size: 12px; }
.mini { border: 1px solid #e6e6e6; border-radius: 3px; margin-bottom: 8px; background: #f8f9fa; }
.mini .body { padding: 8px 10px; color: #555; font-size: 13px; }
.mini .when { font-size: 10px; color: #777; padding: 6px 10px 0; }

/* e-Žurnalas */
.jtools { display: flex; align-items: center; justify-content: space-between; color: #fff; margin: 0 0 8px; }
.jtools .pager { flex: 1; text-align: center; }
.jtools .pager a { color: #fff; padding: 0 10px; font-size: 14px; }
.jtools .pager a.off { opacity: .4; pointer-events: none; }
.jtools .tools a { color: #fff; padding: 0 8px; }
.jsearch { display: none; margin-bottom: 8px; }
.jsearch.open { display: flex; gap: 6px; }
.jrow { background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); margin-bottom: 4px; display: flex; font-size: 12px; }
.jrow > div { padding: 12px 14px; flex: 1; word-break: break-word; }
.jrow .date { color: #555; font-size: 11px; display: block; margin-bottom: 3px; }
.hash { font-family: monospace; font-size: 10px; color: #888; }

.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(-45deg, var(--c-accent), var(--c-ink)); }
.login-card { background: #fff; border-radius: 4px; padding: 28px; width: 360px; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.login-card .logo { display: block; height: 56px; margin: 0 auto 14px; }
.login-card h1 { font-size: 22px; font-weight: 300; margin-bottom: 18px; color: #555; text-align: center; }
.code-input { letter-spacing: 8px; font-size: 22px; text-align: center; }
.form-control:focus { border-color: var(--c-accent); box-shadow: 0 0 0 .2rem rgba(244,130,32,.25); }
table.t { width: 100%; font-size: 13px; }
table.t th { color: #777; font-weight: 500; border-bottom: 1px solid #ddd; padding: 6px; }
table.t td { padding: 6px; border-bottom: 1px solid #f0f0f0; }

.footer { display: flex; justify-content: space-between; align-items: center; margin-top: 36px; padding: 18px 0 30px; font-size: 12px; color: #777; }
.footer a { color: #777; padding: 0 12px; }

.popover { font-size: 12px; }
.popover-header { font-size: 12px; font-weight: 700; padding: 4px 10px; }

/* Šoninė juosta: kompiuteryje slepiama hamburgeriu, telefone atidaroma kaip meniu. */
body.side-collapsed .side { display: none; }
body.side-collapsed .main { padding-left: 0; }

@media (max-width: 800px) {
  .layout { flex-direction: column; }
  .side { width: auto; flex: none; padding-bottom: 6px; display: none; }
  body.menu-open .side { display: block; }
  body.side-collapsed .side { display: none; }
  body.side-collapsed.menu-open .side { display: block; }
  .menu { margin-top: 12px; display: flex; justify-content: center; gap: 30px; }
  .main { padding: 0; }
  .jrow { flex-direction: column; }
  body::before { height: 340px; }
  /* Atidarius meniu telefone, viršutinė juosta ir antraštė patenka ant šviesaus fono */
  body.menu-open .topbar a, body.menu-open .topbar button, body.menu-open .page-title { color: #444; text-shadow: none; }
}
.topbar button:focus { outline: none; }
