@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    overflow-x: hidden;
    overflow-y: auto;
    background: #f4f7fb;
}

a {
    cursor: pointer;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}

ul,
li {
    margin: 0;
    padding: 0;
    list-style: none;
}

h4 {
    font-size: 1.275rem;
    color: var(--bs-emphasis-color);
}

/* =========================
   LAYOUT
========================= */

.wrapper {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 100vh;
}

.main {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    min-height: 100vh;
    overflow: hidden;
    background: #f4f7fb;
    transition: all 0.35s ease-in-out;
}

.content {
    flex: 1;
    width: 100%;
    max-width: 100%;
}


/* =========================
   SIDEBAR
========================= */

#sidebar,
.js-sidebar {
    background: #0f2745;
    border-right: 1px solid rgba(255, 255, 255, .06);
    z-index: 1050;
    transition: all 0.35s ease-in-out;
}

#sidebar,
#sidebar .sidebar-inner,
#sidebar .h-100 {
    min-height: 100vh;
    height: auto !important;
}


.sidebar-inner {
    width: 100%;
    height: 100%;
    background: #0f2745;
}

.sidebar-header {
    position: relative;
    width: 100%;
    height: 95px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-logo img {
    width: auto;
    height: 64px;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.sidebar-close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    color: #ffffff;
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: 0.25s ease;
    z-index: 2;
}

.sidebar-close:hover {
    color: #3473BA;
    transform: scale(1.06);
}

.sidebar-nav {
    width: 100%;
    padding: 12px;
}

.sidebar-item {
    width: 100%;
}

.sidebar-nav > .sidebar-item + .sidebar-item {
    margin-top: 2px;
}

a.sidebar-link {
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    color: #a9b8cd;
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color .2s ease, color .2s ease;
}

a.sidebar-link i {
    width: 20px;
    min-width: 20px;
    font-size: 1rem;
    text-align: center;
    margin-right: 0.65rem;
    opacity: .85;
}

a.sidebar-link:hover {
    background-color: rgba(255, 255, 255, .06);
    color: #ffffff;
}

a.sidebar-link:focus-visible {
    outline: 2px solid #4b8ed4;
    outline-offset: 2px;
}

a.sidebar-link.active {
    background-color: #3473BA;
    color: #ffffff;
}

a.sidebar-link.active i {
    opacity: 1;
}

/* "Wyloguj" odciete linia od reszty pozycji */
.sidebar-nav > .sidebar-item:last-child {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

/* =========================
   DESKTOP SIDEBAR
========================= */

@media (min-width: 768px) {
    #sidebar,
    .js-sidebar {
        position: relative !important;
        width: 290px !important;
        min-width: 290px !important;
        max-width: 290px !important;
        height: 100vh;
        min-height: 100vh;
        transform: none !important;
        margin-left: 0 !important;
        overflow-y: auto;
    }

    #sidebar.show,
    .js-sidebar.show {
        margin-left: -290px !important;
    }

    .sidebar-close {
        display: none !important;
    }

    .sidebar-header {
        height: 95px;
        padding: 12px 20px;
        justify-content: center;
    }

    .sidebar-logo img {
        height: 64px;
    }

    .main {
        margin-left: 0 !important;
    }

    .sidebar-overlay {
        display: none !important;
    }
}

/* =========================
   MOBILE SIDEBAR
========================= */

@media (max-width: 767.98px) {
    #sidebar,
    .js-sidebar {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100vw !important;
        min-width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh;
        background: #0f2745;
        overflow-y: auto;
        transform: translateX(-100%) !important;
        transition: transform 0.35s ease-in-out !important;
        z-index: 1050;
    }

    #sidebar.show,
    .js-sidebar.show {
        transform: translateX(0) !important;
    }

    .sidebar-header {
        position: relative;
        width: 100%;
        height: 110px;
        padding: 20px 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .sidebar-logo {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar-logo img {
        width: auto;
        height: 60px;
        max-width: 80%;
        object-fit: contain;
        display: block;
    }

    .sidebar-close {
        position: absolute;
        top: 18px;
        right: 18px;
        width: 40px;
        height: 40px;
        font-size: 1.8rem;
    }

    .sidebar-nav {
        padding: 12px 16px;
    }

    a.sidebar-link {
        padding: 13px 16px;
        font-size: .95rem;
    }

    a.sidebar-link i {
        width: 22px;
        min-width: 22px;
        font-size: 1.05rem;
        margin-right: 12px;
    }

    .navbar,
    footer {
        width: 100vw;
    }
}

@media (max-width: 420px) {
    .sidebar-header {
        height: 100px;
        padding: 18px 56px;
    }

    .sidebar-logo img {
        width: auto;
        height: 56px;
        max-width: 78%;
    }

    .sidebar-close {
        top: 14px;
        right: 14px;
        width: 36px;
        height: 36px;
        font-size: 1.5rem;
    }

    a.sidebar-link {
        padding: 12px 14px;
    }
}

/* =========================
   MOBILE OVERLAY
========================= */

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1040;
    display: none;
}

.sidebar-overlay.show {
    display: block;
}

body.sidebar-open {
    overflow: hidden;
}

/* =========================
   NAVBAR
========================= */

.avatar {
    height: 40px;
    width: 40px;
    object-fit: cover;
}

.navbar-expand .navbar-nav {
    margin-left: auto;
}

nav.navbar {
    background: #fff;
}

/* =========================
   CARDS
========================= */

.card {
    box-shadow: 0 0 .875rem 0 rgba(34, 46, 60, .05);
    margin-bottom: 24px;
    border: 0;
}

/* =========================
   BUTTONS
========================= */

.btn-primary,
.btn-primary:hover,
.btn-primary:active,
.btn-primary:visited {
    color: #ffffff;
    background-color: #053D6A !important;
    border-color: #053D6A !important;
    font-family: "Poppins", sans-serif;
    width: 100%;
}

.my-custom-btn,
.custom-btn {
    background-color: #053D6A !important;
    border-color: #053D6A !important;
    color: #ffffff;
}

.my-custom-btn:hover,
.custom-btn:hover {
    background-color: #e65c00 !important;
    border-color: #e65c00 !important;
    color: #ffffff;
}

.btn-custom-width,
.btn-responsive {
    width: 100%;
}

@media (min-width: 768px) {
    .btn-custom-width,
    .btn-responsive {
        width: 200px;
    }
}

.button-spacing {
    margin-right: 10px;
}

/* =========================
   PAGINATION
========================= */

.page-link {
    color: #053D6A;
}

.page-link:hover {
    color: #031f34;
}

.page-item.active > .page-link,
.active > .page-link,
.page-link.active,
.page-item.active .page-link {
    z-index: 3;
    color: #ffffff !important;
    background-color: #053D6A !important;
    border-color: #053D6A !important;
}

.custom-link {
    color: #053D6A;
}

/* =========================
   THEME TOGGLE
========================= */

.theme-toggle {
    position: fixed;
    top: 50%;
    right: 0;
    left: auto;
    transform: translateY(-65%);
    text-align: center;
    z-index: 10;
    border: none;
    background-color: var(--bs-body-color);
}

html[data-bs-theme="dark"] .theme-toggle .fa-sun,
html[data-bs-theme="light"] .theme-toggle .fa-moon {
    cursor: pointer;
    padding: 10px;
    display: block;
    font-size: 1.25rem;
    color: #ffffff;
}

html[data-bs-theme="dark"] .theme-toggle .fa-moon,
html[data-bs-theme="light"] .theme-toggle .fa-sun {
    display: none;
}

/* =========================
   ILLUSTRATION
========================= */

.illustration {
    background-color: var(--bs-primary-bg-subtle);
    color: var(--bs-emphasis-color);
}

.illustration-img {
    max-width: 150px;
    width: 100%;
}

/* =========================
   ALERTS
========================= */

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert {
    animation: slideIn 0.4s ease-in-out;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

/* =========================
   FORMS
========================= */

.form-error {
    color: red;
    font-size: 0.875em;
}

.customer-tab-active {
    background-color: #053D6A;
    border-color: #053D6A;
    color: #ffffff;
}

/* =========================
   CUSTOM CHECKBOX
========================= */

.custom-checkbox-wrapper {
    display: inline-block;
    text-align: center;
    margin: 10px;
}

.custom-checkbox {
    width: 80px;
    height: 80px;
    border: 2px solid #cccccc;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-check:checked + .btn {
    background-color: #3473BA;
    border: 2px solid #2A3A57;
    color: #ffffff;
}

.btn-check:checked + .btn:disabled,
.btn-check:checked + .btn.disabled {
    background-color: #3473BA;
    border: 2px solid #2A3A57;
    color: #ffffff;
    opacity: 1;
}

.btn-check:not(:checked) + .btn {
    border: 2px solid #C4C8CF;
    color: #2A3A57;
    background-color: transparent;
}

.btn-check:not(:checked) + .btn:hover {
    border-color: #2A3A57;
    color: #2A3A57;
    background-color: rgba(42, 58, 87, 0.05);
}

/* =========================
   CHECKMARK
========================= */

.checkmark {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #ffffff;
    stroke-miterlimit: 10;
    margin: 10% auto;
    box-shadow: inset 0 0 0 #7ac142;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {
    0%,
    100% {
        transform: none;
    }

    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0 0 0 30px #7ac142;
    }
}

/* =========================
   ORDERS
========================= */

.order-number-link {
    color: #D8343A;
    font-weight: 700;
    text-decoration: none;
}

.order-number-link:hover {
    color: #b62c32;
}

/* =========================
   BOOTSTRAP HELPERS
========================= */

.bg-primary {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-primary-rgb), var(--bs-bg-opacity)) !important;
}

/* ==== zakladki w pasku gornym ==== */

.nav-pill {
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    margin-right: 10px;
    border-radius: 7px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .18s ease;
}

.nav-pill:hover,
.nav-pill:focus {
    color: #fff;
    text-decoration: none;
}

.nav-pill-help {
    background: #E0912F;
}

.nav-pill-help:hover {
    background: #BE7B28;
}

.nav-pill-terminal {
    background: #3EAE4B;
}

.nav-pill-terminal:hover {
    background: #359440;
}

.nav-pill-service {
    background: #4EAEDD;
}

.nav-pill-service:hover {
    background: #4294BC;
}

.nav-pill-analyzer {
    background: #2563EB;
}

.nav-pill-analyzer:hover {
    background: #1F54C8;
}

/* pigulka profilu - ostatnia w pasku, wiec bez prawego marginesu */
.nav-pill-profile {
    gap: 8px;
    margin-right: 0;
    background: #DC3F4A;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.nav-pill-profile:hover {
    background: #C2333D;
}

.nav-pill-profile .bi-person {
    font-size: 1rem;
}

.nav-pill-profile .bi-chevron-down {
    font-size: .7rem;
    opacity: .85;
}

.nav-pill-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1199.98px) {
    .nav-pill {
        padding: 8px 12px;
        margin-right: 6px;
        font-size: 13px;
    }
}

