﻿body {
    font-family: Arial, Helvetica, sans-serif;
}

.checkbox-toggle-offset:before {
    bottom: 0 !important;
    top: 3.5px;
}

.new-button-primary {
    background: #1E355E !important;
}

.new-button-primary:hover {
    background: #192543 !important;
}

.new-button-secondary {
    background: #777 !important;
}

.new-button-secondary:hover {
    background: #888 !important;
}

.new-button-success {
    background: #393 !important;
}

.new-button-success:hover {
    background: #4A4 !important;
}

.new-button-warning {
    background: #BB2 !important;
}

.new-button-warning:hover {
    background: #CC3 !important;
}

.new-button-danger {
    background: #D44 !important;
}

.new-button-danger:hover {
    background: #D55 !important;
}

.new-button:disabled {
    background: #1E355E !important;
    color: #ccc !important;
    cursor: not-allowed;
}

.new-button.new-button-primary:disabled {
    background: #192543 !important;
    color: #ccc !important;
    cursor: not-allowed;
}

.new-button.new-button-secondary:disabled {
    background: #555 !important;
    color: #ccc !important;
    cursor: not-allowed;
}

.new-button.new-button-success:disabled {
    background: #4A4 !important;
    color: #ccc !important;
    cursor: not-allowed;
}

.new-button.new-button-warning:disabled {
    background: #CC3 !important;
    cursor: not-allowed;
}

.new-button.new-button-danger:disabled {
    background: #D55 !important;
    color: #ccc !important;
    cursor: not-allowed;
}

@media screen and (min-width: 768px) {
    .new-alert {
        margin-top: 1.5rem;
        width: calc(100% - 48px);
        max-width: calc(100% - 48px);
        padding: 8px 24px;
        border-radius: 8px;
        text-align: center;
    }

    .new-alert.new-alert-danger {
        background: #D44;
        color: white;
    }

    .new-alert.new-alert-success {
        background: #292;
        color: white;
    }

    .new-input-group {
        margin: 16px 0;
    }

    .new-input-checkbox-group {
        margin: 12px 0;
        display: flex;
    }

    .new-input-group-collection {
        background: white;
        padding: 12px;
        border-radius: 16px;
    }

    .new-input-group-no-margin {
        margin: 0;
    }

    .new-label {
        font-size: 0.9rem;
        color: #333;
        margin: 0;
        padding: 0;
    }

    .new-input-icon-group {
        margin-top: 4px;
        display: flex;
        align-items: center;
    }

    .new-input-icon-group > i {
        margin-top: 3px;
        margin-right: 4px;
    }

    .new-input {
        width: 100%;
        border: none;
        margin-top: 4px;
    }

    .new-input:focus {
        outline: none;
    }

    .new-select {
        width: 100%;
        border: 1px solid #ddd;
        margin-top: 4px;
        border-radius: 4px;
        padding: 4px;
        cursor: pointer;
    }

    .new-select:focus {
        outline: none;
    }

    .new-input-group-collection:has(.new-input:read-only), .new-input:read-only {
        background: #ddd;
        cursor: default;
    }

    .new-input-group-collection:has(.new-input:disabled), .new-input:disabled {
        user-select: none;
        background: #ddd;
        cursor: not-allowed;
    }

    .new-password-toggle {
        margin-top: 3px;
        cursor: pointer;
        display: flex;
        font-size: 1.1rem;
        justify-content: center;
        border: none;
        padding: 3.5px;
        background: none;
        border-radius: 4px;
        transition: 0.15s;
    }

    .new-password-toggle:hover {
        background: #eee;
    }

    .new-switch {
        display: inline-block;
        width: 100%;
        height: 18px;
        position: relative;
    }

    .new-switch input[type=checkbox] {
        display: none;
    }

    .new-switch label {
        display: flex;
        align-items: center;
    }

    .new-switch label .checkbox-toggle-text {
        cursor: pointer;
        font-size: 0.9rem;
        margin-left: 8px;
    }

    .new-switch label .checkbox-toggle {
        display: flex;
        align-content: center;
        background: #ccc;
        cursor: pointer;
        transition: 0.4s;
        border-radius: 50px;
        width: 36px;
        height: 18px;
    }

    .new-switch input[type=checkbox]:disabled + label, .new-switch label.checkbox-disabled {
        color: #999;
    }

    .new-switch input[type=checkbox]:disabled + label .checkbox-toggle, .new-switch label.checkbox-disabled:not(.checkbox-checked) .checkbox-toggle {
        background: #ddd !important;
        cursor: not-allowed;
    }

    .new-switch label.checkbox-disabled.checkbox-checked .checkbox-toggle {
        background: #8ce !important;
        cursor: not-allowed;
    }

    .new-switch label .checkbox-toggle:before {
        background: #fff;
        display: inline-block;
        content: '';
        margin: 2px 0;
        height: 14px;
        width: 14px;
        left: 2px;
        position: absolute;
        transition: 0.4s;
        border-radius: 100%;
    }

    .new-switch label.checkbox-replacement.checkbox-checked .checkbox-toggle {
        background: #0999dd;
    }

    .new-switch label.checkbox-replacement.checkbox-checked .checkbox-toggle:before {
        transform: translateX(18px);
    }

    .new-switch input[type=checkbox]:checked + label .checkbox-toggle {
        background: #0999dd;
    }

    .new-switch input[type=checkbox]:checked:not(:disabled) + label .checkbox-toggle:before {
        transform: translateX(18px);
    }

    .new-button-container {
        margin-top: 16px;
        width: 100%;
    }

    .new-button, a.new-button:link {
        cursor: pointer;
        display: block;
        width: 100%;
        padding: 8px 0;
        border: none;
        border-radius: 8px;
        background: #1E355Ecc;
        text-align: center;
        color: white;
        text-decoration: none;
        transition: 0.15s;
    }

    .new-button:visited {
        color: white;
    }

    .new-button:hover {
        background: #1E355E;
    }

    .new-button:focus {
        outline: none;
    }

    .new-top {
        margin-bottom: 8px;
    }

    .new-bottom {
        margin-top: 8px;
    }
}

