* {
    font-family: "Roboto", sans-serif;
    --trans: ease-in-out 0.2s all;
    --theme: #1592d6;
    --th-no-focus: #d9d9d9;
    --fnormal: 1em;
    --fsmall: 0.9em;
    --fbig: 1.2em;
    --flarge: 1.5em;
    box-sizing: border-box;
}
body {
    margin: 0;
}

body.modal-open {
    overflow: hidden;
    padding-right: 15px; /* Adjust this value based on the scrollbar width */
}

input[type="text"],input[type="number"], input[type="password"] {
    border: none;
    outline: none;
    border-bottom: 1px solid var(--th-no-focus);
    font-size: var(--fsmall);
    width: 100%;
}
input[type="text"]:focus, input[type="text"]:active, input[type="number"]:focus, input[type="number"]:active, select:focus, select:active, input[type="password"]:focus, input[type="password"]:active {
    border: none;
    border-bottom: 1px solid var(--theme);
    transition: var(--trans);
}
select {
    border: none;
    outline: none;
    border-bottom: 1px solid var(--th-no-focus);
    background-color: transparent;
    font-size: var(--fsmall);
}
#fulljmeno {
    width: max-content;
    max-width: 200px;
}
.info-div {
    display: flex;
    width: fit-content;
    gap : 10px;
    flex-direction: column;
}
th {
    text-align: left;
}
.a4 {
    width: 210mm;
    height: auto;
    padding: 20mm;
    box-sizing: border-box;
    box-shadow: 5px 5px 15px 0px rgba(0, 0, 0, 0.4);
}
.inner-a4 {
    width: 160mm;
    height: auto;
    margin: auto;
}
.unchecked {
    display: none;
}
.header {
    display: flex;
    align-items: center;
    height: auto;
    position: fixed;
    flex-direction: column;
    top: 0px;
    width: 100%;
    border-bottom: 1px solid black;
}
.header div {
    background-color: white;
    width: 100%;
    height: max-content;
    display: flex;
    align-items: center;
    padding: 10px;
}
.header div.header {
    position: fixed;
}
table {
    border-collapse: collapse;
}
.table-header th {
    border-bottom: 1px solid black;

}
.table-row-basic {
    width: auto;
    height: 30px;
}
.table-row-books {
    width: auto;
    height: 40px;
    min-height: 30px;
}
#index_num {
    border: none;
    outline: none;
    width: 50px;
    font-weight: bold;
}
button {
    padding: 5px 10px;
    background-color: white;
    color: var(--theme);
    border: 2px solid var(--theme);
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    transition: var(--trans);
    
}
button:hover:not(:disabled) {
    background-color: var(--theme);
    color: white;
}
.add-row-btn {
    margin-top: 10px;
    padding: 5px 10px;
}
.select-field {
    border: none;
    outline: none;
    border-bottom: 1px solid var(--th-no-focus);
    background-color: transparent;
}
.buttons {
    width: inherit;
}
.buttons nav {
    background-color: white;
    width: inherit;
    height: 50px;
    position: fixed;
    bottom: 0px;
    display: flex;
    align-items: center;
    gap: 5px;
    border-top: 1px solid #d9d9d9;
}
.main-section {
    display: flex;
    width: auto;
    justify-content: center;
}
#show-crite-btn {
    visibility: hidden;
}
#close-crite {
    visibility: hidden;
}
.check-board {
    position: sticky;
    top: 20px;
    padding: 20px;
    width: max-content;
    max-height: 500px;
    background-color: white;
    margin-left: 30px;
    box-shadow: 5px 5px 15px 0px rgba(0, 0, 0, 0.4);
}
.book-count {
    width: 30px !important;
    text-align: center;
    border: none;
    outline: none;
    border-bottom: 1px solid var(--th-no-focus);
    font-size: var(--fnormal);
}
.aligner {
    display: flex;
    justify-content: space-between;
    max-width: 300px;
}
.table-row-books-user td:not(:last-child) {
    padding: 3px;
}

.preview {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease-in-out, visibility 0.15s ease-in-out, backdrop-filter 0.15s ease-in-out;
}

.preview.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    backdrop-filter: blur(2px);
}

.inner-preview {
    width: 210mm;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 40px);
    overflow: auto;
    background: white;
    padding: 20mm;
    box-sizing: border-box;
    box-shadow: 5px 5px 15px 0px rgba(0, 0, 0, 0.4);
    transform: translateY(8px) scale(0.99);
    transition: var(--trans);
    font-family: 'Times New Roman', Times, serif;
}

.preview.is-open .inner-preview {
    transform: translateY(0) scale(1);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid black;
    margin-bottom: 10px;
    padding-bottom: 6px;
}

#preview-content .info p {
    margin: 6px 0;
}

#preview-books table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 6px;
}

#preview-books th,
#preview-books td {
    text-align: left;
    padding: 4px;
    font-size: var(--fsmall);
}
.preview-info-table tr td {
    padding: 2px 0 2px 0;
}

.preview-info-table {
    width: auto;
    min-width: 50%;
}
#password-panel.is-open {
    display: flex !important;
    gap: 20px;
    border-bottom: 1px solid var(--theme);
}
#password-panel div {
    display: flex;
    gap: 10px;
    align-items: center;
    width: auto;
}
.book-counter-dyn {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}
.book-counter-dyn-open {
    margin-top: 135px !important;
}
.additional-info {
    display: flex;
    justify-content: space-between;
}
.additional-info p {
    /* border: 1px solid black; */
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.additional-info {
    display: flex;
    gap: 10px;
    font-size: 15px;
    height: 50px;
}
.info {
    border-bottom: 1px solid black;
    padding-bottom: 10px;
    font-size: 14px;
}
.books-table-admin {
    width: 100%;
}
#password-panel div div input {
    width: auto;
}
@media screen and (max-width: 1200px) {
        .main-section {
            flex-direction: column;
        }
        .check-board {
            position: fixed;
            align-self: anchor-center;
            margin: 10px;
            width: calc(100% - 5vw);
            max-height: none;
            padding: 20px;
            visibility: hidden;
        }
        .a4 {
            width: 100%;
            padding: 10mm;
        }
        .inner-a4 {
            width: 100%;
        }
        .inner-preview {
            width: 100%;
            padding: 10mm;
        }
        .header div {
            flex-direction: column;
            gap: 10px;
        }
        .buttons {
            width: unset;
        }
        .buttons nav {
            flex-wrap: wrap;
            height: auto;
            gap: 10px;
            padding: 10px;
        }
        button {
            font-size: var(--fsmall);
            padding: 4px 8px;
        }
        #close-crite {
            visibility: visible;
        }
        #show-crite-btn {
            visibility: visible;
        }
    }