html {
    font-size: 16px;
}

body > .page-wrapper {
    display: flex;
    flex-direction: column;
    padding: 0;
}

.personal-container {
    margin: var(--personal-container-offset, 50px auto);
}

.personal-layout {
    background: #fff;
    height: 100%;
    min-height: 608px;
    border-radius: 15px;
    box-shadow: 0 3px 12px 2px #00000040;
}

.personal-layout:has(.personal-menu) {
    min-height: auto;
    height: auto;
}


.personal-about {
    padding: 12px 12px 20px 8px;
}

.confirm {
    color: #009846;
}

.confirm.no {
    color: #E31E24;
}

.confirm.process {
    color: #F06F57;
}

.personal-about .rt {
    font-size: 28px;
}

.personal-company {
    gap: 20px;
}

.personal-company--main {
    & {

    }

    &:hover {

    }

    .personal-company--name {
        font-size: 15px;
        font-weight: 700;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
        transition: all 0.5s;
    }

    &:hover .personal-company--name {
        color: var(--color-rose);
    }

    & .rt {
        transition: all 0.5s;

    }

    &:hover .rt {
        color: var(--color-rose);
        /*transform: translateX(5px);*/
        transform: scale(-1, -1);
    }
}


.personal-company--main .rt {
    color: #7C7E7F;
}


a.notify-link {
    & {
        position: relative;
    }

    &.not-read {
    }

    &.not-read::before {
        content: "";
        background: var(--color-rose);
        width: 6px;
        height: 6px;
        position: absolute;
        top: 1px;
        right: 0;
        border-radius: 50%;
        box-shadow: inset 0 0 3px 0 #fff;
        border: 1px solid var(--color-rose);
    }

    .rt {
        transition: color 0.5s;
    }

    &:hover .rt {
        color: var(--color-rose);
    }
}

.personal-menu {
    border-top: 1px solid #C2C2C2;
    margin: 0 10px 36px 14px;
    padding-top: 16px;
}

.personal-menu ul {
    padding: 0;
    margin: 0;
    list-style: none;
    gap: 10px;
}

.personal-menu ul li {
    display: flex;
}

.personal-menu ul li a {
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    height: 40px;
    flex: 1;
    gap: 15px;
    border-radius: 4px;
}


.personal-menu ul li a:hover,
.personal-menu ul li a.active {
    background: #F0F0F0;
}

.personal-menu .rt {
    font-size: 28px;
    color: #F06F57;
}

.personal-politics {
    margin: 0 10px 0 14px;
    font-size: 10px;
    font-weight: 500;
    padding: 12px 0;
    border-top: 1px solid #C2C2C2;
}

.personal-politics a {
    color: #C2C2C2;
}

.personal-politics a:hover {
    color: #707070;
}

/* Content */
.personal-layout--content {
    padding: 20px 36px 20px 20px;

    flex: 1; /*  ???  */
}

.open-tooltip + .custom-tooltip {
    display: none;
}

/* Content */

.personal-layout--footer {
    padding: 20px 20px 20px 24px;
}

.personal-footer--text {
    font-size: 11px;
    line-height: 1.6;
    font-weight: 500;
    flex: 1;
    border-top: 1px solid #C2C2C2;
    color: #707070;
}

.personal-footer--quest {
    margin-left: 16%;
}

.personal-footer--quest .open-tooltip {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #F48665;
    border-radius: 50%;
    color: #FFFFFF;
    cursor: pointer;
}

.personal-footer--quest .custom-tooltip {
    left: 250%;
    bottom: 150%;
}

.personal-footer--quest .custom-tooltip::after {
    left: 10%;
}

.personal-layout--head-note {
    /*margin-top: -24px;*/
    font-size: 11px;
    font-weight: 500;
    color: #707070;
    letter-spacing: 0.015em;
    padding: 24px;
}

.personal-layout--head .personal-layout--head-note {
    padding: 24px 0 0;
}

