/*
    Modal dialog box.
    Require 'rbas-dialog.js' file.
    (C) RBAS www.rbas.pl biuro@rbas.pl
    Wersja 1.0.0
*/

/* The dialog (scope) */
.dlg-dialog {
    display: none; 
}

/* The Modal (background) */
.dlg-modal {
    position: fixed; /* Stay in place */
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: #ececec; 
    padding-top: 50px;
    opacity: 0.6;
}

/* Dialog Content Box */
.dlg-content {
    position: fixed; /* !!! can't be static because of z-index and opacity */
    border-radius: 4px;
    background-color: #f7f7f7;
    top: 15%;
    left: 25%;
    width: 50%;  
    padding: 0px;
    text-align: center;
    z-index: 102;  
    opacity: 1;
}

.dlg-shadow {
    box-shadow: 0 0 16px rgb(31, 89, 212);
}

.dlg-shadow-imp {
    box-shadow: 0 0 16px rgb(163, 35, 35);
}

.dlg-shadow-success {
    box-shadow: 0 0 16px rgb(14, 80, 39);
}

.dlg-border {
    border: 1px solid rgb(255, 255, 255);
}

.dlg-border-imp {
    border: 1px solid rgb(255, 255, 255);
}

.dlg-border-success {
    border: 1px solid rgb(255, 255, 255);
}

.dlg-header {
    background-color: #0080FF;
    border-radius: 4px 4px 0px 0px;
    color: white;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dlg-imp-header {
    background-color: rgb(202, 60, 60);
    border-radius: 4px 4px 0px 0px;
    color: white;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dlg-success-header {
    background-color: rgb(28, 184, 65);
    border-radius: 4px 4px 0px 0px;
    color: white;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dlg-footer {
    background-color: rgb(222, 232, 253);
    border-radius: 0px 0px 4px 4px;
    padding: 8px; 
}

.dlg-imp-footer {
    background-color: rgb(248, 202, 202);
    border-radius: 0px 0px 4px 4px;
    padding: 8px; 
}

.dlg-success-footer {
    background-color: rgb(175, 240, 186);
    border-radius: 0px 0px 4px 4px;
    color: white;
    padding: 10px;
}

@media screen and (max-width: 320px) {
    .nobtn, .yesbtn, .okbtn {
        width: 100%;
    }
}

@media screen and (max-width: 600px) {
    .dlg-content {
        left: 2%;
        width: 96%;
    }
}

@media screen and (min-width: 601px) and (max-width: 1600px) {
    .dlg-content {
        left: 20%;
        width: 60%;
    }
}

.dlg-button-success:hover,
.dlg-button-error:hover,
.dlg-button-warning:hover,
.dlg-button-info:hover,
.dlg-button-secondary:hover,
.dlg-button-primary:hover {
    opacity: 0.8;
}

.dlg-button-success,
.dlg-button-error,
.dlg-button-warning,
.dlg-button-info,
.dlg-button-secondary,
.dlg-button-primary {
    z-index: 103;  
    opacity: 1;
    color: white;
    border-radius: 4px;
    border-width: 0px;
    padding: 8px 18px 8px 18px;
}

.dlg-button-success {
    background: rgb(28, 184, 65) !important;
}

.dlg-button-error {
    background: rgb(202, 60, 60) !important;
}

.dlg-button-warning {
    background: rgb(223, 117, 20) !important;
}

.dlg-button-info {
    background: rgb(66, 184, 221) !important;
}

.dlg-button-secondary {
    background: rgb(105, 105, 105) !important;
}

.dlg-button-primary {
    background: #0080FF !important;
}

.dlg-text-xsmall,
.dlg-button-xsmall {
    font-size: 70%;
}

.dlg-text-small,
.dlg-button-small {
    font-size: 85%;
}

.dlg-text-big,
.dlg-button-big {
    font-size: 110%;
}

.dlg-text-large,
.button-large {
    font-size: 125%;
}

.dlg-text-xlarge,
.dlg-button-xlarge {
    font-size: 150%;
}

.dlg-text-header {
    font-size: 175%;
}

.dlg-text-2xl,
.dlg-button-2xl {
    font-size: 200%;
}

.dlg-text-white {
    color: white;
}

.dlg-text-black {
    color: black;
}

.dlg-text-gray {
    color: #848484;
}

.dlg-text-darkgray {
    color: #424242;
}

.dlg-text-primary {
    color: #0080FF;
}

.dlg-text-success {
    color: rgb(28, 184, 65);
}

.dlg-text-error {
    color: rgb(202, 60, 60);
}

.dlg-text-warning {
    color: rgb(223, 117, 20);
}

.dlg-text-info {
    color: rgb(66, 184, 221);
}

.dlg-text-secondary {
    color: rgb(105, 105, 105);
}

.dlg-text-bold {
    font-weight: bold;
}
  
.dlg-text-thicker {
    font-weight: 800;
}

.dlg-justify-center {
    justify-content: center;
}

.dlg-items-center {
    align-items: center;
}

.dlg-text-center {
    text-align: center;
}

.dlg-w-full {
    width: 100%;
}

.dlg-h-full {
    height: 100%;
}

.dlg-hidden {
    display: none;
}

.dlg-mx-4 {
    margin-left: 4px;
    margin-right: 4px;
}

.dlg-mx-8 {
    margin-left: 8px;
    margin-right: 8px;
}

.dlg-mx-12 {
    margin-left: 12px;
    margin-right: 12px;
}

.dlg-mx-16 {
    margin-left: 16px;
    margin-right: 16px;
}

.dlg-m-4 {
    margin: 4px;
}

.dlg-m-8 {
    margin: 8px;
}

.dlg-m-16 {
    margin: 16px;
}


.dlg-p-4 {
    padding: 4px; 
}

.dlg-p-8 {
    padding: 8px; 
}

.dlg-p-16 {
    padding: 16px; 
}

.dlg-overflow-y-auto {
    overflow-y: auto;
}

.dlg-py-8 {
    padding-top: 8px; 
    padding-bottom: 8px; 
}

.dlg-py-12 {
    padding-top: 12px; 
    padding-bottom: 12px; 
}

.dlg-py-16 {
    padding-top: 16px; 
    padding-bottom: 16px; 
}

.dlg-flex {
    display: flex;
    justify-content: center;
    align-items: center;
}