:root {
    --portal-bg: #eef3f8;
    --portal-surface: rgba(255, 255, 255, 0.86);
    --portal-ink: #183247;
    --portal-muted: #63788d;
    --portal-line: rgba(24, 50, 71, 0.12);
    --portal-accent: #0f8b8d;
    --portal-danger: #c7573b;
    --portal-shadow: 0 24px 60px rgba(16, 44, 66, 0.14);
    --portal-radius: 24px;
}

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

body.portal-shell {
    background:
        radial-gradient(circle at top left, rgba(15, 139, 141, 0.16), transparent 32%),
        radial-gradient(circle at top right, rgba(242, 181, 68, 0.22), transparent 28%),
        linear-gradient(180deg, #f8fbfd 0%, var(--portal-bg) 45%, #f4f7fb 100%);
    color: var(--portal-ink);
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    padding-bottom: 40px;
}

a {
    transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.portal-topbar {
    padding: 18px 0 0;
    position: relative;
    z-index: 1200;
}

.portal-topbar-inner {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    overflow: visible;
}

.portal-topbar-inline {
    align-items: center;
    gap: 16px;
}

.portal-brand-block,
.portal-auth-card,
.portal-user-actions,
.form-horizontal,
.container > .row > .col-sm-offset-3 > .panel,
.table-responsive,
.portal-footer-inner {
    background: var(--portal-surface);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--portal-shadow);
    border-radius: var(--portal-radius);
}

.portal-brand-block {
    flex: 1 1 340px;
    padding: 18px 22px;
    position: relative;
    overflow: hidden;
}

.portal-brand-block-inline {
    flex: 1 1 auto;
    padding: 12px 18px;
}

.portal-brand-block::after {
    content: '';
    position: absolute;
    inset: auto -40px -40px auto;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 139, 141, 0.18), transparent 70%);
}

.portal-brand {
    color: inherit;
    display: block;
    text-decoration: none;
    position: relative;
    z-index: 1;
}

.portal-brand:hover,
.portal-brand:focus {
    color: inherit;
    text-decoration: none;
}

.portal-brand-kicker {
    display: inline-block;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 800;
    color: #0b5f67;
    margin-bottom: 12px;
}

.portal-brand h1,
.panel-title {
    font-family: 'Fraunces', Georgia, serif;
    margin: 0;
    color: #173047;
}

.portal-brand h1 {
    font-size: 28px;
    line-height: 1.05;
}

.portal-brand-inline h1 {
    font-size: 24px;
}

.portal-brand p {
    margin: 12px 0 0;
    color: var(--portal-muted);
    font-size: 15px;
    line-height: 1.7;
    max-width: 720px;
}

.portal-auth-card,
.portal-user-actions {
    flex: 0 1 520px;
    padding: 10px 12px;
    position: relative;
    overflow: visible;
    z-index: 1201;
}

.portal-auth-strip {
    flex: 0 0 auto;
    margin-left: auto;
}

.portal-auth-card-compact {
    flex: 0 1 430px;
    margin-top: 4px;
}

.portal-auth-form {
    margin: 0;
}

.portal-auth-form-inline {
    display: flex;
    align-items: center;
}

.portal-auth-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.portal-auth-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.portal-auth-actions,
.portal-user-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.portal-auth-actions {
    margin-top: 10px;
}

.portal-btn {
    border-radius: 999px;
    border: none;
    font-weight: 700;
    padding: 9px 16px;
    box-shadow: 0 10px 20px rgba(15, 50, 71, 0.1);
}

.portal-auth-input {
    min-height: 34px;
    height: 34px;
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 10px;
}

.portal-auth-input-inline {
    width: 240px;
    min-width: 240px;
    min-height: 38px;
    height: 38px;
    padding: 7px 12px;
    font-size: 13px;
    border-radius: 11px;
}

.portal-btn:hover,
.portal-btn:focus,
.btn:hover,
.btn:focus {
    transform: translateY(-1px);
}

