/* Spalvos, šriftas ir formos – kaip naujoje gotas.lt svetainėje (gotweb public/assets/site.css). */
:root { --fg: #213245; --title: #1d3450; --muted: #61758b; --line: #d8e0ea; --accent: #0f4a7d; --accent-deep: #0b3c69; --accent-soft: #eef5fb; --ok: #1e7e34; --ok-bg: #e8f5e9; --err: #b42318; --bg: #f5f7fb; --shadow: 0 14px 30px rgba(14, 49, 84, .08); --ring: #dcecf8; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font: 16px/1.55 Arial, Helvetica, "Liberation Sans", sans-serif; color: var(--fg); background: var(--bg); }
main { max-width: 760px; margin: 0 auto; padding: 24px 16px 48px; }
h1 { font-size: clamp(24px, 2.8vw, 30px); line-height: 1.25; color: var(--title); margin: 0 0 8px; }
h2 { font-size: 1.2rem; color: var(--title); margin: 24px 0 8px; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid #075b9a; outline-offset: 2px; box-shadow: 0 0 0 4px var(--ring); }
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .97); border-bottom: 1px solid #dce5ee; box-shadow: 0 1px 0 rgba(11, 60, 105, .05), 0 12px 28px rgba(12, 43, 72, .05); }
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; max-width: 760px; min-height: 60px; margin: 0 auto; padding: 8px 16px; }
.top .brand { color: var(--accent); font-weight: 900; font-size: 1.5rem; letter-spacing: .02em; line-height: 1; text-decoration: none; }
.top .links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.top .links .btn { min-height: 40px; padding: 7px 14px; font-size: .95rem; }
.top .links a:not(.btn) { padding: 8px 10px; border-radius: 8px; text-decoration: none; color: #4d6075; font-size: .95rem; font-weight: 600; }
.top .links a:not(.btn):hover { background: var(--accent-soft); color: var(--accent); }
.muted { color: var(--muted); }
.right { text-align: right; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin: 16px 0; box-shadow: var(--shadow); }
.card > h2:first-child { margin-top: 0; }
.notice > h1, .notice > h2 { margin-top: 0; }
.notice .btn { margin-top: 4px; }
label { display: block; margin-bottom: 12px; font-weight: 700; color: var(--title); }
input, textarea, select { display: block; width: 100%; min-height: 44px; margin-top: 4px; padding: 10px 12px; font: inherit; font-weight: 400; color: var(--fg); border: 1px solid #b8cce0; border-radius: 8px; background: #fff; }
input:hover, input:focus, textarea:hover, textarea:focus, select:hover, select:focus { outline: 2px solid transparent; border-color: #7fb5df; box-shadow: 0 0 0 3px var(--ring); }
.btn { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 9px 18px; font: inherit; font-weight: 700; color: #fff; background: var(--accent); border: 1px solid var(--accent); border-radius: 8px; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn2 { background: #fff; color: var(--accent); border: 1px solid #c7d8ea; }
.btn2:hover { background: var(--accent-soft); border-color: #9fc2df; }
.tabs { display: flex; gap: 4px; margin: 0 0 20px; border-bottom: 1px solid var(--line); }
.tabs a { margin-bottom: -1px; padding: 10px 14px; border: 1px solid transparent; border-radius: 8px 8px 0 0; color: #4d6075; font-weight: 700; text-decoration: none; }
.tabs a:hover { color: var(--accent); background: var(--accent-soft); }
.tabs a.active { border-color: var(--line); border-bottom-color: var(--bg); background: var(--bg); color: var(--accent); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.row2 > label { min-width: 0; }
.submit-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
.submit-row > label { flex: 0 1 260px; margin-bottom: 0; }
.submit-row > label.grow { flex: 1 1 260px; }
/* Administravimo langai – kaip gotweb admin dialogai. */
html:has(dialog[open]) { overflow: hidden; }
.modal { width: min(34rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; border: 1px solid #c7d0db; border-radius: 12px; color: var(--fg); background: #fff; box-shadow: 0 1.4rem 3.2rem rgb(15 74 125 / 22%); }
.modal::backdrop { background: rgb(16 44 70 / 35%); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 1.15rem; overflow-wrap: anywhere; }
.modal-head p { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.modal-close { flex: none; width: 40px; height: 40px; border: 1px solid #dbe6f1; border-radius: 8px; color: var(--accent); background: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.modal-close:hover { background: var(--accent-soft); border-color: #b8d4f0; }
.modal section { padding: 16px 20px; border-bottom: 1px solid #edf1f5; }
.modal form:last-child section { border-bottom: 0; }
.modal h3 { margin: 0 0 6px; color: var(--title); font-size: 1rem; }
.modal p { margin: 0 0 12px; color: #536477; font-size: .9rem; line-height: 1.5; }
.modal .actions { margin: 12px 0 0; }
.modal .danger h3 { color: var(--err); }
.choice { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-weight: 400; cursor: pointer; }
.choice input { flex: none; width: auto; min-height: 0; margin: 3px 0 0; }
.choice b { display: block; color: var(--title); }
.choice span { color: #536477; font-size: .88rem; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice:has(input:disabled) { cursor: default; opacity: .75; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid #dbe6f1; border-radius: 8px; color: var(--accent); background: #fff; cursor: pointer; }
.icon-btn:hover { background: var(--accent-soft); border-color: #b8d4f0; }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.actions { margin: 16px 0; display: flex; gap: 8px; flex-wrap: wrap; }
details summary { cursor: pointer; color: var(--accent); font-weight: 600; }
details ol { margin: 8px 0 0; padding-left: 20px; }
details li { margin-bottom: 6px; }
.btn-danger { background: #fff; color: var(--err); border: 1px solid #f0b4ac; }
.btn-danger:hover { background: #fef3f2; border-color: var(--err); }
.inline { display: inline; margin: 0; }
.linkdel { font: inherit; font-size: .9rem; color: var(--err); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
.btn:disabled { opacity: .5; cursor: default; }
.pdf { width: 100%; height: 70vh; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.pdf > iframe, .pdf noscript iframe { width: 100%; height: 100%; border: 0; border-radius: 12px; }
.pdf-view { overflow-y: auto; -webkit-overflow-scrolling: touch; background: #e8eef5; padding: 8px; }
.pdf-page { width: 100%; margin: 0 auto 8px; background: #fff; box-shadow: 0 2px 8px rgba(15, 74, 125, .12); }
.pdf-page:last-child { margin-bottom: 0; }
.pdf-page canvas { display: block; width: 100%; height: 100%; }
.pdf-msg { margin: 16px; text-align: center; color: var(--muted); }
.vc { font-size: 2.4rem; font-weight: 700; letter-spacing: .2em; margin: 4px 0; color: var(--accent); }
.ok { color: var(--ok); }
.ok .btn { margin-left: 8px; }
.err { color: var(--err); }
.hint { margin: -4px 0 12px; font-size: .9rem; }
.tbl { overflow-x: auto; }
table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid #e0e7ef; vertical-align: top; }
tr:last-child > th, tr:last-child > td { border-bottom: 0; }
.kv th { width: 34%; color: var(--muted); font-weight: 500; }
.link { margin: 0; font-size: .9rem; }
.sig { margin: 12px 0; }
.info { background: #eff6ff; border-color: #c7dcf2; box-shadow: none; }
.info ul { margin: 6px 0; padding-left: 20px; }
.info li { margin-bottom: 4px; }
.ok .btn2 { margin-left: 4px; }
.st-done { color: var(--ok); font-weight: 700; }
.st-error { color: var(--err); }
@media (max-width: 560px) {
    .pdf { height: 55vh; }
    th, td { padding: 6px; font-size: .92rem; }
    .site-header { position: static; }
    .top { min-height: 0; padding: 8px 12px; }
    .top .brand { font-size: 1.3rem; }
    .row2 { grid-template-columns: 1fr; }
    .top .links { gap: 4px; }
    .top .links .btn { min-height: 36px; padding: 5px 10px; font-size: .88rem; }
    .top .links a:not(.btn) { padding: 5px 8px; font-size: .88rem; }
}
