/* ================================ */
/* Forms Layout                     */
/* ================================ */
.forms-section {
    margin-top: -48px;
}
.forms-section .container {
    padding: 0;
    max-width: 100%;
}
.forms-layout {
    display: flex;
    min-height: calc(100vh - 80px);
}

.titulinis-form .managers-add-btn-wrap {
    margin-top: 24px;
    display: flex;
    width: 100%;
    justify-content: flex-end;
}

/* ================================ */
/* Sidebar                          */
/* ================================ */
.forms-sidebar {
    width: 350px;
    min-width: 350px;
    background-color: #fff;
    border-right: 1px solid #eee;
    padding: 24px 40px;
    padding-top: 0;
    overflow-y: auto;
    height: calc(100vh - 80px);
    position: sticky;
    top: 80px;
    scrollbar-color: #c6cbd4 transparent;
    padding-right: 24px;
    scrollbar-width: thin;
}
.forms-sidebar::-webkit-scrollbar {
    width: 0px;
}
.forms-sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.forms-sidebar::-webkit-scrollbar-thumb {
    background-color: #c6cbd4;
    border-radius: 999px;
}
.forms-sidebar::-webkit-scrollbar-thumb:hover {
    background-color: #aeb4bf;
}
.forms-sidebar::-webkit-scrollbar-button {
    display: none !important;
}

.forms-content::-webkit-scrollbar-button {
    display: none !important;
}
.forms-content::-webkit-scrollbar {
    width: 0px;
}
.forms-content::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-top {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 19px;
    padding-bottom: 14px;
    position: relative;
    position: sticky;
    top: 0px;
    background-color: #fff;
    z-index: 99;
}
.sidebar-top::before {
    background-color: #eee;
    position: absolute;
    width: calc(100% + 80px);
    height: 1px;
    content: " ";
    bottom: 0;
    left: -40px;
}
.sidebar-object-name {
    font-weight: 700;
    font-size: 17px;
    color: #363d4d;
}
.sidebar-dots-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sidebar Groups */
.most-used {
    padding: 32px 0px;
    position: relative;
}
.most-used::before {
    background-color: #eee;
    position: absolute;
    width: calc(100% + 80px);
    height: 1px;
    content: " ";
    bottom: 0;
    left: -40px;
}
.sidebar-group {
    margin-bottom: 8px;
}
.sidebar-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
    line-height: 100%;
    vertical-align: middle;
    margin-bottom: 25px;
    color: #363d4d;
}
.sidebar-group-icon {
    width: 14px;
    height: 13px;
}
.sidebar-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    cursor: pointer;
    user-select: none;
}
.sidebar-section-title {
    font-weight: 700;
    font-size: 15px;
    color: #363d4d;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sidebar-badge-orange {
    background-color: #ff9c38;
    width: 6px;
    height: 6px;
    border-radius: 100%;
    display: block;
}
.sidebar-arrow {
    width: 12px;
    height: 12px;
    background-image: url(/assets/icons/select-arrow.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    display: block;
    transition: transform 0.3s ease;
}
.sidebar-arrow.rotated {
    transform: rotate(180deg);
}

/* Sidebar Links */
.sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-collapsible {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.sidebar-collapsible.open {
    max-height: 1000px;
    margin-top: 14px;
    margin-bottom: 14px;
}
.sidebar-links li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0px;
    font-weight: 500;
    font-size: 15px;
    color: #363d4d;
    text-decoration: none;
    border-radius: 6px;
}
.sidebar-links li a:hover {
    color: #2d5eee;
}
.sidebar-links li a:hover .form-tag {
    background-color: #2d5eee;
    color: #fff;
}
.sidebar-links li a:hover img {
    opacity: 1;
    filter: brightness(0) invert(1);
}
.sidebar-links li.active a {
    color: #2d5eee;
}
/* Active form: highlight the F-NN tag chip blue (matches hover), so the current
   form is clearly marked in the sidebar. */
.sidebar-links li.active .form-tag,
.sidebar-links li.active .form-tag-icon {
    background-color: #2d5eee;
    color: #fff;
}
.sidebar-links li.active .form-tag-icon img {
    opacity: 1;
    filter: brightness(0) invert(1);
}
.form-tag {
    font-weight: 700;
    font-size: 12px;
    color: #363d4d;
    width: 42px;
    height: 25px;
    background-color: #f6f6f6;
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
}
.form-tag-icon {
    width: 42px;
    height: 25px;
    background-color: #f6f6f6;
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
}
.form-tag-icon img {
    width: 10px;
    height: 10px;
}
.form-tag-active {
    background-color: #2d5eee;
}
.form-tag-active img {
    opacity: 1;
    filter: brightness(0) invert(1);
}
.sidebar-subcategory {
    font-weight: 400;
    font-size: 14px;
    color: #6f6f73;
    margin: 16px 0px;
}

/* ================================ */
/* Main Content                     */
/* ================================ */
.forms-content {
    flex: 1;
    padding: 24px 40px;
    background-color: #f6f6f6;
    min-width: 0;
    height: calc(100vh - 80px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #c6cbd4 transparent;
    padding-bottom: 80px;
}
.forms-content::-webkit-scrollbar {
    width: 0px;
}
.forms-content::-webkit-scrollbar-track {
    background: transparent;
}
.forms-content::-webkit-scrollbar-thumb {
    background-color: #c6cbd4;
    border-radius: 999px;
}
.forms-content::-webkit-scrollbar-thumb:hover {
    background-color: #aeb4bf;
}

/* Content Header Bar */
.content-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    padding: 16px 40px;
    margin: -24px -40px 24px -40px;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.03);
}
.content-header-left {
    display: flex;
    align-items: center;
    gap: 24px;
}
.content-header-icon {
    width: 90px;
    height: 51px;
    background-color: #f6f6f6;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.content-header-icon img {
    width: 10px;
    height: 10px;
}
.content-header-title {
    font-family: Fustat;
    font-weight: 600;
    font-size: 16px;
    line-height: 20px;
    color: #363d4d;
}
.content-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.content-action-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid #e1e1e1;
    background-repeat: no-repeat;
    background-size: 18px;
    background-position: center;
}
.content-action-btn:hover {
    background-color: #eaeffe;
}
.content-action-btn.action-favorite {
    background-image: url(/assets/icons/start-form.svg);
}
.content-action-btn.action-search {
    background-image: url(/assets/icons/search.svg);
}
.content-action-btn.action-filter {
    background-image: url(/assets/icons/Funnel.svg);
}
.content-action-btn.action-favorite:hover {
    background-image: url(/assets/icons/Star-blue.svg);
}
.content-action-btn.action-search:hover {
    background-image: url(/assets/icons/search-blue.svg);
}
.content-action-btn.action-filter:hover {
    background-image: url(/assets/icons/Funnel-blue.svg);
}

/* ================================ */
/* Managers List                    */
/* ================================ */
.managers-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Manager Row */
.manager-row {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    box-shadow: 0 5px 15px 0 rgba(0, 0, 0, 0.05);
    overflow: hidden;
    padding: 16px 40px;
}

/* Row Header */

.content-header-left .form-tag {
    font-weight: 700;
    font-style: Bold;
    font-size: 24px;
    width: auto;
}
.manager-row-header {
    display: flex;
    align-items: center;
}
.manager-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 180px;
}
.manager-status-dot {
    width: 12px;
    height: 12px;
    border-radius: 100%;
    display: block;
    flex-shrink: 0;
}
.manager-status-dot.active {
    background-image: url(/assets/icons/green-checkmark.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 20px;
    width: 20px;
    height: 20px;
}
.manager-status-dot.finished {
    background-image: url(/assets/icons/icon_verifikuotas_grey.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 20px;
    width: 20px;
    height: 20px;
}
.manager-status-dot.pending {
    background-image: url(/assets/icons/Clock.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 20px;
    width: 20px;
    height: 20px;
}
/* Invitee accepted; awaiting the inviter's confirmation. */
.manager-status-dot.awaiting {
    background-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
    width: 14px;
    height: 14px;
}
.manager-name {
    font-weight: 700;
    font-size: 18px;
    color: #141414;
}
.manager-details {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
    margin-left: 32px;
    justify-content: space-between;
}
.manager-details-wrap {
    width: 40%;
    display: flex;
    gap: 20px;
}
.manager-details-wrap .manager-detail {
    width: 50%;
}
.manager-details-wrap .manager-company {
    display: flex;
    gap: 8px;
    align-items: center;
    font-weight: 500;
    line-height: 24px;
}
.managers-status-wrap {
    width: 40%;
    display: flex;
    gap: 20px;
    justify-content: flex-end;
}
.managers-status-wrap .manager-detail-status {
    width: 50%;
}
.f1-main .managers-status-wrap .manager-detail-status {
    width: auto;
}
.manager-detail {
    font-weight: 500;
    font-size: 14px;
    color: #6f6f73;
    white-space: nowrap;
}
.manager-detail-status {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #141414;
}

.manager-detail-finished {
    color: #141414;
    font-weight: 500;
}
.status-dot-green {
    width: 8px;
    height: 8px;
    border-radius: 100%;
    background-color: #27c96a;
    display: inline-block;
    flex-shrink: 0;
}
.status-dot-red {
    width: 8px;
    height: 8px;
    border-radius: 100%;
    background-color: #eb3831;
    display: inline-block;
    flex-shrink: 0;
}
.manager-expand-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    margin-left: 40px;
}
.manager-expand-btn img {
    width: 12px;
    height: 12px;
}
.manager-row.expanded .manager-expand-btn img {
    transform: rotate(180deg);
}

/* Cancel button (pending) */
.manager-cancel-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    color: #eb3831 !important;
    text-decoration: none !important;
    background-color: #eb383114;
    border: 1px solid #eb383130;
    border-radius: 8px;
    padding: 6px 14px;
    margin-left: auto;
    white-space: nowrap;
}
.manager-cancel-btn:hover {
    background-color: #eb383125;
}
.manager-cancel-btn img {
    width: 12px;
    height: 12px;
}

.f50-main .f20-small-input {
    margin-bottom: 0 !important;
    width: 220px;
    flex: 0 0 auto !important;
}

.content-header-actions .add-property {
    width: 40px;
    height: 40px;
}
/* Confirm button (PATVIRTINTI) */
.manager-confirm-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    color: #fff !important;
    text-decoration: none !important;
    background-color: #2d5eee;
    border: 1px solid #2d5eee;
    border-radius: 8px;
    padding: 6px 14px;
    white-space: nowrap;
}
.manager-confirm-btn:hover {
    background-color: #2350d4;
}
/* Reject button shown next to PATVIRTINTI when an acceptance awaits confirmation. */
.manager-reject-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #eb3831 !important;
    text-decoration: none !important;
    background-color: #eb383114;
    border: 1px solid #eb383130;
    border-radius: 8px;
    padding: 8px 12px;
    margin-left: auto;
    flex-shrink: 0;
}
.manager-reject-btn + .manager-confirm-btn {
    margin-left: 8px;
}
.manager-reject-btn:hover {
    background-color: #eb383125;
}
.manager-reject-btn img {
    width: 12px;
    height: 12px;
}
.mobile-add-btn-text {
    display: none;
}
/* ================================ */
/* Manager Row Body (expandable)    */
/* ================================ */
.manager-row-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.manager-row.expanded .manager-row-body {
    max-height: 500px;
}

/* Fields */
.manager-fields {
    display: flex;
    gap: 16px;
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid #eee;
}
.manager-fields .input-wrap {
    flex: 1;
    margin-bottom: 0;
}
.manager-fields .input-wrap label {
    pointer-events: none;
}
.manager-fields .form-input:disabled {
    background-color: #eeeeee;
    color: #141414;
    cursor: default;
    opacity: 1;
    -webkit-text-fill-color: #141414;
}

/* Certificate */
.manager-certificate {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 24px 0px;
}
.manager-cert-info strong {
    font-weight: 700;
    font-size: 15px;
    color: #363d4d;
    display: block;
    margin-bottom: 4px;
}
.manager-cert-dates {
    font-weight: 400;
    font-size: 13px;
    color: #6f6f73;
}
.manager-cert-file {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 13px;
    color: #27c96a !important;
    text-decoration: none !important;
    background-color: #27c96a14;
    border: 1px solid #27c96a30;
    border-radius: 8px;
    padding: 8px 16px;
    white-space: nowrap;
}
.manager-cert-file:hover {
    background-color: #27c96a25;
}
.manager-cert-file img {
    width: 16px;
    height: 16px;
}
.manager-certificate {
    padding: 24px 0px;
}
.manager-cert-header h3 {
    font-weight: 700;
    font-size: 16px;
    color: #363d4d;
    margin-bottom: 16px;
}
.manager-cert-view {
    display: flex;
    align-items: center;
    gap: 40px;
}
.manager-cert-title {
    display: none;
}
.manager-row.editing .manager-cert-title {
    display: block;
}
.manager-cert-add {
    display: none;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 13px;
    color: #2d5eee !important;
    text-decoration: none !important;
}
.manager-row.editing .manager-cert-add {
    display: flex;
}
.manager-cert-add:hover {
    opacity: 0.8;
}
.manager-cert-view .remove-file {
    display: none;
}
.manager-row.editing .manager-cert-view .remove-file {
    display: flex;
}
.manager-certificate .manager-cert-edit {
    display: none !important;
}
.manager-row.editing .manager-certificate.no-cert .manager-cert-edit {
    display: block !important;
}
.manager-cert-edit .cert-inputs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.manager-cert-edit .cert-inputs .input-wrap {
    flex: 1;
    min-width: 150px;
}
.manager-cert-edit .cert-inputs .input-wrap.number-input {
    flex: 2;
}

/* Row Footer */
.manager-row-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 0px;
}
.manager-meta {
    display: flex;
    gap: 24px;
}
.manager-meta span {
    font-weight: 400;
    font-size: 13px;
    color: #9f9f9f;
}
.manager-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.manager-action {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none !important;
    white-space: nowrap;
}
.manager-action img {
    width: 16px;
    height: 16px;
}
.manager-action-finish {
    color: #2d5eee !important;
}
.manager-action-edit {
    color: #2d5eee !important;
}
.manager-action-edit:hover,
.manager-action-finish:hover {
    opacity: 0.8;
}

.managers-add-btn-wrap .add-property {
    background-size: 10px 10px;
}
/* Add Button */
.managers-add-btn-wrap {
    margin-top: 24px;
}
.managers-add-btn {
    width: 48px;
    height: 48px;
}

.managers-add-btn-wrap .add-property {
    width: 32px;
    height: 32px;
}

/* Mobile sidebar */
.mobile-sidebar-overlay {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}
.mobile-sidebar-overlay.visible {
    display: block;
}
.mobile-form-sidebar {
    display: none;
}

.manager-certificate.no-cert {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

/* ================================ */
/* Titulinis Lapas                  */
/* ================================ */
.titulinis-form {
    max-width: 1490px;
    width: 100%;
    margin: auto;
    container-type: inline-size;
    container-name: titulinis;
}
.titulinis-card {
    margin-top: 0;
}
.titulinis-card .two-cols-inputs {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}
.titulinis-card .two-cols-inputs .input-wrap {
    flex: 1;
    margin-bottom: 0;
}
.titulinis-card > .input-wrap {
    margin-bottom: 40px;
}

/* Sritis + Statytojo parašas: wide input left, fixed participant right */
.titulinis-card .two-cols-inputs.full-width-first {
    align-items: flex-end;
}
.titulinis-card .two-cols-inputs.full-width-first .input-wrap:first-child {
    flex: 1 1 0;
    min-width: 0;
}
.titulinis-card .two-cols-inputs.full-width-first .input-wrap.participant-wrap {
    flex: 0 0 auto;
    width: 220px;
}

/* Address input with pin icon */
.address-input-row {
    position: relative;
}
.address-input-row .form-input {
    padding-right: 48px;
}
.address-pin {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.address-pin img {
    width: 20px;
    height: 20px;
}
.address-manual-link {
    font-weight: 400;
    font-size: 13px;
    color: #6f6f73;
    margin-top: 8px;
    display: block;
    text-decoration: none;
}
.address-manual-link u {
    color: #2d5eee;
}

/* Form groups (radio / checkbox) */
.form-group {
    margin-bottom: 40px;
}
.form-group-label {
    font-weight: 700;
    font-size: 15px;
    color: #363d4d;
    display: block;
    margin-bottom: 12px;
}

.forms-sidebar::-webkit-scrollbar {
    overflow-y: hidden;
}

/* Radio buttons */
.radio-group {
    display: flex;
    align-items: center;
    gap: 24px;
}
.radio-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 400;
    font-size: 14px;
    color: #141414;
}
.radio-wrap input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 100%;
    border: 2px solid #e1e1e1;
    background: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 0.2s ease;
    margin: 0;
    flex-shrink: 0;
}
.radio-wrap input[type="radio"]::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 100%;
    background-color: #fff;
    transform: scale(0);
    transition: transform 0.2s ease;
}
.radio-wrap input[type="radio"]:checked {
    border-color: #2d5eee;
    background-color: #2d5eee;
}
.radio-wrap input[type="radio"]:checked::before {
    transform: scale(1);
}
.disabled-input label {
    color: #919191;
}
.disabled-input .radio-wrap input[type="radio"]:checked {
    border-color: #e1e1e1;
    background-color: #e1e1e1;
}

/* Checkboxes */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 24px;
}
.checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 400;
    font-size: 14px;
    color: #141414;
}
.checkbox-wrap input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    background: #fff;
    border: 1px solid #e1e1e1;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin: 0;
}
.checkbox-wrap input[type="checkbox"]::before {
    content: "";
    width: 100%;
    height: 100%;
    background: url(/assets/icons/checkmark.svg) center / 8px no-repeat;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.checkbox-wrap input[type="checkbox"]:checked {
    background: #2d5eee;
    border-color: #2d5eee;
}
.checkbox-wrap input[type="checkbox"]:checked::before {
    opacity: 1;
}

/* Checkbox group wrap (3-column grid) */
.checkbox-group-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 32px;
    max-width: 70%;
}

/* Three columns layout */
.three-cols-inputs {
    display: flex;
    gap: 16px;
}
.three-cols-inputs .input-wrap {
    flex: 1;
    margin-bottom: 0;
}
.three-cols-inputs .input-wrap.participant-wrap {
    flex: 0 !important;
}

/* Section notice (info banner) */
.section-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 32px;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: 0 5px 15px 0 rgba(0, 0, 0, 0.05);
    font-weight: 400;
    font-size: 14px;
    color: #363d4d;
}
.section-notice img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.section-notice .form-tag {
    margin-left: 8px;
}
.notice-link {
    font-weight: 500;
    font-size: 14px;
    color: #2d5eee !important;
}
.notice-link:hover {
    text-decoration: underline !important;
}