.portal-btn-primary,
.btn-primary {
    background: linear-gradient(135deg, var(--portal-accent) 0%, #1b6ca8 100%);
    border: none;
}

.portal-btn-secondary,
.btn-info {
    background: linear-gradient(135deg, #4e8bd6 0%, #255b92 100%);
    border: none;
}

.portal-btn-danger,
.btn-danger {
    background: linear-gradient(135deg, var(--portal-danger) 0%, #93402b 100%);
    border: none;
}

.btn-success {
    background: linear-gradient(135deg, #26a17b 0%, #16795d 100%);
    border: none;
}

.container > .row > .col-sm-offset-3 > .panel {
    overflow: hidden;
    margin-bottom: 24px;
}

.panel-default > .panel-heading {
    background: linear-gradient(135deg, #183247 0%, #23577d 100%);
    color: #fff;
    border: none;
    padding: 18px 24px;
}

.panel-title {
    font-size: 24px;
    color: #f5fbff;
}

.portal-version-tag {
    display: inline-block;
    margin-left: 10px;
    font-size: 15px;
    font-weight: 700;
    color: rgba(245, 251, 255, 0.88);
}

.panel-body {
    padding: 24px;
}

.panel-body pre {
    background: rgba(15, 139, 141, 0.06);
    border: 1px solid rgba(15, 139, 141, 0.08);
    border-radius: 18px;
    color: #214059;
    font-size: 13px;
    line-height: 1.7;
    padding: 18px;
}

.portal-summary-panel {
    display: flex;
    align-items: center;
    gap: 18px;
}

.portal-summary-crest {
    display: flex;
    justify-content: center;
    align-items: center;
}

.portal-summary-content {
    float: none !important;
}

.portal-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
}

.portal-summary-item {
    background: rgba(15, 139, 141, 0.06);
    border: 1px solid rgba(15, 139, 141, 0.08);
    border-radius: 16px;
    padding: 14px 16px;
    min-width: 0;
}

.portal-summary-item span {
    display: block;
    color: var(--portal-muted);
    font-size: 12px;
    margin-bottom: 6px;
}

.portal-summary-item strong {
    display: block;
    color: #173047;
    font-size: 18px;
    line-height: 1.4;
    word-break: break-word;
}

.portal-summary-item-wide {
    grid-column: 1 / -1;
}

.portal-search-actions .btn[disabled] {
    opacity: 0.72;
    cursor: wait;
}

.portal-search-loading {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 2400;
}

.portal-search-loading.is-active {
    display: block;
}

.portal-search-loading-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(232, 241, 247, 0.82);
    backdrop-filter: blur(8px);
}

.portal-search-loading-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.portal-search-loading-card {
    width: min(980px, calc(100vw - 32px));
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 248, 252, 0.98));
    border: 1px solid rgba(20, 63, 90, 0.1);
    border-radius: 28px;
    box-shadow: 0 24px 56px rgba(18, 45, 67, 0.14);
    padding: 24px;
    text-align: center;
}

.portal-search-loading-head {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 680px;
    margin: 0 auto 22px;
}

.portal-search-loading-head > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
}

.portal-search-loading-head h3 {
    margin: 0 0 6px;
    color: #14324a;
    font-family: "Fraunces", Georgia, serif;
    font-size: 28px;
    font-weight: 700;
    width: 100%;
    text-align: center;
}

.portal-search-loading-head p {
    margin: 0;
    color: #567086;
    font-size: 15px;
    line-height: 1.65;
    width: 100%;
    text-align: center;
}

.portal-search-loading-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.portal-search-loading-box {
    min-height: 84px;
    border-radius: 20px;
    background: linear-gradient(90deg, rgba(226, 238, 245, 0.92) 0%, rgba(247, 251, 253, 1) 50%, rgba(226, 238, 245, 0.92) 100%);
    background-size: 220% 100%;
    animation: portal-loading-shimmer 1.25s linear infinite;
}

.portal-search-loading-box.is-wide {
    grid-column: 1 / -1;
}

.portal-search-loading-box.is-tall {
    min-height: 148px;
}

body.portal-search-busy {
    overflow: hidden;
}

.portal-loading-spinner {
    margin: 0 auto;
}

.form-horizontal {
    padding: 28px 0 12px;
}

.form-horizontal .form-group {
    margin-bottom: 18px;
}

.form-control {
    border-radius: 14px;
    border: 1px solid var(--portal-line);
    box-shadow: none;
    min-height: 40px;
    padding: 8px 12px;
}

.portal-auth-actions .portal-btn {
    padding: 7px 12px;
    font-size: 12px;
}

.portal-btn-inline {
    padding: 6px 11px;
    font-size: 12px;
    white-space: nowrap;
}

.form-control:focus {
    border-color: rgba(15, 139, 141, 0.45);
    box-shadow: 0 0 0 4px rgba(15, 139, 141, 0.12);
}

.control-label {
    color: #25445f;
    font-weight: 700;
}

.btn {
    border-radius: 999px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.btn:focus {
    box-shadow: 0 10px 24px rgba(15, 50, 71, 0.12);
}

.alert {
    border-radius: 18px;
    border: none;
    box-shadow: 0 12px 24px rgba(25, 46, 74, 0.08);
}

.table-responsive {
    margin-top: 30px;
    padding: 18px 18px 8px;
}

.table {
    margin-bottom: 0;
    background: transparent;
}

.table > thead > tr > th,
.table > tbody > tr > th {
    border-top: none;
    color: #173047;
}

.table > tbody > tr > td,
.table > thead > tr > th,
.table > tbody > tr > th {
    padding: 16px 14px;
    vertical-align: middle;
    border-color: rgba(23, 48, 71, 0.08);
}

.table > tbody > tr:hover {
    background: rgba(15, 139, 141, 0.04);
}

.dropdown-menu {
    border-radius: 16px;
    border: 1px solid rgba(23, 48, 71, 0.08);
    box-shadow: 0 18px 32px rgba(20, 41, 62, 0.14);
    padding: 8px;
    z-index: 1400;
}

.dropdown-menu > li > a {
    border-radius: 10px;
    padding: 9px 12px;
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
    background: rgba(15, 139, 141, 0.08);
}

.portal-ad-slot {
    max-width: 1100px;
    margin: 28px auto 0;
    padding: 0 15px;
}

.portal-footer {
    margin-top: 32px;
    padding: 20px 0 10px;
}

.portal-cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 2100;
}

