* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f3f5f7;
}

.auth-page {
    padding: 20px;
}

.auth-page .login-box,
.auth-page .box {
    padding: 28px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 3px 18px rgba(0, 0, 0, 0.12);
}

.login-page {
    display: flex;
    flex-direction: column;
}

.login-page .login-box {
    width: 100%;
    max-width: 390px;
    margin: 70px auto;
}

.login-page .legal-links {
    margin-top: auto;
    padding-top: 16px;
    text-align: center;
    font-size: 12px;
    color: #9aa0a6;
}

.login-page .legal-links a {
    color: inherit;
    text-decoration: none;
}

.login-page .legal-links a:hover {
    text-decoration: underline;
}

.login-page .legal-links .separator {
    margin: 0 6px;
}

/* Przełącznik języka na stronach przed zalogowaniem (login, forgot-password) - patrz i18n.php. */
.auth-page .lang-switch {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
    margin: -12px -12px 8px 0;
    font-size: 12px;
}

.auth-page .lang-switch a,
.auth-page .lang-switch span {
    padding: 3px 6px;
    border-radius: 4px;
    color: #5f6368;
    text-decoration: none;
}

.auth-page .lang-switch a:hover {
    background: #f1f3f4;
}

.auth-page .lang-switch span[aria-current] {
    font-weight: bold;
    color: #202124;
    background: #e8eaed;
}

.help-legal-links {
    margin-top: 16px;
    font-size: 12px;
    color: #9aa0a6;
}

.help-legal-links a {
    color: inherit;
    text-decoration: none;
}

.help-legal-links a:hover {
    text-decoration: underline;
}

.help-legal-links .separator {
    margin: 0 6px;
}

.forgot-password-page .box {
    max-width: 430px;
    margin: 70px auto;
}

.register-page .box {
    max-width: 520px;
    margin: 40px auto;
}

.auth-page h1 {
    margin-top: 0;
    font-size: 24px;
}

/* Blok "Nie masz konta?" pod formularzem logowania (login.php) */
.login-page .register-cta {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e3e7eb;
    text-align: center;
}

.login-page .register-cta p {
    margin: 0 0 10px;
    font-size: 14px;
    color: #5f6368;
}

.login-page .register-cta .button-outline {
    display: block;
    padding: 11px 12px;
    border: 1px solid #1769aa;
    border-radius: 5px;
    color: #1769aa;
    font-size: 15px;
    line-height: 1.3;
    text-decoration: none;
}

.login-page .register-cta .button-outline:hover {
    background: #eef5fb;
}

/* Rejestracja firmy (register.php) */
/* Ekran po udanej rejestracji */
.register-page .register-done {
    padding: 4px 0 2px;
    text-align: center;
}

.register-page .register-done-icon {
    display: block;
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    fill: #e7f6eb;
    stroke: #2e8b47;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.register-page .register-done h1 {
    margin-bottom: 8px;
}

.register-page .register-done > p {
    margin-bottom: 18px;
}

.register-page .register-done-mail {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #d6e4f0;
    border-radius: 8px;
    background: #f4f8fc;
    text-align: left;
}

.register-page .register-done-mail svg {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    fill: none;
    stroke: #1769aa;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.register-page .register-done-mail div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    font-size: 14px;
    color: #5f6368;
}

.register-page .register-done-mail strong {
    color: #202124;
    font-size: 15px;
    overflow-wrap: anywhere;
}

.register-page .register-done .help {
    margin-top: 12px;
}

.register-page .register-done-button {
    display: block;
    margin-top: 22px;
    padding: 12px;
    border-radius: 5px;
    background: #1769aa;
    color: #ffffff;
    font-size: 16px;
    text-decoration: none;
}

.register-page .register-done-button:hover {
    background: #12578e;
}

.register-page .register-lead {
    margin-bottom: 14px;
    font-size: 15px;
    color: #3c4043;
}

.register-page .register-points {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 0 20px;
    padding: 14px 16px;
    list-style: none;
    border: 1px solid #d6e4f0;
    border-radius: 8px;
    background: #f4f8fc;
}

.register-page .register-points li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.register-page .register-points svg {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    fill: none;
    stroke: #1769aa;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.register-page .register-points div {
    display: flex;
    flex-direction: column;
    gap: 1px;
    font-size: 14px;
    line-height: 1.4;
}

.register-page .register-points strong {
    color: #202124;
}

.register-page .register-points span {
    color: #5f6368;
}

.register-page .register-section {
    margin: 26px 0 0;
    padding-bottom: 6px;
    border-bottom: 1px solid #e3e7eb;
    font-size: 17px;
    color: #202124;
}

.register-page .register-section + .help {
    margin-top: 8px;
}

.register-page .required {
    color: #c62828;
}

.register-page .optional {
    font-weight: normal;
    color: #80868b;
}

.register-page .captcha-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.register-page .captcha-row img {
    display: block;
    border-radius: 4px;
    max-width: 100%;
    height: auto;
}

.register-page button.captcha-refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
    border: 1px solid #5f6368;
    border-radius: 6px;
    background: #ffffff;
    color: #3c4043;
}

.register-page button.captcha-refresh:hover {
    background: #f1f3f4;
}

.register-page .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 20px;
    font-weight: normal;
    line-height: 1.45;
}

.register-page .checkbox-label input {
    width: auto;
    margin: 3px 0 0;
    flex: 0 0 auto;
}

.register-page .checkbox-label a {
    color: #1769aa;
}

/* Pole-pułapka dla botów - poza ekranem, nie display:none (część botów to pomija). */
.register-page .register-trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.login-page h1 {
    margin-bottom: 22px;
}

.forgot-password-page h1,
.register-page h1 {
    margin-bottom: 10px;
}

.auth-page p {
    margin-top: 0;
    color: #555555;
    line-height: 1.5;
}

.auth-page label {
    display: block;
    margin-top: 15px;
    margin-bottom: 6px;
    font-weight: bold;
}

.forgot-password-page label {
    margin-top: 18px;
}

.auth-page input {
    width: 100%;
    padding: 11px;
    border: 1px solid #ccd2d8;
    border-radius: 5px;
    font-size: 15px;
}

.auth-page button {
    width: 100%;
    margin-top: 22px;
    padding: 12px;
    border: 0;
    border-radius: 5px;
    background: #1769aa;
    color: #ffffff;
    cursor: pointer;
    font-size: 16px;
}

.auth-page button:hover {
    background: #12578e;
}

.auth-page .error,
.auth-page .success {
    padding: 11px;
    margin-bottom: 16px;
    border-radius: 5px;
    line-height: 1.5;
}

.login-page .error {
    line-height: 1.4;
}

.auth-page .error {
    background: #ffe7e7;
    color: #a40000;
}

.auth-page .success {
    background: #e7f6eb;
    color: #176b2c;
}

.auth-page .help {
    margin-top: 8px;
    color: #666666;
    font-size: 13px;
    line-height: 1.45;
}

.auth-page .links {
    margin-top: 18px;
    text-align: center;
}

.auth-page .links a {
    color: #1769aa;
    text-decoration: none;
}

.auth-page .links a:hover {
    text-decoration: underline;
}

.auth-page .separator {
    margin: 0 8px;
    color: #999999;
}

.panel-page {
    min-height: 100vh;
    color: #222222;
}

