/* styles.css */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 1.5rem;
    line-height: 1.6;
    background: #fafafa;
    color: #333;
}

h1,h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.9rem;
    color: #222;
}

/* Table wrapper for mobile */
.table-responsive {
    overflow-x: auto;
    margin-bottom: 3rem;
    border-radius: .4rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

/* DataTables styling */
table.display {
    width: 100% !important;
    border-collapse: collapse;
    font-size: .95rem;
}
table.display th,
table.display td {
    border: 1px solid #ddd;
    padding: .6rem .8rem;
    text-align: left;
}
table.display th {
    background: #f2f2f2;
    font-weight: 600;
    position: sticky;
    top: 0;
}
table.display tbody tr:hover {
    background-color: #f9f9f9;
}

/* Links */
a {
    color: #0066cc;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* Messages */
.error { color: #b00; font-weight: 500; }
.info { color: #0066cc; font-style: italic; }

/* Button */
button {
    display: inline-block;
    padding: .6rem 1.2rem;
    background: #0066cc;
    color: #fff;
    border: none;
    border-radius: .3rem;
    cursor: pointer;
    font-size: .95rem;
    transition: background .2s;
}
button:hover {
    background: #0055aa;
}

/* Elaboration text */
.elaboration {
    background: #fff;
    padding: 1.2rem;
    border: 1px solid #eee;
    border-radius: .4rem;
    margin: 1rem 0;
    line-height: 1.7;
    white-space: pre-line;
}


/* Optional: Make serial column narrower and centered */
td.serial, th:first-child {
    width: 50px;
    text-align: center;
    font-weight: 600;
}



/* Buttons */
.dt-buttons { text-align: right; margin: 10px 0; }
.dt-button {
    display: inline-block; margin: 0 4px; padding: 8px 14px;
    background: #0066cc; color: white; border: none; border-radius: 4px;
    font-size: 0.9rem; cursor: pointer; text-decoration: none;
}
.dt-button:hover { background: #0055aa; }

/* Search */
.dataTables_filter label { font-weight: normal; }
.dataTables_filter input { margin-left: 8px; padding: 6px 10px; border-radius: 4px; border: 1px solid #ccc; }

/* Print */
@media print {
    .theme-toggle, .dt-buttons, .dataTables_filter, .dataTables_length,
    .dataTables_info, .dataTables_paginate { display: none !important; }
    .chart-container { display: none !important; }
    body { background: white; color: black; }
    table { font-size: 15pt; }
}

