@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap');

:root {
    --contrast-color: #ffffff;
    --text-color: #373737;
    --background-color: #fafafa;
    --light-text-color: #6d6d6d;
    --dark-shade: #303030;
    --medium-shade: #ccc;
    --highlight-shade: #e8e8e8;
    --light-shade: #FC0101;
    --light-shade-rgb: rgb(0, 114, 188);
    --bs-primary-rgb: 0, 114, 188;
    --light-grey: #eee;
    --light-blue: #bfe8ff;
    --medium-blue: #69c9ff;
    --blue: blue;
    --light-light-grey: #f8f8f8;
    --medium-grey: #cccccc;
    --border-radius: 0.5rem;
    --deleted-color: #fab9b9;
    --deletedborder-color: #ff1a1a;
    --consolidato-color: #cfffcf;
    --consolidatoborder-color: #00b300;
    --riscossione-color: #fdff94;
    --riscossioneborder-color: #c6c900;
    --orange-color: #fcd0ae;
    --orangeborder-color: #ffa057;
    --yellow-color: #fdff94;
    --yellowborder-color: #c6c900;
    --input-backogrund-color: #e0faff;
    font-family: 'Poppins', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
}

body {
    font-family: inherit;
    margin: 0;
    background: var(--background-color);
    color: var(--text-color);
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    letter-spacing: 0;
}

h1, h2, h3 {
    font-weight: lighter;
}

pre {
    border-left-color: var(--light-shade);
}

hr {
    border-color: var(--light-text-color) !important;
}

.hidden {
    display: none !important;
}

.pointer {
    cursor: pointer;
}