body.panel-page {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.panel-page .top-bar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    padding: 0 18px;
    background: #ffffff;
    border-bottom: 1px solid #d8dde3;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.06);
}

.panel-page .brand {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 48px;
    font-size: 18px;
    font-weight: bold;
    white-space: nowrap;
}

.panel-page .brand-logo {
    display: block;
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex: 0 0 auto;
}

.panel-page .top-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-page .logged-user {
    color: #555555;
    font-size: 12px;
}

.panel-page .logout,
.panel-page .button,
.panel-page .button-secondary,
.panel-page .button-danger,
.panel-page .button-small {
    display: inline-block;
    border: 0;
    border-radius: 5px;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
}

.panel-page .logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 32px;
    padding: 0 8px;
    border-radius: 5px;
    background: #b3261e;
    color: #ffffff;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
}

.panel-page .logout:hover,
.panel-page .button-danger:hover {
    background: #8d1d18;
    color: #ffffff;
}

.panel-page .menu-bar {
    flex: 0 0 auto;
    display: flex;
    width: 100%;
    padding: 0 18px;
    background: #ffffff;
    border-bottom: 1px solid #d8dde3;
}

.panel-page .menu-item {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 9px 13px;
    border-bottom: 2px solid transparent;
    color: #333333;
    font-size: 13px;
    text-decoration: none;
}

.panel-page .menu-item:hover {
    background: #f3f7fb;
    color: #1769aa;
}

.panel-page .menu-item.active {
    border-bottom-color: #1769aa;
    color: #1769aa;
    font-weight: bold;
}

.panel-page .content {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    padding: 20px 24px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.panel-page .content-inner {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

.panel-page .home-empty {
    min-height: 400px;
}

.panel-page .card {
    width: 100%;
    padding: 24px;
    margin-bottom: 22px;
    background: #ffffff;
    border-radius: 9px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.panel-page .card h1,
.panel-page .card h2 {
    margin-top: 0;
    margin-bottom: 8px;
}

.panel-page .card h1 {
    font-size: 25px;
}

.panel-page .card h2 {
    font-size: 20px;
}

.panel-page .card h2.section-heading-spaced {
    margin-bottom: 22px;
}

.panel-page .card h2.section-subtitle,
.panel-page .office-subscription-header {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #e3e8ee;
}

.panel-page .card .office-subscription-header h2 {
    margin: 0;
}

.panel-page .card-description {
    margin-top: 0;
    margin-bottom: 20px;
    color: #666666;
    line-height: 1.5;
}

.panel-page .profile-table,
.panel-page .users-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.panel-page .profile-table thead th,
.panel-page .users-table thead th {
    border-bottom: 0;
}

.panel-page .profile-table tbody tr,
.panel-page .users-table tbody tr {
    background: #ffffff;
}

.panel-page .profile-table tbody th,
.panel-page .profile-table tbody td,
.panel-page .users-table tbody th,
.panel-page .users-table tbody td {
    border-top: 1px solid #e4e7eb;
}

.panel-page .profile-table tbody tr > :first-child,
.panel-page .users-table tbody tr > :first-child {
    border-left: 1px solid #e4e7eb;
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.panel-page .profile-table tbody tr > :last-child,
.panel-page .users-table tbody tr > :last-child {
    border-right: 1px solid #e4e7eb;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

.panel-page .profile-table th,
.panel-page .profile-table td,
.panel-page .users-table th,
.panel-page .users-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #e4e7eb;
    text-align: left;
    vertical-align: top;
}

.panel-page .profile-table th,
.panel-page .users-table th {
    background: #f8f9fa;
    color: #444444;
    font-weight: bold;
}

.panel-page .profile-table th {
    width: 220px;
}

.panel-page .table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.panel-page .users-table {
    min-width: 1250px;
}

.panel-page .users-table tr:hover td {
    background: #f9fbfd;
}

.panel-page #users-table tbody tr {
    height: 58px;
}

.panel-page #users-table td {
    vertical-align: middle;
}

.panel-page .geo-objects-table {
    min-width: 980px;
}

.panel-page .geo-objects-table td {
    vertical-align: middle;
}

.panel-page .geo-objects-table code {
    font-size: 12px;
    word-break: break-all;
}

.panel-page .geo-checkbox-header,
.panel-page .geo-checkbox-cell {
    width: 32px;
    text-align: center;
}

.panel-page .geo-photo-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    border-radius: 10px;
    background: rgba(142, 36, 170, 0.12);
    color: #8e24aa;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}

.panel-page .geo-photo-count-badge svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.panel-page .geo-col-photos {
    width: 70px;
    max-width: 70px;
    text-align: center;
}

.panel-page .geo-col-type {
    width: 190px;
    max-width: 190px;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.panel-page .geo-col-updated {
    width: 260px;
    max-width: 260px;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.panel-page .geo-actions-header,
.panel-page .geo-action-cell {
    width: 92px;
    text-align: right;
    white-space: nowrap;
}

.panel-page .geo-functions-header,
.panel-page .geo-functions-cell {
    width: 92px;
    text-align: right;
}

.panel-page .geo-functions-icons {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    width: 100%;
}

.panel-page .geo-icon-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 32px !important;
    min-width: 34px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    font-size: 15px !important;
    vertical-align: middle !important;
}

.panel-page .geo-icon-button svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.panel-page .geo-objects-list-actions .inline-form {
    display: inline-flex !important;
    align-items: center;
    width: auto !important;
    height: 32px;
    margin: 0 !important;
}

.panel-page .geo-io-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.panel-page .geo-io-modal-backdrop.is-open {
    display: flex;
}

.panel-page .geo-io-modal-window {
    width: min(360px, 92vw);
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.38);
    overflow: hidden;
}

.panel-page .geo-io-modal-header {
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #f8fafc;
}

.panel-page .geo-io-modal-header strong {
    font-size: 15px;
    color: #0f172a;
}

.panel-page .geo-io-modal-close {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.panel-page .geo-io-modal-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
}

.panel-page .geo-io-modal-option {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d7dde3;
    border-radius: 8px;
    background: #ffffff;
    text-align: left;
    font-size: 14px;
    font-weight: normal;
    color: #1f2937;
    cursor: pointer;
}

.panel-page .geo-io-modal-option:hover {
    background: #eef4fb;
    border-color: #1769aa;
    color: #1769aa;
}

/* Okno "Zmień typ zaznaczonych obiektów" (#geoChangeLayerModalBackdrop w panel.php) */
.panel-page .geo-change-layer-window {
    width: min(420px, 92vw);
}

.panel-page .geo-change-layer-search {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
}

.panel-page .geo-change-layer-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: min(50vh, 420px);
    overflow-y: auto;
}

.panel-page .geo-change-layer-option {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.panel-page .geo-change-layer-option[hidden] {
    display: none;
}

.panel-page .geo-change-layer-geometry {
    flex-shrink: 0;
    font-size: 12px;
    color: #64748b;
}

.panel-page .geo-change-layer-hint,
.panel-page .geo-change-layer-empty {
    margin: 0;
    font-size: 13px;
    color: #475569;
}

.panel-page .geo-report-form .geo-report-intro {
    margin: 0 0 4px;
    font-size: 13px;
    color: #475569;
}

.panel-page .geo-report-form .geo-report-field {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 6px 2px;
    font-size: 14px;
    font-weight: normal;
    color: #1f2937;
    cursor: pointer;
}

.panel-page .geo-report-form .geo-report-field input {
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin: 0;
}

.panel-page .geo-report-form .geo-report-generate,
.panel-page .geo-report-form .geo-report-generate-projects {
    margin-top: 8px;
    width: 100%;
}

.panel-page .geo-delete-form {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    margin: 0;
}

.panel-page .role-badge,
.panel-page .status-badge {
    display: inline-block;
    margin: 2px 4px 2px 0;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    white-space: nowrap;
}

.panel-page .role-badge {
    background: #edf4fb;
    color: #1769aa;
}

.panel-page .status-active {
    background: #e7f6eb;
    color: #176b2c;
}

.panel-page .status-inactive {
    background: #ffe7e7;
    color: #a40000;
}

.panel-page .status-warning {
    background: #fff4d6;
    color: #8a5a00;
    margin-top: 4px;
    cursor: help;
}

.panel-page .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.panel-page .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.panel-page .form-group.full-width {
    grid-column: 1 / -1;
}

.panel-page .form-group small {
    line-height: 1.45;
    color: #667085;
    font-weight: normal;
}

.panel-page .form-static-value {
    margin: 0;
    padding: 11px 0;
    font-size: 15px;
    color: #333333;
}

.panel-page .project-form-first-row {
    grid-column: 1 / -1;
    display: grid !important;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) !important;
    gap: 16px;
    align-items: end;
}

@media (max-width: 900px) {
    .panel-page .project-form-first-row {
        grid-template-columns: 1fr !important;
    }
}

.panel-page label {
    font-weight: bold;
    color: #333333;
}

.panel-page input,
.panel-page select {
    width: 100%;
    padding: 11px;
    border: 1px solid #ccd2d8;
    border-radius: 5px;
    background: #ffffff;
    font-size: 15px;
}

.panel-page input[type="checkbox"],
.panel-page input[type="radio"] {
    width: auto;
    padding: 0;
    margin: 0 6px 0 0;
    vertical-align: middle;
}

.panel-page select {
    min-height: 42px;
}

.panel-page input:focus,
.panel-page select:focus {
    border-color: #1769aa;
    outline: 2px solid rgba(23, 105, 170, 0.13);
}

.panel-page .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    margin-top: 18px;
    padding: 0 16px;
    background: #1769aa;
    font-size: 15px;
}

