/* public/css/admin.css */
@import url("https://fonts.googleapis.com/css2?family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&family=Rokkitt:wght@700&display=swap");

:root {
    --button-primary-bg: #067b7f;
    --button-primary-bg-hover: #045659;
    --button-secondary-color: #067b7f;
    --font-family-base: "PT Sans", "Myriad Pro", helvetica, arial, sans-serif;
    --link-color: #067b7f;
    --link-hover-color: #004c4d;
    --page-login-bg: #f1f5f4;
    --sidebar-bg: #f1f5f4;
    --sidebar-menu-icon-color: #333;
    --sidebar-menu-submenu-color: #333;
    --table-cell-color: #333;
    --text-color-dark: #333;
}

code {
    background-color: #f7f7f9;
    border: 1px solid #e1e1e8;
    border-radius: 3px;
    display: inline-block;
    padding: 2px 4px;
}

h1,
h2,
h3,
h4 {
    font-family: Rokkitt, serif;
    font-weight: 700;
}

.login-wrapper .main-header {
    text-align: center;
}

a,
.btn {
    transition-property:
        color, background-color, border-color, text-decoration-color, fill,
        stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.nav {
    --bs-nav-link-color: var(--link-color);
    --bs-nav-link-hover-color: var(--link-hover-color);
}

.btn {
    --bs-btn-padding-x: 32px;
    --bs-btn-padding-y: 8px;
    --bs-btn-disabled-bg: #045659;
    --bs-btn-hover-bg: #045659;
    --bs-btn-disabled-color: #fff;
    --bs-btn-hover-color: #fff;
    --bs-btn-disabled-border-color: #045659;
    --bs-btn-hover-border-color: #045659;
    --button-primary-hover-bg: var(--bs-btn-hover-bg);
    --button-primary-active-bg: var(--bs-btn-hover-bg);

    border-radius: 0;
    box-shadow: 0 1px 2px 0 rgba(0 0 0 / 30%) !important;
    font-size: 13px;
    font-weight: bold;
}

.btn-primary {
    border: 1px solid var(--button-primary-bg);
}

.btn-secondary {
    border: 1px solid #8acecc;
}

.btn-link {
    box-shadow: none !important;
    border: 0;
}

.table-danger {
    --bs-table-bg: #fee9eb;
}

.table-info {
    --bs-table-bg: #d9edf7;
}

.table-success {
    --bs-table-bg: #dff0d8;
}

.table-warning {
    --bs-table-bg: #fcf8e3;
}

.alert-visible-row {
    --bs-table-bg: #fffaf1;
}

.visible-alert-notice i {
    color: #ffae47;
    font-size: 14px;
}

.datagrid td {
    padding: 16px;
}

#main-menu {
    padding: 20px 0 0;
}

#main-menu .menu {
    margin: 0;
}

#main-menu .menu .menu-item-contents {
    align-items: center;
}

#main-menu .menu .menu-item .submenu-toggle .submenu-toggle-icon {
    top: 1px;
}

#main-menu .menu .submenu .menu-header {
    color: #333;
    display: none;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 0;
    text-transform: none;
}

#main-menu .menu .menu-item.active:not(.expanded) .menu-icon,
#main-menu .menu .menu-item.active:not(.expanded) a {
    color: inherit;
}

.form-widget .form-select,
.form-widget input.form-control,
.form-widget textarea.form-control,
.ts-wrapper .ts-control {
    height: auto;
    padding: 8px;
}

@media (width >= 992px) {
    .content-wrapper {
        padding-bottom: 250px;
    }

    .sidebar {
        display: flex;
        flex-direction: column;
        justify-content: center;
        left: 0;
        position: fixed;
        text-align: center;
        top: 0;
        width: 45px;
    }

    .submenu {
        text-align: left;
    }

    .navbar {
        padding: 0 !important;
    }

    #main-menu {
        padding: 0;
    }

    .main-header {
        position: fixed;
        top: 0;
        width: inherit;
    }

    .page-login {
        .main-header {
            position: static;
        }
    }

    .main-header #header-logo a {
        background-color: #de0d1b;
        color: #fff;
        padding: 17px 0;
    }

    .main-header #header-logo a:hover {
        background-color: #9b0913;
    }

    body.ea-sidebar-width-compact {
        #main-menu {
            .menu {
                .menu-header {
                    display: block;
                    height: auto;
                    overflow: auto;
                    padding: 7px 5px 7px 22px;
                    width: auto;
                }

                .menu-item {
                    .menu-item-contents {
                        padding: 14px 5px 14px 0;
                    }

                    &.has-submenu {
                        &:hover {
                            .submenu {
                                .menu-icon {
                                    margin-right: 0;
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