.bold {
    font-weight: bold;
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

.error, .red {
    color:red;
}

.yellow {
    color:orange;
}

.blue {
    color: blue;
}

.fa-bigicon {
    font-size: 2rem;
}

.flex_input {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.flex_input .input.text, .flex_input .input.date {
    width: 100%;
}

blockquote {
    color: var(--text-color) !important;
}

blockquote.bordered {
    border-radius: var(--border-radius);
    border: 1px solid var(--medium-grey);
    margin-bottom: 0.5rem;
}

blockquote.yellow {
    background-color: var(--yellow-color);
    border-color: var(--yellowborder-color);
}

blockquote.green {
    background-color: var(--consolidato-color);
    border-color: var(--consolidatoborder-color);
}

blockquote.red {
    background-color: var(--deleted-color);
    border-color: var(--deletedborder-color);
}

blockquote.grey {
    background-color: var(--light-grey);
    border-color: var(--medium-grey);
}

.green {
    color:green;
}

.orange {
    color:orange;
}

.dark_orange {
    color:darkorange;
}

.accent {
    color:var(--light-shade);
    font-weight: bold;
}

.margin-left {
    margin-left: 1rem;
}

.margin-right {
    margin-right: 1rem;
}

.margin-top {
    margin-top: 1.5rem;
}

.margin-bottom {
    margin-bottom: 1.5rem;
}


/* Grid fixes */

.row .column-center {
    align-self: center;
}

.row .column-end {
    align-self: flex-end;
}

.row .column-tight {
    width: auto;
}

.row .column-spaced {
    margin-bottom: 2rem;
}

.row .column-spaced input,
.row .column-spaced button,
.row .column-spaced .button,
.row .column-spaced select {
    margin-bottom: 0 !important;
}

.select2Font {
    /*font-size: 11px;*/
}

/* Links and buttons */

a {
    color: var(--dark-shade);
}

a:focus, a:hover {
    color: var(--accent-dark-color);
}

.button,
button,
input[type='button'],
input[type='reset'],
input[type='submit'] {
    background: var(--dark-shade);
    border-color: var(--text-color);
    color: var(--contrast-color);
    font-size: 1.2rem;
}

button.orange, .button.orange, button.orange:hover, .button.orange:hover {
    background: var(--orangeborder-color);
    color: var(--text-color);
}

.button.disabled {
    opacity: 0.5;
}

button.red, .button.red, button.red:hover, .button.red:hover {
    background: var(--deletedborder-color);
}

button.green, .button.green, button.green:hover, .button.green:hover {
    background: var(--consolidatoborder-color);
}

.button:focus, .button:hover,
button:focus,
button:hover,
input[type='button']:focus,
input[type='button']:hover,
input[type='reset']:focus,
input[type='reset']:hover,
input[type='submit']:focus,
input[type='submit']:hover {
    background-color: var(--light-shade);
    border-color: var(--light-shade);
}

.button[disabled]:focus, .button[disabled]:hover,
button[disabled]:focus,
button[disabled]:hover,
input[type='button'][disabled]:focus,
input[type='button'][disabled]:hover,
input[type='reset'][disabled]:focus,
input[type='reset'][disabled]:hover,
input[type='submit'][disabled]:focus,
input[type='submit'][disabled]:hover {
    background-color: var(--text-color);
    border-color: var(--text-color);
}

.button.button-outline,
button.button-outline,
input[type='button'].button-outline,
input[type='reset'].button-outline,
input[type='submit'].button-outline {
    color: var(--text-color);
}

.button.button-outline:focus, .button.button-outline:hover,
button.button-outline:focus,
button.button-outline:hover,
input[type='button'].button-outline:focus,
input[type='button'].button-outline:hover,
input[type='reset'].button-outline:focus,
input[type='reset'].button-outline:hover,
input[type='submit'].button-outline:focus,
input[type='submit'].button-outline:hover {
    border-color: var(--light-shade);
    color: var(--text-color);
}

.button.button-outline[disabled]:focus, .button.button-outline[disabled]:hover,
button.button-outline[disabled]:focus,
button.button-outline[disabled]:hover,
input[type='button'].button-outline[disabled]:focus,
input[type='button'].button-outline[disabled]:hover,
input[type='reset'].button-outline[disabled]:focus,
input[type='reset'].button-outline[disabled]:hover,
input[type='submit'].button-outline[disabled]:focus,
input[type='submit'].button-outline[disabled]:hover {
    color: var(--text-color);
}

.button.button-clear,
button.button-clear,
input[type='button'].button-clear,
input[type='reset'].button-clear,
input[type='submit'].button-clear {
    color: var(--text-color);
}

.button.button-clear:focus, .button.button-clear:hover,
button.button-clear:focus,
button.button-clear:hover,
input[type='button'].button-clear:focus,
input[type='button'].button-clear:hover,
input[type='reset'].button-clear:focus,
input[type='reset'].button-clear:hover,
input[type='submit'].button-clear:focus,
input[type='submit'].button-clear:hover {
    color: var(--text-color);
}

.button.button-clear[disabled]:focus, .button.button-clear[disabled]:hover,
button.button-clear[disabled]:focus,
button.button-clear[disabled]:hover,
input[type='button'].button-clear[disabled]:focus,
input[type='button'].button-clear[disabled]:hover,
input[type='reset'].button-clear[disabled]:focus,
input[type='reset'].button-clear[disabled]:hover,
input[type='submit'].button-clear[disabled]:focus,
input[type='submit'].button-clear[disabled]:hover {
    color: var(--text-color);
}

table tr td select,
table tr td input,
input[type='checkbox'] {
    margin-bottom: 0rem !important;
}

input:focus, textarea:focus {
    outline: none !important;
    border-color: var(--dark-shade);
    box-shadow: 0 0 5px var(--dark-shade);
}

.card {
    border: 1px solid var(--medium-grey) !important;
    padding: 2rem !important;
    border-radius: var(--border-radius);
    box-shadow: 0 1px 0 0 rgba(87, 66, 60, 0.06),
    0 1px 2px 0 rgba(0, 0, 0, 0.07);
}

.card.grey {
    background-color: var(--light-grey);
}

.card.touchable {
    background-color: var(--light-blue);
    border-color: var(--medium-blue);
}

.card.w33 {
    width: 32%  !important;
    margin-left: 0.5%;
    margin-right: 0.5%;
}

.card.w50 {
    width: 49%  !important;
    margin-left: 0.5%;
    margin-right: 0.5%;
}

.card-title {
    width: auto;
    padding: 0.5rem;
    display: inline-flex;
    border-bottom:3px solid var(--light-shade);
    color: var(--dark-shade);
    font-weight: bold;
    margin-bottom: 2rem;
}

.card-container {
    display: flex;
    gap: 2rem;
}

.card-content {
    padding: 2rem;
    text-align: center;
    border-radius: var(--border-radius);
    border: 1px solid #ccc;
    width: 50%;
}

.chapter-content {
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid #ccc;
    width: 100%;
    margin-bottom: 2rem;
}

.chapter-content.locked {
    opacity: 0.5;
}

.chapter-content.consolidato {
    background-color: #deffec;
    border-color: var(--consolidatoborder-color);
}

.tag {
    border: 1px solid var(--medium-shade);
    padding: 0.5rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    display: inline-flex;
    align-content: center;
    align-items: center;
    border-radius: var(--border-radius);
    font-size: 1.2rem;
    vertical-align: middle;
}

.tag.big {
    font-size: 1.4rem;
    padding: 1rem;
}

.tag.small {
    font-size: 0.9rem;
    padding: 0.4rem;
    font-weight: normal;
    border: 1px solid var(--medium-shade);
}

.tag.block {
    display: block;
}

.big {
    font-size: 1.4rem;
}

.verybig {
    font-size: 2rem !important;
}

.tag.active {
    background-color: var(--consolidato-color);
    border: 1px solid var(--consolidatoborder-color);
}

.tag.warning {
    background-color: var(--orange-color);
    border: 1px solid var(--orangeborder-color);
}

.tag.unactive {
    opacity: 0.5;
}

.tag.error {
    background-color: var(--deleted-color);
    border: 1px solid var(--deletedborder-color);
    color:black;
}

.tag-tree {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.tag-tree-empty {
    color: var(--light-text-color);
    font-style: italic;
    margin: 0;
}

.tag-tree-company {
    border: 1px solid var(--medium-shade);
    border-radius: var(--border-radius);
    background: var(--contrast-color);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.tag-tree-company-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: var(--light-grey);
    border-bottom: 1px solid var(--medium-shade);
    font-weight: 700;
}

.tag-tree-company-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    font-size: 0.95rem;
}

.tag-tree-company-name {
    flex: 1;
}

.tag-tree-company-count {
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.85;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
}

.tag-tree-branches {
    list-style: none;
    margin: 0.5rem 0 0.75rem 1.75rem;
    padding: 0 0 0 1rem;
    border-left: 2px solid var(--medium-grey);
}

.tag-tree-leaf {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.4rem 0 0.4rem 0.75rem;
}

.tag-tree-leaf::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 50%;
    width: 0.85rem;
    height: 2px;
    background: var(--medium-grey);
}

.tag-tree-tag {
    margin: 0;
}

.tag-tree-level {
    font-size: 0.8rem;
    color: var(--light-text-color);
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: var(--light-light-grey);
    border: 1px solid var(--medium-grey);
}

.tag-tree-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.tag-tree-header h3 {
    margin: 0;
}

.tag-tree-edittags-actions {
    display: flex;
    gap: 0.75rem;
    margin: 1rem 0;
}

.tag-tree-editable .tag-tree-company-header {
    justify-content: flex-start;
}

.tag-tree-toggle-company {
    margin-left: auto;
    padding: 0.25rem 0.65rem;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    color: inherit;
    font-family: inherit;
}

.tag-tree-leaf-editable {
    padding: 0.35rem 0 0.35rem 0.75rem;
}

.tag-tree-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    margin: 0;
    font-weight: 400;
}

.tag-tree-checkbox-label input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    margin: 0;
    cursor: pointer;
}

.tag-tree-checkbox-text {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.65rem;
    border: 1px solid var(--medium-shade);
    border-radius: var(--border-radius);
    background: var(--light-light-grey);
    font-size: 0.95rem;
}

.tag-tree-checkbox-label input[type="checkbox"]:checked + .tag-tree-checkbox-text {
    background: var(--consolidato-color);
    border-color: var(--consolidatoborder-color);
    font-weight: 600;
}