/* Participant picker */
.participant-wrap {
    flex: 0 0 auto !important;
}
.participant-wrap .select2-container {
    display: none !important;
}
.participant-picker {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 50px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease;
    position: relative;
    max-width: 200px;
    box-shadow: 0px 5px 15px 0px #1d398b1a;
    border: 1px solid #eeeeee;
    width: 196px;
}
.participant-picker:hover,
.participant-picker.open {
    border-color: #2d5eee;
}
.participant-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.participant-icon img {
    width: 14px;
    height: 14px;
}
.participant-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}
.participant-name {
    font-weight: 700;
    font-size: 12px;
    color: #363d4d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.participant-status {
    font-weight: 500;
    font-size: 8px;
    color: #9f9f9f;
}
.participant-arrow {
    width: 12px;
    height: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.participant-arrow img {
    width: 12px;
    height: 12px;
}
.participant-picker.open .participant-arrow img {
    transform: rotate(180deg);
}
.participant-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 100%;
    width: max-content;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12);
    z-index: 100;
    overflow: hidden;
}
.participant-picker.open .participant-dropdown {
    display: block;
}
.participant-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    color: #363d4d;
    transition: background-color 0.15s ease;
}
.participant-dropdown-item:hover {
    background-color: #2d5dee1a;
}
.participant-dropdown-item.selected {
    background-color: #2d5dee1a;
}
.participant-dropdown-item img {
    width: 20px;
    height: 20px;
}

.forms-content
    .select2-container--default.select2-container--disabled
    .select2-selection__arrow {
    display: none;
}

/* Titulinis sections */
.titulinis-section {
    margin-top: 40px;
}
.titulinis-section-title {
    font-weight: 700;
    font-size: 20px;
    color: #363d4d;
    margin-bottom: 16px;
}
.titulinis-form .manager-row {
    padding: 16px 40px;
}

/* Save button */
.titulinis-save {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}
.titulinis-save-btn {
    min-width: 200px;
    justify-content: center;
}

.forms-content .input-wrap label {
    font-size: 13px;
}
.empty-managers .section-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    background-color: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    font-weight: 600;
    font-size: 16px;
    color: #363d4d;
}
.empty-managers .form-tag {
    background: #ffffff;
}
.empty-managers .notice-link {
    text-decoration: underline;
}
.merged-list {
    gap: 0px;
}
.merged-list .manager-row {
    border-radius: 0px;
}
.merged-list .manager-row:first-child {
    border-radius: 16px 16px 0px 0px;
}
.merged-list .manager-row:last-child {
    border-radius: 0px 0px 16px 16px;
}

/* ================================ */
/* F-2 Statinių vardinis sąrašas    */
/* ================================ */

/* Row card */
.f2-row.white-box-shadow {
    margin-top: 0;
    margin-bottom: 12px;
    padding: 24px 40px;
}

/* Row header */
.f2-row-header {
    display: flex;
    align-items: flex-end;
}
.f2-row-fields {
    display: flex;
    align-items: flex-end;
    flex: 1;
    min-width: 0;
    gap: 12px;
}
.f2-row-fields .input-wrap {
    margin-bottom: 0;
}
.f2-input-name {
    flex: 1;
    min-width: 0;
}
.f2-input-sm {
    width: 100px;
    flex-shrink: 0;
}
.f2-input-date {
    width: 160px;
    flex-shrink: 0;
}

/* Action buttons */
.f2-row-actions {
    display: flex;
    align-items: center;
    gap: 17px;
    margin-left: 16px;
    flex-shrink: 0;
    border: 1px solid #e1e1e1;
    padding: 16px 19px;
    border-radius: 8px;
}
.f2-action-btn {
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 6px;
    padding: 0;
    transition: background-color 0.2s ease;
}
.f2-action-btn:hover {
    background-color: #f0f0f0;
}
.f2-action-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}
.f2-action-btn:disabled:hover {
    background-color: transparent;
}
.f2-action-btn img {
    width: 18px;
    height: 18px;
}
.f2-row-header .manager-expand-btn {
    margin-left: 10px;
    margin-bottom: 10px;
}

/* Expand */
.f2-row.expanded .f2-expand-btn img {
    transform: rotate(180deg);
}

/* Row body (expandable) */
.f2-row-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.f2-row.expanded .f2-row-body {
    max-height: 500px;
}

/* Kiti rodikliai */
.f2-extra {
    margin-top: 16px;
}
.f2-extra .input-wrap {
    margin-bottom: 0;
}
.f2-extra textarea.form-input {
    min-height: 80px;
    resize: vertical;
}
.input-wrap textarea:disabled {
    background: #eeeeee;
}

.input-wrap input:disabled,
.input-wrap textarea:disabled,
.input-wrap select:disabled,
.input-wrap .form-input:disabled,
.forms-content
    .select2-container--default.select2-container--disabled
    .select2-selection--single {
    background-color: #eeeeee !important;
}

.forms-content input:disabled:not([type="checkbox"]):not([type="radio"]),
.forms-content textarea:disabled,
.forms-content select:disabled,
.forms-content .form-input:disabled,
.forms-content input[readonly]:not([type="checkbox"]):not([type="radio"]),
.forms-content textarea[readonly],
.forms-content select[readonly],
.forms-content .form-input[readonly] {
    background-color: #eeeeee !important;
}

.forms-content .input-wrap .form-input.f1-date-no-grey,
.forms-content .input-wrap .form-input.f1-date-no-grey[readonly],
.forms-content .input-wrap .form-input.f1-date-no-grey:disabled {
    background-color: #ffffff !important;
}

.row-control-disabled {
    pointer-events: none !important;
    opacity: 0.55;
}

.participant-picker--locked {
    pointer-events: none !important;
    opacity: 0.55;
}

.doc-row:not(.editing) .doc-select-wrap .select2,
.doc-row:not(.editing) .doc-add-file,
.doc-row:not(.editing) .doc-chat-input-wrap {
    pointer-events: none;
    opacity: 0.55;
}
/* The per-user tag picker stays fully interactive in view mode (no edit rights
   required) — it must NOT be greyed/locked like the other view-mode controls. */
.doc-row:not(.editing) .doc-color-picker {
    pointer-events: auto;
    opacity: 1;
}

.doc-row.row-readonly .doc-row-footer,
.f2-row.row-readonly .f2-row-footer {
    display: none !important;
}

/* Cancel / Save footer — hidden until edit mode */
.f2-row-footer {
    display: none;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    padding-top: 16px;
}
.f2-row.editing .f2-row-footer {
    display: flex;
}
.f2-cancel-link,
.f2-save-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none !important;
    cursor: pointer;
    color: #2d5eee !important;
}
.f2-cancel-link:hover,
.f2-save-link:hover {
    opacity: 0.8;
}
.f2-cancel-link img,
.f2-save-link img {
    width: 14px;
    height: 14px;
}

/* Label turns blue on focus */
.f2-row .input-wrap:focus-within label {
    color: #2d5eee;
}

/* Add button — desktop vs mobile */
.f2-add-wrap {
    margin-top: 12px;
}
.f2-add-mobile {
    display: none;
}
.f2-add-btn-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}
.f2-add-btn:disabled,
.f2-add-btn[aria-disabled="true"],
.f2-add-btn.is-disabled {
    opacity: 0.45;
    cursor: not-allowed !important;
    pointer-events: none;
}
.f2-add-btn-mobile:disabled,
.f2-add-btn-mobile[aria-disabled="true"],
.f2-add-btn-mobile.is-disabled {
    background-color: #b8c4e8;
    border-color: #b8c4e8;
}

/* Empty state */
.f2-empty-state {
    display: flex;
    justify-content: center;
    padding-top: 40px;
}
.f2-empty-card.white-box-shadow {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    max-width: 500px;
    text-align: center;
}
.f2-empty-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    opacity: 0.6;
}
.f2-empty-title {
    font-weight: 600;
    font-size: 18px;
    color: #363d4d;
    margin-bottom: 24px;
}
.f2-empty-add-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

/* ================================ */
/* F-3 New Participant Form         */
/* ================================ */
.f3-new-participant.white-box-shadow {
    margin-top: 0;
    margin-bottom: 24px;
    padding: 24px 40px;
}
.f3-new-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}
.f3-new-title {
    font-weight: 700;
    font-size: 18px;
    color: #363d4d;
    margin: 0;
}

/* Toggle switch */
.f3-toggle-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}
.f3-toggle-wrap input {
    display: none;
}
.f3-toggle-slider {
    width: 44px;
    height: 24px;
    background-color: #e1e1e1;
    border-radius: 12px;
    position: relative;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}
.f3-toggle-slider::before {
    content: "";
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: transform 0.2s ease;
}
.f3-toggle-wrap input:checked + .f3-toggle-slider {
    background-color: #2d5eee;
}
.f3-toggle-wrap input:checked + .f3-toggle-slider::before {
    transform: translateX(20px);
}
.f3-toggle-label {
    font-weight: 500;
    font-size: 14px;
    color: #363d4d;
}

/* Fields rows */
.f3-new-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}
.f3-new-row .input-wrap {
    flex: 1;
    margin-bottom: 0;
}
.f3-input-contract {
    max-width: 200px;
}
.f3-input-date {
    max-width: 160px;
}

/* Bottom: checkboxes + button */
.f3-new-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
}
.f3-new-checkboxes {
    display: flex;
    gap: 32px;
}
.f3-invite-btn {
    white-space: nowrap;
}

/* ================================ */
/* Document Row (reusable: F4, F5, F7...)                   */
/* ================================ */

/* Row card */
.doc-row.white-box-shadow {
    margin-top: 0;
    margin-bottom: 12px;
    padding: 24px 40px;
}

/* Row header */
.doc-row-header {
    display: flex;
    align-items: center;
    gap: 12px;
}
.doc-date {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
    min-width: 48px;
    cursor: pointer;
    position: relative;
}
.doc-date-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.doc-date-day {
    font-weight: 800;
    font-size: 40px;
    color: #363d4d;
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 3px;
}
.doc-date-chevron {
    width: 10px;
    height: 10px;
    margin-left: 10px;
}
.doc-date-month {
    font-weight: 400;
    font-size: 12px;
    color: #9f9f9f;
    margin-top: 2px;
}

.doc-header-fields {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex: 1;
    min-width: 0;
    flex-wrap: nowrap;
}
.doc-select-wrap {
    max-width: 180px;
    margin-bottom: 0 !important;
}
.doc-action-icons {
    display: flex;
    align-items: center;
    gap: 13px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 13px 12px;
}
.doc-color-dot {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    display: block;
    flex-shrink: 0;
    cursor: pointer;
}

/* Color picker dropdown */
.doc-color-picker {
    position: relative;
}
.doc-color-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    /* Left-align to the dot. Centering (translateX(-50%)) pushed the dropdown
       off-screen-left for the left-most picker, which looked broken. */
    left: 0;
    transform: none;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12);
    z-index: 200;
    padding: 8px 0;
    min-width: 200px;
}
.doc-color-picker.open .doc-color-dropdown {
    display: block;
}
.doc-color-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    color: #363d4d;
    transition: background-color 0.15s ease;
    white-space: nowrap;
}
.doc-color-option:hover {
    background-color: #f6f6f6;
}
.doc-color-swatch {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    display: block;
    flex-shrink: 0;
}
.doc-icon-btn {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}
.doc-icon-btn:hover {
    background-color: #f0f0f0;
}
.doc-icon-btn img {
    width: 16px;
    height: 16px;
}
/* When a document is "negalioja" (invalid), its editing actions
   (copy / edit / delete) are disabled. */
.doc-icon-btn:disabled {
    cursor: not-allowed;
    opacity: 0.35;
    pointer-events: none;
}

.doc-header-fields .input-wrap {
    width: fit-content;
}

.forms-content
    .select2-container--default.select2-container--disabled
    .select2-selection--single {
    background-color: #eeeeee;
}
/* Toggle reuses f3-toggle-slider */
.doc-toggle-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    margin-left: 8px;
    margin-bottom: 13px;
}
.doc-toggle-wrap input {
    display: none;
}
.doc-toggle-slider {
    width: 44px;
    height: 24px;
    background-color: #e1e1e1;
    border-radius: 12px;
    position: relative;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
    background: #eb3831;
}

.f17-main .doc-row.white-box-shadow .doc-row-header {
    padding-right: 0;
}
.doc-toggle-slider::before {
    content: "";
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: transform 0.2s ease;
}
.doc-toggle-wrap input:checked + .doc-toggle-slider {
    background-color: #27c96a;
}
.doc-toggle-wrap input:checked + .doc-toggle-slider::before {
    transform: translateX(20px);
}
.doc-toggle-text {
    font-weight: 500;
    font-size: 14px;
    color: #363d4d;
    white-space: nowrap;
}

/* Participant right side */
.doc-header-right {
    margin-left: auto;
    flex-shrink: 0;
}
.doc-participant {
    margin-bottom: 0 !important;
}
.doc-participant .participant-picker {
    max-width: 220px;
}

/* Expand */
.doc-row .doc-expand-btn {
    margin-left: 0;
    flex-shrink: 0;
}
.doc-row.expanded .doc-expand-btn img {
    transform: rotate(180deg);
}

/* Row body */
.doc-row-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}
.doc-row.expanded .doc-row-body {
    max-height: 2000px;
}

/* Detail fields row */
.doc-detail-fields {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
.doc-detail-fields .input-wrap {
    margin-bottom: 0;
}
.doc-field-name {
    flex: 2;
    min-width: 0;
}
.doc-field-sm {
    flex: 1;
    min-width: 0;
}
.doc-field-date {
    width: 170px;
    flex-shrink: 0;
}

body .doc-row .select2-container .select2-selection--single {
    border-radius: 8px;
}

/* Projektotojas — auto width, not full */
.doc-projektotojas {
    margin-top: 16px;
    margin-bottom: 0 !important;
    width: 100%;
}
.doc-projektotojas .select2-container {
    min-width: 200px !important;
    width: 100% !important;
}

/* Two selects side by side (F5) */
.doc-two-selects {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}
.doc-two-selects .doc-projektotojas {
    flex: 1;
    margin-top: 0;
}

/* Document section */
.doc-document-section {
    margin-top: 20px;
}
.doc-file-list {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.doc-file-list .file-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: #f0f4ff;
    border: 1px solid #d6e0fb;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    color: #2d5eee;
    font-weight: 500;
}
.doc-file-list .file-badge .remove-file {
    width: 14px;
    height: 14px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}
.doc-file-list .file-badge .remove-file svg {
    width: 14px;
    height: 14px;
    stroke: #2d5eee;
}
.doc-add-file {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 13px;
    color: #2d5eee !important;
    text-decoration: none !important;
}
.doc-add-file:hover {
    opacity: 0.8;
}

/* Edit footer — hidden until edit mode */
.doc-row-footer {
    display: none;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    padding-top: 16px;
    margin-top: 8px;
}
.doc-row.editing .doc-row-footer {
    display: flex;
}
.doc-row.editing .doc-file-list .remove-file {
    display: flex !important;
}
.doc-row.editing .doc-add-file {
    display: flex !important;
}

/* ================================ */
/* Pastabos (Chat)                  */
/* ================================ */
.doc-pastabos {
    margin-top: 24px;
}
.doc-pastabos-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.doc-pastabos-title {
    font-weight: 700;
    font-size: 15px;
    color: #363d4d;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.doc-pastabos-count {
    background-color: #363d4d;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    width: 21px;
    height: 16px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.doc-pastabos-body {
    margin-top: 16px;
    transition: max-height 0.4s ease;
}

/* Chat container */
.doc-chat {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 24px;
}

/* Chat messages */
.doc-chat-messages {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 400px;
    overflow-y: auto;
    padding-top: 16px;
}
.doc-message {
    display: flex;
    flex-direction: column;
}
.doc-message-meta {
    font-weight: 600;
    font-size: 13px;
    color: #363d4d;
    margin-bottom: 4px;
}
.doc-message-time {
    font-weight: 400;
    font-size: 12px;
    color: #9f9f9f;
    margin-left: 6px;
}
.doc-message-bubble {
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    max-width: 70%;
    width: fit-content;
}
.doc-bubble-own {
    background-color: #eaeffe;
    color: #363d4d;
}
.doc-bubble-other {
    background-color: #eaeffe;
    color: #363d4d;
}
.doc-message-own {
    align-items: flex-end;
}
.doc-message-other {
    align-items: flex-start;
}
.doc-message-image {
    max-width: 200px;
    border-radius: 10px;
    margin-top: 8px;
}

/* Chat input */
.doc-chat-input-wrap {
    margin-bottom: 0;
}
.doc-chat-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.doc-chat-input-field {
    flex: 1;
    position: relative;
    display: flex;
    gap: 12px;
}
.doc-chat-input-field .input-wrap {
    margin-bottom: 0;
}
.doc-chat-input-field .input-wrap input {
    padding-right: 44px;
}
.doc-chat-attach {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}
.doc-chat-send {
    flex-shrink: 0;
}

/* ================================ */
/* F-7 Specific                     */
/* ================================ */

/* Weather stats */
.f7-weather {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-shrink: 0;
}
.f7-weather-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 400;
    font-size: 11px;
    color: #6f6f73;
    white-space: nowrap;
}
.f7-weather-item img {
    width: 12px;
    height: 12px;
    opacity: 0.6;
}

/* Two participant pickers */
.f7-two-participants {
    display: flex;
    gap: 12px;
    margin-left: auto;
    flex-shrink: 1;
    min-width: 0;
}
.f7-two-participants .doc-participant {
    flex: 0 1 auto !important;
}

.forms-content .f7-two-participants .doc-participant label {
    font-size: 11px;
}

/* F7/F8/F9/F13+ header needs wrapping for two pickers */
.f7-main .doc-row-header,
.f8-main .doc-row-header,
.f9-main .doc-row-header,
.f13-main .doc-row-header,
.f15-main .doc-row-header,
.f57-main .doc-row-header,
.f58-main .doc-row-header,
.f59-main .doc-row-header,
.f60-main .doc-row-header {
    flex-wrap: wrap;
}

/* Klausimas adresuotas row */
.protokolas-adresuotas-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.protokolas-adresuotas-label {
    font-size: 13px;
    color: #374151;
    white-space: nowrap;
    font-weight: 500;
}
.protokolas-adresuotas-select {
    margin-bottom: 0 !important;
    min-width: 180px;
}

/* F61 — invoice fields row */
.f61-fields-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}
.f61-field-nr {
    flex: 2 1 180px;
}
.f61-field-date {
    flex: 1 1 130px;
}
.f61-field-sum {
    flex: 1 1 130px;
}
.f61-date-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.f61-date-input-wrap .form-input {
    padding-right: 36px;
    width: 100%;
}
.f61-calendar-icon {
    position: absolute;
    right: 10px;
    pointer-events: none;
    display: flex;
    align-items: center;
}
.f61-extra-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    margin-top: 12px;
    flex-wrap: wrap;
}
.f61-field-doc {
    flex: 1 1 280px;
}
.f61-field-pastabos {
    flex: 1 1 280px;
}

/* F60 — two-row header: top row (date+statinys+icons), bottom row (3 participants) */
.f60-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px;
}
.f60-header-top {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}
.f60-header-top .doc-expand-btn {
    margin-left: auto;
}
.f60-participants-row {
    display: flex;
    gap: 12px;
    width: 100%;
}
.f60-main .f60-participants-row .doc-participant {
    min-width: auto;
    flex: 0 !important;
}
.f60-participants-row .doc-participant label {
    font-size: 11px;
}