.panel-page .button:hover,
.panel-page .button-secondary:hover {
    background: #12578e;
}

.panel-page .button-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 10px;
    background: #1769aa;
    font-size: 12px;
}

.panel-page .button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 10px;
    background: #51748f;
    font-size: 12px;
}

.panel-page .button-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 10px;
    background: #b3261e;
    font-size: 12px;
}

.panel-page .inline-form {
    display: block;
    width: 124px;
    margin: 0 0 6px 0;
}

.panel-page .inline-form:last-child {
    margin-bottom: 0;
}

.panel-page .inline-form .button-secondary,
.panel-page .inline-form .button-danger {
    width: 124px;
    min-height: 32px;
    padding: 7px 8px;
    text-align: center;
}

.panel-page .geo-functions-cell {
    text-align: right;
    white-space: nowrap;
}

.panel-page .geo-functions-icons {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.panel-page .geo-functions-icons .inline-form,
.panel-page .geo-functions-icons .geo-delete-form {
    display: inline-flex;
    width: auto;
    margin: 0;
}

.panel-page .geo-functions-icons .geo-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 34px;
    height: 32px;
    min-width: 34px;
    min-height: 32px;
    padding: 0;
    border: 0;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1;
    text-align: center;
}

.panel-page .geo-functions-icons button.geo-icon-button {
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
}

.panel-page .roles-form {
    display: flex;
    gap: 6px;
    min-width: 270px;
}

.panel-page .roles-form input,
.panel-page .roles-form select {
    padding: 7px;
    font-size: 12px;
}

.panel-page .help {
    margin-top: 7px;
    color: #666666;
    font-size: 13px;
    line-height: 1.45;
}

.panel-page .error-box,
.panel-page .success-box,
.panel-page .warning-box,
.panel-page .info-box {
    padding: 14px;
    margin-bottom: 16px;
    border-radius: 6px;
    line-height: 1.5;
}

.panel-page .error-box {
    background: #ffe7e7;
    color: #a40000;
}

.panel-page .success-box {
    background: #e7f6eb;
    color: #176b2c;
}

.panel-page .warning-box {
    background: #fff4d6;
    color: #795600;
}

.panel-page .info-box {
    background: #eef5fb;
    color: #24587e;
}

.panel-page .geo-select-all-banner a {
    margin-left: 10px;
    font-weight: bold;
}

.panel-page .temporary-password {
    display: inline-block;
    margin-top: 8px;
    padding: 7px 9px;
    border-radius: 4px;
    background: #ffffff;
    color: #222222;
    font-family: Consolas, Monaco, monospace;
    font-weight: bold;
}

.panel-page .sort-button,
.panel-page .geo-sort-button,
.panel-page .project-sort-button,
.panel-page .layer-sort-button,
.panel-page .office-sort-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #333333;
    cursor: pointer;
    font: inherit;
    font-weight: bold;
    white-space: nowrap;
    text-decoration: none;
}

.panel-page .sort-button:hover,
.panel-page .geo-sort-button:hover,
.panel-page .project-sort-button:hover,
.panel-page .layer-sort-button:hover,
.panel-page .office-sort-button:hover {
    color: #1769aa;
    text-decoration: underline;
}

.panel-page .sort-arrow {
    display: inline-block;
    min-width: 12px;
}

.panel-page .pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
}

.panel-page .pagination-info {
    color: #666666;
    font-size: 14px;
}

.panel-page .pagination-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.panel-page .pagination-link {
    display: inline-block;
    min-width: 34px;
    padding: 7px 10px;
    border: 1px solid #ccd2d8;
    border-radius: 5px;
    background: #ffffff;
    color: #1769aa;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    cursor: pointer;
}

.panel-page .pagination-link:hover {
    background: #f3f7fb;
}

.panel-page .pagination-link.active {
    border-color: #1769aa;
    background: #1769aa;
    color: #ffffff;
    font-weight: bold;
}

.panel-page .pagination-link.disabled {
    color: #999999;
    pointer-events: none;
    cursor: default;
}

@media (max-width: 700px) {
    .panel-page .top-bar {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
        padding: 8px 12px;
    }

    .panel-page .brand {
        min-height: auto;
        font-size: 17px;
    }

    .panel-page .top-right {
        justify-content: space-between;
        width: 100%;
    }

    .panel-page .menu-bar {
        overflow-x: auto;
        padding: 0 8px;
    }

    .panel-page .menu-item {
        flex-shrink: 0;
        min-height: 36px;
        padding: 8px 10px;
        font-size: 12px;
    }

    .panel-page .content {
        padding: 14px;
    }

    .panel-page .card {
        padding: 16px;
    }

    .panel-page .form-grid {
        grid-template-columns: 1fr;
    }

    .panel-page .profile-table th,
    .panel-page .profile-table td {
        display: block;
        width: 100%;
    }

    .panel-page .profile-table th {
        padding-bottom: 5px;
        border-bottom: 0;
    }

    .panel-page .profile-table td {
        padding-top: 5px;
    }
}

