@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

:root {
    --text-color: #212529;
    --white: #ffffff;
    --primary: #b45312;
    --primary-light: #fdf3ed;
    --primary-border: #f8d2b9;
    --secondary: #0f172a;
    --background: #f1f5f9;
    --text: #686f7d;
    --code: #e2e8f0;
    --input: #f9fafb;
    --input-border: #e5e7eb;
    --icon: #8e96a4;
    --pill: #f3f4f6;
    --success: #11803a;
    --success-light: #dcfce7;
    --danger: #cc1b41;
    --danger-light: #fbe5e9;
    --info: #2f67c4;
    --info-light: #e2edff;
    --purple: #ba23e0;
    --purple-light: #f5e1fa;
}

/*?---- Scrollbar-----*/

::-webkit-scrollbar {
    width: 0.625rem;
    height: 0.625rem;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 0.625rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;

    body {
        font-family: "Roboto", sans-serif;
        background-color: var(--background);
        font-size: 16px;
        color: var(--text);

        a {
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
        }

        ul {
            list-style-type: none;
            padding: 0;
            margin: 0;
        }

        input.form-control,
        select.form-select,
        textarea.form-control,
        .ts-wrapper.form-select {
            background-color: var(--input);
            border: 1px solid var(--input-border);
            padding: 0.625rem 0.75rem 0.625rem 2.5rem;
            color: var(--text-color);

            &::placeholder {
                color: var(--icon);
                font-weight: normal;
            }

            &:focus {
                background-color: var(--input);
                border-color: var(--primary);
                box-shadow: none;
            }
        }

        select.form-select {
            padding-right: 2.25rem;
        }

        :is(input.form-control, textarea.form-control):read-only {
            background-color: var(--pill);
        }

        input[type="checkbox"] {
            width: 1.125rem;
            height: 1.125rem;
            border-radius: 0.125rem;
            accent-color: var(--primary);
            cursor: pointer;
            overflow: hidden;

            /* Every checkbox is the browser's own box in the brand colour (as on Permissions),
               including Bootstrap's .form-check-input, which would otherwise draw its own. */
            &.form-check-input {
                appearance: auto;
                border: none;
                border-radius: 0.125rem;
                background: none;

                &:focus {
                    box-shadow: none;
                }

                &:focus-visible {
                    outline: 2px solid var(--primary);
                    outline-offset: 2px;
                }
            }
        }

        input[type="radio"] {
            width: 1.125rem;
            height: 1.125rem;
            cursor: pointer;

            &:checked {
                background-color: var(--primary);
                border-color: var(--primary-border);
            }

            &:focus {
                box-shadow: 0 0 0 0.25rem var(--primary-light);
            }
        }
    }
}

svg[width="46"] {
    min-width: 2.875rem;
    height: 2.875rem;
}

svg[width="26"] {
    min-width: 1.625rem;
    height: 1.625rem;
}

svg[width="24"] {
    min-width: 1.5rem;
    height: 1.5rem;
}

svg[width="22"] {
    min-width: 1.375rem;
    height: 1.375rem;
}

svg[width="20"] {
    min-width: 1.25rem;
    height: 1.25rem;
}

svg[width="18"] {
    min-width: 1.125rem;
    height: 1.125rem;
}

svg[width="16"] {
    min-width: 1rem;
    height: 1rem;
}

svg[width="15"] {
    min-width: 0.938rem;
    height: 0.938rem;
}

svg[width="14"] {
    min-width: 0.875rem;
    height: 0.875rem;
}

img[src=""] {
    opacity: 0;
}

.highlight-text {
    color: var(--primary);
    font-weight: 600;
}

.dim-text {
    color: var(--text);
}

.dark-text {
    color: var(--text-color);
}

.hide-element {
    display: none;
}

.show-element {
    display: block;
}

.gap-25 {
    gap: 0.521vw;
}

/*?---- Button-----*/

button.btn.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    font-weight: 500;

    &:is(:hover, :active) {
        background-color: var(--primary);
        border-color: var(--primary);
    }

    &:focus-visible {
        box-shadow: none;
        outline: -webkit-focus-ring-color auto 1px;
    }
}

button:disabled {
    opacity: 0.6;
}

/*?---- Modals-----*/

.modal {
    .modal-header {
        background-color: var(--primary);
        color: var(--white);
        padding: 1rem 1.25rem;

        h2 {
            font-size: 1.125rem;
            font-weight: bold;
            color: #fff;
        }

        .btn-close {
            scale: 0.9;
            filter: invert(1);
            opacity: 1;

            &:focus-visible {
                border: 1px solid #fff;
            }
        }
    }

    .modal-body {
        padding: 1.25rem;
    }

    .modal-footer {
        border-top-color: var(--input-border);
        padding: 1rem 1.25rem;
    }
}

.swal2-popup div:where(.swal2-icon) {
    background: url("../Images/successwalls-logo.png") center/contain no-repeat;
    width: 14rem;
    height: 2.75rem;
    border: none;
    margin: 1.5rem auto 1rem;
    border-radius: 0;

    .swal2-icon-content {
        display: none;
    }
}

h2#swal2-title {
    color: var(--text-color);
    padding: 0 1.5rem;
    font-size: 1.5rem;

    + .swal2-html-container {
        padding: 0.875rem 1.5rem 0.25rem;
        color: var(--text);
        font-size: 1rem;
    }
}

div.dashboard-page ~ div:where(.swal2-container) button:where(.swal2-styled) {
    padding: 0.625rem 1.125rem;
    margin: 0 0.375rem;
    border: 1px solid var(--primary);

    &:focus-visible {
        box-shadow: 0 0 0 0.25rem var(--primary-border);
    }

    &.swal2-confirm {
        background-color: var(--primary) !important;
    }

    &.swal2-cancel {
        background-color: transparent !important;
        color: var(--danger);
        border-color: var(--danger);
    }
}

div.dashboard-page ~ div:where(.swal2-container) div:where(.swal2-popup) {
    padding-bottom: 1.5rem;
}

/*?---- Off Canvas-----*/

div.offcanvas.offcanvas-end {
    width: 35rem;

    .offcanvas-header {
        background-color: var(--primary);
        color: var(--white);
        padding: 1rem 1.25rem;
    }

    h2 {
        font-size: 1.125rem;
        font-weight: bold;
        color: var(--white);
    }

    .btn-close {
        scale: 0.9;
        filter: invert(1);
        opacity: 1;

        &:focus-visible {
            border: 1px solid #fff;
        }
    }

    .offcanvas-body {
        padding: 1.25rem;
        display: flex;
        flex-direction: column;

        &::-webkit-scrollbar {
            width: 0.375rem;
            height: 0.375rem;
        }

        &::-webkit-scrollbar-thumb {
            background-color: var(--input-border);
        }
    }

    input.form-control,
    textarea.form-control,
    select.form-select,
    .ts-wrapper.form-select .ts-control,
    .ts-wrapper.form-select.multi.has-items .ts-control {
        padding-left: 0.75rem;
    }

    .offcanvas-footer {
        padding: 1.25rem;
        background-color: var(--input);
        border-top: 1px solid var(--input-border);

        button {
            margin-left: auto;
        }
    }
}

/*?----Pickers (Tom Select, resources/js/lib/picker.js; SWS-229 replaced select2)-----*/

.ts-wrapper.form-select {
    margin: 0 !important;
    border-radius: 0.375rem !important;

    /* the same padding as the other form controls: room for the field's icon on the left */
    .ts-control,
    &.multi.has-items .ts-control {
        padding: 0.625rem 2.25rem 0.625rem 2.5rem;
        min-height: fit-content;
        line-height: 1.5rem;
        gap: 0.375rem;
    }

    &.focus {
        border-color: var(--primary);
        box-shadow: none;
    }

    &.multi .ts-control > .item {
        background-color: var(--primary-light);
        border: 1px solid var(--primary);
        margin: 0;
        border-radius: 0.25rem;
        color: var(--primary);

        .remove {
            color: var(--primary);
            border-color: var(--primary);

            &:hover {
                background-color: var(--primary-border);
                color: var(--primary);
            }
        }
    }
}

.ts-dropdown {
    border: none;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    border-radius: 0.375rem;
    overflow: hidden;

    .option.active {
        background-color: var(--primary);
        color: #fff;
    }

    .option.selected {
        background-color: var(--pill);
    }

    .option.active.selected {
        color: var(--text-color);
    }

    .ts-dropdown-content {
        &::-webkit-scrollbar {
            width: 0.375rem;
            height: 0.375rem;
        }

        &::-webkit-scrollbar-thumb {
            background-color: var(--input-border);
        }
    }
}

/*?---- Login-----*/

.login-page-admin {
    min-height: 100vh;
    width: 100%;
}

