:root {
    --logaris-yellow: #f9b000;
    --logaris-yellow-dark: #d99600;
    --logaris-black: #111111;
    --logaris-charcoal: #232323;
    --logaris-gray: #5d5d63;
    --portal-bg: #f4f5f7;
    --portal-line: #e2e4e8;
    --portal-success: #198754;
    --portal-danger: #c0392b;
}

html,
body {
    min-height: 100%;
}

body {
    color: #292b2f;
    background: var(--portal-bg);
    font-family: "Segoe UI", Arial, sans-serif;
    letter-spacing: 0;
}

button,
input,
select,
textarea {
    letter-spacing: 0;
}

#wrapper,
#content-wrapper,
#content {
    min-width: 0;
}

#content-wrapper {
    min-height: 100vh;
    background: var(--portal-bg);
}

.logaris-sidebar {
    background: var(--logaris-black);
    background-image: none;
    box-shadow: 3px 0 18px rgba(17, 17, 17, 0.12);
}

.sidebar .sidebar-brand {
    height: 5rem;
    padding: 0.75rem;
    background: #fff;
    overflow: hidden;
}

.brand-logo {
    display: block;
    max-width: 100%;
    object-fit: contain;
}

.brand-logo-full {
    width: 166px;
    height: 52px;
}

.brand-logo-icon {
    display: none;
    width: 42px;
    height: 42px;
}

.sidebar.toggled .brand-logo-full {
    display: none;
}

.sidebar.toggled .brand-logo-icon {
    display: block;
}

.sidebar-dark .sidebar-heading {
    color: #a9aaad;
}

.sidebar-dark .nav-item .nav-link {
    color: #d8d8da;
}

.sidebar-dark .nav-item .nav-link i {
    color: #85868b;
}

.sidebar-dark .nav-item.active .nav-link,
.sidebar-dark .nav-item .nav-link:hover {
    color: #fff;
    background: rgba(249, 176, 0, 0.12);
}

.sidebar-dark .nav-item.active .nav-link {
    box-shadow: inset 4px 0 0 var(--logaris-yellow);
}

.sidebar-dark .nav-item.active .nav-link i,
.sidebar-dark .nav-item .nav-link:hover i {
    color: var(--logaris-yellow);
}

.nav-item-disabled {
    opacity: 0.46;
    cursor: default;
}

.sidebar-dark hr.sidebar-divider {
    border-top-color: rgba(255, 255, 255, 0.12);
}

.sidebar-dark #sidebarToggle {
    background-color: rgba(255, 255, 255, 0.14);
}

.sidebar-dark #sidebarToggle:hover {
    background-color: var(--logaris-yellow);
}

.sidebar-product {
    margin: auto 1rem 1rem;
    padding-top: 1rem;
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-product span,
.sidebar-product small {
    display: block;
}

.sidebar-product span {
    font-weight: 700;
}

.sidebar-product small {
    color: #94959a;
    margin-top: 0.2rem;
}

.topbar {
    min-height: 4.75rem;
    margin-bottom: 0;
    border-bottom: 1px solid var(--portal-line);
}

.topbar-title {
    min-width: 0;
}

.topbar-title small,
.topbar-title strong {
    display: block;
}

.topbar-title small {
    color: #7b7d83;
    font-size: 0.72rem;
}

.topbar-title strong {
    color: var(--logaris-black);
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service-status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #5f6268;
    font-size: 0.78rem;
}

.service-status > span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--portal-success);
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.12);
}

.profile-icon {
    display: inline-grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    color: var(--logaris-black);
    background: #f3f3f4;
    border: 1px solid #dedfe2;
    border-radius: 50%;
}

.mobile-topbar-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.portal-content {
    width: 100%;
    max-width: none;
    padding: 1.5rem 1.75rem 2rem;
}

.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.page-header h1 {
    margin: 0;
    color: var(--logaris-black);
    font-size: 1.65rem;
    font-weight: 700;
}

.page-header p {
    margin: 0.35rem 0 0;
    color: #6d7077;
}

.page-eyebrow {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--logaris-yellow-dark);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.btn {
    border-radius: 4px;
}

.btn-primary,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active {
    color: var(--logaris-black);
    background: var(--logaris-yellow);
    border-color: var(--logaris-yellow);
}

.btn-primary:hover,
.btn-primary:focus {
    color: var(--logaris-black);
    background: #ffbf1f;
    border-color: #ffbf1f;
    box-shadow: 0 0 0 0.2rem rgba(249, 176, 0, 0.22);
}