/* ==== pasek gorny na mobile i tablecie ====
   hamburger + profil w pierwszym rzedzie,
   zakladki ponizej w siatce 2 kolumny (bez poziomego scrolla).
   Do 1100px, bo od 768px dochodzi menu boczne (290px), a pigulka profilu
   jest szersza niz dawne powitanie - w jednym rzedzie przestaje sie miescic. */

@media (max-width: 1099.98px) {

    .navbar.navbar-expand {
        position: relative;
        flex-wrap: wrap;
        align-items: center;
        row-gap: 10px;
        padding: 10px 12px 12px !important;
    }

    .navbar.navbar-expand > #sidebar-toggle {
        padding: 2px 6px;
        font-size: 1.25rem;
        line-height: 1;
    }

    /* wewnetrzny div ma tez klase .navbar (Bootstrap: position:relative),
       zerujemy to, zeby powitanie pozycjonowalo sie wzgledem calego paska */
    .navbar .navbar-collapse {
        position: static;
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
    }

    .navbar .navbar-nav {
        width: 100%;
        margin: 0 !important;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .navbar .navbar-nav > .nav-item {
        min-width: 0;
    }

    /* profil wyjety z siatki - wypelnia pierwszy rzad obok hamburgera */
    .navbar .navbar-nav > .nav-item:last-child {
        position: absolute;
        top: 10px;
        left: 50px;
        right: 12px;
    }

    .navbar .navbar-nav > .nav-item:last-child .nav-pill {
        width: 100%;
        min-height: 34px;
        gap: 8px;
        padding: 6px 12px;
        font-size: 12px;
    }

    /* strzalka dosunieta do prawej krawedzi pigulki */
    .navbar .navbar-nav > .nav-item:last-child .nav-pill .bi-chevron-down {
        margin-left: auto;
    }

    .nav-pill {
        display: flex;
        width: 100%;
        min-height: 42px;
        margin-right: 0;
        padding: 8px 6px;
        justify-content: center;
        align-items: center;
        text-align: center;
        font-size: 13px;
    }
}