.panel-page .edit-user-actions {
    width: 100%;
    margin-top: 12px;
    overflow-x: auto;
    white-space: nowrap;
    text-align: center;
}

.panel-page .edit-user-actions > .button,
.panel-page .edit-user-actions > .inline-form {
    display: inline-block !important;
    width: auto !important;
    margin: 0 5px !important;
    vertical-align: middle;
}

.panel-page .edit-user-actions .button,
.panel-page .edit-user-actions .button-secondary,
.panel-page .edit-user-actions .button-danger {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    height: 42px;
    min-height: 42px;
    margin-top: 0 !important;
    padding: 0 14px !important;
    line-height: 1;
    font-size: 13px;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .panel-page .top-bar {
        padding: 0 12px;
        gap: 10px;
    }

    .panel-page .brand {
        font-size: 17px;
        white-space: normal;
    }

    .panel-page .menu-bar {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .panel-page .content {
        padding: 18px;
    }

    .panel-page .form-grid {
        grid-template-columns: 1fr;
    }

    .panel-page .sort-button,
.panel-page .geo-sort-button,
.panel-page .office-sort-button {
        padding: 6px 4px;
        line-height: 1.2;
    }

    .panel-page .pagination-link {
        padding: 9px 12px;
    }
}

.panel-page .menu-item:focus-visible,
.panel-page .pagination-link:focus-visible,
.panel-page .sort-button:focus-visible,
.panel-page .geo-sort-button:focus-visible,
.panel-page .office-sort-button:focus-visible,
.panel-page .button:focus-visible,
.panel-page .button-secondary:focus-visible,
.panel-page .button-danger:focus-visible,
.panel-page .logout:focus-visible {
    outline: 2px solid rgba(23, 105, 170, 0.35);
    outline-offset: 2px;
    border-radius: 6px;
}

.panel-page textarea {
    width: 100%;
    min-height: 86px;
    padding: 11px;
    border: 1px solid #ccd2d8;
    border-radius: 5px;
    background: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 15px;
    resize: vertical;
}

.panel-page textarea:focus {
    border-color: #1769aa;
    outline: 2px solid rgba(23, 105, 170, 0.13);
}

.panel-page .guid-cell {
    max-width: 235px;
    font-family: Consolas, Monaco, monospace;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.panel-page .button:disabled,
.panel-page .button-secondary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.panel-page .geo-object-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    line-height: 1.35;
}

.panel-page .geo-object-form .form-grid label {
    margin-bottom: 0;
}

.panel-page .geo-object-form label > input,
.panel-page .geo-object-form label > select,
.panel-page .geo-object-form label > textarea {
    margin-top: 2px;
}

.panel-page .geo-object-form small {
    display: block;
    margin-top: 8px;
    line-height: 1.45;
    color: #667085;
    font-weight: normal;
}

.panel-page .geo-object-form .form-grid + label {
    margin-top: 18px;
}

.panel-page .geo-object-form textarea[name="description"] {
    min-height: 96px;
}

.panel-page .geo-properties-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.panel-page .geo-properties-box {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
}

.panel-page .geo-property-row {
    margin-top: 10px;
}

.panel-page .geo-properties-geom-table th {
    width: 100px;
    white-space: nowrap;
}

.panel-page .geo-properties-geom-title {
    margin: 12px 0 4px;
    font-size: 13px;
}

.panel-page .geo-properties-geom-title + .table-wrapper {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.panel-page .geo-properties-geom-table {
    border-spacing: 0 3px;
    font-size: 12px;
}

.panel-page .geo-properties-geom-table th,
.panel-page .geo-properties-geom-table td {
    padding: 4px 8px;
}

.panel-page .geo-photo-upload-status {
    display: inline-block;
    margin-left: 8px;
    font-size: 12px;
    color: #6b7280;
}

.panel-page .geo-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.panel-page .geo-photo-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.panel-page .geo-photo-thumb-button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.panel-page .geo-photo-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #f3f4f6;
}

.panel-page .geo-photo-thumb-missing {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    color: #9ca3af;
    font-size: 11px;
    text-align: center;
    padding: 8px;
}

.panel-page .geo-photo-caption {
    padding: 6px 8px;
}

.panel-page .geo-photo-description {
    font-size: 12px;
    word-break: break-word;
}

.geo-photo-viewer-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: rgba(17, 24, 39, 0.94);
    padding: 12px 16px 24px;
}

.geo-photo-viewer-overlay[hidden] {
    display: none;
}

