

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: monospace;
    font-size: 13px;
    border-radius: 2px;
}

/* Let the page be a 3-row grid */
html, body {
    height: 100%;
}

body {
    display: grid;
    grid-template-rows: auto 1fr auto; /* nav, main, footer */
    min-height: 100vh;
    overflow: hidden; /* prevent body scrolling; main scrolls instead */
    background: #fff;
}

/* Nav: height comes from its child/content */
nav {
    display: flex;
    align-items: center;
    width: 100%;
    border-bottom: 1px solid #ccc;
    background-color: white;
    z-index: 1000;
    overflow: visible; /* allow dropdowns if needed */
}

/* Main fills the available space. Use padding instead of absolute left/right. */
main {
    min-height: 0;
    min-width: 0;
    overflow: hidden; /* main itself does NOT scroll */
    display: flex;
    flex-direction: column;
}

.list-page {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.list-page__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.list-page__header h1 {
    font-size: 22px;
    margin-bottom: 4px;
}

.list-page__header p {
    color: #555;
    max-width: 720px;
}

.list-page__summary {
    white-space: nowrap;
    border: 1px solid #d7d7d7;
    background: #f6f6f6;
    padding: 10px 12px;
}

.list-page__empty {
    border: 1px dashed #c8c8c8;
    background: #fafafa;
    padding: 18px;
    color: #666;
}

.list-table-wrap {
    flex: 1;
    min-height: 0;
    overflow: auto;
    border: 1px solid #d7d7d7;
    background: #fff;
}

.list-table {
    width: 100%;
    border-collapse: collapse;
}

.list-table th,
.list-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e6e6e6;
    text-align: left;
    vertical-align: top;
}

.list-table thead th {
    position: sticky;
    top: 0;
    background: #f3f3f3;
    z-index: 1;
}

.list-table tbody tr:hover {
    background: #fafafa;
}

.list-table__number {
    text-align: right !important;
    white-space: nowrap;
}

.list-table__action {
    white-space: nowrap;
}

    /* Footer: height comes from its child/content */
    footer {
    color: #ccc;
    font-size: 12px;
    background-color: #444;
    border-top: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    overflow: visible;
}