@media (max-width: 380px) {
    .navbar .navbar-nav > .nav-item:last-child .nav-pill {
        padding: 6px 10px;
        font-size: 11px;
    }

    .nav-pill {
        min-height: 40px;
        padding: 8px 4px;
        font-size: 12px;
    }
}

/* ==== rozwijane grupy w menu bocznym ==== */

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-caret {
    margin-left: auto;
    font-size: 12px;
    transition: transform .2s ease;
}

.sidebar-link[aria-expanded="true"] .sidebar-caret {
    transform: rotate(180deg);
}

.sidebar-submenu {
    list-style: none;
    margin: 2px 0 2px 26px;
    padding: 0 0 0 10px;
    border-left: 1px solid rgba(255, 255, 255, .12);
}

.sidebar-submenu .sidebar-item + .sidebar-item {
    margin-top: 2px;
}

.sidebar-submenu a.sidebar-link {
    padding: 9px 12px;
    font-size: .8rem;
}

.sidebar-submenu a.sidebar-link i {
    width: 18px;
    min-width: 18px;
    font-size: .9rem;
    margin-right: .5rem;
}

/* =========================================================
   PASEK KONTEKSTU POD MENU GORNYM
========================================================= */

.context-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}

.context-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 12px;
    border: 1px solid #3d5975;
    border-radius: 6px;
    background: #3d5975;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
    text-decoration: none;
    white-space: nowrap;
    transition: .2s ease;
}

