*,
*::before,
*::after {
    box-sizing: border-box;
}
html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    margin: 0;
}

.logo {
    height: 2.0rem;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.select {
    height: 38px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    width: 100%;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

    .form-checkbox input[type="checkbox"] {
        width: 16px;
        height: 16px;
        cursor: pointer;
    }

    .form-checkbox label {
        margin: 0;
        font-size: 14px;
        color: #333;
    }

.text-danger {
    color: red;
}

.material-symbols-outlined.icon {
        font-size: 14px;
}

.div {
    padding: .3em;

}

/*********************************************************************************************************************/
.table > :not(caption) > * > * {
    padding: 3px;
    /*    background-color: white;*/
    border-bottom-width: 1px;
}

.table-view {
    padding-left: 1em;
    padding-right: 1em;
    height: 100%;
}

.table tr:nth-child(odd) {
    background-color: #F5FBFC;
}

.table tr:nth-child(even) {
    background-color: #FFFFFF;
}

.table tr.row-clickable:hover {
    background-color: #DDEEFF;
}

/*--------------------------------------------------------------------------*/
.table {
    width: 100%;
}

.table-header {
    width: 100%;
}

.table-content {
    height: 100%;
    overflow-y: auto;
}

.table-footer {
    width: 100%;
    padding: 10px 0 0 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
}

td {
    text-align: left;
}

th {
    text-align: left;
    font-weight: 600;
    user-select: none;
    white-space: nowrap;
}

.table-header-row th {
    background-color: #ddd;
    color: #666;
}

.table-filter-content {
}

/*********************************************************************************************************************/
/*********************************************************************************************************************/
.asset-container {
    flex: 1 1 0;
    margin-bottom: 1rem;
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.asset-header {
    flex: 0 1 0;
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    justify-content: space-between;
}
.asset-footer {
    flex: 0 1 0;
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    justify-content: space-between;
}
.asset-body {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow: auto;
    position: relative;
}
.asset-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

    .asset-form input {
        padding: 0.8rem;
        border-radius: 4px;
        border: 1px solid #ccc;
        width: 400px;
    }

    .asset-form button {
        background-color: #4285f4; /* Google-style blue */
        color: white;
        border: none;
        padding: 10px 16px;
        font-size: 14px;
        border-radius: 3px;
        cursor: pointer;
        transition: background-color 0.2s ease-in-out;
        align-self: flex-start;
    }
        .asset-form button:hover {
            background-color: #3367d6;
        }
        .asset-form button:disabled {
            background-color: #cccccc; 
            color: #666666; 
            cursor: not-allowed;
        }

.asset-form-action {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.asset-table {
    border-collapse: collapse;
    font-size: 14px;
    max-width: 1300px;
}
    .asset-table th {
        background-color: #F5FBFC;
    }

    .asset-table th,
    .asset-table td {
        height: 40px;
        border: 1px solid #dee2e6;
        text-align: left;
        white-space: nowrap;
    }
       .asset-td-input {
            padding: 0;
        }

    .asset-table thead th {
        background-color: #f8f9fa;
        font-weight: 600;
        white-space: nowrap;
    }

.deleted {
    text-decoration: line-through;
    opacity: 0.6;
    color: #888;
}

.highlighted-row {
    background-color: #F5FBFC;
    background-color: #fff8c5;
}
.is-new {
    background-color: #ddffdd;
    border: 1px solid #aaffaa;
}
.asset-input .error,
.error {
    background-color: #ffdddd;
    border: 1px solid #ffaaaa;
}

.asset-input {
    height: 40px;
    border: none;
    background-color: #fffbe6;
    transition: background-color 0.2s ease;

    width: 100%;
    box-sizing: border-box;
}

    .asset-input[readonly] {
        background-color: #f5f5f5;
        cursor: not-allowed;
    }


.asset-input:hover {
    background-color: #fefacc;
}

.asset-input:focus {
    background-color: #fff3a0;
    outline: 1px solid #d4af37; 
}
input:-webkit-autofill {
    background-color: #fffbe6 !important;
    transition: background-color 0s;
}
input:-webkit-autofill {
    box-shadow: 0 0 0 1000px #fffbe6 inset;
    -webkit-box-shadow: 0 0 0 1000px #fffbe6 inset;
}


/*********************************************************************************************************************/
.filter-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.filter-label {
}

.filter-checkbox {
}

.filter-row input {
    padding: 0.8rem;
    border-radius: 4px;
    border: 1px solid #ccc;
    width: 13px;
}

.date-range-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    width: 424px;
    justify-content: space-between;
}

.date-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .date-field label {
        font-size: 0.9rem;
        color: #333;
        text-align: right;
    }

    .date-field input[type="date"] {
        flex: 1;
        padding: 0.5rem;
        font-size: 0.95rem;
        border: 1px solid #ccc;
        border-radius: 4px;
        box-sizing: border-box;
        width: 150px;
        height: 40px;
        color: #555;
        font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
        font-size: 14px;
    }

.no-scroll-body {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow: hidden;
    max-width: 1200px;
}

.asset-view-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.filter-content {
    flex: 1 1 0;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.filter-header {
    flex: 0 1 0;
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    justify-content: space-between;
}

.deleted td {
    text-decoration: line-through;
    opacity: 0.6;
    color: #888;
}
/*********************************************************************************************************************/


.list-view-left {
    padding-left: 1em;
    height: 100%;
}

.list-view-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1em;
}

.button {
    background-color: #3E9FC0;
    color: #fff;
    border-color: #3E9FC0;
    border-radius: 3px;
    border-width: 0;
    padding: 5px 15px;
}
    .button.icon {
        background-color: #C0DADB;
        padding: 2px 6px;
    }
.form-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1em;
}
.form-actions {

}
/*********************************************************************************************************************/
.form-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    overflow-y: auto;
}

.form-small-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (max-width: 992px) {
    .form-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-small-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .form-container {
        grid-template-columns: 1fr;
    }

    .form-small-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}

    .form-group input {
        padding: 0.8rem;
        border-radius: 4px;
        border: 1px solid #ccc;
    }

    .form-group button {
        background-color: #4285f4; /* Google-style blue */
        color: white;
        border: none;
        padding: 10px 16px;
        font-size: 14px;
        border-radius: 3px;
        cursor: pointer;
        transition: background-color 0.2s ease-in-out;
        align-self: flex-start;
    }

        .form-group button:hover {
            background-color: #3367d6;
        }

.selector {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
/*********************************************************************************************************************/
.button-container {
    display: inline-flex; /* Arrange buttons in a row, shrink to fit */
    gap: 8px; 
}

    .button-container button {
        white-space: nowrap; /* Prevent line break inside buttons */
    }