.login-background {
    display: flex;
    background-image: linear-gradient(225deg, #a34a0f, var(--primary), #d16015);
    gap: 2rem;

    h1 {
        font-size: 2.375rem;
        font-weight: 800;
        color: #fff;
    }

    p {
        font-weight: 300;
        font-size: 1.25rem;
    }

    ul {
        text-align: left;
        margin: 0 auto;
        font-size: 0.875rem;

        li {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin-bottom: 0.75rem;

            &:last-of-type {
                margin-bottom: 0;
            }

            span {
                width: 1.5rem;
                height: 1.5rem;
                display: flex;
                align-items: center;
                justify-content: center;
                background-color: #fff;
                color: var(--primary);
                border-radius: 50rem;
            }
        }
    }
}

.register {
    padding: 3rem 1.5rem;
}

.login-form-admin {
    width: 31.25rem;
    max-width: 100%;
    background-color: var(--white);
    padding: 3rem;
    margin: auto;
    border-radius: 1.5rem;
    box-shadow: 0 0.5rem 3rem rgba(0, 0, 0, 0.06);

    .header {
        span {
            font-size: 34px;
            color: var(--btn-color);
            font-weight: 700;
        }
    }

    .login-content figure {
        margin: 0 auto 0.5rem;
    }

    .login-head {
        h2,
        h1 {
            text-align: center;
            font-size: 2.125rem;
            font-weight: 800;
            margin: 1rem auto 0.5rem;
            color: var(--primary);
        }

        p {
            text-align: center;
            font-weight: 400;
            font-size: 1rem;
            margin-bottom: 1.5rem;
        }
    }

    .login {
        background-image: linear-gradient(var(--primary), #a34a0f);
        color: var(--white);
        margin: 1.875rem 0 0.625rem;
        font-size: 1.125rem;
        font-weight: bold;
        padding: 0.625rem;
        width: 100%;
        box-shadow: 0 0.25rem 1.25rem rgba(255, 117, 24, 0.3);
        border-radius: 0.375rem;
        border: 0;
    }

    .remember {
        margin-top: 0.625rem;
        font-size: 0.875rem;

        label {
            margin-bottom: 0;
            font-weight: normal;
            color: var(--text);
        }
    }

    .gotoRegisterText {
        text-align: center;
        font-size: 0.875rem;
        margin-bottom: 0;
    }
}

label:has(+ .input-group) {
    font-size: 0.875rem;
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.input-group {
    svg,
    input[type="color"] {
        position: absolute;
        top: 0.813rem;
        left: 0.75rem;
        color: var(--icon);
        z-index: 10;
    }

    .password-eye-icon {
        position: absolute;
        top: 0.938rem;
        right: 0.75rem;
        background: transparent;
        color: var(--icon);
        padding: 0;
        border: 0;
        z-index: 10;

        &:has(+ .outlineBtn) {
            right: 6.375rem;
        }
    }

    input[type="color"] {
        top: 0.5rem;
        width: 1.875rem;
        height: 1.875rem;

        &::-webkit-color-swatch {
            border-radius: 0;
        }

        + input.form-control {
            padding-left: 3.125rem;
        }

        &:focus {
            background-color: transparent;
            border-color: transparent;
            outline: -webkit-focus-ring-color auto 1px;
        }
    }

    span.input-group-text,
    .outlineBtn {
        padding: 0.625rem 0.75rem;
        color: var(--text-color);
        background-color: var(--primary-light);
        border: 1px solid var(--primary-border);

        + input {
            padding-left: 0.75rem;
        }
    }

    .outlineBtn {
        color: var(--primary);
        font-weight: 500;
    }
}

input[type="file"]::file-selector-button {
    background-color: var(--primary-light);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-weight: 500;
    margin-right: 0.625rem;
    cursor: pointer;
}

/*?----Skip Navigation Links-----*/

.skip-links {
    background-color: var(--input);
    padding: 0.625rem 1rem;
    border: 1px solid var(--primary-border);
    border-radius: 0 0 1rem 1rem;
    box-shadow: 0 0.25rem 0.75rem rgba(255, 117, 24, 0.05);
    gap: 0.625rem;
    z-index: 999;
    left: 50%;
    translate: -50% -100%;
    transition: all 0.5s;

    &:focus-within {
        translate: -50% 0;
    }

    a {
        background: #fff;
        color: var(--text);
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
        box-shadow: inset 0 0 0 1px var(--input-border);

        &:focus-visible {
            background: linear-gradient(var(--primary), #a34a0f);
            color: #fff;
            box-shadow: 0 0.25rem 0.75rem rgba(255, 117, 24, 0.3);
            outline: none;

            &:hover {
                background: linear-gradient(var(--primary), #a34a0f);
            }
        }

        &:hover {
            background: #fff;
        }
    }
}

/*?----Header-----*/

.dashboard-page header {
    padding: 1rem 2rem;
    background: var(--white);
    margin-left: 17.5rem;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 997;
    box-shadow: 0 0.125rem 0.875rem rgba(0, 0, 0, 0.03);
    transition: 0.3s ease-in;
}

button.toggle-button {
    color: var(--primary);
    border: 0;
    background-color: transparent;
}

.header-name {
    color: var(--text-color);
    font-size: 1.25rem;
    font-weight: 600;
    margin-left: 1.5rem;
    gap: 0.625rem;

    img {
        width: 2.375rem;
    }
}

button.notification {
    border: 0;
    background-color: transparent;
    margin: 0 1.25rem 0 auto;
    color: var(--icon);
}

.user-detail {
    gap: 0.625rem;
    border: 0;
    background-color: transparent;

    .img {
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 50%;
        border: 1px solid var(--input-border);
        box-shadow: 0px 0.125rem 0.25rem 0px rgba(0, 0, 0, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: top;
        }
    }
}

.profileName {
    text-align: left;

    span {
        color: var(--text-color);
        font-size: 0.875rem;
        font-weight: 600;
    }

    p {
        font-size: 0.75rem;
        margin-bottom: 0;
        color: var(--text);
        line-height: normal;
    }
}

button.dropdown-toggle {
    &::after {
        content: "\f078";
        font-family: "Font Awesome 6 Free";
        font-weight: 600;
        font-size: 0.625rem;
        color: var(--icon);
        margin: 0 0 0 0.25rem;
        vertical-align: middle;
        border: 0;
    }

    + ul.dropdown-menu {
        margin-top: 1rem !important;
        box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
        border: none;
        padding: 0.625rem;
        width: -webkit-fill-available;
        min-width: 12.5rem;

        a.dropdown-item {
            display: flex;
            align-items: center;
            gap: 0.375rem;
            color: var(--text);
            font-size: 0.875rem;
            font-weight: 500;
            padding: 0.5rem;
            border-radius: 0.25rem;

            &:active {
                background-color: var(--primary);
                color: var(--white);
            }
        }

        li:last-of-type a {
            color: var(--danger);
        }
    }
}

/*?----Sidebar-----*/

.sidebar {
    background-color: var(--white);
    width: 17.5rem;
    left: 0px;
    top: 0;
    position: fixed;
    height: 100vh;
    z-index: 998;
    transition: 0.3s ease-in;
    box-shadow: 0.25rem 0px 0.375rem rgba(0, 0, 0, 0.03);
    overflow: hidden;

    * {
        transition: all 0.3s;
    }

    .logo {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1rem 0;
        border-bottom: 1px solid var(--pill);

        .secondaryLogo {
            display: none;
        }
    }

    ul {
        display: flex;
        flex-direction: column;
        gap: 0.375rem;
        padding: 1rem 0.75rem;

        li {
            a {
                display: flex;
                align-items: center;
                padding: 0.875rem 1rem;
                border-radius: 0.375rem;
                color: var(--text);
                font-weight: 500;
                gap: 0.625rem;
                line-height: 1;

                &:hover {
                    background-color: var(--pill);
                    color: var(--text);
                }
            }

            &.active a {
                background-color: var(--primary-light);
                color: var(--primary);
                font-weight: 600;
                border-left: 0.25rem solid var(--primary);

                svg {
                    stroke-width: 2;
                }
            }
        }
    }
}

.sidebar-heading {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    + span {
        margin-left: auto;
    }
}

.close-sidebar {
    position: absolute;
    top: 2.313rem;
    right: -1rem;
    display: none;
    width: 2rem;
    aspect-ratio: 1;
    background-color: var(--primary-light);
    color: var(--primary);
    cursor: pointer;
}

.nav-dropdown.list-open {
    background-color: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
    border-left: 0.25rem solid var(--primary);

    &:hover {
        background-color: var(--primary-light);
        color: var(--primary);
    }

    svg {
        stroke-width: 2;
    }

    span:last-child svg {
        rotate: -180deg;
    }

    + ul.submenu-list {
        margin-top: 0.375rem;
        max-height: 16rem;
    }
}

ul.submenu-list {
    background-color: #fff;
    padding: 0 0 0 1.25rem;
    margin-top: 0;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s linear;

    li.active a {
        background-color: transparent;
        color: var(--primary);
        font-weight: 600;
        border-left: none;
    }
}

.main-content.close {
    .sidebar {
        width: 4.875rem;
        overflow: visible;

        .mainLogo {
            display: none;
        }

        .secondaryLogo {
            display: block;
        }

        > ul > li.active a,
        .nav-dropdown.list-open {
            padding-left: 0.75rem;
        }

        li:has(.nav-dropdown) {
            position: relative;
        }
    }

    .sidebar-heading {
        opacity: 0;
        visibility: hidden;

        + span {
            scale: 0.8;
            margin-left: -1.5rem;
            rotate: -90deg;
        }
    }

    ul.submenu-list {
        position: absolute;
        top: 0;
        left: 140%;
        margin-top: 0;
        padding-left: 0;
        border-radius: 0.375rem;
        box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.1);

        .sidebar-heading {
            opacity: 1;
            visibility: visible;
        }
    }

    .content {
        margin-left: 4.875rem;
    }
}

.dashboard-page header.close {
    margin-left: 4.875rem;
}

/*?----Dashboard-----*/

.content {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 4.5rem);
    margin-left: 17.5rem;
    padding: 2rem;
    scroll-margin-top: 4.5rem;
    transition: 0.3s ease-in;
    counter-reset: num;

    h1 {
        font-size: 1.5rem;
        font-weight: bold;
        color: var(--text-color);
    }
}

.mainBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.125rem;
    background: linear-gradient(135deg, #d16015, #a34a0f);
    box-shadow: 0 0.25rem 0.75rem rgba(255, 117, 24, 0.3);
    color: #fff;
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    gap: 0.375rem;

    &:hover {
        background: linear-gradient(135deg, #a34a0f, #d16015);
    }

    &.outlineBtn {
        background: var(--primary-light);
        box-shadow: inset 0 0 0 0.125rem var(--primary);
        color: var(--primary);

        &:hover {
            background: #fcf0e8;
        }
    }

    &.dimBtn {
        background: var(--pill);
        box-shadow: inset 0 0 0 0.125rem var(--input-border);
        color: var(--text);

        &:hover {
            background: var(--input);
        }
    }

    &.mainBtn-sm {
        font-size: 0.875rem;
        gap: 0.25rem;
        padding: 0.5rem 1rem;
        border-radius: 0.25rem;
    }

    &.mainBtn-cancel {
        background: transparent;
        box-shadow: inset 0 0 0 0.125rem var(--danger);
        color: var(--danger);

        &:hover {
            background: var(--danger-light);
        }
    }
}

/*?----Customers Data Table-----*/

.content .data-table,
.profile {
    padding: 1.5rem;
    margin-top: 1.5rem;
    border-radius: 1rem;
    background-color: #fff;
    box-shadow: 0 0.125rem 0.875rem rgba(0, 0, 0, 0.03);
}

section.data-table {
    div.dt-layout-row:first-child {
        margin-top: 0;

        .dt-length {
            justify-content: center;
        }

        .dt-input {
            padding: 0.375rem 0.75rem;
            align-items: center;
            border-radius: 0.375rem;
            border: 1px solid var(--input-border);
            background-color: var(--input);
        }

        .dt-search input {
            margin-left: 0.625rem;
        }
    }

    select.dt-input + label {
        margin-left: 0.625rem;
    }

    div.dt-layout-row:last-child {
        margin-bottom: 0;
    }

    div.dt-layout-row.dt-layout-table {
        margin: 1rem 0;
        border-radius: 0.375rem;
        overflow: hidden;
    }

    table.display tr th {
        background-color: var(--primary);
        color: var(--white);
        text-align: start;
        border: none;
        padding: 0.875rem;
    }

    table.display tr td {
        padding: 0.625rem 0.875rem;
    }

    table.dataTable thead tr th.dt-orderable-asc span.dt-column-order:before,
    table.dataTable thead tr th.dt-orderable-asc span.dt-column-order:after,
    table.dataTable thead tr th.dt-orderable-desc span.dt-column-order:before,
    table.dataTable thead tr th.dt-ordering-asc span.dt-column-order:before,
    table.dataTable thead tr th.dt-ordering-desc span.dt-column-order:before,
    table.dataTable thead tr td.dt-orderable-asc span.dt-column-order:before,
    table.dataTable thead tr td.dt-orderable-desc span.dt-column-order:before,
    table.dataTable thead tr td.dt-ordering-asc span.dt-column-order:before,
    table.dataTable thead tr td.dt-ordering-desc span.dt-column-order:before {
        opacity: 0.5;
    }

    table.dataTable thead > tr > th.dt-ordering-asc span.dt-column-order:before,
    table.dataTable thead > tr > th.dt-ordering-desc span.dt-column-order:after,
    table.dataTable thead > tr > td.dt-ordering-asc span.dt-column-order:before,
    table.dataTable
        thead
        > tr
        > td.dt-ordering-desc
        span.dt-column-order:after {
        opacity: 1;
    }

    table.dataTable.display > tbody > tr > * {
        border-top: 1px solid var(--pill);
        box-shadow: none;
        text-align: start;
    }

    table.dataTable > tbody > tr:nth-child(even) {
        background-color: var(--input);
    }

    &.dt-empty-footer .dt-scroll-body {
        border-bottom: none;
    }

    div.dt-container.dt-empty-footer
        :is(.dt-scroll-body, tbody > tr:last-child > *) {
        border-bottom-color: var(--pill);
    }

    div.dt-container .dt-paging .dt-paging-button {
        background: var(--input);
        border-color: var(--input-border);
        border-radius: 0.375rem;
        margin-left: 0.375rem;
        color: var(--text) !important;

        &.disabled,
        &.disabled:is(:hover, :active) {
            background: var(--input);
            border-color: var(--input-border);
            color: var(--icon) !important;
        }

        &:is(.current, :hover, :active) {
            background: var(--primary);
            border-color: var(--primary);
            color: #fff !important;
        }
    }

    table.dataTable.display > tbody > tr:nth-child(odd) > .sorting_1,
    table.dataTable.order-column.stripe
        > tbody
        > tr:nth-child(odd)
        > .sorting_1,
    table.dataTable.display tbody tr:hover > .sorting_1,
    table.dataTable.order-column.hover tbody tr:hover > .sorting_1 {
        box-shadow: none;
    }
}

.main-content.close section.data-table .dt-scroll-headInner {
    width: 100% !important;
}

.customer-cell :is(a, span) {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;

    img {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2.5rem;
        height: 2.5rem;
        object-fit: cover;
        object-position: top;
        background-color: var(--primary-light);
        border-radius: 50%;
    }
}

.count-cell {
    display: inline-block;
    background-color: var(--pill);
    color: #686f7c;
    padding: 0.125rem 1rem;
    border-radius: 50rem;
    font-weight: 500;
}

.actionBtns {
    display: inline-flex;
    align-items: center;

    a,
    button {
        width: 2.25rem;
        aspect-ratio: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;

        &.view-action {
            color: var(--info);
            background-color: var(--info-light);
        }

        &.edit-action {
            color: var(--success);
            background-color: var(--success-light);
        }

        &.delete-action {
            color: var(--danger);
            background-color: var(--danger-light);
        }

        &.secondary-btn {
            color: var(--purple);
            background-color: var(--purple-light);
        }

        &.copy-action {
            color: var(--info);
            background-color: var(--info-light);
            transition: all 0.25s ease;

            &.copied {
                color: #fff;
                background-color: var(--success);
            }
        }
    }
}

td.text-truncate {
    max-width: 25vh;
}

/*?----Create Customer-----*/

div.breadcrumb {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    gap: 0.25rem;
}

.profile {
    &.profile-img {
        width: 18.75rem;
        max-width: 100%;
    }

    .profile-photo {
        > p {
            color: var(--text-color);
        }

        > span {
            font-size: 0.875rem;
        }
    }

    .profile-logo div.overflow-hidden {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 6.375rem;
        height: 6.375rem;
        background-color: var(--primary-light);
        border: 1px solid var(--primary);
        color: var(--primary);

        svg {
            position: absolute;
            top: 50%;
            left: 50%;
            translate: -50% -50%;
            z-index: -1;
        }
    }

    .profile-pick {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top;
    }

    .add-btn {
        width: 1.5rem;
        aspect-ratio: 1;
        background-color: var(--primary);
        position: absolute;
        right: 0.125rem;
        bottom: 0.125rem;
        border: none;
    }
}

.profile-form-heading {
    border-bottom: 1px solid var(--input-border);

    h2 {
        font-size: 1.125rem;
        color: var(--text-color);
    }

    span {
        font-size: 0.875rem;
    }

    div.position-relative {
        padding-left: 3.5rem;

        &::before {
            content: counter(num);
            counter-increment: num;
            position: absolute;
            top: 48%;
            left: 0;
            transform: translateY(-50%);
            display: flex;
            align-items: center;
            justify-content: center;
            width: 2.5rem;
            aspect-ratio: 1;
            background-color: var(--primary);
            color: #fff;
            font-weight: bold;
            border-radius: 0.25rem;
        }
    }
}

.profile-footer {
    display: flex;
    align-items: center;
    justify-content: end;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.box:has(+ .box-2 cropper-canvas) {
    margin-bottom: 1rem;
}

/*?----Preview Login-----*/

.modal-body:has(.preview-container) {
    padding: 2rem;
}

.preview-container {
    background-image: linear-gradient(225deg, #a34a0f, var(--primary), #d16015);
    width: 28.75rem;
    max-width: 100%;
    padding: 1.5rem;
    font-size: 0.875rem;
    border-radius: 0.625rem;
    margin: auto;
}

.preview {
    background-color: #fff;
    border-radius: 0.375rem;
    padding: 2rem;

    .remember {
        font-size: 0.75rem;

        input[type="checkbox"]:disabled {
            width: 0.875rem;
            height: 0.875rem;
            margin-right: 0.375rem;
            cursor: auto;
        }
    }

    .mainBtn {
        padding: 0.5rem 1rem;
        border-radius: 0.25rem;
        font-size: 1rem;
        margin: 1.25rem auto 0.5rem;

        + p {
            font-size: 0.75rem;
        }
    }
}

.login-preview-head {
    margin: 0.75rem auto 1rem;

    p {
        font-size: 1.625rem;
        color: var(--primary);
        font-weight: 800;
    }
}

.preview-input-container {
    margin-bottom: 0.75rem;

    label {
        font-size: 0.75rem;
    }

    svg {
        top: 0.656rem;
    }

    input.form-control:disabled {
        padding: 0.5rem 0.625rem 0.5rem 2.125rem;
        font-size: 0.875rem;
        background-color: var(--input);
    }

    i {
        font-size: 0.875rem;
    }
}

/*?----View Customer Admin-----*/

.label-span,
.audit-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

/*?----Data Fields Table-----*/

.value-pill,
.audit-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    background-color: var(--info-light);
    color: var(--info);
    font-size: 0.875rem;
    padding: 0.25rem 1rem;
    border-radius: 50rem;
    font-weight: 500;

    &.danger-pill {
        background-color: var(--danger-light);
        color: var(--danger);
    }

    &.purple-pill {
        background-color: var(--purple-light);
        color: var(--purple);
    }
}

/*?----Create Data Field-----*/

.data-values {
    margin-top: 1.25rem;
}

.data-values-heading {
    p {
        color: var(--text-color);
        font-weight: 600;
        margin-bottom: 0;
    }

    span {
        color: var(--text);
        font-size: 0.875rem;
    }
}

div.data-accordion {
    .accordion-item {
        margin-top: 0.875rem;
        border-color: var(--primary-border);
        border-radius: 0.5rem;
        overflow: hidden;

        &:not(:first-of-type) {
            border-top: 1px solid var(--input-border);
        }
    }

    .accordion-button {
        color: var(--text-color);
        background-color: var(--primary-light);
        color: var(--primary);
        font-weight: bold;
        box-shadow: none;

        &::after {
            width: 0.875rem;
            height: 0.875rem;
            background-size: 0.875rem;
            filter: contrast(0);
        }

        span {
            flex-grow: 1;
        }

        .value-pill {
            margin: 0 0.625rem;
            flex-grow: 0;
            line-height: 1.5;
        }

        > svg {
            color: var(--icon);
            margin-left: 0.625rem;
            order: 1;
        }
    }

    .accordion-body {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        background-color: var(--input);
        border-top: 1px solid var(--primary-border);

        :is(input, textarea).form-control,
        .ts-wrapper.form-select {
            background-color: #fff;
        }
    }
}

.color-input-container {
    gap: 0.75rem;
}

/*?----Create Base Template-----*/

/* The builders' work area (TE4-07): one flex row under the header and toolbar, which wraps instead
   of overlaying: the left rail (272-300px), the canvas (the rest), then at 1600px and wider the
   docked element settings (280-320px, TE4-08). It fills the window below the toolbar (the rail and
   the settings scroll inside it); straight under the header's toolbar it is flush with it. */
.builder-work-area {
    flex-wrap: wrap;
    min-height: 30rem;
    margin-top: 1.5rem;
}

.builder-header + .builder-toolbar ~ .builder-work-area,
.builder-header + .builder-toolbar ~ * .builder-work-area {
    margin-top: 0;
}

/* Flush: white, a border on its right. Its content never sizes it (a long bio never widens it,
   the palette never lengthens the page): it is as tall as the row, at least 20rem wrapped onto a
   line of its own. Collapsed (.fit-height), it is its row of tabs. */
section:has(.element-heading) {
    flex: 0 1 18.75rem;
    min-width: 17rem;
    min-height: 20rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-right: 1px solid var(--input-border);
    border-radius: 0;
    box-shadow: none;
    contain: size;

    &.fit-height {
        align-self: flex-start;
        min-height: 0;
        contain: none;
    }

    /* The canvas: the rest of the row, the slide centred in it on the page's ground. */
    + section {
        display: flex;
        flex: 999 1 32.5rem;
        min-width: 0;
        margin: 0;
        padding: 2rem;
    }
}

/* The left rail's first row (TE4-06): its tabs (ThemeTemplate/_rail-tabs), then the collapse toggle. */
.element-heading {
    flex-shrink: 0;
    align-items: stretch;
    gap: 0.125rem;
    padding: 0.625rem 0.75rem 0;
    border-bottom: 1px solid var(--input-border);

    + div {
        flex: 1 1 auto;
        min-height: 0;

        &::-webkit-scrollbar {
            width: 0.375rem;
            height: 0.375rem;
        }

        &::-webkit-scrollbar-thumb {
            background-color: var(--input-border);
        }
    }
}

.svg-block {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    aspect-ratio: 1;
    background-color: var(--primary);
    color: #fff;
    border-radius: 0.25rem;
}

.collapse-expand {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    color: var(--text);

    &:hover {
        background-color: var(--pill);
        color: var(--text-color);
    }

    &:focus-visible {
        outline: 0.125rem solid var(--primary);
        outline-offset: -0.125rem;
    }
}

.element-container {
    margin: 0 0.375rem 0.875rem 0;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid var(--pill);

    * {
        transition: all 0.3s;
    }

    &:last-of-type {
        margin-bottom: 0;
        padding-bottom: 0;
        border: none;
    }

    > span {
        display: block;
        text-transform: uppercase;
        font-size: 0.875rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
    }
}

.element-type {
    display: block;
    font-weight: 600;
    color: var(--text-color);
}

.element {
    display: flex;
    align-items: center;
    padding: 0.625rem;
    background-color: transparent;
    color: var(--text);
    border: 1px solid var(--input-border);
    border-radius: 0.375rem;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    width: 100%;

    &:last-of-type {
        margin-bottom: 0;
    }

    .svg-block {
        width: 1.875rem;
        background-color: var(--pill);
        color: var(--icon);
    }

    &:hover {
        background-color: var(--primary-light);
        border-color: var(--primary-border);
        color: var(--primary);

        .svg-block {
            background-color: #fff;
            color: var(--primary);
        }
    }
}

/* Shapes and decoration in the builder's rail (TE3-04, template-edit/shapes.js): two to a row
   inside the rail's width, each with its preview drawn in the kit. */
.shape-library-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;

    .shape-library-item {
        margin: 0;
        padding: 0.5rem;
        font-size: 0.8125rem;
        text-align: left;
        cursor: grab;

        > span:last-child {
            min-width: 0;
            overflow-wrap: anywhere;
        }
    }

    .shape-library-preview {
        flex: none;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 1.875rem;
        padding: 0.25rem;
        border-radius: 0.25rem;

        img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }
    }
}

/* A shape's settings (ThemeTemplate/_shape-controls): a colour with its role, and a gradient's
   colours one to a row. The colour sits over the start of the role select (.input-group). */
.shape-color .form-select {
    flex: 1 1 auto;
    padding-left: 3.125rem;
}

.shape-stop {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr) 4.5rem auto;
    gap: 0.375rem;
    align-items: center;
    margin-bottom: 0.375rem;
}

/* Image masks (TE3-05, resources/js/lib/theme-masks.js): one rule for the wall slide
   (wall/_image-mask) and the builder canvas (template-edit/image-mask-art.js, where the
   .element-body is the .sw-mask and its image layers are frames). The box carries the mask's
   custom properties, lengths in canvas px scaled to the slide as text is (--sw-mask-px). A
   rectangle, rounded rectangle, circle (an ellipse filling the box) and arch (radii far too large,
   which CSS scales down to half the width, or the height) are the frame's border-radius, so its
   border and the clip follow the curve; a diagonal is a clip-path, its border drawn on the
   .sw-mask-edge polygon (a stroke twice its width, half of it clipped away). The shadow is a
   drop-shadow of what is drawn. The image fills (cover) or fits (contain) the frame around the
   focal point, and is zoomed about it. !important: the builder's image layers carry Bootstrap's
   object-fit utilities and inline sizes. */
.sw-mask {
    --sw-mask-px: calc(var(--sw-cqw, 1cqw) * 100 / 958);
    position: relative;
    width: 100%;
    height: 100%;

    &.sw-mask-shadowed {
        filter: drop-shadow(0 calc(var(--sw-mask-shadow) * var(--sw-mask-px) / 4) calc(var(--sw-mask-shadow) * var(--sw-mask-px) / 2) rgba(0, 0, 0, 0.4));
    }

    > .sw-mask-frame {
        position: absolute;
        inset: 0;
        box-sizing: border-box;
        width: auto;
        height: auto;
        margin: 0;
        padding: 0;
        overflow: hidden;
        border: calc(var(--sw-mask-border, 0) * var(--sw-mask-px)) solid var(--sw-mask-border-color, transparent);
        border-radius: 0;
        background: none;

        img {
            display: block;
            width: 100% !important;
            height: 100% !important;
            max-width: none;
            object-fit: var(--sw-mask-fit, cover) !important;
            object-position: var(--sw-mask-focus, 50% 50%) !important;
            transform: scale(var(--sw-mask-zoom, 1));
            transform-origin: var(--sw-mask-focus, 50% 50%);
        }
    }

    &.sw-mask-rounded > .sw-mask-frame {
        border-radius: calc(var(--sw-mask-radius, 0) * var(--sw-mask-px));
    }

    &.sw-mask-circle > .sw-mask-frame {
        border-radius: 50%;
    }

    &.sw-mask-arch > .sw-mask-frame {
        border-radius: 100000px 100000px 0 0;
    }

    &.sw-mask-diagonal > :is(.sw-mask-frame, .sw-mask-edge) {
        border-width: 0;
        clip-path: polygon(var(--sw-mask-slant) 0, 100% 0, calc(100% - var(--sw-mask-slant)) 100%, 0 100%);
    }

    > .sw-mask-edge {
        position: absolute;
        z-index: 1;
        inset: 0;
        width: 100%;
        height: 100%;
        overflow: visible;
        pointer-events: none;
        fill: none;
        stroke: var(--sw-mask-border-color);
        stroke-width: calc(var(--sw-mask-border, 0) * var(--sw-mask-px) * 2);

        polygon {
            vector-effect: non-scaling-stroke;
        }
    }
}

/* A mask's settings (ThemeTemplate/_image-mask-controls): its kinds as a row of buttons, the focal
   point dragged on the image, and the people's photos in the mask. */
.image-mask-kinds {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.25rem;

    .btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.125rem;
        padding: 0.25rem;
        font-size: 0.6875rem;

        img,
        .bi {
            width: 1.75rem;
            height: 1.25rem;
            font-size: 1rem;
            line-height: 1.25rem;
        }
    }
}

.image-mask-focus {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    height: 9rem;
    border: 1px solid var(--input-border);
    border-radius: 0.25rem;
    background-color: #f1f5f9;
    cursor: crosshair;
    touch-action: none;
    user-select: none;

    &:focus-visible {
        outline: 0.1875rem solid var(--info);
    }

    > img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        pointer-events: none;
    }

    .image-mask-focus-dot {
        position: absolute;
        width: 1rem;
        height: 1rem;
        margin: -0.5rem 0 0 -0.5rem;
        border: 0.125rem solid #fff;
        border-radius: 50%;
        background-color: var(--primary);
        box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
        pointer-events: none;
    }
}

