﻿@media screen and (min-width: 1200px) {
    .datatable-hover-card {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 292px;
        padding: 16px;
        background: white;
        border-radius: 8px;
        z-index: 10000;
        box-shadow: 0 0 16px #0003;
    }

    .datatable-details-row {
        background: white !important;
    }

    .datatable-details-row > td {
        border-top: 3px dashed #ccc !important;
        border-bottom: 3px solid #ccc !important;
        padding: 12px 24px 16px 24px !important;
    }

    .datatable-details-row > td > .row {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .datatable-conversion-row {
        border-bottom: 2px solid #eee !important;
        padding: 12px 16px;
    }

    .datatable-conversion-button {
        background: none;
        color: white;
        border: 2px solid white;
        padding: 8px 16px;
        border-radius: 8px;
        margin: 0 4px;
        transition: 0.15s;
    }

    .datatable-conversion-button:hover {
        background: white;
        color: black;
    }

    .datatable {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .datatable span {
        font-size: 1.05rem;
    }

    .datatable-row {
        display: flex;
        justify-content: space-between;
        width: 100%;
        margin: 16px 0;
    }

    .datatable-content {
        width: 100%;
        margin: 6px 0;
        padding: 12px 0;
    }

    .datatable-entries-wrapper {
        display: flex;
        align-items: center;
    }

    .datatable-entries-wrapper > select {
        width: 100px;
        margin: 0 6px;
        padding: 4px 8px;
        border: 1px solid black;
        border-radius: 4px;
        outline: none;
    }

    .datatable-search-wrapper {
        display: flex;
        align-items: center;
    }

    .datatable-search {
        width: 300px;
        margin-left: 8px;
        border: 1px solid black;
        border-radius: 4px;
        padding: 4px 8px;
        outline: none;
    }

    .datatable-quantity-wrapper {
        display: flex;
    }

    .datatable-pagination-wrapper {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: flex-end;
    }

    .datatable-pagination-numbers {
        display: flex;
    }

    .datatable-pagination-navigation {
        margin-top: 8px;
        display: flex;
        justify-content: flex-end;
    }

    .datatable-page, a.datatable-page:link {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 36px;
        height: 36px;
        min-height: 36px;
        margin: 0 2px;
        background: none;
        border: none;
        text-decoration: none;
        color: black;
        border-radius: 100%;
        font-size: 1.1rem;
        transition: 0.15s;
    }

    a.datatable-page:visited {
        color: black;
    }

    .datatable-page:hover {
        background: #1E355E;
        color: white;
    }

    .datatable-page-selected, a.datatable-page-selected:link {
        background: #1E355E;
        color: white;
    }

    .datatable-page-front {
        margin-left: 0 !important;
    }

    .datatable-page-back {
        margin-right: 0 !important;
    }

    .datatable-page-divider {
        margin: 0 8px;
    }

    .datatable-scrollable-container {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        border-radius: 12px;
        box-shadow: 0 0 24px rgba(0, 0, 0, 0.125);
    }

    .datatable-scrollable-container::-webkit-scrollbar {
        height: 8px;
    }

    .datatable-table {
        width: 100%;
        max-width: 100%;
        background: white;
        border-collapse: separate;
        border-spacing: 0;
        box-shadow: 0 0 24px rgba(0, 0, 0, 0.125);
    }

    .datatable-table thead {
        background: #1E355E;
        text-align: left;
        color: white;
    }

    .datatable-table thead th {
        padding: 12px 24px;
        font-weight: normal;
    }

    .datatable-table tbody {
        text-align: left;
    }

    .datatable-table tbody tr:nth-child(even) {
        background: #eee;
    }

    .datatable-table tbody td {
        padding: 4px 24px;
        font-weight: normal;
        font-size: 0.9rem;
        text-overflow: ellipsis;
    }

    .datatable-table tfoot {
        background: #1E355E;
        color: white;
    }

    .datatable-table tfoot td {
        padding: 12px 24px;
        font-weight: normal;
    }

    .datatable-action-button-footer, a.datatable-action-button-footer:link {
        display: inline-block;
        width: 100%;
        text-align: center;
        color: white;
        border: 2px solid white;
        text-decoration: none;
        border-radius: 8px;
        padding: 4px 0;
        background: transparent;
        transition: 0.15s;
    }

    a.datatable-action-button-footer:visited {
        color: white;
    }

    .datatable-action-button-footer:hover, a.datatable-action-button-footer:hover {
        background: white;
        color: black;
    }

    .datatable-actions {
        width: 164px;
        text-align: center;
    }

    .datatable-action-button, a.datatable-action-button:link {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        width: 32px;
        height: 32px;
        color: black;
        font-size: 1.2rem;
        border: none;
        border-radius: 8px;
        background: none;
        text-decoration: none;
        transition: 0.15s;
    }

    .datatable-action-button:first-child:not(:last-child) {
        margin-right: 2px;
    }

    .datatable-action-button:last-child:not(:first-child) {
        margin-left: 2px;
    }

    .datatable-action-button:not(:first-child):not(:last-child) {
        margin: 0 2px;
    }

    a.datatable-action-button:visited {
        color: black;
    }

    .datatable-view:hover, a.datatable-view:hover {
        background: #ddd;
    }

    .datatable-edit:hover, a.datatable-edit:hover {
        background: #d3d333;
        color: #eee;
    }

    .datatable-delete:hover, a.datatable-delete:hover {
        background: #f44;
        color: #eee;
    }

    .datatable-table th, .datatable-table td {
        white-space: nowrap;
    }

    .datatable-edit-input {
        width: 100%;
        border: 1px solid black;
        border-radius: 4px;
        padding: 4px 8px;
        font-size: 1rem;
        outline: none;
    }

    .datatable-edit-check-switch {
        display: inline-block;
        width: 100%;
        height: 18px;
        margin-top: 6px;
        position: relative;
    }

    .datatable-edit-check {
        display: none;
    }

    .datatable-edit-check > label {
        display: flex;
        align-items: center;
    }

    .datatable-edit-check-toggle {
        display: inline-block;
        background: #ccc;
        cursor: pointer;
        transition: 0.4s;
        border-radius: 50px;
        width: 36px;
        height: 18px;
    }

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

    .datatable-edit-check:checked + label .datatable-edit-check-toggle {
        background: #0999dd;
    }

    .datatable-edit-check:checked + label .datatable-edit-check-toggle:before {
        transform: translateX(18px);
    }
}

@media screen and (min-width: 992px) and (max-width: 1200px) {
    .datatable-hover-card {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 292px;
        padding: 16px;
        background: white;
        border-radius: 8px;
        z-index: 10000;
        box-shadow: 0 0 16px #0003;
    }

    .datatable-details-row {
        background: white !important;
    }

    .datatable-details-row > td {
        border-top: 3px dashed #ccc !important;
        border-bottom: 3px solid #ccc !important;
        padding: 12px 20px 16px 20px !important;
    }

    .datatable-details-row > td > .row {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .datatable-conversion-row {
        border-bottom: 2px solid #eee !important;
        padding: 10px 14px;
    }

    .datatable-conversion-button {
        background: none;
        color: white;
        border: 2px solid white;
        padding: 8px 16px;
        border-radius: 8px;
        margin: 0 4px;
        transition: 0.15s;
    }

    .datatable-conversion-button:hover {
        background: white;
        color: black;
    }

    .datatable {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .datatable span {
        font-size: 1rem;
    }

    .datatable-row {
        display: flex;
        justify-content: space-between;
        width: 100%;
        margin: 12px 0;
    }

    .datatable-content {
        width: 100%;
        margin: 6px 0;
        padding: 12px 0;
    }

    .datatable-entries-wrapper {
        display: flex;
        align-items: center;
    }

    .datatable-entries-wrapper > select {
        width: 80px;
        margin: 0 6px;
        padding: 4px 6px;
        border: 1px solid black;
        border-radius: 4px;
        outline: none;
    }

    .datatable-search-wrapper {
        display: flex;
        align-items: center;
    }

    .datatable-search {
        width: 248px;
        margin-left: 6px;
        border: 1px solid black;
        border-radius: 4px;
        padding: 4px 6px;
        outline: none;
    }

    .datatable-quantity-wrapper {
        display: flex;
    }

    .datatable-pagination-wrapper {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: flex-end;
    }

    .datatable-pagination-numbers {
        display: flex;
    }

    .datatable-pagination-navigation {
        margin-top: 8px;
        display: flex;
    }

    .datatable-page, a.datatable-page:link {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 32px;
        height: 32px;
        min-height: 32px;
        margin: 0 2px;
        background: none;
        border: none;
        text-decoration: none;
        color: black;
        border-radius: 100%;
        font-size: 1rem;
        transition: 0.15s;
    }

    a.datatable-page:visited {
        color: black;
    }

    .datatable-page:hover {
        background: #1E355E;
        color: white;
    }

    .datatable-page-selected, a.datatable-page-selected:link {
        background: #1E355E;
        color: white;
    }

    .datatable-page-front {
        margin-left: 0 !important;
    }

    .datatable-page-back {
        margin-right: 0 !important;
    }

    .datatable-page-divider {
        margin: 0 6px;
    }

    .datatable-scrollable-container {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 12px;
        box-shadow: 0 0 24px rgba(0, 0, 0, 0.125);
    }

    .datatable-scrollable-container::-webkit-scrollbar {
        height: 8px;
    }

    .datatable-table {
        width: 100%;
        max-width: 100%;
        background: white;
        border-collapse: separate;
        border-spacing: 0;
        box-shadow: 0 0 24px rgba(0, 0, 0, 0.125);
    }

    .datatable-table thead {
        background: #1E355E;
        text-align: left;
        color: white;
    }

    .datatable-table thead th {
        padding: 10px 18px;
        font-weight: normal;
    }

    .datatable-table tbody {
        text-align: left;
    }

    .datatable-table tbody tr:nth-child(even) {
        background: #eee;
    }

    .datatable-table tbody td {
        padding: 4px 18px;
        font-weight: normal;
        font-size: 0.9rem;
        text-overflow: ellipsis;
    }

    .datatable-table tfoot {
        background: #1E355E;
        color: white;
    }

    .datatable-table tfoot td {
        padding: 12px 20px;
        font-weight: normal;
    }

    .datatable-action-button-footer, a.datatable-action-button-footer:link {
        display: inline-block;
        width: 100%;
        text-align: center;
        color: white;
        border: 2px solid white;
        text-decoration: none;
        border-radius: 8px;
        padding: 4px 0;
        background: transparent;
        transition: 0.15s;
    }

    a.datatable-action-button-footer:visited {
        color: white;
    }

    .datatable-action-button-footer:hover, a.datatable-action-button-footer:hover {
        background: white;
        color: black;
    }

    .datatable-actions {
        width: 128px;
        text-align: center;
    }

    .datatable-action-button, a.datatable-action-button:link {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        width: 30px;
        height: 30px;
        color: black;
        font-size: 1.1rem;
        border: none;
        border-radius: 8px;
        background: none;
        text-decoration: none;
        transition: 0.15s;
    }

    .datatable-action-button:first-child:not(:last-child) {
        margin-right: 2px;
    }

    .datatable-action-button:last-child:not(:first-child) {
        margin-left: 2px;
    }

    .datatable-action-button:not(:first-child):not(:last-child) {
        margin: 0 2px;
    }

    a.datatable-action-button:visited {
        color: black;
    }

    .datatable-view:hover {
        background: #ddd;
    }

    .datatable-delete:hover {
        background: #f44;
        color: #eee;
    }

    .datatable-table th, .datatable-table td {
        white-space: nowrap;
    }

    .datatable-edit-input {
        width: 100%;
        border: 1px solid black;
        border-radius: 4px;
        padding: 4px 6px;
        font-size: 1rem;
        outline: none;
    }

    .datatable-edit-check-switch {
        display: inline-block;
        width: 100%;
        height: 18px;
        margin-top: 6px;
        position: relative;
    }

    .datatable-edit-check {
        display: none;
    }

    .datatable-edit-check > label {
        display: flex;
        align-items: center;
    }

    .datatable-edit-check-toggle {
        display: inline-block;
        background: #ccc;
        cursor: pointer;
        transition: 0.4s;
        border-radius: 50px;
        width: 36px;
        height: 18px;
    }

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

    .datatable-edit-check:checked + label .datatable-edit-check-toggle {
        background: #0999dd;
    }

    .datatable-edit-check:checked + label .datatable-edit-check-toggle:before {
        transform: translateX(18px);
    }
}

@media screen and (min-width: 768px) and (max-width: 992px) {
    .datatable-hover-card {
        display: none;
    }

    .datatable-details-row {
        background: white !important;
    }

    .datatable-details-row > td {
        border-top: 3px dashed #ccc !important;
        border-bottom: 3px solid #ccc !important;
        padding: 12px 20px 16px 20px !important;
    }

    .datatable-details-row > td > .row {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .datatable-conversion-row {
        border-bottom: 2px solid #eee !important;
        padding: 10px 14px;
    }

    .datatable-conversion-button {
        background: none;
        color: white;
        border: 2px solid white;
        padding: 6px 12px;
        border-radius: 8px;
        margin: 0 4px;
        transition: 0.15s;
    }

    .datatable-conversion-button:hover {
        background: white;
        color: black;
    }

    .datatable {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .datatable span {
        font-size: 1rem;
    }

    .datatable-row {
        display: flex;
        justify-content: space-between;
        width: 100%;
        margin: 12px 0;
    }

    .datatable-content {
        width: 100%;
        margin: 6px 0;
        padding: 12px 0;
    }

    .datatable-entries-wrapper {
        display: flex;
        align-items: center;
    }

    .datatable-entries-wrapper > select {
        width: 72px;
        margin: 0 6px;
        padding: 4px 6px;
        border: 1px solid black;
        border-radius: 4px;
        outline: none;
    }

    .datatable-search-wrapper {
        display: flex;
        align-items: center;
    }

    .datatable-search {
        width: 212px;
        margin-left: 6px;
        border: 1px solid black;
        border-radius: 4px;
        padding: 4px 6px;
        outline: none;
    }

    .datatable-quantity-wrapper {
        display: flex;
    }

    .datatable-pagination-wrapper {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: flex-end;
    }

    .datatable-pagination-numbers {
        display: flex;
    }

    .datatable-pagination-navigation {
        margin-top: 8px;
        display: flex;
    }

    .datatable-page, a.datatable-page:link {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 30px;
        height: 30px;
        min-height: 30px;
        margin: 0 2px;
        background: none;
        border: none;
        text-decoration: none;
        color: black;
        border-radius: 100%;
        font-size: 1rem;
        transition: 0.15s;
    }

    a.datatable-page:visited {
        color: black;
    }

    .datatable-page:hover {
        background: #1E355E;
        color: white;
    }

    .datatable-page-selected, a.datatable-page-selected:link {
        background: #1E355E;
        color: white;
    }

    .datatable-page-front {
        margin-left: 0 !important;
    }

    .datatable-page-back {
        margin-right: 0 !important;
    }

    .datatable-page-divider {
        margin: 0 6px;
    }

    .datatable-scrollable-container {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        border-radius: 8px;
        box-shadow: 0 0 24px rgba(0, 0, 0, 0.125);
    }

    .datatable-scrollable-container::-webkit-scrollbar {
        height: 8px;
    }

    .datatable-table {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        background: white;
        border-collapse: separate;
        border-spacing: 0;
    }

    .datatable-table thead {
        background: #1E355E;
        text-align: left;
        color: white;
    }

    .datatable-table thead th {
        padding: 8px 18px;
        font-weight: normal;
    }

    .datatable-table tbody {
        text-align: left;
    }

    .datatable-table tbody tr:nth-child(even) {
        background: #eee;
    }

    .datatable-table tbody td {
        padding: 4px 18px;
        font-weight: normal;
        font-size: 0.9rem;
        text-overflow: ellipsis;
    }

    .datatable-table tfoot {
        background: #1E355E;
        color: white;
    }

    .datatable-table tfoot td {
        padding: 10px 18px;
        font-weight: normal;
    }

    .datatable-action-button-footer, a.datatable-action-button-footer:link {
        display: inline-block;
        width: 100%;
        text-align: center;
        color: white;
        border: 2px solid white;
        text-decoration: none;
        border-radius: 8px;
        padding: 4px 0;
        background: transparent;
        transition: 0.15s;
    }

    a.datatable-action-button-footer:visited {
        color: white;
    }

    .datatable-action-button-footer:hover, a.datatable-action-button-footer:hover {
        background: white;
        color: black;
    }

    .datatable-actions {
        width: 112px;
        text-align: center;
    }

    .datatable-action-button, a.datatable-action-button:link {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        width: 28px;
        height: 28px;
        color: black;
        font-size: 1.1rem;
        border: none;
        border-radius: 8px;
        background: none;
        text-decoration: none;
        transition: 0.15s;
    }

    .datatable-action-button:first-child:not(:last-child) {
        margin-right: 1px;
    }

    .datatable-action-button:last-child:not(:first-child) {
        margin-left: 1px;
    }

    .datatable-action-button:not(:first-child):not(:last-child) {
        margin: 0 1px;
    }

    a.datatable-action-button:visited {
        color: black;
    }

    .datatable-view:hover {
        background: #ddd;
    }

    .datatable-delete:hover {
        background: #f44;
        color: #eee;
    }

    .datatable-table th, .datatable-table td {
        white-space: nowrap;
    }

    .datatable-edit-input {
        width: 100%;
        border: 1px solid black;
        border-radius: 4px;
        padding: 4px 6px;
        font-size: 0.975rem;
        outline: none;
    }

    .datatable-edit-check-switch {
        display: inline-block;
        width: 100%;
        height: 18px;
        margin-top: 6px;
        position: relative;
    }

    .datatable-edit-check {
        display: none;
    }

    .datatable-edit-check > label {
        display: flex;
        align-items: center;
    }

    .datatable-edit-check-toggle {
        display: inline-block;
        background: #ccc;
        cursor: pointer;
        transition: 0.4s;
        border-radius: 50px;
        width: 36px;
        height: 18px;
    }

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

    .datatable-edit-check:checked + label .datatable-edit-check-toggle {
        background: #0999dd;
    }

    .datatable-edit-check:checked + label .datatable-edit-check-toggle:before {
        transform: translateX(18px);
    }
}

@media screen and (max-width: 768px) {
    .datatable-hover-card {
        display: none;
    }

    .datatable-details-row {
        background: white !important;
    }

    .datatable-details-row > td {
        border-top: 3px dashed #ccc !important;
        border-bottom: 3px solid #ccc !important;
        padding: 12px 20px 16px 20px !important;
    }

    .datatable-details-row > td > .row {
        width: 100%;
        margin: 0;
        padding: 2px 0;
    }

    .datatable-conversion-row {
        border-bottom: 2px solid #eee !important;
        padding: 10px 14px;
    }

    .datatable-conversion-button {
        background: none;
        color: white;
        border: 2px solid white;
        padding: 6px 12px;
        border-radius: 8px;
        margin: 0 4px;
    }

    .datatable {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .datatable span {
        font-size: 1rem;
    }

    .datatable .datatable-search ~ label {
        font-size: 1.1rem;
    }

    .datatable-row {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .datatable-content {
        width: 100%;
        margin: 6px 0;
        padding: 12px 0;
    }

    .datatable-entries-wrapper {
        display: flex;
        align-items: center;
        margin: 6px 0;
    }

    .datatable-entries-wrapper > select {
        width: 100px;
        padding: 4px 6px;
        border: 1px solid black;
        border-radius: 4px;
        outline: none;
        margin: 6px;
    }

    .datatable-search-wrapper {
        display: flex;
        align-items: center;
        width: 100%;
    }

    .datatable-search {
        width: 100%;
        margin-left: 6px;
        border: 1px solid black;
        border-radius: 4px;
        padding: 4px 6px;
        outline: none;
    }

    .datatable-quantity-wrapper {
        display: flex;
        margin: 6px 0;
    }

    .datatable-pagination-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin: 6px 0;
    }

    .datatable-pagination-numbers {
        display: flex;
    }

    .datatable-pagination-navigation {
        margin-top: 8px;
        display: flex;
    }

    .datatable-page, a.datatable-page:link {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 36px;
        height: 36px;
        min-height: 36px;
        margin: 0 1px;
        background: none;
        border: none;
        text-decoration: none;
        color: black;
        border-radius: 100%;
        font-size: 1.2rem;
    }

    a.datatable-page:visited {
        color: black;
    }

    .datatable-page-selected, a.datatable-page-selected:link {
        background: #1E355E;
        color: white;
    }

    .datatable-page-front {
        margin-left: 0 !important;
    }

    .datatable-page-back {
        margin-right: 0 !important;
    }

    .datatable-page-divider {
        margin: 0 6px;
    }

    .datatable-scrollable-container {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 6px;
        box-shadow: 0 0 24px rgba(0, 0, 0, 0.125);
    }

    .datatable-scrollable-container::-webkit-scrollbar {
        height: 8px;
    }

    .datatable-table {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        background: white;
        border-collapse: separate;
        border-spacing: 0;
    }

    .datatable-table thead {
        background: #1E355E;
        text-align: left;
        color: white;
    }

    .datatable-table thead th {
        padding: 8px 18px;
        font-weight: normal;
        font-size: 1rem;
    }

    .datatable-table tbody {
        text-align: left;
    }

    .datatable-table tbody tr:nth-child(even) {
        background: #eee;
    }

    .datatable-table tbody td {
        padding: 8px 18px;
        font-weight: normal;
        font-size: 1rem;
        text-overflow: ellipsis;
    }

    .datatable-table tfoot {
        background: #1E355E;
        color: white;
    }

    .datatable-table tfoot td {
        padding: 10px 16px;
        font-weight: normal;
    }

    .datatable-action-button-footer, a.datatable-action-button-footer:link {
        display: inline-block;
        width: 100%;
        text-align: center;
        color: white;
        border: 2px solid white;
        text-decoration: none;
        border-radius: 8px;
        background: transparent;
        padding: 6px 0;
    }

    a.datatable-action-button-footer:visited {
        color: white;
    }

    .datatable-actions {
        width: 164px;
        text-align: center;
    }

    .datatable-action-button, a.datatable-action-button:link {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        width: 36px;
        height: 36px;
        color: black;
        font-size: 1.2rem;
        border: none;
        border-radius: 8px;
        background: none;
        text-decoration: none;
    }

    .datatable-action-button:first-child:not(:last-child) {
        margin-right: 1px;
    }

    .datatable-action-button:last-child:not(:first-child) {
        margin-left: 1px;
    }

    .datatable-action-button:not(:first-child):not(:last-child) {
        margin: 0 1px;
    }

    a.datatable-action-button:visited {
        color: black;
    }

    .datatable-table th, .datatable-table td {
        white-space: nowrap;
    }

    .datatable-edit-input {
        width: 100%;
        border: 1px solid black;
        border-radius: 4px;
        padding: 4px 6px;
        font-size: 1rem;
        outline: none;
    }

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

    .datatable-edit-check {
        display: none;
    }

    .datatable-edit-check > label {
        display: flex;
        align-items: center;
    }

    .datatable-edit-check-toggle {
        display: inline-block;
        background: #ccc;
        cursor: pointer;
        transition: 0.4s;
        border-radius: 50px;
        width: 36px;
        height: 18px;
    }

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

    .datatable-edit-check:checked + label .datatable-edit-check-toggle {
        background: #0999dd;
    }

    .datatable-edit-check:checked + label .datatable-edit-check-toggle:before {
        transform: translateX(18px);
    }
}

.datatable-compact {
    font-size: 0.9rem;
}

.datatable-compact .datatable-row {
    margin: 0 !important;
}

.datatable-compact .datatable-content {
    margin: 0 !important;
}

.datatable-compact .datatable-search {
    padding: 2px 4px !important;
}

.datatable-compact .datatable-entries-wrapper span {
    font-size: 0.9rem !important;
}

.datatable-compact .datatable-pagination-navigation {
    margin-top: 2px;
}

.datatable-compact .datatable-conversion-row {
    padding: 8px 4px !important;
}

.datatable-compact th:not(.datatable-conversion-row) {
    padding: 6px 8px !important;
}

.datatable-compact .datatable-conversion-button {
    padding: 4px 8px !important;
}

.datatable-compact .datatable-table > tbody > tr > td {
    padding: 3px 8px !important;
}

.datatable-compact .datatable-action-button-footer:link {
    padding: 4px 8px !important;
    margin: 0 4px !important;
    width: calc(100% - 8px) !important;
}

.datatable-compact .datatable-table > tfoot > tr > td {
    padding: 8px 4px !important;
}

.datatable-compact .datatable-quantity-wrapper > span {
    font-size: 0.9rem !important;
}