body {
    /*font-family: 'Montserrat', sans-serif;*/
    background-color: #f0f2f5;
}

.floating-user {
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 1050;
}

.floating-user-trigger {
    background: rgba(255, 255, 255, 0.92);
    color: #6b7280;
    border: 1px solid #e9eaec;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    font-size: 1rem;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.07);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.floating-user-trigger:hover {
    background: #f3f4f6;
    color: #374151;
}

.floating-user-menu {
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
    padding: 0.35rem;
    margin-bottom: 0.3rem;
}

.floating-user-menu .dropdown-item {
    border-radius: 6px;
    font-size: 0.855rem;
    color: #374151;
    padding: 0.45rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    transition: background 0.12s ease;
}

.floating-user-menu .dropdown-item:hover {
    background: #f3f4f6;
    color: #111827;
}


/* ─── Navbar ─── */
.navbar-geraton {
    background: #ffffff;
    margin: 10px 16px 0;
    border-radius: 12px;
    border: 1px solid #e9eaec;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.06);
    padding: 0.35rem 0.75rem;
}

.navbar-geraton .nav-link {
    color: #6b7280;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 0.32rem 0.85rem;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.navbar-geraton .nav-link:hover,
.navbar-geraton .nav-link:focus {
    color: #374151;
    background: #f3f4f6;
    border-color: #e9eaec;
}

.navbar-geraton .nav-link.show {
    color: #374151;
    background: #f3f4f6;
    border-color: #e9eaec;
}

.navbar-geraton .dropdown-menu {
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
    padding: 0.35rem;
    margin-top: 0.3rem;
    min-width: 170px;
}

.navbar-geraton .dropdown-item {
    border-radius: 6px;
    font-size: 0.855rem;
    color: #374151;
    padding: 0.45rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    transition: background 0.12s ease;
}

.navbar-geraton .dropdown-item:hover,
.navbar-geraton .dropdown-item:focus {
    background: #f3f4f6;
    color: #111827;
}

.nav-logo {
    margin-right: 2rem;
    margin-left: 0.75rem;
}

.navbar-geraton .nav-action {
    background: transparent;
    border: 1px solid #e9eaec;
    border-radius: 999px;
    color: #6b7280;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.32rem 0.85rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
    line-height: 1.4;
}

.navbar-geraton .nav-action:hover {
    background: #f3f4f6;
    color: #374151;
    border-color: #d1d5db;
}


.card-metric {
    border-radius: 12px;
    background-color: #ffffff;
    border: 1px solid #e9eaec;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
}

.metric-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #6b7280;
}

.metric-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f3f4f6;
    border: 1px solid #e9eaec;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.metric-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.metric-change {
    display: inline-flex;
    align-items: center;
    font-size: 0.76rem;
    font-weight: 500;
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
}

.positive {
    color: #157347;
    background: rgba(25, 135, 84, 0.08);
    border: 1px solid rgba(25, 135, 84, 0.2);
}

.negative {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.07);
    border: 1px solid rgba(220, 53, 69, 0.2);
}

/* ─── Buttons ─── */
.btn {
    --bs-btn-border-radius: 999px;
    font-weight: 500;
    font-size: 0.855rem;
    letter-spacing: 0.01em;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

/* Primary → soft blue tint */
.btn-outline-primary {
    background: rgba(13, 110, 253, 0.08);
    color: #0d6efd;
    border-color: rgba(13, 110, 253, 0.25);
}
.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: rgba(13, 110, 253, 0.15);
    border-color: rgba(13, 110, 253, 0.45);
    color: #0b5ed7;
}
.btn-outline-primary:active,
.btn-outline-primary.active {
    background: rgba(13, 110, 253, 0.22) !important;
    border-color: #0d6efd !important;
    color: #0a58ca !important;
}

/* Success → soft green tint */
.btn-outline-success {
    background: rgba(25, 135, 84, 0.08);
    color: #198754;
    border-color: rgba(25, 135, 84, 0.25);
}
.btn-outline-success:hover,
.btn-outline-success:focus {
    background: rgba(25, 135, 84, 0.15);
    border-color: rgba(25, 135, 84, 0.45);
    color: #157347;
}
.btn-outline-success:active,
.btn-outline-success.active {
    background: rgba(25, 135, 84, 0.22) !important;
    border-color: #198754 !important;
    color: #146c43 !important;
}

/* Secondary → outline pill */
.btn-outline-secondary {
    --bs-btn-color: #6c757d;
    --bs-btn-border-color: rgba(108, 117, 125, 0.35);
}
.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    background-color: rgba(108, 117, 125, 0.08);
    border-color: rgba(108, 117, 125, 0.6);
    color: #495057;
}
.btn-outline-secondary:active,
.btn-outline-secondary.active {
    background-color: rgba(108, 117, 125, 0.18) !important;
    border-color: #6c757d !important;
    color: #343a40 !important;
}

/* Warning → outline pill (Edytuj) */
.btn-outline-warning {
    --bs-btn-color: #92400e;
    --bs-btn-border-color: rgba(146, 64, 14, 0.3);
}
.btn-outline-warning:hover,
.btn-outline-warning:focus {
    background-color: rgba(251, 191, 36, 0.1);
    border-color: rgba(146, 64, 14, 0.5);
    color: #92400e;
}
.btn-outline-warning:active,
.btn-outline-warning.active {
    background-color: rgba(251, 191, 36, 0.2) !important;
    border-color: #92400e !important;
    color: #92400e !important;
}