.btn-outline-primary {
    color: #8a6100;
    border-color: var(--logaris-yellow-dark);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    color: var(--logaris-black);
    background: var(--logaris-yellow);
    border-color: var(--logaris-yellow);
}

a,
.text-primary {
    color: #8a6100;
}

a:hover {
    color: #5f4300;
}

.bg-primary,
.badge-primary {
    color: var(--logaris-black);
    background-color: var(--logaris-yellow) !important;
}

.border-left-primary,
.border-left-logaris {
    border-left: 0.25rem solid var(--logaris-yellow) !important;
}

.border-left-dark {
    border-left: 0.25rem solid var(--logaris-charcoal) !important;
}

.border-left-gray {
    border-left: 0.25rem solid #858796 !important;
}

.text-logaris {
    color: #9a6b00;
}

.metric-row {
    margin-bottom: 0.25rem;
}

.metric-card {
    height: calc(100% - 1.25rem);
    margin-bottom: 1.25rem;
    border-radius: 6px;
}

.metric-card .metric-label {
    color: #6b6d73;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.metric-card .metric-value {
    margin-top: 0.35rem;
    color: var(--logaris-black);
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1;
}

.metric-card .metric-icon {
    color: #c4c5c9;
    font-size: 1.8rem;
}

.card,
.panel {
    border-radius: 6px;
}

.portal-card {
    margin-bottom: 1.25rem;
    border: 1px solid var(--portal-line);
    box-shadow: 0 0.15rem 0.65rem rgba(26, 28, 33, 0.06);
}

.portal-card > .card-header,
.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 3.25rem;
    padding: 0.75rem 1rem;
    background: #fff;
    border-bottom: 1px solid var(--portal-line);
}

.portal-card > .card-header h2,
.panel-header h2 {
    margin: 0;
    color: var(--logaris-black);
    font-size: 0.95rem;
    font-weight: 700;
}

.panel {
    margin-bottom: 1rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--portal-line);
    box-shadow: 0 0.15rem 0.65rem rgba(26, 28, 33, 0.05);
}

.search-input {
    width: min(100%, 280px);
}

.table {
    margin-bottom: 0;
    color: #32343a;
}

.table thead th {
    color: #686b72;
    background: #fafafb;
    border-top: 0;
    border-bottom: 1px solid var(--portal-line);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    vertical-align: middle;
}

.table td {
    border-color: #eceef1;
    vertical-align: middle;
}

.table-group-row td {
    color: var(--logaris-black);
    background: #f1f2f4;
    border-left: 4px solid var(--logaris-yellow);
    font-weight: 700;
}

.table-group-row span {
    margin-left: 0.5rem;
    color: #777980;
    font-weight: 400;
}

.badge {
    padding: 0.38em 0.58em;
    border-radius: 3px;
}

.badge-warning {
    color: var(--logaris-black);
    background: var(--logaris-yellow);
}

.detail-grid {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 0.75rem 1.25rem;
    margin: 0;
    padding: 1.1rem;
}

.detail-grid dt {
    color: #777980;
    font-weight: 500;
}

.detail-grid dd {
    margin: 0;
    color: var(--logaris-black);
    font-weight: 600;
}

.status-list {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
}

.status-list span {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
}

.panel-form {
    padding: 1rem;
}

.actions-cell {
    min-width: 190px;
    text-align: right;
    white-space: nowrap;
}

.actions-cell form {
    display: inline-block;
    margin: 0 0 0 0.3rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 1rem;
}

.row.g-3 > [class*="col-"] {
    margin-bottom: 1rem;
}

.rights-list {
    display: grid;
    gap: 0.6rem;
    padding: 0.9rem;
}

.rights-list.compact {
    gap: 0.75rem;
}

.right-module-block {
    border: 1px solid var(--portal-line);
    border-radius: 5px;
    overflow: hidden;
}

.right-module {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f7f7f8;
}

.right-features {
    display: grid;
    gap: 0.65rem;
    padding: 0.75rem 0.75rem 0.8rem 2rem;
    border-top: 1px solid var(--portal-line);
    background: #fff;
}

.feature-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(150px, 230px);
    gap: 0.75rem;
    align-items: center;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
    margin: 0;
    padding-left: 0;
}

.form-check-input {
    position: static;
    flex: 0 0 auto;
    margin: 0;
}

.form-check-label {
    min-width: 0;
}