.image-mask-people {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;

    figure {
        margin: 0;
        min-width: 0;
    }

    .image-mask-person {
        container-type: inline-size;
        width: 100%;
    }

    figcaption {
        overflow: hidden;
        font-size: 0.6875rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

label.mainBtn {
    cursor: pointer;
}

/* The theme builder's canvas: the design is 958px wide (60rem minus the borders) but the canvas
   narrows with the window. Like a slide (.preview-scale below) it is a size container, and its
   text elements carry their canvas px as --sw-font-size with .sw-theme-text, so text keeps the
   proportion it has on the wall at any canvas width (SWS-272, template-edit/type-controls.js). */
.base-template {
    width: 60rem;
    max-width: 100%;
    aspect-ratio: 16/9;
    background-color: #fff;
    border: 1px solid var(--input-border);
    box-shadow: 0 0.125rem 0.875rem rgba(0, 0, 0, 0.03);
    position: relative;
    container-type: inline-size;

    #templateBackground {
        width: 100%;
        height: 100%;
    }

    #templateElements,
    .sw-fit-check-elements {
        position: absolute;

        inset: 0;
    }
}

.image-placeholder,
.image-upload-box {
    width: 100%;
    height: 100%;

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
}

.drag-item {
    overflow: visible;

    /* The keyboard's focus (TE2-18, a tab stop of its own): a ring around the element, outside the
       selection's outline so both show. A click focuses it too, without the ring. */
    &:focus {
        outline: none;
    }

    &:focus-visible {
        box-shadow: 0 0 0 0.25rem var(--white), 0 0 0 0.4375rem var(--info);
    }

    &.selected {
        outline: 0.125rem solid var(--primary);
        user-select: none;
    }

    .element-body {
        width: 100%;
        height: 100%;
    }
}

/* A theme slide or theme preview: the wall view and TV mode (wall/_slide), the hub cards, the
   theme pickers and the builder's preview modal. The builder lays a theme out on a 16:9 canvas
   958px wide (.base-template above, minus its borders): positions and sizes in percent of it, font
   sizes in its pixels (App\Support\ThemeCanvas). The box is a size container and the positioned
   parent of the elements, so a text element's --sw-font-size (canvas px) renders at that size x
   slide width / 958 whatever the slide's size. Browsers without container units get --sw-cqw
   (1% of the box width in px) from resources/js/lib/theme-scale.js instead. The builder's canvas
   (.base-template) sizes its text by the same rule. */
.preview-scale {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    container-type: inline-size;
}

/* The builder canvas's text by the same rule (SWS-272); the id outranks the page rules that size
   h1s (a heading element is an h1 on the canvas). */
.sw-theme-text,
:is(#templateElements, .sw-fit-check-elements) .sw-theme-text {
    font-size: calc(var(--sw-fit-font-size, var(--sw-font-size, 16)) * var(--sw-cqw, 1cqw) * 100 / 958);
}

/* Text fit (TE1-08, resources/js/lib/theme-fit.js). A shrink text is drawn at --sw-fit-font-size
   (canvas px) when its own --sw-font-size does not fit; --sw-font-size stays the author's size. A
   text with a line limit is clamped to --sw-max-lines here, which theme-fit.js then trims at a word
   break, keeping the full text for screen readers (.sw-fit-full). sw-fit-measure lifts the clamp
   while theme-fit.js measures. */
.sw-theme-text[data-sw-max-lines] {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--sw-max-lines, none);
    line-clamp: var(--sw-max-lines, none);
    overflow: hidden;
}

.sw-theme-text[data-sw-max-lines].sw-fit-measure {
    display: block;
    -webkit-line-clamp: none;
    line-clamp: none;
    overflow: visible;
}

/* The full text of a trimmed one: read by screen readers, not drawn (as .visually-hidden). */
.sw-theme-text .sw-fit-full {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* The QR code fills its element box (its SVG has a fixed pixel size). */
.sw-theme-qr svg {
    display: block;
    width: 100%;
    height: 100%;
}

.editable-content {
    margin: 0;
}

/* A hidden element (hidden: true): not drawn on the wall, shown dimmed on the builder canvas. */
.drag-item.sw-element-hidden {
    opacity: 0.35;
}

/* The builder's toolbar (TE4-05, ThemeTemplate/_builder-toolbar): one row under the header, its
   groups split by a thin rule, wrapping by group (never over the canvas). Its tools are 44px icon
   (or icon and label) buttons, dimmed and inert while they do not apply (aria-disabled keeps them
   focusable); "Ask for a change" and Review are the app's outline buttons. */
/* No z-index of its own: its menus (z-index 1000) and "Ask for a change"'s panel stack with the page,
   over the canvas's elements and under nothing. */
.builder-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem 0.25rem;
    padding: 0.375rem 1rem;
    border-bottom: 0.0625rem solid var(--input-border);
    background: var(--white);

    &[hidden] {
        display: none;
    }

    /* Over the canvas's floating text toolbar (.text-toolbar, 1030), under the dialogs. */
    .dropdown-menu {
        z-index: 1035;
    }

    .mainBtn {
        height: 2.75rem;
        padding: 0 0.75rem;
        gap: 0.375rem;
        border-radius: 0.625rem;
        font-size: 0.875rem;
        font-weight: 600;
        white-space: nowrap;
    }
}

.builder-toolbar-group {
    display: flex;
    align-items: center;
    gap: 0.125rem;
}

.builder-toolbar-divider {
    width: 0.0625rem;
    height: 1.75rem;
    margin: 0 0.375rem;
    background: var(--input-border);
}

.builder-toolbar-spacer {
    flex: 1 1 1rem;
}

/* Wrapped onto a line of its own, the right end stays on the right. */
.builder-toolbar-end {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
}

/* Not straight under the canvas builder's header (the base template builders, or a row between):
   a card of its own. */
.builder-toolbar:not(.builder-header + .builder-toolbar) {
    margin-top: 1rem;
    border-bottom: 0;
    border-radius: 1rem;
}

.builder-tool {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    color: var(--text-color);
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;

    &:hover,
    &[aria-expanded="true"] {
        background: var(--pill);
    }

    &:focus-visible {
        outline: 0.1875rem solid var(--primary);
        outline-offset: 0.125rem;
    }

    &[aria-disabled="true"] {
        opacity: 0.45;
        background: transparent;
        cursor: not-allowed;
    }
}

/* Align and Styles: an icon, the label and the menu's chevron. */
.builder-tool-labelled {
    width: auto;
    padding: 0 0.625rem;
    gap: 0.25rem;
}

.builder-styles .builder-tool-labelled {
    gap: 0.375rem;
}

.builder-tool-danger {
    color: var(--danger);
}

.builder-tool-quiet {
    color: var(--text);
}

/* "N selected": the Arrange group's count, shown with a selection only. */
.builder-selected-chip {
    margin-right: 0.25rem;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;

    &:empty {
        display: none;
    }
}

/* The toolbar's menus: Align (a list) and Review (a row of square tiles). */
.dropdown-menu.builder-menu {
    width: 15rem;
    padding: 0.375rem;
    border: 0.0625rem solid var(--input-border);
    border-radius: 0.75rem;
    box-shadow: 0 0.75rem 1.75rem rgb(15 23 42 / 0.16);

    .dropdown-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.625rem;
        height: 2.5rem;
        padding: 0 0.625rem;
        border-radius: 0.5rem;
        color: var(--text-color);
        font-size: 0.875rem;

        &:hover,
        &:focus,
        &:active {
            background: var(--pill);
            color: var(--text-color);
        }

        &[aria-disabled="true"] {
            opacity: 0.45;
            cursor: not-allowed;
        }
    }

    .dropdown-divider {
        margin: 0.375rem 0.25rem;
        border-color: var(--input-border);
        opacity: 1;
    }
}

.builder-menu-keys {
    font-size: 0.75rem;
    color: var(--text);
}

.dropdown-menu.builder-review-menu {
    width: max-content;
    padding: 0.5rem;
    gap: 0.375rem;

    &.show {
        display: flex;
    }

    .dropdown-item.builder-review-tile {
        flex-direction: column;
        justify-content: center;
        gap: 0.375rem;
        width: 4.5rem;
        height: 4.5rem;
        padding: 0;
        border: 0.0625rem solid var(--input-border);
        border-radius: 0.625rem;
        background: var(--input);
        font-size: 0.75rem;
        font-weight: 700;
        white-space: normal;

        &:hover,
        &:focus,
        &:active {
            background: var(--pill);
        }
    }
}

/* Upload Background and History on the theme's builder (edit-template-builder), just before the toolbar. */
.builder-mode-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
}

/* The builder's Styles menu (TE3-03, ThemeTemplate/_style-picker, template-edit/style-swaps.js): a
   row of styles, each a small slide of the canvas in that style (.preview-scale) over its name. */
.dropdown-menu.builder-styles-menu {
    width: min(46rem, calc(100vw - 2rem));
    padding: 0.75rem;
}

.builder-styles-hint {
    margin: 0 0 0.5rem;
    font-size: 0.8125rem;
    color: var(--text);
}

.builder-styles-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
    gap: 0.5rem;
}

.builder-style {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.25rem;
    border: 0.0625rem solid #ced4da;
    border-radius: 0.375rem;
    background: #fff;
    font-size: 0.8125rem;
    text-align: center;

    &:hover,
    &:focus-visible {
        border-color: var(--primary);
        outline: 0.125rem solid var(--primary);
        outline-offset: 0.0625rem;
    }
}

.builder-style-thumb {
    display: block;
    overflow: hidden;
    border-radius: 0.25rem;
    background: #fff;
    box-shadow: inset 0 0 0 0.0625rem rgb(0 0 0 / 0.1);

    .preview-scale {
        overflow: hidden;
    }
}

/* A photo, logo or QR code box the canvas shows no image for. */
.builder-style-placeholder {
    background: rgb(0 0 0 / 0.12);
}

.builder-styles-fixed {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.75rem 0 0;
    font-size: 0.8125rem;

    .form-check-input {
        margin: 0;
    }
}

/* The builder's keyboard shortcuts (TE2-19, ThemeTemplate/_shortcuts-modal): a table per group, the
   action on the left and its keys on the right. */
.builder-shortcuts {
    caption-side: top;
    margin-bottom: 1.25rem;

    caption {
        padding-top: 0;
        font-weight: 600;
        color: var(--bs-body-color);
    }

    th {
        font-weight: 400;
        width: 55%;
    }

    td {
        text-align: end;
    }

    kbd {
        white-space: nowrap;
    }
}

.builder-shortcuts-combo {
    white-space: nowrap;
}

.builder-shortcuts-or,
.builder-shortcuts-note {
    color: var(--bs-secondary-color);
}

.builder-shortcuts-note {
    display: block;
    font-size: 0.875em;
}

/* A locked element (locked: true, TE2-04): not moved, resized or deleted on the canvas. */
.drag-item.sw-element-locked {
    cursor: default;
}

/* The Layers tab (TE2-04, TE4-06; ThemeTemplate/_layers-panel, template-edit/layers.js): the canvas's
   elements front to back under a caption, a 44px row each with its name and its Hide and Lock
   toggles; the selected element's row tinted. Rows are dragged anywhere on them (no grip drawn). */
.builder-layers {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding: 0.625rem 0.5rem;
}

.builder-layers-caption {
    margin: 0 0.375rem 0.375rem;
    font-size: 0.75rem;
    color: var(--text);
}

.builder-layers-list {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.builder-layers-empty {
    margin: 0 0.375rem;
    font-size: 0.875rem;
    color: var(--text-color);
}

.builder-layer {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-height: 2.75rem;
    padding: 0.25rem 0.375rem 0.25rem 0.75rem;
    border-radius: 0.5rem;
    color: var(--text-color);

    &.is-selected {
        background-color: var(--primary-light);
        color: color-mix(in srgb, var(--primary) 70%, #000);
    }

    &.is-hidden .builder-layer-name {
        opacity: 0.55;
    }

    &.is-dragging {
        opacity: 0.5;
    }

    &.is-drop-before {
        box-shadow: inset 0 0.125rem 0 var(--primary);
    }

    &.is-drop-after {
        box-shadow: inset 0 -0.125rem 0 var(--primary);
    }
}

.builder-layer-grip {
    display: none;
}

.builder-layer-name {
    flex: 1;
    align-self: stretch;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.builder-layer-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
    padding: 0;
    border: 0;
    border-radius: 0.375rem;
    background: transparent;
    color: var(--text);

    &:hover,
    &[aria-pressed="true"] {
        color: var(--text-color);
        background-color: var(--pill);
    }
}

/* The selection box drawn from the empty canvas, and the canvas's short notices (a locked element
   skipped). Editor only, never saved; laid out nowhere and click-through. White on #1f2937 is 15:1. */
#templateCanvas.is-selecting {
    user-select: none;
}

.sw-marquee {
    position: absolute;
    z-index: 45;
    border: 1px solid #2563eb;
    background-color: rgba(37, 99, 235, 0.12);
    pointer-events: none;

    &[hidden] {
        display: none;
    }
}

/* The frame around two or more selected elements (TE2-24, template-edit/selection.js): only its
   eight handles take the pointer; a drag of one resizes the selection together. Editor only. */
.sw-group-frame {
    position: absolute;
    z-index: 44;
    border: 1px dashed #2563eb;
    pointer-events: none;

    &[hidden] {
        display: none;
    }
}

.sw-group-handle {
    position: absolute;
    width: 0.625rem;
    height: 0.625rem;
    margin: -0.3125rem 0 0 -0.3125rem;
    border: 1px solid #2563eb;
    background-color: #fff;
    pointer-events: auto;
    touch-action: none;

    &.is-top-left,
    &.is-top,
    &.is-top-right {
        top: 0;
    }

    &.is-left,
    &.is-right {
        top: 50%;
    }

    &.is-bottom-left,
    &.is-bottom,
    &.is-bottom-right {
        top: 100%;
    }

    &.is-top-left,
    &.is-left,
    &.is-bottom-left {
        left: 0;
    }

    &.is-top,
    &.is-bottom {
        left: 50%;
    }

    &.is-top-right,
    &.is-right,
    &.is-bottom-right {
        left: 100%;
    }

    &.is-top-left,
    &.is-bottom-right {
        cursor: nwse-resize;
    }

    &.is-top-right,
    &.is-bottom-left {
        cursor: nesw-resize;
    }

    &.is-top,
    &.is-bottom {
        cursor: ns-resize;
    }

    &.is-left,
    &.is-right {
        cursor: ew-resize;
    }
}

.sw-canvas-notice {
    position: absolute;
    top: 0.5rem;
    left: 50%;
    z-index: 60;
    max-width: calc(100% - 1rem);
    transform: translateX(-50%);
    padding: 0.25rem 0.625rem;
    border-radius: 0.375rem;
    background-color: #1f2937;
    color: #fff;
    font-family: var(--bs-body-font-family, system-ui, sans-serif);
    font-size: 0.8125rem;
    line-height: 1.4;
    pointer-events: none;

    &:empty {
        display: none;
    }
}

/* A text the person previewed would not see (TE2-09: its fields are all empty and its rule is hide,
   template-edit/preview-as.js): it shows nothing on the builder canvas, its box outlined so it can
   still be found. */
.drag-item.sw-element-empty-hidden {
    outline: 1px dashed rgba(108, 117, 125, 0.7);
    outline-offset: -1px;
}

/* Overflow warnings on the builder canvas (TE1-09, TE4-12, template-edit/overflow-warnings.js): the
   selected text the person previewed cuts off or runs into another element gets a red dashed
   outline, with a white line beside it so it shows on dark designs too, and its message in a red
   pill under the box (above it, away from its floating bar or near the canvas's foot); every other
   text's is a marker (.sw-warning-marker). Drawn over the elements without taking clicks, laid out
   nowhere (absolute), never saved. All hidden while an element is dragged or resized; one whose
   element changed is hidden until it is checked again. #b02a37 on white text is 6.5:1. */
.sw-overflow-layer {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
}

#templateCanvas.is-transforming > .sw-overflow-layer,
.sw-overflow-layer > .is-stale {
    visibility: hidden;
}

.sw-overflow-warning {
    position: absolute;
    box-sizing: border-box;
    border: 0.125rem dashed #b02a37;
    outline: 0.0625rem solid rgba(255, 255, 255, 0.9);
}

.sw-overflow-pill {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: -0.125rem;
    max-width: 18rem;
    padding: 0.125rem 0.5rem;
    overflow: hidden;
    border: 0.0625rem solid #fff;
    border-radius: 1rem;
    background-color: #b02a37;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sw-overflow-warning.is-above .sw-overflow-pill {
    top: auto;
    bottom: calc(100% + 0.25rem);
}

/* The selected text's contrast pill and overflow pill on the same side: the overflow one beyond it. */
#templateCanvas:has(> .sw-contrast-layer > .sw-contrast-warning:not(.is-below)) > .sw-overflow-layer > .sw-overflow-warning.is-above .sw-overflow-pill {
    bottom: calc(100% + 1.875rem);
}