.context-chip:hover {
    background: #2f4760;
    border-color: #2f4760;
    color: #fff;
}

.context-chip i {
    font-size: 12px;
}

@media (max-width: 768px) {

    .context-bar {
        padding: 8px 12px;
        gap: 6px;
    }

    .context-chip {
        height: 28px;
        padding: 0 10px;
        font-size: 11px;
    }
}

/* =========================================================
   OKNO POTWIERDZENIA ZAPISU
========================================================= */

.premium-logout-modal .logout-icon.save-dialog-icon {
    background: rgba(92, 184, 92, .12);
    color: #3f8f3f;
}

.premium-logout-modal .logout-icon.save-dialog-icon.is-error {
    background: rgba(217, 83, 79, .12);
    color: #d9534f;
}

/* =========================================================
   OKNO POSTĘPU WYSZUKIWANIA
========================================================= */

.premium-logout-modal .logout-icon.search-dialog-icon {
    background: rgba(52, 115, 186, .12);
    color: #3473BA;
}

.search-progress {
    height: 8px;
    border-radius: 999px;
    background: #eef1f5;
    overflow: hidden;
    margin: 4px 0 8px;
}

.search-progress-bar {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: #3473BA;
    transition: width .12s linear;
}

.search-progress-value {
    margin: 0;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #6b7c8f;
}

/* =========================================================
   STRONICOWANIE LIST
========================================================= */

.pagination-hidden {
    display: none !important;
}

.list-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    justify-content: flex-start;
    padding-top: 16px;
    margin-top: 14px;
    margin-bottom: 10px;
    border-top: 1px solid #eef1f5;
}

/* numery stron i wybór wielkości strony trzymamy razem przy prawej krawędzi */
.list-pagination-pages {
    margin-left: auto;
}

.list-pagination-info {
    margin: 0;
    font-size: 12px;
    color: #6b7c8f;
}

