/* CSS for all of CART's pages */

/* ***** MAIN STRUCTURE ***** */

h1 {
    margin-bottom: 0px;
    margin-top: 5px;
}

.uw-thinstrip div.align-center {
    align-content: center;
}

.uw-thinstrip .allen-school-wordmark {
    display: block;
    position: initial;
}

.uw-thinstrip .allen-school-wordmark img {
    margin-top: -10px;
}

body {
	background-color: rgb(217,217,217);
}

body.centered {
	text-align: center;
}

div#uw-container {
    min-height: 500px;
    height: 100vh;
    overflow: auto;
}

div#uw-container-inner {
    height: 100%;
    overflow: auto;
    background-color: rgb(217,217,217);
}

/* Make the page body extend at least to the bottom of the screen
 * while leaving room for header and footer content
 * 227 is the height of the footer + the height of all content before div.uw-body
 */
div.uw-body {
    min-height: calc(100% - 140px);
}

@media only screen and (max-width: 767px) {
    /* Narrow the main page body on bigger screens */
    div.uw-body.container {
        width: 75%;
    }

    /* CSE boundless would like to add a huge right margin, but I would like not to for centered pages */
	.centered h1 {
		margin-right: 0px;
	}

    /* Bootstrap would like to place buttons to the right, I prefer not to */
	button {
		float: none !important;
    }
}

.main {
	background-color: white;
}

header {
	padding-top: 30px;
	background-color: white;
}

footer {
    height: 50px;
    background-color: rgb(75,46,131);
    box-shadow: 0 -2px 5px rgba(0,0,0,0.3);
    width: 100%;
    position: relative;
    text-align: center;
}

/* Link to the reservation system in the footer */
.footerLink {
	color: white;
	padding: 10px;
	display: inline-block;
}

.footerLink:hover {
	background-color: rgb(54,33,95);
}

#about {
	background-color: white;
	border: 2px solid black;
	width: 200px;
	display: none;
	padding: 5px;
	position: absolute;
	bottom: 40px;
	right: 0px;
}

/* ***** LAYOUT ***** */

.inline {
    display: inline;
}

.block {
    display: block;
}

.inline-block {
    display: inline-block !important;
}

.item-select-box, .tag-select-box {
    width: 330px;
    resize: auto;
}

.hide-selected-tags, .hide-no-tags {
    display: none;
}

.border-form {
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    padding: 15px;
}

.hidden-initially {
    display: none;
}

/* ***** BUTTONS ***** */

/* Ensure light buttons are still readable while being hovered over */
.btn-light:hover, .btn-light:active, .btn-light:focus {
    color: black;
}

.active-button {
	background-color: rgb(217,210,233) !important;
	border: 4px solid rgb(75,46,131) !important;
}
.active-button:focus, #loginButton:focus {
    outline: 0px;
}

#loginButton {
	height: 75px;
	width: 250px;
	font-size: 150%;
	font-weight: bold;
}

/* ***** FONTS ***** */

#welcome-message {
    font-weight: 500;
}

.alert-success {
    color: #3c763d;
}

.red {
    color: #E60000;
}

.gray {
    color: rgb(89, 89, 89) !important;
}

.purple {
    color: #4b2e83;
}

.thin {
    font-weight: 100;
}

/* ***** TABLES ***** */

/* Prevent the gap between the bottom of a table and its div container */
div.table-container table {
    margin-bottom: 0px !important;
}

/* The div container for tablesorter tables */
div.table-container {
    height: 100%;
    width: 100%;
    overflow: auto;
    border: 1px solid #dddddd;
    position: relative; /* This is what allows tablesorter stickyheaders to work! */
    resize: both;
}

/* This is what actually hides filtered columns */
.tablesorter-filter.disabled {
    display: none;
}

.compact-table tr td {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}
.compact-table .tablesorter-filter-row td {
    padding-left: 0px;
}

/* Item checkout table styling */
.item-checkout-table-container {
    height: 275px !important;
    width: 600px !important;
}
.item-checkout-table tr td {
    border: none;
}
.item-checkout-table tr:hover td {
    background-color: #ececec !important;
    cursor: pointer;
}
.item-checkout-table tr.hidden-item:hover td {
    color: #E60000;
}
.item-checkout-table tr:hover label {
    cursor: pointer;
}

/** Expand the item label to fill the whole <td>, so you can click anywhere in the cell to select the item */
.checkout-item-label {
    height: 100%;
    width: 100%;
}

/* ***** MISC ***** */

.lg-chkbox {
    height: 20px;
    width: 20px;
}

.pointer {
    cursor: pointer;
}

.sm-img {
    height: 30px;
    width: 30px;
}