.company-logo-thumb {
    display: block;
    max-width: 80px;
    max-height: 48px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.company-logo-preview {
    display: block;
    max-width: 180px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin-bottom: 0.75rem;
}

.destination-image-preview {
    display: block;
    max-width: 320px;
    max-height: 180px;
    width: auto;
    height: auto;
    object-fit: cover;
    margin-bottom: 0.75rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--medium-grey);
}

.destination-image-thumb {
    display: block;
    width: 72px;
    height: 48px;
    object-fit: cover;
    border-radius: calc(var(--border-radius) - 2px);
    border: 1px solid var(--medium-grey);
}

.destination-image-current {
    margin-bottom: 0.5rem;
}

.company-logo-current {
    margin-bottom: 0.5rem;
}

.doc-notify-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
}

.doc-notify-tags-label {
    font-weight: 600;
    margin-right: 0.25rem;
}

.doc-notify-tags-empty {
    color: var(--light-text-color);
    font-size: 0.95rem;
}

.doc-notify-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.doc-notify-help {
    margin: 0 0 1rem 0;
    color: var(--light-text-color);
    font-size: 0.95rem;
}

.doc-notify-help code {
    background: var(--light-light-grey);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}

.doc-notify-logo-preview {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border: 1px solid var(--medium-shade);
    border-radius: var(--border-radius);
    background: var(--light-light-grey);
    text-align: center;
}

.doc-notify-logo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.doc-notify-logo-preview.is-single .doc-notify-logo-grid img {
    display: inline-block;
    max-width: 180px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.doc-notify-logo-preview.is-grid .doc-notify-logo-grid img {
    display: inline-block;
    max-width: 120px;
    max-height: 56px;
    width: auto;
    height: auto;
    object-fit: contain;
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--medium-shade);
    border-radius: 6px;
    background: #fff;
}

.doc-notify-logo-preview img {
    display: inline-block;
    max-width: 180px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
}

body .documents.notify .select2-container {
    width: 100% !important;
    margin-bottom: 0.75rem;
}

body .documents.notify .select2-container .select2-selection--multiple {
    min-height: 2.4rem;
    padding: 0.3rem 0.4rem;
    border-color: #d1d1d1;
}

body .documents.notify .select2-container .select2-selection--multiple .select2-selection__rendered {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
    width: 100%;
    min-height: 0;
    padding: 0;
    margin: 0;
    line-height: 1.3;
}

body .documents.notify .select2-container .select2-selection--multiple .select2-selection__choice {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0.15rem 0.4rem 0.15rem 0.3rem;
    font-size: 0.95rem;
    line-height: 1.25;
    border-radius: 4px;
    max-width: 100%;
    float: none;
}

body .documents.notify .select2-container .select2-selection--multiple .select2-selection__choice__remove {
    margin-right: 0.2rem;
    line-height: 1;
}

body .documents.notify .select2-container .select2-selection--multiple .select2-search--inline {
    display: inline-flex;
    flex: 1 1 5rem;
    min-width: 3.5rem;
    width: auto;
    float: none;
    margin: 0;
}

body .documents.notify .select2-container .select2-selection--multiple .select2-search__field {
    width: 100% !important;
    min-width: 3.5rem;
    margin: 0;
    padding: 0.1rem 0;
    font-size: 0.95rem;
    line-height: 1.25;
    height: 1.5rem;
}

body .documents.notify .select2-container .select2-selection--multiple .select2-selection__placeholder {
    margin: 0;
    padding: 0;
    line-height: 1.5rem;
    font-size: 0.95rem;
    color: var(--light-text-color);
}

body .communications.form #comm-notify-company-ids + .select2-container {
    width: 100% !important;
    margin-bottom: 0.75rem;
}

body .communications.form #comm-notify-company-ids + .select2-container .select2-selection--multiple {
    min-height: 2.4rem;
    padding: 0.3rem 0.4rem;
    border-color: #d1d1d1;
}

body .communications.form #comm-notify-company-ids + .select2-container .select2-selection--multiple .select2-selection__rendered {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
    width: 100%;
    min-height: 0;
    padding: 0;
    margin: 0;
    line-height: 1.3;
}

body .communications.form #comm-notify-company-ids + .select2-container .select2-selection--multiple .select2-selection__choice {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0.15rem 0.4rem 0.15rem 0.3rem;
    font-size: 0.95rem;
    line-height: 1.25;
    border-radius: 4px;
    max-width: 100%;
    float: none;
}

body .communications.form #comm-notify-company-ids + .select2-container .select2-selection--multiple .select2-selection__choice__remove {
    margin-right: 0.2rem;
    line-height: 1;
}

body .communications.form #comm-notify-company-ids + .select2-container .select2-selection--multiple .select2-search--inline {
    display: inline-flex;
    flex: 1 1 5rem;
    min-width: 3.5rem;
    width: auto;
    float: none;
    margin: 0;
}

body .communications.form #comm-notify-company-ids + .select2-container .select2-selection--multiple .select2-search__field {
    width: 100% !important;
    min-width: 3.5rem;
    margin: 0;
    padding: 0.1rem 0;
    font-size: 0.95rem;
    line-height: 1.25;
    height: 1.5rem;
}

body .communications.form #comm-notify-company-ids + .select2-container .select2-selection--multiple .select2-selection__placeholder {
    margin: 0;
    padding: 0;
    line-height: 1.5rem;
    font-size: 0.95rem;
    color: var(--light-text-color);
}

.documents.notify .tox-tinymce {
    margin-bottom: 0;
    min-height: 360px;
}

/* Document file system */
.doc-fs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.doc-fs-header::after {
    content: '';
    display: table;
    clear: both;
}

.doc-fs-header h3 {
    margin-bottom: 0;
}

.doc-fs-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.doc-fs-breadcrumb {
    padding: 1rem 1.15rem;
    border: 1px solid var(--medium-shade);
    border-radius: var(--border-radius);
    background: var(--light-light-grey);
    font-size: 1.3rem;
    line-height: 1.6;
    word-break: break-word;
}