#templateCanvas:has(> .sw-contrast-layer > .sw-contrast-warning.is-below) > .sw-overflow-layer > .sw-overflow-warning:not(.is-above) .sw-overflow-pill {
    top: calc(100% + 1.875rem);
}

/* Contrast warnings on the builder canvas (TE3-09, TE4-11, template-edit/contrast-warnings.js): the
   selected text's in full, the overflow warnings' outline and red pill, the pill above the text
   (below it, away from its floating bar or near the canvas's top) with its ratio and a white fix
   button; every other text's as a marker (.sw-warning-marker). Over the elements; only the fix
   takes clicks. Never saved. All hidden while an element is dragged or resized; one whose element
   changed is hidden until it is checked again. #b02a37 on white is 6.5:1 both ways. */
.sw-contrast-layer {
    position: absolute;
    inset: 0;
    z-index: 40;
    pointer-events: none;
}

#templateCanvas.is-transforming > .sw-contrast-layer,
.sw-contrast-layer > .is-stale {
    visibility: hidden;
}

/* The canvas's warnings on a text not selected alone (TE4-11, TE4-12, template-edit/canvas-warnings.js):
   one small red "!" marker on its top-right corner, kept inside the canvas, a button that selects
   it. Over the elements; only the markers take clicks. Never saved. Hidden as the warnings are. */
.sw-warning-markers {
    --sw-warning-marker-inset: 0.5625rem;

    position: absolute;
    inset: 0;
    z-index: 40;
    pointer-events: none;
}

#templateCanvas.is-transforming > .sw-warning-markers,
.sw-warning-markers > .is-stale {
    visibility: hidden;
}

.sw-warning-marker {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.125rem;
    height: 1.125rem;
    padding: 0;
    /* Just outside the corner. */
    transform: translate(-35%, -65%);
    border: 0.0625rem solid #fff;
    border-radius: 50%;
    background-color: #b02a37;
    box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.35);
    color: #fff;
    font-family: var(--bs-body-font-family, system-ui, sans-serif);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    pointer-events: auto;

    /* A 24px target. */
    &::before {
        content: '';
        position: absolute;
        inset: -0.25rem;
        border-radius: 50%;
    }

    &:focus-visible {
        outline: 0.125rem solid #b02a37;
        outline-offset: 0.125rem;
    }
}

.sw-contrast-warning {
    position: absolute;
    box-sizing: border-box;
    border: 0.125rem dashed #b02a37;
    outline: 0.0625rem solid rgba(255, 255, 255, 0.9);

    &.is-below .sw-contrast-pill {
        top: calc(100% + 0.25rem);
        bottom: auto;
    }
}

.sw-contrast-pill {
    position: absolute;
    bottom: calc(100% + 0.25rem);
    left: -0.125rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.125rem 0.125rem 0.125rem 0.5rem;
    border: 0.0625rem solid #fff;
    border-radius: 1rem;
    background-color: #b02a37;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.sw-contrast-text:only-child {
    padding-right: 0.375rem;
}

.sw-contrast-fix {
    padding: 0 0.5rem;
    border: 0;
    border-radius: 1rem;
    background-color: #fff;
    color: #b02a37;
    font: inherit;
    pointer-events: auto;

    &:hover {
        text-decoration: underline;
    }

    &:focus-visible {
        outline: 0.125rem solid #fff;
        outline-offset: 0.0625rem;
    }
}

/* A text's contrast warning in the Layers panel (layers.js): its ratio in the warnings' red pill. */
.builder-layer-warning {
    flex-shrink: 0;
    padding: 0 0.375rem;
    border-radius: 1rem;
    background-color: #b02a37;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.5;
}

/* A text that shows nothing for the person previewed (template-edit/preview-as.js): kept a line
   high and outlined, so it can still be selected, moved and edited. */
:is(#templateElements, .sw-fit-check-elements) .editable-content:empty {
    min-height: 1em;
    outline: 0.0625rem dashed var(--input-border);
}

/* An employer logo the person previewed has none of (template-edit/preview-images.js): the slide
   leaves the box empty; the canvas outlines it, so it can still be seen, selected and moved. */
:is(#templateElements, .sw-fit-check-elements) .sw-preview-image-empty {
    outline: 0.0625rem dashed var(--input-border);
    outline-offset: -0.0625rem;
}

/* The fit check's copy of the canvas (TE2-11, template-edit/fit-check.js): drawn for each profile
   at the end of the body, out of sight and out of reach. The canvas's own rules above apply to it
   through .sw-fit-check-elements. */
.sw-fit-check-stage {
    position: absolute;
    top: 0;
    left: -100000px;
    pointer-events: none;
    contain: layout style;
}

.fit-check-results {
    max-height: 22rem;
    overflow-y: auto;
}

.fit-check-result + .fit-check-result {
    border-top: 0.0625rem solid var(--input-border);
}

.fit-check-accepted {
    background: var(--pill);
    color: var(--text-color);
    font-weight: 500;
}

/* The review of the profiles that do not fit (TE2-12, template-edit/fit-check.js): a bar over the
   bottom of the builder, under any dialog, so the canvas stays in view while stepping through. */
.fit-review {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    z-index: 1040;
    width: min(40rem, calc(100vw - 2rem));
    max-height: 40vh;
    overflow-y: auto;
    padding: 0.75rem 1rem;
    transform: translateX(-50%);
    border: 0.0625rem solid var(--input-border);
    border-radius: 0.5rem;
    background: var(--white);
    box-shadow: 0 0.25rem 1rem rgba(15, 23, 42, 0.18);
}

.fit-review[hidden] {
    display: none;
}

.fit-review-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.fit-review-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.fit-review-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* The toolbar's Canvas text group (ThemeTemplate/_preview-as, template-edit/preview-as.js): the canvas
   text as Field names (the placeholders) or Sample data (a person's values), a segmented control,
   and the "Preview as" person in Sample data only. */
.preview-as {
    gap: 0.5rem;
}

.preview-as[hidden] {
    display: none;
}

.preview-as-modes {
    display: inline-flex;
    padding: 0.1875rem;
    border-radius: 0.625rem;
    background: var(--pill);
}

.preview-as-mode {
    height: 2.375rem;
    padding: 0 0.75rem;
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    color: var(--text);
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
}

.preview-as-mode[aria-pressed="true"] {
    background: var(--white);
    color: var(--text-color);
    font-weight: 700;
    box-shadow: 0 0.0625rem 0.125rem rgb(15 23 42 / 0.12);
}

.preview-as-mode:focus-visible {
    outline: 0.1875rem solid var(--primary);
    outline-offset: 0.125rem;
}

.preview-as .preview-as-person {
    width: auto;
    max-width: 14rem;
    height: 2.375rem;
    min-height: 0;
    margin: 0;
    padding: 0 2.25rem 0 0.625rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

/* "Show all" in the preview modal (TE1-10, template-edit/preview.js): the design drawn for the
   sample person and each test person, as real slides (.preview-scale) in a grid that narrows to
   one column, each labelled under it, with "Text cut off" where a text still does not fit. */
.template-people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
    gap: 1.5rem 1rem;
}

.template-people-slide {
    overflow: hidden;
    border: 0.0625rem solid var(--input-border);
    background-color: #fff;
}

.template-people-label {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-weight: 600;
}

.template-people-overflow {
    padding: 0.125rem 0.5rem;
    border-radius: 1rem;
    background-color: #b02a37;
    color: #fff;
    font-size: 0.75rem;
    line-height: 1.4;
}

.template-people-overflow[hidden] {
    display: none;
}

/* The tabs of the builders' left rail (ThemeTemplate/_rail-tabs, template-edit/rail-tabs.js):
   Elements, Layouts and Layers, 44px high, the selected one bold over a 3px accent line. */
.builder-rail-tabs {
    display: flex;
    flex: 1 1 auto;
    gap: 0.125rem;
    min-width: 0;
}

.builder-rail-tab {
    flex: 1 1 0;
    min-width: 0;
    height: 2.75rem;
    padding: 0 0.25rem;
    border: 0;
    border-bottom: 0.1875rem solid transparent;
    border-radius: 0;
    background: transparent;
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 600;

    &[aria-selected="true"] {
        border-bottom-color: var(--primary);
        color: var(--text-color);
        font-weight: 800;
    }

    &:focus-visible {
        outline: 0.125rem solid var(--primary);
        outline-offset: -0.125rem;
    }
}

/* The Elements tab (TE4-06, ThemeTemplate/_elements-panel): groups under small uppercase headings,
   each a grid of 44px tiles two to a row, a tile a small icon square and its name. The field
   palette's groups (_field-palette) and the shape library (_shape-library, shapes.js) lay their
   buttons into their group's grid. */
.builder-palette {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.875rem;

    &[hidden] {
        display: none;
    }
}

.builder-palette-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.builder-palette-title {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text);
}

.builder-palette-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.375rem;

    :is(.element-container, .shape-library-grid) {
        display: contents;
    }

    .element {
        gap: 0.5rem;
        width: 100%;
        min-height: 2.75rem;
        margin: 0;
        padding: 0.375rem 0.625rem;
        border-radius: 0.5rem;
        background-color: var(--white);
        color: var(--text-color);
        font-size: 0.8125rem;
        font-weight: 600;
        line-height: 1.25;
        text-align: left;
        overflow-wrap: anywhere;

        .svg-block {
            flex: none;
            width: 1.375rem;
            height: 1.375rem;
            padding: 0.125rem;
            border-radius: 0.375rem;
            background-color: var(--pill);
            color: var(--text);

            svg {
                width: 0.875rem;
                height: 0.875rem;
            }
        }
    }

    .field-palette-label {
        font-weight: 600;
        white-space: normal;
    }
}

/* The Layouts tab's panel (ThemeTemplate/_layouts-panel). */
#rail-panel-layouts {
    padding: 0.875rem;
}

/* The Layouts tab (TE3-01, ThemeTemplate/_layouts-panel, template-edit/layout-starters.js): a
   button per starter with its thumbnail, a slide drawn in the brand kit on the kit's background
   (template-edit/layout-thumbnail.js), and the elements a starter had no place for. The thumbnail's
   text is measured to fit (lib/theme-fit.js), so nothing in it is animated. */
.layout-group-help {
    margin: 0 0 0.625rem;
    font-size: 0.8125rem;
    color: #475569;
}

.layout-starter-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.layout-starter {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
    padding: 0.5rem;
    border: 0.0625rem solid var(--input-border);
    border-radius: 0.5rem;
    background-color: var(--white);
    color: var(--text-color);
    text-align: left;

    &:hover,
    &:focus-visible {
        border-color: var(--primary);
    }
}

