/* SGIB Print Styles */

body {
    font-family: serif;
    /* Better for print usually, or keep sans-serif */
    font-size: 12pt;
    color: #000;
    background: #fff;
    margin: 0;
    padding: 20px;
}

.sgib-print-container {
    max-width: 800px;
    /* Fixed width appropriate for print (approx A4) */
    margin: 0 auto;
}

/* Header */
.sgib-print-header {
    border-bottom: 2px solid #000;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.sgib-print-header h1 {
    margin: 0;
    font-size: 24pt;
}

.sgib-print-subtitle {
    font-size: 14pt;
    font-style: italic;
    margin-top: 5px;
}

/* Sections */
.sgib-section {
    margin-bottom: 25px;
    page-break-inside: avoid;
    /* Try to keep sections whole */
}

.sgib-section-title {
    font-size: 16pt;
    font-weight: bold;
    border-bottom: 1px solid #ccc;
    margin-bottom: 10px;
}

/* Map - limits */
.sgib-map-wrapper {
    width: 100%;
    height: 300px;
    border: 1px solid #ccc;
    margin-bottom: 15px;
    page-break-inside: avoid;
}

.sgib-map {
    width: 100%;
    height: 100%;
}

.sgib-map-note {
    font-size: 8pt;
    text-align: right;
}

/* Tables */
.sgib-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10pt;
    margin-bottom: 10px;
}

.sgib-table th,
.sgib-table td {
    border: 1px solid #ccc;
    padding: 5px;
    text-align: left;
}

.sgib-table th {
    background-color: #eee;
    font-weight: bold;
}

/* Lists */
.sgib-list,
.sgib-biblio-list {
    margin: 0;
    padding-left: 20px;
}

/* Admin Grid for Print */
.sgib-admin-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.sgib-admin-block {
    flex: 1;
    min-width: 45%;
    border: none;
    padding: 0;
    margin-bottom: 10px;
}

#sgib-specific-info .sgib-admin-block {
    flex: 1 1 100%;
}

/* Empty fields styling */
.sgib-empty-field {
    font-style: italic;
    color: #666;
}

.sgib-admin-block h4 {
    margin: 0 0 5px 0;
    font-size: 12pt;
    text-decoration: underline;
    border: none;
}

/* Owners Manager */
.sgib-owners-managers-container {
    display: flex;
    gap: 20px;
}

.sgib-half-width {
    flex: 1;
}

/* Flat content (no accordions) */
.sgib-content-block {
    margin-bottom: 15px;
}

.sgib-content-block h3 {
    font-size: 12pt;
    font-weight: bold;
    margin: 0 0 5px 0;
    color: #333;
}

/* Hide navigation and buttons if shared HTML (but we use specific HTML) */
.sgib-nav,
.sgib-toolbar {
    display: none;
}

/* Footer UI */
.sgib-footer {
    border-top: 1px solid #000;
    margin-top: 30px;
    padding-top: 10px;
    font-size: 9pt;
    display: flex;
    justify-content: space-between;
}