.personal-layout--head-note span {
    display: inline-flex;
    max-width: 420px;
    line-height: 2;
    letter-spacing: 0.035em;
    color: #C2C2C2;
}

.head-note--title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 4px;
    color: #000000;
}

.copyright-row {
    font-size: 11px;
    color: #C2C2C2;
}

.copyright-row span {
    padding-top: 11px;
    border-top: 1px solid #C2C2C2;
}


.head-param {
    & {
        font-weight: 500;
    }

    span {
        font-size: 12px;
    }

    .rt {
        font-size: 22px;
        color: var(--color-rose);
    }
}

@media screen and (max-width: 1199px) {
    .head-param {
        span {
            font-size: 0;
        }

        .rt {
            font-size: 22px;
            color: var(--color-white);
        }
    }
}

@media screen and (min-height: 850px) {
    .personal-container {
        --personal-container-offset: 50px auto auto;
    }
}

@media screen and (min-width: 1200px) {
    /* Content */
    .personal-layout--head {
        font-size: 16px;
        font-weight: 700;
        line-height: 1.6;
        padding: 20px 0;
        margin: 0 36px 0 18px;
        --left-offset: 20px;
        /*margin-bottom: 20px;*/
        border-bottom: 1px solid #C2C2C2;
    }

    .personal-layout--head .slim-text {
        font-weight: 500;
    }

    .notify-tabs {
        margin: 0 36px 0 18px;
        padding-top: 16px;
    }

    .personal-layout--head hr {
        margin: 0.5rem 0 1rem 0;
    }

    /* Content */
    .personal-layout.scroll {
        overflow: hidden;
        position: relative;
    }

    .personal-layout.scroll .personal-layout--head {
        position: absolute;
        background: #fff;
        left: 0;
        z-index: 1;
        width: calc(100% - var(--left-offset, 0px) - 30px);
    }

    .personal-layout.scroll .personal-layout--content {
        overflow: auto;
        /*margin-top: 20px;*/
        margin-bottom: 20px;
        margin-right: 15px;
    }

    .personal-layout.scroll .scroll-list--outer {
        flex: 1;
    }

    .personal-layout.scroll .personal-layout--footer {
        position: absolute;
        background: #fff;
        bottom: 0;
        width: calc(100% - var(--left-offset, 0px) - 30px);
    }

    .scroll .personal-layout--content::-webkit-scrollbar {
        padding: 20px;
        width: 4px; /* ширина скролла */
        background-color: #ADADAD;

    }

    .scroll .personal-layout--content::-webkit-scrollbar-thumb {
        background-color: #707070; /* цвет ползунка */
        border-radius: 4px;
    }

    .scroll .personal-layout--content::-webkit-scrollbar-thumb:hover {
        background: var(--color-rose);
        cursor: pointer;
    }
}

@media screen and (max-width: 1199px) {
    .personal-container {
        --personal-container-offset: 20px auto;
        margin: var(--personal-container-offset, 20px auto);
    }

    .personal-layout {
        overflow: hidden;
        max-height: unset;
    }

    .personal-menu .rt[class*="angle"] {
        color: initial;
    }

    .personal-container > .row {
        display: flex;
        flex-wrap: nowrap;
        width: 200%;
        transition: transform 0.4s ease;
    }

    .personal-container > .row > *,
    .personal-container > .row > * {
        flex: 0 0 100vw;
        max-width: 100vw;
    }

    /* по умолчанию показываем правую колонку (контент) */
    .personal-container > .row {
        transform: translateX(-100vw);
    }

    /* если показываем левую колонку (меню) */
    .personal-container.menu-left > .row {
        transform: translateX(0);
    }

    .personal-layout--head-note {
        padding: 10px 24px;
        margin: 0 24px;
        border-bottom: 1px solid #C2C2C2;
        font-size: 11px;
        font-weight: 500;
    }

    /* Content */
    .personal-layout--head {

        & {
            /*height: 45px;*/
            font-size: 16px;
            font-weight: 700;
            line-height: 1.6;
        }

        .inner {
            min-height: 45px;
            padding: 0 10px;
            background: #F06F57;
            color: #fff;
        }

        .external {
            padding: 8px;
        }

        .external .btn {
            width: 100%;
        }
    }

    .personal-layout--head hr {
        display: none;
    }

    .personal-layout--head a {
        color: #fff;
    }

    .personal-layout--head span {
        text-align: center;
    }

    .personal-layout--head .rt {
        /*font-size: 24px;*/
        font-size: 32px;
    }

    .personal-layout--head a > .rt {
        font-size: 20px;
    }

    /* Content */
    .personal-layout--content {
        padding: 4px 8px 8px;
    }


    body.modal-open #header-mobile {
        z-index: 1100;
    }

    .modal.rt-modal {
        --bs-modal-width: 390px;
    }
}