.layout-starter-thumb {
    display: block;
    overflow: hidden;
    border: 0.0625rem solid var(--input-border);
    border-radius: 0.25rem;
    pointer-events: none;

    &,
    & * {
        transition: none;
    }

    .preview-scale {
        background-color: var(--sw-background, #ffffff);
    }
}

.layout-starter-name {
    font-size: 0.875rem;
    font-weight: 600;
}

.layout-starter-description {
    font-size: 0.8125rem;
    color: #475569;
}

.layout-unplaced {
    margin-top: 0.875rem;
}

.layout-unplaced-title {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.layout-unplaced-list {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.layout-unplaced-row {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.layout-unplaced-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    font-size: 0.875rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.layout-unplaced-note {
    font-size: 0.75rem;
    color: #475569;
}

/* The Layouts tab's sections (TE3-02, template-edit/section-blocks.js): starter-like buttons that
   are also dragged onto the canvas. */
.layout-section {
    cursor: grab;
}

/* Present (TE3-07, template-edit/present.js): the canvas full screen, laid out as the wall's TV mode
   (main.view-mode below): the whole 16:9 slide on screen, letterboxed when the screen is another
   shape, with the slide's border off. The controls fade in on a step, a mouse move or focus. */
html.sw-presenting {
    overflow: hidden;
}

.sw-present {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: rgb(14, 14, 14);
    color: #fff;

    &:focus {
        outline: none;
    }

    /* The wall page's font (html body above), which a text without a font of its own inherits as
       on the wall: the builder's pages set the customer's font on every element (body * in
       customer-theme.css), which the slide's own inline fonts still outrank. */
    .sw-present-stage {
        width: 100%;
        font-family: "Roboto", sans-serif;

        * {
            font-family: inherit;
        }
    }

    /* The stage's Swiper (TE3-08, template-edit/present-stage.js): the width of the screen, as the
       wall's in TV mode, and no easing of its own size (the wall page's .swiper below). */
    .swiper {
        width: 100%;
        aspect-ratio: auto;
        transition: none;
    }

    .swiper-slide .templates {
        border: none;
    }

    .swiper-slide .preview-scale {
        width: min(100%, calc(100vh * 16 / 9));
        margin-inline: auto;
    }
}

.sw-present-bar {
    position: absolute;
    inset: auto 0 1rem;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: fit-content;
    max-width: calc(100% - 2rem);
    margin-inline: auto;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    background-color: rgba(14, 14, 14, 0.85);
    opacity: 0;
    transition: opacity 0.2s;

    .sw-present.sw-present-hint &,
    &:focus-within {
        opacity: 1;
    }

    label {
        margin: 0;
        color: #fff;
    }
}

.sw-present-button {
    min-height: 2.25rem;
    padding: 0.25rem 0.75rem;
    border: 0.0625rem solid rgba(255, 255, 255, 0.4);
    border-radius: 0.375rem;
    background-color: transparent;
    color: #fff;

    &[aria-pressed="true"] {
        border-color: #ffd60a;
        background-color: rgba(255, 214, 10, 0.2);
    }

    &:disabled {
        opacity: 0.4;
    }

    &:focus-visible {
        outline: 0.1875rem solid #fff;
        outline-offset: 0.125rem;
    }
}

.sw-present-person {
    font-weight: 600;
}

.sw-present-keys {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.75);
}

.sw-present-wall,
.sw-present-transition {
    width: auto;
    max-width: 16rem;
}

.sw-present-error {
    margin: 0;
    text-align: center;
}

/* The safe-area overlay: the action-safe (93%) and title-safe (90%) frames, on the slide itself so
   they follow it at any screen shape (inset percentages: of the slide's width across, of its height
   down), and the elements that cross title-safe outlined and listed. */
.sw-present-safe {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;

    > div {
        position: absolute;
        font-size: 0.8125rem;
        line-height: 1.2;
    }

    span {
        position: absolute;
        top: 0.25rem;
        left: 0.375rem;
        padding: 0 0.25rem;
        background-color: rgba(14, 14, 14, 0.7);
    }
}

.sw-present-safe-action {
    inset: 3.5%;
    border: 0.125rem dashed #4cc9f0;
    color: #4cc9f0;
}

.sw-present-safe-title {
    inset: 5%;
    border: 0.125rem solid #ffd60a;
    color: #ffd60a;

    span {
        top: auto;
        bottom: 0.25rem;
    }
}

.sw-present .sw-present-outside {
    outline: 0.1875rem solid #ff3b30;
    outline-offset: -0.1875rem;
}

.sw-present-safe-report {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 20;
    max-width: min(24rem, calc(100% - 2rem));
    padding: 0.5rem 0.75rem;
    border-left: 0.25rem solid #ff3b30;
    border-radius: 0.375rem;
    background-color: rgba(14, 14, 14, 0.85);
    font-size: 0.875rem;

    &[hidden] {
        display: none;
    }
}

/* The palette's field buttons (ThemeTemplate/_field-palette, template-edit/field-palette.js): the
   field in plain words over its value for the person previewed, cut to one line. */
.field-palette-item {
    padding-block: 0.375rem;
    text-align: left;

    .svg-block {
        flex-shrink: 0;
    }
}

.field-palette-text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    line-height: 1.25;
}

.field-palette-label {
    overflow: hidden;
    font-weight: 500;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.field-palette-sample {
    overflow: hidden;
    font-size: 0.8125rem;
    color: #475569;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.field-palette-sample.is-empty {
    font-style: italic;
}

/* Smart guides on the builder canvas while an element is dragged or resized (TE2-05,
   template-edit/snapping.js): a line for each edge or centre it lines up with, and the distance to
   what it lines up with in canvas px. Editor only, never saved; click-through and laid out nowhere.
   A white halo keeps the magenta line on any slide colour; white on #be185d is 6:1. */
.sw-snap-guides {
    position: absolute;
    inset: 0;
    z-index: 40;
    pointer-events: none;

    &[hidden] {
        display: none;
    }
}

.sw-snap-guide {
    position: absolute;
    background-color: #db2777;
    box-shadow: 0 0 0 0.0625rem rgba(255, 255, 255, 0.85);

    &.is-x {
        width: 0.0625rem;
        transform: translateX(-50%);
    }

    &.is-y {
        height: 0.0625rem;
        transform: translateY(-50%);
    }
}

.sw-snap-readout {
    position: absolute;
    padding: 0 0.3125rem;
    border-radius: 0.25rem;
    background-color: #be185d;
    color: #fff;
    font-family: var(--bs-body-font-family, system-ui, sans-serif);
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;

    &.is-x {
        transform: translate(0.25rem, -50%);
    }

    &.is-y {
        transform: translate(-50%, calc(-100% - 0.25rem));
    }
}

/* The field label under a hovered or selected canvas text (template-edit/field-labels.js): editor
   only, never saved. White on #1d4ed8 (6.7:1) with a white ring, so it reads on any slide colour;
   absolutely placed and click-through, so it moves nothing. */
.sw-field-label {
    position: absolute;
    z-index: 50;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    max-width: 100%;
    padding: 0.125rem 0.5rem;
    border-radius: 62.4375rem;
    background: #1d4ed8;
    color: #fff;
    font-family: var(--bs-body-font-family, system-ui, sans-serif);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 0 0 0.125rem #fff, 0 0.125rem 0.5rem rgba(15, 23, 42, 0.35);

    svg {
        flex: none;
    }

    span {
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.sw-field-label[hidden] {
    display: none;
}

/* A field in a text edited in place (TE2-08, template-edit/field-chips.js): its name in a blue pill
   in the text's own size, standing for its placeholder. #1d4ed8 on #dbeafe is 6.2:1. Editor only:
   the text is drawn as text again once it loses focus. */
#templateElements .sw-field-chip {
    display: inline-block;
    padding: 0 0.3em;
    margin: 0 0.05em;
    border-radius: 0.3em;
    background: #dbeafe;
    color: #1d4ed8;
    box-shadow: inset 0 0 0 0.05em #93c5fd;
    font-style: normal;
    line-height: 1.2;
    white-space: nowrap;
    cursor: default;
}

/* A text edited in place keeps its spaces as typed: without it the browser types a space next to a
   chip (or at the end of a line) as a no-break space, which the source would keep. */
#templateElements .editable-content[data-preview-editing="1"] {
    white-space: pre-wrap;
}

/* The field menu (TE2-08, template-edit/field-menu.js): a list of the fields under the "/" typed
   in a text, placed through the CSSOM, over the builder (and its settings panel). */
.sw-field-menu {
    position: fixed;
    z-index: 1070;
    width: 16rem;
    max-height: min(22rem, 60vh);
    overflow-y: auto;
    padding: 0.375rem;
    border: 0.0625rem solid var(--input-border, #cbd5e1);
    border-radius: 0.5rem;
    background: #fff;
    color: #0f172a;
    font-family: var(--bs-body-font-family, system-ui, sans-serif);
    font-size: 0.875rem;
    line-height: 1.4;
    box-shadow: 0 0.5rem 1.5rem rgba(15, 23, 42, 0.18);
}

.sw-field-menu[hidden],
.sw-field-menu-list[hidden],
.sw-field-menu-empty[hidden] {
    display: none;
}

.sw-field-menu-title {
    margin: 0;
    padding: 0.25rem 0.5rem;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 600;
}

.sw-field-menu-group-label {
    padding: 0.375rem 0.5rem 0.125rem;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.sw-field-menu-option {
    padding: 0.375rem 0.5rem;
    border-radius: 0.375rem;
    cursor: pointer;

    &.is-active {
        background: #1d4ed8;
        color: #fff;
    }
}

.sw-field-menu-empty {
    margin: 0;
    padding: 0.375rem 0.5rem;
    color: #475569;
    font-style: italic;
}

/* The brand role swatches of the builder's element settings (template-edit/brand-controls.js). */
.brand-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.5rem;
}

.brand-swatch {
    display: inline-flex;
    padding: 0.125rem;
    border: 0.0625rem solid #ced4da;
    border-radius: 0.375rem;
    background: #fff;

    &[aria-pressed="true"] {
        outline: 0.125rem solid var(--primary);
        outline-offset: 0.0625rem;
    }

    &:focus-visible {
        outline: 0.125rem solid var(--primary);
        outline-offset: 0.125rem;
    }
}

.brand-swatch-chip {
    display: block;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.25rem;
    box-shadow: inset 0 0 0 0.0625rem rgb(0 0 0 / 0.15);

    /* A role the brand kit has no value for. */
    &.is-unset {
        background: repeating-linear-gradient(135deg, #fff 0 0.25rem, #e9ecef 0.25rem 0.5rem);
    }
}

/* The builder's element settings (ThemeTemplate/_element-settings, TE4-08): Size and Weight side by
   side, Alignment as a segmented control, Colour as round brand swatches then "Pick another colour"
   (the colour picker under it). */
.element-settings {
    .element-settings-pair {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.625rem;
    }

    .text-align-group {
        display: inline-flex;
        padding: 0.1875rem;
        border-radius: 0.625rem;
        background: var(--pill);
    }

    .text-align-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.5rem;
        height: 2.25rem;
        border: 0;
        border-radius: 0.5rem;
        background: transparent;
        color: var(--text);

        &[aria-pressed="true"] {
            background: var(--white);
            color: var(--text-color);
            box-shadow: 0 0.0625rem 0.125rem rgb(15 23 42 / 0.12);
        }

        &:focus-visible {
            outline: 0.1875rem solid var(--primary);
            outline-offset: 0.125rem;
        }
    }

    .brand-swatches {
        gap: 0.5rem;
        margin: 0;
    }

    .brand-swatch,
    .font-color-pick {
        width: 2.25rem;
        height: 2.25rem;
        padding: 0;
        border-radius: 50%;
    }

    .brand-swatch {
        overflow: hidden;

        &[aria-pressed="true"],
        &:focus-visible {
            outline-offset: 0.125rem;
        }
    }

    .brand-swatch-chip {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        box-shadow: none;
    }

    .font-color-picker {
        position: relative;
        display: inline-flex;
    }

    .font-color-pick {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 0.0625rem dashed var(--icon);
        background: var(--white);
        color: var(--text);

        &:focus-visible {
            outline: 0.125rem solid var(--primary);
            outline-offset: 0.125rem;
        }
    }

    /* Under its button, which opens it: the browser's picker shows beside the button. */
    .font-color-input {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        padding: 0;
        border: 0;
        opacity: 0;
        pointer-events: none;
    }

    .element-settings-empty {
        margin: 0;
        color: var(--text);
    }
}

/* At 1600px and wider the settings are a column docked to the right of the canvas, in the builder's
   <article> beside it (template-edit/settings-dock.js): never over the canvas, never modal. */
@media (min-width: 1600px) {
    div.offcanvas.offcanvas-end.element-settings {
        position: static;
        z-index: auto;
        flex: 0 1 20rem;
        width: auto;
        min-width: 17.5rem;
        max-width: 20rem;
        height: auto;
        /* As tall as the work area's row (its controls scroll), whatever their length, and like the
           rail at least 20rem wrapped onto a line of its own (.builder-work-area, TE4-07). */
        contain: size;
        min-height: 20rem;
        gap: 1rem;
        padding: 1rem;
        overflow-y: auto;
        border-left: 0.0625rem solid var(--input-border);
        background-color: var(--white);
        transform: none;
        visibility: visible;
        transition: none;

        .offcanvas-header {
            justify-content: space-between;
            gap: 0.5rem;
            padding: 0;
            background-color: transparent;
            color: var(--text-color);
        }

        h2 {
            margin: 0;
            font-size: 1rem;
            font-weight: 800;
            color: var(--text-color);
        }

        .btn-close {
            width: 1.125rem;
            height: 1.125rem;
            margin: 0 0 0 auto;
            padding: 0.5625rem;
            border-radius: 0.5rem;
            background-size: 1.125rem;
            filter: none;
            opacity: 0.6;
            scale: 1;
        }

        .offcanvas-body {
            flex: none;
            padding: 0;
            overflow: visible;
        }
    }
}

/* The floating text toolbar (TE2-07, template-edit/text-toolbar.js): the common edits of the selected
   text, fixed above (or below) it inside the canvas's viewport; below the drawer and the modals. The
   small bar of any other selected element's actions (TE4-10, template-edit/element-actions.js) is in
   its style, just above the element's top-right corner. */
.text-toolbar,
.element-actions {
    position: fixed;
    z-index: 1030;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.375rem;
    border: 1px solid var(--input-border);
    border-radius: 0.625rem;
    background: #fff;
    box-shadow: 0 0.25rem 1rem rgb(0 0 0 / 0.15);
    font-size: 0.8125rem;

    &[hidden] {
        display: none;
    }
}

.element-actions {
    padding: 0.25rem;
}

.text-toolbar {
    /* Compact, and without the page's room for a field icon. */
    select.form-select,
    input.form-control {
        width: auto;
        margin: 0;
        padding: 0.25rem 0.5rem;
        font-size: 0.8125rem;
    }

    select.form-select {
        padding-right: 1.75rem;
        background-position: right 0.5rem center;
    }

    input.form-control-color {
        width: 2rem;
        height: 2rem;
        padding: 0.125rem;
    }

    input.text-toolbar-size {
        width: 3.75rem;
        text-align: center;
    }

    .brand-swatch-chip {
        width: 1.25rem;
        height: 1.25rem;
    }
}

.text-toolbar-label {
    max-width: 10rem;
    overflow: hidden;
    padding: 0 0.25rem;
    color: var(--text);
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.text-toolbar-font {
    max-width: 9.5rem;
}

.text-toolbar-group,
.text-toolbar-swatches {
    display: flex;
    align-items: center;
    gap: 0.125rem;
}

.text-toolbar-swatches {
    gap: 0.25rem;
}

.text-toolbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border: 0;
    color: #212529;

    &:hover,
    &.active,
    &[aria-pressed="true"] {
        background-color: #f1f3f5;
        color: var(--primary);
    }

    &:focus-visible {
        outline: 0.125rem solid var(--primary);
        outline-offset: 0.0625rem;
    }
}

.text-toolbar-end {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.text-toolbar-divider {
    align-self: stretch;
    width: 1px;
    margin: 0.125rem 0.125rem;
    background: var(--input-border);
}

/* The font size slider and number of the builder's element settings (ThemeTemplate/_type-controls). */
.font-size-control {
    display: flex;
    align-items: center;
    gap: 0.75rem;

    .form-range {
        flex: 1 1 auto;
    }

    .form-control {
        flex: 0 0 5.5rem;
        width: 5.5rem;
    }
}

/*?----Audit Logs-----*/

.filter-heading {
    div {
        svg {
            color: var(--primary);
        }

        h2 {
            font-size: 1.125rem;
            color: var(--text-color);
            line-height: 1;
        }
    }

    .mainBtn-sm {
        box-shadow: inset 0 0 0 1px var(--primary-border);
    }
}

.filter-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 0.875rem 1rem;
}

.timestamp-cell {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.audit-card {
    border: 1px solid var(--input-border);
    border-radius: 0.5rem;
    padding: 0.875rem 1rem;
}

.audit-label {
    line-height: 1.5;
}

.audit-json {
    background: var(--text-color);
    color: var(--code);
    padding: 0.75rem;
    border-radius: 0.625rem;
    font-size: 0.875rem;
    max-height: 15rem;
    overflow: auto;

    &::-webkit-scrollbar {
        width: 0.375rem;
        height: 0.375rem;
    }

    &::-webkit-scrollbar-thumb {
        background-color: #333a4a;
    }
}

.red-text {
    color: var(--danger);
}

.green-text {
    color: var(--success);
}

#logViewModal .modal-body {
    padding: 1.25rem;
}

/*?----Create Theme Template-----*/

.choose-template {
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1.25rem;
}

.template-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    border: 1px solid var(--input-border);
    padding: 0.875rem;
    border-radius: 0.375rem;
    cursor: pointer;
    width: 100%;

    &:has(input[type="radio"]:checked) {
        background-color: var(--primary-light);
        border-color: var(--primary-border);
    }
}

.option-content {
    display: flex;
    flex-direction: column;
}

.option-heading {
    color: var(--text-color);
    font-weight: 600;
    margin: 0;

    + span {
        font-size: 0.875rem;
    }
}

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

.stepper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    aspect-ratio: 1;
    background-color: #fff;
    color: var(--text);
    font-weight: bold;
    border-radius: 50%;
    box-shadow: 0 0.125rem 0.25rem rgba(180, 82, 18, 0.2);
}

.step-content {
    display: flex;
    flex-direction: column;

    strong {
        color: var(--text-color);
        font-weight: 600;
        text-wrap: nowrap;

        + span {
            font-size: 0.875rem;
        }
    }
}

.line {
    width: 12.5rem;
    height: 0.125rem;
    border-radius: 0.125rem;
    background-color: var(--input-border);
}

.stepper.active {
    .step-number {
        background-color: var(--primary);
        color: #fff;
    }

    .step-content strong {
        color: var(--primary);
    }
}

.template-warning-wrapper {
    margin-top: 0.5rem;
    overflow: hidden;
    width: 100%;
}

.template-warning {
    display: block;
    color: var(--danger);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

.template-container {
    display: flex;
    justify-content: space-between;
    gap: 1.25rem;
    margin-top: 1.25rem;
    padding-bottom: 0.375rem;
    overflow-x: auto;

    &::-webkit-scrollbar {
        width: 0.375rem;
        height: 0.375rem;
    }

    &::-webkit-scrollbar-thumb {
        background-color: var(--input-border);
    }

    .templates {
        flex: 0 0 calc((100% - (3 * 1.25rem)) / 4);
        border-radius: 0.625rem;
        border: 0.125rem solid var(--input-border);
        overflow: hidden;

        &.selected {
            border-color: var(--primary);

            .mainBtn-sm {
                background: linear-gradient(var(--primary), #a34a0f);
                box-shadow: 0 0.25rem 0.75rem rgba(255, 117, 24, 0.3);
                color: #fff;
            }
        }
    }
}

.template-preview-theme-canvas {
    position: relative;
    overflow: hidden;
}

.template-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.625rem;
    flex-wrap: wrap;
    padding: 0.875rem 1rem;
    border-top: 0.125rem solid var(--pill);

    strong {
        color: var(--text-color);
        font-weight: 600;
    }

    .mainBtn-sm {
        background: var(--input);
        color: var(--text);
        box-shadow: inset 0 0 0 0.125rem var(--input-border);
        margin-left: auto;
    }
}

/*?----View Wall-----*/

.wall-insights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 1.5rem;

    * {
        transition: all 0.3s;
    }

    .profile {
        display: flex;
        align-items: center;
        justify-content: space-between;
        border: 0.125rem solid transparent;
        gap: 0.625rem;

        &:is(:nth-child(2), :nth-child(4)) {
            pointer-events: none;
        }

        &:is(:nth-child(2), :nth-child(4)) {
            pointer-events: none;
        }

        > div {
            display: flex;
            flex-direction: column;
            gap: 0.375rem;
        }
    }
}

/* Tenant dashboard: five cards; the non-link ones (views, scans, visits) take no hover (SWS-214). */
.customer-wall-insights {
    grid-template-columns: repeat(5, 1fr);

    .profile:nth-child(5) {
        pointer-events: none;
    }
}

.customer-wall-insights .profile:hover {
    box-shadow: 0 0.625rem 1.5rem rgba(0, 0, 0, 0.07);
    border-color: var(--primary);

    span.dim-text {
        color: var(--primary);
    }
}

.insight-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-color);
}

.trend-pill {
    background-color: var(--success-light);
    color: var(--success);
    width: fit-content;
    text-wrap: nowrap;
}

.insight-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    aspect-ratio: 1;
    border-radius: 0.375rem;
    background-color: var(--primary-light);
    color: var(--primary);
}

div.select-profile-group {
    min-width: 17.5rem;
}

#wallLinkInput {
    background-color: var(--input);
}

.social-icons {
    margin-top: 1.25rem;
    gap: 1.5rem;

    a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2.875rem;
        height: 2.875rem;
        overflow: hidden;
        border-radius: 50%;
        background-color: #f1f5f9;
        color: var(--text, #1e293b);
        font-weight: 700;
        text-decoration: none;
    }

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/*?----Associate Profiles-----*/

#filterContainer:has(.profile-filter-fields) {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--input-border);
    gap: 0.625rem;
}

.profile-filter-fields {
    div:not(:first-child) {
        flex: 1;
    }

    div.condition-select {
        flex: 0 0 9rem;
    }
}

#filterPanel {
    display: none;
}

.value-dropdown {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    max-height: 11.25rem;
    overflow-y: auto;

    &::-webkit-scrollbar {
        width: 0.375rem;
        height: 0.375rem;
    }

    &::-webkit-scrollbar-thumb {
        background-color: var(--input-border);
    }
}

button.dropdown-custom-button {
    background-color: var(--input);
    border: 1px solid var(--input-border);
    padding: 0.625rem 0.75rem 0.625rem 2.5rem;
    color: var(--text-color);
    border-radius: 0.375rem;
    height: 2.875rem;

    &:focus {
        border-color: var(--primary);
    }

    &::after {
        margin-left: auto;
    }

    + ul.custom-dropdown-menu {
        margin-top: 0 !important;
        padding: 1rem;

        .form-check {
            display: flex;
            align-items: center;
            padding: 0;
            margin: 0;

            input {
                margin: 0;
            }
        }
    }
}

.remove-btn {
    min-width: 2.875rem;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--danger);
    background-color: var(--danger-light);
    border-radius: 0.375rem;
    border: none;
}

