@import url(https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap);

/* ============================================================
   Graphic theme of the admin (0.3.0), loaded after custom.css:
   the theme of the FieraRoma intranet with the RunPizza colors.
   Warm charcoal side menu and top bar, tomato red for actions and
   current page, cheese yellow only as accent on the dark menu,
   warm light grey page. Only overrides of the template (style.css,
   colors/red-dark.css, custom.css): no markup changes are needed.
   ============================================================ */

:root {
    --rp-font: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    --rp-text: #2e2926;
    --rp-text-muted: #776d67;
    --rp-heading: #1d1816;
    --rp-primary: #c9402a;
    --rp-primary-dark: #a9341f;
    --rp-primary-soft: rgba(201, 64, 42, .16);
    --rp-accent: #f2b544;
    --rp-page: #f4f1ee;
    --rp-box-border: #e6e0da;
    --rp-line: #eee9e4;
    --rp-input-border: #d8d0c9;
    --rp-radius: 12px;
    --rp-radius-sm: 8px;
    --rp-shadow: 0 1px 2px rgba(40, 24, 16, .05), 0 4px 14px rgba(40, 24, 16, .06);
    --rp-shadow-lg: 0 12px 32px rgba(40, 24, 16, .18);
    --rp-side: #1f1b19;
    --rp-side-dark: #181513;
    --rp-side-text: #cfc6c0;
    --rp-side-sub: #b4aaa3;
    --rp-side-icon: #8f847d;
    --rp-side-hover: rgba(255, 255, 255, .06);
    --rp-side-active: rgba(201, 64, 42, .26);
    --rp-side-mark: #e2553b;
    --rp-success: #2f9e5b;
    --rp-info: #2f7fc1;
    --rp-warning: #e29a2b;
    --rp-danger: #b8283a;
}

/* ---------- fonts and texts ---------- */