/* Mato vnt + Kiekis fields — match Atsakingas vykdytojas width */
.f7-field-unit {
    width: 100px;
    flex-shrink: 0;
}
.f7-field-qty {
    width: 100px;
    flex-shrink: 0;
}

/* Responsible field */
.f7-field-responsible {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    max-width: 200px;
    flex-shrink: 0;
}
.f10-main .f7-field-responsible {
    max-width: 340px;
}
.f11-main .f7-field-responsible {
    max-width: 300px;
}
/* Reference pickers (F-54 / F-8..F-14 / F-5 / F-15 etc.) are edit-only:
   the "add" dropdown/input is hidden outside edit mode; selected chips stay
   visible. Covers any tag-chips picker inside a doc-row regardless of section. */
.doc-row:not(.editing) .f7-tag-input-row,
.doc-row:not(.editing) .f7-form-select-row {
    display: none;
}
.f14-main .f7-field-responsible {
    max-width: 340px;
}
.f14-main .doc-two-selects .doc-projektotojas.f11-radio-wrap {
    flex: 0 0 auto !important;
    width: auto !important;
}
.f14-main
    .doc-two-selects
    .doc-projektotojas.f11-radio-wrap
    + .doc-projektotojas {
    flex: 0 1 auto !important;
    width: auto !important;
    max-width: 400px;
}
.f14-main .f11-radio-wrap .radio-group {
    margin-bottom: 6px;
}

/* F-11 radio in detail fields */
.f11-radio-wrap {
    flex-shrink: 0;
    width: auto !important;
}
.f11-radio-wrap .radio-group {
    flex-direction: row;
    gap: 16px;
    margin-top: 25px;
}
.input-wrap .radio-group input {
    padding: 0px;
}
.input-wrap .radio-group .radio-wrap {
    display: flex;
    pointer-events: auto;
}
.f20-inline-row .checkbox-wrap {
    pointer-events: auto;
}

/* Collapsible sections (F-54, F-8-F-14, Failai) */
.f7-section {
    margin-top: 28px;
    padding-top: 0;
}
.f7-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.f7-section-title {
    font-weight: 700;
    font-size: 15px;
    color: #363d4d;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.f7-section-body {
    margin-top: 16px;
}
.doc-row.editing .f7-section-body {
    background-color: #f9f9f9;
    border-radius: 16px;
    padding: 32px;
}

/* Tag input row (edit mode) */
.f7-tag-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.f7-tag-input-wrap {
    flex: 1;
    margin-bottom: 0 !important;
    position: relative;
}
.f7-tag-input-wrap .form-input {
    padding-right: 52px;
}
.f7-tag-add-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 8px;
    background-color: #2d5eee;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}
.f7-tag-add-btn::before {
    content: "+";
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
}
.f7-tag-or {
    font-weight: 400;
    font-size: 14px;
    color: #6f6f73;
    flex-shrink: 0;
}
.f7-tag-select-wrap {
    flex-shrink: 0;
    margin-bottom: 0 !important;
}

/* Form select row (edit mode) */
.f7-form-select-row {
    margin-bottom: 16px;
}
.f7-form-select-row .input-wrap {
    margin-bottom: 0;
}

/* Tags */
.f7-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.f7-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: default;
}
.f7-tag-green {
    background-color: #dcfce7;
    color: #16a34a;
}
.f7-tag-blue {
    background-color: #eaeffe;
    color: #2d5eee;
}
/* Edit mode: tags get X button */
.doc-row.editing .f7-tag {
    padding-right: 10px;
}
.f7-tag .f7-tag-remove {
    display: none;
    width: 14px;
    height: 14px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 16px;
    line-height: 1;
    color: inherit;
    opacity: 0.7;
}
.f7-tag .f7-tag-remove:hover {
    opacity: 1;
}
.doc-row.editing .f7-tag .f7-tag-remove {
    display: inline-flex;
}

/* Edit mode: show tag input rows */
.doc-row.editing .f7-tag-input-row,
.doc-row.editing .f7-form-select-row {
    display: flex !important;
}

.bottom-chat-input {
    margin-top: 20px;
}
.doc-message-mine {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.doc-message-mine .doc-message-bubble {
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    max-width: 70%;
    width: fit-content;
    background-color: #fff;
}

/* ================================ */
/* F-20 Specific                    */
/* ================================ */
.f20-extra-participant {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-top: 8px;
    overflow: visible;
}
.f20-extra-participant .participant-wrap {
    flex: 0 1 auto !important;
    max-width: 300px;
}
.f20-extra-participant .add-property {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    margin-bottom: 4px;
}
.f20-inline-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.f20-inline-text {
    font-weight: 400;
    font-size: 14px;
    color: #363d4d;
}
.f20-inline-radio {
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
}
.f20-inline-radio .radio-wrap {
    pointer-events: auto;
}
.f20-sublabel {
    font-weight: 400;
    font-size: 13px;
    color: #6f6f73;
    margin: 12px 0 4px 0;
}
.f20-altitude-label {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 0 !important;
}
.f20-gruntinis-row {
    margin-top: 12px;
}
.f20-small-input {
    margin-bottom: 0 !important;
    width: 160px;
    flex: 0 0 auto !important;
}
.f20-medium-input {
    margin-bottom: 0 !important;
    width: 200px;
    flex: 0 0 auto !important;
}
.f22-main .f18-fields-row.f20-fields-left .input-wrap,
.f24-main .f18-fields-row.f20-fields-left .input-wrap,
.f26-main .f18-fields-row.f20-fields-left .input-wrap,
.f28-main .f18-fields-row.f20-fields-left .input-wrap,
.f30-main .f18-fields-row.f20-fields-left .input-wrap,
.f32-main .f18-fields-row.f20-fields-left .input-wrap,
.f34-main .f18-fields-row.f20-fields-left .input-wrap,
.f36-main .f18-fields-row.f20-fields-left .input-wrap,
.f38-main .f18-fields-row.f20-fields-left .input-wrap,
.f42-main .f18-fields-row.f20-fields-left .input-wrap,
.f44-main .f18-fields-row.f20-fields-left .input-wrap,
.f48-main .f18-fields-row.f20-fields-left::nth-child(2) .input-wrap {
    flex: 0;
}

.f48-main .f18-fields-row .input-wrap.f18-field-auto {
    flex: 0;
}

.f42-main .f18-fields-row .input-wrap.f18-field-auto {
    flex: 0;
}

.f38-main .f18-fields-row .input-wrap.f18-field-auto {
    flex: 0;
}
.f36-main .f18-fields-row .input-wrap.f18-field-auto {
    flex: 0;
}
.f34-main .f18-fields-row .input-wrap.f18-field-auto {
    flex: 0;
}
.f32-main .f18-fields-row .input-wrap.f18-field-auto {
    flex: 0;
}
.f30-main .f18-fields-row .input-wrap.f18-field-auto {
    flex: 0;
}
.f28-main .f18-fields-row .input-wrap.f18-field-auto {
    flex: 0;
}
.f20-inline-radio {
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 24px;
}

.f20-extra-participant .participant-wrap {
    flex: 0 1 auto !important;
    max-width: fit-content;
}

.f20-inline-text {
    font-weight: 400;
    font-size: 14px;
    color: #363d4d;
    margin-top: 26px;
}
.f20-extra-participant {
    margin-top: 20px;
}
.f20-checkbox-row {
    margin-top: 20px;
}
.f20-two-selects-tight {
    margin-top: 8px;
}
.f20-field-no-mt {
    margin-top: 0 !important;
}
.f20-sublabel-lg {
    margin-top: 24px;
}
.f20-field-tight {
    margin-top: 8px;
}
.f20-inline-row-md {
    margin-top: 16px;
}
.f20-sprendimas-title {
    margin-top: 24px;
}
.doc-section-divider {
    border: none;
    border-top: 1px solid #e1e1e1;
    margin: 24px 0;
}
.f34-description-box {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 20px 0;
}
.f34-description-box p {
    font-size: 14px;
    font-weight: 400;
    color: #363d4d;
    line-height: 1.6;
    margin: 0;
}
.f34-description-box .form-input:disabled {
    background: #fff;
}
.f20-pastabos-field {
    margin-top: 20px;
}
.f20-attach-wrap {
    position: relative;
}
.f20-attach-input {
    padding-right: 44px;
}
.f20-attach-btn {
}
.f20-field-altitute {
    max-width: 280px;
}

/* Info icon tooltip */
.info-tooltip-icon {
    cursor: pointer;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    transition: opacity 0.2s ease;
    pointer-events: auto;
}
.info-tooltip-box {
    position: absolute;
    background: #363d4d;
    color: #fff;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.5;
    padding: 10px 14px;
    border-radius: 8px;
    width: 240px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    pointer-events: none;
}
.info-tooltip-box::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #363d4d;
}

/* ================================ */
/* F-18 Specific                    */
/* ================================ */
.f18-block {
    margin-top: 20px;
}
.f18-block-title {
    font-weight: 700;
    font-size: 15px;
    color: #363d4d;
    margin: 0 0 16px 0;
}
.f18-participants-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.f18-participants-row .participant-wrap {
    flex: 0 !important;
}
.f18-participants-row .participant-picker {
    max-width: 200px;
}
.f18-description {
    font-weight: 500;
    font-size: 15px;
    color: #363d4d;
    margin: 24px 0 8px 0;
}
.f18-participants-row .participant-wrap.doc-participant label {
    font-size: 11px;
}
.f18-fields-row {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    align-items: flex-end;
}
.f18-fields-row .input-wrap {
    flex: 1;
    margin-bottom: 0;
}
.f18-fields-row .input-wrap.f18-field-auto {
    flex: 1;
}
.f18-fields-row .input-wrap.date-input {
    flex: 0 0 auto !important;
    width: 170px;
}
.f18-fields-row .select2-container {
    width: 100% !important;
}
.f18-section-title {
    font-weight: 700;
    font-size: 18px;
    color: #363d4d;
    margin: 32px 0 16px 0;
}

/* ================================ */
/* F-17 Specific                    */
/* ================================ */
.f17-akto-nr {
    flex-shrink: 0;
    width: auto !important;
    margin-bottom: 0 !important;
}
.f17-akto-input {
    display: flex;
    align-items: center;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.f17-akto-prefix {
    padding: 10px 0 10px 16px;
    font-weight: 600;
    font-size: 14px;
    color: #363d4d;
    white-space: nowrap;
}
.f17-akto-input .form-input {
    border: none !important;
    width: 70px;
    padding-left: 8px;
}
.f17-akto-input .form-input:disabled {
    background: #eeeeee;
}
.f17-turinys {
    flex: 1;
    min-width: 0;
    margin-bottom: 0 !important;
}
.doc-action-icons-sm {
    padding: 14px 19px;
    border-radius: 8px;
}

/* Product picker dropdown (F-54, F-8-F-14) */
.f7-picker-wrap {
    position: relative;
}
.f7-picker-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 18px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    color: #363d4d;
    white-space: nowrap;
}

.f7-picker-trigger:hover {
    border-color: #2d5eee;
}
.f7-picker-trigger img {
    width: 10px;
    height: 10px;
    margin-left: 4px;
}
.f7-picker-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 380px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(16, 24, 40, 0.14);
    z-index: 200;
    padding: 28px;
}
.f7-picker-wrap.open .f7-picker-dropdown {
    display: block;
}
.f7-picker-title {
    font-weight: 700;
    font-size: 18px;
    color: #363d4d;
    margin: 0 0 20px 0;
}
.f7-picker-search {
    position: relative;
    margin-bottom: 20px;
}
.f7-picker-search input {
    width: 100%;
    padding: 12px 44px 12px 18px;
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    font-size: 14px;
    color: #363d4d;
    background: #fff;
    outline: none;
}
.f7-picker-search input:focus {
    border-color: #2d5eee;
}
.f7-picker-search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    opacity: 0.35;
}
.f7-picker-list {
    max-height: 300px;
    overflow-y: auto;
}
.f7-picker-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
}
.f7-picker-item:last-child {
    border-bottom: none;
}
.f7-picker-item-name {
    font-weight: 500;
    font-size: 15px;
    color: #363d4d;
}
.f7-picker-item.selected .f7-picker-item-name {
    color: #2d5eee;
    font-weight: 600;
}

.additional-forms .f7-picker-wrap.open .f7-picker-dropdown {
    left: 0;
}
.f7-picker-item-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    font-weight: 500;
    line-height: 1;
    flex-shrink: 0;
}
.f7-picker-item-btn.add-btn {
    background-color: #2d5eee;
    color: #fff;
}
.f7-picker-item-btn.add-btn:hover {
    background-color: #2350d4;
}
.f7-picker-item-btn.remove-btn {
    background-color: #d6e0fb;
    color: #2d5eee;
}
.f7-picker-item-btn.remove-btn:hover {
    background-color: #c0cffa;
}
body .f3-main .select2-container .select2-selection--single {
    border-radius: 8px !important;
}
body .f3-main .select2-container {
    width: 100% !important;
}

.f3-main .f3-input-contract {
    max-width: 19.2%;
}

.f3-main .f3-input-date {
    max-width: 19.2%;
}
.f4-main .doc-row-header {
    flex-wrap: wrap;
}

.doc-row.white-box-shadow {
    position: relative;
}

.f4-main .doc-row-header {
    flex-wrap: wrap;
    padding-right: 50px;
}

.doc-row .doc-expand-btn {
    position: absolute;
    right: 42px;
    top: 54px;
}
.doc-header-fields {
    min-width: fit-content;
}