.custom-table-container div.dt-container div.dt-layout-row {
    overflow: auto;
    text-wrap: nowrap;

    .dt-layout-cell {
        max-height: calc(100vh - 18.75rem);
    }

    tr th {
        position: sticky;
        top: 0;
    }
}

.profile-text div.d-flex {
    gap: 0.125rem;
    color: var(--text);
    font-weight: normal;
}

#profileCount {
    margin-bottom: 0.875rem;
    left: 1.5rem;
    top: 1.938rem;
    margin: 0;
    z-index: 1;
}

/*?----Create Profile-----*/

button:is(#searchEmployer, #searchBulkEmployer) svg {
    position: static;
    color: var(--primary);
}

#employerResults {
    display: none;
    position: absolute;
    max-height: 10.25rem;
    overflow-y: auto;
    width: 100%;
    background-color: #fff;
    z-index: 2;
    border: 1px solid var(--input-border);
    border-radius: 0.375rem;

    &::-webkit-scrollbar {
        width: 0.375rem;
        height: 0.375rem;
    }

    &::-webkit-scrollbar-thumb {
        background-color: var(--input-border);
    }

    .list-group-item {
        color: var(--text-color);
        border: none;
        border-bottom: 1px solid var(--input-border);
    }
}

section.profile .accordion-button {
    padding: 0.875rem 1.25rem;
    flex-wrap: wrap;
    row-gap: 0.625rem;
}

.record-title {
    margin-right: 0.625rem;
}

button.academic-toggle::after {
    margin-left: 0;
}

.upload-container {
    border: 2px dashed var(--input-border);
    padding: 2rem 1.25rem;
    border-radius: 0.625rem;

    > p {
        font-size: 1.125rem;
        font-weight: 600;
        color: var(--text-color);
    }

    label:has(+ input[type="file"]:focus) {
        outline: -webkit-focus-ring-color auto 1px;
    }
}

.upload-svg {
    width: 3rem;
    aspect-ratio: 1;
    background-color: var(--primary-light);
    color: var(--primary);
}

.text-line {
    &::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 0;
        translate: 0 -50%;
        height: 0.125rem;
        width: 100%;
        background-color: var(--pill);
        z-index: -1;
    }
}

.uploaded-file {
    border: 1px solid var(--input-border);
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem 0.75rem 0.75rem;
    margin-top: 1rem;

    #pdf-file {
        width: 3.625rem;
    }

    .delete-svg {
        cursor: pointer;
    }

    .progress {
        height: 0.375rem;
    }
}

main:has(.resume-wrapper) {
    margin-right: 33.563rem;
}

.resume-wrapper {
    right: 2rem;
    top: 6.5rem;
    height: calc(100vh - 8.5rem);

    &::-webkit-scrollbar {
        width: 0.375rem;
        height: 0.375rem;
    }

    &::-webkit-scrollbar-thumb {
        background-color: var(--input-border);
    }

    figure {
        box-shadow: 0 0.125rem 0.875rem rgba(0, 0, 0, 0.03);
    }
}

/*?----Profile Text Editor (Tiptap, resources/js/vendor/tiptap.js)-----*/

.rte {
    width: 100%;
    font-family: "Roboto", sans-serif;
    color: var(--text-color);

    .rte-toolbar {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.25rem;
        padding: 0.375rem;
        background: #fff;
        border: 1px solid var(--input-border);
        border-bottom: 0;
        border-radius: 0.375rem 0.375rem 0 0;
    }

    .rte-heading {
        width: auto;
        min-width: 8.5rem;
        margin: 0;
        padding-left: 0.5rem;
    }

    .rte-separator {
        align-self: stretch;
        width: 1px;
        margin: 0.125rem 0.25rem;
        background: var(--input-border);
    }

    .rte-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2rem;
        height: 2rem;
        padding: 0;
        font-size: 1.125rem;
        color: var(--text-color);
        background: transparent;
        border: 0;
        border-radius: 0.375rem;

        &:hover:not(:disabled) {
            background: var(--input);
        }

        &:focus-visible {
            outline: 0;
            box-shadow: 0 0 0 0.25rem var(--primary-light);
            color: var(--primary);
        }

        &.is-active,
        &[aria-pressed="true"] {
            background: var(--primary-light);
            color: var(--primary);
        }

        &:disabled {
            opacity: 0.4;
            cursor: default;
        }
    }

    .rte-editor {
        overflow-y: auto;
        padding: 0.625rem 0.75rem;
        background: var(--input);
        color: var(--text-color);
        border: 1px solid var(--input-border);
        border-radius: 0 0 0.375rem 0.375rem;
        outline: 0;

        &:focus {
            border-color: var(--primary);
            box-shadow: inset 0.125rem 0.125rem 0.188rem var(--primary-light);
        }

        &.is-invalid {
            border-color: var(--bs-form-invalid-border-color, #dc3545);
        }

        > :first-child {
            margin-top: 0;
        }

        h2 {
            font-size: 1.125rem;
            margin-top: 0;
        }

        h3 {
            font-size: 1rem;
        }

        h4 {
            font-size: 0.938rem;
        }

        p {
            margin-bottom: 0.5rem;
        }

        ul,
        ol {
            padding-left: 2rem;
            margin-bottom: 0.5rem;
        }

        ul {
            list-style: disc;
        }

        ol {
            list-style: decimal;
        }

        li > p,
        li > ul,
        li > ol {
            margin-bottom: 0;
        }

        blockquote {
            margin: 0 0 1rem;
            padding-left: 1rem;
            border-left: 0.25rem solid var(--input-border);
            font-style: italic;
        }

        a {
            color: var(--primary);
        }

        ul[data-type="taskList"] {
            list-style: none;
            padding-left: 0.25rem;

            li {
                display: flex;
                align-items: flex-start;
                gap: 0.5rem;

                > label {
                    flex: 0 0 auto;
                    margin-top: 0.125rem;
                }

                > div {
                    flex: 1 1 auto;

                    > p {
                        margin-bottom: 0.25rem;
                    }
                }
            }

            input[type="checkbox"] {
                accent-color: var(--primary);
            }
        }

        p.is-editor-empty:first-child::before {
            content: attr(data-placeholder);
            float: left;
            height: 0;
            color: var(--icon);
            pointer-events: none;
        }
    }
}

/*?----Profile URL-----*/

#dataPointWrapper {
    > div:first-child {
        margin-bottom: 0.375rem;
    }

    .data-point-row {
        margin-bottom: 0.625rem;

        &:last-of-type {
            margin-bottom: 0;
        }
    }
}

label:has(+ .mainBtn) {
    font-size: 0.875rem;
    color: var(--text-color);
}

button.iconDropdown::after {
    content: none;
}

/*?----View Profile-----*/

.resCards {
    h2 {
        font-size: 1.125rem;
    }

    ul {
        list-style-type: disc;
        padding-left: 2rem;
    }
}

.accordion-body .label-span + span {
    color: var(--text);
}

.qr-btns {
    gap: 0.625rem;
}

.dimBtn.copy-link-btn {
    transition: all 0.25s ease;

    &.copied {
        background: var(--success);
        color: #fff;
        box-shadow: inset 0 0 0 0.125rem var(--success);
    }
}

.profile-qr-section {
    column-gap: 1.5rem;
}

/*?----Customer Admin Dashboard-----*/

.chart-wrapper {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    column-gap: 1.5rem;

    .profile-form-heading div.position-relative {
        padding: 0;

        &::before {
            content: none;
        }
    }
}

.apexcharts-tooltip .apexcharts-tooltip-title {
    color: var(--text-color);
}

/*?----Wall Presentation View-----*/

main:has(.swiper) {
    width: 100%;
    min-height: 100vh;
    background-color: #fff;

    h1 {
        font-size: 3.125vw;
        color: var(--text-color);
        margin: 0.208vw 0;
    }

    .mainBtn {
        padding: 0.521vw 0.938vw;
        box-shadow: 0 0.208vw 0.625vw rgba(255, 117, 24, 0.3);
        border-radius: 0.313vw;
        gap: 0.313vw;
        font-size: 0.833vw;
    }

    .mainBtn-sm {
        font-size: 0.729vw;
        padding: 0.417vw 0.833vw;
        gap: 0.208vw;
        border-radius: 0.313vw;
    }

    .outlineBtn {
        box-shadow: inset 0 0 0 0.104vw var(--primary);
    }

    .dimBtn {
        box-shadow: inset 0 0 0 0.104vw var(--input-border);
    }

    .mainBtn-cancel {
        box-shadow: inset 0 0 0 0.104vw var(--danger);
    }

    svg[width="14"] {
        min-width: 0.729vw;
        height: 0.729vw;
    }

    svg[width="16"] {
        min-width: 0.833vw;
        height: 0.833vw;
    }

    svg[width="18"] {
        min-width: 0.938vw;
        height: 0.938vw;
    }

    svg[width="20"] {
        min-width: 1.042vw;
        height: 1.042vw;
        top: 0.677vw;
        left: 0.625vw;
    }
}

.wall-controls {
    display: flex;
    background-color: var(--background);
    padding: 1.25vw;
    border-bottom: 1px solid var(--input-border);
    align-items: center;

    img {
        width: auto;
        height: 2.083vw;
    }

    + section {
        padding: 1.25vw;
        gap: 0.833vw;
    }
}

.button-control-set {
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    gap: 0.417vw;
}

.button-control {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.729vw;
    font-weight: 500;
    width: 1.771vw;
    aspect-ratio: 1;
    background-color: #fff;
    border: 1px solid var(--input-border);
    border-radius: 0.313vw;
    color: var(--text);

    &.playBtn {
        width: 2.5vw;
        background: linear-gradient(var(--primary), #a34a0f);
        box-shadow: 0 0.25rem 1rem rgba(255, 117, 24, 0.3);
        color: #fff;
        border: none;
    }
}

.class-alumni-info {
    display: flex;
}

.heading-line {
    height: 0.208vw;
    width: 18.75vw;
    background-color: var(--primary-light);

    &::before {
        content: "";
        position: absolute;
        width: 8.333vw;
        height: 0.208vw;
        background-color: var(--primary);
        top: 0;
        left: 50%;
        translate: -50% 0;
        border-radius: 0.208vw;
    }

    + p {
        font-size: 0.833vw;
        margin-bottom: 0.833vw;
    }
}

.swiper {
    width: 40vw;
    max-width: 100%;
    aspect-ratio: 3/2;
    transition: all 0.6s;

    .swiper-wrapper {
        height: fit-content;
    }
}

.swiper-slide {
    .templates {
        border: 1px solid var(--input-border);
    }
}

select.form-select.pagination-select {
    display: inline-block;
    width: auto;
    padding: 0.104vw 1.042vw 0.104vw 0.521vw;
    background-size: 0.729vw 0.521vw;
    background-position: right 0.208vw center;
    font-size: 0.833vw;
    color: var(--text);

    + span {
        font-size: 0.833vw;
    }
}

div.offcanvas.offcanvas-end:has(.configure-wall) {
    width: 29.167vw;

    .offcanvas-header {
        padding: 0.833vw 1.042vw;
    }

    h2 {
        font-size: 0.938vw;
    }

    .offcanvas-body,
    .offcanvas-footer {
        padding: 1.042vw;
    }
}

.configure-wall {
    margin-bottom: 1.042vw;
    gap: 0.729vw;

    h3 {
        font-size: 0.833vw;
        font-weight: 600;
        margin: 0;
        padding-bottom: 0.729vw;
        border-bottom: 1px solid var(--input-border);
    }

    div.input-group input.form-control {
        padding: 0.521vw 0.625vw 0.521vw 2.083vw;
        font-size: 0.833vw;
    }

    .templates {
        border: 0.104vw solid var(--input-border);
        border-radius: 0.521vw;

        .template-preview-theme-canvas {
            width: 68%;
        }

        .template-info {
            font-size: 0.833vw;
            flex-direction: column;
            gap: 0.729vw;
            flex-grow: 1;
            border-top: 0;

            .mainBtn-sm {
                box-shadow: 0 0 0 0.104vw var(--input-border);
                margin: 0 auto 0;
            }
        }

        &.active {
            border-color: var(--primary);

            .mainBtn-sm {
                background: linear-gradient(var(--primary), #a34a0f);
                box-shadow: 0 0.208vw 0.625vw rgba(255, 117, 24, 0.3);
                color: #fff;
            }
        }
    }
}

.animation-settings {
    font-size: 0.833vw;

    div.d-flex {
        gap: 0.417vw;
    }

    input#autoplayToggle {
        width: 2.083vw;
        height: 1.146vw;
    }
}

.configure-footer {
    gap: 0.729vw;
}

.cancel-view {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    right: 1.5rem;
    top: 1.5rem;
    z-index: 1;
    display: none;
}

main.view-mode {
    background-color: rgba(14, 14, 14);

    .wall-controls,
    .class-alumni-info,
    h1,
    .heading-line,
    p {
        display: none;
    }

    .swiper {
        position: fixed;
        inset: 0;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        aspect-ratio: auto;
    }

    .swiper-slide .templates {
        border: none;
    }

    /* The whole 16:9 slide on screen whatever the screen's shape (letterboxed). */
    .swiper-slide .preview-scale {
        width: min(100%, calc(100vh * 16 / 9));
        margin-inline: auto;
    }

    select.form-select.pagination-select {
        border-color: rgb(52, 58, 64);
    }

    .cancel-view {
        display: flex;
    }
}

/*?----Profile View-----*/

.profile-container {
    max-width: 82.5rem;
    margin: auto;

    &:has(.profile-content) {
        gap: 3.75rem;
    }
}

.profile-banner {
    padding: 7.5rem 2rem;
    background-color: var(--background);

    h1 {
        font-size: 2.375rem;
        font-weight: bolder;
        color: var(--text-color);
        margin-bottom: 0;
    }

    .value-pill {
        height: fit-content;
    }

    p.highlight-text {
        margin-top: 0.875rem;
        font-size: 1.125rem;
    }
}

.profile-content {
    width: 58%;
}

.profile-info {
    column-gap: 1.25rem;
    row-gap: 0.625rem;

    > div {
        display: flex;
        align-items: center;
        gap: 0.375rem;

        svg {
            color: var(--primary);
        }
    }
}

.profile-image {
    width: 16.25rem;
    max-width: 100%;
    aspect-ratio: 1;
    background-color: var(--primary);
    box-shadow: 0 0 0 1rem rgba(180, 83, 18, 0.8);
    margin-right: 2.844rem;

    &::before {
        content: "";
        position: absolute;
        inset: 0;
        border: 0.125rem dashed var(--primary);
        border-radius: inherit;
        scale: 1.35;
        z-index: -1;
    }

    img {
        position: absolute;
        bottom: 0;
        left: 50%;
        translate: -50% 0;
        border-radius: 8.125rem;
    }
}

section:has(.profile-extra-info) {
    padding: 2rem;
    border: none;
}

.profile-extra-info {
    background-color: var(--primary-light);
    border-top: 0.125rem solid var(--primary);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

/*?----Landing Page-----*/

.goto {
    width: 3.125rem;
    aspect-ratio: 1;
    bottom: 3rem;
    right: 3rem;
}

.up-arrow {
    display: none;
}

.flipped {
    .up-arrow {
        display: inline;
    }

    .down-arrow {
        display: none;
    }
}

/*?----Customer Admin Tools-----*/

.tools-container {
    margin-top: 2rem;
    border-radius: 0.625rem;
    box-shadow: 0 0.125rem 0.875rem rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.tools-header {
    background-color: var(--primary);
    padding: 1rem 1.5rem;

    h3 {
        font-size: 1.125rem;
    }

    .mainBtn {
        background: #fff;
        color: var(--primary);
    }
}

.tools-wall {
    background-color: #fff;
    padding: 1.5rem;
}

.walls-list {
    max-height: 22rem;
    overflow-y: auto;

    li {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1.25rem;
        border: 1px solid var(--input-border);
        border-radius: 0.375rem;

        strong {
            display: block;
            font-weight: 600;
            color: var(--text-color);
        }
    }

    &::-webkit-scrollbar {
        width: 0.375rem;
        height: 0.375rem;
    }

    &::-webkit-scrollbar-thumb {
        background-color: var(--input-border);
    }
}

/*?----Super Admin Dashboard-----*/

.status-progress {
    margin-bottom: 0.875rem;

    div:not(.progress) {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    small:has(strong) {
        font-size: 0.75rem;
    }
}

div.progress {
    height: 0.625rem;
    margin: 0.375rem 0 0.25rem;
}

div.progress-bar {
    background-color: var(--primary);
    border-radius: 50rem;

    &.blue-progress-bar {
        background-color: var(--info);
    }

    &.purple-progress-bar {
        background-color: var(--purple);
    }

    &.red-progress-bar {
        background-color: var(--danger);
    }
}

.status-percentage {
    small {
        font-size: 0.75rem;

        &.fw-medium {
            color: var(--success);
        }
    }
}

select.select-heading {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.2;
    width: fit-content;
}

.profile .checkbox {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.profile .switch {
    width: 100%;
    height: 100%;
    display: block;
    background-color: #6399a6;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease-out;
}

.profile .slider {
    width: 25px;
    height: 25px;
    position: absolute;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0px 4px 15px 0px rgba(0, 0, 0, 0.25);
    transition: all 0.2s ease-out;
    cursor: pointer;
    left: calc(50% - 10px / 2 + 10px);
    top: calc(50% - 25px / 2);
}

.profile .checkbox:checked + .switch {
    background-color: #e9e9eb;
}

.profile .checkbox:checked + .switch .slider {
    left: calc(50% - 44px / 2 - 10px);
    top: calc(50% - 25px / 2);
}

.profile .status span {
    font-size: 24px;
    color: #a8a8a8;
    font-weight: 600;
}

.data-table .active {
    padding: 6px 30px;
    text-decoration: none;
    border-radius: 6px;
    background-color: #edf8ff;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.data-table .In-Progress {
    padding: 6px 12px;
    text-decoration: none;
    border-radius: 6px;
    background-color: #ffeae9;
    border: 1px solid #ed0f02;
    color: #ed0f02;
}

.dashboard-page .logo a {
    font-size: 30px;
    color: #242424;
}

.sidebar-toggle .sidebar {
    left: 0px;
    transition: 1s ease-in;
}

.sidebar-toggle .content {
    margin: 0px;
    transition: 1s ease-in;
}

.logo .toggle {
    display: none;
}

.fade-out {
    transition: opacity 1s ease;
    opacity: 0;
}

.modal-body .active {
    padding: 10px 30px;
    text-decoration: none;
    border-radius: 6px;
    background-color: #edf8ff;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.data-table .In-Progress {
    padding: 10px 12px;
    text-decoration: none;
    border-radius: 6px;
    background-color: #ffeae9;
    border: 1px solid #ed0f02;
    color: #ed0f02;
}

.cstm-active {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-footer .save {
    background-color: var(--primary);
    color: var(--white);
}

.modal-footer .close {
    background-color: #ed0f02;
    color: var(--white);
}

.cstm-active .email {
    width: 70%;
}

.active-font {
    color: var(--primary) !important;
}

.profile-details .all input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.dashboardImg {
    margin-top: 7%;
}

.alert {
    transition: opacity 0.5s ease-in-out;
}

.alert.fade {
    opacity: 0;
}

.error-message {
    border-color: #dc3545 !important;
    padding-right: 0.375rem;
    background-position: right calc(0.4em + 0.1875rem) center;
    background-size: calc(0.8em + 0.375rem) calc(0.8em + 0.375rem);
}

.error-message ~ .invalid-feedback {
    display: block;
    margin-top: 0.25rem;
}

.file-upload {
    display: none;
}

/* Image cropper (resources/js/lib/cropper.js, Cropper.js 2): the canvas fills the dialog's width. */
cropper-canvas {
    width: 100%;
    height: 300px;
}

.chngPassImg {
    bottom: unset;
    top: 20%;
}

/* hide the eye icon from ms edge which showing by default */
input::-ms-reveal,
input::-ms-clear {
    display: none;
}

/* set max-height for the datafield modal box */
#dataPointsContainer,
#editDataPointsContainer {
    max-height: 60vh;
    overflow-y: scroll;
}

.modal-spinner-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 50%;
}

.dt-empty {
    text-align: center !important;
}

.lockedBgClr {
    background-color: #f5cccc;
}

.snapShotLabel {
    padding: 0 30px;
}

/*30/01/2025*/
.comparison-outer {
    border-radius: 8px;
    border-radius: 10px;
    border: 1px solid rgba(210, 210, 210, 0.4);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0px 4px 23px -3px rgba(234, 234, 234, 0.5);
    padding: 30px;
}

.comparison-content {
    display: flex;
    align-items: center;
    gap: 0px;
    border-bottom: 1px solid #d9d9d9;
    padding: 10px;
}

.comparison-content label {
    width: 230px;
    color: #0c0c0c;
    font-size: 16px;
    font-weight: 600;
}

.comparison-content h4 {
    font-size: 16px;
}

.comparison-table-outer {
    border-radius: 10px;
    border: 1px solid rgba(210, 210, 210, 0.4);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0px 4px 23px -3px rgba(234, 234, 234, 0.5);
    padding: 30px;
    margin-top: 25px;
}

.comparison-inner {
    border: 1px solid #d9d9d9d9;
    border-radius: 6px;
    width: 50%;
}

.profile .profile-details .profile-details-inner {
    box-shadow: unset;
    border: none;
    background-color: unset;
    padding: 0px;
}

img.logoImage {
    width: 300px !important;
}

.table-container button {
    position: sticky;
    bottom: 0;
    z-index: 1;
    background-color: white;
}

.sortable-placeholder {
    background-color: red;
    height: 40px;
    border: 1px dashed #ccc;
}

.primaryColorBtn,
.secondaryColorBtn,
.benchmarkColorBtn {
    height: 35px;
    border: 1px solid var(--text-color);
}

.color-circle {
    display: inline-block;
    min-width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid #ccc;
    cursor: pointer;
    vertical-align: middle;
    background: conic-gradient(red, yellow, green, cyan, blue, magenta, red);
}

.profileDiv,
.dataDiv {
    background-color: var(--white);
}

/* 24/02/2025 */

.profile-logo-big #result {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
}

.cstm-profile-logo {
    align-items: center;
}

.cstm-profile-logo #iconLogo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benchmark-logo img {
    width: 50px;
    height: 50px;
    object-fit: scale-down;
    border: 1px solid #d2cdcd;
    padding: 4px;
    background-color: #fff;
    border-radius: 50%;
}

.company-logo img {
    width: 40px;
    height: 40px;
}

.heading h3 {
    color: #030229;
    font-size: 20px;
    font-weight: 600;
}

.heading .form-select {
    width: 150px;
}

header.scrolled {
    background: #071543;
}

.main-page header .logo {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-page header .logo img {
    width: 230px;
}

.header-right .menu-item {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style: none;
}

.header-right .menu-item .nav-item {
    padding: 0 30px;
}

.header-right .menu-item .nav-item:not(:last-child) {
    border-right: 1px solid rgb(189 218 225);
}

.benchmark-table-section {
    padding: 70px 30px;
}

.benchmark-tbl table.table thead th {
    background-color: #ffffff;
    color: var(--text-color);
    white-space: nowrap;
}

.benchmark-tbl table.table tbody th {
    background-color: #5398a5;
    color: #ffffff;
}

.benchmark-tbl table.table .secondary-header {
    background-color: #91bbc2;
    color: #ffffff;
}

.main-page .nav-link,
.investor-nav .nav-link {
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
}

.main-page .nav-link:hover {
    color: var(--white);
}

.questionSym {
    cursor: pointer;
    width: 40px;
}

#infoModal.modal {
    display: none;
    position: fixed;
    z-index: 9;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
}

#infoModal .modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
}

#infoModal .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

#infoModal .close:hover,
#infoModal .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.main-login-page .login-container {
    height: calc(100vh - 180px);
}