.list-pagination-pages {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.list-pagination-pages:empty {
    margin-left: auto;
}

.list-pagination-btn {
    min-width: 32px;
    height: 32px;
    border: 1px solid #e6ebf1;
    background: #fff;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #33475b;
    padding: 0 8px;
}

.list-pagination-btn:hover:not(:disabled):not(.is-active) {
    border-color: #3473BA;
    color: #3473BA;
}

.list-pagination-btn:disabled {
    opacity: .45;
}

.list-pagination-btn.is-active {
    background: #3473BA;
    border-color: #3473BA;
    color: #fff;
}

.list-pagination-size {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 12px;
    color: #6b7c8f;
}

.list-pagination-size select {
    border: 1px solid #e6ebf1;
    border-radius: 8px;
    padding: 5px 8px;
    font-size: 12px;
    color: #33475b;
}

/* =========================================================
   OKNO WYSYŁANIA WIADOMOŚCI
========================================================= */

#messageDialog .modal-content {
    border: 0;
    border-radius: 16px;
}

#messageDialog .modal-header {
    border-bottom: 1px solid #eef1f5;
    padding: 16px 20px;
}

#messageDialog .modal-title {
    font-size: 1rem;
    font-weight: 600;
    color: #0f2745;
}

#messageDialog .modal-footer {
    border-top: 1px solid #eef1f5;
    padding: 14px 20px;
    justify-content: space-between;
}

.msg-row {
    margin-bottom: 16px;
}

.msg-row label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #33475b;
    margin-bottom: 6px;
}

.msg-row textarea {
    font-family: inherit;
    font-size: 13px;
}

.msg-recipients {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.msg-recipient-btn {
    border: 1px solid #e6ebf1;
    background: #fff;
    color: #33475b;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
}

.msg-recipient-btn:hover {
    border-color: #3473BA;
    color: #3473BA;
}

.msg-recipient-btn.is-active {
    background: #3473BA;
    border-color: #3473BA;
    color: #fff;
}

.msg-error {
    margin: 0;
    font-size: 12px;
    color: #d9534f;
}

.msg-close-btn {
    border: 0;
    background: #e0a458;
    color: #fff;
    border-radius: 10px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
}

.msg-send-btn {
    border: 0;
    background: #5cb85c;
    color: #fff;
    border-radius: 10px;
    padding: 8px 22px;
    font-size: 13px;
    font-weight: 600;
}

.msg-send-btn:hover {
    background: #4ca34c;
}

/* =========================================================
   OKNO NOTATEK MASZYNY
========================================================= */

#notesDialog .modal-content {
    border: 0;
    border-radius: 16px;
}

#notesDialog .modal-header {
    border-bottom: 1px solid #eef1f5;
    padding: 16px 20px;
}

#notesDialog .modal-title {
    font-size: 1rem;
    font-weight: 600;
    color: #0f2745;
}

#notesDialog .modal-footer {
    border-top: 1px solid #eef1f5;
    padding: 14px 20px;
    justify-content: space-between;
}

.notes-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.note-item {
    border: 1px solid #e6ebf1;
    border-radius: 12px;
    padding: 12px 14px;
    background: #fbfcfe;
}

.note-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    color: #6b7c8f;
    margin-bottom: 8px;
}

.note-author {
    font-weight: 600;
    color: #33475b;
}

.note-body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.note-text {
    margin: 0;
    flex: 1 1 240px;
    font-size: 13px;
    color: #0f2745;
    word-break: break-word;
}

.note-item.is-crossed .note-text {
    text-decoration: line-through;
    color: #9aa8b6;
}

.note-actions {
    display: flex;
    gap: 8px;
}

.note-cross-btn,
.note-delete-btn {
    border: 0;
    border-radius: 8px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

.note-cross-btn {
    background: #5bc0de;
}

.note-cross-btn:hover {
    background: #46acca;
}

.note-delete-btn {
    background: #d9534f;
}

.note-delete-btn:hover {
    background: #c14440;
}

.notes-empty {
    margin: 0 0 18px;
    padding: 18px;
    text-align: center;
    font-size: 13px;
    color: #6b7c8f;
    background: #fbfcfe;
    border: 1px dashed #e6ebf1;
    border-radius: 12px;
}

.notes-input label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #33475b;
    margin-bottom: 6px;
}