.doc-fs-breadcrumb a {
    font-weight: 600;
}

.doc-fs-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 0;
    padding: 1rem 1.15rem;
    font-size: 1.1rem;
    line-height: 1.5;
}

.doc-fs-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.doc-fs-section {
    padding-top: 1.25rem;
}

.doc-fs-section:first-child {
    padding-top: 0.35rem;
}

.doc-fs-section-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.85rem;
    font-size: 1.35rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-color);
}

.doc-fs-section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.85rem;
    height: 1.85rem;
    padding: 0 0.55rem;
    border-radius: 999px;
    background: var(--light-grey);
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 700;
}

.doc-fs-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.85rem 1rem;
    align-items: center;
    padding: 1rem 1.15rem;
    border: 1px solid var(--medium-shade);
    border-radius: var(--border-radius);
    background: var(--contrast-color);
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.doc-fs-row + .doc-fs-row {
    margin-top: 0.65rem;
}

.doc-fs-row:hover {
    background: var(--light-light-grey);
    border-color: rgb(var(--bs-primary-rgb));
    box-shadow: 0 2px 8px rgba(0, 114, 188, 0.08);
}

.doc-fs-row-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.doc-fs-row-link:hover {
    color: inherit;
}

.doc-fs-row-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    flex-shrink: 0;
    border-radius: var(--border-radius);
}

.doc-fs-row-icon i {
    font-size: 2.25rem;
    line-height: 1;
}

.doc-fs-row-actions {
    display: flex;
    align-items: center;
    justify-self: end;
    text-align: right;
    white-space: nowrap;
}

.doc-fs-row-actions i {
    color: var(--text-color);
    font-size: 2rem;
}

.doc-fs-row-actions a {
    padding-right: 0;
    margin-left: 5px;
}

.doc-fs-row-actions form {
    display: inline;
    margin: 0;
}

.doc-fs-row-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.doc-fs-row-name {
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.35;
    word-break: break-word;
}

.doc-fs-row-subtitle {
    font-size: 1rem;
    color: var(--light-text-color);
    word-break: break-all;
}

.doc-fs-row-meta {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
    padding-left: 4.1rem;
}

.doc-fs-row-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.doc-fs-row-tags .tag.small {
    margin: 0;
    font-size: 1rem;
}

.doc-fs-row-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.doc-fs-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    border: 1px solid var(--medium-shade);
    background: var(--light-light-grey);
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
}

.doc-fs-badge-warning {
    background: var(--orange-color);
    border-color: var(--orangeborder-color);
}

.doc-fs-badge-info {
    background: var(--light-blue);
    border-color: rgb(var(--bs-primary-rgb));
    color: rgb(var(--bs-primary-rgb));
}

.doc-fs-badge-muted {
    color: var(--light-text-color);
    font-weight: 500;
}

.doc-fs-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 3rem 1.5rem;
    border: 1px dashed var(--medium-shade);
    border-radius: var(--border-radius);
    background: var(--light-light-grey);
    text-align: center;
}

.doc-fs-empty-icon {
    font-size: 3rem;
    color: var(--medium-shade);
}

.doc-fs-empty h4 {
    margin: 0;
    font-size: 1.35rem;
}

.doc-fs-empty p {
    margin: 0;
    color: var(--light-text-color);
    font-size: 1.1rem;
}

.doc-fs-empty-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.5rem;
}

@media (min-width: 900px) {
    .doc-fs-row {
        grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto;
    }

    .doc-fs-row-meta {
        grid-column: 2;
        padding-left: 0;
        justify-self: end;
    }

    .doc-fs-row-actions {
        grid-column: 3;
        grid-row: 1;
    }
}

.advertisement {
    padding: 2rem;
    border: 1px solid var(--orangeborder-color);
    border-radius: var(--border-radius);
    background-color: var(--orange-color);
    margin-top:1rem;
}

/* Communications */
.comm-form-help {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    color: var(--light-text-color);
}

.comm-or-help {
    padding: 0.85rem 1rem;
    border: 1px solid var(--medium-shade);
    border-radius: var(--border-radius);
    background: var(--light-light-grey);
}

.comm-form-help code {
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    background: var(--light-light-grey);
}

.comm-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.comm-recipients-fieldset {
    margin-top: 1rem;
}

.comm-target-selector {
    margin-top: 0.5rem;
}

.comm-target-tab-headers {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border: 1px solid var(--medium-shade);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    overflow: hidden;
    background: var(--contrast-color);
}

.comm-target-tab-header {
    flex: 1 1 0;
    min-width: 10rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0.85rem 1rem;
    border: none;
    border-right: 1px solid var(--medium-shade);
    background: var(--contrast-color);
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.comm-target-tab-header:last-child {
    border-right: none;
}

.comm-target-tab-header.is-active,
.comm-target-tab-header:has(input:checked) {
    background: var(--light-blue);
    color: var(--text-color);
    box-shadow: inset 0 -3px 0 rgb(var(--bs-primary-rgb));
}

.comm-target-tab-header .comm-target-type-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.comm-target-panels {
    margin-top: 0;
}

.comm-target-panel {
    display: none;
    margin-top: 0;
    padding: 1rem 1.15rem;
    border: 1px solid var(--medium-shade);
    border-top: none;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    background: var(--light-light-grey);
}

.comm-target-panel.is-active {
    display: block;
}

.comm-target-tab-header .comm-target-panel-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.comm-target-panel .tag-tree {
    margin-top: 0.5rem;
}

.comm-target-panel .tag-tree-checkbox-text {
    font-size: 1.15rem;
    color: var(--text-color);
}

.comm-target-panel .tag-tree-company-name {
    font-size: 1.2rem;
}

.communications.form .comm-target-panel select.select2 {
    width: 100%;
    min-width: 28rem;
}

.communications.form .comm-target-panel .select2-container {
    width: 100% !important;
    min-width: 28rem;
    max-width: 100%;
}

body .communications.form .select2-container .select2-selection--multiple {
    min-height: 3.8rem;
    padding: 0.35rem 0.5rem;
}

body .communications.form .select2-container .select2-selection--multiple .select2-selection__rendered {
    display: block;
    width: 100%;
    min-height: 2.6rem;
    padding: 0.2rem 0.4rem;
    line-height: 1.5;
}

body .communications.form .select2-container .select2-selection--multiple .select2-selection__choice {
    font-size: 1.05rem;
    padding: 0.25rem 0.5rem;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
}

body .communications.form .select2-container .select2-selection--multiple .select2-search--inline {
    width: 100%;
    min-width: 16rem;
}

body .communications.form .select2-container .select2-selection--multiple .select2-search__field {
    width: 100% !important;
    min-width: 16rem;
    font-size: 1.05rem;
    margin-top: 0.2rem;
}

body .communications.form .select2-container .select2-selection--multiple .select2-selection__placeholder {
    font-size: 1.05rem;
    line-height: 2.6rem;
    color: var(--light-text-color);
}

.comm-agency-filters {
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--medium-shade);
}

