/* ============================================================
   USER_V2 – prenovljen uporabniški račun (skladno z redesign.css)
   Nalaga se ZADNJI, zato zanesljivo prevlada.
   ============================================================ */

/* ---------- KARTICE (dashboard) ---------- */
.user_cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    width: 100%;
    max-width: 920px;
    margin: 14px auto 28px;
    padding: 0 20px;
    box-sizing: border-box;
}
.user_cards .card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    gap: 14px;
    padding: 16px 18px;
    background: var(--surface, #fff);
    border: 1px solid var(--line, #E5E8EC);
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(20, 28, 40, .04);
    transition: border-color .18s ease, box-shadow .18s ease, transform .12s ease, background .18s ease;
    font-size: 1rem;
}
.user_cards .card:hover {
    border-color: var(--blue, #2C74B2);
    box-shadow: 0 12px 28px -18px rgba(20, 28, 40, .35);
    transform: translateY(-2px);
}
.user_cards .card.act-card {
    border-color: var(--blue, #2C74B2);
    background: var(--blue-tint, #E9F2F9);
}
.user_cards .cimg {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: var(--blue-tint, #E9F2F9);
    display: grid;
    place-items: center;
    line-height: 0;
    transition: background .18s ease;
}
.user_cards .card.act-card .cimg { background: #fff; }
.user_cards .cimg img { width: 20px; height: 20px; margin: 0; }
.user_cards .card h5 {
    margin: 0;
    font-family: var(--display, 'Manrope'), sans-serif;
    font-weight: 700;
    font-size: 14.5px;
    line-height: 1.2;
    color: var(--ink, #171B20);
}

/* ---------- OVITKI / KARTICE VSEBINE ---------- */
.login-wrap {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    width: 100%;
    margin: 0 auto 60px;
    padding: 0 20px;
    box-sizing: border-box;
}
.login-wrap a { color: inherit; }

.login-split,
.orders-split,
.min-cont {
    width: 100%;
    max-width: 680px;               /* enotna fiksna širina – da ne skače med stranmi */
    background: var(--surface, #fff);
    border: 1px solid var(--line, #E5E8EC);
    border-radius: 18px;
    padding: 30px 32px;
    box-shadow: 0 1px 2px rgba(20, 28, 40, .04), 0 16px 42px -26px rgba(20, 28, 40, .20);
    box-sizing: border-box;
    line-height: 1.5;
    color: var(--ink-soft, #3C424A);
}
.login-split.register { max-width: 680px; }
.min-cont { margin: 40px auto; }
.min-cont.wide { max-width: 1000px; }
.margin-content { width: 100%; max-width: 680px; margin: 0 auto; }

/* enakomeren razmik med polji v preprostih obrazcih (geslo, pozabljeno geslo …) */
.login-split form {  }
.login-split form > div { margin-bottom: 16px; }
.login-split form > div:last-child { margin-bottom: 0; }
/* naslovni blok (h3 + podnaslov) pri preprostih obrazcih */
.login-split.lgn > div:first-child {
    color: var(--muted, #5F6670); font-size: 14px; line-height: 1.5; margin-bottom: 6px;
}
.login-split.lgn > div:first-child h3 { margin: 0 0 5px; }

.login-split h3,
.orders-split h3,
.min-cont h3,
.login-wrap h3 {
    font-family: var(--display, 'Manrope'), sans-serif;
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: .045em;
    color: var(--ink, #171B20);
    margin: 0 0 20px;
    padding: 0;
}
.login-split h4 {
    font-family: var(--display, 'Manrope'), sans-serif;
    font-weight: 700;
    font-size: 17px;
    color: var(--ink, #171B20);
    padding: 0 0 12px;
    border-bottom: 1px solid var(--line, #E5E8EC);
    margin: 0 0 16px;
}

/* ---------- OBRAZCI: labeli + inputi ---------- */
.login-wrap label,
.login-split label,
.min-cont label {
    display: block;
    font-family: var(--display, 'Manrope'), sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--muted, #5F6670);
    margin: 0 0 7px;
}

.login-wrap .inputF,
.login-split .inputF,
.min-cont .inputF,
.login-split select,
.login-split textarea,
.login-wrap select {
    width: 100%;
    height: 52px;
    box-sizing: border-box;
    border: 1.5px solid var(--line, #E5E8EC);
    border-radius: 12px;
    background: var(--paper, #F4F5F2);
    padding: 0 15px;
    font-family: var(--body, 'Sofia Sans'), sans-serif;
    font-size: 15px;
    color: var(--ink, #171B20);
    appearance: none;
    -webkit-appearance: none;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.login-wrap .inputF:focus,
.login-split .inputF:focus,
.min-cont .inputF:focus,
.login-split select:focus,
.login-split textarea:focus {
    outline: none;
    border-color: var(--blue, #2C74B2);
    background: var(--surface, #fff);
    box-shadow: 0 0 0 4px rgba(44, 116, 178, .13);
}
.login-split .inputF[readonly],
.login-split .inputF:read-only {
    background: #EEF0F2;
    color: var(--muted, #5F6670);
    cursor: not-allowed;
}
.login-split textarea.inputF { height: auto; min-height: 110px; padding: 12px 15px; }
.login-split select.sMenu {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235F6670' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    padding-right: 40px;
}

/* register grid: 2 stolpca; naslov + span + submit čez celo širino */
.register-data {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 18px;
    margin: 0 !important;
}
.register-data > div:first-child,
.register-data > span {
    grid-column: 1 / -1;
    margin: 0;
}
.register-data > span { color: var(--muted, #5F6670); font-size: 14px; line-height: 1.5; }
.register-data h3 { margin: 0 !important; }
.register-data .hlf { grid-template-columns: 1fr 1fr 1fr; }
.register-data > span:last-child { margin-top: 6px; }

/* ---------- GUMBI ---------- */
.formBtn,
input[type="submit"].formBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 240px;
    height: 54px;
    padding: 0 30px;
    border: 0;
    border-radius: 13px;
    background: var(--accent, #EC5E17);
    color: #fff;
    font-family: var(--display, 'Manrope'), sans-serif;
    font-weight: 700;
    font-size: 15px;
    text-align: center;
    cursor: pointer;
    -webkit-appearance: none;
    box-shadow: 0 12px 28px -14px rgba(236, 94, 23, .6);
    transition: background .2s ease, transform .12s ease, box-shadow .2s ease;
}
.formBtn:hover {
    background: var(--accent-deep, #D54E0C);
    transform: translateY(-1px);
    box-shadow: 0 16px 32px -14px rgba(236, 94, 23, .65);
}
.a-fromBtn,
.back-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto !important;
    min-width: 200px;
    height: 50px;
    padding: 0 26px;
    border: 0;
    border-radius: 12px;
    background: var(--blue, #2C74B2);
    color: #fff !important;
    font-family: var(--display, 'Manrope'), sans-serif;
    font-weight: 700;
    font-size: 14.5px;
    text-decoration: none !important;
    cursor: pointer;
    transition: background .2s ease, transform .12s ease;
}
.a-fromBtn:hover,
.back-btn:hover { background: var(--blue-deep, #1F5A8C); color: #fff !important; transform: translateY(-1px); }
.back-btn { margin-top: 22px; }

/* ---------- SEZNAM NAROČIL ---------- */
.orders-split .order-item,
.login-wrap a > .order-item {
    display: grid;
    grid-template-columns: 1fr 1fr auto auto;
    gap: 14px;
    align-items: center;
    padding: 15px 16px;
    margin: 0 0 10px !important;
    border: 1px solid var(--line, #E5E8EC);
    border-radius: 12px;
    background: var(--surface, #fff);
    font-size: 14.5px;
    color: var(--ink, #171B20);
    transition: border-color .16s ease, box-shadow .16s ease, transform .12s ease;
}
.login-wrap a { text-decoration: none; display: block; }
.login-wrap a:hover .order-item {
    border-color: var(--blue, #2C74B2);
    box-shadow: 0 10px 24px -16px rgba(20, 28, 40, .4);
    transform: translateY(-1px);
}
.order-item > div:nth-child(1) { color: var(--muted, #5F6670); }
.order-item > div:nth-child(2) { font-weight: 700; }
.order-item .last-in { text-align: right; }

/* statusni "pill" – nadomešča stare barvne <font> */
.ostat {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    border-radius: 999px;
    font-family: var(--display, 'Manrope'), sans-serif;
    font-weight: 700;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
}
.ostat-processing { background: #FEF1E6; color: #C4560F; }   /* v obdelavi / na čakanju */
.ostat-done       { background: #E7F5EC; color: #1E7A3D; }   /* zaključeno */
.ostat-canceled   { background: #FDECEC; color: #C42A2A; }   /* preklicano */

/* ---------- PODROBNOSTI NAROČILA ---------- */
.orders-split span:not(.ostat) {
    display: inline-block !important;
    width: 160px;
    color: var(--muted, #5F6670);
    font-size: 14px;
}
.orders-split strong { color: var(--ink, #171B20); }
.orders-split > div:not(.order-item):not(.my-order-items) { margin-bottom: 2px; }
.min-cont span { display: inline-block !important; width: 160px !important; color: var(--muted, #5F6670); font-weight: 400; }

.my-order-items {
    margin-top: 24px;
    padding: 4px 0 0;
    border-top: 1px solid var(--line, #E5E8EC);
    background: none;
}
.order-item-article {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 14px;
    align-items: start;
    padding: 12px 2px;
    border-bottom: 1px solid var(--line, #E5E8EC);
    margin: 0 !important;
    font-size: 14px;
}
.order-item-article:last-child { border-bottom: 0; }
.order-item-article .a1 { color: var(--muted, #5F6670); flex: none; }
.order-item-article .a2 { color: var(--ink, #171B20); flex: none; }
.order-item-article .a1:last-child { color: var(--ink, #171B20); font-weight: 700; text-align: right; }

/* ---------- OBVESTILA ---------- */
.info-err {
    margin: 40px auto;
    max-width: 480px;
    padding: 20px 24px;
    text-align: center;
    font-size: 15px;
    color: var(--ink-soft, #3C424A);
    background: var(--blue-tint, #E9F2F9);
    border: 1px solid #D3E4F2;
    border-radius: 14px;
}
.finish { font-family: var(--display, 'Manrope'), sans-serif; font-weight: 800; font-size: 1.6em; margin: 1em 0; color: var(--ink, #171B20); }
.norm-fin { font-size: 1.4em; margin-top: 0; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    .user_cards { grid-template-columns: repeat(2, 1fr); max-width: 560px; }
}
@media (max-width: 760px) {
    .register-data { grid-template-columns: 1fr; }
    .formBtn, input[type="submit"].formBtn { width: 100%; min-width: 0; }
}
@media (max-width: 700px) {
    /* vsebinske kartice čez cel zaslon (100vw) */
    .login-wrap { padding: 0; margin-bottom: 40px; }
    .login-split, .orders-split, .min-cont, .login-split.register, .margin-content {
        max-width: 100%;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        padding: 24px 18px;
    }
    /* manjše kartice dashboarda */
    .user_cards { gap: 10px; padding: 0 14px; margin: 12px auto 20px; }
    .user_cards .card { padding: 12px 13px; gap: 11px; border-radius: 12px; }
    .user_cards .cimg { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px; }
    .user_cards .cimg img { width: 18px; height: 18px; }
    .user_cards .card h5 { font-size: 13px; }
}
@media (max-width: 560px) {
    .order-item, .orders-split .order-item, .login-wrap a > .order-item { grid-template-columns: 1fr auto; gap: 6px 12px; }
    .order-item > div:nth-child(2) { order: 2; }
    .order-item .last-in { order: 4; text-align: right; }
    .order-item-article { grid-template-columns: 70px 1fr auto; }
    .orders-split span, .min-cont span { width: 130px !important; }
}

/* ============================================================
   PRIJAVA / REGISTRACIJA (deljeno s checkoutom) – slog obravnava
   redesign.css (.lpNav / .lpInput / .flex-form). Tu le drobne uskladitve.
   ============================================================ */
.lp-containter { margin: 0 auto; width: 100%; max-width: 520px; padding: 8px 20px 60px; box-sizing: border-box; }
.c_out .lp-containter { margin: initial; max-width: 500px; padding: 0; }
.lp-reg span { display: block; font-size: 14px; line-height: 1.5; margin-bottom: 10px; color: var(--ink-soft, #3C424A); }
.lp-reg span h4 { color: var(--ink, #171B20); font-family: var(--display, 'Manrope'), sans-serif; font-size: 16px; margin: 0 0 4px; }
.rnp { flex-basis: 100%; margin-bottom: 10px; font-weight: 500; color: inherit; }
.company_fields_shown { display: flex; }