.portal-cookie-banner-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
    border-radius: 24px;
    border: 1px solid rgba(20, 63, 90, 0.12);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 60px rgba(14, 33, 47, 0.18);
    backdrop-filter: blur(10px);
}

.portal-cookie-copy strong {
    display: block;
    margin-bottom: 4px;
    color: #14324a;
    font-size: 16px;
    font-weight: 800;
}

.portal-cookie-copy p {
    margin: 0;
    color: #4f6b7f;
    font-size: 14px;
    line-height: 1.5;
    max-width: 760px;
}

.portal-cookie-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.portal-cookie-btn-secondary {
    background: #eef4f8;
    color: #173047;
    border: 1px solid rgba(20, 63, 90, 0.12);
}

.portal-admin-page {
    margin-top: 28px;
    margin-bottom: 36px;
}

.portal-admin-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 248, 251, 0.98));
    border: 1px solid rgba(27, 67, 94, 0.08);
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(22, 45, 67, 0.12);
    padding: 28px;
}

.portal-admin-card + .portal-admin-card,
.portal-admin-section,
.portal-admin-message {
    margin-top: 24px;
}

.portal-admin-card-secondary {
    padding-top: 24px;
}

.portal-admin-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 20px;
}

.portal-admin-card-head h2,
.portal-admin-card-head h3 {
    margin: 6px 0 8px;
    color: #14324a;
    font-family: "Fraunces", Georgia, serif;
    font-weight: 700;
}

.portal-admin-card-head p {
    margin: 0;
    color: #567086;
    max-width: 760px;
}

.portal-admin-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(19, 129, 156, 0.12);
    color: #11607b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portal-admin-close {
    white-space: nowrap;
}

.portal-admin-toolbar {
    margin-bottom: 20px;
}

.portal-admin-filter {
    max-width: 420px;
}

.portal-admin-filter label {
    display: block;
    margin-bottom: 8px;
    color: #284962;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.portal-admin-table-wrap {
    margin-top: 0;
    padding: 0;
    overflow-x: visible;
    border-radius: 22px;
    border: 1px solid rgba(20, 63, 90, 0.08);
    background: rgba(255, 255, 255, 0.9);
}

.portal-admin-table {
    margin-bottom: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0;
    width: 100% !important;
    table-layout: fixed;
}

.portal-admin-table thead th,
.portal-admin-table tfoot th {
    background: linear-gradient(180deg, #edf5fa, #dcecf6);
    color: #183247;
    border: none !important;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: normal !important;
    word-break: break-word;
    text-shadow: none;
}

.portal-admin-table tbody td {
    color: #173047;
    background: rgba(255, 255, 255, 0.92);
    border-top: 1px solid rgba(20, 63, 90, 0.08) !important;
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: anywhere;
    vertical-align: top;
}

.portal-admin-table tbody tr:nth-child(even) td {
    background: rgba(238, 246, 249, 0.78);
}

.portal-admin-table tbody tr:hover td {
    background: rgba(208, 238, 239, 0.9) !important;
}

.portal-admin-table .btn {
    margin: 3px;
    min-width: 34px;
    min-height: 34px;
    padding: 6px 9px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    color: #ffffff !important;
    text-shadow: 0 1px 1px rgba(8, 24, 37, 0.24);
    box-shadow: 0 12px 24px rgba(18, 58, 84, 0.14);
}

.portal-admin-table thead th:last-child,
.portal-admin-table tfoot th:last-child {
    background: transparent;
    color: transparent;
    box-shadow: none;
}

#table_company_change th:nth-child(1),
#table_company_change td:nth-child(1) {
    width: 170px !important;
}

#table_company_change th:nth-child(2),
#table_company_change td:nth-child(2) {
    width: 210px !important;
}

#table_company_change th:nth-child(3),
#table_company_change td:nth-child(3) {
    width: 110px !important;
}

#table_company_change th:nth-child(4),
#table_company_change td:nth-child(4) {
    width: auto !important;
}

#table_company_change th:nth-child(5),
#table_company_change td:nth-child(5) {
    width: 74px !important;
    text-align: center;
}

#table_users th:last-child,
#table_users td:last-child,
#table_users_company th:last-child,
#table_users_company td:last-child {
    white-space: nowrap !important;
}

