/**
 * @file
 * CSS file for the Timesheets module.
 *
 * This CSS file contains some small modifications to form fields for a 
 * smoother UI and the considerably more in depth styling of the timesheets 
 * overview table.
 *
 * @see timesheets_theme()
 * @see timesheets_menu()
 * @see timesheets_activities_manage_form()
 * @see theme_timesheets_activities_manage_form()
 */

/* Timesheets */

.timesheets-grid .btn,
.timesheets-grid-key .btn {
  border-radius: 0;
  padding: 10px;
}

.timesheets-grid-key {
  margin-top: 5px;
  margin-bottom: 10px;
}

.timesheets_submissions_tracker th:nth-child(2),
.timesheets_submissions_tracker td:nth-child(2) {
  text-align: center;
}

/* Improve nav for low viewports while recording info. */
@media (max-width: 480px) {
  .timesheets-date-nav div {
    text-align: center;
    margin-bottom: 10px;
  }

  .timesheets-date-nav div .btn {
    width: 100%;
  }
}

/* Leave Manager */

.timesheets-leave-statistics th,
.timesheets-leave-statistics td {
  text-align: right;
}

.timesheets-leave-statistics th:first-child,
.timesheets-leave-statistics td:first-child {
  text-align: left;
}

.timesheets-leave-type-description {
  margin-top: 10px;
  margin-bottom: 0px !important; /* Override standard .well */
}



/* Timesheets admin sections */
#timesheets-leave-type-edit #edit-desc-format {
  display: none;
}

ul.timesheets-leave-types-actions {
  list-style: none;
  overflow: hidden;
  position: relative;
  margin: 0 !important;
  padding: 0;
}

ul.timesheets-leave-types-actions li {
  display: inline;
}

ul.timesheets-leave-types-actions li:before {
  content: '\2022\00a0';
  color: #999;
  color: rgba(0,0,0,0.5);
  font-size: 1em;
}

ul.timesheets-leave-types-actions li:first-child:before {
  content: '';
}

.timesheets-leave-types-table .views-field-nothing {
  width: 150px;
  text-align: center;
}
 
/* Leave Manager styling */
.timesheets-leave-history-totals {
  font-weight: bold;
}

.timesheets-leave-history-filters {
  background-color: #E5E4E2;
  padding: 5px;
  border: 1px dotted #000;
  margin: 0 0 10px;
}

.timesheets-leave-history-filters .form-submit {
  margin: 10px 10px 5px 0;
}

.timesheets-leave-history-filters .form-item {
  float: left;
  margin: 0;
}

.timesheets-review-queue-link {
  color: #CC0000 !important;
}

/* This matches the datepicker CSS for even alignment */
.timesheets-leave-history-filters .form-select {
  padding: 1px 0;
  margin-right: 5px;
}

.timesheets-leave-history-filters .container-inline-date {
  clear: none;
}

/* Styling for the calendar  */
.timesheet-calendar {
  width: 100%;
  /* The standard border-collapse: none was causing issue with this layout in IE
   * so this method was introduced and does leave a small amount of space 
   * between the borders in all browsers, but also renders correctly in IE */
  border-collapse: separate;
  border-spacing: 1px;
}

/* Override theme .table styles */
.timesheet-calendar > tbody > tr > td {
  padding: 0 !important;
}

.timesheet-calendar td {
  padding: 0;
}

.timesheet-calendar td.calendar-day {
  height: 120px;
  width: 14%;
  position: relative;
  background: #eee;
  border: 1px solid #999;
  font-size: 0.75em;
  padding-top: 20px;
}

.timesheet-calendar td .calendar-date-breakdown {
  padding: 5px;
}

.timesheet-calendar td.calendar-day-available:hover {
  background: #eceff5;
}

.timesheet-calendar td.calendar-day-wknd {
  background: #ddd;
}

.timesheet-calendar td.calendar-day-not-available {
  background: #ccc;
}

.timesheet-calendar td.calendar-day-filler {
  background: transparent;
}

.timesheet-calendar .calendar-days-header td {
  background: #ccc;
  font-weight: bold;
  text-align: center;
  padding: 5px;
  border: 1px solid #999;
}

.timesheet-calendar div.calendar-day-number {
  background: #999;
  color: #fff;
  font-weight: bold;
  width: 20px;
  height: 20px;
  text-align: center;
  position: absolute;
  top: 0;
  right: 0;
}

.timesheet-calendar .calendar-day-manager-link {
  display: block;
  height: 100%;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

ul.timesheet-action-link-list {
  list-style: none;
  overflow: hidden;
  position: relative;
  margin: 0 0 10px 0;
  padding: 0;
  font-weight: bold;
}