.geo-photo-viewer-image-stage {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.geo-photo-viewer-image {
    display: block;
    object-fit: contain;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: transform 0.15s ease;
}

.geo-photo-viewer-caption {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 0 0 auto;
    gap: 6px;
    width: 100%;
}

.geo-photo-viewer-description-input {
    width: 100%;
    min-height: 44px;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: #f3f4f6;
    color: #111827;
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
}

.geo-photo-viewer-description-input::placeholder {
    color: #6b7280;
}

.geo-photo-viewer-caption-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.geo-photo-viewer-save-status {
    color: rgba(255, 255, 255, 0.75);
    font-size: 12px;
}

.geo-photo-viewer-toolbar {
    flex: 0 0 auto;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.geo-photo-viewer-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.geo-photo-viewer-icon-button svg {
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.geo-photo-viewer-icon-button:hover {
    background: rgba(255, 255, 255, 0.22);
}

.geo-photo-viewer-icon-button:disabled {
    opacity: 0.5;
    cursor: default;
}

.geo-photo-viewer-icon-button-close {
    font-size: 26px;
}

.geo-photo-viewer-icon-button-danger:hover {
    background: rgba(239, 68, 68, 0.55);
}

.geo-photo-viewer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.geo-photo-viewer-nav:hover {
    background: rgba(255, 255, 255, 0.22);
}

.geo-photo-viewer-prev {
    left: 12px;
}

.geo-photo-viewer-next {
    right: 12px;
}

body.geo-photo-viewer-open {
    overflow: hidden;
}

.panel-page .geo-object-filters input,
.panel-page .geo-object-filters select {
    height: 40px;
    box-sizing: border-box;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 40px;
}

.panel-page .geo-object-filters select {
    appearance: auto;
    -webkit-appearance: menulist;
    background-color: #fff;
}

.panel-page .form-split-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 18px;
}

.panel-page .form-split-actions-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.panel-page .form-split-actions-group .inline-form {
    display: inline-flex;
    width: auto;
    margin: 0;
}

.panel-page .map-card {
    padding: 18px;
}

/* Karta "Brak aktywnego projektu" pływająca nad mapą (pod paskiem narzędzi mapy), zamiast
   czerwonego paska błędu, który spychał mapę w dół. z-index nad mapą i paskiem narzędzi,
   ale pod panelami/oknami mapy (10000+ w mapa/embedded.php). */
.panel-page .map-project-notice {
    position: absolute;
    top: 64px;
    left: 50%;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 14px;
    width: max-content;
    max-width: calc(100% - 32px);
    padding: 14px 16px;
    transform: translateX(-50%);
    border: 1px solid #d6e4f0;
    border-left: 4px solid #1769aa;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    color: #202124;
}

.panel-page .map-project-notice-icon {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    fill: none;
    stroke: #1769aa;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.panel-page .map-project-notice-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 14px;
    line-height: 1.4;
}

.panel-page .map-project-notice-text strong {
    font-size: 15px;
}

.panel-page .map-project-notice-text span {
    color: #5f6368;
}

.panel-page .map-project-notice-button {
    flex: 0 0 auto;
    padding: 9px 14px;
    border-radius: 6px;
    background: #1769aa;
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap;
}

.panel-page .map-project-notice-button:hover {
    background: #12578e;
}

@media (max-width: 640px) {
    .panel-page .map-project-notice {
        flex-wrap: wrap;
        width: calc(100% - 32px);
    }

    .panel-page .map-project-notice-button {
        width: 100%;
        text-align: center;
    }
}

.panel-page .map-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.panel-page .panel-map-shell {
    position: relative;
    width: 100%;
    height: min(72vh, 760px);
    min-height: 460px;
    overflow: hidden;
    border: 1px solid #d8dde3;
    border-radius: 12px;
    background: #edf2f7;
}

.panel-page.panel-page-map .content {
    padding: 0;
    overflow: hidden;
}

.panel-page.panel-page-map .content-inner {
    max-width: none;
    height: 100%;
    margin: 0;
}

.panel-page.panel-page-map .map-card {
    position: relative;
    height: 100%;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.panel-page.panel-page-map .panel-map-shell {
    height: 100%;
    min-height: 0;
    border: 0;
    border-radius: 0;
}

.panel-page .panel-map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.panel-page .map-layer-control {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
}

.panel-page .map-control-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 4px;
    background: #ffffff;
    color: #1f2937;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .30);
    cursor: pointer;
    font-size: 19px;
    line-height: 1;
}

.panel-page .map-control-button:hover,
.panel-page .map-layer-option:hover {
    background: #f3f7fb;
}

.panel-page .map-layer-menu {
    width: 174px;
    margin-top: 8px;
    padding: 8px;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .22);
}

.panel-page .map-layer-option {
    display: block;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 6px;
    background: #ffffff;
    color: #1f2937;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.panel-page .map-layer-option.is-active {
    background: #e8f2fb;
    color: #1769aa;
    font-weight: 700;
}

.panel-page .map-numeric-scale {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 5;
    min-width: 72px;
    padding: 6px 10px;
    border: 1px solid rgba(15, 23, 42, .22);
    border-radius: 6px;
    background: rgba(255, 255, 255, .92);
    color: #0f172a;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .22);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    pointer-events: none;
}

.panel-page .map-loading-info {
    position: absolute;
    left: 50%;
    bottom: 18px;
    z-index: 20;
    transform: translateX(-50%);
    display: none;
    align-items: flex-start;
    gap: 10px;
    max-width: min(420px, calc(100% - 32px));
    padding: 12px 12px 12px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .94);
    color: #334155;
    box-shadow: 0 6px 20px rgba(15, 23, 42, .16);
    text-align: left;
}

.panel-page .map-loading-info.is-visible {
    display: flex;
}

.panel-page .map-loading-info[hidden],
.panel-page .map-loading-info:empty {
    display: none !important;
}

.panel-page .map-loading-info-text {
    min-width: 0;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.panel-page .map-loading-info-close {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 6px;
    background: rgba(15, 23, 42, .08);
    color: #334155;
    cursor: pointer;
    font-size: 18px;
    font-weight: 800;
    line-height: 22px;
    text-align: center;
}

.panel-page .map-loading-info-close:hover,
.panel-page .map-loading-info-close:focus-visible {
    background: rgba(15, 23, 42, .16);
    outline: none;
}

.panel-page .map-loading-info.is-error {
    background: #ffe7e7;
    color: #a40000;
}

.panel-page .map-source-note {
    margin: 10px 0 0;
    color: #64748b;
    font-size: 13px;
}

.panel-page .maplibregl-ctrl button {
    width: 34px;
    height: 34px;
}

@media (max-width: 720px) {
    .panel-page .panel-map-shell {
        height: 68vh;
        min-height: 360px;
    }
}

@media (max-width: 720px) {
    .panel-page.panel-page-map .content {
        padding: 0;
    }

    .panel-page.panel-page-map .map-card {
        padding: 0;
    }

    .panel-page.panel-page-map .panel-map-shell {
        height: 100%;
        min-height: 0;
    }
}

.panel-page .map-layer-menu-title {
    padding: 3px 10px 6px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.panel-page .map-layer-menu-title-spaced {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
}

.panel-page .map-point-marker {
    width: 24px;
    height: 24px;
    padding: 0;
    border: 3px solid #ffffff;
    border-radius: 50%;
    background: #1769aa;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .35);
    cursor: pointer;
}

.panel-page .map-point-marker::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
    transform: translate(-50%, -50%);
}

.panel-page .map-point-marker:hover {
    background: #0f4f86;
}

.panel-page .maplibregl-popup-content {
    max-width: 340px;
    overflow: hidden;
}

.panel-page .map-point-popup {
    box-sizing: border-box;
    width: min(300px, calc(100vw - 48px));
    max-width: 100%;
    color: #0f172a;
    overflow: hidden;
}

.panel-page .map-point-popup-title {
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
}

.panel-page .map-point-popup-row {
    display: grid;
    grid-template-columns: minmax(72px, auto) minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    margin-top: 5px;
    font-size: 12px;
    max-width: 100%;
}

.panel-page .map-point-popup-row span {
    min-width: 0;
    color: #64748b;
    overflow-wrap: anywhere;
}

.panel-page .map-point-popup-row strong {
    min-width: 0;
    max-width: 100%;
    color: #0f172a;
    font-weight: 800;
    text-align: right;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}

.panel-page .map-point-popup-properties {
    margin-top: 9px;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
}

.panel-page .map-point-popup-subtitle {
    margin-bottom: 5px;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
}

.panel-page .map-point-popup-property span {
    text-transform: none;
}

.panel-page .map-point-popup-description {
    margin-top: 9px;
    padding-top: 8px;
    max-height: 110px;
    overflow-y: auto;
    overflow-x: hidden;
    border-top: 1px solid #e2e8f0;
    color: #334155;
    font-size: 12px;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.panel-page .map-point-popup-description:empty {
    display: none;
}

.panel-page .map-point-popup-actions {
    display: flex;
    width: 100%;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
    margin-top: 12px;
    text-align: right;
}

.panel-page .map-popup-delete-form {
    display: inline-flex;
    margin: 0;
}

.panel-page .map-popup-icon {
    box-sizing: border-box;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    line-height: 1;
    text-decoration: none;
    font-size: 16px;
}

.panel-page .map-popup-delete-form .map-popup-icon {
    margin: 0;
}

.panel-page .map-point-marker.is-moving {
    cursor: move;
    background: #dc8a00;
    box-shadow: 0 0 0 4px rgba(220, 138, 0, .18), 0 2px 8px rgba(15, 23, 42, .35);
}

.panel-page .map-popup-move {
    border-color: #bfdbfe;
}

.panel-page .map-vertex-marker {
    box-sizing: border-box;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 3px solid #ffffff;
    border-radius: 50%;
    background: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, .22), 0 2px 8px rgba(15, 23, 42, .35);
    cursor: move;
}

.panel-page .map-vertex-marker:hover {
    background: #ea580c;
}

.panel-page .map-vertex-insert-marker {
    width: 16px;
    height: 16px;
    border-width: 2px;
    background: #2563eb;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    line-height: 10px;
    text-align: center;
    cursor: copy;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .18), 0 2px 8px rgba(15, 23, 42, .35);
}

