*,
*::before,
*::after {
    box-sizing: border-box;
}

ul,
ol {
    padding: 0;
}

body,
h1,
h2,
h3,
h4,
ul,
ol,
li,
figure,
figcaption,
blockquote,
dl,
dd {
    margin: 0;
}

textarea {
    resize: none;
}

.error {
    color: red;
}

.inline-block {
    display: inline-block;
}

.float-right {
    float: right;
}

body {
    min-height: 100vh;
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    position: relative;
    color: #242526;
}

h1 {
    font-weight: bold;
    line-height: 1.1em;
}

ul,
ol {
    list-style: none;
}

a {
    text-decoration-skip-ink: auto;
    color: inherit;
    text-decoration: none;
}

table td > a {
    color: #4cacff;
}

img {
    max-width: 100%;
    display: block;
}

input,
button,
textarea,
select {
    font: inherit;
}

input[type="submit"].disabled {
    cursor: default;
    opacity: 0.5;
}

table {
    width: 100%
}

th {
    color: #9b9b9b;
    text-align: left;
}

td, th {
    padding: 5px;
    border-bottom: 1px solid #ccc;
}

.table-top td {
    vertical-align: top;
}

.order {
    display: inline-block;
    position: relative;
    padding-right: 20px;
}

.order:before,
.order:after {
    content: "";
    display: block;
    position: absolute;
    right: 5px;
    width: 0;
    height: 0;
}

.order:before {
    top: 50%;
    margin-top: -6px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #9b9b9b;
}

.order:after {
    bottom: 50%;
    margin-bottom: -6px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #9b9b9b;
}

.order--desc:before {
    display: none;
}

.order--desc:after {
    margin-bottom: -2px;
    border-top: 5px solid black;
}

.order--asc:before {
    margin-top: -4px;
    border-bottom: 5px solid black;
}

.order--asc:after {
    display: none;
}

select option {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 5px 0;
}

.required {
    color: red;
}

.loading {
    pointer-events: none;
    opacity: 0.4;
}

.flex {
    display: flex;
}

.gap-5 {
    gap: 5px;
}

.gap-10 {
    gap: 10px;
}

.menu select {
    padding: 5px 10px;
    border-radius: 3px;
}

.menu__item {
    display: block;
    margin: 5px;
}

.menu__item:hover {
    opacity: 0.8;
}

.header {
    font-size: 1.5em;
    background: #4cacff;
    padding: 20px;
    color: #fff;
    display: flex;
    justify-content: space-between;
}

.main {
    display: flex;
    flex-grow: 1;
}

.sidebar {
    width: 250px;
    padding: 20px;
    border-right: 1px solid #ccc;
}

.sidebar__menu .menu__item {
    margin: 5px 0;
    padding: 5px 0;
}

.page {
    padding: 20px;
    width: 100%;
    flex-grow: 1;
}

.page__menu {
    display: flex;
    justify-content: flex-end;
    background: #e5e5e5;
    margin: 20px 0;
    padding: 5px;
    border-radius: 3px;
}

.page__menu .menu__item {
    background: #fff;
    padding: 5px 10px;
    border: 1px solid #333;
    border-radius: 3px;
    margin-left: 10px;
}

.page__title {
    font-size: 1.5em;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    align-items: flex-start;
    margin: 10px 0;
}

.form-group__field {
    width: 100%;
    margin: 10px;
}

.form-group__field label {
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
    font-size: 14px;
}

.form-group__field input:not([type="button"],[type="radio"],[type="checkbox"]),
.form-group__field textarea,
.form-group__field select {
    width: 100%;
    padding: 5px;
}

.form-group__field input[type="submit"],
.form-group__field a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 25px;
    width: 100%;
}

.form-group__field-child {
    display: none;
}

.submit {
    justify-content: flex-end;
}

.submit input {
    display: inline-block;
    margin-right: 10px;
}

.notice {
    margin: 10px 0;
    padding: 10px;
    background: #ccc;
    color: #333;
    border: #333;
    font-size: 14px;
}

.notice_success {
    background: #8fffb6;
    color: #00591f;
    border: #00591f;
}

.notice_danger {
    background: #ffa9a9;
    color: darkred;
    border: darkred;
}

.schedule {
    margin: 10px 0;
}

.schedule__row {
    display: flex;
}

.schedule__cell {
    width: 34px;
    height: 34px;
    padding: 2px;
    text-align: center;
    user-select: none;
}

.schedule__link {
    border: 1px solid #ccc;
}

.schedule__link > input[type="checkbox"] {
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
    border-radius: 2px;
    box-shadow: none;
}

.schedule__link > input[type="checkbox"]:hover {
    mix-blend-mode: luminosity;
    opacity: .6;
}

.schedule__link > input[type="checkbox"]:checked::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    background-color: #76d57e;
    border-radius: 2px;
}

.schedule__link-active {
    background: #4cacff;
}

.active-links {
    margin: 10px 0;
    overflow: hidden;
}

.active-links .remove-link {
    float: right;
    display: inline-block;
    color: red;
}

.btn {
    background: #4cacff;
    border: 1px solid #4cacff;
    border-radius: 3px;
    display: inline-block;
    padding: 5px 10px;
    color: #fff;
}

a.btn,
input.btn,
button.btn {
    cursor: pointer;
}

.btn-danger {
    background: red;
    border-color: red;
}

.btn-green {
    background-color: #1c7430;
    border-color: #1c7430;
}

a.btn:hover,
input.btn:hover,
button.btn:hover {
    opacity: 0.8;
}

.form-auth {
    width: 300px;
    margin: 20px auto;
}

.pagination {
    margin: 15px auto;
    display: flex;
    align-items: center;
    line-height: 1;
    justify-content: center;
}

.pagination li {
    list-style-type: none;
    margin-left: 10px;
}

.pagination li span,
.pagination li a {
    color: #000;
    padding: 7px 12px;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.pagination li a {
    text-decoration: none;
}

.pagination li.active span,
.pagination li a:hover {
    background: #ccc;
    color: #fff;
}

.pagination li.disabled {
    opacity: 0.5;
}

#websites-sortable .ui-sortable-helper {
    max-width: 100%;
    display: flex;
    justify-content: space-between;
    background: #e5e5e5;
}

#websites-sortable .handler {
    background: #4cacff;
    color: #fff;
    border: 3px solid #fff;
    cursor: move;
    width: 45px;
    text-align: center;
}

.websites-cell > .websites-cell__item {
    display: none;
    margin: 5px 0;
}

.websites-cell.all > .websites-cell__item {
    display: block;
}

.websites-cell > div:nth-child(1),
.websites-cell > div:nth-child(2),
.websites-cell > div:nth-child(3),
.websites-cell > div:nth-child(4),
.websites-cell > div:nth-child(5) {
    display: block;
}

.websites-cell__buttons {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.websites-cell.all .websites-cell__more {
    display: none;
}

.page-empty {
    margin: 30px 0;
    font-size: 1.3em;
    text-align: center;
}

.page-total {
    margin: 30px 0;
}

.chart {
    padding: 20px;
    border: 1px solid #cccccc;
}

.chart__buttons {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #cccccc;
}

.chart__button.active {
    cursor: initial;
}

.chart__button.active:hover {
    opacity: 1;
}

.chart__button:not(.active) {
    background-color: #a3a3a3;
    border-color: #a3a3a3;
}

.chart__content {
    width: 100%;
    height: 500px;
}

.ui-widget.ui-widget-content {
    z-index: 2 !important;
}

.form-notice {
    margin-top: 5px;
    font-size: 12px;
}