.form-check-label small {
    display: block;
    color: #777980;
    font-size: 0.72rem;
    overflow-wrap: anywhere;
}

.value-input {
    min-width: 0;
}

.sticky-actions {
    position: sticky;
    z-index: 3;
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    margin-top: 0.25rem;
    padding: 0.85rem 0;
    background: rgba(244, 245, 247, 0.96);
    border-top: 1px solid var(--portal-line);
}

.empty-state {
    padding: 2rem 1rem !important;
    color: #777980;
    text-align: center;
}

.chart-wrap {
    position: relative;
    height: 280px;
}

.license-key {
    color: var(--logaris-black);
    overflow-wrap: anywhere;
}

#licensesTable {
    min-width: 1100px;
}

#licensesTable .license-key {
    white-space: nowrap;
    overflow-wrap: normal;
}

.machine-table {
    min-width: 980px;
}

.maintenance-table {
    min-width: 620px;
}

.admin-table {
    min-width: 850px;
}

.machine-admin-table {
    min-width: 1180px;
}

.maintenance-admin-table {
    min-width: 1120px;
}

.sticky-footer {
    padding: 1.2rem 0;
    border-top: 1px solid var(--portal-line);
}

.scroll-to-top {
    background: var(--logaris-charcoal);
}

.scroll-to-top:hover {
    background: var(--logaris-yellow-dark);
}

@media (min-width: 768px) {
    .sidebar {
        width: 14rem !important;
    }

    .sidebar.toggled {
        width: 6.5rem !important;
    }

    .sidebar.toggled .sidebar-product {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    .portal-content {
        padding: 1.25rem 1rem 1.5rem;
    }

    .page-header {
        align-items: flex-start;
    }

    .actions-cell {
        min-width: 170px;
    }
}

@media (max-width: 767.98px) {
    .sidebar .sidebar-brand {
        height: 4.75rem;
        padding: 0.65rem;
    }

    .sidebar .brand-logo-full {
        display: none;
    }

    .sidebar .brand-logo-icon {
        display: block;
        width: 38px;
        height: 38px;
    }

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

    .page-header > .d-flex {
        width: 100%;
        flex-wrap: wrap;
    }

    .page-header > .d-flex .btn {
        flex: 1 1 auto;
    }

    .portal-card > .card-header,
    .panel-header {
        align-items: stretch;
        flex-direction: column;
    }

    .search-input {
        width: 100%;
    }

    .detail-grid,
    .feature-row {
        grid-template-columns: 1fr;
    }

    .right-features {
        padding-left: 1rem;
    }

    .topbar-title strong {
        max-width: 42vw;
    }
}

@media (max-width: 575.98px) {
    .portal-content {
        padding: 1rem 0.75rem 1.25rem;
    }

    .page-header h1 {
        font-size: 1.35rem;
        overflow-wrap: anywhere;
    }

    .metric-card .metric-value {
        font-size: 1.45rem;
    }

    .topbar-title small {
        display: none;
    }
}

/* Authentication */
.auth-body {
    margin: 0;
    min-height: 100vh;
    background: #f4f5f7;
    color: #202124;
}

.btn-logaris {
    border-color: #f9b000;
    background: #f9b000;
    color: #181818;
    font-weight: 700;
}

.btn-logaris:hover,
.btn-logaris:focus {
    border-color: #d99a00;
    background: #e8a400;
    color: #111111;
}

.login-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 3rem clamp(2rem, 7vw, 7rem);
    overflow: hidden;
    background: #ffffff;
}

.login-backdrop {
    position: absolute;
    inset: 0;
    background: url("../brand/WebLogin.png") center center / cover no-repeat;
}

.login-panel {
    position: relative;
    z-index: 1;
    width: min(430px, 100%);
    padding: 2.25rem;
    border: 1px solid #e0e2e5;
    border-top: 4px solid #f9b000;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 50px rgba(24, 24, 24, 0.14);
}

.auth-brand {
    display: inline-block;
    margin-bottom: 2rem;
}

.auth-brand img {
    display: block;
    width: 210px;
    max-width: 100%;
    height: auto;
}

.auth-heading {
    margin-bottom: 1.75rem;
}