.f60-main .doc-two-selects,
.f58-main .doc-two-selects,
.f59-main .doc-two-selects,
.f61-main .doc-two-selects {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.doc-row.white-box-shadow .doc-row-header {
    padding-right: 50px;
}

.f60-participants-row {
    flex-wrap: wrap;
    margin-top: 20px;
}
.f60-header-top {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    width: 100%;
}

.doc-row-header {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.f32-main .f18-fields-row.f20-fields-left .input-wrap {
    margin-right: 20px;
}

.f32-main .f18-fields-row.f20-fields-left .input-wrap.f18-field-auto label {
    margin-bottom: 20px;
}

.f34-main .f18-fields-row.f20-fields-left .input-wrap.f18-field-auto label {
    margin-bottom: 20px;
}

.doc-file-list .doc-add-file .add-property {
    width: 32px;
    height: 32px;
    background-size: 12px 12px;
}

.doc-row-header {
    flex-wrap: wrap;
}

.content-header-left .content-header-icon {
    white-space: nowrap;
}

.forms-content .content-header-bar {
    position: sticky;
    top: -24px;
    height: 90px;
    z-index: 999;
}

body .messages-filter .select2-container--open .select2-selection--single {
    border: 1px solid #2c64e9 !important;
}

.f20-extra-participant .input-wrap label {
    font-size: 11px;
}

/* ================================ */
/* RESPONSIVE                       */
/* ================================ */

@media only screen and (min-width: 768px) {
    .arrow-bottom.doc-row.white-box-shadow .doc-row-header {
        padding-right: 0px;
    }

    .arrow-bottom.doc-row .doc-expand-btn {
        position: relative;
        right: auto;
        top: auto;
    }
}

@media only screen and (max-width: 1400px) {
    .manager-info {
        display: flex;
        align-items: center;
        gap: 12px;
        min-width: auto;
    }
    .managers-status-wrap {
        width: auto;
        display: flex;
        gap: 20px;
        justify-content: flex-end;
    }
    .manager-details-wrap {
        width: auto;
        display: flex;
        gap: 20px;
        align-items: center;
    }
    .manager-details {
        display: flex;
        align-items: center;
        gap: 24px;
        flex: auto;
        margin-left: 32px;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    .manager-expand-btn {
        margin-left: 10px;
    }
    .f7-two-participants {
        flex-wrap: wrap;
        gap: 12px;
    }
}

@media only screen and (max-width: 1024px) {
    .doc-row .doc-expand-btn {
        position: absolute;
        right: 25px;
        top: 54px;
    }
    .mobile-form-sidebar {
        display: flex;
    }
    .forms-section {
        margin-top: -48px;
    }
    .mobile-form-sidebar {
        display: flex;
        align-items: center;
        gap: 8px;
        font-weight: 700;
        font-size: 15px;
        color: #363d4d;
        cursor: pointer;
    }

    .content-header-actions {
        gap: 8px;
    }
    .forms-sidebar {
        position: fixed !important;
        top: 64px !important;
        left: -100%;
        width: 100%;
        height: calc(100vh - 64px) !important;
        z-index: 9999;
        border-right: none;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        padding: 0 24px;
        max-width: 320px;
        overflow-y: auto;
        padding-bottom: 40px;
    }
    .forms-sidebar.sidebar-open {
        left: 0;
    }
    .forms-sidebar .sidebar-top {
        padding-top: 24px;
    }
    .forms-sidebar .sidebar-top::before {
        width: calc(100% + 48px);
        left: -24px;
    }
    .forms-sidebar .most-used::before {
        width: calc(100% + 48px);
        left: -24px;
    }
    .forms-content {
        padding: 20px;
    }
    .content-header-bar {
        margin: -20px -20px 20px -20px;
        padding: 14px 20px;
    }
    .mobile-sidebar-overlay.visible {
        display: block;
    }
    .mobile-form-sidebar {
        order: 1;
        font-weight: 700;
        font-size: 15px;
        padding: 9px 16px;
        border: 1px solid #e1e1e1;
        max-height: 40px;
        border-radius: 16px;
    }
    .content-header-actions {
        order: 2;
    }
    .content-header-left {
        order: 3;
        width: 100%;
        font-weight: 600;
        font-size: 14px;
        margin-top: 16px;
        padding-top: 16px;
        position: relative;
    }
    .content-header-left {
        display: flex;
        align-items: flex-start;
        gap: 24px;
    }

    .content-header-left:before {
        width: 100vw;
        position: absolute;
        height: 1px;
        background-color: #e1e1e1;
        top: 0;
        content: "";
        left: -20px;
    }
    .content-header-bar {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .content-header-icon {
        width: auto;
        height: auto;
        background-color: #f6f6f6;
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px 15px;
    }
    .manager-row-header {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
    }
    .manager-details {
        display: flex;
        align-items: center;
        gap: 10px;
        flex: auto;
        margin-left: 0px;
        justify-content: space-between;
        flex-wrap: wrap;
        width: 100%;
    }
    .manager-info {
        order: 1;
    }
    .manager-details {
        order: 3;
    }
    .manager-expand-btn {
        order: 2;
    }
    .manager-details-wrap,
    .managers-status-wrap {
        width: 100%;
    }
    .managers-status-wrap {
        display: flex;
        gap: 20px;
        justify-content: flex-start;
    }
    .manager-row-header {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 10px;
    }
    .manager-row {
        background-color: #fff;
        border: 1px solid #eee;
        border-radius: 16px;
        box-shadow: 0 5px 15px 0 rgba(0, 0, 0, 0.05);
        overflow: hidden;
        padding: 16px 24px;
    }
    .manager-name {
        font-weight: 600;
        font-size: 16px;
    }
    .content-header-title {
        line-height: 23px;
    }
    .manager-detail,
    .manager-detail {
        font-size: 12px;
    }
    .manager-fields {
        display: flex;
        gap: 14px;
        padding-top: 24px;
        margin-top: 30px;
        border-top: 1px solid #eee;
        flex-direction: column;
    }
    .manager-row.expanded .manager-row-body {
        max-height: 100%;
    }
    .manager-cert-view {
        display: flex;
        align-items: flex-start;
        gap: 7px;
        flex-direction: column;
    }
    .manager-row-footer {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        padding: 0px 0px;
        flex-direction: column;
    }
    .manager-meta {
        display: flex;
        gap: 12px;
        flex-direction: column;
    }
    .manager-actions {
        display: flex;
        align-items: center;
        margin-top: 24px;
        justify-content: center;
        width: 100%;
        gap: 40px;
    }
    .titulinis-card .two-cols-inputs {
        flex-direction: column;
        gap: 0;
    }
    .titulinis-card .two-cols-inputs.full-width-first .input-wrap:first-child,
    .titulinis-card
        .two-cols-inputs.full-width-first
        .input-wrap.participant-wrap {
        flex: 1 1 100%;
        width: 100%;
    }
    .titulinis-card .two-cols-inputs .input-wrap {
        margin-bottom: 16px;
    }
    .titulinis-lapas-main .titulinis-card .two-cols-inputs .input-wrap {
        margin-bottom: 32px;
    }

    .titulinis-lapas-main .titulinis-card .two-cols-inputs:first-of-type {
        margin-bottom: 0px;
    }
    .titulinis-lapas-main .titulinis-card .two-cols-inputs:last-of-type {
        margin-bottom: 0px;
    }

    .titulinis-lapas-main
        .titulinis-card
        .two-cols-inputs.full-width-first
        .input-wrap.participant-wrap {
        margin-bottom: 0px;
    }
    .titulinis-form .manager-row {
        padding: 16px 24px;
    }
    .radio-group,
    .checkbox-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .titulinis-save-btn {
        width: 100%;
    }
    .participant-wrap {
        flex: 1 1 100% !important;
    }
    .participant-picker {
        max-width: 100%;
    }
    .three-cols-inputs {
        flex-direction: column;
        gap: 0;
    }
    .three-cols-inputs .input-wrap {
        margin-bottom: 16px;
    }
    .three-cols-inputs .input-wrap.participant-wrap {
        flex: 1 1 100%;
    }
    .section-notice {
        flex-wrap: wrap;
        padding: 16px 20px;
        font-size: 13px;
    }
    .checkbox-group-wrap {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px 24px;
        width: 100%;
    }
    .titulinis-card .two-cols-inputs,
    .forms-layout .form-group {
        margin-bottom: 32px;
    }

    /* F2 tablet */
    .f2-row.white-box-shadow {
        padding: 20px 24px;
    }
    .f2-row-fields {
        flex-wrap: wrap;
    }
    .f2-input-name {
        flex: 1 1 100%;
    }
    .f2-input-sm,
    .f2-input-date {
        width: auto;
        flex: 1;
    }
    .f2-row-header .f2-row-fields {
        flex: auto;
    }

    /* F3 tablet */
    .f3-new-participant.white-box-shadow {
        padding: 24px;
    }
    .f3-new-row {
        flex-wrap: wrap;
    }
    .f3-new-row .input-wrap {
        flex: 1 1 calc(33% - 8px);
        min-width: 150px;
    }
    .f3-new-bottom {
        flex-wrap: wrap;
        gap: 16px;
    }

    /* Doc-row tablet */
    .doc-row.white-box-shadow {
        padding: 20px 24px;
    }
    .doc-row-header {
        flex-wrap: wrap;
        gap: 12px;
    }
    /* Break header-fields so children join parent flex — no ordering yet */
    .doc-header-fields {
        display: contents;
    }
    .doc-detail-fields {
        flex-wrap: wrap;
    }
    .doc-field-name {
        flex: 1 1 100%;
    }
    .doc-projektotojas {
        max-width: 100%;
    }

    /* F7 tablet */
    .f7-two-participants {
        flex-wrap: wrap;
        width: 100%;
        gap: 12px;
    }
    .f7-field-responsible {
        max-width: 100%;
    }
    .forms-section .participant-wrap {
        flex: 0 1 auto;
        width: fit-content;
    }
}

@media only screen and (max-width: 768px) {
    .content-header-left .form-tag {
        font-weight: 700;
        font-style: Bold;
        font-size: 12px;
        width: auto;
    }

    .doc-file-list .doc-add-file .add-property {
        width: 32px;
        height: 32px;
        background-color: rgba(45, 94, 238, 1);
        border-radius: 8px;
        background-image: url(/assets/icons/button-plus.svg);
        background-repeat: no-repeat;
        background-position: center center;
        background-size: 12px 12px;
        border: 2px solid #2d5eee;
        display: block;
    }
    .f20-gruntinis-row {
        margin-top: 12px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    .f20-small-input {
        margin-bottom: 0 !important;
        width: 100%;
        flex: 0 0 auto !important;
    }

    .f20-extra-participant {
        display: flex;
        align-items: flex-end;
        gap: 12px;
        margin-top: 8px;
        overflow: visible;
        flex-wrap: wrap;
    }

    .f20-extra-participant .participant-wrap {
        max-width: 100%;
    }
    .f20-two-selects-tight.doc-two-selects {
        display: flex;
        gap: 12px !important;
        margin-top: 16px;
        flex-direction: row !important;
    }

    .f18-fields-row {
        display: flex;
        gap: 12px;
        margin-top: 12px;
        align-items: flex-end;
        flex-direction: column;
    }

    .f18-fields-row .input-wrap.date-input {
        flex: 0 0 auto !important;
        width: 100%;
    }
    .forms-section .participant-wrap {
        flex: 1 1 100% !important;
    }
    .doc-row.white-box-shadow .doc-row-header {
        padding-right: 0;
    }

    .doc-row .doc-expand-btn {
        position: absolute;
        right: 25px;
        top: 30px;
    }
    .doc-row-header .select2-container {
        width: 100% !important;
    }
    .doc-header-fields .input-wrap {
        width: 100%;
    }
    .forms-section {
        margin-top: -25px;
    }
    .checkbox-group-wrap {
        grid-template-columns: repeat(1, 1fr);
        gap: 12px 24px;
        width: 100%;
    }

    /* F2 mobile */
    .f2-row-header {
        flex-wrap: wrap;
        align-items: flex-start;
    }
    .f2-row-fields {
        order: 2;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    .f2-row-actions {
        order: 1;
        margin-right: auto;
        margin-bottom: 16px;
        margin-left: 0;
    }
    .f2-row-header .manager-expand-btn {
        order: 1;
        margin-bottom: 16px;
    }
    .f2-input-name {
        flex: 1 1 100%;
        width: 100%;
    }
    .f2-row-fields .f2-input-sm {
        width: calc(50% - 6px);
        flex: none;
    }
    .f2-input-date {
        width: 100%;
        flex: 1 1 100%;
    }
    .f2-row-fields .input-wrap {
        margin-bottom: 12px;
    }
    .f2-extra {
        margin-top: 0;
    }
    .f2-row-footer {
        justify-content: center;
    }
    .f2-add-desktop {
        display: none;
    }
    .f2-add-mobile {
        display: block;
    }

    /* F3 mobile */
    .f3-new-header {
        flex-wrap: wrap;
        gap: 16px;
    }
    .f3-new-row {
        flex-direction: column;
        gap: 0;
    }
    .f3-new-row .input-wrap {
        min-width: 100%;
        margin-bottom: 12px;
    }
    .f3-input-contract,
    .f3-input-date {
        max-width: 100%;
    }
    .f3-new-bottom {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    .f3-new-checkboxes {
        flex-direction: column;
        gap: 12px;
    }
    .f3-invite-btn {
        width: 100%;
        justify-content: center;
    }

    /* Doc-row mobile */
    .doc-row-header {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
    }
    /* Break header-fields so children join parent flex */
    .doc-header-fields {
        display: contents;
    }
    /* Row 1: date + weather + action icons + chevron */
    .doc-date {
        order: 0;
    }
    .f7-weather {
        order: 1;
        flex-shrink: 0;
        width: auto;
    }
    .doc-action-icons {
        order: 2;
    }
    .doc-row .doc-expand-btn {
        order: 3;
        margin-left: auto;
    }
    /* Row 2: statinys/projekto dalis select */
    .doc-select-wrap {
        order: 4;
        max-width: 100%;
        width: 100%;
    }
    .doc-toggle-wrap {
        order: 5;
        margin-left: 0;
        margin-bottom: 0;
    }
    /* Row 3: participants full width */
    .doc-header-right {
        order: 6;
        width: 100%;
        margin-left: 0;
    }
    .doc-participant .participant-picker {
        max-width: 100%;
    }
    /* Detail fields: name full, stadija+nr side by side, date full */
    .doc-detail-fields {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }
    .doc-field-name {
        flex: 1 1 100%;
    }
    .doc-field-sm {
        flex: 1;
        min-width: 0;
    }
    .doc-field-date {
        width: 100%;
        flex: 1 1 100%;
    }
    .doc-detail-fields .input-wrap {
        margin-bottom: 0;
    }
    .doc-projektotojas {
        max-width: 100% !important;
        width: 100% !important;
    }
    .doc-two-selects {
        flex-direction: column;
        gap: 0;
    }
    .doc-two-selects .doc-projektotojas {
        margin-top: 16px;
    }
    .doc-message-bubble {
        max-width: 90%;
    }
    .doc-chat-input-row {
        width: 100%;
        flex-direction: column;
    }
    .doc-chat-input-field {
        flex: 1;
        position: relative;
        display: flex;
        gap: 12px;
        width: 100%;
    }
    .doc-chat-send {
        flex-shrink: 0;
        width: 100%;
        text-align: center;
        display: flex;
        justify-content: center;
    }

    /* F7 mobile */
    .f7-weather {
        gap: 8px;
        order: 1;
        width: auto;
        flex-shrink: 0;
    }
    .f7-two-participants {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    .f7-field-unit,
    .f7-field-qty {
        width: auto;
        flex: 1;
    }
    .f7-field-responsible {
        max-width: 100%;
    }
    .f7-tag-input-row {
        flex-wrap: wrap;
    }
    .f7-tag-input-wrap {
        flex: 1 1 100%;
    }
    .f7-picker-dropdown {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        width: 100%;
        background: #fff;
        border: 1px solid #eee;
        border-radius: 16px;
        box-shadow: 0 8px 32px rgba(16, 24, 40, 0.14);
        z-index: 200;
        padding: 28px;
        left: 0;
    }
    .doc-row.editing .f7-tag-input-row,
    .doc-row.editing .f7-form-select-row {
        display: flex !important;
        flex-direction: column;
    }
    .f7-picker-wrap,
    .f7-picker-trigger {
        width: 100%;
    }
}

@media only screen and (max-width: 480px) {
}

.forms-sidebar {
    padding-bottom: 0;
    overflow-x: hidden;
    transition: width 0.3s ease, min-width 0.3s ease, padding-left 0.3s ease,
        padding-right 0.3s ease;
}

.sidebar-top-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sidebar-collapse-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 10px;
    color: #363d4d;
    transition: background-color 0.2s ease;
    position: absolute;
    right: -7px;
    background-color: #f9f9f9;
}

.sidebar-section-name {
    display: flex;
    align-items: center;
    gap: 6px;
}

.collapsed .sidebar-collapse-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    color: #363d4d;
    transition: background-color 0.2s ease;
    position: fixed;
    left: 94px;
    background-color: #f9f9f9;
}
.sidebar-collapse-btn:hover {
    background-color: #f6f6f6;
}
.sidebar-collapse-icon {
    width: 24px;
    height: 24px;
    background-image: url(/assets/icons/select-arrow.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px 10px;
    display: block;
    transform: rotate(90deg);
    transition: transform 0.3s ease;
    background-color: #f9f9f9;
}

.sidebar-footer {
    position: sticky;
    bottom: 0;
    margin: 24px -40px 0;
    padding: 18px 40px;
    background-color: #fff;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    z-index: 2;
}
.sidebar-footer-label {
    font-weight: 700;
    font-size: 15px;
    color: #363d4d;
}
.sidebar-status-pill {
    font-weight: 600;
    font-size: 13px;
    line-height: 1;
    padding: 7px 14px;
    border-radius: 999px;
    color: #fff;
    white-space: nowrap;
}
.sidebar-status-pill.status-started {
    background-color: #ff9c38;
}
.sidebar-status-pill.status-signed {
    background-color: #2bb673;
}

.forms-sidebar.collapsed {
    width: 110px;
    min-width: 92px;
    padding-left: 40px;
    padding-right: 20px;
    z-index: 9999;
}

.forms-sidebar.collapsed .sidebar-collapse-icon {
    transform: rotate(-90deg);
}

.forms-sidebar.collapsed .sidebar-object-name {
    display: none;
}
.forms-sidebar.collapsed .sidebar-top {
    padding-left: 0;
    padding-right: 0;
}
.forms-sidebar.collapsed .sidebar-top-actions {
    width: 100%;
    justify-content: space-between;
}

.forms-sidebar.collapsed .sidebar-top::before,
.forms-sidebar.collapsed .most-used::before {
    width: 100%;
    left: 0;
}

.forms-sidebar.collapsed .sidebar-group-label {
    display: none;
}
.forms-sidebar.collapsed .sidebar-group-title {
    justify-content: center;
    margin-bottom: 18px;
}

.forms-sidebar.collapsed .sidebar-section-name {
    display: none;
}
.forms-sidebar.collapsed .sidebar-section-title {
    font-size: 14px;
}

.forms-sidebar.collapsed .link-label {
    display: none;
}
.forms-sidebar.collapsed .sidebar-links li a {
    justify-content: center;
    gap: 0;
    padding: 5px 0;
}

.forms-sidebar.collapsed .sidebar-subcategory {
    font-size: 0;
    line-height: 0;
    height: 0;
    margin: 6px 0;
    padding: 0;
    overflow: hidden;
    color: transparent;
}

.forms-sidebar.collapsed .sidebar-footer {
    margin-left: -14px;
    margin-right: -14px;
    padding-left: 8px;
    padding-right: 8px;
    justify-content: center;
    display: none;
}
.forms-sidebar.collapsed .sidebar-footer-label {
    display: none;
}
.forms-sidebar.collapsed .sidebar-status-pill {
    padding: 6px 10px;
    font-size: 12px;
}

@media (max-width: 1024px) {
    .sidebar-collapse-btn {
        display: none;
    }
    .forms-sidebar.collapsed {
        width: 100%;
        min-width: 0;
        padding-left: 24px;
        padding-right: 24px;
    }
}

.help-trigger-btn {
    color: #9f9f9f;
    border: none;
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
    font-family: inherit;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 990;
    background-color: transparent;
    font-family: Fustat;
    font-weight: 600;
    font-size: 12px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    padding-left: 0;
    transition: all 0s;
}
.help-trigger-btn:hover {
    color: #2d5eee;
    transition: all 0s;
}

.help-trigger-btn:hover img {
    filter: brightness(0) saturate(100%) invert(27%) sepia(75%) saturate(2680%)
        hue-rotate(220deg) brightness(95%) contrast(96%);
    transition: all 0s;
}

.help-drawer-overlay {
    position: fixed;
    top: 80px;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(31, 41, 55, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}
.help-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.help-drawer {
    position: fixed;
    top: 80px;
    right: 0;
    width: 460px;
    max-width: 100%;
    height: calc(100vh - 80px);
    background-color: #fff;
    box-shadow: -12px 0 32px rgba(0, 0, 0, 0.08);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.help-drawer.open {
    transform: translateX(0);
}
.help-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 32px 20px;
    border-bottom: 1px solid #eee;
    gap: 16px;
}
.help-drawer-title {
    font-weight: 700;
    font-size: 20px;
    color: #363d4d;
    margin: 0;
    line-height: 1.35;
}
.help-drawer-form-tag {
    font-weight: 700;
    margin-right: 6px;
}
.help-drawer-form-tag:empty {
    display: none;
}
.help-drawer-close {
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
}
.help-drawer-close:hover {
    background-color: #f6f6f6;
}
.help-drawer-close img {
    width: 22px;
    height: 22px;
}
.help-drawer-body {
    overflow-y: auto;
    padding: 24px 32px 32px;
    flex: 1;
    font-size: 15px;
    color: #363d4d;
    line-height: 1.55;
    scrollbar-width: thin;
    scrollbar-color: #c6cbd4 transparent;
}
.help-drawer-body::-webkit-scrollbar {
    width: 4px;
}
.help-drawer-body::-webkit-scrollbar-thumb {
    background-color: #c6cbd4;
    border-radius: 999px;
}
.help-drawer-body h4 {
    font-weight: 700;
    font-size: 16px;
    color: #363d4d;
    margin: 20px 0 10px;
}
.help-drawer-body h4:first-child {
    margin-top: 0;
}
.help-drawer-body p {
    margin: 0 0 12px;
    color: #141414;
}
.help-drawer-body p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .help-drawer {
        width: 100%;
    }
    .help-drawer-header {
        padding: 20px 20px 16px;
    }
    .help-drawer-body {
        padding: 20px;
    }
}

@media (max-width: 1024px) {
    .help-drawer-overlay {
        top: 64px;
    }
    .help-drawer {
        top: 64px;
        height: calc(100vh - 64px);
    }
}

.doc-color-dropdown {
    min-width: 220px;
    padding: 6px 0;
}
.doc-color-option {
    gap: 10px;
    padding: 9px 14px;
}
.doc-color-check {
    width: 16px;
    height: 16px;
    border: 1.5px solid #c6cbd4;
    border-radius: 4px;
    flex-shrink: 0;
    background-color: #fff;
    position: relative;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.doc-color-option.selected .doc-color-check {
    background-color: #2d5eee;
    border-color: #2d5eee;
}
.doc-color-option.selected .doc-color-check::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.doc-color-label {
    flex: 1;
    font-weight: 500;
    font-size: 14px;
    color: #363d4d;
}
.doc-color-option .doc-color-swatch {
    margin-left: auto;
    width: 16px;
    height: 16px;
    border-radius: 4px;
}
.doc-color-edit-btn {
    width: 100%;
    border: none;
    background: none;
    border-top: 1px solid #eee;
    margin-top: 4px;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    color: #2d5eee;
    cursor: pointer;
    transition: background-color 0.15s ease;
    font-family: inherit;
}
.doc-color-edit-btn:hover {
    background-color: #f3f6ff;
}
.doc-color-edit-plus {
    display: inline-block;
    margin-right: 4px;
    font-weight: 700;
}

.tag-editor-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(31, 41, 55, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1100;
}
.tag-editor-overlay.open {
    opacity: 1;
    visibility: visible;
}
.tag-editor-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.96);
    width: 560px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 64px);
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(16, 24, 40, 0.18);
    padding: 32px;
    z-index: 1101;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.tag-editor-modal.open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}
.tag-editor-title {
    font-weight: 700;
    font-size: 18px;
    color: #363d4d;
    margin: 0 0 24px;
}
.tag-editor-cols {
    display: grid;
    grid-template-columns: 100px 1fr 44px;
    gap: 16px;
    padding: 0 0 10px;
    font-weight: 500;
    font-size: 13px;
    color: #9f9f9f;
}
.tag-editor-rows {
    overflow-y: auto;
    padding-right: 4px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scrollbar-width: thin;
    scrollbar-color: #c6cbd4 transparent;
}
.tag-editor-rows::-webkit-scrollbar {
    width: 4px;
}
.tag-editor-rows::-webkit-scrollbar-thumb {
    background-color: #c6cbd4;
    border-radius: 999px;
}
.tag-editor-row {
    display: grid;
    grid-template-columns: 100px 1fr 44px;
    gap: 16px;
    align-items: center;
}
.tag-editor-color-select {
    height: 44px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    cursor: pointer;
    background-color: #fff;
    transition: border-color 0.15s ease;
}
.tag-editor-color-select:hover {
    border-color: #c6cbd4;
}
.tag-editor-color-select .doc-color-swatch {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}
.tag-editor-caret {
    width: 10px;
    height: 10px;
    background-image: url(/assets/icons/select-arrow.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
.tag-editor-name {
    height: 44px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 14px;
    color: #363d4d;
    font-family: inherit;
    background-color: #fff;
    transition: border-color 0.15s ease;
}
.tag-editor-name:focus {
    outline: none;
    border-color: #2d5eee;
}
.tag-editor-name::placeholder {
    color: #9f9f9f;
}
.tag-editor-trash {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.15s ease;
    background-image: url(/assets/icons/Trash.svg);
    background-position: center;
    background-repeat: no-repeat;
}
.tag-editor-trash:hover {
    background-image: url(/assets/icons/Trash-red-tag.svg);
}

.tag-editor-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f1f2f4;
    gap: 16px;
    flex-wrap: wrap;
}
.tag-editor-add-btn,
.tag-editor-save-btn,
.tag-editor-cancel-btn {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.tag-editor-add-btn {
    color: #2d5eee;
}
.tag-editor-add-btn:hover {
    color: #2d5eee;
}

.tag-editor-add-btn:hover {
    color: #2d5eee;
}
.tag-editor-add-plus {
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
}
.tag-editor-actions {
    display: flex;
    gap: 8px;
}
.tag-editor-save-btn,
.tag-editor-cancel-btn {
    color: #363d4d;
}
.tag-editor-save-btn:hover,
.tag-editor-cancel-btn:hover {
    color: #2d5eee;
}
.tag-editor-icon {
    font-size: 16px;
    line-height: 1;
    color: #9f9f9f;
    font-weight: 700;
}

.tag-editor-save-btn .tag-editor-icon.tag-editor-icon-check {
    background-image: url(/assets/icons/check-tag.svg);
    width: 14px;
    height: 14px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.tag-editor-cancel-btn .tag-editor-icon.tag-editor-icon-x {
    background-image: url(/assets/icons/x-mark-tag.svg);
    width: 14px;
    height: 14px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.tag-editor-save-btn:hover .tag-editor-icon.tag-editor-icon-check {
    background-image: url(/assets/icons/check-tag-blue.svg);
}

.tag-editor-cancel-btn:hover .tag-editor-icon.tag-editor-icon-x {
    background-image: url(/assets/icons/x-mark-tag-blue.svg);
}

@media (max-width: 640px) {
    .tag-editor-modal {
        padding: 24px 20px;
        border-radius: 16px;
    }
    .tag-editor-cols,
    .tag-editor-row {
        grid-template-columns: 70px 1fr 36px;
        gap: 5px;
    }
    .tag-editor-trash {
        width: 36px;
    }
    .tag-editor-footer {
        gap: 8px;
    }
}

.participant-picker {
    padding: 6px 18px 6px 10px;
}

.participant-picker--invited .participant-icon img {
    filter: brightness(0) saturate(100%) invert(70%) sepia(50%) saturate(2521%)
        hue-rotate(334deg) brightness(109%) contrast(102%);
}
.participant-picker .participant-icon {
    width: 34px;
    height: 34px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

.participant-picker--hover {
    border-color: #2d5eee;
    background: #fff;
}

.participant-picker--invited {
    border-color: #ff9c38;
    background: #fff;
    box-shadow: 0px 0px 10px 0px #ff9c384d;
}
.participant-picker--invited .participant-status {
    color: #ff9c38;
    font-weight: 500;
    font-size: 8px;
}
.participant-picker--invited .participant-icon img {
    width: 16px;
    height: 16px;
}

.participant-picker--signed {
    background: #22b573;
    border-color: #22b573;
    box-shadow: 0px 0px 10px 0px #27c96a4d;
}
.participant-picker--signed .participant-name,
.participant-picker--signed .participant-status {
    color: #fff;
}
.participant-picker--signed .participant-status {
    opacity: 0.85;
}
.participant-picker--signed .participant-icon {
    background-color: transparent;
    box-shadow: none;
}
.participant-picker--signed .participant-icon img {
    filter: brightness(0) invert(1);
    width: 14px;
    height: 14px;
}
.participant-picker--signed .participant-arrow img {
    filter: brightness(0) invert(1);
}
.participant-picker--signed:hover {
    border-color: #22b573;
}

/* Removal-requested: a signed pill the manager (DV) asked the signer (TP) to
   remove. The whole element turns red until the signer removes their signature. */
.participant-picker--removal-requested {
    background: #e03434;
    border-color: #e03434;
    box-shadow: 0px 0px 10px 0px #e034344d;
}
.participant-picker--removal-requested .participant-name,
.participant-picker--removal-requested .participant-status {
    color: #fff;
}
.participant-picker--removal-requested .participant-icon {
    background-color: transparent;
    box-shadow: none;
}
.participant-picker--removal-requested .participant-icon img,
.participant-picker--removal-requested .participant-arrow img {
    filter: brightness(0) invert(1);
}

/* No eligible participant for the field's role → click navigates to F-3. */
.participant-picker--no-participant {
    cursor: pointer;
}

/* Reason confirmation modal (remove signature). */
.pp-reason-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pp-reason-modal {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    max-width: 560px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}
.pp-reason-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #363d4d;
    text-align: center;
    margin: 0 0 24px;
}
.pp-reason-modal-input {
    width: 100%;
    min-height: 140px;
    resize: vertical;
    margin-bottom: 24px;
}
.pp-reason-modal-actions {
    display: flex;
    gap: 16px;
}
.pp-reason-modal-actions .black-border-btn,
.pp-reason-modal-actions .red-btn {
    flex: 1;
    justify-content: center;
}

.participant-dropdown--invite {
    min-width: 280px;
    padding: 12px 0;
    max-height: 260px;
    overflow: scroll;
    scrollbar-width: none;
}
.participant-dd-section {
    padding: 0 16px;
}
.participant-dd-label {
    font-weight: 500;
    font-size: 12px;
    color: #9f9f9f;
    padding: 6px 0 10px;
}
.participant-dd-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    cursor: pointer;
    font-size: 14px;
    color: #363d4d;
    border-radius: 8px;
    transition: background-color 0.15s ease;
}
.participant-dd-section .participant-dd-item {
    padding: 10px 8px;
    margin: 0 -8px;
}
.participant-dd-section .participant-dd-item:hover {
    background-color: #f6f6f6;
}
.participant-dd-name {
    font-weight: 500;
    color: #363d4d;
}
.participant-dd-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    color: #2d5eee;
    font-size: 13px;
    white-space: nowrap;
}
.participant-dd-action img {
    width: 10px;
    height: 10px;
}
.participant-dd-divider {
    height: 1px;
    background-color: #f1f2f4;
    margin: 10px 0;
}

.participant-dropdown--compact {
    min-width: 220px;
    padding: 8px 0;
}
.participant-dropdown--compact .participant-dd-header {
    padding: 8px 16px 10px;
    font-size: 12px;
    color: #9f9f9f;
    font-weight: 500;
    border-bottom: 1px solid #f1f2f4;
    margin-bottom: 4px;
}
.participant-dropdown--compact .participant-dd-item {
    padding: 10px 16px;
    gap: 10px;
    justify-content: flex-start;
    border-radius: 0;
}
.participant-dropdown--compact button.participant-dd-item {
    width: 100%;
    border: 0;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    font: inherit;
    text-align: left;
}
.participant-dropdown--compact .participant-dd-item:hover {
    background-color: #f6f6f6;
}
.participant-action-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
}
.participant-action-icon img {
    width: 16px;
    height: 16px;
}
.participant-action-label {
    font-weight: 500;
    font-size: 14px;
    color: #363d4d;
}
.participant-action-sign .participant-action-icon,
.participant-action-sign .participant-action-label {
    color: #22b573;
}
.participant-action-unsign .participant-action-icon,
.participant-action-unsign .participant-action-label {
    color: #e03434;
}

.doc-row.arrow-bottom .doc-detail-fields {
    align-items: flex-end;
}
.doc-row.arrow-bottom .doc-expand-btn--side {
    align-self: flex-end;
    margin-bottom: 10px;
    margin-left: 4px;
    flex-shrink: 0;
}

#certificatesContainer .cert-card {
    position: relative;
}
.cert-card-remove {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.15s ease;
    padding: 0;
}
.cert-card-remove:hover {
    background-color: #e5e7eb;
}
.cert-card-remove img {
    width: 12px;
    height: 12px;
    display: block;
}

.content-header-filter {
    display: none;
    gap: 12px;
    align-items: center;
    background-color: #fff;
    padding: 16px 40px 16px;
    margin: 0px -40px 24px -40px;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
    gap: 20px;
    border-top: 1px solid #eee;
}
.content-header-bar:has(~ .content-header-filter.open) {
    border-bottom-color: transparent;
    box-shadow: none;
    margin-bottom: 0;
}
.content-header-filter.open {
    display: flex;
}

.manager-status-dot.finished.not-active {
    filter: brightness(0) saturate(100%);
}
.content-action-btn.action-filter.active {
    background-color: #eaeffe;
    background-image: url(/assets/icons/Funnel-blue-fill.svg);
    border-color: #c5d2fb;
}
.content-action-btn.action-filter.filter-has-selected {
    background-color: #fff2e4;
    background-image: url(/assets/icons/Funnel-orange.svg);
    border-color: 1px solid #ff9c38;
}
.header-filter-item {
    flex: 1;
    height: 40px;
    padding: 0 14px;
    border: 1px dashed #e5e7eb;
    border-radius: 8px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
    transition: border-color 0.15s ease;
    user-select: none;
}
.header-filter-item:hover {
}
.header-filter-label {
    font-weight: 500;
    font-size: 14px;
    color: #9f9f9f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.header-filter-arrow {
    width: 10px;
    height: 10px;
    background-image: url(/assets/icons/arrow-filter-black.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    flex-shrink: 0;
}
.header-filter-item--active .header-filter-arrow {
    background-image: url(/assets/icons/arrow-filter-white.svg);
}

.header-filter-item--active .header-filter-arrow {
    background-image: url(/assets/icons/arrow-filter-white.svg);
}

.header-filter-item.dropdown-open .header-filter-arrow {
    background-image: url(/assets/icons/arrow-filter-blue-new.svg);
}

.header-filter-item--active.dropdown-open .header-filter-arrow {
    background-image: url(/assets/icons/arrow-filter-white.svg);
}

.header-filter-date-input {
    font-size: 14px !important;
}

.content-header-filter .header-filter-date-input[readonly]:not([type="checkbox"]):not([type="radio"]) {
    background-color: transparent !important;
}

.header-filter-item:hover {
    color: #2d5eee !important;
    border: 1px solid #2d5eee !important;
}

.header-filter-item:hover .header-filter-label {
    color: #2d5eee !important;
}
.header-filter-item--active:hover {
    background-color: #2d5eee !important;
}

.header-filter-item--active:hover .header-filter-label {
    color: #fff !important;
}

.header-filter-calendar {
    width: 16px;
    height: 16px;
    background-image: url(/assets/icons/calendar-input.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .content-header-filter {
        padding: 12px 20px 16px;
        margin: -6px -20px 24px -20px;
        gap: 8px;
    }
    .header-filter-item {
        min-width: 140px;
    }
}
@media (max-width: 640px) {
    .header-filter-item {
        flex: 1 0 calc(50% - 4px);
        min-width: 0;
    }
}

.content-action-btn.action-export {
    background-image: url(/assets/icons/FileArrowUp.svg);
}
.content-action-btn.action-export:hover {
    background-image: url(/assets/icons/FileArrowUp-blue.svg);
}

.tag-editor-color-select {
    position: relative;
}
.tag-editor-color-select.open {
    border-color: #2d5eee;
}
.tag-editor-color-popup {
    position: fixed;
    left: 30px;
    padding: 10px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.14);
    display: none;
    z-index: 1110;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-top: 150px;
}
.tag-editor-color-select.open .tag-editor-color-popup {
    display: grid;
}
.tag-color-option {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid transparent;
    padding: 0;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
}
.tag-color-option:hover {
    transform: scale(1.12);
}
.tag-color-option.active {
    border-color: #363d4d;
}

.tag-color-custom {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: conic-gradient(
        from 0deg,
        #ff3b30,
        #ff9500,
        #ffcc00,
        #34c759,
        #5ac8fa,
        #007aff,
        #af52de,
        #ff2d55,
        #ff3b30
    );
    border: 2px solid transparent;
    transition: transform 0.15s ease, border-color 0.15s ease;
}
.tag-color-custom:hover {
    transform: scale(1.12);
    border-color: #363d4d;
}
.tag-color-custom-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    border: none;
    padding: 0;
    background: none;
}

.header-filter-date-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    outline: none;
    padding: 0;
    font-family: inherit;
    font-weight: 500;
    font-size: 14px;
    color: #363d4d;
    cursor: pointer;
}
.header-filter-date-input::placeholder {
    color: #9f9f9f;
    font-weight: 500;
}
.header-filter-date .header-filter-calendar {
    cursor: pointer;
}

.journal-ending-header {
    justify-content: flex-start;
    margin-bottom: 0;
}
.journal-ending-header .content-header-title {
    font-family: inherit;
    font-weight: 700;
    font-size: 16px;
    color: #363d4d;
}

.journal-ending-wrap {
    display: flex;
    justify-content: center;
    padding: 40px 20px 60px;
}
.journal-ending-card {
    width: 100%;
    max-width: 620px;
    background-color: #fff;
    border-radius: 20px;
    padding: 36px 40px;
}
.journal-ending-title {
    font-family: Fustat;
    font-weight: 700;
    font-size: 22px;
    line-height: 1.35;
    color: #363d4d;
    margin: 0 0 18px;
}
.journal-ending-object {
    white-space: nowrap;
}
.journal-ending-description {
    font-size: 14px;
    line-height: 1.6;
    color: #6f6f73;
    margin: 0 0 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eee;
}
.journal-ending-stats {
    display: flex;
    gap: 24px;
    padding-bottom: 22px;
    border-bottom: 1px solid #eee;
}
.journal-ending-stats-label {
    font-weight: 700;
    font-size: 15px;
    color: #363d4d;
    flex-shrink: 0;
    padding-top: 2px;
}
.journal-ending-stats-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.journal-ending-stat {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 14px;
    color: #363d4d;
}
.journal-ending-stat-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}
.journal-ending-stat-row > div {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.journal-ending-stat-label {
    font-size: 14px;
    color: #363d4d;
}
.journal-ending-stat-value {
    font-weight: 700;
}
.journal-ending-stat-signed {
    color: #363d4d;
}
.journal-ending-stat-unsigned {
    color: #e03434;
}
.journal-ending-review-link {
    font-size: 14px;
    color: #363d4d;
    white-space: nowrap;
}
.journal-ending-review-link:hover {
    color: #2d5eee;
}
.journal-ending-warning {
    font-weight: 700;
    font-size: 14px;
    color: #e03434;
    margin: 18px 0 26px;
}
.journal-ending-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.journal-ending-actions .black-border-btn,
.journal-ending-actions .blue-btn {
    flex: 1;
    min-width: 180px;
    text-align: center;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.04em;
    display: flex;
    justify-content: center;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .journal-ending-card {
        padding: 28px 22px;
        border-radius: 16px;
    }
    .journal-ending-title {
        font-size: 18px;
    }
    .journal-ending-stats {
        flex-direction: column;
        gap: 10px;
    }
    .journal-ending-stat-row {
        flex-wrap: wrap;
    }
}

.journal-ending2-wrap {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.journal-ending2-card {
    background-color: #fff;
    border-radius: 20px;
    padding: 32px 36px;
}
.journal-ending2-title {
    font-family: Fustat;
    font-weight: 700;
    font-size: 22px;
    line-height: 1.35;
    color: #363d4d;
    margin: 0 0 14px;
}
.journal-ending2-object {
    white-space: nowrap;
}
.journal-ending2-description {
    font-size: 14px;
    line-height: 1.6;
    color: #6f6f73;
    margin: 0 0 22px;
}
.journal-ending2-meta {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 24px;
    padding: 22px 24px;
    border-radius: 16px;
    background-color: #fff;
    margin-bottom: 22px;
    box-shadow: none;
    border: none;
    background-color: #f6f6f6;
}
.journal-ending2-meta-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.journal-ending2-meta-label {
    font-weight: 600;
    font-size: 13px;
}
.journal-ending2-meta-value {
    font-weight: 700;
    font-size: 16px;
    color: #363d4d;
}
.journal-ending2-select {
    margin-bottom: 0 !important;
}
.journal-ending2-hint {
    font-size: 13px;
    line-height: 1.55;
    color: #6f6f73;
    margin: 0 0 28px;
}

body .journal-ending-section .select2-container .select2-selection--single {
    border-radius: 8px;
}
.journal-ending2-signers-title {
    font-family: Fustat;
    font-weight: 700;
    font-size: 18px;
    color: #363d4d;
    margin: 0 0 18px;
}
.journal-ending2-signers-table {
    width: 100%;
    border-collapse: collapse;
}
.journal-ending2-signers-table th {
    font-weight: 700;
    font-size: 13px;
    color: #363d4d;
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #e1e1e1;
}
.journal-ending2-signers-table td {
    font-size: 14px;
    color: #363d4d;
    padding: 16px 12px;
    border-bottom: 1px solid #e1e1e1;
    vertical-align: middle;
}
.journal-ending2-signers-table tr:last-child td {
    border-bottom: none;
}
.journal-ending2-signers-check {
    width: 40px;
}
.journal-ending2-checkbox {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}
.journal-ending2-checkbox input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.journal-ending2-checkbox-box {
    width: 16px;
    height: 16px;
    border: 1px solid #c6cbd4;
    border-radius: 5px;
    background-color: #fff;
    position: relative;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.journal-ending2-checkbox input:checked + .journal-ending2-checkbox-box {
    background-color: #2d5eee;
    border-color: #2d5eee;
}
.journal-ending2-checkbox input:checked + .journal-ending2-checkbox-box::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 3px;
    width: 4px;
    height: 7px;
    border: solid #fff;
    border-width: 0 1px 1px 0;
    transform: rotate(45deg);
}
.journal-ending2-actions {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    flex-wrap: wrap;
    padding-right: 4px;
}
.journal-ending2-actions .red-btn,
.journal-ending2-actions .blue-btn {
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.04em;
}

@media (max-width: 1100px) {
    .journal-ending2-meta {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 640px) {
    .journal-ending2-card {
        padding: 24px 20px;
        border-radius: 16px;
    }
    .journal-ending2-title {
        font-size: 18px;
    }
    .journal-ending2-meta {
        grid-template-columns: 1fr;
        padding: 18px 18px;
        gap: 18px;
    }
    .journal-ending2-signers-table th,
    .journal-ending2-signers-table td {
        padding: 10px 8px;
        font-size: 13px;
    }
    .journal-ending2-actions {
        justify-content: stretch;
    }
    .journal-ending2-actions .red-btn,
    .journal-ending2-actions .blue-btn {
        flex: 1;
        text-align: center;
        padding: 0px 0px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.content-header-search {
    display: none;
    background-color: #fff;
    padding: 0px 40px 20px;
    margin: 0px -40px 24px -40px;
    border-bottom: 1px solid #eee;
}
.content-header-bar:has(~ .content-header-search.open) {
    border-bottom-color: transparent;
    box-shadow: none;
    margin-bottom: 0;
}
.content-header-search.open {
    display: block;
}
.content-action-btn.action-search.active {
    background-color: #eaeffe;
    background-image: url(/assets/icons/search-blue-fill.svg);
    border-color: #c5d2fb;
}
.header-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.header-search-input {
    flex: 1;
    width: 100%;
    height: 48px;
    padding: 0 48px 0 18px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background-color: #fff;
    font-family: inherit;
    font-weight: 500;
    font-size: 15px;
    color: #363d4d;
    outline: none;
    transition: border-color 0.15s ease;
}
.header-search-input:focus {
    border-color: #2d5eee;
}
.header-search-input::placeholder {
    color: #9f9f9f;
}
.header-search-clear {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6f6f73;
    transition: background-color 0.15s ease;
    padding: 0;
}
.header-search-clear:hover {
    background-color: #f1f2f4;
    color: #363d4d;
}

@media (max-width: 1024px) {
    .content-header-search {
        padding: 5px 20px 16px;
        margin: 0px -20px 24px -20px;
    }
}

/* Lock the date selector by default — only clickable in edit mode */
.doc-row .doc-date {
    pointer-events: none;
}
.doc-row .doc-date .doc-date-chevron {
    visibility: hidden;
}
.doc-row.editing .doc-date {
    pointer-events: auto;
    cursor: pointer;
}
.doc-row.editing .doc-date .doc-date-chevron {
    visibility: visible;
}

.managers-list-main .manager-row {
    padding: 25px 40px;
}

.manager-details-wrap .manager-company {
    color: #363d4d;
}

.managers-list-main .managers-list {
    max-width: 1490px;
    width: 100%;
    margin: auto;
}

.managers-list-main .manager-name {
    white-space: nowrap;
}

.managers-list-main .manager-row-header {
    display: flex;
    align-items: flex-start;
}

.titulinis-lapas-main .manager-name {
    white-space: nowrap;
}

.titulinis-lapas-main .manager-row-header {
    display: flex;
    align-items: flex-start;
}

.titulinis-lapas-main .titulinis-form .manager-row {
    padding: 25px 40px;
}

.f1-main .manager-name {
    white-space: nowrap;
}

.f1-main .manager-row-header {
    display: flex;
    align-items: flex-start;
}

.f1-main .manager-details {
    min-width: 0;
}

.f1-main .manager-details-wrap {
    min-width: 0;
}

.f1-main .manager-details-wrap .manager-role,
.f1-main .manager-details-wrap .manager-company {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
}

.f1-main .manager-details-wrap .manager-role {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.f1-main .manager-details-wrap .manager-company {
    display: flex;
    align-items: center;
    gap: 8px;
}

.f1-main .manager-details-wrap .manager-company img {
    flex-shrink: 0;
}

.f1-main .manager-details-wrap .manager-company .manager-company-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.f1-main .titulinis-form .manager-row {
    padding: 25px 40px;
}

.f3-main .manager-name {
    white-space: nowrap;
}

.f3-main .manager-row-header {
    display: flex;
    align-items: flex-start;
}

.f3-main .titulinis-form .manager-row {
    padding: 25px 40px;
}

.managers-status-wrap {
    align-items: center;
}

.f2-add-btn.add-property {
    width: 32px;
    height: 32px;
    background-color: rgba(45, 94, 238, 1);
    border-radius: 8px;
    background-image: url(/assets/icons/button-plus.svg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 10px 10px;
    border: 2px solid #2d5eee;
    display: block;
}

/* ================================================================== */
/* CONTAINER QUERIES — make .titulinis-form look like mobile/tablet    */
/* when its OWN width gets narrow (regardless of viewport size)        */
/* ================================================================== */

/* TABLET STYLES — when .titulinis-form is 1024px or narrower */
@container titulinis (max-width: 1024px) {
    .doc-row .doc-expand-btn {
        position: absolute;
        right: 25px;
        top: 54px;
    }
    .manager-row-header {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 10px;
    }
    .manager-details {
        display: flex;
        align-items: center;
        gap: 10px;
        flex: auto;
        margin-left: 0px;
        justify-content: space-between;
        flex-wrap: wrap;
        width: 100%;
        order: 3;
    }
    .manager-info {
        order: 1;
    }
    .manager-expand-btn {
        order: 2;
    }
    .manager-details-wrap,
    .managers-status-wrap {
        width: 100%;
    }
    .managers-status-wrap {
        display: flex;
        gap: 20px;
        justify-content: flex-start;
    }
    .manager-row {
        background-color: #fff;
        border: 1px solid #eee;
        border-radius: 16px;
        box-shadow: 0 5px 15px 0 rgba(0, 0, 0, 0.05);
        overflow: hidden;
        padding: 16px 24px;
    }
    .manager-name {
        font-weight: 600;
        font-size: 16px;
    }
    .manager-detail {
        font-size: 12px;
    }
    .manager-fields {
        display: flex;
        gap: 14px;
        padding-top: 24px;
        margin-top: 30px;
        border-top: 1px solid #eee;
        flex-direction: column;
    }
    .manager-row.expanded .manager-row-body {
        max-height: 100%;
    }
    .manager-cert-view {
        display: flex;
        align-items: flex-start;
        gap: 7px;
        flex-direction: column;
    }
    .manager-row-footer {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        padding: 0px 0px;
        flex-direction: column;
    }
    .manager-meta {
        display: flex;
        gap: 12px;
        flex-direction: column;
    }
    .manager-actions {
        display: flex;
        align-items: center;
        margin-top: 24px;
        justify-content: center;
        width: 100%;
        gap: 40px;
    }
    .titulinis-card .two-cols-inputs {
        flex-direction: column;
        gap: 0;
        margin-bottom: 32px;
    }
    .titulinis-card .two-cols-inputs.full-width-first .input-wrap:first-child,
    .titulinis-card
        .two-cols-inputs.full-width-first
        .input-wrap.participant-wrap {
        flex: 1 1 100%;
        width: 100%;
    }
    .titulinis-card .two-cols-inputs .input-wrap {
        margin-bottom: 16px;
    }
    .titulinis-lapas-main .titulinis-card .two-cols-inputs .input-wrap {
        margin-bottom: 32px;
    }
    .titulinis-lapas-main .titulinis-card .two-cols-inputs:first-of-type {
        margin-bottom: 0px;
    }
    .titulinis-lapas-main .titulinis-card .two-cols-inputs:last-of-type {
        margin-bottom: 0px;
    }
    .titulinis-lapas-main
        .titulinis-card
        .two-cols-inputs.full-width-first
        .input-wrap.participant-wrap {
        margin-bottom: 0px;
    }
    .titulinis-form .manager-row {
        padding: 16px 24px;
    }
    .radio-group,
    .checkbox-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .titulinis-save-btn {
        width: 100%;
    }
    .participant-wrap {
        flex: 1 1 100% !important;
    }
    .participant-picker {
        max-width: 100%;
    }
    .three-cols-inputs {
        flex-direction: column;
        gap: 0;
    }
    .three-cols-inputs .input-wrap {
        margin-bottom: 16px;
    }
    .three-cols-inputs .input-wrap.participant-wrap {
        flex: 1 1 100%;
    }
    .section-notice {
        flex-wrap: wrap;
        padding: 16px 20px;
        font-size: 13px;
    }
    .checkbox-group-wrap {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px 24px;
        width: 100%;
    }
    .form-group {
        margin-bottom: 32px;
    }

    /* F2 tablet */
    .f2-row.white-box-shadow {
        padding: 20px 24px;
    }
    .f2-row-fields {
        flex-wrap: wrap;
    }
    .f2-input-name {
        flex: 1 1 100%;
    }
    .f2-input-sm,
    .f2-input-date {
        width: auto;
        flex: 1;
    }
    .f2-row-header .f2-row-fields {
        flex: auto;
    }
    .f2-action-btn img {
        width: 14px;
        height: 14px;
    }
    .f2-row-fields {
        order: 2;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    .f2-row-actions {
        order: 1;
        margin-right: auto;
        margin-bottom: 16px;
        margin-left: 0;
    }
    .f2-row-header .manager-expand-btn {
        order: 1;
        margin-top: 12px;
    }
    .f2-row-header {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    /* F3 tablet */
    .f3-new-participant.white-box-shadow {
        padding: 24px;
    }
    .f3-new-row {
        flex-wrap: wrap;
    }
    .f3-new-row .input-wrap {
        flex: 1 1 calc(33% - 8px);
        min-width: 150px;
    }
    .f3-new-bottom {
        flex-wrap: wrap;
        gap: 16px;
    }
    .f1-main .manager-cancel-btn,
    .f3-main .manager-cancel-btn {
        margin-left: -10px;
    }
    .f3-main .f3-new-participant.white-box-shadow {
        margin-bottom: 16px;
    }
    .f3-main .f3-new-bottom {
        margin-top: 10px;
    }
    .f1-main .manager-detail,
    .manager-detail {
        font-size: 12px;
        width: 50%;
    }
    .f1-main .titulinis-card .two-cols-inputs .input-wrap:last-child {
        margin-bottom: 0;
    }
    .f1-main .titulinis-card .two-cols-inputs .input-wrap {
        margin-bottom: 32px;
    }
    .f1-main .form-group .two-cols-inputs .input-wrap {
        margin-bottom: 12px;
    }
    .f1-main .three-cols-inputs .input-wrap {
        margin-bottom: 32px;
    }
    .f1-main .three-cols-inputs .input-wrap:last-child {
        margin-bottom: 0px;
    }

    /* Doc-row tablet */
    .doc-row.white-box-shadow {
        padding: 20px 24px;
    }
    .doc-row-header {
        flex-wrap: wrap;
        gap: 12px;
    }
    .doc-header-fields {
        display: contents;
    }
    .doc-detail-fields {
        flex-wrap: wrap;
    }
    .doc-field-name {
        flex: 1 1 100%;
    }
    .doc-projektotojas {
        max-width: 100%;
    }

    /* F4 tablet */
    .f4-main .doc-header-right {
        margin-left: 0;
        flex-shrink: 0;
    }

    /* F7 tablet */
    .f7-two-participants {
        flex-wrap: wrap;
        width: 100%;
        gap: 12px;
    }

    .forms-section .participant-wrap {
        flex: 0 1 auto;
        width: fit-content;
    }

    /* manager-fields wrap (1220px) */
    .manager-fields .input-wrap {
        flex: 1 1 calc(50% - 8px);
    }
    .manager-fields {
        display: flex;
        gap: 16px;
        padding-top: 24px;
        margin-top: 24px;
        border-top: 1px solid #eee;
        flex-wrap: wrap;
    }
}

/* MOBILE STYLES — when .titulinis-form is 768px or narrower */
@container titulinis (max-width: 768px) {
    .forms-section .participant-wrap {
        flex: 0 1 auto;
        width: 100%;
    }

    .doc-file-list .doc-add-file .add-property {
        width: 32px;
        height: 32px;
        background-color: rgba(45, 94, 238, 1);
        border-radius: 8px;
        background-image: url(/assets/icons/button-plus.svg);
        background-repeat: no-repeat;
        background-position: center center;
        background-size: 12px 12px;
        border: 2px solid #2d5eee;
        display: block;
    }
    .f20-gruntinis-row {
        margin-top: 12px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    .f20-small-input {
        margin-bottom: 0 !important;
        width: 100%;
        flex: 0 0 auto !important;
    }
    .f20-extra-participant {
        display: flex;
        align-items: flex-end;
        gap: 12px;
        margin-top: 8px;
        overflow: visible;
        flex-wrap: wrap;
    }
    .f20-extra-participant .participant-wrap {
        max-width: 100%;
    }
    .f20-two-selects-tight.doc-two-selects {
        display: flex;
        gap: 12px !important;
        margin-top: 16px;
        flex-direction: row !important;
    }
    .f18-fields-row {
        display: flex;
        gap: 12px;
        margin-top: 12px;
        align-items: flex-end;
        flex-direction: column;
    }
    .f18-fields-row .input-wrap.date-input {
        flex: 0 0 auto !important;
        width: 100%;
    }
    .participant-wrap {
        flex: 1 1 100% !important;
    }
    .doc-row.white-box-shadow .doc-row-header {
        padding-right: 0;
    }
    .doc-row .doc-expand-btn {
        position: absolute;
        right: 25px;
        top: 30px;
    }
    .doc-row-header .select2-container {
        width: 100% !important;
    }
    .doc-header-fields .input-wrap {
        width: 100%;
    }
    .checkbox-group-wrap {
        grid-template-columns: repeat(1, 1fr);
        gap: 12px 24px;
        width: 100%;
    }

    /* F2 mobile */
    .f2-row-header {
        flex-wrap: wrap;
        align-items: flex-start;
    }
    .f2-row-fields {
        order: 2;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    .f2-row-actions {
        order: 1;
        margin-right: auto;
        margin-bottom: 16px;
        margin-left: 0;
    }
    .f2-row-header .manager-expand-btn {
        order: 1;
        margin-bottom: 16px;
    }
    .f2-input-name {
        flex: 1 1 100%;
        width: 100%;
    }
    .f2-row-fields .f2-input-sm {
        width: calc(50% - 6px);
        flex: none;
    }
    .f2-input-date {
        width: 100%;
        flex: 1 1 100%;
    }
    .f2-row-fields .input-wrap {
        margin-bottom: 12px;
    }
    .f2-extra {
        margin-top: 0;
    }
    .f2-row-footer {
        justify-content: center;
    }
    .f2-add-desktop {
        display: none;
    }
    .f2-add-mobile {
        display: block;
    }

    /* F3 mobile */
    .f3-new-header {
        flex-wrap: wrap;
        gap: 16px;
    }
    .f3-new-row {
        flex-direction: column;
        gap: 0;
    }
    .f3-new-row .input-wrap {
        min-width: 100%;
        margin-bottom: 12px;
    }
    .f3-input-contract,
    .f3-input-date {
        max-width: 100%;
    }
    .f3-new-bottom {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    .f3-new-checkboxes {
        flex-direction: column;
        gap: 12px;
    }
    .f3-invite-btn {
        width: 100%;
        justify-content: center;
    }
    .f3-main .f3-new-participant .f3-new-row:first-child {
        margin-bottom: 0;
    }

    /* Doc-row mobile */
    .doc-row-header {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
    }
    .doc-header-fields {
        display: contents;
    }
    .doc-date {
        order: 0;
    }
    .f7-weather {
        order: 1;
        flex-shrink: 0;
        width: auto;
    }
    .doc-action-icons {
        order: 2;
    }
    .doc-row .doc-expand-btn {
        order: 3;
        margin-left: auto;
    }
    .arrow-bottom.doc-row .doc-expand-btn {
        position: absolute;
        right: 25px;
        top: 30px;
    }
    .doc-select-wrap {
        order: 4;
        max-width: 100%;
        width: 100%;
    }
    .doc-toggle-wrap {
        order: 5;
        margin-left: 0;
        margin-bottom: 13px;
    }
    .doc-header-right {
        order: 6;
        width: 100%;
        margin-left: 0;
    }
    .doc-participant .participant-picker {
        max-width: 100%;
    }
    .doc-detail-fields {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }
    .doc-field-name {
        flex: 1 1 100%;
    }
    .doc-field-sm {
        flex: 1;
        min-width: 0;
    }
    .doc-field-date {
        width: 100%;
        flex: 1 1 100%;
    }
    .doc-detail-fields .input-wrap {
        margin-bottom: 0;
    }
    .doc-projektotojas {
        max-width: 100% !important;
        width: 100% !important;
    }
    .doc-two-selects {
        flex-direction: column;
        gap: 0;
    }
    .doc-two-selects .doc-projektotojas {
        margin-top: 16px;
    }
    .doc-message-bubble {
        max-width: 90%;
    }
    .doc-chat-input-row {
        width: 100%;
        flex-direction: column;
    }
    .doc-chat-input-field {
        flex: 1;
        position: relative;
        display: flex;
        gap: 12px;
        width: 100%;
    }
    .doc-chat-send {
        flex-shrink: 0;
        width: 100%;
        text-align: center;
        display: flex;
        justify-content: center;
    }

    /* F7 mobile */
    .f7-weather {
        gap: 8px;
        order: 1;
        width: auto;
        flex-shrink: 0;
    }
    .f7-two-participants {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    .f7-field-unit,
    .f7-field-qty {
        width: auto;
        flex: 1;
    }
    .f7-field-responsible {
        max-width: 100%;
    }
    .f7-tag-input-row {
        flex-wrap: wrap;
    }
    .f7-tag-input-wrap {
        flex: 1 1 100%;
    }
    .f7-picker-dropdown {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        width: 100%;
        background: #fff;
        border: 1px solid #eee;
        border-radius: 16px;
        box-shadow: 0 8px 32px rgba(16, 24, 40, 0.14);
        z-index: 200;
        padding: 28px;
        left: 0;
    }
    .doc-row.editing .f7-tag-input-row,
    .doc-row.editing .f7-form-select-row {
        display: flex !important;
        flex-direction: column;
    }
    .f7-picker-wrap,
    .f7-picker-trigger {
        width: 100%;
    }

    /* Participant + add buttons */
    .participant-picker {
        width: 100%;
    }
    .mobile-add-btn-text {
        display: block;
        font-family: Fustat;
        font-weight: 800;
        font-size: 13px;
        text-transform: uppercase;
        color: #fff;
        text-align: center;
    }
    .managers-add-btn-wrap .add-property {
        width: 100%;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-position: calc(50% - 40px) center;
    }
    .add-property {
        width: 40px;
        height: 40px;
        background-color: rgba(45, 94, 238, 1);
        border-radius: 8px;
        background-image: url(/assets/icons/button-plus.svg);
        background-repeat: no-repeat;
        background-position: center center;
        background-size: 14px 14px;
        border: 2px solid #2d5eee;
        display: block;
    }

    .doc-header-fields {
        margin-right: auto;
    }

    .doc-header-right {
        margin-left: 0;
    }

    .protokolai-main .doc-header-fields .input-wrap {
        width: auto;
    }

    .protokolai-main .doc-row-header {
        align-items: flex-end;
    }
}

body .select2-container--focus:disabled .select2-selection--single {
    border-color: #eeeeee;
}

.forms-content
    .select2-container--default.select2-container--disabled
    .select2-selection--single {
    border: 1px solid #e1e1e1;
}

.input-wrap.f20-small-input {
    display: inline-block;
    width: fit-content;
}
.input-wrap.f20-small-input label,
.input-wrap.f20-small-input .form-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.doc-row-header .input-wrap.doc-select-wrap label {
    font-weight: 500;
    font-style: Medium;
    font-size: 11px;
}

.forms-content .doc-participant label {
    font-size: 11px !important;
}

.f18-block-title {
    margin-top: 20px;
}
/*
.manager-row .manager-row-header {
  align-items: flex-end !important;
}
  */

.manager-details-wrap .manager-detail {
    display: flex;
    align-items: center;
}
.f18-fields-row.f20-fields-left.f20-inline-row-md {
}

.journal-ending-section .input-wrap {
    max-width: 200px;
}

.all-signed-completed {
    border: 1px solid #27c96a;
    box-shadow: 0px 5px 15px 0px #0000000d;
}

.images-files.doc-file-list .file-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: transparent;
    border: transparent;
    border-radius: 8px;
    padding: 0;
    font-size: 0;
    color: #2d5eee;
    font-weight: 500;
    max-height: 90px;
    position: relative;
}

.images-files.doc-file-list .file-badge .remove-file {
    position: absolute;
    background-image: url("/assets/icons/phtoto-x.svg");
    top: 5px;
    right: 5px;
    width: 18px;
    height: 18px;
    background-size: contain;
}

.images-files.doc-file-list .file-badge .remove-file:hover {
    position: absolute;
    background-image: url("/assets/icons/photo-x-red.svg");
}

.f34-description-box .form-input:disabled {
    background: #eeeeee;
}

.f40-main .input-wrap.date-input {
    width: auto;
    margin-bottom: 0;
}

.doc-row-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.doc-row:has(.participant-picker.open) .doc-row-header,
.doc-row:has(.participant-picker.open) .doc-header-right,
.doc-row:has(.participant-picker.open) .f7-two-participants,
.doc-row:has(.participant-picker.open) .f18-participants-row,
.doc-row:has(.participant-picker.open) .participant-wrap,
.doc-row:has(.participant-picker.open) .participant-picker {
    overflow: visible !important;
}

.doc-row:has(.participant-picker.open) {
    overflow: visible !important;
}

.participant-picker.open .participant-dropdown {
    z-index: 9999;
}

.forms-section .managers-add-btn-wrap .add-property:hover .mobile-add-btn-text {
    color: #2d5eee;
    text-decoration: none;
}

.forms-section .managers-add-btn-wrap .add-property:hover {
    text-decoration: none !important;
}

.f2-add-wrap.f2-add-desktop {
    margin-top: 24px;
    display: flex;
    width: 100%;
    justify-content: flex-end;
}

.sibar-drop {
    position: fixed;
    background: #fff;
    border: 1px solid #eeeeee;
    padding: 15px;
    font-size: 12px;
    z-index: 9999;
    box-shadow: 0px 5px 15px 0px #0000000d;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    align-items: flex-start;
    top: 120px;
    left: 200px;
}

.forms-sidebar.collapsed .sibar-drop {
    top: 120px;
    left: 40px;
}

.sibar-drop .side-link {
    white-space: nowrap;
}

.sibar-drop .side-link a {
    color: #363d4d;
    text-decoration: none !important;
}

.sibar-drop .side-link a:hover {
    color: #2d5eee;
}
.sidebar-dots-btn {
    position: relative;
}

.closed-drop-side {
    display: none;
}

.f17-akto-input {
    background: #eeeeee;
}

.f17-akto-prefix {
    padding: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #363d4d;
    white-space: nowrap;
    background-color: #ffffff;
    border-radius: 8px;
    margin-left: 8px;
}
.editing .f17-akto-input {
    background: #ffffff;
}
.f20-checkbox-row.f20-inline-row {
    margin-top: -5px;
}

.margin-min-top {
    margin-top: -23px !important;
}

.f53-main .f18-participants-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.f57-main .doc-two-selects {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    justify-content: space-between;
}

.f61-fields-row {
    padding-top: 20px;
}

.f23-summary-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-top: 16px;
}
.f23-summary-row .input-wrap {
    flex: 1;
    margin-bottom: 0;
}
.f23-summary-row .doc-expand-btn {
    position: static !important;
    flex-shrink: 0;
    margin-bottom: 4px;
}

.f26-main .f18-fields-row .input-wrap.f18-field-auto {
    flex: 0;
}

.mobile-table.journal-ending-list-mobile {
    display: none;
}
.journal-ending-list-mobile {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.mobile-journal-ending-item {
    background-color: #fff;
    border-radius: 14px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.journal-ending-mobile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.journal-ending-mobile-top .object-title-mobile {
    font-weight: 700;
    font-size: 18px;
    color: #363d4d;
}
.journal-ending-mobile-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.journal-ending-info-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}
.journal-ending-line-name {
    color: #6f6f73;
}
.journal-ending-line-value {
    color: #363d4d;
    font-weight: 500;
}
.mobile-journal-ending-item .blue-btn {
    width: 100%;
    text-align: center;
    padding: 0px 16px;
}

.forms-content::-webkit-scrollbar {
    width: 4px;
    position: absolute;
}

.forms-content {
    overflow-y: overlay;
}

.forms-content::-webkit-scrollbar-track {
    background: transparent;
}

.forms-content::-webkit-scrollbar-thumb {
    background-color: #c6cbd4;
    border-radius: 999px;
}

.forms-content::-webkit-scrollbar-thumb:hover {
    background-color: #aeb4bf;
}
.forms-content {
    overflow-y: auto;
    scrollbar-gutter: stable;
    /* arba pridėk padding-right: 0 ir leisk scrollbar'iui būti virš turinio per pseudo-konteinerį */
}

.help-trigger-btn img {
    margin-bottom: 2px;
    transition: none;
}

.sidebar-group-icon {
    margin-bottom: 2px;
}

.forms-sidebar::-webkit-scrollbar {
    width: 4px;
    position: absolute;
}

.forms-sidebar {
    overflow-y: overlay;
}

.forms-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.forms-sidebar::-webkit-scrollbar-thumb {
    background-color: #c6cbd4;
    border-radius: 999px;
}

.forms-sidebar::-webkit-scrollbar-thumb:hover {
    background-color: #aeb4bf;
}
.forms-sidebar {
    overflow-y: auto;
    scrollbar-gutter: stable;
    /* arba pridėk padding-right: 0 ir leisk scrollbar'iui būti virš turinio per pseudo-konteinerį */
}

.sidebar-object-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 70%;
    display: block;
}

.sidebar-top-title {
    display: flex;
    align-items: center;
    gap: 5px;
}

.sidebar-collapse-btn {
    margin-bottom: 26px;
}

.forms-sidebar.collapsed .sidebar-participant-name,
.forms-sidebar.collapsed .sidebar-participant-arrow {
    display: none;
}

.forms-sidebar.collapsed .sidebar-participant-trigger {
    margin-left: 10px;
}

/* Trigger (orange row) */
.sidebar-top-title-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-participant-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #f59e0b;
    font-size: 14px;
    font-weight: 500;
    width: fit-content;
}

.sidebar-participant-icon {
    width: 16px;
    height: 16px;
}

.sidebar-participant-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

.sidebar-participant-arrow {
    width: 10px;
    height: 10px;
    transition: transform 0.2s ease;
}

/* Dropdown panel */
.sidebar-participant-dropdown {
    display: none;
    position: fixed;
    top: 170px;
    left: 40px;
    width: 380px;
    z-index: 1000;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.15);
    padding: 20px;
    z-index: 99999;
}

.sidebar-participant-dropdown.open {
    display: block;
}

.sidebar-participant-title {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #363d4d;
}

.forms-sidebar {
    z-index: 99999;
}

/* Search input */
.sidebar-participant-search {
    position: relative;
    margin-bottom: 16px;
}

.sidebar-participant-search input {
    width: 100%;
    padding: 12px 40px 12px 14px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    font-size: 14px;
    color: #363d4d;
    background: #fff;
    box-sizing: border-box;
    outline: none;
}

.sidebar-participant-search input:focus {
    border-color: #2d5eee;
}
.sidebar-participant-search input:hover {
    border-color: #2d5eee;
}

.sidebar-participant-search input::placeholder {
    color: #9aa1ad;
}

.sidebar-participant-search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    pointer-events: none;
}

/* Options */
.sidebar-participant-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    cursor: pointer;
    font-size: 15px;
    color: #363d4d;
}

.sidebar-participant-option input[type="radio"] {
    display: none;
}

.sidebar-participant-radio {
    width: 18px;
    height: 18px;
    border: 1px solid #d0d5dd;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.15s;
}

.sidebar-participant-option
    input[type="radio"]:checked
    + .sidebar-participant-radio {
    border-color: #2d5eee;
    background-color: #2d5eee;
}

.sidebar-participant-option
    input[type="radio"]:checked
    + .sidebar-participant-radio::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 7px;
    height: 7px;
    background: #fff;
    border-radius: 50%;
}

.sidebar-participant-badge {
    font-family: Fustat;
    font-weight: 500;
    font-size: 13px;
    color: #27c96a;
    padding: 5px 10px;
    border-radius: 25px;
    background-color: #f3f9f7;
}

/* Divider + section label */
.sidebar-participant-divider {
    border-top: 1px solid #f0f0f3;
    margin: 12px 0;
}

.sidebar-participant-section-label {
    font-size: 13px;
    color: #6f6f73;
    margin-bottom: 4px;
}

.sidebar-participant-list {
    max-height: 240px;
    overflow-y: auto;
}

/* Apply button */
.sidebar-participant-apply {
    width: 100%;
    margin-top: 16px;
    padding: 14px;
    background: #2d5eee;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
}

/* Active filter item — orange glow */
.header-filter-item--active {
    background: #ff9c38;
    border: 1px solid #f59e0b;
    color: #fff;
}

.header-filter-item--active .header-filter-label,
.header-filter-item--active .header-filter-date-input,
.header-filter-item--active .header-filter-date-input::placeholder {
    color: #fff;
    font-weight: 500;
}

.header-filter-item--active .header-filter-arrow {
    border-color: #d97706;
}

/* Badge (e.g. "Statiniai 2") */
.header-filter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 14px;
    height: 14px;
    padding: 0 6px;
    background: #fff;
    color: #d97706;
    font-size: 10px;
    font-weight: 600;
    border-radius: 999px;
}

/* Date input inside filter pill */
.header-filter-date-input {
    border: none;
    background: transparent;
    outline: none;
    cursor: pointer;
    font-size: inherit;
    color: inherit;
    width: 80px;
}

/* Flatpickr preset buttons (added via JS) */
.flatpickr-calendar .hfc-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px;
    border-top: 1px solid #f0f0f3;
}

.flatpickr-calendar .hfc-preset {
    padding: 7px 14px;
    border: none;
    background: #f1f5fe;
    color: #363d4d;
    font-size: 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s;
}

.flatpickr-calendar .hfc-preset:hover {
    background: #e2eaff;
}

.flatpickr-calendar .hfc-preset.hfc-preset-active {
    background: #2d5eee;
    color: #fff;
}

/* Flatpickr range styling — match screenshot blue (#2d5eee) */
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.startRange,
.flatpickr-day.selected.endRange {
    background: #2d5eee;
    border-color: #2d5eee;
    color: #fff;
}

.flatpickr-day.inRange {
    background: #e2eaff;
    border-color: #e2eaff;
    box-shadow: -5px 0 0 #e2eaff, 5px 0 0 #e2eaff;
    color: #363d4d;
}

.flatpickr-day.today {
    border-color: #2d5eee;
}

.titulinis-lapas-main .titulinis-card .form-group:last-child {
    margin-bottom: 0;
}

.f1-main .titulinis-card .form-group:last-of-type {
    margin-bottom: 0;
}

.manager-row.expanded.editing,
.expanded.editing {
    border: 1px solid #2d5eee;
    box-shadow: 0px 5px 15px 0px #1d398b1a;
}

.doc-row-footer,
.f2-row-footer {
    gap: 16px;
}

.doc-row-footer .f2-cancel-link,
.f2-row-footer .f2-cancel-link {
    font-family: Fustat;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0;
    text-decoration: none !important;
    color: #343b4b !important;
    border: 1px solid #5b6374;
    background: #ffffff;
    border-radius: 10px;
    padding: 0 24px;
    min-width: 142px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
}

.doc-row-footer .f2-cancel-link:hover,
.f2-row-footer .f2-cancel-link:hover {
    color: #ffffff !important;
    border-color: #5e6677;
    background: #5e6677;
    opacity: 1;
}

.doc-row-footer .f2-save-link,
.f2-row-footer .f2-save-link {
    font-family: Fustat;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0;
    text-decoration: none !important;
    color: #ffffff !important;
    border: 1px solid #2d5eee;
    background: #2d5eee;
    border-radius: 10px;
    padding: 0 24px;
    min-width: 142px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
}

.doc-row-footer .f2-save-link:hover,
.f2-row-footer .f2-save-link:hover {
    color: #2d5eee !important;
    background: #ffffff;
    border-color: #2d5eee;
    opacity: 1;
}

.doc-row-footer .f2-cancel-link img,
.doc-row-footer .f2-save-link img,
.f2-row-footer .f2-cancel-link img,
.f2-row-footer .f2-save-link img {
    display: none !important;
    width: 18px;
    height: 18px;
}

/* ============================================ */
/* Header filter dropdowns (Statiniai / Tagai / Būsena / Dalyviai) */
/* ============================================ */

.header-filter-item {
    position: relative;
    transition: all 0.3s;
}

.header-filter-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 240px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12);
    padding: 14px;
    z-index: 50;
}

.header-filter-item.dropdown-open .header-filter-dropdown {
    display: block;
}

.header-filter-item.dropdown-open .header-filter-arrow {
    transform: rotate(90deg);
}

/* Search input inside dropdown */
.header-filter-dropdown-search {
    position: relative;
    margin-bottom: 10px;
}

.header-filter-dropdown-search input {
    width: 100%;
    padding: 10px 36px 10px 12px;
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    font-size: 13px;
    color: #363d4d;
    background: #fff;
    box-sizing: border-box;
    outline: none;
}

.header-filter-dropdown-search input::placeholder {
    color: #9aa1ad;
}

.header-filter-dropdown-search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    pointer-events: none;
}

/* Dropdown list */
.header-filter-dropdown-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 240px;
    overflow-y: auto;
}

.header-filter-dropdown-list li {
    margin: 0;
    padding: 0;
}

.header-filter-dropdown-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
    cursor: pointer;
    font-size: 13px;
    color: #363d4d;
}

.header-filter-dropdown-option input[type="checkbox"],
.header-filter-dropdown-option input[type="radio"] {
    display: none;
}

/* Custom checkbox */
.header-filter-checkbox {
    width: 16px;
    height: 16px;
    border: 2px solid #d0d5dd;
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.15s, background 0.15s;
}

.header-filter-dropdown-option
    input[type="checkbox"]:checked
    + .header-filter-checkbox {
    background: #2d5eee;
    border-color: #2d5eee;
}

.header-filter-dropdown-option
    input[type="checkbox"]:checked
    + .header-filter-checkbox::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Custom radio */
.header-filter-radio {
    width: 16px;
    height: 16px;
    border: 2px solid #d0d5dd;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.15s;
}

.header-filter-dropdown-option
    input[type="radio"]:checked
    + .header-filter-radio {
    border-color: #2d5eee;
}

.header-filter-dropdown-option
    input[type="radio"]:checked
    + .header-filter-radio::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #2d5eee;
    border-radius: 50%;
}

/* Tag color dot */
.header-filter-tag-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.header-filter-dropdown-label {
    flex: 1;
}

/* TAIKYTI apply button inside dropdown */
.header-filter-dropdown-apply {
    width: 100%;
    margin-top: 12px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Išvalyti — hidden by default, shown when any filter is active */
.header-filter-clear {
    display: none !important;
    color: #141414;
    font-weight: 500;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0%;
    text-decoration: none;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
}
.header-filter-clear.visible {
    display: inline-flex !important;
}
.filter-delete {
    background-image: url(/assets/icons/x-mark-tag.svg);
    background-repeat: no-repeat;
    background-position: center;
    width: 10px;
    height: 10px;
}

.header-filter-clear:hover {
    color: #2d5eee;
}

.header-filter-clear:hover .filter-delete {
    background-image: url(/assets/icons/x-mark-tag-blue.svg);
}

.filter-options {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.header-filter-item {
    height: 24px !important;
    max-height: 24px;
    border-radius: 25px;
}

.header-filter-apply {
    height: 30px;
    display: flex;
    align-items: center;
    padding: 0px 16px;
    font-weight: 500;
    font-size: 12px;
    line-height: 100%;
    letter-spacing: 0%;
    text-transform: capitalize;
}

.flatpickr-calendar.open {
    display: inline-block !important;
    z-index: 99999 !important;
    padding: 26px 40px !important;
    border-radius: 16px !important;
    width: fit-content !important;
    max-width: 408px;
}

.flatpickr-calendar .hfc-preset {
    border-radius: 8px !important;
}

.flatpickr-day.selected.startRange,
.flatpickr-day.startRange.startRange {
    border-radius: 10px 0 0 10px !important;
}
.flatpickr-day.selected.endRange,
.flatpickr-day.startRange.endRange,
.flatpickr-day.endRange.endRange {
    border-radius: 0 10px 10px 0 !important;
}

.flatpickr-day.inRange {
    border-radius: 0;
    -webkit-box-shadow: -4px 0 0 #eaeffe, 24px 0 0 #eaeffe !important;
    box-shadow: #eaeffe;
    background: #eaeffe !important;
    border: none !important;
    border-radius: 0 !important;
}

/* ============================================ */
/* Lithuanian month & year selectors inside Flatpickr */
/* ============================================ */

/* Custom month + year trigger buttons in calendar header */
.flatpickr-calendar .lt-fp-month-btn,
.flatpickr-calendar .lt-fp-year-btn {
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    color: #363d4d;
    padding: 6px 12px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.flatpickr-calendar .lt-fp-month-btn:hover,
.flatpickr-calendar .lt-fp-year-btn:hover {
    background: #f6f6f6;
}

.flatpickr-calendar .lt-fp-caret {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #6f6f73;
}

/* Popup containers (month + year grids) */
.flatpickr-calendar .lt-fp-popup {
    display: none;
    position: absolute;
    top: 60px;
    left: 16px;
    right: 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.18);
    padding: 18px;
    z-index: 100000;
}

.flatpickr-calendar .lt-fp-popup.open {
    display: block;
}

/* Header of month popup (year + nav arrows) */
.flatpickr-calendar .lt-fp-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 0 4px;
}

.flatpickr-calendar .lt-fp-popup-title {
    font-weight: 700;
    font-size: 15px;
    color: #363d4d;
}

.flatpickr-calendar .lt-fp-popup-nav {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background-color 0.15s ease;
}

.flatpickr-calendar .lt-fp-popup-nav:hover {
    background: #f6f6f6;
}

.flatpickr-calendar .lt-fp-popup-nav img {
    width: 12px;
    height: 12px;
}

/* Grids */
.flatpickr-calendar .lt-fp-popup-grid {
    display: grid;
    gap: 6px;
}

.flatpickr-calendar .lt-fp-month-grid {
    grid-template-columns: repeat(3, 1fr);
}

.flatpickr-calendar .lt-fp-year-grid {
    grid-template-columns: repeat(4, 1fr);
    max-height: 220px;
    overflow-y: auto;
}

.flatpickr-calendar .lt-fp-popup-cell {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 12px 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #363d4d;
    text-align: center;
    font-family: inherit;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.flatpickr-calendar .lt-fp-popup-cell:hover {
    background: #f6f6f6;
}

.flatpickr-calendar .lt-fp-popup-cell.selected {
    background: #2d5eee;
    color: #fff;
    font-weight: 600;
}

.flatpickr-calendar .lt-fp-popup-cell.selected:hover {
    background: #2451d6;
}

.address-map-picker__title {
    font-weight: 600;
}

.address-map-picker__search {
    padding: 16px 15px;
}

.address-map-picker-cancel {
    font-family: Fustat;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0;
    text-decoration: none !important;
    color: #343b4b !important;
    border: 1px solid #5b6374;
    background: #ffffff;
    border-radius: 10px;
    padding: 0 24px;
    min-width: 142px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
}

.address-map-picker-cancel:hover {
  color: #ffffff !important;
  border-color: #5e6677;
  background: #5e6677;
  opacity: 1;
}

.address-map-picker-confirm {
    font-family: Fustat;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0;
    text-decoration: none !important;
    color: #ffffff !important;
    border: 1px solid #2d5eee;
    background: #2d5eee;
    border-radius: 10px;
    padding: 0 24px;
    min-width: 142px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
}


.address-map-picker-confirm:hover {
  color: #2d5eee !important;
  background: #ffffff;
  border-color: #2d5eee;
  opacity: 1;
}

.file-badge-uploaded{
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: #f0f4ff;
  border: 1px solid #d6e0fb;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  color: #2d5eee;
  font-weight: 500;
  width: fit-content;
  margin-top: 10px;
}

.file-badge-uploadedt .remove-file {
  display: flex !important;
}

.file-badge-uploaded .remove-file {
  width: 14px;
  height: 14px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  COLOR: #2d5eee;
}

.forms-content .content-header-filter .filter-options input[readonly]:not([type="checkbox"]):not([type="radio"]) {
  background-color: #ffffff00 !important;
}

.manager-row {
  padding: 30px 40px;
}

.f1-main .titulinis-card .form-group:last-of-type {
  margin-bottom: -40px;
}

.address-map-picker__search {
outline: none;
}


.editing .doc-edit-btn img {
  filter: opacity(0.5);
}
/* Owner-scoped forms (titulinis, F-1): non-editors get a natively disabled,
   greyed-out fieldset. The <fieldset> wrapper resets its default chrome so the
   layout is unchanged; the `disabled` attribute (set server-side when the actor
   lacks edit rights) greys + locks every control inside. */
.form-readonly-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.form-readonly-fieldset[disabled] {
  opacity: 0.6;
}
.form-readonly-fieldset[disabled] input,
.form-readonly-fieldset[disabled] select,
.form-readonly-fieldset[disabled] textarea,
.form-readonly-fieldset[disabled] .form-input {
  cursor: not-allowed;
  background-color: #f3f4f6;
}

/* ============================================================
   Per-user form-row tags — checkbox rows inside the existing
   doc-colour/tag dropdown (.doc-color-dropdown). The dropdown,
   dot and "Pridėti / redaguoti" button styling is inherited.
   ============================================================ */
.doc-tag-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 13px;
  color: #1f2a44;
}
.doc-tag-option:hover { background: #f3f6fb; }
.doc-tag-option input.doc-tag-checkbox {
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
  flex: 0 0 auto;
}
.doc-tag-option .doc-tag-name { flex: 1 1 auto; }
.doc-tag-option .doc-color-swatch {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  flex: 0 0 auto;
}
.doc-tag-empty {
  padding: 8px 10px;
  color: #8a97ad;
  font-size: 13px;
}
/* The tag picker is always usable, even on read-only rows. */
.doc-row.row-readonly .doc-color-dot,
.doc-color-dot.row-control-disabled {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}

/* ============================================================
   F-4 galioja/negalioja confirm popup + locked (non-creator) toggle
   ============================================================ */
.doc-toggle-wrap--locked { cursor: not-allowed; }
.doc-toggle-wrap--locked .doc-toggle-slider { opacity: 0.7; }
.galioja-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20, 30, 60, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}
.galioja-confirm-box {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  width: min(420px, 92vw);
  box-shadow: 0 16px 48px rgba(20, 30, 60, 0.25);
}
.galioja-confirm-msg {
  margin: 0 0 20px;
  font-size: 15px;
  color: #1f2a44;
}
.galioja-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.galioja-confirm-no {
  border: 1px solid #d6dceb;
  background: #fff;
  color: #5a6b85;
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
}
.galioja-confirm-yes {
  border: 0;
  border-radius: 8px;
  padding: 8px 18px;
  cursor: pointer;
}




/* ============================================ */
/* Reusable list-row                              */
/* Author meta + action cluster + editable fields */
/* + optional collapsible body + footer with btns */
/* Used by: F-2, and any future form that needs   */
/* the same record-row layout                     */
/* ============================================ */

.list-row {
    padding: 24px 32px !important;
    border: 1px solid #eee;
    background-color: #fff;
}

.list-row.editing {
    border: 1px solid #2d5eee;
    box-shadow: 0 5px 15px 0 rgba(29, 57, 139, 0.1);
}

/* Meta row: number badge + author + action cluster */
.list-row-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    border-bottom: 1px solid #E1E1E1;
    padding-bottom: 8px;
}

.list-row-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 26px;
    padding: 0 10px;
    border-radius: 6px;
    background-color: #eaeffe;
    color: #2d5eee;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
    font-family: Fustat;

}