.dataTables_wrapper {
    padding: 16px 18px 18px;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 16px;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border: 1px solid rgba(20, 63, 90, 0.18);
    border-radius: 999px;
    min-height: 40px;
    padding: 8px 14px;
    background: #fff;
    color: #173047;
    outline: none;
}

.dataTables_wrapper .dataTables_filter input {
    margin-left: 10px;
    min-width: 220px;
}

.dataTables_wrapper .dataTables_info {
    color: #5e7588;
    font-weight: 600;
    padding-top: 18px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border: none !important;
    background: transparent !important;
    color: #24577a !important;
    border-radius: 999px;
    font-weight: 700;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: rgba(19, 129, 156, 0.12) !important;
    color: #14324a !important;
}

#user_edit .form-group,
#user_edit h4 {
    color: #173047;
}

#user_edit input.form-control {
    border-radius: 16px;
    min-height: 42px;
}

.portal-company-edit-card {
    padding-top: 24px;
}

.portal-user-edit-card {
    padding-top: 24px;
}

.portal-company-edit-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(360px, 1.05fr);
    gap: 22px;
}

.portal-user-edit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.portal-company-edit-panel {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(20, 63, 90, 0.08);
    border-radius: 22px;
    padding: 22px;
}

.portal-company-edit-panel-accent {
    background: linear-gradient(180deg, rgba(239, 248, 251, 0.98), rgba(255, 255, 255, 0.96));
}

.portal-company-edit-panel h4 {
    margin: 0 0 18px;
    color: #14324a;
    font-family: "Fraunces", Georgia, serif;
    font-size: 24px;
    font-weight: 700;
}

.portal-detail-list {
    margin: 0;
}

.portal-detail-list > div {
    padding: 14px 0;
    border-bottom: 1px solid rgba(20, 63, 90, 0.08);
}

.portal-detail-list > div:first-child {
    padding-top: 0;
}

.portal-detail-list > div:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.portal-detail-list dt {
    margin-bottom: 6px;
    color: #587187;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.portal-detail-list dd {
    margin: 0;
    color: #173047;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.55;
    word-break: break-word;
}

.portal-detail-list dd.is-loading {
    color: #5b7488;
    font-style: italic;
}

.portal-company-edit-fields {
    display: grid;
    gap: 16px;
}

.portal-company-edit-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.portal-company-edit-field label {
    display: block;
    margin-bottom: 8px;
    color: #284962;
    font-size: 13px;
    font-weight: 800;
}

.portal-company-edit-field .form-control {
    min-height: 44px;
    border-radius: 16px;
    border: 1px solid rgba(20, 63, 90, 0.14);
    box-shadow: none;
}

.portal-company-edit-field textarea.form-control {
    min-height: 120px;
    resize: vertical;
    padding-top: 12px;
}

.portal-company-edit-field .form-control[disabled] {
    background: rgba(232, 240, 245, 0.85);
    color: #496174;
}

.portal-password-field {
    position: relative;
}

.portal-password-field .form-control {
    padding-right: 98px;
}

.portal-password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    border: none;
    border-radius: 999px;
    background: rgba(19, 129, 156, 0.12);
    color: #14506a;
    min-width: 38px;
    min-height: 32px;
    font-size: 14px;
    font-weight: 800;
    padding: 0;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.portal-password-field-inline {
    display: inline-block;
    width: 100%;
}

.portal-password-field-inline .form-control {
    padding-right: 84px;
}

.portal-password-toggle-inline {
    right: 8px;
    min-width: 34px;
    min-height: 28px;
    font-size: 13px;
}

.portal-password-toggle.is-active {
    background: rgba(19, 129, 156, 0.22);
    color: #0f4156;
}

.portal-company-edit-note {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(19, 129, 156, 0.08);
    color: #31566d;
    font-size: 14px;
    line-height: 1.55;
}

.portal-company-edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 22px;
}

.portal-form-shell {
    margin-top: 26px;
    margin-bottom: 34px;
}

.portal-form-card {
    padding: 30px;
}

.portal-form-head {
    margin-bottom: 24px;
}

.portal-form-head h2 {
    margin: 8px 0 10px;
    color: #14324a;
    font-family: "Fraunces", Georgia, serif;
    font-weight: 700;
}

.portal-form-head p {
    margin: 0;
    color: #567086;
    max-width: 720px;
    line-height: 1.7;
}

.portal-contact-form {
    gap: 18px;
}

.portal-contact-textarea {
    min-height: 180px !important;
    resize: vertical;
    padding-top: 12px;
}

.portal-form-actions {
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
}

.portal-form-actions .btn {
    min-width: 170px;
    min-height: 46px;
}

.portal-company-edit-loading {
    padding: 24px 28px;
}

.portal-company-edit-loading-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 88px;
}

.portal-company-edit-loading-inner h3 {
    margin: 0 0 6px;
    color: #14324a;
    font-family: "Fraunces", Georgia, serif;
    font-size: 26px;
    font-weight: 700;
}

