/* -------------------------------------------------------
   BENDRABUČIO NUOMOS OBJEKTŲ MEDIS: 
   ------------------------------------------------------- */
.rental-tree {
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.rental-tree .rental-header,
.rental-tree .rental-row {
    display: grid;
    grid-template-columns: 1fr 100px 100px 100px 280px;
    /* grid-template-columns: 1fr 120px 340px 140px 180px; */
    align-items: center;
}

/* Alternatyvus išdėstymas */
.rental-tree.layout-wide .rental-header,
.rental-tree.layout-wide .rental-row {
    grid-template-columns: 1fr 120px 340px 140px 180px;
}

.rental-tree .rental-header {
    background: #f5f5f5;
    font-weight: 600;
    border-bottom: 1px solid #ddd;
}

.rental-tree .rental-header>div,
.rental-tree .rental-row>div {
    padding: 2px 10px;
}

.rental-tree .rental-row {
    border-bottom: 1px solid #eee;
}

.rental-tree .rental-row:hover {
    background: #eff4fe;
}

.rental-tree .type {
    color: #777;
}

/* Hierarchy levels */
.rental-tree .level-building .name {
    font-weight: 600;
}

.rental-tree .level-block .name {
    padding-left: 30px;
    /*25*/
}

.rental-tree .level-room .name {
    padding-left: 60px;
    /*50*/
}

.rental-tree .level-bed .name {
    padding-left: 90px;
    /*75*/
    color: #777;
}

/* Medžio vizualizacijos variantas */
/* .rental-tree .level-block .name::before,
    .rental-tree .level-room .name::before,
    .rental-tree .level-bed .name::before { 
        content: "└ "; 
	 "└─ "; 
	   color: #999;
}*/

/* -------------------------------------------------------
   SUTARTYS 2 stulpeliais (panaudota bendrabučio sutartyse): 
   ------------------------------------------------------- */
.contract-table-2-col {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.contract-table-2-col td {
    width: 50%;
    vertical-align: top;
    padding: 5px 10px;
}

.contract-table-2-col p {
    margin: 0 0 8px;
}

/* Vidinė vertikali linija, tik ne header dalyje */
.contract-table-2-col tr:not(.header) td:first-child {
    border-right: 1px solid #999;
}

/* -------------------------------------------------------
   BENDRABUČIO SUTARTIES SUDARYMO ŽINGSNIAMS ATVAIZDUOTI: 
   ------------------------------------------------------- */
.step-data {
    background: #eff4fe;
    color: #475569;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.step-data .row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.step-data .label {
    width: 300px;
    min-width: 300px;
    /* color: #334155;*/
    line-height: 1.45;
    word-break: break-word;
    overflow-wrap: break-word;
}

.step-data .value {
    flex: 1;
    /* color: #1e293b;*/
    font-weight: bold;
    /* 700 */
    line-height: 1.45;
    word-break: break-word;
    overflow-wrap: break-word;
}

.step-data-title {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 24px;
    margin-bottom: 24px;
}

.step-data-title .icon {
    font-size: 50px;
    line-height: 1;
    flex-shrink: 0;
    color: #3b5998;
    /* #293e6a; */
}

.step-data-title h2 {
    margin: 0 0 8px;
}

.step-data-title p {
    margin: 0;
    color: #475569;
    line-height: 1.5;
}

/* -------------------------------------------------------
   BENDRABUČIO SUTARČIŲ TENANTS KORTELIŲ JUOSTA: 
   ------------------------------------------------------- */
.card-container {
    max-width: 900px;
    margin: 0 auto;
}

.card-item {
    background: #eff4fe;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: 0.2s;
}

.card-item:hover {
    background: #dcd6b5;
    transform: scale(1.05);
    transition: 0.2s;
}

.card-item.active {
    background: #dcd6b5;
}

.card-item p {
    margin: 5px 0 0;
    font-size: 0.9em;
}

/* Sub-kortelių blokeliai pagrindinėse kortelėse */
.card-sub-grid {
    max-height: 0;
    overflow: hidden;
    margin-top: 10px;
}

.card-sub-grid.open {
    max-height: 500px;
}

.card-sub-card-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

/* Sub-kortelės */
.card-sub-card {
    display: block;
    background: #eff4fe;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.2s;
}

.card-sub-card:hover {
    background: #365998;
    color: #fff;
    opacity: 0.9;
}

.card-sub-card h3 {
    margin: 0 0 5px;
    font-size: 1em;
}

.card-sub-card p {
    font-size: 0.85em;
}

/* -------------------------------------------------------
   TESKSTO STILIAI
   ------------------------------------------------------- */
/* Pilkas papildantis tekstas */
.sub_info {
    background-color: #f1f3f5;
    color: #555;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.9em;
}

/* -------------------------------------------------------
   Lyčių atvaizdavimui
   ------------------------------------------------------- */

.male {
    color: white;
    background-color: blue;
    width: 16px;
    height: 16px;
    font-size: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
}

.female {
    color: white;
    background-color: deeppink;
    width: 16px;
    height: 16px;
    font-size: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
}

.gender-none {
    color: white;
    background-color: lightgray;
    width: 16px;
    height: 16px;
    font-size: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
}