body,
.tooltip,
.popover,
.jconfirm,
.jq-toast-wrap {
    font-family: var(--rp-font);
}
body {
    color: var(--rp-text);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6,
.panel .panel-body,
.panel .panel-heading .panel-title {
    font-family: var(--rp-font);
}
h1, h2, h3, h4, h5, h6 {
    color: var(--rp-heading);
    font-weight: 600;
    letter-spacing: -.01em;
}
.text-muted {
    color: var(--rp-text-muted);
}
a {
    color: var(--rp-primary);
}
a:hover,
a:focus {
    color: var(--rp-primary-dark);
}
b, strong {
    font-weight: 600;
}

/* ---------- page ---------- */

.page-wrapper {
    background: var(--rp-page);
}

/* ---------- top bar ---------- */

/* dark instead of the red gradient of colors/red-dark.css, with a thin
   tomato line on top as the only brand mark */
.navbar-header {
    background: var(--rp-side);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    box-shadow: inset 0 2px 0 var(--rp-primary);
}
.top-left-part,
.fix-sidebar .top-left-part {
    background: var(--rp-side-dark);
}
/* logo: style.css styles only .logo b, so the icon and the logo of the
   markup were stacked over the profile. The logo on one 60px row, only
   the icon when the bar is 60px wide (collapsed menu and phone) */
.top-left-part a.logo {
    display: flex;
    align-items: center;
    height: 60px;
}
.top-left-part span.icon {
    display: none;
}
.top-left-part span.logo {
    display: block;
}
.top-left-part .dark-logo {
    height: 44px;
    width: auto;
    max-width: 100%;
    padding: 0 0 0 20px;
}
.top-left-part span.icon img {
    height: 42px;
    width: auto;
}
.mini-sidebar .top-left-part span.icon {
    display: flex;
    justify-content: center;
    width: 60px;
}
.mini-sidebar .top-left-part span.logo {
    display: none;
}
@media (max-width: 767px) {
    .top-left-part span.icon {
        display: flex;
        justify-content: center;
        width: 60px;
    }
    .top-left-part span.logo {
        display: none;
    }
}

.navbar-top-links > li > a {
    color: var(--rp-side-text);
}
.navbar-top-links > li > a:hover,
.navbar-top-links > li > a:focus {
    color: #fff;
    background: rgba(255, 255, 255, .06);
}
.app-search i {
    color: var(--rp-side-icon);
}
.app-search .form-control,
.app-search .form-control:focus {
    font-family: var(--rp-font);
    font-weight: 500;
}
.navbar-top-links .badge-danger {
    background: var(--rp-primary);
}

/* ---------- side menu ---------- */

.sidebar,
.sidebar-nav,
.mini-sidebar .sidebar-nav {
    background: var(--rp-side);
}
.sidebar {
    border-right: 0;
    box-shadow: 1px 0 0 rgba(0, 0, 0, .25);
}
.user-profile {
    padding: 22px 0 18px;
    margin: 0 16px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.user-profile .profile-image {
    padding-top: 6px;
}
.user-profile .profile-image img {
    width: 72px;
    height: 72px;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .12);
}
.user-profile .badge {
    top: 6px;
    border-color: var(--rp-side);
}
.user-profile .badge-danger {
    background: var(--rp-primary);
}
.user-profile .profile-text,
.user-profile .profile-text a {
    color: #fff;
    font-weight: 600;
    font-size: 15px;
}

.sidebar-nav ul#side-menu {
    padding: 4px 12px 0;
}
.sidebar-nav ul#side-menu li a,
#side-menu li a {
    color: var(--rp-side-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    border-radius: var(--rp-radius-sm);
    transition: background-color .15s ease, color .15s ease;
}
/* first level: compact rows with aligned icons */
.sidebar-nav ul#side-menu > li {
    margin-bottom: 2px;
}
.sidebar-nav ul#side-menu > li > a {
    padding: 10px 14px;
    position: relative;
}
.sidebar .fa-fw,
.sidebar-nav ul#side-menu li a i {
    color: var(--rp-side-icon);
    font-size: 16px;
    width: 22px;
    margin-right: 12px;
    text-align: center !important;
    transition: color .15s ease;
}
.sidebar-nav ul#side-menu li a:hover,
.sidebar-nav ul#side-menu li a:focus,
#side-menu ul > li > a:hover {
    color: #fff;
    background: var(--rp-side-hover);
}
.sidebar-nav ul#side-menu li a:hover i,
.sidebar-nav ul#side-menu li a:focus i {
    color: #fff;
}
/* open group */
.sidebar-nav ul#side-menu > li.active > a,
.sidebar-nav ul#side-menu > li > a[aria-expanded="true"] {
    color: #fff;
    background: rgba(255, 255, 255, .05);
}
.sidebar-nav ul#side-menu > li.active > a i {
    color: var(--rp-accent);
}
/* current page */
.sidebar-nav ul#side-menu li a.active,
#side-menu ul > li > a.active {
    color: #fff;
    background: var(--rp-side-active);
    font-weight: 600;
}
.sidebar-nav ul#side-menu li a.active i {
    color: var(--rp-accent);
}
.sidebar-nav ul#side-menu > li > a.active:before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 3px;
    background: var(--rp-side-mark);
}
/* arrow of the groups (the links with a submenu do not point to a page) */
.sidebar-nav ul#side-menu li > a[href="javascript:void(0);"]:after {
    content: '\f054';
    font-family: 'FontAwesome';
    font-weight: normal;
    font-size: 10px;
    position: absolute;
    right: 14px;
    top: 50%;
    margin-top: -7px;
    line-height: 14px;
    color: var(--rp-side-icon);
    transition: transform .2s ease;
}
.sidebar-nav ul#side-menu li > a[href="javascript:void(0);"] {
    position: relative;
    padding-right: 32px;
}
.sidebar-nav ul#side-menu li.active > a[href="javascript:void(0);"]:after,
.sidebar-nav ul#side-menu li > a[aria-expanded="true"]:after {
    transform: rotate(90deg);
    color: #fff;
}
/* submenus: guide line on the left, smaller rows */
.sidebar-nav ul#side-menu li ul {
    padding: 4px 0 6px 25px;
    margin-left: 0;
    position: relative;
}
.sidebar-nav ul#side-menu li ul:before {
    content: '';
    position: absolute;
    left: 24px;
    top: 6px;
    bottom: 8px;
    border-left: 1px solid rgba(255, 255, 255, .1);
}
.sidebar-nav ul#side-menu li ul li a {
    padding: 7px 12px 7px 16px;
    font-size: 13.5px;
    font-weight: 400;
    color: var(--rp-side-sub);
}
.sidebar-nav ul#side-menu li ul li a i {
    font-size: 14px;
    width: 18px;
    margin-right: 8px;
}
.sidebar-nav ul#side-menu li ul ul {
    padding-left: 14px;
}
.sidebar-nav ul#side-menu li ul ul:before {
    left: 13px;
}
.sidebar .text-muted {
    color: #7d726b;
}