.comm-agency-filter-count {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--light-text-color);
}

.comm-filters-legend {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 1rem;
}

.comm-status-draft {
    background: var(--light-grey);
}

.comm-status-scheduled {
    background: var(--light-blue);
    border-color: var(--medium-blue);
}

.comm-status-sent {
    background: var(--consolidato-color);
    border-color: var(--consolidatoborder-color);
}

.comm-view-body {
    padding: 1rem;
    border: 1px solid var(--medium-shade);
    border-radius: var(--border-radius);
    background: var(--light-light-grey);
}

.comm-view-list {
    margin: 0 0 1rem 1.5rem;
}

.muted {
    color: var(--light-text-color);
}

.advertisement.inline {
    padding: 1rem;
    width: auto;
}
.advertisement ul {
    margin-bottom: 0px;
}
@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

.blink {
    animation: blink 2s infinite;
}

.tab-header {
    display: flex;
    align-items: center;
    align-content: center;
}

.tab-button {
    padding: 0.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    font-weight: bold;
    border: 1px solid var(--medium-shade);
    border-left: none;
    border-collapse: collapse;
    color: black;
    cursor: pointer;
    flex-grow: 1;
    text-align: center;
}

.tab-button.big {
    padding:4rem;
    margin: 1rem;
    border: 1px solid var(--medium-shade);
    font-size: 2rem;
    width: 50%;
}

.tab-button i {
    color: var(--dark-shade);
}

.tab-button.first {
    border-left: 1px solid var(--medium-shade);
}

.tab-button.active {
    background-color: var(--light-shade);
    color: var(--color-white);
    border-color: var(--light-shade);
}

.tab-button.active i {
    color: var(--color-white);
}

.tab-content {
    border-radius: 0px !important;
    border-top: none;
}

.tab-content .content {
    border-top-left-radius: 0px;
}

/* Pagination */

.pagination-selector,
.paginator {
    margin: 2.5rem 0;
}

.pagination-selector form,
.pagination-selector select {
    margin: 0;
}

.pagination-selector select {
    min-width: 8rem;
}

.pagination {
    flex-wrap: wrap;
    align-items: center;
}

.pagination .disabled {
    pointer-events: none;
}

.pagination li {
    margin: 0.5rem;
}

.pagination li a {
    display: inline-block;
    padding: .5rem 1rem;
    border-radius: 4.5rem;
    min-width: 4.5rem;
    line-height: 3.5rem;
    text-align: center;
    font-size: 1.6rem;
}

.pagination a {
    color: var(--light-shade);
}

.pagination li:hover a {
    background: var(--highlight-shade);
}

.pagination li.active a {
    font-weight: bold;
    color: var(--contrast-color);
    background: var(--dark-shade);
}

.pagination .first a,
.pagination .prev a,
.pagination .next a,
.pagination .last a {
    font-size: 0;
}

.pagination .first a::before,
.pagination .prev a::before,
.pagination .next a::before,
.pagination .last a::before {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    font-size: 1.6rem;
    font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free";
    font-weight: 300;
    vertical-align: -.2667em;
    text-align: center;
    width: 1.6rem;
}

.pagination .first a::before {
    content: "\f33e";
}

.pagination .prev a::before {
    content: "\f060";
}

.pagination .next a::before {
    content: "\f061";
}

.pagination .last a::before {
    content: "\f340";
}


/* Forms */

input,
button,
select,
textarea,
.select2-container {
    font-family: inherit;
}

button[disabled],
input[disabled],
.button[disabled],
.button.disabled,
.select2-container--disabled {
    pointer-events: none;
}

fieldset {
    margin-left: 0;
    margin-right: 0;
}

input[type="email"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="text"],
input[type="url"],
input[type="color"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="datetime"],
input[type="datetime-local"],
input:not([type]),
textarea,
select {
    background-color: var(--contrast-color);
}

input[type='email']:focus,
input[type='number']:focus,
input[type='password']:focus,
input[type='search']:focus,
input[type='tel']:focus,
input[type='text']:focus,
input[type='url']:focus,
input[type='color']:focus,
input[type='date']:focus,
input[type='month']:focus,
input[type='week']:focus,
input[type='datetime']:focus,
input[type='datetime-local']:focus,
input:not([type]):focus,
textarea:focus,
select:focus {
    border-color: var(--accent-color);
}

body .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--accent-color);
}

body .select2-container .select2-selection--single {
    height: 3.8rem;
}

body .select2-container .select2-selection--single,
body .select2-container .select2-dropdown,
body .select2-container .select2-search--dropdown .select2-search__field {
    border-color: #d1d1d1;
    margin: 0;
}

body .select2-container .select2-selection--single .select2-selection__rendered {
    height: 3.8rem;
    padding: .6rem 3rem .6rem 1rem;
}

body .select2-container .select2-selection--single .select2-selection__rendered {
    color: inherit;
    line-height: unset;
}

body .select2-container .select2-selection--single .select2-selection__arrow {
    height: 3.8rem;
    width: 3rem;
}

