:root {
    /* Fő arculati színek */
    --color-dark: #006838;
    --color-light: #8dc63f;

    /* Áttetsző árnyalatok (világoszöldből) */
    --color-light-60: rgba(141, 198, 63, 0.6);
    --color-light-30: rgba(141, 198, 63, 0.3);
    --color-light-20: rgba(141, 198, 63, 0.2);
    --color-light-15: rgba(141, 198, 63, 0.15);

    /* Világos háttérszínek */
    --color-bg-gradient: #f4faeb; /* Nagyon halvány zöldes-fehér háttér */
    --color-bg-highlight: #eaf3db; /* Kiemelt halvány zöld (fejlécek, hover) */
    --color-bg-row-odd: #f9fdf3; /* Zebracsíkos táblázat páratlan sora */
}



body {
    margin: 0;
    padding: 0;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 18px;
    cursor: default;
    color: #000;
    user-select: none;
    overflow: hidden;
    container-type: inline-size;
}

/* Checkboxok és Rádiógombok alapszíne */
input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--color-dark); /* Sötétzöld lesz a pipa és a pötty */
    cursor: pointer;
}

/* Űrlap elemek (input, select, textarea) kerete, ha belekattintanak */
input:focus,
select:focus,
textarea:focus {
    outline: none !important;
    border: 1px solid var(--color-dark) !important; /* Sötétzöld keret */
    box-shadow: 0 0 4px var(--color-light-60) !important; /* Világoszöld ragyogás */
}

/* Maga a legördülő menü (select) alapállapotban */
select {
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
}

/* Background */

.background {
    background: linear-gradient(to left, #ffffff, var(--color-bg-gradient));  
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: -1;
}

.background > .circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
}

.background > .circles li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: var(--color-light-20);
    animation: animateBackground 25s linear infinite;
    bottom: -150px;
    
}

.background > .circles li:nth-child(1) {
    left: 25%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}

.background > .circles li:nth-child(2) {
    left: 10%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
    animation-duration: 12s;
}

.background > .circles li:nth-child(3) {
    left: 70%;
    width: 20px;
    height: 20px;
    animation-delay: 4s;
}

.background > .circles li:nth-child(4) {
    left: 40%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 18s;
}

.background > .circles li:nth-child(5) {
    left: 65%;
    width: 20px;
    height: 20px;
    animation-delay: 0s;
}

.background > .circles li:nth-child(6) {
    left: 75%;
    width: 110px;
    height: 110px;
    animation-delay: 3s;
}

.background > .circles li:nth-child(7) {
    left: 35%;
    width: 150px;
    height: 150px;
    animation-delay: 7s;
}

.background > .circles li:nth-child(8) {
    left: 50%;
    width: 25px;
    height: 25px;
    animation-delay: 15s;
    animation-duration: 45s;
}

.background > .circles li:nth-child(9) {
    left: 20%;
    width: 15px;
    height: 15px;
    animation-delay: 2s;
    animation-duration: 35s;
}

.background > .circles li:nth-child(10) {
    left: 85%;
    width: 150px;
    height: 150px;
    animation-delay: 0s;
    animation-duration: 11s;
}

@keyframes animateBackground {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }
    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }
}

/* Structure */

.page {
    width: 100%;
    height: 100vh;
    margin: auto;
    width: calc( 100vw - 100px );
    -webkit-transform:translate3d(0,0,0);
}

@container (max-width: 995px) {

    .page {
        width: 100vw;
    }

}

.page > .header {
    display: grid;
    grid-template-columns: auto auto;
    column-gap: 10px;
    background: linear-gradient( to top, white, transparent 80%);
    align-items: center;
    font-size: 12px;
    height: 25px;
    border-bottom: 1px solid #000;
    padding: 10px;
}

.page:not([data-level="GUEST"]) > .header {
    grid-template-columns: auto auto 32px;
}