.auth-kicker {
    display: block;
    margin-bottom: 0.35rem;
    color: #a66f00;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.auth-heading h1,
.registration-intro h1,
.access-denied-panel h1 {
    margin: 0 0 0.45rem;
    color: #171717;
    font-weight: 800;
    letter-spacing: 0;
}

.auth-heading p,
.registration-intro p,
.section-heading-row p,
.access-denied-panel p {
    margin: 0;
    color: #65676b;
}

.auth-form label,
.registration-fields label {
    color: #34363a;
    font-size: 0.82rem;
    font-weight: 700;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-wrap > i {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 0.9rem;
    color: #8a8d91;
    transform: translateY(-50%);
}

.auth-input {
    height: 48px;
    padding-left: 2.55rem;
    padding-right: 2.7rem;
}

.auth-input:focus,
.registration-fields .form-control:focus,
.workstation-control input:focus {
    border-color: #f9b000;
    box-shadow: 0 0 0 0.2rem rgba(249, 176, 0, 0.18);
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 0.35rem;
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    color: #6c7075;
    transform: translateY(-50%);
}

.auth-remember {
    margin: 1.25rem 0;
}

.auth-submit {
    min-height: 48px;
}

.auth-submit i,
.registration-submit i,
.registration-login-link i {
    margin-right: 0.45rem;
}

.registration-submit i {
    margin-right: 0;
    margin-left: 0.55rem;
}

.auth-alert:empty {
    display: none;
}

.auth-alert {
    margin-bottom: 1rem;
    padding: 0.75rem 0.9rem;
    border-left: 3px solid #c9302c;
    background: #fff0ef;
    color: #8f201d;
    font-size: 0.88rem;
}

.auth-alert ul {
    margin: 0;
    padding-left: 1.1rem;
}

.auth-separator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0 1rem;
    color: #898c91;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.auth-separator::before,
.auth-separator::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e3e5e8;
}

.auth-footer {
    margin: 1.5rem 0 0;
    color: #96999e;
    font-size: 0.72rem;
    text-align: center;
}

.registration-page {
    min-height: 100vh;
    background: #f3f4f6;
}

.registration-header {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(1.25rem, 5vw, 5rem);
    border-bottom: 1px solid #e1e3e6;
    background: #ffffff;
}

.registration-brand img {
    display: block;
    width: 175px;
    height: auto;
}

.registration-shell {
    width: min(1360px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2.5rem 0 3rem;
}

.registration-intro {
    margin-bottom: 1.75rem;
}

.registration-intro h1 {
    font-size: 2rem;
}

.registration-grid-layout {
    display: grid;
    grid-template-columns: minmax(330px, 0.85fr) minmax(480px, 1.35fr);
    gap: 1.25rem;
    align-items: start;
}

.registration-fields,
.registration-modules {
    padding: 1.5rem;
    border: 1px solid #dedfe2;
    border-radius: 6px;
    background: #ffffff;
}

.section-heading-row {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.section-heading-row h2 {
    margin: 0 0 0.25rem;
    color: #222326;
    font-size: 1.15rem;
    font-weight: 800;
}

.section-heading-row p {
    font-size: 0.84rem;
}

.section-number {
    flex: 0 0 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f9b000;
    color: #191919;
    font-weight: 800;
}

.registration-fields .form-control {
    min-height: 42px;
    border-color: #d7d9dc;
}

.workstation-control {
    width: 160px;
    display: grid;
    grid-template-columns: 42px 1fr 42px;
}

.workstation-control button,
.workstation-control input {
    height: 42px;
    border: 1px solid #d7d9dc;
    background: #ffffff;
}

.workstation-control button:first-child {
    border-radius: 4px 0 0 4px;
}

.workstation-control button:last-child {
    border-radius: 0 4px 4px 0;
}

.workstation-control input {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    text-align: center;
}

.module-selection-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    margin-bottom: 0.75rem;
    color: #606368;
    font-size: 0.85rem;
}

.module-selection-toolbar .btn-link {
    color: #9a6800;
    font-weight: 700;
}

.registration-module-list {
    max-height: 510px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    padding-right: 0.35rem;
    overflow-y: auto;
}

.registration-package-section {
    margin-bottom: 1.25rem;
}

.registration-choice-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.65rem;
    color: #4d5055;
    font-size: 0.8rem;
}

.registration-choice-heading > strong {
    color: #252629;
    font-size: 0.9rem;
}

.registration-module-heading {
    margin-top: 0.25rem;
    margin-bottom: 0;
}

.registration-package-list {
    display: grid;
    gap: 0.6rem;
}

.registration-package {
    min-height: 74px;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    margin: 0;
    padding: 0.85rem;
    border: 1px solid #dcdfe3;
    border-left: 4px solid #b4b7bc;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
}

.registration-package.selected {
    border-color: #df9e00;
    border-left-color: #f9b000;
    background: #fff9e8;
}

.registration-package input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.package-check {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 4px;
    background: #eef0f2;
    color: #777b80;
}

.registration-package.selected .package-check {
    background: #f9b000;
    color: #181818;
}

.package-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.package-copy strong {
    color: #242528;
    font-size: 0.92rem;
}

.package-copy small {
    color: #797c81;
    font-size: 0.72rem;
    overflow-wrap: anywhere;
}

.registration-module {
    min-height: 70px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 0.7rem;
    align-items: center;
    margin: 0;
    padding: 0.85rem;
    border: 1px solid #dfe1e4;
    border-radius: 5px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 120ms ease, background-color 120ms ease;
}

.registration-module:hover {
    border-color: #b7babf;
}

.registration-module.selected {
    border-color: #e0a000;
    background: #fff9e8;
}

.registration-module.included {
    border-style: dashed;
    cursor: default;
}

.registration-module.included .module-copy small::after {
    content: " · Inclus dans le package";
    color: #8a6100;
    font-weight: 700;
}

/* Catalogue ERP */
.catalog-tabs {
    border-bottom-color: #d9dce0;
}

.catalog-tabs .nav-link {
    border-radius: 4px 4px 0 0;
    color: #666a70;
    font-weight: 700;
}

.catalog-tabs .nav-link.active {
    color: #181818;
    border-top: 3px solid #f9b000;
}

.catalog-tabs i {
    margin-right: 0.4rem;
}

.catalog-content {
    padding-top: 1rem;
}

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.catalog-toolbar > div {
    display: flex;
    flex-direction: column;
}

.catalog-toolbar span {
    color: #777b80;
    font-size: 0.8rem;
}

.catalog-module-panel[hidden] {
    display: none;
}

.catalog-module-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #e5e7ea;
}