.panel-page .map-vertex-insert-marker:hover {
    background: #1d4ed8;
}

.panel-page .panel-map.is-editing-vertices .maplibregl-canvas {
    cursor: crosshair;
}

.panel-page .map-popup-geometry-move {
    border-color: #fed7aa;
}

.panel-page .top-bar {
    min-height: 44px;
    padding: 4px 18px;
    gap: 12px;
}

.panel-page .brand {
    min-height: 36px;
    gap: 8px;
    font-size: 17px;
    line-height: 1.15;
}

.panel-page .brand-logo {
    width: 30px !important;
    height: 30px !important;
}

.panel-page .top-right {
    gap: 10px;
}

.panel-page .logged-user {
    font-size: 12px;
    line-height: 1.2;
}

.panel-page .logout {
    min-width: 28px;
    height: 32px;
    padding: 0 8px;
    font-size: 11px;
    line-height: 1;
}

@media (max-width: 900px) {
    .panel-page .top-bar {
        min-height: 42px;
        padding: 4px 12px;
    }

    .panel-page .brand {
        min-height: 34px;
        font-size: 16px;
    }

    .panel-page .brand-logo {
        width: 28px !important;
        height: 28px !important;
    }
}

@media (max-width: 700px) {
    .panel-page .top-bar {
        gap: 6px;
        padding: 8px 12px;
    }

    .panel-page .brand {
        min-height: 30px;
        font-size: 15px;
    }

    .panel-page .brand-logo {
        width: 26px !important;
        height: 26px !important;
    }
}

.panel-page .props-table-box {
    height: 150px;
    min-height: 86px;
    overflow-y: auto;
    resize: vertical;
    padding: 0 6px;
    border: 1px solid #ccd2d8;
    border-radius: 5px;
    background: #ffffff;
    box-sizing: border-box;
}

.panel-page .props-kv-table {
    border-spacing: 0 4px;
}

.panel-page .props-kv-table th,
.panel-page .props-kv-table td {
    padding: 4px 6px;
    vertical-align: middle;
}

.panel-page .props-kv-table th {
    width: 38%;
}

.panel-page .props-kv-table input {
    width: 100%;
    box-sizing: border-box;
    padding: 4px 6px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    font: inherit;
    font-size: 14px;
}

.panel-page .props-kv-table th input {
    font-weight: bold;
}

.panel-page .props-kv-table input:focus {
    border-color: #1769aa;
    background: #ffffff;
    outline: none;
}

.panel-page .props-table-empty {
    padding: 12px 4px;
    color: #6b7280;
    font-size: 14px;
}

.panel-page .users-search-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 520px;
}

.panel-page .users-search-box input {
    box-sizing: border-box;
    min-height: 42px;
    padding: 10px 14px;
}

.panel-page .panel-log-toolbar .button {
    margin-top: 0;
}

.panel-page .card h2.panel-log-heading {
    margin: 28px 0 4px;
}

.panel-page .card h2.organization-section-heading {
    margin: 32px 0 4px;
}

.panel-page .organization-table th,
.panel-page .organization-table td {
    vertical-align: middle;
}

/* Ołówek "Edytuj dane organizacji" nad tabelą (wyłącznie Kierownik) i przyciski formularza edycji */
.panel-page .organization-edit-toolbar {
    display: flex;
    justify-content: flex-end;
    margin: 8px 0 -4px;
}

.panel-page .organization-edit-form {
    margin-top: 12px;
}

.panel-page .organization-edit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.panel-page .panel-readonly-fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.panel-page .geo-object-form-readonly #geoAddPhotoButton,
.panel-page .geo-object-form-readonly #geo_add_point_row,
.panel-page .geo-object-form-readonly #geo_add_property_row,
.panel-page .geo-object-form-readonly .geo-remove-point-row,
.panel-page .geo-object-form-readonly .geo-remove-property-row,
.panel-page .geo-object-form-readonly #geoPhotoViewerRotate,
.panel-page .geo-object-form-readonly #geoPhotoViewerDelete,
.panel-page .geo-object-form-readonly #geoPhotoViewerSaveDescription {
    display: none;
}

.panel-page .card h2.organization-delete-heading {
    margin-bottom: 12px;
}

.panel-page .organization-delete-form .button-danger {
    margin-top: 18px;
    padding: 0 16px;
    font-size: 15px;
}

.geo-io-loader {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, 0.48);
}

.geo-io-loader.is-visible {
    display: flex;
}

.geo-io-loader-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.38);
    font: 15px system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    color: #0f172a;
}

.geo-io-loader-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid #d7dde3;
    border-top-color: #1769aa;
    border-radius: 50%;
    animation: geo-io-loader-spin 0.8s linear infinite;
}

@keyframes geo-io-loader-spin {
    to {
        transform: rotate(360deg);
    }
}

.panel-page .geo-object-filters label {
    gap: 6px;
}

.panel-page .geo-object-filters input,
.panel-page .geo-object-filters select {
    height: 42px;
    line-height: 42px;
    padding-left: 12px;
    padding-right: 12px;
    font-size: 14px;
    font-weight: 400;
    color: #1f2937;
}

.panel-page .geo-object-filters .button-small {
    height: 42px;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.legal-checkbox-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    font-weight: normal;
    line-height: 1.45;
}

.auth-page .legal-checkbox-line {
    font-weight: normal;
}

.legal-checkbox-line input[type="checkbox"] {
    flex: 0 0 auto;
    width: auto;
    margin-top: 3px;
}

.login-page .login-box.legal-accept-box {
    max-width: 520px;
}

.legal-accept-logout {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e3e7eb;
}

.auth-page button.button-secondary {
    margin-top: 8px;
    border: 1px solid #1769aa;
    background: #ffffff;
    color: #1769aa;
}

.auth-page button.button-secondary:hover {
    background: #eef4fa;
}

.legal-version-status-current {
    font-weight: bold;
}

.panel-page #newsletter_body {
    min-height: 240px;
}

.panel-page .newsletter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.panel-page .newsletter-actions .button {
    margin-top: 0;
    padding: 0 16px;
    font-size: 15px;
}

.panel-page .newsletter-card .help + form,
.panel-page .newsletter-card h2.section-subtitle + .info-box {
    margin-top: 14px;
}

.panel-page .newsletter-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin: 16px 0 0;
}

.panel-page .newsletter-stat {
    padding: 12px 14px;
    border: 1px solid #e3e8ee;
    border-radius: 5px;
}

.panel-page .newsletter-stat dt {
    font-size: 12px;
    color: #475569;
}

.panel-page .newsletter-stat dd {
    margin: 4px 0 0;
    font-size: 22px;
    font-weight: bold;
}

.panel-page .newsletter-search {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0;
}

.panel-page .newsletter-search input[type="search"] {
    flex: 1 1 240px;
    height: 42px;
    margin: 0;
    box-sizing: border-box;
}

.panel-page .newsletter-search .button {
    margin-top: 0;
    padding: 0 16px;
    font-size: 15px;
}