/* collapsed menu (desktop): flyouts dark like the menu */
@media (min-width: 768px) {
    .mini-sidebar .sidebar-nav ul#side-menu {
        padding: 4px 0 0;
    }
    .mini-sidebar .user-profile {
        margin: 0 0 8px;
    }
    .mini-sidebar .sidebar-nav #side-menu > li > a {
        padding: 12px 19px;
        border-radius: 0;
    }
    .mini-sidebar .sidebar-nav #side-menu > li > a:after,
    .mini-sidebar .sidebar-nav #side-menu > li > a:before {
        display: none;
    }
    .mini-sidebar .sidebar-nav #side-menu > li:hover > a {
        background: var(--rp-side-dark);
        color: #fff;
        border-color: var(--rp-side-dark);
    }
    .mini-sidebar .sidebar-nav #side-menu > li:hover > a i {
        color: var(--rp-accent);
    }
    .mini-sidebar .sidebar-nav #side-menu > li > ul {
        background: var(--rp-side-dark);
        padding: 6px 8px;
        border-radius: 0 0 var(--rp-radius-sm) 0;
        box-shadow: var(--rp-shadow-lg);
    }
    .mini-sidebar .sidebar-nav #side-menu > li > ul:before {
        display: none;
    }
}

/* ---------- boxes and panels ---------- */

.white-box {
    border: 1px solid var(--rp-box-border);
    border-radius: var(--rp-radius);
    box-shadow: var(--rp-shadow);
}
.white-box .box-title {
    color: var(--rp-heading);
    font-size: 17px;
    font-weight: 600;
    text-transform: none;
}
.panel,
.panel-box {
    border-radius: var(--rp-radius);
    box-shadow: var(--rp-shadow);
}
.panel-box {
    border: 1px solid var(--rp-box-border);
}
.panel .panel-heading {
    border-radius: var(--rp-radius) var(--rp-radius) 0 0;
    font-weight: 600;
}
.panel .panel-footer {
    border-radius: 0 0 var(--rp-radius) var(--rp-radius);
}
.panel-default,
.panel-white {
    border: 1px solid var(--rp-box-border);
}
.panel-default .panel-heading,
.panel-white .panel-heading {
    color: var(--rp-heading);
    border-bottom: 1px solid var(--rp-line);
}
.bg-title {
    background: transparent;
}
.bg-title h4 {
    color: var(--rp-heading);
    font-weight: 600;
}
.bg-title .breadcrumb .active {
    color: var(--rp-primary);
}
.well {
    border-radius: var(--rp-radius-sm);
    border-color: var(--rp-box-border);
    box-shadow: none;
}