body .select2-results li {
    margin: 0;
}

body .select2-container.select2-container--disabled .select2-selection--single {
    background-color: var(--background-color);
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    color:var(--dark-shade);
}

input, textarea, select {
    font-size: 16px;
}

body .select2-container {
    margin-bottom: 1.5rem;
    max-width: 100%;
}

body .search-form .select2-container {
    margin-bottom: 0rem;
}

label {
    font-size: 1.4rem;
    margin-bottom: 0.1rem;
}

.search-form label {
    font-size: 1rem;
}

legend {
    padding: 0;
    margin-bottom: 2rem;
    font-size: 2.8rem;
    /*font-weight: lighter;*/
    font-weight: bold;
}

.search-form {
    margin-bottom: 0;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-top: 1px solid var(--light-grey);
}

.search-form button,
.search-form input[type=button],
.search-form .button,
.search-form select {
    width: 100%;
}

.search-form .row .column {
    display: flex;
    flex: 1;
    align-items: center;
}

.search-form .row .column .input {
    width: 100% !important;
}

.search-form input, .search-form button, .search-form a.button, .search-form select {
    margin-bottom: 0rem !important;
}

.search-form .row .column button i, .search-form .row .column a.button i {
    font-weight: bold;
    color: white;
}

.input.checkbox,
.input.checkbox label:first-of-type,
.input.radio,
.input.radio label:first-of-type {
    margin-bottom: 0;
    font-weight: inherit;
    font-size: inherit;
}

.input.checkbox label,
.input.radio label {
    display: inline-block;
}

.input.checkbox label input,
.input.radio label input {
    display: none;
}

.input.checkbox label input:checked + i,
.input.radio label input:checked + i {
    color: var(--accent-color);
}

.input.checkbox label input + i,
.input.radio label input + i {
    cursor: pointer;
}

.input.checkbox label input:disabled + i,
.input.radio label input:disabled + i {
    pointer-events: none;
    color: var(--dark-shade);
}

.input.checkbox label input + i:hover,
.input.radio label input + i:hover {
    color: var(--accent-dark-color);
}

.input.checkbox label input + i::before {
    content: "\f0c8";
}

.input.checkbox label input:checked + i::before {
    content: "\f14a";
}

.input.checkbox label input.checkbox-favorite + i::before {
    content: "\f004";
    font-weight: 300;
}

.input.checkbox label input.checkbox-favorite:checked + i::before {
    font-weight: 900;
}

.input.radio label input + i::before {
    content: "\f111";
}

.input.radio label input:checked + i::before {
    content: "\f058";
}

.input.radio {
    margin-bottom: 1.5rem;
}

.input.radio label {
    font-weight: inherit;
    display: block;
}

.input.radio label:first-of-type {
    font-weight: bold;
    margin-bottom: 1rem;
}

.input.radio label+label {
    margin-top: 0.5rem;
}

.input.required > label:first-of-type::after {
    display: inline;
    content: " *";
    color: var(--accent-color);
}

textarea {
    resize: vertical;
}

.tox-tinymce {
    margin-bottom: 1.5rem;
}


/* Tables */

table td,
table td:first-child,
table td:last-child,
table th,
table th:first-child,
table th:last-child {
    padding: .5rem 2rem;
}

table td,
table td:first-child,
table td:last-child,
table th,
table th:first-child,
table th:last-child {
    font-size: 1.4rem;
}

table thead,
table tfoot {
    color: var(--contrast-color);
}

table:not(.table) thead::after,
table:not(.table) tfoot::before {
    line-height: .2rem;
    content: "\200c";
    display: block;
    font-size: 0;
}

table thead a,
table thead a:visited {
    color: var(--contrast-color);
}

table thead a:hover {
    color: var(--contrast-color);
    opacity: 0.8;
}

table thead th,
table tfoot th {
    font-weight: bold;
    border-bottom: 0;
    background-color: var(--dark-shade);
}

table tbody tr {
    position: static;
}

table tbody tr td,
table tbody tr th {
    border-top: 1px solid var(--medium-grey);
    border-bottom: 1px solid var(--medium-grey);
}

table tbody tr:nth-of-type(2n) {
    background-color: var(--background-color);
}

table tbody tr:nth-of-type(2n+1) {
    background-color: var(--contrast-color);
}

.table-responsive {
    margin-bottom: 2rem;
}

.table-responsive table {
    margin-bottom: .5rem;
}

table tr .actions {
    text-align: right;
    white-space: nowrap;
}

table tr .actions i, i.action {
    color: var(--text-color);
    font-size: 2rem;
}

table tr .actions a {
    padding-right: 0;
    margin-left: 5px;
}

table tr .actions a.button {
    padding:1rem;
    color:white;
    margin: 0px;
    font-size: 1.5rem;
    line-height: 1.5rem;
}

table thead th {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 2;
}

table tr.deleted td, table tr th.deleted {
    background-color: var(--deleted-color);
    border-color: var(--deletedborder-color);
    color: var(--text-color);
}

table tr.consolidato td, table tr th.consolidato {
    background-color: var(--consolidato-color);
    border-color: var(--consolidatoborder-color);
    color: var(--text-color);
}

table tr.riscossione td, table tr th.riscossione {
    background-color: var(--riscossione-color);
    border-color: var(--riscossioneborder-color);
    color: var(--text-color);
}

table tr.orange td, table tr th.orange  {
    background-color: var(--orange-color);
    border-color: var(--orangeborder-color);
    color: var(--text-color);
}

table tr.lightblue td, table tr th.lightblue {
    background-color: var(--light-blue);
    border-color: var(--medium-blue);
    color: var(--text-color);
}

table tr.mediumblu td, table tr th.mediumblu {
    background-color: var(--medium-blue);
    border-color: var(--blue);
    color: var(--text-color);
}

table.small tr, table.small td, table.small th {
    font-size: 1.4rem !important;
}

table.small tr, table.verysmall td, table.verysmall th {
    font-size: 1.1rem !important;
}

table.small tr .actions i {
    font-size: 1.4rem;
}

