/* Fakturační portál - doplňuje style.css převzatý z jenikphotos.cz */
.portal-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.portal-main {
    flex: 1 0 auto;
    padding-top: 110px; /* fixed navbar */
}

.portal-navbar .navbar-brand {
    font-size: 1.6rem;
}

.portal-brand-tag {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-left: 0.6rem;
    vertical-align: middle;
}

.portal-section {
    padding: 3rem 0 4.5rem;
}

.portal-intro {
    margin-top: 2.5rem !important;
}

.portal-eyebrow {
    font-family: var(--font-custom);
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 0.75rem;
}

.portal-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 2rem;
    box-shadow: var(--shadow-secondary);
}

.portal-lookup {
    max-width: 620px;
}

.portal-label,
.portal-facts dt,
.portal-pay dt {
    display: block;
    font-family: var(--font-custom);
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.portal-lookup-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.portal-lookup-row .portal-input {
    flex: 1 1 240px;
}

.portal-input,
.portal-input:focus {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--text-primary);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
}

.portal-input:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 0.2rem rgba(184, 182, 177, 0.2);
}

.portal-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.portal-btn {
    background: var(--gradient-accent);
    color: var(--primary-dark) !important;
    border: none;
    border-radius: var(--border-radius);
    padding: 0.75rem 1.4rem;
    font-weight: 600;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.portal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(184, 182, 177, 0.25);
}

.portal-muted {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.portal-alert {
    border-radius: var(--border-radius);
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.portal-alert.is-ok {
    background: rgba(81, 207, 102, 0.1);
    border: 1px solid rgba(81, 207, 102, 0.3);
    color: #8ce99a;
}

.portal-alert.is-error {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff8787;
}

.portal-hp {
    position: absolute;
    left: -9999px;
}

/* Invoice detail */
.portal-status {
    display: inline-block;
    margin-top: 1.8rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.portal-status.is-paid { background: rgba(81, 207, 102, 0.12); border-color: rgba(81, 207, 102, 0.35); color: #8ce99a; }
.portal-status.is-unpaid { background: rgba(245, 245, 245, 0.08); border-color: rgba(245, 245, 245, 0.25); color: var(--accent-light); }
.portal-status.is-overdue { background: rgba(255, 169, 77, 0.12); border-color: rgba(255, 169, 77, 0.4); color: #ffc078; }
.portal-status.is-cancelled { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.15); color: var(--text-secondary); }

.portal-total {
    display: flex;
    flex-direction: column;
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-total-amount {
    font-family: var(--font-custom);
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 700;
}

.portal-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.portal-facts dd,
.portal-pay dd {
    margin: 0;
    font-weight: 600;
}

.portal-subheading {
    font-family: var(--font-custom);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.portal-items {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
}

.portal-items li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.portal-items small {
    color: var(--text-secondary);
}

.portal-item-price {
    white-space: nowrap;
    font-weight: 600;
}

.portal-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.portal-pay {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.portal-copy {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 0 0.3rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.portal-copy:hover,
.portal-copy.is-copied {
    color: var(--accent-light);
}

.portal-qr {
    text-align: center;
}

.portal-qr #qrPayment {
    display: inline-block;
    background: #fff;
    padding: 0; /* the white margin is part of the SVG itself */
    border-radius: 10px;
    overflow: hidden;
}

.portal-qr #qrPayment svg {
    display: block;
    width: 240px;
    height: 240px;
}

.portal-paid-icon {
    text-align: center;
    font-size: 3.5rem;
    color: #8ce99a;
    margin: 0.5rem 0 1rem;
}

.portal-footer-contact {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

@media (max-width: 575.98px) {
    .portal-main { padding-top: 90px; }
    .portal-card { padding: 1.4rem; }
    .portal-navbar .navbar-brand { font-size: 1.3rem; }
    .portal-lookup-row .portal-btn { width: 100%; }
    .portal-invoice-title { font-size: 1.9rem; }
}