/* dialogs, menus, notifications */
.modal-content {
    border: 0;
    border-radius: var(--rp-radius);
    box-shadow: var(--rp-shadow-lg);
    overflow: hidden;
}
.modal-header {
    border-bottom-color: var(--rp-line);
}
.modal-header .modal-title {
    font-weight: 600;
    color: var(--rp-heading);
}
.modal-footer {
    border-top-color: var(--rp-line);
}
.jconfirm .jconfirm-box {
    border-radius: var(--rp-radius) !important;
    box-shadow: var(--rp-shadow-lg) !important;
}
.jconfirm .jconfirm-box div.jconfirm-title-c {
    font-weight: 600;
    color: var(--rp-heading);
}
.dropdown-menu {
    border: 1px solid var(--rp-box-border);
    border-radius: var(--rp-radius-sm);
    box-shadow: var(--rp-shadow-lg);
    padding: 6px;
}
.dropdown-menu > li > a {
    border-radius: 6px;
    padding: 7px 12px;
}
.jq-toast-single {
    border-radius: var(--rp-radius-sm);
    box-shadow: var(--rp-shadow-lg);
    font-family: var(--rp-font);
}

/* tabs */
.nav-tabs > li > a {
    border-radius: var(--rp-radius-sm) var(--rp-radius-sm) 0 0;
    color: var(--rp-text-muted);
    font-weight: 500;
}
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:focus,
.nav-tabs > li.active > a:hover {
    color: var(--rp-heading);
    font-weight: 600;
}
/* the tabs of colors/red-dark.css with the theme red */
.customtab li.active a,
.customtab li.active a:focus,
.customtab li.active a:hover {
    border-bottom-color: var(--rp-primary);
    color: var(--rp-primary);
}
.tabs-vertical li.active a,
.tabs-vertical li.active a:focus,
.tabs-vertical li.active a:hover,
.nav-pills > li.active > a,
.nav-pills > li.active > a:focus,
.nav-pills > li.active > a:hover {
    background: var(--rp-primary);
    border-color: var(--rp-primary);
    color: #fff;
}
.bg-theme {
    background-color: var(--rp-primary) !important;
}

/* ---------- tables ---------- */

.table > thead > tr > th,
table.dataTable thead th {
    color: var(--rp-heading);
    font-weight: 600;
    font-size: 13px;
    border-bottom: 1px solid #e0d8d1 !important;
    background: #faf8f6;
}
.table > tbody > tr > td,
table.dataTable tbody td {
    border-top-color: var(--rp-line);
    vertical-align: middle;
}
table.dataTable.no-footer {
    border-bottom: 1px solid var(--rp-line);
}
.table-hover > tbody > tr:hover,
table.dataTable.hover tbody tr:hover,
table.dataTable.display tbody tr:hover {
    background-color: #fcf4f1;
}
table.dataTable.stripe tbody tr.odd,
table.dataTable.display tbody tr.odd,
.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #fbfaf9;
}
table.dataTable.display tbody tr.odd > .sorting_1,
table.dataTable.display tbody tr.even > .sorting_1 {
    background-color: transparent;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 6px !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--rp-primary) !important;
    border-color: var(--rp-primary) !important;
    color: #fff !important;
}
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    color: var(--rp-text-muted);
}
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border: 1px solid var(--rp-input-border);
    border-radius: var(--rp-radius-sm);
    padding: 5px 10px;
    outline: 0;
}

/* ---------- forms and buttons ---------- */

.form-control {
    border-color: var(--rp-input-border);
    border-radius: var(--rp-radius-sm);
    color: var(--rp-text);
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control:focus {
    border-color: var(--rp-primary);
    box-shadow: 0 0 0 3px var(--rp-primary-soft);
}
.input-group .form-control:first-child,
.input-group-addon:first-child {
    border-radius: var(--rp-radius-sm) 0 0 var(--rp-radius-sm);
}
.input-group .form-control:last-child,
.input-group-addon:last-child,
.input-group-btn:last-child > .btn {
    border-radius: 0 var(--rp-radius-sm) var(--rp-radius-sm) 0;
}
.input-group .form-control:not(:first-child):not(:last-child) {
    border-radius: 0;
}
.input-group-addon {
    border-color: var(--rp-input-border);
    background: #f6f3f0;
}
label,
.control-label {
    color: var(--rp-heading);
    font-weight: 500;
}
label sup {
    color: var(--rp-primary);
}
.select2-container .select2-selection,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    border-color: var(--rp-input-border);
    border-radius: var(--rp-radius-sm);
}
.select2-dropdown {
    border-color: var(--rp-input-border);
    border-radius: var(--rp-radius-sm);
    overflow: hidden;
}
/* the select2 3.5 of custom-select, multiple: the whole column, border,
   corners and height of a .form-control */