.list-row-author {
    font-size: 11px;
    font-weight: 400;
    color: #6f6f73;
    flex: 1;
    min-width: 0;
}

.list-row-author strong {
    color: #363d4d;
    font-weight: 700;
    margin-right: 8px;
}

.list-row-author-company {
    color: #6f6f73;
    font-weight: 400;
}

/* Action button cluster — pushed to right end of meta row */
.list-row-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.list-row-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease;
    padding: 0;
}

.list-row-action-btn:hover {
    background-color: #f6f6f6;
}

.list-row-action-btn img {
    width: 16px;
    height: 16px;
}

/* Edit btn auto-turns blue while parent row is editing */
.list-row.editing .list-row-action-btn--edit {
    background-color: #2d5eee;
}

.list-row.editing .list-row-action-btn--edit:hover {
    background-color: #2451d6;
}

.list-row.editing .list-row-action-btn--edit img {
    filter: brightness(0) invert(1);
}

/* Main fields line */
.list-row-fields {
    display: flex;
    align-items: flex-end;
    gap: 16px;
}

.list-row-fields .input-wrap {
    margin-bottom: 0;
}

.list-row-field-grow {
    flex: 1;
    min-width: 0;
}

.list-row-field-sm {
    width: 110px;
    flex-shrink: 0;
}