.sidebar.mainpage-sidebar {
    left: -280px;
}

.logo a {
    font-size: 30px;
    color: #242424;
}

.table-wrapper {
    position: relative;
    margin-bottom: 20px;
    overflow: hidden;

    th,
    td {
        padding: 9px 10px;
    }

    .pinned {
        display: none;
    }

    .scrollable {
        table {
            width: 100%;
        }
    }
}

.main-page .login-container {
    height: calc(100vh - 131px);
    display: flex;
    align-items: center;
}

.main-page .login-container.admin-login-container {
    height: calc(100vh - 175px);
    display: flex;
    align-items: center;
}

.homeIcon {
    cursor: pointer;
}

.no-color-link {
    color: inherit !important;
}

/* Benchmark Section css start */

.benchmark-content {
    padding: 15px 30px;
}

.benchmark-profile {
    padding: 50px 0;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.benchmark-profile .profile-img {
    width: 150px;
    border: 2px solid #99bbc3;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benchmark-profile .profile-img img {
    width: 100%;
}

.benchmark-profile .profile-details {
    width: calc(100% - 150px);
    padding: 5px 20px;
}

.benchmark-profile .profile-name h3 {
    font-size: 32px;
    font-weight: 600;
}

.benchmark-profile .profile-name p {
    font-size: 21px;
    font-weight: 500;
}

.benchmark-profile .profile-summary p {
    font-size: 16px;
    font-weight: 400;
}

.benchmark-profile .profile-content label {
    width: 225px;
}

.benchmark-profile .profile-content label span {
    font-size: 16px;
    color: #5e5e5e;
    width: 225px;
}

.benchmark-profile .profile-content .details span {
    font-size: 16px;
    color: var(--text-color);
}

.benchmark-profile .profile-content .details {
    margin-bottom: 6px;
}

.benchmark-profile .profile-content .details button.btn.query-btn {
    padding: 0;
    background: #99bbc3;
    color: #fff;
    font-size: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

/* Benchmark Section css end */

.chart-container {
    padding: 15px 30px;
    font-size: 1rem;

    .icon-cursor-pointer {
        align-items: center;
        margin: 0.8rem 1rem 1rem 0;
    }

    svg {
        width: 32px;
        height: 32px;
    }

    h6 {
        font-size: 1rem;
        margin-bottom: 0;
        margin-left: 0.6rem;
    }
}

.chart-container span.apexcharts-legend-marker {
    display: none;
}

div#customLegend > div {
    width: 19%;
}

.benchmark-tbl .table {
    font-size: 1rem;
}

.benchmark-tbl .table thead tr th {
    padding: 14px 10px;
    background-color: #99bbc3;
    color: var(--white);
}

.questionSym:hover + .infoModals {
    display: block;
}

.infoModals,
.strategyTooltip,
.portfolioTooltip,
.investorTooltip,
.managementTooltip,
.sharpTooltip,
.performanceTooltip,
.websiteTooltip {
    display: none;
    position: absolute;
    width: 100%;
    background-color: #fff;
    padding: 10px;
    border-radius: 10px;
    top: 40px;
    max-width: 80%;
}

.strategyTooltip,
.portfolioTooltip,
.investorTooltip,
.managementTooltip,
.sharpTooltip,
.performanceTooltip,
.websiteTooltip {
    background-color: #99bbc3 !important;
}

.strategyTooltip {
    top: 50%;
}

.portfolioTooltip {
    top: 53%;
}

.investorTooltip {
    top: 57%;
}

.managementTooltip {
    top: 60%;
}

.sharpTooltip {
    top: 63%;
    z-index: 10;
}

.performanceTooltip {
    top: 66%;
    z-index: 10;
}

.websiteTooltip {
    top: 69%;
    z-index: 10;
}

.query-btn:hover + .strategyTooltip,
.query-btn:hover + .portfolioTooltip,
.query-btn:hover + .investorTooltip,
.query-btn:hover + .managementTooltip,
.query-btn:hover + .sharpTooltip,
.query-btn:hover + .performanceTooltip,
.query-btn:hover + .websiteTooltip {
    display: block;
}

/* Nandan P css for toggle button 05/19/2025 */

.benchmark-table > thead > tr > th:nth-child(1) {
    width: 600px;
}

.benchmark-table > thead > tr > th:nth-child(2) {
    width: 220px;
}

.benchmark-profile .profile-content label {
    position: relative;
}

.managementTooltip,
.sharpTooltip,
.investorTooltip,
.portfolioTooltip,
.strategyTooltip {
    top: inherit;
    position: absolute;
    z-index: 13;
    width: 100%;
    min-width: 900px;
    height: fit-content;
}

.ModalInsideLogo {
    width: 120px;
    height: auto;
    position: absolute;
    left: 10px;
    bottom: -92px;
}

.cstmLogoContainerModal.modal-content {
    position: relative;
}

.cstmLogoContainerModal {
    border: 2px solid #99bbc3;
    border-radius: 20px;
    width: 800px;
    max-width: 90%;
    padding: 20px 30px;
    padding-bottom: 70px;
    background-color: var(--white) !important;
}

.cstmModalInnerText {
    text-wrap: wrap;
    text-align: left;
    line-height: 150%;
    font-size: 14px;
    font-weight: 500;
    color: black;
}

.labels-list {
    max-height: 340px;
    overflow: auto;
}

.label-card {
    padding: 10px 16px;
    display: flex;
    align-items: center;
}

.label-header {
    padding: 16px;
    margin-bottom: 0px;
}

.label-image {
    width: 60px;
    height: 60px;
    padding: 4px;
    border-radius: 50%;
    background-color: var(--white);
    border: 1px solid #c4c4c4;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4.306px 4.306px 0 rgba(0, 0, 0, 0.05);
}

.label-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    min-width: 50px;
    min-height: 50px;
    object-fit: contain;
}

.labelcard-heading {
    width: 100%;
    max-width: 400px;
    white-space: nowrap;
    width: 350px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.viewBenchmarkTable thead tr th {
    background-color: #99bbc3;
}

.viewBenchmarkTable thead tr th {
    background-color: #99bbc3;
}

.viewBenchmarkTable thead tr th:first-child {
    width: 65%;
}

/* 18 June */
.questionSym:hover + .infoModals.tooltip-content {
    display: block;
    position: absolute;
    left: 30px;
}

.tooltip-content .modal-content {
    background: none;
    border: none;
}

.homePageTable {
    position: relative;

    .tableLogo {
        position: absolute;
        top: 7px;
        z-index: 1;
    }

    .table > :not(caption) > * > * {
        background-color: var(--white);
        vertical-align: middle;
    }
}

.benchMark-table {
    height: 618px;
    overflow: auto;
}

.benchMark-table table thead {
    position: sticky;
    top: 0px;
}

.benchMark-table table thead {
    position: sticky;
    top: 0px;
}

.icon-cursor-pointer {
    cursor: pointer;
}

/* ===================================================================================================================== */
/* =============================================Latest Style Start 09/07/2025========================================= */
/* ===================================================================================================================== */

/* Login Page Admin Dashboard */

.main-logo {
    width: 230px;
    position: absolute;
    top: 2%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Admin Details Page */

.dataTitle {
    color: #202224;
    font-size: 20px;
    font-weight: 700;
}

.profile-details {
    table {
        border: 1px solid #efefef;
        font-size: 1rem;
        white-space: nowrap;
    }

    tr {
        height: 50px;
        vertical-align: middle;

        th {
            color: #202224;
        }
    }

    .table-striped > tbody > tr:nth-of-type(odd) > * {
        background-color: #fbfbfb !important;
    }

    .table > :not(caption) > * > * {
        padding: 0.5rem;
        background-color: var(--white);
        box-shadow: none;
    }

    span.dataHead {
        padding: 1rem;
    }
}

.snapShotTableSelect select {
    height: 32px;
}

.websiteHeader {
    background-color: #99bbc3;
    padding: 15px 30px;
}

.iconsCircle {
    height: 25px;
    width: 25px;
    border-radius: 50%;
    border: none;
    cursor: none;
}

.portfolioIcons {
    display: flex;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;

    .profile-pick {
        width: 50px;
        height: 50px;
        border-radius: 50%;
    }
}

/* ===================================================================================================================== */
/* =============================================User Module Style Start 27/08/2025========================================= */
/* ===================================================================================================================== */
.loginNavBtn {
    font-size: 1rem;
    text-decoration: none;
    border: 0;
    padding: 12px 28px;
}

.login-form-user {
    .login-form-admin {
        width: 42.5rem;
    }

    .login-head {
        h1 {
            font-size: 1.75rem;
            margin-bottom: 1.25rem;
        }

        p {
            color: var(--text);
            text-align: center;
            font-weight: 400;
            font-size: 1rem;
        }
    }

    .login-fields {
        h2 {
            color: var(--primary);
            font-size: 1.125rem;
            font-weight: bold;
            margin-bottom: 1.25rem;
        }
    }
}

.register-sections {
    border-bottom: 1px solid var(--input-border);
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
}

.sideLoginImg {
    display: flex;
    justify-content: end;
    align-items: center;
}

.main-page .nav-link {
    position: relative;
    text-decoration: none;
    color: var(--white);
}

.main-page .nav-link:focus {
    color: var(--white);
}

.main-page .nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 3px;
    background-color: var(--white);
    transition:
        left 0.3s ease,
        width 0.3s ease;
}

.main-page .nav-link:hover::after {
    width: 100%;
    left: 0;
}

.main-page .nav-link:focus::after {
    width: 100%;
    left: 0;
}

.main-page .nav-link.active::after {
    width: 100%;
    left: 0;
}

.homePageMain {
    height: 880px;
    position: relative;
    width: 100%;
    overflow: hidden;
    top: 0;
    z-index: 1;

    video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        clip-path: url(#clipPath);
        object-fit: cover;
        z-index: -1;
    }

    .shape {
        position: absolute;
        bottom: -10px;
        left: 0;
        width: 100%;
        aspect-ratio: 100 / 5;
        background-image: url(./.././Images/bannershadow.svg);
        background-position: center;
        background-repeat: no-repeat;
        background-size: contain;
    }

    .bannerText {
        align-items: center;
        justify-content: center;
        height: 100%;
        position: relative;
        z-index: 2;

        h3 {
            color: var(--white);
            font-size: 60px;
        }

        p {
            color: var(--white);
            font-size: 30px;
        }
    }
}

.video-container {
    width: 100%;
    height: 35vh;
    background-color: #ffffff;
    position: relative;

    video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .shape {
        position: absolute;
        bottom: -14px;
        left: 0;
        width: 100%;
        aspect-ratio: 100 / 5;
        background-image: url(./.././Images/bannershadow.svg);
        background-position: center;
        background-repeat: no-repeat;
        background-size: contain;
    }

    .shape svg {
        position: relative;
        display: block;
    }

    .shape .shape-fill {
        fill: #ffffff;
    }
}

.contactUs {
    background-color: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 0 29.3px 8px rgba(0, 0, 0, 0.05);

    h4 {
        font-size: 36px;
        margin-bottom: 30px;
        font-weight: 700;
    }
}

.aboutUsPage {
    padding-top: 0rem;

    .firstSec {
        padding: 30px;

        .aboutInfo {
            margin: 8rem 0;

            .aboutSidecartoons {
                width: 350px;
                height: fit-content;
            }

            .aboutText {
                display: flex;
                justify-content: center;

                .bubbleContainer {
                    position: relative;
                    display: flex;
                    justify-content: center;

                    .mainBubble,
                    .mainBubbleTwo,
                    .mainBubbleThr,
                    .mainBubbleFor {
                        background: url(../Images/bigBubble.png) no-repeat
                            center/cover;
                        margin: 0 auto;
                        width: 29rem;
                        aspect-ratio: 1;
                        padding: 2.5rem 3rem;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        animation: big-bubble-animation 6.5s infinite linear;

                        h3 {
                            color: var(--white);
                            text-align: center;
                            font-size: 2rem;
                        }
                    }

                    .verySmallBubble {
                        position: absolute;
                        width: 4.74rem;
                        aspect-ratio: 1;
                        background: url(../Images/verysmallbubble.png) no-repeat
                            center/cover;
                    }

                    .smallBubble {
                        position: absolute;
                        width: 6.69rem;
                        aspect-ratio: 1;
                        background: url(../Images/smallbubble.png) no-repeat
                            center/cover;
                    }

                    .bubble1 {
                        bottom: -6rem;
                        right: 2rem;
                        animation: very-small-bubble-animation 3.5s infinite
                            linear;
                    }

                    .bubble2 {
                        bottom: -1rem;
                        right: -4rem;
                        animation: small-bubble-animation 4.5s infinite linear;
                    }

                    .bubble3 {
                        bottom: 25rem;
                        right: 26rem;
                        animation: very-small-bubble-animation 3.5s infinite
                            linear;
                    }

                    .bubble4 {
                        bottom: -1rem;
                        right: -4rem;
                        animation: small-bubble-animation 4.5s infinite linear;
                    }

                    .bubble5 {
                        bottom: -2rem;
                        right: 27rem;
                        animation: small-bubble-animation 4.5s infinite linear;
                    }

                    .bubble6 {
                        bottom: 24rem;
                        right: -4rem;
                        animation: very-small-bubble-animation 3.5s infinite
                            linear;
                    }

                    .bubble7 {
                        bottom: 24rem;
                        right: 27rem;
                        animation: small-bubble-animation 4.5s infinite linear;
                    }
                }
            }
        }
    }

    .secondSec {
        background-image: url("./.././Images/aboutBG.png");
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        padding: 50px 30px;

        h4 {
            text-align: center;
            font-size: 46px;
            color: var(--white);
        }

        p {
            text-align: center;
            font-size: 46px;
            font-size: 28px;
            color: var(--white);
        }

        .mainBtn {
            font-size: 1rem;
            text-decoration: none;
            padding: 0.6rem 2rem;
            border: none;
        }
    }

    .thirdSec {
        padding: 30px;
        margin-bottom: 3rem;
        margin-top: 4rem;

        .sectitle {
            display: flex;
            justify-content: center;
            flex-direction: column;
            margin-bottom: 1rem;

            h2 {
                text-align: center;
                font-size: 46px;
                font-weight: 700;
            }

            p {
                color: #667085;
                text-align: center;
                font-size: 24px;
            }
        }

        .teamSection {
            margin-top: 2rem;

            .imgSec {
                height: 250px;
                display: flex;
                align-items: end;
                justify-content: center;
            }

            p {
                color: #7c818f;
                font-size: 16px;
                font-weight: 400;
                text-align: center;
                margin-top: 1rem;
                margin-bottom: 0.5rem;
            }
        }
    }
}

/* Keyframes for Big Bubble (moves upward) */
@keyframes big-bubble-animation {
    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    10% {
        transform: translateY(-10px) translateX(0);
    }

    20% {
        transform: translateY(-20px) translateX(0);
    }

    30% {
        transform: translateY(-28px) translateX(0);
    }

    40% {
        transform: translateY(-35px) translateX(0);
    }

    50% {
        transform: translateY(-30px) translateX(0);
    }

    60% {
        transform: translateY(-25px) translateX(0);
    }

    70% {
        transform: translateY(-18px) translateX(0);
    }

    80% {
        transform: translateY(-10px) translateX(0);
    }

    90% {
        transform: translateY(-5px) translateX(0);
    }
}

/* Keyframes for Small Bubble (moves downward and slightly left) */
@keyframes small-bubble-animation {
    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    12.5% {
        transform: translateY(5px) translateX(-2px);
    }

    25% {
        transform: translateY(15px) translateX(-5px);
    }

    37.5% {
        transform: translateY(22px) translateX(-8px);
    }

    50% {
        transform: translateY(25px) translateX(-10px);
    }

    62.5% {
        transform: translateY(22px) translateX(-9px);
    }

    75% {
        transform: translateY(20px) translateX(-8px);
    }

    87.5% {
        transform: translateY(10px) translateX(-4px);
    }
}

/* Keyframes for Very Small Bubble (moves downward and slightly left, faster) */
@keyframes very-small-bubble-animation {
    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    15% {
        transform: translateY(5px) translateX(-2px);
    }

    30% {
        transform: translateY(10px) translateX(-5px);
    }

    45% {
        transform: translateY(15px) translateX(-8px);
    }

    60% {
        transform: translateY(14px) translateX(-10px);
    }

    75% {
        transform: translateY(12px) translateX(-8px);
    }

    90% {
        transform: translateY(6px) translateX(-4px);
    }
}

div:where(.swal2-icon).swal2-success .swal2-success-ring,
span.swal2-success-line-tip,
span.swal2-success-line-long,
.swal2-success-circular-line-left,
.swal2-success-circular-line-right,
.swal2-success-fix {
    display: none !important;
}

.termsPageModel {
    margin-bottom: 5rem;

    h1 {
        font-weight: 700;
        font-size: 1.4rem;
        text-align: center;
    }

    h2 {
        color: #333;
        font-size: 1.3rem;
        font-weight: 600;
    }

    p {
        color: #1b1b1b;
        font-size: 1rem;
    }

    hr {
        margin: 1rem 0;
    }
}

.policy-link {
    cursor: pointer;
}

.benchmark-tbl.table-responsive {
    min-height: 250px;
}

.profile-details ul.dropdown-menu.show {
    max-height: 350px;
    overflow: auto;
}

.content:has(.video-container) {
    padding-top: 0;
}

#cookieConsentBanner {
    display: none;
    padding: 30px 15px 20px 15px;
    background-color: #ffffff;
    position: fixed;
    bottom: 0;
    right: 0;
    width: 500px;
    border-top: 1px solid #ccc;
    border-left: 1px solid #ccc;
    text-align: center;
    z-index: 1000;
    box-shadow: 0px 0px 9.6px 0px rgba(0, 0, 0, 0.25);
}

