


.papers-list-container {
    background-color: #f1f1f1;
    border-radius: 8px;
    padding: 10px;
    margin-top: 10px;
    width: 100%;
    min-width: 800px;
    overflow-x: auto;
}

.papers-list-header {
    font-weight: bold;
    background-color: #f0f0f0;
}

.papers-list-header, .papers-list-row {
    display: grid;
    grid-template-columns: 40px 40px 500px 100px 100px 1fr;
    gap: 10px;
    padding: 5px;
    align-items: center;
    text-align: left;
}

.papers-list-row > div {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.papers-list-header > div,
.papers-list-row > div {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.papers-list-row.even {
    background-color: #ffffff;
}

.papers-list-row.odd {
    background-color: #e9ecef;
}

.papers-list-row > div {
    font-size: 12px;
}

.papers-list-row > div:first-child {
    display: flex;
    justify-content: center;
    align-items: center;
}

.papers-list-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.papers-list-row.even {
    background-color: #ffffff;
}

.papers-list-row.odd {
    background-color: #e9ecef;
}

.papers-form-container {
    margin-bottom: 80px;
}

.papers-list-row > div {
    font-size: 12px;
}

.papers-list-row > div:nth-child(-n+3) {
    text-align: left;
}

.papers-actions {
    display: flex;
    justify-content: flex-end;
    gap: 3px;
}

/* Общ стил за лабораторната форма */
.papers-wrapper {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    height: fit-content; /* 👈 това ще махне излишната височина */
    background-color: #f0f0f0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Стилизиране на самата форма */
.papers-form {
    display: flex;
    flex-direction: column;
}

/* Заглавие на формата */
.papers-header h2 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 15px;
}

.papers-header p {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
}

/* Контейнер за полетата */
.papers-box {
    display: flex;
    flex-direction: column;
}

/* Разстояние между редовете в формата */
.papers-row {
    margin-bottom: 20px;
}

/* Стил за етикетите на полетата */
.papers-label {
    font-size: 14px;
    color: #333;
    font-weight: bold;
    margin-bottom: 8px;
    text-align: left; /* Подравняване на етикетите вляво */
    display: inline-block; /* Задължително за да работи правилно с text-align */
    width: 100%; /* За да се подравни правилно с полето */
}

/* Стил за входните полета */
.papers-row input {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.papers-row-textarea {
    display: block;
    width: 100%;
}

.papers-label-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    width: 100%;
}

.papers-select {
    width: 100%;
    box-sizing: border-box;
    border-radius: 4px;
}

.papers-dropdown-container {
    position: relative;
    width: 100%;
    max-width: 100%;
}

.papers-dropdown {
    width: 100%;
    padding-right: 45px;
    box-sizing: border-box;
    height: 44px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.papers-dropdown-button {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 100%;
    background-color: #007baf;
    color: white;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    font-size: 16px;
    z-index: 2;
}

.papers-charcount {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    margin-left: 10px;
}

.file-upload-wrapper {
    width: 100%;
    margin: 0 0 20px 0;
    box-sizing: border-box;
}

.file-input {
    display: none;
}

.file-drop-zone {
    width: 100%;
    min-height: 200px;
    box-sizing: border-box;
    padding: 20px 20px 60px;
    border: 6px dashed #007baf;
    border-radius: 8px;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    overflow: visible;
}

.file-drop-zone:hover {
    border-color: #007baf;
    background-color: #eef7fb;
}

.drop-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #555;
    overflow: visible;
}

.plus {
    font-size: 100px;
    color: #007baf;
    margin-bottom: 10px;
    line-height: 1;
}

.pdf-icon {
    display: block;
    margin: 0 auto 10px;
    max-height: none;
}

.file-name {
    margin-top: 12px;
    font-weight: bold;
    color: #007baf;
    font-size: 16px;
    background-color: #f2f9fc;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #cce7f3;
    display: inline-block;
}

.file-name a {
    text-decoration: none;
    color: #007baf;
}

.file-name a:hover {
    text-decoration: none;
}

.file-remove {
    display: inline-block;
    margin-left: 8px;
    color: #e02f2f;           /* ярко червено */
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transition: color 0.2s ease;
}
.file-remove:hover {
    color: #c01f1f;
}

.truncate {
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pub-bo-hint {
    font-size: 11px;
    color: #007baf;
    margin-bottom: 5px;
    font-style: italic;
    text-align: left;
}

/* Общ контейнер за две колони */
.papers-group {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* Всяка половина */
.papers-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Подравняване и икона в дата */
.datepicker-container {
    position: relative;
    width: 100%;
}

.datepicker-container input.papers-dropdown {
    padding-right: 45px;
    width: 100%;
    box-sizing: border-box;
}

.calendar-icon-button {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 100%;
    background-color: #007baf;
    color: white;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    font-size: 16px;
    z-index: 2;
}

.calendar-icon-button i {
    color: white;
    font-size: 14px;
    pointer-events: none;
}

.status-boxes {
    display: flex;
    gap: 4px;
}

.status-box {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    background-color: #d99;
    transition: background-color 0.3s ease;
    cursor: default;
}

.status-box.active {
    background-color: #5cb85c;
}

.papers-step {
    color: #e53935;
    padding: 10px 0px 10px 0px;
    font-weight: bold;
    font-size: 16px;
    text-align: left;
}

