/* Danger → outline pill (Usuń) */
.btn-outline-danger {
    --bs-btn-color: #dc3545;
    --bs-btn-border-color: rgba(220, 53, 69, 0.3);
}
.btn-outline-danger:hover,
.btn-outline-danger:focus {
    background-color: rgba(220, 53, 69, 0.08);
    border-color: rgba(220, 53, 69, 0.55);
    color: #dc3545;
}
.btn-outline-danger:active,
.btn-outline-danger.active {
    background-color: rgba(220, 53, 69, 0.15) !important;
    border-color: #dc3545 !important;
    color: #dc3545 !important;
}

.btn-row {
    width: 30px;
    height: 30px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bottom-tab {
    position: fixed;
    bottom: 16px;
    left: 16px;

    background: rgba(255, 255, 255, 0.92);
    color: #6b7280;
    border: 1px solid #e9eaec;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: nowrap;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.07);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    user-select: none;
}

/* ─── Modals ─── */
.modal-content {
    border-radius: 14px;
    border: 1px solid #e9eaec;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.modal-header {
    border-bottom: 1px solid #f0f1f3;
    padding: 1.1rem 1.5rem 0.9rem;
}

.modal-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
}

.modal-body {
    padding: 1.1rem 1.5rem;
    font-size: 0.855rem;
    color: #374151;
}

.modal-footer {
    border-top: 1px solid #f0f1f3;
    padding: 0.75rem 1.5rem;
    gap: 0.5rem;
}

/* ─── Alerts ─── */
.alert {
    border-radius: 8px;
    font-size: 0.835rem;
}

.alert-warning {
    background: rgba(251, 191, 36, 0.08);
    border-color: rgba(251, 191, 36, 0.35);
    color: #92400e;
}

/* ─── Counter badge on table buttons ─── */
.table-counter-badge {
    background-color: #fff;
    border: 1px solid #e9eaec !important;
    color: #6b7280 !important;
}

/* ─── Updates page ─── */
.version-badge {
    display: inline-block;
    background: #f3f4f6;
    border: 1px solid #e9eaec;
    border-radius: 6px;
    padding: 0.15rem 0.55rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #374151;
    font-family: ui-monospace, monospace;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border-radius: 999px;
    padding: 0.2rem 0.7rem;
    font-size: 0.76rem;
    font-weight: 500;
}

.status-badge-done {
    background: rgba(25, 135, 84, 0.08);
    color: #157347;
    border: 1px solid rgba(25, 135, 84, 0.25);
}

.status-badge-pending {
    background: rgba(108, 117, 125, 0.08);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.25);
}

.change-row td {
    background: #fafafa !important;
    border-top: none !important;
    padding-top: 0.4rem !important;
    padding-bottom: 0.4rem !important;
}

.change-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border-radius: 5px;
    padding: 0.1rem 0.5rem;
    font-size: 0.72rem;
    font-weight: 500;
}

.change-type-feature {
    background: rgba(25, 135, 84, 0.08);
    color: #157347;
    border: 1px solid rgba(25, 135, 84, 0.2);
}

.change-type-bug {
    background: rgba(220, 53, 69, 0.07);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.change-type-tech {
    background: rgba(251, 191, 36, 0.1);
    color: #92400e;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

/* ─── Login tag ─── */
.login-tag {
    display: inline-block;
    font-size: 0.63rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #b0b7c3;
    background: #f7f8fa;
    border: 1px solid #e9eaec;
    border-radius: 999px;
    padding: 0.2rem 0.8rem;
}

/* ─── Form card ─── */
.form-card {
    border-radius: 12px;
    background-color: #ffffff;
    border: 1px solid #e9eaec;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.06);
    padding: 1.5rem 2rem;
    margin-bottom: 1.25rem;
}

.form-card fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.form-card legend {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #6b7280;
    margin-bottom: 1.25rem;
    padding: 0;
    float: none;
    width: auto;
}

/* ─── Table ─── */
.table-wrap {
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid #e9eaec;
}

.table-wrap .table {
    margin-bottom: 0;
}

.table {
    font-size: 0.855rem;
    --bs-table-hover-bg: #f9fafb;
    --bs-table-border-color: #f0f1f3;
}

.table thead tr {
    border-bottom: 2px solid #e5e7eb;
}

.table thead th {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #6b7280;
    padding: 0.6rem 0.75rem;
    border-top: none;
    white-space: nowrap;
}

.table tbody tr {
    transition: background 0.1s ease;
}

.table tbody tr:hover {
    background: #f9fafb;
}

.table td,
.table tbody th {
    padding: 0.7rem 0.75rem;
    vertical-align: middle;
    color: #374151;
}

.table tbody tr:last-child td,
.table tbody tr:last-child th {
    border-bottom: none;
}

/* ─── Form elements ─── */
.form-control,
.form-select {
    border-color: #e9eaec;
    border-radius: 8px;
    font-size: 0.855rem;
    color: #374151;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #d1d5db;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
    color: #111827;
}

.form-control::placeholder {
    color: #b0b7c3;
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: rgba(220, 53, 69, 0.5);
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.07);
}

.form-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #6b7280;
    letter-spacing: 0.02em;
    margin-bottom: 0.3rem;
}

.form-text {
    font-size: 0.76rem;
    color: #9ca3af;
}

.form-switch .form-check-input:checked {
    background-color: #374151;
    border-color: #374151;
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
    border-color: #d1d5db;
}

.form-check-label {
    font-size: 0.855rem;
    color: #374151;
}

.input-group .btn {
    --bs-btn-border-radius: 8px;
}

/* tom select */
.ts-wrapper .clear-button {
    font-size: 20px;
    cursor: pointer;
    margin-right: -20px !important;
    margin-top: -1px;
}

.ts-wrapper .clear-button:hover {

}

/* Bez tego długi tekst opcji przeskakuje do drugiej linii (domyślny flex-wrap: wrap) */
.ts-wrapper.single .ts-control {
    flex-wrap: nowrap;
    overflow: hidden;
}

.ts-wrapper.single .ts-control .item {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}