.portal-company-edit-loading-inner p {
    margin: 0;
    color: #5b7488;
    font-size: 15px;
}

.portal-modal-backdrop {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(16, 34, 49, 0.55);
    backdrop-filter: blur(6px);
    z-index: 2000;
}

.portal-modal-backdrop.is-open {
    display: flex;
}

.portal-modal-card {
    width: min(820px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 249, 252, 0.98));
    border: 1px solid rgba(20, 63, 90, 0.12);
    border-radius: 28px;
    box-shadow: 0 32px 80px rgba(12, 33, 49, 0.24);
    padding: 28px;
}

.portal-modal-card-compact {
    width: min(760px, 100%);
}

.portal-modal-card.is-message {
    width: min(520px, 100%);
    padding: 26px 24px;
}

.portal-modal-card.is-form {
    width: min(760px, 100%);
}

.portal-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(20, 63, 90, 0.08);
    color: #173047;
    font-size: 28px;
    line-height: 1;
}

.portal-modal-body h4 {
    margin: 0 0 20px;
    color: #14324a;
    font-family: "Fraunces", Georgia, serif;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
}

.portal-modal-body .form-group {
    margin-bottom: 18px;
}

.portal-modal-body .form-control {
    border-radius: 16px;
    min-height: 42px;
}

.portal-modal-body .pull-right {
    float: none !important;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 12px;
}

.portal-modal-body .btn {
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 800;
    color: #ffffff !important;
    text-shadow: 0 1px 1px rgba(8, 24, 37, 0.24);
}

.portal-modal-body .table {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 18px;
    overflow: hidden;
}

.portal-modal-message {
    text-align: center;
    padding: 12px 4px 4px;
}

.portal-modal-message p {
    margin: 0 0 20px;
    color: #14324a;
    font-family: "Fraunces", Georgia, serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
}

.portal-loading-spinner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(19, 129, 156, 0.12);
    color: #0f7f98;
    font-size: 24px;
    animation: portal-spin 0.9s linear infinite;
}

@keyframes portal-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes portal-loading-shimmer {
    from {
        background-position: 200% 0;
    }

    to {
        background-position: -20% 0;
    }
}

.portal-footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    padding: 20px 24px;
}

.portal-footer-meta,
.portal-footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.portal-footer a {
    color: #28465e;
    font-weight: 600;
}

.portal-company-shell {
    margin-top: 24px;
}

.portal-company-hero,
.portal-detail-card-modern {
    background: var(--portal-surface);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: var(--portal-shadow);
    border-radius: var(--portal-radius);
}

.portal-company-hero {
    padding: 28px;
    margin-bottom: 22px;
}

.portal-company-kicker {
    display: inline-block;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 800;
    color: #0b5f67;
    margin-bottom: 10px;
}

.portal-company-headline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.portal-company-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 40px;
    line-height: 1.05;
    margin: 0;
    color: #173047;
}

.portal-company-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.portal-company-subline,
.portal-company-address-meta,
.portal-inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
}

.portal-company-subline {
    margin-top: 12px;
}

.portal-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 800;
}

.portal-badge-success {
    background: rgba(38, 161, 123, 0.14);
    color: #16795d;
}

.portal-badge-muted {
    background: rgba(148, 64, 43, 0.12);
    color: #93402b;
}

.portal-company-type,
.portal-company-district {
    color: var(--portal-muted);
    font-weight: 700;
    padding-top: 4px;
}

.portal-company-address-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-end;
}

.portal-company-address {
    font-size: 22px;
    font-weight: 700;
    color: #1d3b55;
    margin-bottom: 10px;
}

.portal-company-address-meta span,
.portal-inline-links a {
    color: var(--portal-muted);
    font-size: 13px;
    font-weight: 600;
}

.portal-inline-links a {
    color: #1b6ca8;
}

.portal-company-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.portal-info-card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(23, 48, 71, 0.08);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 12px 24px rgba(25, 46, 74, 0.06);
}

.portal-info-label {
    display: block;
    font-size: 12px;
    color: var(--portal-muted);
    margin-bottom: 8px;
}

.portal-info-card strong {
    display: block;
    color: #173047;
    font-size: 18px;
    line-height: 1.45;
}

.portal-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 0.95fr);
    gap: 22px;
}

.portal-detail-main,
.portal-detail-sidebar {
    display: grid;
    gap: 22px;
}

.portal-detail-card-modern {
    padding: 24px;
}

.portal-card-head {
    margin-bottom: 18px;
}

.portal-card-head h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 26px;
    margin: 0 0 8px;
    color: #173047;
}

.portal-card-head p,
.portal-help-text {
    color: var(--portal-muted);
    line-height: 1.7;
    margin: 0;
}