table tr:hover td {
    background-color:var(--light-grey);
}

table tr td {
    font-size: 1.2rem !important;
}

/* Questionari */

.question {
    border:1px solid var(--medium-grey);
    padding: 3rem;
    border-radius: var(--border-radius);
    margin-bottom: 3rem;
    background-color:var(--light-grey);
}

.question_backoffice {
    border:1px solid var(--medium-grey);
    padding: 1em;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    background-color:var(--light-grey);
}

.question_backoffice ul {
    margin-bottom: 0px;
}

.question select, .question textarea {
    max-width: 600px;
}

.question_chart {
    width: 60% !important;
    margin-left:20%;
    height: auto !important;
}

.question_chart.full {
    width: 90% !important;
    margin-left:5%;
    height: auto !important;
}

.general_chart {
    height: 400px !important;
    width: auto !important;
}


/* Structure */

.container {
    flex-grow: 1;
    width: 100%;
    max-width: 100%;
    height: auto;
    overflow: auto;
    background: var(--color-white);
}

.sidebar {
    flex-grow: 1;
    overflow-y: scroll;
    max-width: 200px;
    min-width: 200px;
    padding: 1rem;
    background-color: var(--light-grey);
    border-right: 1px solid var(--medium-shade);
}

.sidebar .notification {
    width: 25px;
    height: 25px;
    background-color: red;
    color: white;
    font-size: 1.2rem;
    text-align: center;
    border-radius: 25px;
    line-height: 20px;
    border: 2px solid darkred;
    float: right;
}

.sidebar li li .notification {
    width: 20px;
    height: 20px;
    line-height: 15px;
}

.sidebar ul li.disabled {
    color: var(--medium-grey) !important;
}

.profile_image {
    width: 100px;
    height: 100px;
    margin-top: 2rem;
    margin-bottom: 2rem;
    display: flex;
    margin-left:auto;
    margin-right: auto;
    border-radius: 50%;
}

.profile_image.profile_image_div {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border: 1px solid var(--medium-grey);
}

.content,
.tile,
.sub-menu-row,
.drop-shadow,
.jquery-modal .modal,
.rowcontent {
    /*box-shadow: 0 1px 0 0 rgba(87, 66, 60, 0.06),
    0 1px 2px 0 rgba(0, 0, 0, 0.17);*/
    /*border: 1px solid var(--medium-shade);
    border-radius: var(--border-radius);*/
    box-shadow: none;
    border: none;
}

.rowcontent {
    padding: 1rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
    margin-left: 0rem;
    width:calc(100%) !important;
    background-color: var(--light-light-grey);
}

.content.bordered {
    border:1px solid var(--medium-grey);
}

header {
    background: var(--dark-shade);
    z-index: 4000;
    padding: 10px;
    font-size: 1.1em;
    color:var(--contrast-color);
    width: 100%;
    display: block;
}

header i {
    float:left;
    display: none !important;
    align-content: center;
    margin-right: 20px;
    font-size: 30px;
}

header img {
    height: 60px;
    padding: 10px;
    width: auto;
}

header.login img {
    height: 40px;
    width: auto;
    padding: 8px 14px;
}

main {
    flex-grow: 1;
    overflow-y: scroll;
    display: flex;
    flex-direction: row;
}

main > .container {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

nav ul {
    margin: 0.3rem;
}

nav ol {
    margin-bottom: 0.4rem;
    margin-top: 0.01rem;
    font-style: italic;
}

nav ul li {
    list-style: none;
    border-bottom: 1px solid var(--medium-shade);
    padding: 1rem;
    margin: 0rem;
}

nav ul li.active {
    font-weight: bold;
    border-bottom: 2px solid var(--text-color);
}

nav ul li li.active {
    border: 1px solid var(--text-color);
    border-radius: var(--border-radius);
}

nav ul li.active ul li {
    font-weight: normal;
}

nav ul ul {
    display: none;
}

nav ul ul.open {
    display: block;
}

nav ul li.active ul {
    display: block;
}

nav ul ul li {
    padding-top:0.1rem;
    padding-bottom:0rem;
    margin-bottom: 0rem;
    border-bottom: none;
}

nav ul li .space {
    display: flex;
    justify-content: space-between;
}

ul li {
    margin:0rem;
}

nav ul li a, nav ul li a:hover {
    color:var(--text-color);
}

#breadcrumb {
    background-color: var(--light-grey);
    border: 1px solid var(--medium-shade);
    padding: 0.5rem;
    padding-left:2rem;
    padding-right:2rem;
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
}

.popup-info-background {
    position: fixed;
    width: 100%;
    height: 100vh;
    background-color: #ccc;
    top:0;
    left: 0;
    z-index: 100;
    background: linear-gradient(90deg, rgba(238,238,238,0.8) 0%, rgba(221,221,221,0.8) 35%, rgba(204,204,204,0.8) 100%);
}
.popup-info {
    position: fixed;
    width: 40%;
    left: 30%;
    top:5%;
    height: auto;
    background-color: white;
    border: 1px solid var(--medium-grey);
    border-radius: var(--border-radius);
    padding: 2rem;
}

.popup-info .fa-times {
    float:right;
}

.commands {
    display: inline;
}

.inner_command {
    padding: 1rem;
    background-color: var(--light-blue);
    border: 1px solid var(--medium-blue);
    border-radius: var(--border-radius);
}

.centrato {
    text-align: center;
}

.profile_photo {
    width: 200px;
    height: auto;
}

.qr_code_image {
    width: 150px;
    height: auto;
}

/* Media queries */
@media (max-width: 80rem) {
    .card.w33 {
        width: 100% !important;
        margin-bottom: 2rem;
    }


}

@media (min-width: 40rem) {
    .mobiletable {
        display: none;
    }
    .landscapetable {
        display: table;
    }
}