.page > .header > .title {
    font-size: 15px;
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page > .header > .menu {
    display: inline-block;
    align-items: center;
    scrollbar-width: thin;
    height: 30px;
    font-size: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    white-space: nowrap;
    text-align: right;
}

.page[data-level="GUEST"] > .header > :not(.title) {
    display: none;
}

.page > .header > .menu .menuPoint {
    display: inline-block;
    opacity: 0.3;
    transition: 0.1s;
}

.page > .header > .menu .menuPoint:not(:first-child) {
    margin-left: 15px;
}

.page > .header > .menu .menuPoint:hover {
    opacity: 1;
}

.page > .header .logout {
    text-align: right;
    border-left: 1px solid #000;
    padding-left: 10px;
    font-size: 20px;
    color: red;
    opacity: 0.3;
}

.page > .header .logout:hover {
    opacity: 1;
}

.page > .tab {
    height: calc( 100vh - 122px );
    padding: 15px 0;
    overflow-y: auto;
    scrollbar-gutter: stable;
    scrollbar-color: #000000 transparent;
    scrollbar-width: thin;
    background: #ffffff38;
}

.page > .tab > .tableContainer {
    max-height: calc(100% - 80px);
    overflow-x: auto;
}

.page > .tab > .tableContainer.withActions {
    max-height: calc(100% - 125px);
}

.page > .tab > .tableContainer .manageTable thead {
    position: sticky;
    top: 0;
    z-index: 100;
}

.page > .tab > .tableContainer .manageTable thead th {
    background: var(--color-bg-highlight);
}

.page > .footer {
    background: linear-gradient( to bottom, white, transparent 80%);
    font-size: 12px;
    height: 25px;
    border-top: 1px solid #000;
    padding: 15px 10px 10px 10px;
}

.page .footer a {
    text-decoration: none;
    color: var(--color-dark);
}

.page .footer a:hover {
    text-decoration: underline;
    color: var(--color-light);
}

/* Generic */

h1 {
    font-size: 16px;
    margin: 5px 0 10px 10px;
}

h1 + div {
    margin: 0 10px;
    font-size: 13px;
}

hr {
    border: 0;
    height: 1px;
    background-color: #eee;
}

.center {
    text-align: center;
}

.right {
    text-align: right;
}

.two-columns {
    column-count: 2;
    column-width: 150px;
    column-gap: 15px;
    word-break: break-word;
}

.two-columns > div, 
.two-columns > span {
    break-inside: avoid;
    display: block;
    margin-bottom: 4px;
}


.underlined {
    text-decoration: underline;
}

.template, .hidden {
    display: none;
}

.bold {
    font-weight: bold;
}

.secondary {
    color: #777;
    font-size: smaller;
}

.clickable {
    cursor: pointer;
    opacity: 0.7;
}

.clickable:hover {
    opacity: 1;
}

.page span.sr-only {
    display: none;
}

table.simpleTable {
    overflow: auto;
    width: calc(100% - 20px);
    margin: 0 10px;
    font-size: 14px;
    border: 0px solid #bb6161;
    border-collapse: collapse;
    box-shadow: 2px 2px 3px 3px #ccc;
}

table.simpleTable th {
    background: var(--color-light-30); /* Világoszöld áttetszően */
    border: 1px solid var(--color-dark); /* Sötétzöld keret */
    padding: 5px;
    color: var(--color-dark); /* Sötétzöld szöveg */
    padding: 7px;
    text-align: left;
}

table.simpleTable td {
    border: 1px solid var(--color-light);
    padding: 7px;
}

table.simpleTable tbody tr:nth-child(even) {
    padding: 3px;
    background: #fff;
}

table.simpleTable tbody tr:nth-child(odd) {
    padding: 3px;
    background: var(--color-bg-row-odd);
}

table.simpleTable tbody tr:hover {
    background: var(--color-bg-highlight)7a !important;
}

table.simpleTable tfoot td {
    font-weight: bold;
}

table.simpleTable tfoot td.hideInTotal {
    visibility: hidden;
}

button {
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 3px;
    height: auto;
    border: 1px solid #333;
    border-radius: 5px;
    background: #fff;
    color: #084759;
}

button:hover {
    cursor: pointer;
    background: var(--color-dark);
    border: 1px solid var(--color-dark);
    color: #fff;
}

button:disabled {
    opacity: 0.3;
}

button.smallIndent {
    margin-left: 10px;
}

/* Általános linkek színezése */
a {
    color: var(--color-dark); /* Alapból sötétzöld */
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--color-light); /* Ha ráviszi az egeret, világoszöld lesz */
    text-decoration: underline;
}