:root {
    --brand-primary-text-colour: #333333;
    --bg-secondary-colour: white;
}

html {
    background-color: var(--page-bg-colour);
    background-image: var(--page-bg-image);
    font-family: var(--font-family);
    font-size: var(--font-size);
    font-weight: var(--font-weight);
}

body {
    color: var(--brand-primary-text-colour);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    flex-direction: row;
}

textarea {
    min-height: 110px;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--header-colour);
}

.hide {
    display: none;
}

.font-sans {
    font-family: var(--font-family);
}

.p-4 {
    padding: 1rem;
}

.p-8 {
    padding: 2rem;
}

.px-8 {
    padding-right: 2rem;
    padding-left: 2rem;
}

.pb-8 {
    padding-bottom: 2rem;
}

.pt-8 {
    padding-top: 2rem;
}

.gap-2 {
    gap: 0.5rem;
}

.flex-none {
    flex: 0 0 auto
}

#toggle-sidebar a {
    height: 32px;
}

.toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.sidebar.collapsed .toggle-btn .sidebar-item-icon {
    transform: rotate(180deg);
}

.sidebar-item a {
    border-left: 5px solid var(--brand-primary-colour);
}

.sidebar-item a:hover {
    border-left-color: var(--brand-secondary-colour);
}

.sidebar-item.selected a {
    border-left-color: var(--brand-secondary-colour);
}

.sidebar {
    background-color: var(--brand-primary-colour);
    color: var(--text-primary-colour);
    max-height: 100vh;
    min-width: max-content;
    max-width: max-content;
    transition: width 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-item-label {
    min-width: 120px;
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease, visibility 0s 0s;
}

.sidebar.collapsed .sidebar-item-label {
    display: none;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.sidebar.collapsed:hover .sidebar-item-label {
    display: unset;
}

.sidebar nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar nav .sidebar-item:hover {
    background-color: var(--brand-secondary-colour);
    color: var(--text-secondary-colour);
}

@media (min-width: 640px) {
    .main-sidebar {
        float:left;
        position: sticky;
        top: 0px;
        width: 30vw;
        margin-right: 2rem;
    }
}

.main-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease, max-width 0.3s ease;
    overflow: auto;
}

.page-container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    height: 100vh;
}

.content-panel {
    overflow-x: visible;
}

.topbar {
    padding-left: 10px;
    padding-right: 10px;
    display: flex;
    position: sticky;
    top: 0px;
    background-color: white;
    min-height: 65px;
    justify-content: space-between;
    border-bottom-width: 1px;
    align-items: center;
    z-index: 1000;
}

.nav-link {
    border-bottom: 3px solid transparent;
}

.nav-link:hover,
.nav-link:focus {
    border-bottom: 3px solid var(--brand-primary-colour);
    background-color: rgba(105, 30, 218, 0.3);
    color: var(--brand-primary-colour);
    outline: none;
}

.nav-link.active {
    border-bottom: 3px solid var(--brand-secondary-colour);
}

.topbar-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    height: 100%;
}

.topbar-left,
.topbar-right  {
    height: 100%;
}

.topbar-nav a {
    color: #333333BB;
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s;
    border-bottom: 2px solid white;
}

.topbar-nav a.active {
    border-bottom: 2px solid var(--brand-secondary-colour);
    font-weight: bold;
}

.topbar-nav a:hover {
    color: var(--brand-secondary-colour);
}

.topbar-title {
    font-weight: bold;
}

.subnav {
    padding-left: 10px;
    padding-right: 10px;
    display: flex;
    position: sticky;
    top: 0px;
    background-color: var(--bg-primary-colour);
    justify-content: space-between;
    border-bottom-width: 1px;
    align-items: center;
}

.subnav a {
    border-bottom: 0;
    margin-top: 5px;
    margin-bottom: 5px;
    padding: 0px;
    padding-right: 1rem;
    padding-left: 1rem;
}

.subnav a:not(:last-child) {
    border-right: 1px solid #a0a0a0;
}

.subnav a.active {
    border-bottom: 0;
    color: var(--brand-primary-colour);
    font-weight: 600;
}

.page-nav {
    margin-left: 0px;
    white-space: nowrap;
    overflow-x: hidden;
    overflow-y: hidden;
}

.site-nav {
    background-color: white;
}

.site-header {
    color: var(--brand-primary-colour);
    font-size: 1.1rem;
}

