@import "priceplan.css";
@import "pdfviewer.css";

.countdown {
    color: var(--color-tone-1);
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    overflow: hidden;
}

.center-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
ul[role=tablist] {
    flex-wrap: wrap;
}
.rz-tabview-panel {
    height: 100% !important;
    width: 100% !important;
}
/*old css*/
/*.p-dialog .rz-dialog-content {    
    flex-basis: 100%;
}

.dashboard {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-flow: row wrap;
    gap: 10px;
    gap: 10px 20px;*/ /* row-gap column gap */
    /*row-gap: 10px;
    column-gap: 20px;
    justify-content: center;
    align-items: center;
}

.dashboard-item {
    width: auto;*/ /* Or whatever */
    /*height: auto;*/ /* Or whatever */
    /*margin: auto;*/ /* Magic! */
/*}

.rowChart {
    min-width: 500px;
    max-width: 600px;
    height: 100%;
    display: inline-block;
    margin: 5px;
    padding: 20px;
    text-align: center;
    float: none;
    background-color: #f0f0f0;
}*/
/*End old css*/


/*New css*/
.dashboard {
    width: 100vw;
    height: 100vh;
}

.dashboard-base {
    height: inherit;
    gap: 1rem;
    padding: 1rem;
    box-sizing: border-box;
    overflow: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: stretch;
}

.dashboard-1 .dashboard-item {
    height: calc(100vh - 2rem);
    flex: 1 1 calc(50vw - 3rem)
}

.dashboard-2 .dashboard-item {
    flex: 1 1 600px;
}

.dashboard-3 .dashboard-item {
    flex: 1 1 400px;
}

@media screen and (min-width: 1600px) {
    .dashboard-2 .dashboard-item {
        flex: 1 1 700px;
    }

    .dashboard-3 .dashboard-item {
        flex: 1 1 500px;
    }
}

@media screen and (min-width: 1900px) {
    .dashboard-2 .dashboard-item {
        flex: 1 1 800px;
    }

    .dashboard-3 .dashboard-item {
        flex: 1 1 600px;
    }
}
@media screen and (min-width: 2200px) {
    .dashboard-2 .dashboard-item {
        flex: 1 1 900px;
    }

    .dashboard-3 .dashboard-item {
        flex: 1 1 700px;
    }
}

@media screen and (min-width: 2500px) {
    .dashboard-2 .dashboard-item {
        flex: 1 1 1000px;
    }

    .dashboard-3 .dashboard-item {
        flex: 1 1 800px;
    }
}


@media screen and (min-width: 2800px) {
    .dashboard-2 .dashboard-item {
        flex: 1 1 1100px;
    }

    .dashboard-3 .dashboard-item {
        flex: 1 1 900px;
    }
}

.dashboard-item {
    width: 100%;
    height: calc(50vh - 1.5rem);
}

.rowChart {
    width: 100%;
    height: 100%;
    background-color: #f0f0f0;
    display: grid;
    grid-template-rows: max-content 1fr;
    padding: 1rem;
    box-sizing: border-box;
}

.animated {
    animation-name: chartNewData;
    animation-duration: 4s;
}

.dashboard-dialog-content {
    height: 100%;
}

.dashboard-dialog-content > * {
    height: 100%;
}

.dashboard-dialog-content > * > .rz-card {
    height: 100%;
}
/*end New css*/

/* The animation code */
@keyframes chartNewData {
    0% { background-color: #f0f0f0; }
    50% { background-color: forestgreen; }
    100% { background-color: #f0f0f0; }
}

.spin {
    animation: spin 700ms linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }
}

.dashboard-beheer-table {
    width: 100%;    
}

th, td {
    text-align: left;
}

.rz-dialog-wrapper {
    left: 0;
}

/* NotificationBar CSS */
.notification-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    width: auto;
}

.notification {
    display: flex;
    align-items: center;
    /*background-color: white;*/
    border-left: 5px solid;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    animation: slideInDown 0.3s ease-out;
    gap: 1rem;

    --info-color: hsl(211.06, 100%, 50%);
    --success-color: hsl(133.7, 61.35%, 40.59%);
    --warning-color: hsl(45, 100%, 51.37%);
    --error-color: hsl(354.25, 70.46%, 43.53%);
    --info-pastel-color: hsl(211.06, 100%, 70%);
    --success-pastel-color: hsl(133.7, 61.35%, 70.59%);
    --warning-pastel-color: hsl(45, 100%, 81.37%);
    --error-pastel-color: hsl(354.25, 70.46%, 63.53%);
    /*flex-wrap: wrap;*/
}

/* Kleuren per type */
.notification.info {
    border-color: var(--info-color);
    background-color: var(--info-pastel-color);
}

.notification.success {
    border-color: var(--success-color);
    background-color: var(--success-pastel-color);
}

.notification.warning {
    border-color: var(--warning-color);
    background-color: var(--warning-pastel-color);
}

.notification.error {
    border-color: var(--error-color);
    background-color: var(--error-pastel-color);
}

.notification-content {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    flex-grow: 1;
    margin-right: auto;
}

.notification strong {
    margin-right: 0.5rem;
}

.action-btn {
    background-color: var(--rz-primary, #007bff);
    color: white;
    border: none;
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-left: 1rem;
    white-space: nowrap;
}

.close-btn {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #333;
    margin-left: 1rem;
}

@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}
/* End NotificationBar CSS */