.list-row-field-date {
    width: 160px;
    flex-shrink: 0;
}

/* Expand arrow on the right end of the fields line */
.list-row-expand-btn {
    margin-left: 8px;
    margin-bottom: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.list-row-expand-btn img {
    width: 12px;
    height: 12px;
}

.list-row.expanded .list-row-expand-btn img {
    transform: rotate(180deg);
}

/* Collapsible body (e.g. "Kiti rodikliai") */
.list-row-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.list-row.expanded .list-row-body,
.list-row.editing .list-row-body {
    max-height: 500px;
    overflow: visible;
}

/* Generic "extra fields" wrapper inside body */
.list-row-extra {
    margin-top: 24px;
}

.list-row-extra .form-group-label {
    font-weight: 500;
    font-size: 14px;
    color: #363d4d;
    margin-bottom: 8px;
    display: block;
}

.list-row-extra textarea.form-input {
    min-height: 60px;
    resize: vertical;
}

/* Footer — pill buttons, centered, visible only while editing */
.list-row-footer {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
}

.list-row.editing .list-row-footer {
    display: flex;
}

.list-row-cancel-btn,
.list-row-save-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    min-width: 180px;
    padding: 0 32px;
    border-radius: 10px;
    font-family: Fustat, inherit;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.15s ease;
}

