/*
 * neuro.css: NeuroManager consistency layer on top of the Limitless theme.
 * Loaded last by base.html. Keep it small; colours and fonts stay the theme's.
 */

/* Page title rendered by base.html from % block page_title */
.neuro-page-title {
    margin: 0;
    padding: 15px 20px;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
}
.neuro-page-title h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 400;
}
.neuro-page-title h4 small {
    margin-left: 6px;
    font-size: 14px;
}

/* Admin pages wrap their content in a fixed-width .container; inside the
   app layout it should use the available width instead. */
.content-wrapper > .container {
    width: auto;
    max-width: 100%;
}

/* Label/value lists (message, patient and visit details) on one grid,
   replacing stacks of <br>. */
.neuro-dl {
    display: grid;
    grid-template-columns: 140px 1fr;
    grid-gap: 6px 10px;
    margin: 0 0 15px 0;
}
.neuro-dl > dt,
.neuro-dl > dd {
    margin: 0;
    line-height: 1.5384616;
}
.neuro-dl > dt {
    font-weight: 500;
}

/* Section headings inside a panel body */
.neuro-section-title {
    margin: 20px 0 10px 0;
    font-weight: 500;
}
.panel-body > .row:first-child .neuro-section-title:first-child,
.neuro-dl + .neuro-section-title {
    margin-top: 0;
}

/* A row of buttons below a table or list, with even gaps */
.neuro-button-row {
    margin-top: 15px;
}
.neuro-button-row > .btn + .btn {
    margin-left: 4px;
}

/* ---------------------------------------------------------------------
   Vertical rhythm inside page panels. Theme defaults are kept for panel
   margins (20px), panel-body padding (20px) and table cells (12px 20px),
   which are already the same on every page. What varied page to page was
   the gap between form rows (20px theme default, 8px or 4px page
   overrides); panels now use one value. Modals keep their own spacing.
   --------------------------------------------------------------------- */
.content-wrapper .panel-body .form-group {
    margin-bottom: 10px;
}
.content-wrapper .panel-body .form-horizontal .control-label {
    font-weight: 500;
}
.content-wrapper .panel-body > h5:first-child,
.content-wrapper .panel-body > h6:first-child {
    margin-top: 0;
}

/* Sidebar extras (scheduler date picker, user select, search) sit in a
   .sidebar-category > .category-content block, so they get the same 20px
   gutter as the navigation. The jQuery UI inline date picker is 17em wide
   by default and custom.css forces 260px, both wider than that gutter, so
   in the sidebar it fills the gutter instead. */
.sidebar .week-picker {
    width: auto !important;        /* custom.css: .week-picker { width: 250px } */
    margin-bottom: 15px;
}
.sidebar .week-picker .ui-datepicker {
    width: auto !important;        /* custom.css: .ui-datepicker { width: 260px !important } */
}
.sidebar .week-picker .ui-datepicker table {
    width: 100% !important;        /* custom.css: .ui-datepicker table { width: 250px } */
    table-layout: fixed;
}
.sidebar .week-picker .ui-datepicker td a,
.sidebar .week-picker .ui-datepicker td span {
    min-width: 0;                  /* theme: 34px min + 6px padding = 36px x 7 days = 252px */
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

/* Sidebar icons: the glyphs are not all the same width (users is 15px, the
   rest 13px). A fixed box keeps every label at the same indent. */
.sidebar .navigation-main > li > a > i {
    display: inline-block;
    width: 16px;
    text-align: center;
}