.catalog-module-title {
    min-width: 220px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.catalog-module-title h2 {
    margin: 0;
    color: #222326;
    font-size: 1rem;
    font-weight: 800;
}

.catalog-module-title small {
    color: #7b7e83;
}

.catalog-module-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 4px;
    background: #fff1bf;
    color: #916300;
}

.catalog-module-controls {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 0.75rem;
}

.catalog-price-field {
    width: 190px;
}

.catalog-price-field label,
.catalog-package-fields label {
    margin-bottom: 0.3rem;
    color: #62656b;
    font-size: 0.75rem;
    font-weight: 700;
}

.catalog-switch {
    height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    padding: 0 0.65rem;
    border: 1px solid #d5d8dc;
    border-radius: 4px;
    background: #fff;
    color: #44474c;
    font-size: 0.82rem;
    font-weight: 700;
}

.catalog-feature-table {
    min-width: 720px;
}

.catalog-feature-table code {
    color: #555960;
    overflow-wrap: anywhere;
}

.catalog-price-column {
    width: 210px;
}

.catalog-active-column {
    width: 105px;
    text-align: center;
}

.catalog-empty-features {
    padding: 1rem;
    color: #7c8085;
    font-size: 0.82rem;
}

.catalog-package-new {
    border-top: 3px solid #f9b000;
}

.catalog-package-body {
    padding: 1rem;
}

.catalog-package-fields {
    display: grid;
    grid-template-columns: minmax(140px, 0.7fr) minmax(220px, 1.4fr) minmax(150px, 0.7fr) auto;
    gap: 0.75rem;
    align-items: end;
}

.catalog-package-fields .form-group {
    margin-bottom: 0;
}

.catalog-package-active {
    margin-bottom: 1px;
}

.catalog-composition {
    margin: 1rem 0;
    padding-top: 1rem;
    border-top: 1px solid #e5e7ea;
}

.catalog-composition > strong {
    display: block;
    margin-bottom: 0.6rem;
    color: #34363a;
    font-size: 0.82rem;
}

.catalog-module-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.5rem;
}

.catalog-module-option {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0.6rem 0.7rem;
    border: 1px solid #dde0e4;
    border-radius: 4px;
    background: #fafafa;
    color: #404348;
    font-size: 0.8rem;
}

.catalog-module-option span {
    overflow-wrap: anywhere;
}

.catalog-option-inactive {
    opacity: 0.55;
}

.catalog-package-editor .panel-header h2 small {
    margin-left: 0.5rem;
    color: #8a8d92;
    font-weight: 500;
}