@media screen and (max-width: 600px) {
    .pt-8 {
        padding-top: 1rem;
    }
    
    .px-8 {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .gap-6 {
        gap: 1rem;
    }

    .site-nav {
        background-color: var(--brand-primary-colour);
        color: var(--text-primary-colour);
    }

    .site-header {
        gap: 1rem;
    }

    .site-header h2 {
        color: var(--text-primary-colour);
    }

    .sidebar {
        min-width: 100vw;
        position: fixed;
        z-index: 100;
        top: 0px;
        left: 0px;
        height: calc(100vh - 60px);
    }

    .sidebar.collapsed {
        display: none;
    }

    .sidebar.collapsed .sidebar-item-label {
        display: unset;
    }

    .page-container {
        max-width: 100vw;
    }

    .page-nav {
        margin-left: 0px;
        white-space: nowrap;
        overflow-x: scroll;
    }

    .page-nav {
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; 
        -ms-overflow-style: none;
    }

    .page-nav ::-webkit-scrollbar {
        display: none;
    }

    .page-header {
        flex-direction: column-reverse;
    }

    .page-name {
        display: none;
    }

    .page-fab.link-button {
        aspect-ratio: 1/1;
        border-radius: 50% !important;
        align-content: center;
        outline: 4px solid color-mix(in oklab, #fff 85%, transparent);
    }

    .page-fab-overlay {
        position: fixed;
        background-color: #eee;
        top: 0px;
        left: 0px;
        width: 100%;
        height: 100%;
        opacity: 0.5;
        z-index: -1;
        display: none;
    }

    #action-toggle:checked ~ .page-fab-overlay {
        display: block;
    }

    .page-actions {
        position: absolute;
        bottom: 70px;
        right: 10px;
        z-index: 100;
        flex-direction: column-reverse;
        align-items: end;
    }

    #action-toggle ~ a,
    #action-toggle ~ .dropdown {
        display: none;
    }

    #action-toggle:checked ~ a,
    #action-toggle:checked ~ .dropdown {
        display: flex;
    }

    main,
    .page-container {
        padding-bottom: 60px;
    }

    .content {
        padding-bottom: 50px;
    }

    .main-nav {
        overflow: hidden;
        margin-right: 1rem;
    }

    .main-nav-links {
        position: fixed;
        right: 0px;
        left: 0px;
        bottom: 0px;
        margin: 0px;
        background-color: white;
        border-top: 1px solid #ddd;
        gap: 0px;
        height: 60px;
    }

    .main-nav-links a {
        display: flex;
        flex-direction: column;
        flex: 1;
        font-size: small;
        gap: 0px;
        padding-top: 10px;
        padding-right: 0px;
        padding-left: 0px
    }
}

/* Tables */
.table-header {
    background-color: #F0EDEE;
}

tfoot tr {
    background-color: #F0EDEE;
}

th {
    text-align: left;
    padding: 0.5rem;
}