#cookieConsentBanner p {
    font-weight: 600;
    font-size: 1rem;
}

#cookieConsentBanner button {
    cursor: pointer;
    margin-left: 5px;
    margin-bottom: 10px;
}

.linkNumber {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
}

.linkNumber a {
    color: var(--primary);
}

.cookiesToggle .form-switch {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e7e7e7;
    padding-bottom: 15px;
}

.cookiesToggle .form-check-input {
    width: 45px !important;
    height: 25px;
    margin-left: 15px !important;
}

.cookiesToggle .form-check-input:checked {
    background-color: #0d6efd;
}

.cookiesToggle .form-check-input:checked::before {
    background-color: #fff;
    transform: translateX(26px);
}

.cookiesToggle .form-check-label {
    flex-grow: 1;
}

.cookiesToggle .form-check-label h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.cookiesToggle .form-check-label p {
    margin-bottom: 0px;
    font-size: 0.9rem;
}

.cookiesToggle input[type="checkbox"]:checked {
    background-color: var(--primary);
    border-radius: 25px;
}

::-webkit-media-controls {
    display: none !important;
}

/* 31-12-2025 new css */
.custm-lg-register .login-form {
    max-width: 100%;
}

.custm-lg-register .input-group select {
    height: 50px;
    background-color: #efefef;
    /* color: #999999; */
    border-color: transparent;
}

.custm-lg-register .input-group select option {
    color: var(--text-color);
    background: #fff;
}

.crd-main-heading {
    font-weight: 500;
}

.sect-heading {
    color: #ff7518;
    margin-bottom: 15px;
}

.custm-lg-register .form-label {
    font-weight: 400;
}

/* Keep row items aligned */
.data-point-row {
    align-items: center !important;
}

/* Prevent icon column from moving */
.iconDisplayArea {
    min-width: 50px;
}

/* Fix icon list layout */
.dropdown-menu .icon-list {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Prevent icon image from shrinking */
.dropdown-menu .icon-list img {
    flex-shrink: 0;
}

.profile-slide {
    display: none;
    text-align: center;
}

.profile-slide.active {
    display: block;
    animation: fade 0.8s ease-in-out;
}

@keyframes fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.profile-name {
    color: var(--text1);
    font-weight: 600;
}

.profile-pick-wrapper {
    width: 160px;
    /* adjust if needed */
    height: 160px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wall-title {
    color: var(--text1);
}

.profile-name {
    color: var(--text2);
}

/* Default Layout */
.wall-wrapper {
    width: 100%;
    min-height: 100vh;
    padding: 40px;
}

/* CIRCLE STYLE */
.wall-wrapper.shape-circle .profile-pick {
    border-radius: 50%;
    border: 4px solid var(--primary);
}

/* SQUARE STYLE */
.wall-wrapper.shape-square .profile-pick {
    border-radius: 8px;
    border: 4px solid var(--secondary);
}

/* CAROUSEL */
/* .wall-wrapper.shape-carousel .profile-slide {
    animation: slideFade 1s ease-in-out;
} */

.avatar-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    overflow: hidden;
    background: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== DATATABLES FIXES (ONLY if using DataTables) ===== */
.dataTables_wrapper {
    width: 100%;
    overflow-x: auto;
}

.dataTables_scrollBody {
    overflow-x: auto !important;
}

.dataTables_scrollHead th {
    background: #ff7518 !important;
    color: white;
}

/* ===== end associate wall & profile ===== */

.slim-toast {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;

    width: auto !important;
    min-width: 240px !important;
    max-width: 320px !important;

    padding: 10px 14px !important;
    border-radius: 10px !important;

    font-size: 13px !important;
    font-weight: 500 !important;

    box-shadow: 0 8px 24px #ff7518 !important;

    background: #fff !important;
    /* dark modern gray */
    color: #fff !important;

    border-left: 4px solid #ff7518;
    /* default success green */
}

/* success */
.slim-toast.swal2-icon-success {
    border-left-color: #ff7518 !important;
}

/* error */
.slim-toast.swal2-icon-error {
    border-left-color: #ff7518 !important;
}

/* icon shrink */
.slim-toast .swal2-icon {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
}

/* title text */
.slim-toast .swal2-title {
    font-size: 13px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}

/* hide default spacing */
.slim-toast .swal2-html-container {
    margin: 0 !important;
}

.indicator-icon {
    width: 16px;
    height: 16px;
}

#adminSelectorModal td,
#adminSelectorModal th {
    vertical-align: middle;
}

#tag-dropdown-menu {
    top: 100%;
    /* Positions it directly below the input */
    margin-top: 5px;
}

/* Custom Orange Switch Styling */
.tag-switch:checked {
    background-color: #fd7e14 !important;
    border-color: #fd7e14 !important;
}

.tag-switch {
    border-color: #fd7e14;
    cursor: pointer;
}

/* Custom Scrollbar for better look */
#tag-dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

#tag-dropdown-menu::-webkit-scrollbar-thumb {
    background: #adb5bd;
    border-radius: 10px;
}

/* css added at 4/27/2026 */
/* SWITCH SIZE (reduced) */
.switch {
    position: relative;
    display: inline-block;
    width: 36px;
    /* reduced from 36px */
    height: 10px;
    /* reduced from 18px */
}

/* hide checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* OFF state */
.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #aba0a0;
    border-radius: 14px;
    transition: 0.3s;
    width: 40px;
    height: 25px;
    border: 1px solid var(--primary);
}

/* knob */
.slider:before {
    content: "";
    position: absolute;

    height: 15px;
    /* reduced */
    width: 15px;
    /* reduced */

    left: 5px;
    bottom: 5px;

    background-color: #fff;
    border-radius: 50%;
    transition: 0.4s;
}

/* ACTIVE state */
.switch input:checked + .slider {
    background-color: var(--primary, #ff7518);
    border-radius: 14px;
}

/* move knob (adjusted for smaller size) */
.switch input:checked + .slider:before {
    transform: translateX(14px);
}

.result {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.iconResult {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result img {
    max-width: 100%;
    display: block;
}

.password-page {
    width: 50rem;
    max-width: 100%;
}

/* Every element in the order of the saved list, as the wall draws them: the last in front (a
   background is sent to the back like any other element, template-edit/layers.js). The fit check's
   copies of the canvas (TE2-11) are drawn the same way. */
:is(#templateElements, .sw-fit-check-elements) > * {
    position: absolute;
    z-index: 10 !important;
}
#templateCanvas {
    position: relative !important;
    overflow: visible;
}
.background-image-element {
    position: absolute;

    left: 0;
    top: 0;

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    box-sizing: border-box;

    transform: none;

    z-index: 1;
}

/*?----Custom Color Picker-----*/

.custom-color-picker {
    width: 15.25rem;
    background-color: #fff;
    border: 1px solid lightgray;
    font-size: 0.875rem;
    position: absolute;
    top: 2.5rem;
    left: 0.75rem;
    z-index: 999;

    input.form-control {
        font-size: 0.875rem;
        padding: 0.125rem;
        border-color: lightgray;
        border-radius: 0;
    }
}

.color-box {
    background:
        linear-gradient(to bottom, transparent, #000),
        linear-gradient(to right, #fff, #ff6600);
    height: 9.5rem;
    cursor: crosshair;
    position: relative;
    overflow: hidden;
}

.color-pointer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0.875rem;
    aspect-ratio: 1;
    border: 0.125rem solid #fff;
    background: #ff6600;
    box-shadow: 0 0 0 0.125rem #000;
    user-select: none;

    &:focus-visible {
        box-shadow: 0 0 0 0.188rem #000;
    }
}

.controls-wrapper {
    padding: 0.875rem;
}

.color-controls {
    margin-bottom: 0.625rem;
    gap: 0.875rem;
}

.current-color {
    width: 2.875rem;
    aspect-ratio: 1;
    background-color: #ff6600;
    border: 1px solid var(--input-border);
}

input.color-slider {
    height: fit-content;

    &::-webkit-slider-runnable-track {
        height: 0.75rem;
        background: linear-gradient(
            to right,
            red,
            magenta,
            blue,
            cyan,
            lime,
            yellow,
            red
        );
        border-radius: 0.25rem;
    }

    &::-webkit-slider-thumb {
        background-color: transparent;
        border: 0.125rem solid #fff;
        box-shadow: 0 0 0 0.125rem #000;
        margin-top: -0.125rem;
    }

    &:focus::-webkit-slider-thumb {
        box-shadow: 0 0 0 0.188rem #000;
        background-color: transparent;
    }
}

.color-title {
    font-size: 0.75rem;
    color: var(--text-color);
    margin-bottom: 0.25rem;
    font-weight: 600;

    + div {
        margin-bottom: 0.625rem;
    }
}

/* =====================================================
   DataTables table styling (SWS-217)
   The rules the pages relied on from the vendored DataTables 1.x stylesheet
   (assets/css/cdn/dataTableJquery.css, removed). Its wrapper, paging and
   .sorting rules matched nothing in DataTables 2 markup and were dropped;
   build/vendor/datatables.css (DataTables 2) loads after this file.
   ===================================================== */

table.dataTable {
    width: 100%;
    margin: 0 auto;
    clear: both;
    border-collapse: separate;
    border-spacing: 0;
}

table.dataTable thead th,
table.dataTable tfoot th {
    font-weight: bold;
}

table.dataTable thead th,
table.dataTable thead td {
    padding: 10px 18px;
    border-bottom: 1px solid #111;
}

table.dataTable thead th:active,
table.dataTable thead td:active {
    outline: none;
}

table.dataTable tfoot th,
table.dataTable tfoot td {
    padding: 10px 18px 6px 18px;
    border-top: 1px solid #111;
}

table.dataTable tbody tr {
    background-color: #ffffff;
}

table.dataTable tbody tr.selected {
    background-color: #b0bed9;
}

table.dataTable tbody th,
table.dataTable tbody td {
    padding: 8px 10px;
}

table.dataTable.row-border tbody th,
table.dataTable.row-border tbody td,
table.dataTable.display tbody th,
table.dataTable.display tbody td {
    border-top: 1px solid #ddd;
}

table.dataTable.row-border tbody tr:first-child th,
table.dataTable.row-border tbody tr:first-child td,
table.dataTable.display tbody tr:first-child th,
table.dataTable.display tbody tr:first-child td {
    border-top: none;
}

table.dataTable.cell-border tbody th,
table.dataTable.cell-border tbody td {
    border-top: 1px solid #ddd;
    border-right: 1px solid #ddd;
}

table.dataTable.cell-border tbody tr th:first-child,
table.dataTable.cell-border tbody tr td:first-child {
    border-left: 1px solid #ddd;
}

table.dataTable.cell-border tbody tr:first-child th,
table.dataTable.cell-border tbody tr:first-child td {
    border-top: none;
}

table.dataTable.stripe tbody tr.odd,
table.dataTable.display tbody tr.odd {
    background-color: #f9f9f9;
}

table.dataTable.stripe tbody tr.odd.selected,
table.dataTable.display tbody tr.odd.selected {
    background-color: #acbad4;
}

table.dataTable.hover tbody tr:hover,
table.dataTable.display tbody tr:hover {
    background-color: #f6f6f6;
}

table.dataTable.hover tbody tr:hover.selected,
table.dataTable.display tbody tr:hover.selected {
    background-color: #aab7d1;
}

table.dataTable.no-footer {
    border-bottom: 1px solid #111;
}

table.dataTable.nowrap th,
table.dataTable.nowrap td {
    white-space: nowrap;
}

table.dataTable.compact thead th,
table.dataTable.compact thead td {
    padding: 4px 17px 4px 4px;
}

table.dataTable.compact tfoot th,
table.dataTable.compact tfoot td {
    padding: 4px;
}

table.dataTable.compact tbody th,
table.dataTable.compact tbody td {
    padding: 4px;
}

table.dataTable,
table.dataTable th,
table.dataTable td {
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
}

/* Length menu label spacing (was set from JavaScript in showDataTable). */
.dt-length label {
    margin-left: 10px;
}

/* Initially hidden, shown by script (SWS-217, replaces style="display: none"). Not !important,
   unlike Bootstrap's .d-none, so jQuery .show() / .fadeIn() and element.style.display still work. */
.sw-hidden {
    display: none;
}
