/** -------------------------------------
            BOOTBOX
----------------------------------------- */
.custom-bb .modal-title, .custom-bb .modal-body {
    font-size: 0.875rem !important;
}

.custom-bb .modal-footer button {
    --bs-btn-padding-y: 0.5rem;
    --bs-btn-padding-x: 0.75rem;
    --bs-btn-font-size: 0.75rem;
    --bs-btn-border-radius: 0.25rem;
}

.custom-bb .bootbox-close-button {
    color: #ffffff;
    opacity: 1;
    filter: brightness(0) invert(1);
}

.custom-bb .modal-title {
    color: #ffffff;
}

.bb-error-modal .modal-header { background: #dc3545; }
.bb-success-modal .modal-header { background: #2d9206; }
.bb-warn-modal .modal-header { background: #FFC107; }
.bb-warn-modal .modal-title { color: #34383d; }
.bb-warn-modal .bootbox-close-button {
    filter: none;
    opacity: 0.5;
}

.bb-info-modal .modal-header { background: #6900c7; }

/** -------------------------------------
         Uploader
----------------------------------------- */
#total-progress {
    height: 5px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.uploader-info h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #181c32;
}
.uploader-info span  {
    font-weight: 600;
    opacity: .75;
}

.upload-error ul {
    padding:0;
    margin: 0;
    list-style-type: none;
}

.dropzone {
    min-height: auto;
    padding: 1rem;
    text-align: left;
    border: 1px dashed #cbcbcb;
    background-color: #fbfbfb;
    border-radius: 0.65rem!important;
}

/** -------------------------------------
         Layout customizations
----------------------------------------- */

.light-spinner {
    --bs-spinner-width: 1.5rem;
    --bs-spinner-height: 1.5rem;
    --bs-spinner-border-width: 0.1em;
}

.card-sm { font-size: 0.9em;}
.card-sm .card-header { padding: 0.5rem 1rem; }
.card-sm .card-title { font-size: 1rem; font-weight: 700; }
.card-sm .card-body { padding: 1rem; }

.alert-sm { font-size: 0.85em; }
.alert-sm button.btn-close { top: 0.75rem; }
.alert-sm .alert-icon-content { padding: 0.75rem 0.5rem; }
.alert-sm .alert-icon-aside { padding-top: 0.5rem; padding-bottom: 0.5rem; padding-left: 1rem; font-size: 1.5rem; }

.topnav .navbar-brand img { height: 3rem!important; }

/** -------------------------------------
         Forms
----------------------------------------- */

.form-control-time-sm, .form-control-number-sm {
    padding: 0.25rem 0.5rem;
}

.form-select-sm, .form-control-sm {
    height: 1.75rem;
    padding: 0 .375rem;
    font-size: .9rem;
}

.short-input input {
    max-width: 80px;
    margin-left: 1rem!important;
}

.form-label-light {
    font-weight: 400!important;
    margin-bottom: .15rem;
}

.label-sm {
    font-size: .9em;
    line-height: 1.5rem;
    padding-top: calc(0.5rem + 1px);
    padding-bottom: calc(0.5rem + 1px);
}

.custom-file-input ~ .custom-file-label::after {
    content: "Scegli allegato";
}

.custom-file {
    overflow: hidden;
}

.custom-file-input {
    white-space: nowrap;
    padding: 0.5rem 1rem;
}

/** -------------------------------------
         Tables
----------------------------------------- */
th.dt-center, td.dt-center { text-align: center; }

.card-table-sm {
    font-size: 0.85em;
}

.card-table-sm .pagination {
    --bs-pagination-font-size: 0.85em;
}

table.dataTable tbody td {
    vertical-align: middle;
}
.table-hover tbody td:hover {
    cursor: pointer;
}

.table-sm {
    vertical-align: middle;
}

.btn-datatable {
    font-size: 1.1rem;
}

/** -------------------------------------
         Misc/Shorthands
----------------------------------------- */
.fs-1dot25 { font-size: 1.25em; }
.my-bg-light { background-color: #f5f5f5; }

/** -------------------------------------
         App
----------------------------------------- */

.status-undefined { color: #afafaf; }
.status-reviewing, .status-pending, .status-review, .subscription-status-reviewing { color: #ffc107; }
.status-aproved, .status-paid,.status-outpay, .status-success, .payment-status-success, .subscription-status-aproved, .color-enabled  { color: #15a315; }
.status-refused, .status-unpaid, .status-error, .payment-status-error, .subscription-status-refused { color: #c61414; }

.payment-status { font-weight: 700; }

.subscription-status-undefined { background-color: #ffffff; }

.nav-wizard .nav-link .wizard-step-icon {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.875rem!important;
}
.wizard-step-text-name {
    font-size: 0.875rem!important;;
}

.editor-invalid {
    border-color: #dc3545!important;
}

.domain-info {
    padding-bottom: 20px;
    font-size: 1.5em;
    font-weight: 700;
    color: #616161;
}

.icon-link {
    font-size: 0.75rem; vertical-align: top;
}

.form-required {
    color: #dc3545;
}

.color-disabled {
    color: #dedede;
}

:root {
    --width-100: 100%;
}

.form-select-custom {
    width: calc(var(--width-100) + 32px);
}