.log-table td,
.log-table th {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table-frame {
    overflow-x: auto;
}

.table-action {
    display: inline-block;
}

/* Responsive styles for small screens */
@media screen and (max-width: 600px) {
    .responsive-table thead {
          display: none;
    }
  
    .responsive-table tr {
        display: block;
        border-bottom: 1px solid #ddd;
        background: #fff;
    }
  
    .responsive-table td {
        display: block;
        border: none;
        position: relative;
    }
  
    .responsive-table td::before {
        content: attr(data-label);
        font-weight: bold;
        text-align: left;
        white-space: nowrap;
        padding-right: 5px;
    }
}

.fit-content {
    white-space: nowrap; 
    width: 1px; 
}

.quote {
    border-left: 3px solid var(--brand-primary-colour);
    padding-left: 1rem;
}

.grid-cols-4 {
    grid-template-columns: repeat(4,minmax(0,1fr));
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

@media (max-width: 600px) {
    .grid {
        grid-template-columns: 1fr; 
    }
  
    .grid > * {
        min-width: 100%;
    }
}

.card {
    background-color: var(--content-bg-colour);
    background-image: var(--content-bg-image);
    border-radius: 5px;
    padding: 2rem;
}

.card-icon {
    width: 2rem;
    height: 2rem;
    color: var(--brand-secondary-colour);
}

.oneline {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: inline-block;
}

.mx-16 {
    margin-right: 4rem;
    margin-left: 4rem;
}

.pickr {
    border: 1px solid grey;
    box-shadow: 0 0 0 1px white;
    display: inline-block;
    border-radius: 3px;
}

.pickr .pcr-button{
    position: unset;
}

.pcr-color-preview button {
    border-radius: 0px !important;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

button.bg-red-600 {
    background-color: var(--button-danger-bg);
    color: var(--button-danger-fg);
}

button.bg-gray-800 {
    background-color: var(--button-primary-bg);
    color: var(--button-primary-fg);
}

a.bg-gray-800 {
    background-color: var(--button-primary-bg);
    color: var(--button-primary-fg);
}

button.bg-white {
    background-color: var(--button-secondary-bg);
    color: var(--button-secondary-fg);
}

.notice {
    background-color: #fffdd0;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.tile {
    display: flex;
    background-color: var(--content-bg-colour);
    background-image: var(--content-bg-image);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.left-section {
    background-color: var(--brand-primary-colour);
    width: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(rgba(105, 30, 218, 0.3), rgba(105, 30, 218, 0.3)), url(http://portal.docker.localhost/img/Sop.png);
    background-repeat: no-repeat;
    background-size: cover;
}

.progress-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: radial-gradient(circle closest-side, var(--brand-primary-colour) 80%, transparent 81%),
                conic-gradient(#26c6da 0% 30%, #e0e0e0 30% 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 14px;
    font-weight: bold;
    position: relative;
}

.progress-circle::after {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 14px;
    font-weight: bold;
    position: relative;
}

.progress-circle span {
    position: absolute;
}

.right-section {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.right-section h3 {
    margin: 0;
    color: #6a1b9a; /* Purple text */
    font-size: 18px;
}

.right-section p {
    margin: 10px 0 0;
    color: #666666; /* Light gray text */
    font-size: 14px;
}

.arrow-button {
    align-self: flex-end;
    background-color: #26c6da; /* Teal button */
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    margin-top: 20px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.arrow-button:hover {
    background-color: #1b9db4; /* Darker teal on hover */
}

.choices {
    margin-bottom: 0px;
    border-radius: .375rem;
    --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);
    --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.choices__inner {
    margin-top: 0.25rem;
    background-color: white;
    padding: .5rem .75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.choices__input {
    margin-bottom: 0px;
    background-color: white;
}

.choices[data-type*=select-multiple] .choices__button, .choices[data-type*=text] .choices__button {
    border-left: none;
}

.choices__button {
    height: 24px !important; 
    width: 24px !important;
}

.is-disabled .choices__button {
    display: none;
}

.choice-element {
    max-height: 37px;
}

select.choice-element {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 0; /* Put it behind */
    pointer-events: none;
}

.choices__list--multiple .choices__item {
    color: var(--text-secondary-colour);
    background-color: var(--brand-secondary-colour);
    border: unset;
}

.choices__input:focus {
    box-shadow: unset;
}

.choices__list--dropdown, .choices__list[aria-expanded] {
    z-index: 100;
}

.visibility-hidden {
    visibility: hidden;
}

.information-container.wrapper {
    display: none;
}

/* Toogle Button */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-label {
    display: inline-block;
    width: 35px;
    height: 18px;
    background: grey;
    border-radius: 25px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease;
}

.toggle-label::before {
    content: "";
    width: 14px;
    height: 14px;
    background: white;
    position: absolute;
    top: 2px;
    left: 2px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.toggle-checkbox {
    display: none;
}

.toggle-checkbox:checked + .toggle-label {
    background: var(--brand-secondary-colour);
}

.toggle-checkbox:checked + .toggle-label::before {
    transform: translateX(15px);
}

/* Editing CSS */
.editing-toolbar {
    display: none;
}

.ql-editor {
    font-family: var(--font-family);
    font-size: var(--font-size);
    padding: 0px;
}

.html-editor .ql-editor {
    padding: 1rem;
}

.editing .editing-toolbar {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: #f3f4f6;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 3px 10px;
    display: flex;
    gap: 8px;
}

.editing .ql-editor::before {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border: 2px dotted var(--brand-secondary-colour);
  pointer-events: none; /* Ensures the pseudo-element doesn't block interactions */
}

.ql-tooltip {
    z-index: 100;
}

/* Tables */
th, td {
    border: 1px solid #ddd; /* Light grey border */
    padding: 8px;
    text-align: left;
}

th:first-child,
td:first-child {
    border-left: none;
}

th:last-child,
td:last-child {
    border-right: none;
}

tbody tr:hover {
    background-color: #F7F3FD;
}

/* Widgets */
.widget {
    border: 1px solid;
    border-color: var(--content-border-colour);
    box-sizing: content-box;
    border-radius: 12px;
    position: relative;
    background-color: var(--content-bg-colour);
    background-image: var(--content-bg-image);
}

@media screen and (max-width: 600px) {
    .widget-search {
        border: 0px;
    }

    .widget-search .form-actions {
        display: none;
    }

    .widget-search {
        background-color: transparent;
    }

    .widget-search form.advanced {
        background-color: white;
        border: 1px;
    }

    .widget-search form:not(.advanced) .field {
        padding-right: 0px;
        padding-left: 0px;
        padding-bottom: 0px;
        padding-top: 0.5rem;
    }
}

.widget.disabled {
    opacity: 0.7;
}

.widget-header {
    margin-bottom: 20px;
}

.widget h2 {
    color: #333333;
    font-weight: 900;
    font-size: 20px;
    line-height: 24px;    
}

.add-widget {
    display: none;
    flex-grow: 1;
    height: 1.5rem; 
    position: relative;
    background-color: #C7F4F3;
    margin-bottom: 1rem;
}

.add-widget::before {
    content: '';
    position: absolute;
    top: 50%; 
    left: 0;
    width: 100%;
    border-top: 2px dashed #1ACBB6;
    z-index: 1; 
}

.editing .add-widget {
    display: block;
}

.plus {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.5rem;
    height: 1.5rem;
    transform: translate(-50%, -50%); 
    z-index: 20; 
    color: #1ACBB6;
    background-color: white;
    border-radius: 50%;
    border: 1px solid #1ACBB6;
}

/* Forms */
fieldset {
    position: relative;
}

.form-actions {
    border-bottom-right-radius: 11px;
    border-bottom-left-radius: 11px;
}

.form-status {
    background-color: white;
    border: 1px solid #D0CCD5;
    padding: 5px 10px;
    border-radius: var(--buttons-border-radius)
}

input:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.field.required label:after {
    content: '*';
    color: #F0435A;
}

label.font-medium {
    font-weight: 900;
}

.hidden-field {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 0;
    pointer-events: none;
}

form:not(.advanced) .field.advanced {
    display: none;
}

.toggle-link {
    display: inline-block;
    margin-top: 10px;
    cursor: pointer;
    color: #0077cc;
    text-decoration: underline;
}

#toggle-advanced:checked ~ .field.advanced,
#toggle-advanced:checked ~ .form-actions {
    display: block;
}

.array-field td {
    padding: 0px;
    border: none;
    border-bottom: 1px solid #ddd;
}

.array-field td input:not(:focus):not(:hover),
.array-field td textarea:not(:focus):not(:hover),
.array-field td .choices:not(:focus):not(:hover),
.array-field td .choices__inner:not(:focus):not(:hover) {
    background-color: transparent;
    box-shadow: none;
    border: none;
}

table .field,
table .static-field {
    padding: 0px;
}

table tr:nth-child(n+2) .field label, 
table tr:nth-child(n+2) .static-field label {
    display: none;
}

/* Buttons */
button {
    border-radius: var(--buttons-border-radius) !important;
}

.link-button {
    background-color: var(--button-primary-bg);
    color: var(--button-primary-fg);
    border-radius: var(--buttons-border-radius) !important;
}

.uppy-StatusBar-actionBtn {
    background-color: var(--brand-primary-colour) !important;
}

/* File Uploader */
.error-status {
    color: red;
    font-weight: 900;
}

.dragover .file-area {
    background-color: #c0c0c0;
}

.toolbar-item {
    border-right: 1px solid rgb(209 213 219);
    padding: 0.5rem;
}

.uppy-Dashboard-Item-preview img.uppy-Dashboard-Item-previewImg,
.file-area .file-preview {
    border-radius: 3px;
    height: 100%;
    object-fit: contain;
    transform: translateZ(0);
    width: 100%;
    border: 1px solid #e5e7eb;
}

.uppy-Dashboard-Item-preview img.uppy-Dashboard-Item-previewImg {
    min-height: 100%;
}

.uppy-StatusBar-actions {
    justify-content: end;
}

.fileItem[data-state="active"] .file-delete {
    display: inline-block;
}

.fileItem[data-state="deleted"] .file-restore {
    display: inline-block;
}

.fileItem[data-state="deleted"] .file-thumb {
    opacity: 0.1;
}

.file-delete {
    right: -8px;
    top: -8px;
    position: absolute; 
}

.file-restore {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.file-status {
    font-weight: 900;
}

.restriction-error {
    position: fixed;
    top: -4rem;
    background-color: #F0435A;
    width: 100%;
    padding: 1rem;
    border-radius: 6px;
    font-weight: 900;
    font-size: smaller;
}

/* Icons */
.icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--brand-primary-colour);
}

/* Tasks */
.task-list {
    display: flex;
    flex-direction: column;
}

.task-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-top: 1px solid #ddd;
    background-color: white;
}

.task-item.overdue {
    color: #721c24;
    background-color: #f8d7da;
}

.task-item.locked {
    background-color: #D0CCD555;
}

.task-item.complete .task-icon {
    color: #1ACBB6;
}

.task-item.incomplete .task-icon {
    color: #D0CCD5;
}

.task-item.locked .task-icon {
    color: #D0CCD5;
}

.icon.task-icon {
    margin-right: 0px;
}

.overdue .icon {
    color: #721c24;
}

.task-content .task-title {
    font-size: 16px;
    font-weight: 400;
    margin: 0;
    line-height: 1.2;
}

.task-content .task-title strong {
    font-weight: bold;
}

.task-content .task-due,
.task-content .task-received {
    font-size: 14px;
    color: #555;
    margin: 5px 0 0;
}

.task-content .task-title {
    font-size: 16px;
    font-weight: 400;
    margin: 0;
    line-height: 1.2;
}
  
.task-content .task-title strong {
    font-weight: bold;
}
  
.task-content .task-due,
.task-content .task-received {
    font-size: 14px;
    color: #555;
    margin: 5px 0 0;
}

/* Notices */
.alert-success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #155724;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 1rem;
    margin: 2rem;
    margin-top: 0;
}

.alert-error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #721c24;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 1rem;
    margin: 2rem;
    margin-top: 0;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border: 1px solid #856404;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 1rem;
    margin: 2rem;
    margin-top: 0;
}

/* Passwords */
.password-wrapper {
    display: flex;
    width: 100%;
}

.password-field {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px 0 0 6px;
    font-size: 1rem;
}

.toggle-password {
    padding: 0 12px;
    background-color: #f1f1f1;
    border: 1px solid #ccc;
    border-left: none;
    border-radius: 0 6px 6px 0 !important;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: background 0.2s;
}

.toggle-password:hover {
    background-color: #e2e2e2;
}

/* API */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--brand-primary-colour);
    transition: width 0.5s ease;
    opacity: 0;
    z-index: 1500;
}

/* Dropdowns */
.dropdown {
    position: relative;
    display: inline-flex;
}

.dropdown a {
    position: relative;
    display: inline-flex;
}

.dropdown-toggle {
    border: none;
    cursor: pointer;
}

.dropdown-split .dropdown-toggle {
    border-top-left-radius: 0px !important;
    border-bottom-left-radius: 0px !important;
    padding-left: 0.5rem;
}

.dropdown-split a {
    border-top-right-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
    border-right: 1px solid white;
    padding-right: 0.5rem;
}
.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    top: 40px;
}

.dropdown-menu a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-menu a:hover {
    background-color: #ddd;
}

.dropdown.show .dropdown-menu {
    display: block;
}

/* Dialog */
dialog {
    border-radius: 16px;
    max-height: 75vh;
    min-height: 75vh;
    width: 80vw;
}

dialog::backdrop {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(3px);
}

dialog .header {
    z-index: 100;
    position: sticky;
    top: 0px;
    background-color: white;
    border-bottom: 1px solid #ddd;
    padding-top: 1rem;
}

dialog .header h2 {
    margin-bottom: 1rem;
}

dialog nav {
    border-top: 1px solid #ddd;
}

#popup-inner {
    overflow-y: hidden;
    display: flex;
}

dialog .content {
    overflow-y: auto;
}

dialog .widget {
    border: none;
    border-left: 1px solid #ddd;
    /*border-radius: 0; */
}

@media screen and (max-width: 600px) {
    dialog {
        border-bottom-left-radius: 0px;
        border-bottom-right-radius: 0px;
        bottom: 0px;
        top: unset;
        margin: 0px;
        max-height: 80vh;
        min-height: unset;
        min-width: 100vw;
        animation: fadeInUp 0.3s ease-out;
    }   

    dialog nav.bg-white {
        background-color: #f8f8f8;
    }

    dialog .content {
        padding-bottom: 0px;
        padding-top: 1rem;
    }

    dialog .widget {
        border: none;
    }

    dialog #popup-inner {
        padding: 0px;
    }

    dialog::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
        height: 5px;
        background-color: #ccc;
        border-radius: 9999px;
        margin-top: 8px;
        z-index: 150;
    }

    .section-info {
        display: none;
    }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media screen and (max-width: 600px) {
    .paginator {
        flex-direction: column-reverse;
    }

    .paginator nav {
        margin-bottom: 1rem;
    }

    .paginator nav a {
        padding: 1rem;
        background-color: var(--content-bg-colour);
    }
}