/*
 * R&S Informatica layout layer.
 * Keep this file separate from the HESK theme so updates remain easier.
 */

:root {
    --rs-navy: #071f35;
    --rs-blue: #1268b3;
    --rs-cyan: #39a7e8;
    --rs-surface: #ffffff;
    --rs-soft: #eef6fb;
    --rs-line: #d8e6f0;
    --rs-text: #172536;
    --rs-muted: #617287;
    --rs-shadow: 0 18px 42px rgba(7, 31, 53, 0.12);
}

body.cust-help {
    background: #f4f8fb;
}

.cust-help .wrapper {
    background:
        linear-gradient(180deg, rgba(7, 31, 53, 0.04), rgba(255, 255, 255, 0) 340px),
        #f4f8fb;
    color: var(--rs-text);
}

.cust-help .header {
    background: var(--rs-surface);
    border-bottom: 1px solid var(--rs-line);
    box-shadow: 0 10px 26px rgba(7, 31, 53, 0.06);
}

.cust-help .header__inner {
    min-height: 74px;
    padding: 10px 0;
}

.cust-help .header__logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    max-width: 100%;
    color: var(--rs-navy);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.2;
    text-decoration: none;
}

.cust-help .header__logo::before {
    content: "";
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border-radius: 8px;
    background: url("../img/logo-res-informatica.jpeg") center / cover no-repeat;
    box-shadow: 0 10px 22px rgba(7, 31, 53, 0.18);
}

.cust-help .breadcrumbs {
    background: #f8fbfd;
    border-bottom: 1px solid rgba(216, 230, 240, 0.75);
}

.cust-help .main__content {
    padding-top: 36px;
}

.cust-help .help-search {
    position: relative;
    overflow: hidden;
    margin-bottom: 28px;
    min-height: 190px;
    padding: 44px 300px 44px 38px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(18, 104, 179, 0.95), rgba(7, 31, 53, 0.98));
    box-shadow: var(--rs-shadow);
}

.cust-help .help-search::after {
    content: "";
    position: absolute;
    top: 20px;
    right: 38px;
    bottom: 20px;
    width: 220px;
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(7, 31, 53, 0.08), rgba(7, 31, 53, 0.16)),
        url("../img/logo-res-informatica.jpeg") center / contain no-repeat;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
    opacity: 0.95;
    pointer-events: none;
}

.cust-help .help-search > * {
    position: relative;
    z-index: 1;
}

.cust-help .search__title {
    max-width: 620px;
    color: #ffffff;
    font-size: 34px;
    line-height: 1.18;
    letter-spacing: 0;
}

.cust-help .search {
    max-width: 680px;
}

.cust-help .search__wrapper {
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(7, 31, 53, 0.2);
}

.cust-help .nav {
    gap: 18px;
}

.cust-help .navlink,
.cust-help .preview,
.cust-help .article {
    border: 1px solid var(--rs-line);
    border-radius: 8px;
    background: var(--rs-surface);
    box-shadow: 0 12px 28px rgba(7, 31, 53, 0.07);
}

