/* ══════════════════════════════════════════════════════
   TwinTech – zákaznícky portál (layout nad admin.css)
   Stránky portálu linkujú admin.css (komponenty) + portal.css.
   Telo: <body class="adm ptl">
   ══════════════════════════════════════════════════════ */

body.ptl { background: var(--bgl); }

/* horná lišta namiesto bočného menu */
.ptl__top {
    background: var(--dark); color: #dfe5ee;
    position: sticky; top: 0; z-index: 50;
    box-shadow: 0 6px 24px rgba(6, 10, 18, .25);
}
.ptl__topin {
    max-width: 1180px; margin: 0 auto; padding: 0 22px;
    display: flex; align-items: center; gap: 18px; min-height: 64px; flex-wrap: wrap;
}
.ptl__brand { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.ptl__brand img { height: 30px; }
.ptl__brand span { font-size: 10.5px; font-weight: 800; letter-spacing: .2em; color: var(--red-2); }

.ptl__nav { display: flex; gap: 4px; flex-wrap: wrap; }
.ptl__nav a {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 14px; border-radius: 9px; font-weight: 600; font-size: 13.5px; color: #aab4c2;
}
.ptl__nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.ptl__nav a.is-active { background: var(--grad); color: #fff; }
.ptl__nav .pill { margin-left: 2px; }

.ptl__user { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 13px; color: #8c96a5; }
.ptl__user b { color: #dfe5ee; font-size: 13px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ptl__user a { color: #8c96a5; font-weight: 600; }
.ptl__user a:hover { color: #fff; }

.ptl__main { max-width: 1180px; margin: 0 auto; padding: 28px 22px 70px; }

.ptl__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.ptl__head h1 { font-size: 23px; font-weight: 800; letter-spacing: -.01em; }

.ptl__foot { text-align: center; color: var(--mut); font-size: 12.5px; padding: 18px; }

/* login portálu – doplnky k .adm--login */
.ptl-login__note { margin-top: 14px; font-size: 13px; color: #8c96a5; text-align: center; }

/* karta dokumentu na dashboarde */
.doccard { display: block; background: var(--card); border: 1px solid var(--line-l); border-radius: 13px; padding: 16px 18px; }
.doccard:hover { border-color: #c6cdd8; box-shadow: 0 6px 18px rgba(20, 28, 42, .08); }
.doccard b { display: block; font-size: 14.5px; margin-bottom: 3px; }
.doccard small { color: var(--mut); font-size: 12.5px; }
.doclist { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }

/* obsah zdieľaného dokumentu */
.docbody { font-size: 15px; line-height: 1.75; }
.docbody h2 { font-size: 20px; margin: 18px 0 8px; }
.docbody h3 { font-size: 17px; margin: 14px 0 7px; }
.docbody p { margin: 0 0 12px; }
.docbody ul, .docbody ol { margin: 0 0 12px; padding-left: 26px; }
.docbody a { color: var(--red); text-decoration: underline; }
.docbody img { max-width: 100%; border-radius: 10px; }

@media (max-width: 760px) {
    .ptl__topin { padding: 8px 14px; gap: 10px; }
    .ptl__user { width: 100%; justify-content: space-between; margin: 0; padding-bottom: 8px; }
    .ptl__main { padding: 18px 14px 50px; }
}