.portal-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.portal-meta-item {
    background: rgba(15, 139, 141, 0.04);
    border: 1px solid rgba(15, 139, 141, 0.08);
    border-radius: 18px;
    padding: 14px 16px;
}

.portal-meta-item span {
    display: block;
    color: var(--portal-muted);
    font-size: 12px;
    margin-bottom: 6px;
}

.portal-meta-item strong {
    color: #173047;
    font-size: 15px;
    line-height: 1.6;
}

.portal-three-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.portal-content-card {
    border: 1px solid rgba(23, 48, 71, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    padding: 16px;
}

.portal-content-card h4 {
    margin: 0 0 12px;
    color: #173047;
    font-size: 18px;
    font-weight: 800;
}

.portal-rich-text {
    color: #26445d;
    line-height: 1.8;
    min-height: 96px;
}

.portal-rich-text table {
    width: 100%;
}

.portal-mini-action {
    margin-top: 12px;
}

.portal-working-buttons {
    margin-top: 12px;
}

.portal-inline-warning-slot {
    display: none;
    margin-top: 14px;
}

.portal-inline-warning {
    margin: 0;
    border-radius: 16px;
    border: 1px solid rgba(176, 50, 44, 0.18);
    background: linear-gradient(180deg, rgba(255, 244, 242, 0.98), rgba(255, 233, 229, 0.95));
    color: #8e231d;
    font-weight: 700;
    box-shadow: 0 14px 34px rgba(176, 50, 44, 0.14);
}

.portal-stats-warning {
    margin: 10px 0 0;
    border: 1px solid rgba(195, 143, 39, 0.18);
    background: linear-gradient(180deg, rgba(255, 250, 236, 0.98), rgba(255, 244, 214, 0.96));
    color: #7a5416;
    font-weight: 700;
}

.portal-link-list,
.portal-sidebar-actions {
    display: grid;
    gap: 10px;
}

.portal-link-list a {
    display: block;
    border: 1px solid rgba(23, 48, 71, 0.08);
    border-radius: 14px;
    padding: 11px 14px;
    background: rgba(255, 255, 255, 0.72);
    color: #1d4c73;
    font-weight: 700;
}

.portal-help-text {
    margin-top: 14px;
}

.portal-captcha-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(23, 48, 71, 0.08);
    border-radius: 16px;
    padding: 10px 12px;
}

.portal-captcha-image {
    flex: 0 0 auto;
    min-width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 139, 141, 0.04);
    border: 1px dashed rgba(15, 139, 141, 0.2);
    border-radius: 12px;
    padding: 6px 8px;
}

.portal-captcha-image img {
    display: block;
    max-width: 100%;
    height: auto;
}

.portal-captcha-input {
    flex: 1 1 auto;
    min-width: 0;
}

.portal-captcha-input .form-control {
    margin: 0;
}

.portal-turnstile-wrap {
    display: block;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(23, 48, 71, 0.08);
    border-radius: 16px;
    padding: 12px;
}

.portal-turnstile {
    min-height: 65px;
}

.portal-security-note {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(30, 87, 153, 0.16);
    background: linear-gradient(180deg, rgba(242, 248, 252, 0.98), rgba(231, 241, 248, 0.95));
    color: #2b4a67;
    font-size: 13px;
    line-height: 1.5;
}

.portal-operator-qr-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 12px;
}

.portal-operator-layout {
    display: grid;
    grid-template-columns: minmax(420px, 1.3fr) minmax(220px, 0.55fr);
    gap: 24px;
    align-items: stretch;
}

.portal-operator-layout::before,
.portal-operator-layout::after {
    content: none !important;
    display: none !important;
}

.portal-operator-profile {
    grid-column: 1;
    grid-row: 1;
}

.portal-operator-qr-wrap {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding-top: 0;
}

.portal-operator-profile-card,
.portal-operator-map-card {
    background: linear-gradient(180deg, rgba(239, 248, 251, 0.98), rgba(255, 255, 255, 0.96));
    border: 1px solid rgba(20, 63, 90, 0.1);
    border-radius: 24px;
    box-shadow: 0 16px 36px rgba(17, 45, 68, 0.12);
}

.portal-operator-profile-card {
    padding: 24px;
}

.portal-operator-map-wrap {
    grid-column: 1 / -1;
    grid-row: 2;
}

.portal-operator-profile-card h4 {
    margin: 14px 0 18px;
    color: #14324a;
    font-family: "Fraunces", Georgia, serif;
    font-size: 30px;
    font-weight: 700;
}

.portal-operator-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.portal-operator-profile-grid > div {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(20, 63, 90, 0.08);
}

.portal-operator-profile-grid > div span {
    display: block;
    margin-bottom: 8px;
    color: #587187;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.portal-operator-profile-grid > div strong {
    color: #173047;
    font-size: 17px;
    line-height: 1.55;
}

.portal-operator-profile-grid-wide {
    grid-column: 1 / -1;
}