.newsletter-body-preview {
    margin-top: 8px;
    max-width: 640px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.panel-page .project-transfer {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(128, 128, 128, 0.3);
}

.panel-page .project-transfer h2 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.panel-page .project-transfer .help {
    margin: 14px 0 8px;
}

.panel-page .project-transfer-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.panel-page .projects-list-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-page .help-section-title {
    margin: 28px 0 6px !important;
}

.panel-page .help-manuals-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid #e3e6ea;
}

.panel-page .help-manuals-list li {
    padding: 12px 0;
    border-bottom: 1px solid #e3e6ea;
}

.panel-page .help-manuals-list a {
    display: inline-block;
    font-size: 15px;
    font-weight: 600;
}

.panel-page .help-manuals-list .help {
    display: block;
    margin: 3px 0 0;
}

.panel-page .help-manuals-list a,
.panel-page .help-manuals-list a:visited,
.panel-page .help-manual-back a,
.panel-page .help-manual-back a:visited,
.panel-page .help-manual a,
.panel-page .help-manual a:visited {
    color: #1769aa;
    text-decoration: none;
}

.panel-page .help-manuals-list a:hover,
.panel-page .help-manual-back a:hover,
.panel-page .help-manual a:hover {
    text-decoration: underline;
}

.panel-page .help-manual-back {
    margin: 0 0 16px;
    font-size: 13px;
}

.panel-page .help-manual + .help-manual-back {
    margin: 24px 0 0;
}

.panel-page .help-manual {
    max-width: 920px;
    line-height: 1.6;
}

.panel-page .help-manual h1 {
    margin: 32px 0 12px;
    font-size: 1.5rem;
}

.panel-page .help-manual h1:first-child {
    margin-top: 0;
    font-size: 1.8rem;
}

.panel-page .help-manual h2 {
    margin: 28px 0 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(128, 128, 128, 0.25);
    font-size: 1.25rem;
}

.panel-page .help-manual h3 {
    margin: 20px 0 8px;
    font-size: 1.05rem;
}

.panel-page .help-manual p {
    margin: 0 0 12px;
}

.panel-page .help-manual ul,
.panel-page .help-manual ol {
    margin: 0 0 12px;
    padding-left: 24px;
}

.panel-page .help-manual li {
    margin-bottom: 4px;
}

.panel-page .help-manual li > ul,
.panel-page .help-manual li > ol {
    margin: 4px 0;
}

.panel-page .help-manual code {
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(128, 128, 128, 0.15);
    font-size: 0.92em;
    word-break: break-word;
}

.panel-page .help-manual pre {
    margin: 0 0 12px;
    padding: 12px;
    border-radius: 6px;
    background: rgba(128, 128, 128, 0.15);
    overflow-x: auto;
}

.panel-page .help-manual pre code {
    padding: 0;
    background: none;
}

.panel-page .help-manual hr {
    margin: 24px 0;
    border: 0;
    border-top: 1px solid rgba(128, 128, 128, 0.3);
}

.panel-page .help-manual .table-wrapper {
    margin: 0 0 16px;
    overflow-x: auto;
}

.panel-page .help-manual-table {
    width: 100%;
    border-collapse: collapse;
}

.panel-page .help-manual-table th,
.panel-page .help-manual-table td {
    padding: 8px 10px;
    border: 1px solid rgba(128, 128, 128, 0.3);
    text-align: left;
    vertical-align: top;
}

.panel-page .help-manual-table th {
    background: rgba(128, 128, 128, 0.12);
}

/* Przełącznik języka w górnym pasku panelu - patrz panel/i18n.php::panel_lang_switch_html(). */
.panel-page .top-right .lang-switch {
    display: flex;
    gap: 2px;
    font-size: 12px;
}

.panel-page .top-right .lang-switch a,
.panel-page .top-right .lang-switch span {
    padding: 3px 6px;
    border-radius: 4px;
    color: inherit;
    opacity: 0.75;
    text-decoration: none;
}

.panel-page .top-right .lang-switch a:hover {
    opacity: 1;
    text-decoration: underline;
}

.panel-page .top-right .lang-switch span[aria-current] {
    font-weight: bold;
    opacity: 1;
    background: rgba(127, 127, 127, 0.18);
}

@media (max-width: 640px) {
    .panel-page .top-right .lang-switch {
        font-size: 11px;
    }

    .panel-page .top-right .lang-switch a,
    .panel-page .top-right .lang-switch span {
        padding: 2px 4px;
    }
}

/* Przełącznik zakresu listy Projektów (grupa / ludzik) z czerwonym licznikiem w prawym górnym
   rogu - patrz .projects-scope-button w panel.php. */
.panel-page .projects-scope-button {
    position: relative;
}

.panel-page .projects-scope-count {
    position: absolute;
    top: -7px;
    right: -6px;
    min-width: 16px;
    padding: 0 3px;
    box-sizing: border-box;
    border-radius: 8px;
    background: #fff;
    color: #d32f2f;
    font-size: 11px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    pointer-events: none;
}

/* Zakładka "Blokady IP" (superadmin): szybka blokada w wierszu tabeli - lista czasu + przycisk w jednej linii. */
.panel-page .ip-ban-quick-form {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.panel-page .ip-ban-quick-form select {
    width: auto;
    min-width: 110px;
    margin: 0;
}

.panel-page .ip-ban-quick-form .button-small {
    margin: 0;
    white-space: nowrap;
}

/* ------------------------------------------------------------------
   Zamówienia pakietów na proformę: zakładka Organizacja (Kierownik)
   i sekcja superadmina "Zamówienia" - patrz panel.php, subscription_order_*
   ------------------------------------------------------------------ */
.panel-page .order-step-label {
    margin: 18px 0 8px;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.02em;
    color: #5f6368;
    text-transform: uppercase;
}

.panel-page .order-packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
}

.panel-page .order-package {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
}

.panel-page .order-package input[type="radio"],
.panel-page .order-month input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.panel-page .order-package-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    padding: 16px;
    border: 2px solid #dde3e9;
    border-radius: 10px;
    background: #ffffff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.panel-page .order-package:hover .order-package-body {
    border-color: #9fc3e3;
}

.panel-page .order-package input:checked + .order-package-body {
    border-color: #1769aa;
    background: #f4f8fc;
    box-shadow: 0 0 0 3px rgba(23, 105, 170, 0.15);
}

.panel-page .order-package input:focus-visible + .order-package-body,
.panel-page .order-month input:focus-visible + span {
    outline: 2px solid #1769aa;
    outline-offset: 2px;
}

.panel-page .order-package-name {
    font-size: 17px;
    font-weight: bold;
    color: #202124;
}

.panel-page .order-package-price {
    color: #3c4043;
    font-size: 14px;
}

.panel-page .order-package-price strong {
    font-size: 22px;
    color: #1769aa;
}

.panel-page .order-package-meta {
    color: #5f6368;
    font-size: 13px;
}

.panel-page .order-package-current {
    align-self: flex-start;
    margin-top: 4px;
    padding: 2px 8px;
    border-radius: 10px;
    background: #e7f6eb;
    color: #176b2c;
    font-size: 12px;
}