.list-row-cancel-btn {
    color: #363d4d !important;
    background-color: #fff;
    border: 1px solid #363D4D;
}

.list-row-cancel-btn:hover {
    background-color: #363D4D;
    border-color: #363D4D;
    color: #fff !important;
}

.list-row-save-btn {
    color: #fff !important;
    background-color: #2d5eee;
    border: 1px solid #2d5eee;
}

.list-row-save-btn:hover {
    background-color: #fff;
    border-color: #2d5eee;
    color:#2d5eee !important;
}

.list-row-cancel-btn img,
.list-row-save-btn img {
    display: none !important;
}

/* Mobile */
@media (max-width: 1024px) {
    .list-row {
        padding: 20px 24px !important;
    }
    .list-row-fields {
        flex-wrap: wrap;
        gap: 12px;
    }
    .list-row-field-grow {
        flex: 1 1 100%;
    }
    .list-row-field-sm,
    .list-row-field-date {
        flex: 1;
        width: auto;
    }
}

@media (max-width: 768px) {
    .list-row-meta {
        flex-wrap: wrap;
    }
    .list-row-author {
        order: 2;
        width: 100%;
        font-size: 13px;
    }
    .list-row-actions {
        order: 3;
        margin-left: auto;
    }
    .list-row-cancel-btn,
    .list-row-save-btn {
        min-width: 0;
        flex: 1;
    }
}