.cust-help .navlink {
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.cust-help .navlink:hover {
    transform: translateY(-2px);
    border-color: rgba(18, 104, 179, 0.45);
    box-shadow: 0 18px 38px rgba(7, 31, 53, 0.12);
}

.cust-help .icon-in-circle {
    background: var(--rs-soft);
}

.cust-help .icon-in-circle .icon {
    fill: var(--rs-blue);
}

.cust-help .navlink__title,
.cust-help .preview__title,
.cust-help .article__heading span {
    color: var(--rs-navy);
    letter-spacing: 0;
}

.cust-help .navlink__descr,
.cust-help .lightgrey {
    color: var(--rs-muted);
}

.cust-help .btn--blue-border,
.cust-help .btn.btn--blue-border {
    border-color: var(--rs-blue);
    color: var(--rs-blue);
}

.cust-help .btn--blue-border:hover,
.cust-help .btn.btn--blue-border:hover {
    background: var(--rs-blue);
    color: #ffffff;
}

@media screen and (max-width: 760px) {
    .cust-help .header__inner {
        min-height: 64px;
    }

    .cust-help .header__logo {
        gap: 10px;
        font-size: 15px;
    }

    .cust-help .header__logo::before {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .cust-help .main__content {
        padding-top: 22px;
    }

    .cust-help .help-search {
        min-height: 0;
        padding: 30px 20px;
        background: linear-gradient(135deg, rgba(18, 104, 179, 0.95), rgba(7, 31, 53, 0.98));
    }

    .cust-help .help-search::after {
        top: auto;
        right: 16px;
        bottom: 16px;
        width: 110px;
        height: 80px;
        opacity: 0.24;
    }

    .cust-help .search__title {
        font-size: 26px;
    }
}

/* Admin and legacy screens */

body:not(.cust-help) > .wrapper:not(.login) {
    background:
        linear-gradient(180deg, rgba(7, 31, 53, 0.035), rgba(255, 255, 255, 0) 300px),
        #f4f8fb;
}

.main-menu {
    background: linear-gradient(180deg, var(--rs-navy), #0b2f4c);
    box-shadow: 16px 0 34px rgba(7, 31, 53, 0.14);
}

.navbar__header {
    min-height: 82px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

a.navbar__logo,
.reg__wrap .navbar__logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-weight: 900;
    letter-spacing: 0;
}

a.navbar__logo::before,
.reg__wrap .navbar__logo::before {
    content: "";
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 8px;
    background: url("../img/logo-res-informatica.jpeg") center / cover no-repeat;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
}

.navbar__list li.current,
.navbar__list li.is-active,
.navbar__list li.submenu-is-opened {
    background: rgba(57, 167, 232, 0.12);
}

.navbar__list li.current::after {
    background: var(--rs-cyan);
}

.navbar__list li.current .listitem__icon,
.navbar__list li.current .listitem__menu > a,
.navbar__list li.submenu-is-opened .listitem__menu > a {
    color: #ffffff;
}

.navbar__list .listitem__icon .icon {
    fill: currentColor;
}

.main__content {
    background: transparent;
}

.main__content h1,
.main__content h2,
.main__content h3,
.main__content .page-title {
    color: var(--rs-navy);
    letter-spacing: 0;
}

.table-wrap,
.table-wrapper,
.ticket__body_block,
.profile__wrapper,
.settings__form,
.form,
.tooltype__wrapper {
    border-color: var(--rs-line);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(7, 31, 53, 0.06);
}

.table thead th {
    background: #f0f6fb;
    color: var(--rs-navy);
}

.table tbody tr:nth-child(even) {
    background: #fbfdff;
}

.table tbody tr:hover {
    background: #eef7fd;
}

.btn--blue,
.btn.btn--blue,
button[type="submit"].btn,
input[type="submit"].btn {
    background: var(--rs-blue);
    border-color: var(--rs-blue);
}

.btn--blue:hover,
.btn.btn--blue:hover,
button[type="submit"].btn:hover,
input[type="submit"].btn:hover {
    background: #0d5593;
    border-color: #0d5593;
}

.form input.form-control:focus,
.form textarea.form-control:focus,
.form select.form-control:focus {
    border-color: var(--rs-blue);
    box-shadow: 0 0 0 3px rgba(18, 104, 179, 0.12);
}

.wrapper.login {
    background:
        linear-gradient(135deg, rgba(7, 31, 53, 0.96), rgba(18, 104, 179, 0.88)),
        #071f35;
}

.wrapper.login .reg__image .bg-absolute {
    background:
        linear-gradient(145deg, rgba(7, 31, 53, 0.55), rgba(7, 31, 53, 0.18)),
        url("../img/logo-res-informatica.jpeg") center / min(58vw, 520px) auto no-repeat;
}

.wrapper.login .reg__image .bg-absolute img {
    display: none;
}

.wrapper.login .reg__box {
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(7, 31, 53, 0.22);
}

.wrapper.login .reg__heading {
    color: var(--rs-navy);
    letter-spacing: 0;
}

@media screen and (max-width: 900px) {
    .navbar__header {
        min-height: 64px;
    }

    a.navbar__logo::before,
    .reg__wrap .navbar__logo::before {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }
}

/* Portal model */

.rs-support-hub {
    margin: 24px 0 30px;
    padding: 28px;
    border: 1px solid var(--rs-line);
    border-radius: 8px;
    background: var(--rs-surface);
    box-shadow: 0 12px 28px rgba(7, 31, 53, 0.07);
}

.rs-support-hub__intro {
    max-width: 760px;
}

.rs-support-hub__intro span,
.rs-ops-panel__header span {
    display: block;
    margin-bottom: 6px;
    color: var(--rs-blue);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.rs-support-hub__intro h3,
.rs-ops-panel__header h1 {
    color: var(--rs-navy);
    font-size: 24px;
    line-height: 1.25;
    letter-spacing: 0;
}

.rs-support-hub__intro p {
    margin-top: 10px;
    color: var(--rs-muted);
    font-size: 15px;
    line-height: 1.55;
}

.rs-support-hub__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.rs-support-card {
    display: block;
    min-height: 132px;
    padding: 20px;
    border: 1px solid var(--rs-line);
    border-radius: 8px;
    background: #f8fbfd;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.rs-support-card:hover {
    transform: translateY(-2px);
    border-color: rgba(18, 104, 179, 0.42);
    box-shadow: 0 14px 30px rgba(7, 31, 53, 0.1);
}

.rs-support-card strong {
    display: block;
    margin-bottom: 8px;
    color: var(--rs-navy);
    font-size: 17px;
}

.rs-support-card span {
    color: var(--rs-muted);
    line-height: 1.45;
}

.rs-support-hub__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.rs-support-hub__meta div {
    padding: 14px 16px;
    border-radius: 8px;
    background: var(--rs-soft);
}

.rs-support-hub__meta b,
.rs-support-hub__meta span {
    display: block;
}

.rs-support-hub__meta b {
    color: var(--rs-navy);
}

.rs-support-hub__meta span {
    color: var(--rs-muted);
}

/* Operational dashboard model */

.rs-ops-panel {
    margin: 0 0 24px;
    padding: 24px;
    border: 1px solid var(--rs-line);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 246, 251, 0.96)),
        var(--rs-surface);
    box-shadow: 0 14px 34px rgba(7, 31, 53, 0.08);
}

.rs-ops-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.rs-ops-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.rs-ops-card {
    display: block;
    min-height: 126px;
    padding: 18px;
    border: 1px solid var(--rs-line);
    border-radius: 8px;
    background: var(--rs-surface);
    color: var(--rs-text);
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(7, 31, 53, 0.06);
}

.rs-ops-card span,
.rs-ops-card small,
.rs-ops-card strong {
    display: block;
}

.rs-ops-card span {
    color: var(--rs-muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.rs-ops-card strong {
    margin: 8px 0 4px;
    color: var(--rs-navy);
    font-size: 30px;
    line-height: 1;
    letter-spacing: 0;
}

.rs-ops-card small {
    color: var(--rs-muted);
    font-size: 12px;
    line-height: 1.35;
}

.rs-ops-card--danger {
    border-color: rgba(186, 50, 37, 0.25);
    background: #fff7f6;
}

.rs-ops-card--warning {
    border-color: rgba(191, 102, 40, 0.28);
    background: #fffaf2;
}

@media screen and (max-width: 900px) {
    .rs-ops-panel__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .rs-ops-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 760px) {
    .rs-support-hub {
        padding: 22px 18px;
    }

    .rs-support-hub__intro h3 {
        font-size: 21px;
    }

    .rs-support-hub__grid,
    .rs-support-hub__meta {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 560px) {
    .rs-ops-grid {
        grid-template-columns: 1fr;
    }
}