.select2-container.select2-container-multi {
    width: 100%;
}
.select2-container-multi .select2-choices {
    border: 1px solid var(--rp-input-border) !important;
    border-radius: var(--rp-radius-sm) !important;
    min-height: 38px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.select2-container-multi .select2-choices .select2-search-field input {
    padding-top: 6px;
    padding-bottom: 6px;
}
.select2-container-multi.select2-container-active .select2-choices {
    border-color: var(--rp-primary) !important;
    box-shadow: 0 0 0 3px var(--rp-primary-soft) !important;
}
/* the tick of the theme checkboxes is placed from the left of the box: a
   text-right or text-center of the parent (header of a page, cell of a
   table) moved it out of the centre */
.checkbox label::after {
    text-align: left;
}

.btn {
    border-radius: var(--rp-radius-sm);
    font-weight: 500;
    box-shadow: none;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn-rounded {
    border-radius: 60px;
}
.btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) {
    border-radius: 0;
}
.btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) {
    border-radius: var(--rp-radius-sm) 0 0 var(--rp-radius-sm);
}
.btn-group > .btn:last-child:not(:first-child),
.btn-group > .dropdown-toggle:not(:first-child) {
    border-radius: 0 var(--rp-radius-sm) var(--rp-radius-sm) 0;
}
.btn-primary,
.btn-primary.disabled,
.btn-custom {
    background: var(--rp-primary);
    border-color: var(--rp-primary);
    color: #fff;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.disabled:hover,
.btn-custom:hover,
.btn-custom:focus {
    background: var(--rp-primary-dark);
    border-color: var(--rp-primary-dark);
    color: #fff;
    opacity: 1;
}
.btn-default,
.btn-white {
    border-color: var(--rp-input-border);
    color: var(--rp-text);
}
.btn-inverse,
.btn-inverse.disabled {
    background: #3a3330;
    border-color: #3a3330;
}
.btn-inverse:hover,
.btn-inverse:focus {
    background: #2a2421;
    border-color: #2a2421;
}

/* the other colors of the template, calmer: no neon green and cyan next to
   the red, a crimson danger distinct from the tomato of the actions */
.btn-success,
.btn-success.disabled {
    background: var(--rp-success);
    border-color: var(--rp-success);
}
.btn-success:hover,
.btn-success:focus {
    background: #278650;
    border-color: #278650;
}
.btn-info,
.btn-info.disabled {
    background: var(--rp-info);
    border-color: var(--rp-info);
}
.btn-info:hover,
.btn-info:focus {
    background: #276ca5;
    border-color: #276ca5;
}
.btn-warning,
.btn-warning.disabled {
    background: var(--rp-warning);
    border-color: var(--rp-warning);
}
.btn-warning:hover,
.btn-warning:focus {
    background: #c98620;
    border-color: #c98620;
}
.btn-danger,
.btn-danger.disabled {
    background: var(--rp-danger);
    border-color: var(--rp-danger);
}
.btn-danger:hover,
.btn-danger:focus {
    background: #9a2030;
    border-color: #9a2030;
}

/* labels */
.label {
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: .01em;
}
.label-rounded {
    border-radius: 60px;
}
.label-primary {
    background-color: var(--rp-primary);
}
.label-success {
    background-color: var(--rp-success);
}
.label-info {
    background-color: var(--rp-info);
}
.label-warning {
    background-color: var(--rp-warning);
}
.label-danger {
    background-color: var(--rp-danger);
}
