/**
 * register.css - Gedeelde opmaak voor alle Artland-registers
 * (Vermessungsregister, Hof-Masterkarte, Volkszählung, etc.)
 *
 * Plaats in: <plugin>/assets/register.css
 */

/* ========================================
   1. GLOBALE RESET & TYPOGRAFIE
======================================== */

.register-page,
.register-container,
.register-page h1,
.register-page h2,
.register-page h3,
.register-page h4,
.register-container h1,
.register-container h2,
.register-container h3,
.register-container h4,
.register-sidebar h3,
.register-sidebar h4 {
    font-family: Arial, Helvetica, sans-serif !important;
}

.register-page,
.register-container {
    line-height: 1.25;
    color: #333;
}

/* ========================================
   2. PAGINA-OMLIJSTING & WITTE CONTAINER
======================================== */

.register-page {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 1332px;
    margin: 80px auto;
    padding: 130px 120px 80px;
    background: #fff;
}

@media (max-width: 1024px) {
    .register-page { 
        margin: 30px auto; 
        padding: 50px 40px 40px; 
    }
}

@media (max-width: 782px) {
    .register-page { 
        padding: 30px 20px; 
    }
    .register-layout { 
        display: block; 
        margin-left: 0; 
        margin-right: 0; 
        border-spacing: 0; 
    }
    .register-content,
    .register-sidebar,
    .register-layout--wide .register-content,
    .register-layout--wide .register-sidebar { 
        display: block; 
        width: auto; 
    }
    .register-sidebar { 
        margin-top: 25px; 
    }
}

/* ========================================
   3. TITELS & STRUCTUUR
======================================== */

.register-title {
    font-size: 1.5em;
    color: #666;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.register-container {
    display: block;
    margin-top: 20px;
}

.register-layout {
    display: table;
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 25px 0;
    margin-left: -25px;
    margin-right: -25px;
}

.register-content {
    display: table-cell;
    width: 65%;
    vertical-align: top;
}

.register-sidebar {
    display: table-cell;
    width: 35%;
    vertical-align: top;
    background: #fafafa;
    padding: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

/* Brede variant (72% / 28%) */
.register-layout--wide .register-content { width: 72%; }
.register-layout--wide .register-sidebar { width: 28%; }

.register-section {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #cccccc;
}

/* Koppen in hoofdinhoud */
.register-section h1 {
    font-size: 16pt !important;
    color: #040404 !important;
    margin: 0 0 15px 0 !important;
    font-weight: bold !important;
}

.register-section h2 {
    font-size: 14pt !important;
    color: #D9151D !important;
    margin: 0 0 15px 0 !important;
    font-weight: bold !important;
}

.register-section p,
.register-sidebar p {
    margin: 0 0 10px 0;
    font-size: 10.5pt !important;
}

/* Koppen in de sidebar (Kerndaten, Zitieren, etc.) */
.register-sidebar h3 {
    font-size: 12pt !important;
    color: #040404 !important;
    font-weight: bold !important;
    margin: 0 0 10px 0 !important;
    text-transform: none !important;
}

.register-sidebar h4 {
    font-size: 11pt !important;
    color: #040404 !important;
    font-weight: bold !important;
    margin: 0 0 10px 0 !important;
    text-transform: none !important;
}

.register-divider {
    border: 0;
    height: 1px;
    background: #cccccc;
    margin: 20px 0;
}

/* ========================================
   4. KNOPPEN
======================================== */

.register-button {
    display: block;
    background: #003153;
    color: #fff !important;
    padding: 11px 15px;
    text-decoration: none !important;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 12px;
    font-size: 10pt;
    border: none;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    transition: background 0.2s ease;
}

.register-button:hover {
    background: #FC2600;
}

/* ========================================
   5. CITATIE & PERMALINK
======================================== */

.register-citation,
.register-permalink {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e5e5e5;
}

.citation-text {
    font-size: 10.5pt;
    line-height: 1.4;
    color: #333;
    background: #fff;
    border: 1px solid #e5e5e5;
    padding: 10px;
    border-radius: 4px;
    word-break: break-word;
}

.register-citation .register-button,
.register-permalink .register-button {
    margin-top: 10px;
}

.copy-feedback {
    margin-top: 8px;
    font-size: 10pt;
    color: #2e7d32;
}

.copy-feedback:empty {
    display: none;
}

.copy-feedback.error {
    color: #b91c1c;
}

/* ========================================
   6. TABELLEN (STANDAARD)
======================================== */

.table-filter-box {
    margin-bottom: 12px;
    width: 100%;
    padding: 8px 12px;
    font-size: 10pt;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.register-table,
#percelen-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 5px;
    font-size: 9.5pt;
}

.register-table th,
.register-table td,
#percelen-table th,
#percelen-table td {
    border: 1px solid #ddd;
    padding: 6px 8px;
    text-align: left;
}

.register-table th,
#percelen-table th {
    background-color: #073153;
    color: #fff;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.register-table th:hover,
#percelen-table th:hover {
    background-color: #e30613;
}

.register-table th::after,
#percelen-table th::after {
    content: " ↕";
    font-size: 0.8em;
    opacity: 0.7;
    float: right;
}

.register-table td.num,
.register-table th.num,
#percelen-table td.num,
#percelen-table th.num {
    text-align: right;
}

.register-table tr.highlight,
#percelen-table tr.highlight {
    background-color: #fff8f8;
    font-weight: bold;
}

.register-table tr.total-row,
#percelen-table tr.total-row {
    background-color: #f9f9f9;
    font-weight: bold;
    border-top: 2px solid #333;
}

.register-table a,
#percelen-table a {
    color: #003153;
    text-decoration: none;
    font-weight: bold;
}

.register-table a:hover,
#percelen-table a:hover {
    color: #FC2600;
    text-decoration: underline;
}

/* ========================================
   7. TABELLEN (COMPACT / ROTATE)
======================================== */

.register-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.register-table--compact {
    font-size: 8.5pt;
}

.register-table--compact th,
.register-table--compact td {
    padding: 4px 5px;
}

.register-table--compact th {
    vertical-align: bottom;
}

.register-table--compact th::after {
    content: none;
}

.register-table--compact tr:not(.highlight):nth-child(even) {
    background-color: #fcfcfc;
}

.register-table th.rotate {
    height: 130px;
    white-space: nowrap;
    padding: 5px 2px;
}

.register-table th.rotate > div {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    margin: 0 auto;
    font-size: 8pt;
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* ========================================
   8. ARTLAND MATCHES (SIDEBAR)
======================================== */

.artlandmatches {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #e5e5e5;
}

.artlandmatches h3 {
    font-size: 11pt !important;
    margin: 0 0 15px 0 !important;
    color: #040404 !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
}

.artland-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.artland-item {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 10.5pt;
    color: #333;
}

.artland-item a {
    color: #003153;
    text-decoration: none;
    font-weight: bold;
}

.artland-item a:hover {
    color: #FC2600;
    text-decoration: underline;
}

.artland-item strong {
    color: #D9151D;
    display: inline-block;
    width: 45px;
}

.btn-toon-meer {
    display: block;
    background: #003153;
    color: #fff !important;
    padding: 8px 15px;
    text-decoration: none !important;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    margin-top: 15px;
    font-size: 10pt;
    border: none;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s ease;
}

.btn-toon-meer:hover {
    background: #FC2600;
}

.hidden-match {
    display: none;
}