.list-row-action-btn.list-row-action-btn--edit img{
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(1%) hue-rotate(332deg) brightness(105%) contrast(101%);
    transition: all 0s;
}

.list-row-action-btn.list-row-action-btn--edit{
    background-color: #2D5EEE;
    transition: all 0s;
}

.editing .list-row-action-btn.list-row-action-btn--edit{
    background-color: #EAEFFE;
    transition: all 0s;
}

.editing .list-row-action-btn.list-row-action-btn--edit img{
    filter: brightness(0) saturate(100%) invert(28%) sepia(67%) saturate(3864%) hue-rotate(221deg) brightness(97%) contrast(92%);
    transition: all 0s;
}

.list-row-action-btn.list-row-action-btn--edit:hover {
    background-color: #EAEFFE;
    transition: all 0s;
}

.list-row-action-btn.list-row-action-btn--edit:hover  img{
    filter: brightness(0) saturate(100%) invert(28%) sepia(67%) saturate(3864%) hue-rotate(221deg) brightness(97%) contrast(92%);
    transition: all 0s;
}

.editing .list-row-action-btn.list-row-action-btn--edit:hover{ 
    background-color: #EAEFFE;
    transition: all 0s;
}

.input-wrap input {
    font-weight: 600;
}

.forms-content .input-wrap label{
    font-weight: 700;
}

.list-row-action-btn {
    width: 25px;
    height: 25px;
}

.list-row-action-btn img {
    width: 12px;
    height: 12px;
}

/* ============================================ */
/* F-4 doc list-row extensions                    */
/* ============================================ */

/* Document-style row uses .list-row + .list-row-doc */
.list-row-doc {
    padding: 24px 32px !important;
}

/* Red expired badge inside meta row */
.list-row-status-badge {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 12px;
}
.list-row-status-badge--expired {
    background-color: #fde2e1;
    color: #eb3831;
}

/* Color dot inside action cluster — slightly larger square */
.list-row-color-dot {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    display: block;
    cursor: pointer;
    margin-right: 6px;
}

/* Top row: date + toggle + signature picker */
.list-row-doc-top {
    display: flex;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.list-row-doc-top .list-row-field-date {
    width: 180px;
    flex-shrink: 0;
}

.list-row-doc-top .list-row-toggle {
    margin-bottom: 8px;
    margin-left: 0;
}

.list-row-participant {
    margin-left: auto;
    flex-shrink: 0;
}

/* Document fields row (4 inputs + expand arrow) */
.list-row-doc-fields {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 20px;
}

.list-row-doc-fields .input-wrap {
    margin-bottom: 0;
}

.list-row-field-doc-nr {
    width: 180px;
    flex-shrink: 0;
}

/* Projektotojas full-width select */
.list-row-doc-projektotojas {
    margin-bottom: 0;
}

.list-row-doc-projektotojas .input-wrap {
    margin-bottom: 0;
}

.list-row-doc-projektotojas .select2-container {
    width: 100% !important;
}

/* Sections inside body (Dokumentas / Pastabos) */
.list-row-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #f1f2f4;
}

.list-row-section:first-child {
    border-top: none;
    padding-top: 0;
    margin-top: 24px;
}

.list-row-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.list-row-section-title {
    font-weight: 700;
    font-size: 16px;
    color: #363d4d;
    margin: 0;
}

.list-row-section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 11px;
    background-color: #363d4d;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

/* Attach files list — grey pills */
.list-row-attach-files {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.list-row-attach-file {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 14px;
    border-radius: 8px;
    background-color: #eeeeee;
    color: #363d4d;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.list-row-attach-file img {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

.list-row-attach-file:hover {
    background-color: #e1e1e1;
}

.list-row-attach-file .list-row-attach-remove {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 4px;
    color: #6f6f73;
    font-size: 14px;
    line-height: 1;
}
.list-row-attach-file .list-row-attach-remove:hover {
    color: #eb3831;
}

/* Blue + button (Add file / Add message) */
.list-row-add-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background-color: #2d5eee;
    color: #fff;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease;
}

.list-row-add-btn:hover {
    background-color: #2451d6;
}

/* Toggle in list-row context — uses existing doc-toggle-* base but adjusts margin */
.list-row-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.list-row-toggle .doc-toggle-text {
    font-size: 13px;
    color: #363d4d;
    font-weight: 500;
}

/* Tone the toggle slider based on the modifier */
.list-row-toggle--off .doc-toggle-slider {
    background-color: #eb3831;
}

.list-row-toggle--on .doc-toggle-slider {
    background-color: #27c96a;
}
.list-row-toggle--on .doc-toggle-slider::before {
    transform: translateX(20px);
}

/* Participant picker positioning inside list-row */
.list-row-participant .participant-picker {
    width: auto;
    max-width: 220px;
}

/* Editing state — make sure body inputs become editable */
.list-row-doc.editing .form-input,
.list-row-doc.editing .form-input:disabled {
    background-color: #fff !important;
}
.list-row-doc.editing .form-input {
    color: #141414;
}

/* Hide collapse arrow on the first row when not expanded */
.list-row-doc:not(.expanded) .list-row-body {
    /* already handled by .list-row-body base; this just confirms */
}

/* Mobile */
@media (max-width: 1024px) {
    .list-row-doc {
        padding: 20px 24px !important;
    }
    .list-row-doc-top,
    .list-row-doc-fields {
        flex-wrap: wrap;
        gap: 12px;
    }
    .list-row-participant {
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .list-row-status-badge {
        margin-left: 0;
        margin-top: 8px;
    }
    .list-row-doc-fields .input-wrap {
        flex: 1 1 100%;
    }
    .list-row-field-doc-nr {
        width: auto;
    }
}


/* ============================================ */
/* Messages (defects) — INLINE block             */
/* Lives inside list-row-body, NOT a modal       */
/* ============================================ */

.msg-block {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #f1f2f4;
}

.msg-block-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.msg-block-title {
    font-weight: 700;
    font-size: 14px;
    color: #363d4d;
    margin: 0;
}

.msg-block-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 11px;
    background-color: #363d4d;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

/* Each defect = collapsible card */
.msg-topic {
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 10px;
}

.msg-topic + .msg-topic {
    margin-top: 0;
}

.msg-topic-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.msg-topic-title {
    display: flex;
    align-items: baseline;
    gap: 16px;
    font-weight: 600;
    font-size: 15px;
    color: #363d4d;
    margin: 0;
}

.msg-topic-number {
    color: #363d4d;
    font-weight: 700;
}

.msg-topic-name {
    color: #363d4d;
    font-weight: 500;
}

.msg-topic-collapse {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.msg-topic-collapse img {
    width: 12px;
    height: 12px;
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.msg-topic.collapsed .msg-topic-collapse img {
    transform: rotate(0deg);
}

/* Topic body — visible by default, hidden when .collapsed */
.msg-topic-body {
    padding-top: 16px;
    margin-top: 14px;
    border-top: 1px solid #eaeaea;
}

.msg-topic.collapsed .msg-topic-body {
    display: none;
}

/* Original message */
.msg-original {
    margin-bottom: 16px;
}

.msg-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #6f6f73;
    flex-wrap: wrap;
}

.msg-author {
    color: #2d5eee;
    font-weight: 600;
}

.msg-time {
    color: #363d4d;
}

.msg-text {
    font-size: 13px;
    line-height: 1.55;
    color: #141414;
    margin: 0;
}

.msg-attachments {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.msg-attachment-thumb {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
    cursor: pointer;
}

/* Replies */
.msg-replies {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
    margin-left: 20px;
}

.msg-reply {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 18px;
}

.msg-reply-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 10px;
}

.msg-reply-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
}

.msg-reply-actions {
    display: flex;
    gap: 4px;
}

.msg-reply-action {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease;
}

.msg-reply-action:hover {
    background-color: #f6f6f6;
}

.msg-reply-action img {
    width: 14px;
    height: 14px;
}

/* Composer */
.msg-composer {
    margin-top: 18px;
}

.msg-composer-label {
    display: block;
    font-weight: 500;
    font-size: 12px;
    color: #6f6f73;
    margin-bottom: 6px;
}

.msg-composer-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.msg-composer-input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.msg-composer-input {
    flex: 1;
    height: 44px;
    width: 100%;
    padding: 0 44px 0 14px;
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    background-color: #fff;
    font-family: inherit;
    font-size: 14px;
    color: #363d4d;
    outline: none;
}

.msg-composer-input:focus {
    border-color: #2d5eee;
}

.msg-composer-attach {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: inline-flex;
    align-items: center;
}

.msg-composer-attach img {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.msg-composer-send {
    background-color: #2d5eee;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0 24px;
    height: 44px;
    font-family: Fustat, inherit;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.msg-composer-send:hover {
    background-color: #2451d6;
}

@media (max-width: 640px) {
    .msg-topic {
        padding: 16px;
    }
    .msg-replies {
        margin-left: 0;
    }
    .msg-composer-row {
        flex-direction: column;
    }
    .msg-composer-send {
        width: 100%;
    }
}


.list-row.expanded .list-row-body, .list-row.editing .list-row-body {
    max-height: 100%;
    overflow: visible;
}

.list-row-color-dot {
    width: 16px;
    height: 16px;
    border-radius: 5px;
    border: none;
    padding: 0;
    cursor: pointer;
    margin-right: 6px;
    display: inline-block;
}
.list-row-color-dot:hover {
    transform: scale(1.1);
    transition: transform 0.15s ease;
}

.list-row-doc-top {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}


.list-row-participant {
    margin-left: auto;
    flex-shrink: 0;
    width: auto;
}