/************************************************************
 *
 * Main CSS for Galway Flying Club Flight Booking System.
 *
 * Ray O'Donnell <rod@galwayflyingclub.org>
 *
 ************************************************************/


html,
body {
    height: 100%;
}


/************************************************************
*  Nav bar..
************************************************************/

.navbar {
    border-radius: 0;
    margin-bottom: 0;
}

.navbar-default {
    background-color: #7ba566;
    border-top: none;
    border-right: none;
    border-left: none;
    border-bottom: #3c763d 1px solid;
    color: #fff;
}

.navbar a {
    color: #fff;
}

.navbar a.navbar-brand,
.navbar p.navbar-brand {
    color: #fff;
}

.navbar p.navbar-brand {
    margin-bottom: 0;
}

.navbar-header button.collapsed .icon-bar {
    background-color: #fff;
}


.navbar-default .navbar-nav > li > a {
    color: #fff;
}


/* Collapsed nav bar. */

@media (max-width: 767px) {

    .navbar-default .navbar-nav .open .dropdown-menu > li > a {
        color: #ddd;
    }

}


/************************************************************
*  Main page elements & common stuff.
************************************************************/

body {
    background-color: #658854;
}

#mainarea {
    background-color: #fff;
    padding: 20px 0 40px 0;
    min-height: 75%;
}

footer {
    color: #fff;
    padding: 20px 0;
}

@media (min-width: 768px) {
    footer .footer-right {
        text-align: right;
    }
}

.green-icon {
    color: #7ba566;
}

.none {
    margin-left: 30px;
    font-style: italic;
}


/************************************************************
*  Timesheet page.
************************************************************/

#date-button {
    margin-bottom: 10px;
}

.timesheet-panel {
    background-color: #d1efc2;
}

.timesheet-block td {
    vertical-align: top;
}

.timesheet-block td:first-child {
    font-weight: bold;
    padding-right: 8px;
}

#instructor-block p {
    margin: 4px 0 4px 10px;
}

.bookings-table {
    width: 100%;
    border-right: 1px solid #aaa;
    border-bottom: 1px solid #aaa;
    margin: 20px 0;
}

.bookings-table td {
    padding: 5px;
    border-left: 1px solid #aaa;
    border-top: 1px solid #aaa;
    vertical-align: top;
}

.bookings-table th {
    text-align: left;
    font-weight: bold;
    border-left: 1px solid #aaa;
    border-top: 1px solid #aaa;
    padding: 5px;
}

.bookings-table td:first-child {
    width: 40px;
    background-color: #ccc;
}

.bookings-table td.booked {
    background-color: #ccc;
    border-top: 1px solid #aaa;
}

.bookings-table td.booked .intro-flight {
    display: block;
    color: #fff;
    font-weight: bold;
}

.bookings-table td.booked div.slotholder {
    margin-bottom: 5px;
}

.bookings-table td.booked div.standby {
    color: #fff;
    font-style: italic;
    margin-bottom: 5px;
}

.bookings-table td.unavailable {
    background-color: #fcc;
}


/************************************************************
*  Menus on timesheet slots.
************************************************************/

.slot-menu button {
    float: right;
}

.slot-menu .menu {
    display: none;
}

.slot-menu-dialog ul {
    list-style-type: none;
    padding: 0;
}

.slot-menu-dialog li {
    margin: 10px 0;
}

.slot-menu-dialog li a,
.slot-menu-dialog li button {
    width: 100%;
    text-align: center;
}


/************************************************************
*  Messages within timesheet slots.
************************************************************/

.slot-messages button {
    float: right;
    margin-right: 10px;
}

.slot-messages ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 0;
}

.slot-messages li {
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #aeaeae;
}

.slot-messages li:first-child {
    padding-top: 0;
}

.slot-messages li:last-child {
    padding-bottom: 0;
    border-bottom: none;
}


/************************************************************
*  Other main area stuff.
************************************************************/

#mainarea .detail_caption {
    color: #9cc9d4;
    padding: 5px 10px 0 0;
    vertical-align: top;
}

#mainarea .detail_data {
    padding-top: 5px;
    vertical-align: top;
}

#mainarea .none_found {
    margin-left: 20px;
    font-style: italic;
}


/************************************************************
*  Lists of things with actions to the right.
************************************************************/

.action-listing.row {
    margin-bottom: 10px;
}

.action-listing .actions button,
.action-listing .actions a {
    margin-left: 10px;
    margin-bottom: 10px;
}

table.action-listing .actions button,
table.action-listing .actions a {
    margin-bottom: 0;
}


/************************************************************
*  Forms.
************************************************************/

form ul.errors {
    color: #a94442;
    list-style-type: none;
    padding-left: 0;
}

#new-booking-form select {
    width: auto;
}

form .button-row button,
form .button-row a {
    width: 100%;
    margin-top: 30px;
}

.form-inline .form-group {
    margin-left: 10px;
    margin-right: 10px;
}

.form-inline .form-group label {
    margin-right: 10px;
}

.form-inline .form-group:first-child {
    margin-left: 0;
}


/************************************************************
*  Misc.
************************************************************/

.gap-above {
    margin-top: 30px;
}


/************************************************************
*  End.
************************************************************/