@media screen and (max-width: 768px) {
    .new-alert {
        margin-top: 1.5rem;
        width: calc(100% - 32px);
        max-width: calc(100% - 32px);
        padding: 8px 16px;
        border-radius: 8px;
        text-align: center;
    }

    .new-alert.new-alert-danger {
        background: #f77;
        color: black;
    }

    .new-alert.new-alert-success {
        background: #292;
        color: white;
    }

    .new-input-group {
        margin: 12px 0;
    }

    .new-input-checkbox-group {
        margin: 10px 0;
        display: flex;
    }

    .new-input-group-collection {
        background: white;
        padding: 10px;
        border-radius: 12px;
    }

    .new-input-group-no-margin {
        margin: 0;
    }

    .new-label {
        font-size: 1rem;
        color: #333;
        margin: 0;
        padding: 0;
    }

    .new-input-icon-group {
        margin-top: 4px;
        display: flex;
        align-items: center;
    }

    .new-input-icon-group > i {
        margin-top: 3px;
        margin-right: 4px;
    }

    .new-input {
        width: 100%;
        border: none;
        margin-top: 4px;
        font-size: 1rem;
    }

    .new-input:focus {
        outline: none;
    }

    .new-input-group-collection:has(.new-input:read-only), .new-input:read-only {
        background: #ddd;
        cursor: default;
    }

    .new-input-group-collection:has(.new-input:disabled), .new-input:disabled {
        user-select: none;
        background: #ddd;
        cursor: not-allowed;
    }

    .new-password-toggle {
        margin-top: 3px;
        cursor: pointer;
        display: flex;
        font-size: 1.1rem;
        justify-content: center;
        border: none;
        padding: 3.5px;
        background: none;
        border-radius: 4px;
    }

    .new-switch {
        display: inline-block;
        width: 100%;
        height: 18px;
        position: relative;
    }

    .new-switch input[type=checkbox] {
        display: none;
    }

    .new-switch label {
        display: flex;
        align-items: center;
    }

    .new-switch label .checkbox-toggle-text {
        cursor: pointer;
        font-size: 0.9rem;
        margin-left: 8px;
    }

    .new-switch label .checkbox-toggle {
        display: inline-block;
        background: #ccc;
        cursor: pointer;
        transition: 0.4s;
        border-radius: 50px;
        width: 36px;
        height: 18px;
    }

    .new-switch label .checkbox-toggle:before {
        background: #fff;
        display: inline-block;
        content: '';
        height: 14px;
        width: 14px;
        bottom: 2px;
        left: 2px;
        position: absolute;
        transition: 0.4s;
        border-radius: 100%;
    }

    .new-switch input[type=checkbox]:checked + label .checkbox-toggle {
        background: #0999dd;
    }

    .new-switch input[type=checkbox]:checked + label .checkbox-toggle:before {
        transform: translateX(18px);
    }

    .new-button-container {
        margin-top: 8px;
        width: 100%;
    }

    .new-button, a.new-button:link {
        cursor: pointer;
        display: block;
        width: 100%;
        margin: 12px 0;
        padding: 12px 0;
        border: none;
        border-radius: 12px;
        background: #1E355Ecc;
        color: white;
        font-size: 1rem;
        text-decoration: none;
        text-align: center;
        transition: 0.15s;
    }

    .new-button:visited {
        color: white;
    }

    .new-button:focus {
        outline: none;
    }

    .new-top {
        margin-bottom: 8px;
    }

    .new-bottom {
        margin-top: 8px;
    }
}

.datatable-details-row .new-input-group {
    margin: 4px 0;
    border-radius: 8px;
    padding: 10px 12px;
}

.datatable-details-row .new-input-icon-group {
    margin: 0;
}

.datatable-details-row td .row .col-12 {
    padding: 0 4px !important;
}

@media screen and (min-width: 992px) {
    .datatable-details-row .new-button, .datatable-details-row .new-button:link {
        padding: 4px;
        font-size: 0.9rem !important;
    }
}

@media screen and (max-width: 992px) {
    .datatable-details-row .new-button, .datatable-details-row .new-button:link {
        padding: 8px;
        margin: 6px 0;
    }
}