/*      LIST        */
.personal-list-actions {
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
    margin-bottom: 14px;
}

.personal-list {
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
}

.personal-item {
    font-size: 12px;
    line-height: 20px;
    padding: 12px 36px 12px 12px;
    border: 1px solid #ADADAD;
    border-radius: 10px;
    box-shadow: 3px 4px 15px 0 #0000000D;
    position: relative;
}

.personal-item:has([type=checkbox]) {
    cursor: pointer;
}


.personal-item--inner {
    gap: 10px;
}

.personal-item-info {
    flex-basis: 100%;
    padding-bottom: 8px;
    gap: 8px;
}

.product .personal-item-info {
    padding-bottom: 0;
}

.personal-item-info.bordered {
    border-bottom: 1px solid #F4ECEF;
}

.personal-item--icon {
    width: 38px;
    height: 38px;
    background: #DFDFDF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 400;
}

.personal-item-info--detail {
    gap: 5px;
}

.personal-item-info--row {
    line-height: 22px;
}

.personal-item-info--name {
    font-size: 15px;
    font-weight: 600;
}

.personal-item-info--edit {
    display: inline-flex;
    font-size: 16px;
    padding: 14px 10px;
    position: absolute;
    top: 0;
    right: 0;
}

.personal-item-info--edit:hover {
    color: var(--color-rose);
}

.personal-item-info--status {
    display: inline-flex;
    gap: 6px;
}

.personal-item-info--status .rt {
    font-size: 16px;
}

.personal-item-info--params {
}

.personal-item-info--section {
}

.personal-item-info--section-link {
}

a.personal-item-info--section-link:hover {
    color: var(--color-rose);
}

.personal-item--time {
    font-size: 22px;
    font-weight: 600;
}

button .rt {
    transition: transform 0.4s;
}

button.open .rt {
    transform: scaleY(-1);
}


.stat-table {
    & {
        overflow: hidden;
        /*overflow-x: auto;*/
        padding-bottom: 20px;
    }

    .stat-table--inner {

    }

    table {
        white-space: nowrap;
        width: 100%;
        max-width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        font-size: 11px;
        border-radius: 15px;
        border: 1px solid var(--table-border-color);
        overflow: hidden;
    }

    th {
        padding: 8px;
        background: #F0F0F0;
        border: 1px solid var(--table-border-color);
        border-top: none;
    }

    th[colspan] {
        border-right: none;
    }

    th[colspan] + th {
        border-left: none;
        border-right: none;
    }

    th:first-child {
        border: none;
    }

    td {
        padding: 8px;
        border-left: 1px solid var(--table-border-color);
        border-bottom: 1px solid var(--table-border-color);
    }

    td[colspan] {
        border-right: none;
    }

    td[colspan] + td {
        border-left: none;
    }

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

    tr:last-child td {
        border-bottom: none;
    }
}


