/* GPSR Frontend Styles */

/* === Safety Tab === */
.gpsr-safety-tab {
    padding: 10px 0;
}

.gpsr-safety-intro {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.gpsr-safety-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.gpsr-safety-intro strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
    color: #1d2327;
}

.gpsr-safety-intro p {
    margin: 0;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

/* Entity cards grid */
.gpsr-entities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.gpsr-entity-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.gpsr-entity-header {
    background: #2271b1;
    padding: 10px 16px;
}

.gpsr-entity-type-label {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.gpsr-entity-body {
    padding: 14px 16px;
}

.gpsr-entity-name {
    font-size: 15px;
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 10px;
}

.gpsr-entity-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
    line-height: 1.4;
}

.gpsr-entity-row:last-child {
    margin-bottom: 0;
}

.gpsr-entity-icon {
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 1px;
}

.gpsr-entity-row a {
    color: #2271b1;
    text-decoration: none;
    word-break: break-all;
}

.gpsr-entity-row a:hover {
    text-decoration: underline;
}

/* === Documents Tab === */
.gpsr-documents-tab {
    padding: 10px 0;
}

.gpsr-documents-intro {
    margin-bottom: 20px;
}

.gpsr-documents-intro strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
    color: #1d2327;
}

.gpsr-documents-intro p {
    margin: 0;
    font-size: 13px;
    color: #555;
}

.gpsr-documents-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gpsr-document-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: border-color .2s, box-shadow .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.gpsr-document-item:hover {
    border-color: #2271b1;
    box-shadow: 0 2px 8px rgba(34,113,177,.12);
    text-decoration: none;
    color: inherit;
}

.gpsr-doc-icon {
    color: #c62828;
    flex-shrink: 0;
    line-height: 0;
}

.gpsr-doc-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gpsr-doc-label {
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
}

.gpsr-doc-meta {
    font-size: 12px;
    color: #888;
}

.gpsr-doc-arrow {
    color: #aaa;
    flex-shrink: 0;
    line-height: 0;
    transition: color .2s;
}

.gpsr-document-item:hover .gpsr-doc-arrow {
    color: #2271b1;
}

/* Responsive */
@media (max-width: 600px) {
    .gpsr-entities-grid {
        grid-template-columns: 1fr;
    }

    .gpsr-safety-intro {
        flex-direction: column;
        gap: 8px;
    }
}

/* === Sekcja headings (shortcody + zakładki) === */
.gpsr-section-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1d2327 !important;
    margin: 0 0 6px 0 !important;
    padding: 0 !important;
    border: none !important;
}

.gpsr-heading-icon {
    font-size: 20px;
    line-height: 1;
}

.gpsr-section-desc {
    font-size: 13px;
    color: #666;
    margin: 0 0 20px 0 !important;
    line-height: 1.5;
}

/* Margines gdy dokumenty są pod bezpieczeństwem w [gpsr_all] */
.gpsr-docs-with-margin {
    margin-top: 32px;
}

.gpsr-all-wrap {
    padding: 4px 0;
}
