.badge {
    display: inline-block;
    padding: 0.2em 0.7em;
    /* border-radius: 0.7em; */
    /* background: #222; */
    color: #222;
    /* font-size: 2.4rem; */
}

.menu-wrap {
    display: grid;
    gap: 0.75rem;
    margin: 1rem 0;
}

.flex {
    display: flex;
    align-items: center;
}
nav.mainmenu {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.25rem;
}

nav.mainmenu a {
    background: transparent;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 86px;
    gap: 0.3rem;
    padding: 0.65rem 0.8rem;
}
nav a {
    display: inline-block;
    /* margin-right: 0.5rem; */
    padding: 0.3rem 0.5rem;
    /* border-radius: 6px; */
    text-decoration: none;
    color: #0f172a;
    background: rgba(255,255,255,0.2);
}

nav a.active {
    background: #0f766e;
    color: #fff;
}

/* Main menu active style: bold text without background */
nav.mainmenu a.active {
    font-weight: 700;
    background: transparent;
    color: #0f172a;
}

nav.mainmenu .menu-icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    color: currentColor;
}

nav.mainmenu .menu-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

nav.mainmenu .menu-label {
    display: inline-block;
    line-height: 1.2;
    text-align: center;
}

.menu-title {
    margin: 0 0 0.35rem;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.notice {
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    background: #fff1f2;
    color: #881337;
    margin-bottom: 0.8rem;
}

.content-wrap {
    margin: 1rem;
}

.text-sitetitle { font-size: 1.8rem; }
.menu-title { display: none; }
.radius-8 { border-radius: 8px; }
.unmargin { margin: unset; }
.unpadding { padding: unset; }
.w-100p { width: stretch; }
.w-180 { min-width: 180px; }
.h-50 { height: 50px; line-height: 50px; }
.min-h-300 { min-height: 300px; }
.ta-c { text-align: center; }
.border-1 { border: 1px solid #ddd; }
.bd-cdd-a10 { border-color: rgba(0,0,0,0.1); }
.bd-t-1 { border-top: 1px solid #ddd; }
.bd-l-1 { border-left-width: 1px; }
.bd-r-1 { border-right-width: 1px; }
.grid { display: grid; }
.grid > a { border-bottom: 1px solid rgba(0,0,0,0.1); }
.fl-dt-col { flex-direction: column; }
.fl-dt-row { flex-direction: row; }
.bg-c00-a10 { background-color: rgba(0,0,0,0.1); }


.grid-table-scroll {
    overflow: auto;
    max-width: 100%;
    max-height: 500px;
    border: 1px solid #d7dde5;
    background: #fff;
}

.grid-table {
    min-width: 500px;
}
.resizable {
    position: relative;
}

.col-resizer {
    position: absolute;
    top: 0;
    right: -4px;
    width: 8px;
    height: 100%;
    cursor: col-resize;
}
.group-table-header,
.group-table {
    display: grid;
    grid-template-columns: var(--grid-cols, 50px 160px 160px);
}

.group-table-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #eef2f7;
    border-bottom: 1px solid #cfd8e3;
    font-weight: 700;
}

.group-table-header > div,
.group-table > div {
    padding: 12px 14px;
    border-right: 1px solid #e5eaf0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.group-table-header > div:last-child,
.group-table > div:last-child {
    border-right: 0;
}

.grid-table > .group-table {
    border-bottom: 1px dashed rgba(15, 23, 42, 0.18);
}

.grid-table > .group-table:nth-child(5n + 6) {
    border-bottom: 1px solid rgba(15, 23, 42, 0.28);
}

.grid-table > .group-table:last-child {
    border-bottom: 0;
}

/* html { background-color: darkgray; } */
body { font-family: sans-serif; margin: 1rem; color: #111827; }
header { background-color: transparent; }

table { background-color: rgba(255,255,255,0.5); }

header .header {
    display: inline-flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}
/* header + * { margin-top: 10px; } */

header .box {
    box-sizing: border-box;
    /* height: 100px; */
    align-items: flex-start;
    background-color: rgba(0,0,0,0.1);
}

header .header > * {
    /* font-size: 0.8em; */
}

div.main {
    display: flex;
    align-items: stretch;
}
div.main p { margin: unset; padding: unset; }

aside.left {
    width: 180px;
}
main.flex {
    align-items: start;
}

footer .footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

footer .copyright {
    margin-top: 0.75rem;
    color: #64748b;
    font-size: 0.85rem;
}