.portal-operator-qr-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px;
    min-height: 100%;
    width: min(100%, 240px);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(239, 248, 251, 0.98), rgba(255, 255, 255, 0.96));
    border: 1px solid rgba(20, 63, 90, 0.1);
    box-shadow: 0 16px 36px rgba(17, 45, 68, 0.12);
}

.portal-operator-qr-card .portal-admin-eyebrow {
    margin-bottom: 14px;
}

.portal-operator-qr-image {
    display: block;
    width: 180px;
    max-width: 100%;
    height: auto;
}

.portal-operator-map-card {
    padding: 22px;
}

.portal-operator-map-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 14px;
    margin-bottom: 16px;
}

.portal-operator-map-head h3 {
    margin: 0;
    color: #14324a;
    font-family: "Fraunces", Georgia, serif;
    font-size: 28px;
    font-weight: 700;
}

.portal-operator-map-head p {
    margin: 0;
    color: #5b7488;
    font-size: 14px;
    line-height: 1.6;
    max-width: 420px;
    text-align: right;
}

.portal-operator-map-frame {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(20, 63, 90, 0.1);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.portal-operator-map-frame iframe {
    display: block;
    width: 100%;
    height: 380px;
    border: 0;
    filter: saturate(1.02) contrast(1.01);
}

.portal-operator-map-markers {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.portal-operator-marker {
    position: absolute;
    transform: translate(-50%, -100%);
    border: none;
    background: transparent;
    padding: 0;
    pointer-events: auto;
}

.portal-operator-marker-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f8b8d 0%, #1b6ca8 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 14px 28px rgba(18, 58, 84, 0.24);
}

.portal-operator-marker.is-branch .portal-operator-marker-badge {
    background: linear-gradient(135deg, #c7573b 0%, #ea8b2c 100%);
}

.portal-operator-marker-card {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%);
    min-width: 190px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(20, 63, 90, 0.1);
    box-shadow: 0 18px 34px rgba(17, 45, 68, 0.18);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.portal-operator-marker-card strong,
.portal-operator-marker-card small {
    display: block;
}

.portal-operator-marker-card strong {
    color: #173047;
    font-size: 14px;
    line-height: 1.4;
}

.portal-operator-marker-card small {
    margin-top: 4px;
    color: #587187;
    font-size: 12px;
    line-height: 1.45;
}

.portal-operator-marker:hover .portal-operator-marker-card,
.portal-operator-marker:focus .portal-operator-marker-card {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}

.portal-operator-map-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.portal-operator-map-links a {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(20, 63, 90, 0.1);
    color: #1d4c73;
    font-weight: 700;
    text-decoration: none;
}

.panel .panel-body .text-left {
    float: left;
}

pre {
    font-size: 12px;
}

a.navbar-brand h1 {
    float: left;
    font-size: 18px;
    line-height: 20px;
    margin: 0;
}

@media (max-width: 992px) {
    .panel .panel-body .text-left {
        width: 100%;
        text-align: center;
    }

    .portal-summary-panel {
        flex-direction: column;
        align-items: stretch;
    }

    .portal-search-loading-grid {
        grid-template-columns: 1fr;
    }

    .portal-operator-layout,
    .portal-operator-profile-grid {
        grid-template-columns: 1fr;
    }

    .portal-operator-map-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .portal-operator-map-head p {
        max-width: none;
        text-align: left;
    }

    .portal-summary-grid {
        grid-template-columns: 1fr;
    }

    .portal-company-grid,
    .portal-three-columns,
    .portal-meta-grid,
    .portal-detail-layout {
        grid-template-columns: 1fr;
    }

    .portal-operator-map-frame iframe {
        height: 320px;
    }

    .portal-company-headline,
    .portal-company-address-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .portal-company-title {
        font-size: 30px;
    }

    .portal-captcha-box {
        flex-direction: column;
        align-items: stretch;
    }

    .portal-captcha-image {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .portal-topbar {
        padding-top: 14px;
    }

    .portal-brand-block,
    .portal-auth-card,
    .portal-user-actions,
    .form-horizontal,
    .container > .row > .col-sm-offset-3 > .panel,
    .table-responsive,
    .portal-footer-inner {
        border-radius: 20px;
    }

    .portal-auth-grid {
        grid-template-columns: 1fr;
    }

    .portal-auth-card-compact {
        flex-basis: 100%;
    }

    .portal-auth-strip {
        width: 100%;
    }

    .portal-auth-inline {
        width: 100%;
        flex-wrap: wrap;
    }

    .portal-auth-input-inline {
        width: 100%;
        min-width: 0;
    }

    .portal-auth-actions,
    .portal-user-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .portal-admin-card,
    .portal-admin-table-wrap {
        border-radius: 22px;
    }

    .portal-admin-card-head {
        flex-direction: column;
    }

    .portal-company-edit-grid,
    .portal-user-edit-grid,
    .portal-company-edit-field-grid {
        grid-template-columns: 1fr;
    }

    .portal-form-card {
        padding: 24px 20px;
    }

    .portal-company-edit-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .portal-cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .portal-cookie-banner-inner,
    .portal-cookie-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .portal-modal-card {
        padding: 22px 18px;
        border-radius: 22px;
    }

    .portal-modal-body .pull-right {
        flex-direction: column;
        align-items: stretch;
    }

    .portal-btn,
    .portal-user-actions .btn,
    .portal-auth-actions .btn {
        width: 100%;
    }

    .portal-brand h1,
    .panel-title {
        font-size: 24px;
    }

    .form-horizontal .col-sm-4 .btn-danger {
        margin-left: 0 !important;
    }
}

/* Jednotna typografia a povrchy portalu. */
body.portal-shell {
    background:
        radial-gradient(circle at top left, rgba(15, 139, 141, 0.12), transparent 34%),
        linear-gradient(180deg, #f8fbfd 0%, #edf3f8 100%);
}

body.portal-shell,
body.portal-shell h1,
body.portal-shell h2,
body.portal-shell h3,
body.portal-shell h4,
body.portal-shell h5,
body.portal-shell h6,
body.portal-shell button,
body.portal-shell input,
body.portal-shell select,
body.portal-shell textarea,
body.portal-shell .panel-title,
body.portal-shell .portal-modal-message p {
    font-family: 'Manrope', 'Segoe UI', sans-serif;
}

.portal-topbar {
    padding-top: 16px;
}

.portal-topbar-inner {
    align-items: center;
    flex-wrap: nowrap;
    gap: 24px;
    padding: 15px 22px;
    background: var(--portal-surface);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--portal-radius);
    box-shadow: var(--portal-shadow);
    backdrop-filter: blur(12px);
}

.portal-topbar .portal-brand-block {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.portal-topbar .portal-brand-block::after {
    display: none;
}

.portal-topbar .portal-brand-kicker {
    margin-bottom: 4px;
}

.portal-topbar .portal-brand h1 {
    font-size: 25px;
    font-weight: 800;
    line-height: 1.2;
}

.portal-topbar-actions,
.portal-topbar .portal-user-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.portal-topbar .portal-user-actions {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.portal-shell .panel-default,
.portal-shell .form-horizontal,
.portal-shell .table-responsive,
.portal-shell .portal-footer-inner {
    border-radius: var(--portal-radius);
}

.portal-shell .panel-default {
    overflow: visible;
    border: 1px solid var(--portal-line);
    background: var(--portal-surface);
    box-shadow: var(--portal-shadow);
}

.portal-shell .panel-default > .panel-heading {
    border-radius: 23px 23px 0 0;
}

/* The search card reaches the same outer edges as the header and footer. */
.portal-page > #portal-search-form {
    margin-left: -15px;
    margin-right: -15px;
    padding-left: 15px;
    padding-right: 15px;
}

.portal-shell .portal-summary-item,
.portal-shell .panel-body pre,
.portal-shell .alert {
    border-radius: 16px;
}

.portal-shell .btn,
.portal-shell .form-control {
    border-radius: 12px;
}

.portal-shell .btn {
    font-weight: 700;
}

.portal-login-dialog {
    width: min(440px, calc(100vw - 28px));
    max-height: calc(100vh - 40px);
    padding: 28px;
    overflow: auto;
    color: var(--portal-ink);
    background: #fff;
    border: 1px solid var(--portal-line);
    border-radius: var(--portal-radius);
    box-shadow: 0 30px 90px rgba(12, 33, 49, 0.28);
}

.portal-login-dialog::backdrop {
    background: rgba(13, 35, 53, 0.48);
    backdrop-filter: blur(4px);
}

.portal-login-dialog-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.portal-login-dialog-head h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
}

.portal-login-dialog .portal-brand-kicker {
    margin-bottom: 6px;
}

.portal-login-dialog-close {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: rgba(20, 63, 90, 0.08);
    color: var(--portal-ink);
    font-size: 25px;
    line-height: 1;
}

.portal-login-form .form-group {
    margin-bottom: 18px;
}

.portal-login-form label {
    color: var(--portal-ink);
    font-weight: 700;
}

.portal-login-form .form-control {
    height: 46px;
}

.portal-login-submit {
    width: 100%;
    min-height: 44px;
    margin-top: 4px;
}

.portal-login-dialog-links {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .portal-topbar-inner {
        flex-wrap: wrap;
        gap: 16px;
        padding: 16px;
    }

    .portal-topbar .portal-brand-block {
        flex-basis: 100%;
    }

    .portal-topbar-actions,
    .portal-topbar .portal-user-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .portal-topbar-actions .btn,
    .portal-topbar .portal-user-actions .btn {
        flex: 1 1 auto;
        width: auto;
    }

    .portal-login-dialog {
        padding: 24px 20px;
    }
}
