/* General styles */

.jewelry-description {
    width: 50%;
    border-left: 3px solid #ccc;
    border-right: 3px solid #ccc;
    padding: 0px 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

    .jewelry-description.ej-jewelry-view{
        border-left: none;
    }

    .jewelry-detail-item {
        display: flex;
        align-items: center;
        width: 100%;
        gap: 5px;
        justify-content: space-between;
    }

        .jewelry-detail-item.main-info {
            align-items: baseline;
        }

.jewelry-detail-label {
    width: 15%;
    color: #1561cb;
    font-weight: 700;
}

    .jewelry-detail-label.main-info {
        width: 60%;
    }

.jewelry-iframe {
    width: 45%;
}

/* Main layout */

    /* Header */

    .header {
        align-items: center;
        background-color: #002d62;
        display: flex;
        height: 60px;
        justify-content: space-between;
    }

    .header__links {
        width: 100%;
        display: flex;
        flex-grow: 1;
        gap: 10px;
        justify-content: center;
    }

        .header__links > a{
            color: white;
            cursor: pointer;
            text-decoration: none;
            font-size: 18px;
        }

            .header__links > a:not(:last-child):after {
                color: #fff;
                content: "|";
                margin-left: 10px;
            }

            .header__links > a:hover{
                text-decoration: underline;
            }

    .header__logout {
        background-color: #dc3545;
        border: none;
        border-radius: .25rem;
        color: #fff;
        cursor: pointer;
        font-size: 1rem;
        margin-right: 15px;
        padding: .5rem 1rem;
    }

        .header__logout:hover {
            background-color: #c82333;
        }

        .header__logout > p{
            width: max-content;
            margin: 0;
        }

/* Jewelry view */

.jewelry-item__main-container {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.jewerly-item__main-info {
    width: 15%;
}

.jewelry-item__currency-block {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    align-items: center;
}

.jewelry-item__link {
    text-decoration: none;
    text-align: center;
    color: #1561cb;
}

.jewelry-item__auction-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.jewelry-item__detail-input-block {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    width: 100%;
}

.jewelry-item__auction-actions {
    display: flex;
    flex-direction: row;
    gap: 5px;
    justify-content: center;
}

.jewelry-iframe-container {
    width: 100%;
    height: 90%;
    border: none;
}

.jewelry-item__possible-type {
    cursor: pointer;
    user-select: none;
    text-decoration: underline;
}

.jewelry-buttons {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    gap: 10px;
    background: transparent;
    padding: 10px 15px;
    box-shadow: none;
    align-items: flex-end;
}

/* Login */

.login {
    align-items: center;
    background-color: #262626;
    display: flex;
    height: 100vh;
    justify-content: center;
}

.login__container {
    background-color: #333;
    border-radius: 10px;
    box-shadow: 0 4px 8px #0003;
    padding: 40px;
    transition: transform .3s ease-in-out, box-shadow .3s ease-in-out;
}

    .login__container:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    }

.login__inner {
    background-color: #333;
    border-radius: 10px;
    box-shadow: 0 4px 8px #0003;
    padding: 40px;
    transition: transform .3s ease-in-out, box-shadow .3s ease-in-out;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #fff;
}

.login__form-group {
    margin-bottom: 20px;
}

    .login__form-group input {
        background: #404040 !important;
        border: 1px solid #555;
        border-radius: 5px;
        color: #fff !important;
        margin-bottom: 10px;
        padding: 10px;
        width: 100%;
    }

        .login__form-group input:focus {
            background: #404040 !important;
            color: #fff !important;
        }

        .login__form-group input:-webkit-autofill,
        .login__form-group input:-webkit-autofill:hover,
        .login__form-group input:-webkit-autofill:focus,
        .login__form-group input:-webkit-autofill:active {
            -webkit-box-shadow: 0 0 0 1000px #404040 inset !important;
            -webkit-text-fill-color: #fff !important;
            caret-color: #fff;
        }

        .login__form-group input::placeholder {
            color: #bbb;
        }

        .login__form-group input:focus::placeholder {
            transition: opacity 0.4s ease-in-out;
            opacity: 0;
        }

/* Production */

.production{
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 100%;
    justify-content: center;
}

.production__filters{
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 15%;
}

/* Jewelry */

.jewelry{
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    width: 100%;
}

.jewelry__description {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 55%;
    border-left: 3px solid #ccc;
    border-right: 3px solid #ccc;
    padding: 0px 10px;
}

.jewelry__characteristic{
    display: flex;
    flex-direction: row;
    align-items: center;
}

.jewelry__characteristic > p {
    width: 15%;
}

/* Other */

.btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42N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Zlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.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;
}

.page-container {
    display: grid;
    grid-template-columns: 1fr;
    background-color: #F5F5F5;
}

.tableCellEllipsis {
    max-width: 150px;
    max-height: 2.8em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4em;
}

.table {
    width: 100%;
    background-color: white;
    min-height: 700px;
}

.table, .page-container {
    box-sizing: border-box;
}

