/* General Styling */
@import url(https://fonts.googleapis.com/css?family=Roboto:400,400italic,700,700italic,300,300italic);

.navbar-brand { padding: 0px; }

html { height: 100%; width: 100% }

body {
    font-weight: 300;
    font-family: Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 1rem;
}

nav img { height: 40px; }

main { padding-bottom: 40px; padding-top: 40px; }

h1 { color: #1C365E; padding-bottom: 10px; }

iframe { border: 2px inset #888; }

img { max-width: 100%; height: auto; }

pre { white-space: pre-wrap; }

.larger { font-size: 133.33%; }
.smaller { font-size: 75%; }

/* Left aligns tooltip content. */
div.tooltip-inner { text-align: inherit; }

/* Table Styling*/

/* Makes a table row link have a pointer icon when the mouse is hovered over the row. */
table tr[data-href] { cursor: pointer; }
table.dataTable.table-striped tbody tr[data-href]:nth-of-type(2n+1):hover,
table tr[data-href]:hover { background-color: #CCE5FF; }
table th { white-space: nowrap; }
table td.nowrap { white-space: nowrap; }
/* Remove the line at the top of the tables since they don't have a bottom line. */
table.table:not(:has(thead)) tr:first-child td,
table.table:not(:has(thead)) tr:first-child th,
table.table:has(thead) thead tr:first-child td,
table.table:has(thead) thead tr:first-child th { border-top: 0; }
/* Create table style to cancel table formatting for nested tables*/
/* TODO (Aron): Find where .table_plain is used and either remove it or change it
to table.table-plain since it wouldn't apply to any other type of tag. */
.table-plain tbody tr,
.table-plain tbody tr:hover,
.table-plain tbody tr:nth-of-type(odd),
.table-plain tbody td,
.table-plain thead tr,


/* Text Rotation (useful for table headers) */
.rotate-ccw { writing-mode: vertical-rl; transform: rotate(180deg); }
.rotate-cw { writing-mode: vertical-lr; }

/* Scrollable table with fixed header */
/* Inspired by https://stackoverflow.com/a/50516259/1006269 */
div.scrollable-table {
    border: 1px solid #888;
    max-width: 100%;
    max-height: 75vh;
    overflow: scroll;
}
div.scrollable-table.sm { max-height: 50vh; }
div.scrollable-table.xs { max-height: 33vh; }
div.scrollable-table thead.fixed th {
    background-color: #FFF;
    position: -webkit-sticky; /* for Safari */
    position: sticky;
    top: -2px;
}
div.scrollable-table thead.fixed th:first-child { left: 0; z-index: 1; }
div.scrollable-table tbody th.fixed {
    background-color: #FFF;
    position: -webkit-sticky; /* for Safari */
    position: sticky;
    left: -1px;
}

/* Even smaller option for tables. */
.table-xs th, .table-xs td { padding: 0 0.3rem; }

/* Makes a table row link have a pointer icon when the mouse is hovered over the row. */
table tr[data-href] { cursor: pointer; }
table.dataTable.table-striped tbody tr[data-href]:nth-of-type(2n+1):hover,
table tr[data-href]:hover { background-color: #CCE5FF; }
table th { white-space: nowrap; }
table td.nowrap { white-space: nowrap; }
/* Create table style to cancel table formatting for nested tables*/
/* TODO (Aron): Find where .table_plain is used and either remove it or change it
to table.table-plain since it wouldn't apply to any other type of tag. */
.table-plain tbody tr,
.table-plain tbody tr:hover,
.table-plain tbody tr:nth-of-type(odd),
.table-plain tbody td,
.table-plain thead tr,
.table-plain thead tr:hover,
.table-plain thead th {
    background-color: transparent;
    border: none;
}
/* Styles for when it's selected */
.btn-outline-secondary:not(:disabled):not(.disabled):active,
.btn-outline-secondary:not(:disabled):not(.disabled).active,
.show > .btn-outline-secondary.dropdown-toggle {
    background-color: #DDD;
    border-color: #DDD;
    color: #000;
}

/*Overflow for styling buttons*/
.overflow-y-auto {
    overflow-y: auto;
}


/* Button Styling */
.btn-secondary,
.btn-secondary[disabled] { background-color: #294D84; border-color: #294D84; }
.btn-secondary:not([disabled]):active:focus,
.btn-secondary:not([disabled]):focus,
.btn-secondary:not([disabled]):hover { background-color: #1D365E; border-color: #193051; }
/* Increaes the disabled effect. */
.btn.disabled, .btn:disabled { opacity: 0.35; }
/* Overrides for Tabs / Pills buttons. */
.nav-pills .nav-link {
    border: none;
    margin-right: 5px;
    min-width: 125px;
    padding: 0.375rem 0.75rem;
}
.nav-pills .nav-link:focus { outline-color: #BFDEFF; outline-width: thick; }
.nav-pills .nav-link.active,
.nav-pills .nav-link.active:active,
.nav-pills .nav-link.active:focus { background-color: #294D84; border-color: #007BFF; }
/* Adds lines and padding on tabs */
ul.nav-pills { border-bottom: 1px solid #DEE2E6; }
ul.nav-pills + div.tab-content {
    border-bottom: 1px solid #DEE2E6;
    padding-bottom: 1em;
    padding-top: 1em;
}


/* Miscellaneous Fixes Styling */
/* Fixes "switch" padding (eg on/off switch that resembles iOS) from bootstrap. */
.custom-switch { padding-left: 55px; margin-top: 7px; }
/* Required notification styling */
.required {color: #DC3545; font-style: italic; margin-left: 10px; /* font-size: smaller; */}
/* Makes all font-awesome icons inside a button have a standard minimum width. */
button i[class*='fa-'] {min-width: 5px;}
/* Makes buttons with small labels appear with a suitable width. */
input[type='submit'], button.btn:not(.input-group-append > button):not(.btn-link) { min-width: 125px; }
/* Fixes odd "squishing" of date picker icons attached to inputs on smaller screens. */
div.input-group-append span.input-group-text { height: 38px; }
/* Adds top and bottom border to .btn-light buttons within an .input-group */
.input-group .btn-light {
    background-color: #fff;
    border-bottom: 1px solid #ced4da;
    border-top: 1px solid #ced4da;
}
/* Adds hand pointer cursor to calendar button. */
div.input-group-append i.fa-calendar { cursor: pointer; }
/* Makes padding of "plaintext" input boxes match normal input boxes. */
.form-control-plaintext { padding: 0.375rem 0.75rem; }


/* font sizing*/

.font-size-small {
    font-size:80%;
}


/* Vertical Button Group Styling */
/* Fixes formatting for vertical & toggleable buttons. */
.btn-group.btn-group-vertical > .btn:not(:last-child):not(.dropdown-toggle),
.btn-group.btn-group-vertical > .btn-group:not(:last-child) > .btn,
.btn-group.btn-group-vertical > .btn:not(:first-child),
.btn-group.btn-group-vertical > .btn-group:not(:first-child) {
    border-radius: 0.25rem;
    margin-bottom: 2px;
    margin-top: 2px;
    max-height: 38px;
}
.btn-group.btn-group-vertical > .btn:first-child,
.btn-group.btn-group-vertical > .btn-group:first-child { margin-left: -1px; }
.btn-group.btn-group-vertical > .btn { overflow: hidden; }
.btn-group.btn-group-vertical { justify-content: normal; }
.btn-outline-secondary:hover:not(.active) { color: #6C757D; background-color: #FFF; border-color: #6C757D; }



/* Five-star Rating Styling */
.rating>i[class*='fa-'] { color: #DDD; font-size: 30px; cursor: pointer; }
.rating>i[class*='fa-'].active { color: #FC6; }



/* Pointers over onclick elements */
h1[onclick], h2[onclick], h3[onclick], h4[onclick], h5[onclick],
h6[onclick], i[class*='fa'][onclick] { cursor: pointer; }



/* Checkbox and Radio Styling */
/* Puts a O with / through it cursor on disabled controls. */
[disabled] + label,
[disabled]:not(input[type="checkbox"].custom-control-input),
input[type='checkbox'][disabled] + label,
input[type='radio'][disabled] + label { cursor: not-allowed; }
/* Add's hand pointer cursor to checkboxes and rado buttons
   (that are not special "custom" cases) and their labels. */
input[type='checkbox']:not(.custom-control-input) { cursor: pointer; }
input[type='radio']:not(.custom-control-input) { cursor: pointer; }
input[type='checkbox'] + label, input[type='radio'] + label { cursor: pointer; }
/* Styling to take the place of having to use bootstrap's .form-check,
   .form-check-label, and .form-check-input all the time.
   Also, increases the default size of checkboxes and radio buttons. */
div>input[type='checkbox']:first-of-type,
div>input[type='checkbox']:first-of-type+label,
div>input[type='radio']:first-of-type,
div>input[type='radio']:first-of-type+label {/* margin-top: 7px; */}
input[type='checkbox'], input[type='radio'] {
    height: 1.25rem;
    width: 1.25rem;
}
input[type='checkbox'] + label, input[type='radio'] + label {
    /* display: inline-block; */
    margin-left: 0.5rem;
    margin-bottom: 0rem;
    position: relative;
    top: -0.2rem;
}
/* Adds disbled coloring to labels associated with disabled checkboxes and radio buttons. */
input[type='checkbox'][disabled] + label, input[type='radio'][disabled] + label { color: #6C757D; }
/* "Large" checkboxes and radio buttons. */
input[type='checkbox'].lg, input[type='radio'].lg { height: 2rem; width: 2rem; }
input[type='checkbox'].lg + label, input[type='radio'].lg + label { margin-left: 3rem; top: -2.85rem; }



/* Select2 Styling */
/* Modifies borders to be blue to match Bootstrap styling. */
.select2-container--default .select2-selection {border: 1px solid #CED4DA; min-height: 37.75px;}
.select2-container .select2-selection--single .select2-selection__rendered {
    color: #164069;
    font-size: 1rem;
    font-weight: 400;
    padding-top: 5px;
    padding-left: 14px;
}
.select2-container--default.select2-container--focus .select2-selection {
    border: 1px solid #80BDFF;
    box-shadow: 0 0 0 0.2rem rgba(128, 189, 255, 0.5);
}
span.select2-selection.select2-selection--multiple {}
/* Colors selected boxes to match Bootstrap. */
.select2-container--default
.select2-selection--multiple
.select2-selection__choice { background-color: #E9ECEF; color: #495057; font-weight: 400; }
/* Moves X button on select2s to the right. */
.select2-selection__choice__remove { float: right; margin-left: 5px; }
/* Removes black line around type-ahead selects that have focus. */
span.select2-selection.select2-selection--single { outline: none; }
/* Adjusts arror on type-ahead selects to more closely resemble default. */
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-width: 5px 5px 0 5px;
    margin-left: -5px;
    margin-top: 2px;
}
/* Makes background color of highlighted option match Bootstrap */
.select2-container--default
.select2-results__option--highlighted[aria-selected] { background-color: #1967D2; }
/* Makes options vertical padding match Bootstrap */
.select2-results__option {font-weight: 400; padding: 0px 2px 0px 16px;}
/* Makes dropdown options container taller than the mere 200 Select2 default */
.select2-container--default .select2-results>.select2-results__options { max-height: 500px; }
/* Makes select2 containers fill the space their in (needed for modals) */
.select2-container { width: 100% !important; }
/*Makes placeholder appear in modals*/
.modal .select2-container .select2-search--inline .select2-search__field[style*='width: 0px'] {
    width: 100% !important;
}
/* Truncate the selected options inside Select2 */
.select2-selection__choice {
    max-width: 100%;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
}
.select2-selection__choice__display {
    max-width: calc(100% - 20px); /* leave space for the X */
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}
/* Shrink close button slightly so it doesn't obscure */
.select2-selection__choice__remove {
    margin-left: 4px;
    margin-right: 4px;
    float: right;
}
/* Keep Select2 box visually fixed (adjust width as needed) */
.select2-sm + .select2-container {
    width: 100% !important; 
    max-width: 11rem;
}

/* Match Bootstrap .form-control-sm vertical spacing */
.select2-sm + .select2-container .select2-selection--single {
    position: relative;
    height: 31px !important;
    min-height: 31px !important;
    /* Slightly reduced left padding */
    padding: 0.25rem 0.5rem 0.25rem 0.25rem !important;
    line-height: 1.5 !important;
    display: flex !important;
    align-items: center !important;
    font-size: 0.875rem !important;
    box-sizing: border-box !important;
}

/* Truncate the displayed text */
.select2-sm + .select2-container .select2-selection__rendered {
    flex: 1 1 auto !important;
    min-width: 0 !important; /* allow flexbox to shrink */
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: inherit !important;
}

/* Dropdown option font matches input */
.select2-container .select2-results__option {
    font-size: inherit !important;
}

/* Arrow � absolute positioning so it doesn't affect width */
.select2-sm + .select2-container .select2-selection__arrow {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.select2-sm + .select2-container .select2-selection__arrow b {
    margin-top: 0 !important;
}
/* Stop select2 from adjusting the size of bootstrap col elements within a row.*/
.row > [class^="col"], .row > [class*=" col"] { min-width: 0; }
.row .select2-container { width: 100% !important; max-width: 100%; }
.row .select2-selection--single,
.row .select2-selection--multiple { width: 100%; max-width: 100%; }
.row .select2-selection__rendered {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}



/* Survey Styling */
/* The "border-color: #FFFF" styling adds a transparent outline around survey buttons. */
/*
.survey .btn-secondary:active:focus,
.survey .btn-secondary:hover,
.survey .btn-secondary { background-color: #DDD; border-color: #FFFF; color: #000; }
.survey .btn-secondary:not(:disabled):not(.disabled).active { border-color: #FFFF; }

.survey .btn-secondary.focus {
    border-color: #80BDFF;
    // box-shadow: -3px -3px 3px 1px #BFDEFF; //
    box-shadow: -3px -3px 1px #BFDEFF, 3px -3px 1px #BFDEFF, 3px 3px 1px #BFDEFF, -3px 3px 1px #BFDEFF;
    outline: 0 none;
}
*/
.survey .btn-secondary,
.survey .btn-secondary[disabled] { background-color: #DDD; border-color: #DDD; color: #000 }
.survey .btn-secondary:not([disabled]):active:focus:not(.active),
.survey .btn-secondary:not([disabled]):focus:not(.active),
.survey .btn-secondary:not([disabled]):hover:not(.active) { background-color: #AAA; border-color: #AAA; color: #000 }

.survey div.lead { padding-bottom: 1rem; } /* Add's some padding after question lead text */
.survey img:first-of-type { display: block; max-height: 150px; margin: auto; }



/* Validation Styling */
.btn-group-toggle.is-invalid label,
.was-validated .btn-group-toggle.invalid label { border-bottom: 1px solid #DC3545; border-top: 1px solid #DC3545; }
.btn-group-toggle.is-invalid label:first-child,
.was-validated .btn-group-toggle.invalid label:first-child { border-left: 1px solid #DC3545; }
.btn-group-toggle.is-invalid label:last-child,
.was-validated .btn-group-toggle.invalid label:last-child { border-right: 1px solid #DC3545; }
/* Entire row for other scenarios */
.row.is-invalid,
.was-validated .row.invalid { border: 1px solid #DC3545; border-radius: 0.25rem }

.text-nowrap label { white-space: nowrap; }



/* Password show/hide toggle styling */
input[type='password'] + i.fa-eye,
input[type='text'] + i.fa-eye-slash {
    color: #212529;
    cursor: pointer;
    font-size: large;
    position: relative;
    z-index: 5;
}
.form-group > input[type='password'] + i.fa-eye,
.form-group > input[type='text'] + i.fa-eye-slash {
    float: right;
    top: -1.7rem;
}
.form-group > input[type='password'] + i.fa-eye { left: -1rem; }
.form-group > input[type='text'] + i.fa-eye-slash { left: -0.9rem; }
.input-group > input[type='password'] + i.fa-eye,
.input-group > input[type='text'] + i.fa-eye-slash {
    margin-left: -1.2rem;
    margin-top: 1.2rem;
    top: -0.6rem;
    vertical-align: middle;
    width: 1.2rem;
}
.input-group > input[type='password'] + i.fa-eye { left: -1rem; }
.input-group > input[type='text'] + i.fa-eye-slash { left: -1.07rem; }




/* Preserves original format of text. */
textarea.nowrap { white-space: pre; }



/* Audio Recording Styling */
span.audio-recording {
    border: 1px solid #DEE2E6;
    border-radius: 0.25rem;
    display: inline-block;
    margin-left: 10px;
    margin-top: -20px;
    padding: 4px 4px 0px 0px;
    position: relative;
    top: 10px;
    white-space: nowrap;
}

span.audio-recording audio {
    height: 30px;
}

span.audio-recording-active {
    background-image: url('/images/RecordingAnimation.gif');
    background-size: 80px 40px;
    display: inline-block;
    margin-left: 10px;
    position: relative;
    top: 5px;
    width: 80px;
    height: 22px;
}



/* Progress Indicator Styling Overrides */
.progress-tracker { margin: 10px auto; }
.progress-step .progress-marker::after,
.progress-step .progress-marker::before { background-color: #DDD; }
.progress-step:hover .progress-marker::before { background-color: #DDD; }
.progress-step.is-active .progress-marker::before,
.progress-step.is-active:hover .progress-marker::before { background-color: #007BFF; }
.progress-step.is-complete .progress-marker::before,
.progress-step.is-complete:hover .progress-marker::before { background-color: #4d4d4d; }
.progress-step.is-active.progress-step-success .progress-marker::before{ background-color: #28A745; }
.progress-step.is-active.progress-step-danger .progress-marker::before{ background-color: #DC3545; }
.progress-step.is-active.progress-step-warning .progress-marker::before{ background-color: #FFC107; }
.progress-step.is-active.progress-step-info .progress-marker::before{ background-color: #17A2B8; }



/* Custom style for changing separator  */
.breadcrumb-item + .breadcrumb-item::before { content: ">"; }
.breadcrumb { background-color: white; }

/* TODO (Aron): Find out how this is used and remove it opting for modal-xl or modal-lg. */
.audioPopup { width: 30em; }


/*Modal styling to override bootstrap styling in modals */
.medium-bold-text {
    font-weight: 400;
}

/* custom badge pills created to override out of the box bootstrap styling*/
.badge {
    display: inline-block;
    padding: 0.50em 0.50em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, 
        background-color 0.15s ease-in-out, 
        border-color 0.15s ease-in-out, 
        box-shadow 0.15s ease-in-out;
}

.badge-pill {
    padding-right: 0.6em;
    padding-left: 0.6em;
    border-radius: 10rem;
}

/* Notes and Actions Section Styling */
#notesActionsSection .notes-container {
    max-width: 100%;
}

#notesActionsSection .note-entry {
    border: 1px solid #dee2e6;
    transition: box-shadow 0.2s ease;
}

#notesActionsSection .note-entry:hover {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

#notesActionsSection .note-header {
    color: #495057;
    font-size: 0.9rem;
}

#notesActionsSection .note-content {
    padding-left: 1rem;
}

#notesActionsSection .actions-list {
    margin-top: 0.5rem;
}

#notesActionsSection .action-item {
    background-color: #f8f9fa;
    padding: 0.75rem;
    border-radius: 0.25rem;
}

#notesActionsSection .action-header {
    font-size: 0.875rem;
    color: #6c757d;
}

#notesActionsSection .resolution-actions {
    padding: 0.5rem 1rem;
    background-color: #e9ecef;
    border-radius: 0.25rem;
}


/* NPS donut and summary */
.nps-summary-card {
    margin-top: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #e5e9f1;
    border-radius: .5rem;
    padding: 1rem 1.25rem;
    background: #fff;
}

.nps-donut {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.nps-donut__title {
    margin-bottom: .5rem;
    font-size: 1.25rem;
    font-weight: 500;
}

.nps-donut__canvas {
    display: block;
    width: 180px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
}

.nps-donut__legend {
    margin-top: .5rem;
    font-size: .875rem;
}

.nps-donut__legend-item {
    display: inline-block;
    margin-right: .5rem;
}

    .nps-donut__legend-item::before {
        content: "";
        display: inline-block;
        width: .65rem;
        height: .65rem;
        margin-right: .25rem;
        border-radius: 50%;
        vertical-align: middle;
    }

.nps-donut__legend-item--promoter::before {
    background: #09b157;
}

.nps-donut__legend-item--passive::before {
    background: #f3e800;
}

.nps-donut__legend-item--detractor::before {
    background: #ff1919;
}