/* ============================================================
   General — Unified Design System
   Combined-Admin · Lisle Design Ltd
   ============================================================ */

body {
    background-color: var(--page-bg);
    color: var(--text-primary);
    text-align: center;
    margin: 0;
}

.clearfix:after {
    content: "";
    display: table;
    clear: both;
}

.clickable {
    cursor: pointer;
}

.hidden {
    display: none;
}

.blue {
    background: var(--surface-hover);
}

.green {
    background: #eefff7;
}

.white {
    background: var(--surface);
}

.red-border {
    border: 1px solid red;
}

.sticky {
    position: fixed;
    top: 0;
    margin-top: 0 !important;
}

/* ---- Tabs ---- */

.tab {
    display: none;
    clear: both;
    background-color: var(--surface);
    position: relative;
}

.tab.active {
    display: block;
}

.tab-link {
    float: left;
    margin: 0 5px;
    display: inline-block;
    background-color: var(--surface-2);
    border: 1px solid var(--tbl-border);
    padding: 0.5em;
}

.tab-link.active {
    background-color: var(--surface);
}

/* ---- Waiting / loading overlay ---- */

.waiting-div {
    position: absolute;
    width: 100%;
    height: 100%;
    text-align: center;
}

.waiting-img {
    display: inline-block;
    vertical-align: middle;
}

.waiting-span {
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

/* ---- Layout helpers ---- */

.content,
#content {
    text-align: left;
    padding: 1rem 1.5rem;
    max-width: 100%;
    box-sizing: border-box;
}

/* Images that are direct children of a content area (e.g. logos above tables) */
.content > img,
#content > img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wrapper {
    max-width: 100%;
    overflow: visible !important;
}