.SourceTable {
    font-family: Arial, sans-serif;
    border-collapse: collapse;
    padding: 10px;
}

    .SourceTable table {
        width: 100%;
        table-layout: fixed;
    }

    .SourceTable th, .SourceTable td {
        border: 1px solid #ddd;
        text-align: left;
        padding: 8px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .SourceTable tr:hover {
        background-color: #f1f1f1;
    }

    .SourceTable a {
        color: #0645ad;
        text-decoration: none;
    }

        .SourceTable a:hover {
            text-decoration: underline;
        }

    .SourceTable th.id, .SourceTable td.id {
        width: 10%;
    }

    .SourceTable th.title, .SourceTable td.title {
        width: 50%;
    }

    .SourceTable td.title {
        color: black;
    }

    .SourceTable th.url, .SourceTable td.url {
        width: 40%;
    }

.SaveSourceButton {
    border: none;
    color: white;
    padding: 5px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition-duration: 0.4s;
    cursor: pointer;
    border-radius: 5px;
    flex: 1;
    min-width: 60px;
}

.EditSourceButton {
    border: none;
    color: white;
    padding: 5px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition-duration: 0.4s;
    cursor: pointer;
    border-radius: 5px;
    flex: 1;
    min-width: 60px;
}

@media (max-width: 600px) {
    .ActionButton {
        padding: 5px;
        min-width: 20px;
    }
}

.EditSourceButton {
    background-color: dodgerblue;
}

    .EditSourceButton:hover {
        background-color: deepskyblue;
    }

.SaveSourceButton {
    background-color: limegreen;
}

    .SaveSourceButton:hover {
        background-color: lightgreen;
    }

.SourceTable .actions {
    text-align: center;
}

.info-button {
    width: 20px;
    height: 20px;
}

.editInput {
    width: 100%;
    padding: 3px;
    margin: 4px 0;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: black;
    background-color: white;
}

    .editInput:focus {
        border-color: dodgerblue;
        outline: none;
    }

.table-menu {
    margin: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f9f9f9;
    box-shadow: 0 4px 12px 0 rgba(0,0,0,0.2);
}

.search-and-select-container {
    display: flex;
    gap: 1rem;
}

.select-source-type {
    min-width: 200px;
    width: 10%;
}

.select-status-type {
    min-width: 150px;
    width: 8%;
}

.search-field {
    font-family: 'Arial', sans-serif;
    width: 100%;
    padding: 10px 15px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0px 0px 0px 1px transparent;
    transition: box-shadow 0.3s ease-in-out;
    outline: none;
}

    .search-field::placeholder {
        color: #aaa;
    }

    .search-field:hover {
        box-shadow: 0px 0px 0px 2px rgba(33, 150, 243, 0.5);
    }

    .search-field:focus {
        border-color: #2196F3;
        box-shadow: 0px 0px 0px 2px rgba(33, 150, 243, 0.5);
    }

.rz-dialog {
    position: fixed !important;
    top: 20vh !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 800px !important;
    max-width: 90vw !important;
    z-index: 1050 !important;
}

.warning-row {
    background-color: #fff3cd !important;
}

.error-row {
    background-color: #f8d7da !important;
}

/* Radzen Dialog */

.edit-dialog {
    top: 0 !important;
    margin-top: 0 !important;
    height: 100vh !important;
    max-height: 100vh !important;
    animation: slideInFromRight 0.3s ease-out forwards;
}

    .edit-dialog .rz-dialog-side {
        position: absolute;
        top: 0;
    }

    .edit-dialog .rz-dialog-side-titlebar {
        display: flex !important;
        background-color: #222D32;
        align-items: center;
        justify-content: space-between;
        padding: 10px;
    }

    .edit-dialog .rz-dialog-side-title {
        font-size: 18px;
        font-weight: normal;
        color: white;
    }

    .edit-dialog .rz-dialog-side-titlebar-close > span::before {
        height: 20px;
        width: 20px;
        display: flex;
        color: white !important;
    }

    .edit-dialog .rz-dialog-side-titlebar-close {
        border-radius: 50%;
        border: 1px solid white !important;
        justify-content: center;
        align-items: center;
        display: flex;
        padding: 2.5px;
        margin-left: auto;
        text-decoration: none;
    }

    .edit-dialog .rz-dialog-side-content {
        padding: 10px !important;
        height: calc(100% - 60px);
    }

    .edit-dialog .rz-dialog-content, .edit-dialog .rz-dialog-side-content {
        overflow: hidden;
    }

    .edit-dialog .rz-form {
        height: 100%;
        display: flex;
        flex-direction: column;
        margin: 10px;
    }

    .edit-dialog .rz-dialog-confirm-center,
    .edit-dialog .rz-dialog-alert-center {
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        position: fixed !important;
    }

.rz-dialog.rz-dialog-confirm.rz-dialog-center {
    margin: auto !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
}

.dialog-content-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.form-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.form-body {
    padding: 1rem;
    flex: 1;
}

.form-footer {
    padding-top: 7px;
    padding-right: 10px;
    border-top: 1px solid #ccc;
    margin-top: auto;
}

@media (max-width: 768px) {
    .edit-dialog .rz-dialog-side-content {
        overflow-y: auto !important;
    }
}


@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0%);
        opacity: 1;
    }
}

/* Radzen Dialog */