@media (max-width: 40rem) {
    .sidebar {
        left:-200px;
        position: absolute;
        height: 100vh;
        z-index: 5000;
        -webkit-transition: all 0.5s ease-out;
    }

    #sidebar.opened {
        left:0px;
        position: absolute;
        -webkit-transition: all 0.5s ease-out;
    }

    header {
        display: flex;
        align-items: center;
    }

    header i {
        display: flex !important;
    }

    .card.w33 {
        width: 100% !important;
        margin-bottom: 2rem;
    }

    .row {
        margin-left:0px;
        margin-right:0px;
    }

    .content {
        padding:1rem;
    }

    .main {
        padding-bottom:6rem;
    }

    .mobiletable {
        display: table;
    }

    .landscapetable {
        display: none;
    }
}

.button-small {
    font-size: .8rem;
    height: 2.8rem;
    line-height: 2.8rem;
    padding: 0 1.5rem;
    width: 100%;
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary:visited,
.btn-primary {
    background-color: var(--light-shade) !important;
}

.btn-outline-primary {
    color: var(--light-shade) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:active,
.btn-outline-primary:visited,
.btn-outline-primary.active {
    color: #fff !important;
    background-color: var(--light-shade) !important;
}

.bg-primary-dark {
    background-color: var(--dark-shade);
}

.site-landing-body {
    margin: 0;
    min-height: 100vh;
    background: #ffffff;
}

.site-landing {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1.5rem;
}

.site-landing-card {
    max-width: 32rem;
    width: 100%;
    text-align: center;
}

.site-landing-logo {
    display: inline-block;
    max-width: 220px;
    width: 100%;
    height: auto;
    margin-bottom: 2rem;
}

.site-landing-message {
    margin: 0 0 0.5rem;
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-color);
}

.site-landing-subtitle {
    margin: 0 0 2rem;
    color: var(--light-text-color);
    font-size: 1.05rem;
}

.site-landing-button {
    display: inline-block;
    min-width: 12rem;
}

/* Auth pages (login, restore, password) */
body.auth-page {
    height: auto;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #eef6fc 0%, #fafafa 45%, #f3f8fc 100%);
}

.auth-page {
    position: relative;
}

.auth-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.auth-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 114, 188, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 114, 188, 0.04) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 15%, transparent 75%);
}

.auth-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    will-change: transform;
}

.auth-orb--1 {
    width: min(480px, 90vw);
    height: min(480px, 90vw);
    background: rgba(0, 114, 188, 0.22);
    top: -12%;
    right: -8%;
    animation: auth-orb-float-1 22s ease-in-out infinite;
}

.auth-orb--2 {
    width: min(360px, 70vw);
    height: min(360px, 70vw);
    background: rgba(0, 114, 188, 0.14);
    bottom: 5%;
    left: -10%;
    animation: auth-orb-float-2 26s ease-in-out infinite;
}

.auth-orb--3 {
    width: min(220px, 45vw);
    height: min(220px, 45vw);
    background: rgba(252, 1, 1, 0.07);
    top: 42%;
    left: 58%;
    animation: auth-orb-float-3 18s ease-in-out infinite;
}

@keyframes auth-orb-float-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-28px, 32px) scale(1.06); }
}

@keyframes auth-orb-float-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(36px, -24px) scale(0.94); }
}

@keyframes auth-orb-float-3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20px, 18px); }
}

.auth-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    padding: 1.5rem;
    box-sizing: border-box;
}

.auth-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 1.25rem;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 16px 48px -12px rgba(0, 114, 188, 0.18);
    overflow: hidden;
    animation: auth-card-in 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes auth-card-in {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-card-body {
    padding: 1.25rem 2rem 2.25rem;
}

.auth-page header.login {
    background: transparent;
    text-align: center;
    padding: 2.5rem 1.5rem 2rem;
    color: var(--text-color);
    width: auto;
}

.auth-page header.login a {
    display: inline-block;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.auth-page header.login a:hover {
    transform: scale(1.03);
    opacity: 0.9;
}

.auth-page header.login img {
    height: 52px;
    padding: 0;
}

.auth-page .users.form.content {
    margin: 0;
    padding: 0;
}

.auth-page legend {
    font-size: 2.8rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    line-height: 1.2;
    color: var(--dark-shade);
    border: none;
}

.auth-subtitle {
    margin: 0 0 2rem;
    color: var(--light-text-color);
    font-size: 1.05em;
    line-height: 1.55;
    font-weight: 400;
}

.auth-back-legend {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    transition: color 0.2s ease;
}

.auth-back-legend:hover {
    color: rgb(0, 114, 188);
}

.auth-back-legend i {
    display: inline-block !important;
    float: none !important;
    font-size: 1.4rem !important;
    margin: 0 !important;
}

.auth-page fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.auth-page .input {
    margin-bottom: 1.35rem;
}

.auth-page label {
    font-size: inherit;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.auth-page input[type="email"],
.auth-page input[type="password"],
.auth-page input[type="text"] {
    font-size: 1.6rem;
    height: 4.2rem;
    border-radius: 0.6rem;
    border-color: var(--medium-grey);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-page input[type="email"]:focus,
.auth-page input[type="password"]:focus,
.auth-page input[type="text"]:focus {
    border-color: rgb(0, 114, 188);
    box-shadow: 0 0 0 3px rgba(0, 114, 188, 0.12);
}

.auth-page button[type="submit"],
.auth-page input[type="submit"] {
    width: 100%;
    margin-top: 0.5rem;
    font-size: 1.1rem;
    height: 4.2rem;
    line-height: 4.2rem;
    border-radius: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.auth-page button[type="submit"]:hover,
.auth-page input[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px -4px rgba(0, 114, 188, 0.35);
}

.auth-link {
    display: block;
    margin-top: 1.5rem;
    text-align: center;
    font-size: 1.05em;
    color: rgb(0, 114, 188);
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-link:hover {
    color: #005a96;
    text-decoration: underline;
}

.auth-footer {
    margin: 1.25rem 0 0;
    text-align: center;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--light-text-color);
    opacity: 0.75;
}

.auth-page .message {
    margin-bottom: 1rem;
    border-radius: 0.6rem;
}

@media (prefers-reduced-motion: reduce) {
    .auth-orb,
    .auth-card {
        animation: none;
    }
}
