/* Basic styling aligned with your app theme */
.bp-hs-portal {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bp-hs-header h2 {
    margin: 0 0 0.2rem;
}

.bp-hs-header p {
    margin: 0;
    color: #64748b;
}

.bp-hs-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.bp-hs-tab {
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.6);
    background: rgba(255,255,255,0.7);
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
    cursor: pointer;
}

.bp-hs-tab.active {
    background: linear-gradient(135deg,#3b82f6,#22c55e);
    color: #f9fafb;
    border-color: transparent;
}

.bp-hs-tab-content {
    display: none;
}

.bp-hs-tab-content.active {
    display: block;
}

.bp-card {
    background: rgba(255,255,255,0.9);
    border-radius: 1.2rem;
    padding: 1.2rem 1.35rem;
    border: 1px solid rgba(148,163,184,0.35);
}

.bp-hs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
    gap: 0.8rem;
}

.bp-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.bp-field input,
.bp-field select,
.bp-field textarea {
    width: 100%;
    border-radius: 0.7rem;
    border: 1px solid rgba(148,163,184,0.7);
    padding: 0.45rem 0.6rem;
    font-size: 0.9rem;
}

.bp-hs-help {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.bp-hs-help-small {
    font-size: 0.75rem;
    color: #94a3b8;
}

.bp-hs-riddor {
    margin-top: 0.6rem;
    padding: 0.7rem 0.8rem;
    border-radius: 0.9rem;
    background: rgba(248,250,252,0.9);
    border: 1px dashed rgba(148,163,184,0.7);
}

.bp-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.3rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg,#3b82f6,#6366f1);
    color: #f9fafb;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}

.bp-form-message {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.bp-form-message.success {
    color: #16a34a;
}

.bp-form-message.error {
    color: #dc2626;
}

.bp-hs-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.bp-hs-item {
    border-radius: 0.9rem;
    padding: 0.75rem 0.85rem;
    background: rgba(248,250,252,0.9);
    border: 1px solid rgba(226,232,240,0.9);
}

.bp-hs-item-top {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.bp-hs-pill {
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    background: rgba(59,130,246,0.12);
    color: #1d4ed8;
    font-weight: 600;
    font-size: 0.75rem;
}

.bp-hs-date {
    color: #94a3b8;
    font-size: 0.8rem;
}

.bp-hs-item-body h4 {
    margin: 0 0 0.2rem;
    font-size: 0.95rem;
}

.bp-hs-item-body p {
    margin: 0.1rem 0;
    font-size: 0.85rem;
    color: #64748b;
}

.bp-hs-meta {
    font-size: 0.75rem;
}

.bp-hs-table-wrap {
    overflow-x: auto;
}

.bp-hs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.bp-hs-table th,
.bp-hs-table td {
    padding: 0.45rem 0.4rem;
    border-bottom: 1px solid rgba(226,232,240,0.9);
    text-align: left;
}

@media (max-width: 768px) {
    .bp-card {
        padding: 1rem;
    }
    .bp-hs-header h2 {
        font-size: 1.2rem;
    }
    .bp-hs-header p {
        font-size: 0.9rem;
    }
    .bp-hs-item-body h4 {
        font-size: 0.9rem;
    }
    .bp-hs-item-body p,
    .bp-hs-help {
        font-size: 0.8rem;
    }
}

/* Printable PAT certificate */
.bp-hs-cert-wrapper {
    max-width: 900px;
    margin: 1.5rem auto;
    padding: 0 1rem 2rem;
}

.bp-hs-cert-toolbar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.bp-hs-cert-print,
.bp-hs-cert-back {
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.6);
    background: white;
    padding: 0.3rem 0.8rem;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.85rem;
}

.bp-hs-cert {
    background: white;
    border-radius: 1.4rem;
    border: 1px solid rgba(148,163,184,0.7);
    padding: 1.4rem 1.6rem;
    box-shadow: 0 14px 40px rgba(15,23,42,0.16);
}

.bp-hs-cert-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.bp-hs-cert-logo {
    max-height: 60px;
    max-width: 120px;
    object-fit: contain;
}

.bp-hs-cert-site {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
}

.bp-hs-cert-ref-block {
    text-align: right;
    font-size: 0.85rem;
}

.bp-hs-cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.bp-hs-cert h2 {
    margin-top: 0;
    font-size: 1rem;
}

.bp-hs-cert-foot {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 1rem;
}

/* Print styling */
@media print {
    .bp-hs-cert-toolbar,
    .bp-hs-portal,
    .bp-header,
    .bp-footer,
    .bp-mobile-nav {
        display: none !important;
    }
    body {
        background: #ffffff;
    }
    .bp-hs-cert-wrapper {
        margin: 0;
        padding: 0;
    }
    .bp-hs-cert {
        box-shadow: none;
        border: none;
    }
}

/* RIDDOR helper highlight */
.bp-hs-riddor-helper {
    margin-top: 0.4rem;
}

.bp-hs-riddor-highlight {
    color: #b45309;
    font-weight: 600;
}

.bp-hs-attachment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px,1fr));
    gap: 1rem;
}
.bp-hs-attachment img {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(148,163,184,0.5);
}


