.bold {
    font-weight: bold !important;
}

.form-select:disabled {
    background-color: #eee;
}

.invoice-editor-container .form-content .field {
    font-size: 12px;
    margin-top: 4px;
    margin-bottom: 4px;
}

.invoice-editor-container .form-content .form-label {
    color: #223d32;
    font-weight: 300;
    display: inline-block;
    width: 260px;
    text-align: right;
    margin-right: 20px;
    padding: 3px 0px;
    vertical-align: top;
}

.invoice-editor-container .form-content .form-control {
    display: block;
    width: 100%;
    min-height: 26px;
    padding: 0 12px 0 12px;
    font-size: 13px;
    line-height: 1.42857143;
    color: #002451;
    background-image: none;
    border-radius: 0;
    box-shadow: none !important;
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}

.invoice-editor-container .form-content .form-control {
    display: inline-block;
    width: 544px;
    text-align: left;
}

.invoice-editor-container .footer {
    position: relative;
    color: #8e8e93;
    background-color: white;
    padding-top: 6px;
    box-sizing: border-box;
    width: 100%;
    text-align: right;
    height: 54px;
    padding-top: 10px;
}

/* Stylizacja nagłówka formularza */
.invoice-editor-container .form-header {
    background-color: #54b848;
    padding: 7px 20px;
    font-weight: 200;
    box-sizing: border-box;
    font-size: 18px;
    text-align: center;
    color: white;
}

/* Stylizacja podglądu faktury VAT */
.invoice-editor-container .invoice-preview {
    /*border: 1px solid #ddd;*/ /* Obramowanie podglądu */
    background-color: white; /* Kolor tła */
}

/* Podgląd dokumentu (PDF) – 100% wysokości dostępnej w kolumnie */
.invoice-editor-container > .row {
    min-height: 100%;
}
.invoice-editor-container .document-preview-card .invoice-preview {
    min-height: 0;
}
.invoice-editor-container .document-preview-pdf {
    display: block;
    min-height: 0;
    flex: 1 1 auto;
    /* Wysokość: wypełnia kontener; wygląd wewnętrzny PDF (toolbar, pasek boczny) zależy od przeglądarki */
}

.invoice-editor-container .ms-ctn-2 .ms-sel-item-2 {
    padding-left: 0px;
}

.invoice-editor-container .ms-ctn-2 .ms-sel-ctn-2 input {
    padding-left: 0px;
}

/* Style the table */
.invoice-editor-container .invoice-items .control-table {
    border-collapse: collapse;
    width: 100%;
    table-layout: fixed;
    margin-bottom: 15px;
}

    .invoice-editor-container .invoice-items .control-table tbody td,
    .invoice-editor-container .invoice-items .control-table th {
        border-bottom: 1px solid rgb(206, 212, 218);
    }

    .invoice-editor-container .invoice-items .control-table tfoot td:first-child {
        text-align: left;
        padding-left: 9px;
    }

    .invoice-editor-container .invoice-items .control-table .align-left {
        text-align: left;
    }

.invoice-editor-container .field.header {
    border-bottom: 1px solid rgb(206, 212, 218);
    border-top: 1px solid rgb(206, 212, 218);
    padding-top: 2px;
    padding-bottom: 2px;
    background: #efefef;
}

    .invoice-editor-container .field.header .form-label {
        vertical-align: middle;
        margin-bottom: 0;
    }

    .invoice-editor-container .field.header .add-button {
        width: 50px;
        display: inline-block;
    }

.invoice-editor-container .money {
    text-align: right;
}

.invoice-editor-container .invoice-preview .mx-5, .invoice-editor-container .invoice-preview .my-5 {
    margin: 0 !important;
    margin-top: 6px !important;
}

.invoice-preview .textbox-disabled {
    background-color: #f9f9f9 !important;
}

/* Ogólne style dla control-table */
.control-table {
    border-collapse: collapse;
    width: 100%;
    table-layout: fixed;
    margin-bottom: 15px;
}

    /* Style the table cells */
    .control-table td,
    .control-table th {
        padding: 6px;
        text-align: center;
        font-weight: initial;
    }

    .control-table tbody td,
    .control-table th {
        border-bottom: 1px solid rgb(206, 212, 218);
    }

    .control-table tfoot td:first-child {
        text-align: left;
        padding-left: 9px;
    }

    .control-table .align-left {
        text-align: left;
    }

/* =====================================================
   Skeleton loader — DocumentEditor
   Dwuwarstwowa animacja:
     1) bazowy shimmer (przesuwający się gradient w tle)
     2) "scanning bar" — jasna linia w ::after, biegnąca przez prostokąt
   Razem dają wyraźne wrażenie "ładujących się danych".
   ===================================================== */

@keyframes skeleton-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes skeleton-scan {
    0%   { transform: translateX(-100%); }
    60%  { transform: translateX(100%); }
    100% { transform: translateX(100%); }
}

.skeleton-line {
    display: inline-block;
    position: relative;
    overflow: hidden;
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(90deg, #d6d6d6 0%, #ededed 50%, #d6d6d6 100%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.3s linear infinite;
    vertical-align: middle;
}

.skeleton-line::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.7) 50%, transparent 100%);
    transform: translateX(-100%);
    animation: skeleton-scan 1.8s ease-in-out infinite;
    pointer-events: none;
}

.skeleton-field-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    gap: 12px;
}

.skeleton-line.skeleton-label {
    flex: 0 0 140px;
    height: 13px;
}

.skeleton-line.skeleton-input {
    flex: 1 1 auto;
    height: 26px;
    border-radius: 3px;
    width: 100%;
}

/* Większe prostokąty inputów — wolniejszy, bardziej widoczny scan */
.skeleton-line.skeleton-input::after {
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.85) 50%, transparent 100%);
    animation-duration: 1.6s;
}

.skeleton-section {
    padding: 10px 0 4px;
}

.skeleton-divider {
    border-top: 1px solid #e9ecef;
    margin: 8px 0;
}

.skeleton-comment-block {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.skeleton-comment-block::before,
.skeleton-comment-block::after {
    background: linear-gradient(90deg, #d6d6d6 0%, #ededed 50%, #d6d6d6 100%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.3s linear infinite;
}

.skeleton-comment-block::before {
    content: '';
    flex: 0 0 32px;
    height: 32px;
    border-radius: 50%;
}

.skeleton-comment-block::after {
    content: '';
    flex: 1;
    height: 32px;
    border-radius: 4px;
}

.skeleton-btn {
    display: inline-block;
    position: relative;
    overflow: hidden;
    width: 90px;
    height: 32px;
    border-radius: 5px;
    background: linear-gradient(90deg, #d6d6d6 0%, #ededed 50%, #d6d6d6 100%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.3s linear infinite;
}

.skeleton-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.7) 50%, transparent 100%);
    transform: translateX(-100%);
    animation: skeleton-scan 1.8s ease-in-out infinite;
    pointer-events: none;
}

/* Wiersz "tabeli" w skeletonie (dla EditorSkeleton BottomSection="table") */
.skeleton-table-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed #ececec;
}

.skeleton-table-row:last-child {
    border-bottom: none;
}

.skeleton-table-row > .skeleton-line {
    height: 14px;
}

.skeleton-pdf-placeholder {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #e5e5e5 0%, #f2f2f2 50%, #e5e5e5 100%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.8s linear infinite;
    min-height: 200px;
}

.skeleton-pdf-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.9) 50%, transparent 100%);
    transform: translateX(-100%);
    animation: skeleton-scan 2.2s ease-in-out infinite;
    pointer-events: none;
}