@media (max-width: 991.98px) {
    .catalog-module-header {
        align-items: stretch;
        flex-direction: column;
    }

    .catalog-module-controls {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .catalog-package-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .catalog-toolbar,
    .catalog-module-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .catalog-toolbar .search-input,
    .catalog-price-field {
        width: 100%;
    }

    .catalog-package-fields {
        grid-template-columns: 1fr;
    }

    .registration-choice-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.2rem;
    }

    .registration-package {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .registration-package .module-price {
        grid-column: 2;
    }
}

.registration-module input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.module-check {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border: 1px solid #c3c6ca;
    border-radius: 4px;
    background: #ffffff;
    color: transparent;
    font-size: 0.72rem;
}

.registration-module.selected .module-check {
    border-color: #f9b000;
    background: #f9b000;
    color: #181818;
}

.module-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.module-copy strong {
    overflow-wrap: anywhere;
    color: #2b2c2f;
    font-size: 0.88rem;
}

.module-copy small {
    color: #85888d;
    font-size: 0.72rem;
}

.module-price {
    color: #4b4e52;
    font-size: 0.8rem;
    font-weight: 800;
    white-space: nowrap;
}

.registration-summary {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-end;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e3e4e6;
}

.registration-summary > div {
    display: flex;
    flex-direction: column;
}

.registration-summary span,
.registration-summary small {
    color: #777a7f;
    font-size: 0.78rem;
}

.registration-summary strong {
    color: #202124;
    font-size: 1.35rem;
}

.registration-summary small {
    max-width: 270px;
    text-align: right;
}

.registration-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.registration-actions .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-right: 1.25rem;
    padding-left: 1.25rem;
}

.access-denied-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background: #f3f4f6;
}

.access-denied-panel {
    width: min(430px, 100%);
    padding: 2rem;
    border: 1px solid #dfe1e4;
    border-top: 4px solid #f9b000;
    border-radius: 6px;
    background: #ffffff;
    text-align: center;
}

.access-denied-panel > img {
    width: 180px;
    max-width: 100%;
    margin-bottom: 1.75rem;
}

.access-denied-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: #fff3cc;
    color: #a66f00;
    font-size: 1.35rem;
}

.access-denied-panel p {
    margin-bottom: 1.25rem;
}

.page-header form {
    margin: 0;
}

.user-enterprise-form {
    display: inline-grid;
    grid-template-columns: minmax(150px, 220px) 34px;
    gap: 0.4rem;
    align-items: center;
}

.user-enterprise-form .btn {
    width: 34px;
    height: 31px;
    padding: 0;
}

.edit-record-card {
    max-width: 920px;
}

.edit-record-card .form-control[readonly] {
    background: #f7f7f8;
    color: #5a5c69;
}

.edit-record-card .validation-summary-valid {
    display: none;
}

.assignment-rule {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    padding: 0.75rem;
    border-left: 3px solid #f9b000;
    background: #f7f7f8;
    color: #595c61;
    font-size: 0.84rem;
    line-height: 1.45;
}

.assignment-rule i {
    margin-top: 0.15rem;
    color: #b17b00;
}

@media (max-width: 991.98px) {
    .registration-grid-layout {
        grid-template-columns: 1fr;
    }

    .registration-module-list {
        max-height: none;
    }
}

@media (max-width: 767.98px) {
    .login-page {
        align-items: flex-end;
        padding: 7rem 1rem 1rem;
    }

    .login-backdrop {
        background-position: 62% center;
    }

    .login-panel {
        padding: 1.5rem;
    }

    .registration-header {
        height: 66px;
        padding: 0 1rem;
    }

    .registration-brand img {
        width: 145px;
    }

    .registration-shell {
        width: min(100% - 1rem, 1360px);
        padding-top: 1.5rem;
    }

    .registration-intro h1 {
        font-size: 1.55rem;
    }

    .registration-fields,
    .registration-modules {
        padding: 1rem;
    }

    .registration-module-list {
        grid-template-columns: 1fr;
    }

    .registration-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .registration-summary small {
        text-align: left;
    }

    .registration-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 420px) {
    .login-panel {
        padding: 1.25rem;
    }

    .auth-brand {
        margin-bottom: 1.25rem;
    }

    .auth-brand img {
        width: 175px;
    }

    .registration-login-link {
        width: 42px;
        height: 42px;
        padding: 0;
        font-size: 0;
    }

    .registration-login-link i {
        margin: 0;
        font-size: 1rem;
    }

    .registration-actions {
        grid-template-columns: 1fr;
    }
}