.panel-page .order-months {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.panel-page .order-month {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.panel-page .order-month span {
    display: inline-block;
    padding: 9px 18px;
    border: 2px solid #dde3e9;
    border-radius: 20px;
    background: #ffffff;
    font-size: 14px;
}

.panel-page .order-month input:checked + span {
    border-color: #1769aa;
    background: #1769aa;
    color: #ffffff;
}

.panel-page .order-fields {
    margin-top: 18px;
}

.panel-page .order-seats-group[hidden] {
    display: none;
}

.panel-page .order-summary {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 8px;
    background: #f4f8fc;
    border: 1px solid #d6e4f0;
}

.panel-page .order-summary span {
    color: #5f6368;
}

.panel-page .order-summary strong {
    font-size: 20px;
    color: #202124;
}

.panel-page .order-summary-amount {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-end;
    gap: 4px 10px;
    text-align: right;
}

.panel-page .order-summary-amount s {
    color: #80868b;
    font-size: 14px;
}

.panel-page .order-summary-amount small {
    flex-basis: 100%;
    color: #176b2c;
    font-size: 13px;
}

.panel-page .order-summary-amount [hidden] {
    display: none;
}

.panel-page .order-month-discount {
    margin-left: 4px;
    padding: 1px 6px;
    border-radius: 8px;
    background: #e7f6eb;
    color: #176b2c;
    font-size: 12px;
    font-style: normal;
    font-weight: bold;
}

.panel-page .order-month input:checked + span .order-month-discount {
    background: #ffffff;
}

.panel-page .order-billing-note {
    margin-top: 8px;
}

.panel-page .order-confirm {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 14px;
    font-weight: normal;
    line-height: 1.45;
}

.panel-page .order-confirm input {
    margin-top: 3px;
    flex: 0 0 auto;
}

.panel-page .order-submit {
    margin-top: 16px;
    padding: 0 24px;
    font-size: 15px;
}

.panel-page .order-pending {
    margin-top: 12px;
    padding: 16px 18px;
    border: 1px solid #f0d58a;
    border-left: 4px solid #e0a800;
    border-radius: 8px;
    background: #fffaf0;
}

.panel-page .order-pending-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 16px;
}

.panel-page .order-pending-details,
.panel-page .order-admin-details {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 6px 16px;
    margin: 0;
    font-size: 14px;
}

.panel-page .order-pending-details dt,
.panel-page .order-admin-details dt {
    color: #5f6368;
}

.panel-page .order-pending-details dd,
.panel-page .order-admin-details dd {
    margin: 0;
    color: #202124;
    overflow-wrap: anywhere;
}

.panel-page .order-pending-note {
    margin: 12px 0;
    color: #795600;
    font-size: 14px;
}

.panel-page .order-cancel-form {
    margin: 0;
}

.panel-page .order-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    white-space: nowrap;
}

.panel-page .order-status-new {
    background: #fff4d6;
    color: #795600;
}

.panel-page .order-status-proforma_sent {
    background: #edf4fb;
    color: #1769aa;
}

.panel-page .order-status-activated {
    background: #e7f6eb;
    color: #176b2c;
}

.panel-page .order-status-cancelled {
    background: #f1f3f4;
    color: #5f6368;
}

.panel-page .order-history-title {
    margin: 26px 0 10px;
    font-size: 16px;
}

.panel-page table.order-history {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #dde3e9;
    border-radius: 8px;
    overflow: hidden;
    font-size: 14px;
}

.panel-page table.order-history th,
.panel-page table.order-history td {
    padding: 11px 14px;
    border: 0;
    border-bottom: 1px solid #eceff1;
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

.panel-page table.order-history th {
    background: #f4f6f8;
    color: #5f6368;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.panel-page table.order-history tbody tr:last-child td {
    border-bottom: 0;
}

.panel-page table.order-history tbody tr:hover td {
    background: #f9fbfd;
}

.panel-page table.order-history td:first-child {
    color: #5f6368;
}

.panel-page table.order-history .order-history-amount {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.panel-page table.order-history td.order-history-amount {
    font-weight: bold;
    color: #202124;
}

/* Superadmin - lista zamówień */
.panel-page .order-admin-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 14px 0 16px;
}

.panel-page .order-admin-filter {
    padding: 6px 14px;
    border: 1px solid #ccd2d8;
    border-radius: 16px;
    color: #3c4043;
    font-size: 13px;
    text-decoration: none;
}

.panel-page .order-admin-filter.is-active {
    border-color: #1769aa;
    background: #1769aa;
    color: #ffffff;
}

.panel-page .order-admin-count {
    margin-left: auto;
    color: #5f6368;
    font-size: 13px;
}

.panel-page .order-admin-card {
    margin-bottom: 14px;
    padding: 16px 18px;
    border: 1px solid #dde3e9;
    border-radius: 10px;
    background: #ffffff;
}

.panel-page .order-admin-card.is-open {
    border-left: 4px solid #e0a800;
}

.panel-page .order-admin-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.panel-page .order-admin-head strong {
    display: block;
    font-size: 16px;
}

.panel-page .order-admin-sub {
    color: #5f6368;
    font-size: 13px;
}

.panel-page .order-admin-warning {
    display: block;
    margin-top: 4px;
    color: #a40000;
    font-size: 13px;
}

.panel-page .order-admin-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #eceff1;
}

.panel-page .order-admin-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
}

.panel-page .order-admin-form h3 {
    margin: 0 0 4px;
    font-size: 14px;
}

.panel-page .order-admin-form label {
    margin: 0;
    font-size: 13px;
}

.panel-page .order-admin-form .button-small {
    align-self: flex-start;
    margin-top: 6px;
}

.panel-page .order-admin-row {
    display: grid;
    grid-template-columns: 1fr 100px;
    gap: 8px;
}

.panel-page .order-admin-form-cancel {
    justify-content: flex-end;
}

.panel-page .button-danger-outline {
    border: 1px solid #c62828;
    background: #ffffff;
    color: #c62828;
}

.panel-page .button-danger-outline:hover {
    background: #fdecea;
}

@media (max-width: 640px) {
    .panel-page .order-pending-details,
    .panel-page .order-admin-details {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .panel-page .order-pending-details dd,
    .panel-page .order-admin-details dd {
        margin-bottom: 6px;
    }
}

/* Podzakładki sekcji "Organizacja": Dane organizacji / Subskrypcja / Usuń organizację */
.panel-page .organization-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 18px 0 20px;
    border-bottom: 1px solid #dde3e9;
}

.panel-page .organization-tab {
    margin-bottom: -1px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-bottom: 3px solid transparent;
    border-radius: 6px 6px 0 0;
    color: #5f6368;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
}

.panel-page .organization-tab:hover {
    color: #1769aa;
    background: #f4f8fc;
}

.panel-page .organization-tab.is-active {
    color: #1769aa;
    border-bottom-color: #1769aa;
    background: #ffffff;
}

.panel-page .organization-tab-danger {
    margin-left: auto;
}

.panel-page .organization-tab-danger:hover,
.panel-page .organization-tab-danger.is-active {
    color: #c62828;
    border-bottom-color: #c62828;
    background: #fff5f5;
}

.panel-page .organization-tab-danger:not(.is-active):hover {
    border-bottom-color: transparent;
}

@media (max-width: 640px) {
    .panel-page .organization-tab {
        padding: 8px 10px;
        font-size: 13px;
    }

    .panel-page .organization-tab-danger {
        margin-left: 0;
    }
}
