body {
    margin: 0;
    padding: 24px;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;

    color: #111;
    background: white;
}

.container {
    width: 100%;
}


/* Headings */

h1 {
    font-size: 24px;
    margin-bottom: 4px;
}

h2 {
    font-size: 18px;
    margin-top: 20px;
}


/* Sections */

header {
    padding-bottom: 12px;
    margin-bottom: 20px;

    border-bottom: 1px solid #aaa;
}

.dataset-info {
    padding-bottom: 12px;
    margin-bottom: 15px;

    border-bottom: 1px solid #ddd;
}


/* Controls */

button,
input,
select {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
}

button {
    padding: 3px 8px;
}

input,
select {
    padding: 3px 5px;
}


/* Search area */

.controls {
    margin: 15px 0 20px;
}

.search-controls,
.control-buttons {
    display: inline-flex;
    gap: 5px;
}

.search-controls {
    margin-right: 10px;
}


/* Dataset statistics */

.metrics {
    display: flex;
    gap: 30px;

    margin: 15px 0;
}

.metric strong {
    margin-right: 4px;
}

.metric span {
    color: #666;
}


/* Table */

.table-container {
    width: 100%;

    overflow-x: auto;

    border-top: 1px solid #999;
    border-bottom: 1px solid #999;
}

table {
    width: 100%;

    border-collapse: collapse;

    font-size: 13px;
}

th,
td {
    padding: 5px 8px;

    text-align: left;
    vertical-align: top;

    border-bottom: 1px solid #ddd;
}

th {
    background: #f2f2f2;

    border-bottom: 1px solid #999;

    white-space: nowrap;
}

tbody tr:hover {
    background: #f7f7f7;
}


/* Sort headings */

th button {
    border: 0;
    background: transparent;

    padding: 0;

    font-weight: bold;
}

th button:hover {
    text-decoration: underline;
}


/* Edit / Delete */

.actions {
    white-space: nowrap;
}

.action-button {
    padding: 2px 6px;
    margin-right: 3px;
}


/* Pagination */

.pagination {
    margin-top: 12px;

    display: flex;

    gap: 10px;

    align-items: center;
}


/* Sidebar */

.layout {
    display: grid;

    grid-template-columns: minmax(0, 1fr) 280px;

    gap: 25px;
}

aside {
    padding-left: 20px;

    border-left: 1px solid #ccc;
}


/* Stats */

.stat {
    padding: 8px 0;

    border-bottom: 1px solid #ddd;
}


/* Dialog */

dialog {
    width: 600px;
    max-width: 90%;

    padding: 20px;

    border: 1px solid #777;

    background: white;
}

#recordFields {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;
}

#recordFields input {
    width: 100%;
}

.dialog-actions {
    margin-top: 15px;
    padding-top: 10px;

    border-top: 1px solid #ccc;

    text-align: right;
}