.status-table {
    & {
        /*overflow-y: hidden;*/
        /*overflow-x: auto;*/
        /*overflow: hidden;*/

        padding-bottom: 20px;
    }

    table {
        white-space: nowrap;
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        font-size: 11px;
        border-radius: 15px;
        border: 1px solid var(--table-border-color);
        overflow: hidden;
        text-align: center;
        vertical-align: middle;
    }

    th {
        padding: 8px;
        line-height: 1.6;
        background: #F0F0F0;
        border-left: 1px solid var(--table-border-color);
        border-top: none;
    }

    td {
        height: 24px;
        padding: 4px 8px;
        border-left: 1px solid var(--table-border-color);
        border-bottom: 1px solid var(--table-border-color);
    }

    tr:nth-child(even) td {
        background: #F0F0F0;
    }

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

    td:first-child {
        border-left: none;
        font-weight: 700;
    }

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

    tr:last-child th,
    tr:last-child td,
    tr:nth-last-child(2) td:last-child {
        border-bottom: none;
    }

    .status {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }

    .status span {
        font-weight: 500;
    }

    .rt {
        font-size: 20px;
    }

    .rt-success {
        font-size: 22px;
        color: #009846;
    }

    .rt-close-round {
        font-size: 18px;
        color: #E31E24;
        font-weight: 700;
    }
}

.analytics-table {
    & {
        overflow: hidden;
        overflow-x: auto;
        padding-bottom: 20px;
    }

    .stat-table--inner {

    }

    table {
        white-space: nowrap;
        width: 100%;
        max-width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        font-size: 11px;
        border-radius: 15px;
        border: 1px solid var(--table-border-color);
        overflow: hidden;
        text-align: center;
        vertical-align: middle;
    }

    th {
        padding: 8px;
        background: #F0F0F0;
        border-left: 1px solid var(--table-border-color);
        border-top: none;
    }

    th[colspan] {
        border-right: none;
    }

    th[colspan] + th {
        border-left: none;
        border-right: none;
    }

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

    td {
        padding: 8px;
        border-left: 1px solid var(--table-border-color);
        border-bottom: 1px solid var(--table-border-color);
    }

    td[colspan] {
        border-right: none;
    }

    td[colspan] + td {
        border-left: none;
    }

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

    tr:last-child td {
        border-bottom: none;
    }


}

.order-status {
    & {
    }

    .item-group {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .item {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding-top: 2px;
    }

    &:has(.item-group) .item {
        flex-direction: column;
        padding-top: 0;
    }

    .rt {
        font-size: 16px;
    }

    .rt-success {
        font-size: 18px;
        color: #009846;
    }

    .rt-close-round {
        font-size: 14px;
        color: #E31E24;
        font-weight: 700;
    }
}

@media screen and (max-width: 1199px) {
    .personal-list-actions {
        grid-template-columns: 1fr;
    }

    .personal-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .btn.add-employee-m {
        font-size: 16px;
        padding: 7px 0;
        border-radius: 5px;
    }
}

/*      END:LIST    */

/*  START:head-date-widget  */


.head-date-widget {
    & {
        font-size: 11px;
        font-weight: 500;
        background: transparent;
        padding: 6px 10px;
        border: 1px solid var(--table-border-color);
        border-radius: 4px;
        z-index: 1;
        max-width: 120px;
        line-height: 19px;
    }

    * {
        color: #000000 !important;
    }

    .rt {
        font-size: 19px;
    }
}

.no-photo {
    background: #f4f4f4;
}

@media screen and (max-width: 1199px) {
    .head-date-widget {
        & {
            border-radius: 15px;

            font-size: 10px;
            background: #FFFFFF;
            padding: 5px 10px;
        }

        .rt {
            font-size: 16px;
        }
    }
}

/*  END:head-date-widget  */

.summary-location {
    & {
        font-weight: 500;
        display: flex;
        justify-content: start;
        align-items: center;
        gap: 6px;
    }

    .color {
        width: 16px;
        height: 16px;
        background: #dcdcdc;
        border-radius: 50%;
    }

    .text {

    }
}