.notes-status {
    margin: 12px 0 0;
    font-size: 12px;
    color: #3f8f3f;
}

.notes-status.is-error {
    color: #d9534f;
}

.notes-save-btn {
    border: 0;
    background: #5cb85c;
    color: #fff;
    border-radius: 10px;
    padding: 8px 22px;
    font-size: 13px;
    font-weight: 600;
}

.notes-save-btn:hover {
    background: #4ca34c;
}

.notes-close-btn {
    border: 0;
    background: #e0a458;
    color: #fff;
    border-radius: 10px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
}

/* =========================================================
   OKNO ZAKOŃCZENIA EKSPLOATACJI
========================================================= */

#endUseDialog .modal-content {
    border: 0;
    border-radius: 16px;
}

#endUseDialog .modal-header {
    border-bottom: 1px solid #eef1f5;
    padding: 16px 20px;
}

#endUseDialog .modal-title {
    font-size: 1rem;
    font-weight: 600;
    color: #0f2745;
}

#endUseDialog .modal-footer {
    border-top: 1px solid #eef1f5;
    padding: 14px 20px;
    justify-content: flex-end;
    gap: 8px;
}

.enduse-text {
    margin: 0;
    font-size: 13px;
    color: #33475b;
}

.enduse-ok-btn {
    border: 0;
    background: #5cb85c;
    color: #fff;
    border-radius: 10px;
    padding: 8px 22px;
    font-size: 13px;
    font-weight: 600;
}

.enduse-ok-btn:hover {
    background: #4ca34c;
}

.enduse-close-btn {
    border: 0;
    background: #e0a458;
    color: #fff;
    border-radius: 10px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
}

/* =========================================================
   OKNO POWIELANIA
========================================================= */

#copyDialog .modal-content {
    border: 0;
    border-radius: 16px;
}

#copyDialog .modal-header {
    border-bottom: 1px solid #eef1f5;
    padding: 16px 20px;
}

#copyDialog .modal-title {
    font-size: 1rem;
    font-weight: 600;
    color: #0f2745;
}

#copyDialog .modal-footer {
    border-top: 1px solid #eef1f5;
    padding: 14px 20px;
    justify-content: space-between;
}

.copy-hint {
    margin: 0 0 16px;
    font-size: 12px;
    color: #6b7c8f;
}

.copy-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.copy-row label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #33475b;
    margin-bottom: 6px;
}

.copy-row-static {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #eef1f5;
    padding-bottom: 8px;
    font-size: 13px;
    color: #6b7c8f;
}

.copy-row-static strong {
    color: #0f2745;
}

.copy-error {
    margin: 14px 0 0;
    font-size: 12px;
    color: #d9534f;
}

.copy-save-btn {
    border: 0;
    background: #5cb85c;
    color: #fff;
    border-radius: 10px;
    padding: 8px 22px;
    font-size: 13px;
    font-weight: 600;
}

.copy-save-btn:hover {
    background: #4ca34c;
}

.copy-close-btn {
    border: 0;
    background: #e0a458;
    color: #fff;
    border-radius: 10px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
}

/* =========================================================
   PRZEWIJANIE OKIEN Z FORMULARZEM
   (formularz między .modal-content a .modal-body przerywa
   działanie klasy modal-dialog-scrollable)
========================================================= */

#copyDialog .modal-content > form,
#messageDialog .modal-content > form,
#notesDialog .modal-content > form {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

#copyDialog .modal-body,
#messageDialog .modal-body,
#notesDialog .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

#copyDialog .modal-footer,
#messageDialog .modal-footer,
#notesDialog .modal-footer {
    flex: 0 0 auto;
}

/* =========================================================
   WYRÓWNANIE NAGŁÓWKÓW KOLUMNY AKCJI
   (reguła .search-table thead th zawsze ustawiała lewą
   stronę, więc nagłówek nie pasował do komórek)
========================================================= */

.search-table thead th.type-action-col {
    text-align: right;
}

.search-table thead th.model-center {
    text-align: center;
}
