/*
@charset "UTF-8";
@package     Joomla
@subpackage  com_staffing
@copyright   Copyright (C) 2015-2016 Fortify IT All rights reserved.
@license     GNU General Public License Version 3, or later http://www.gnu.org/licenses/gpl.html
*/

.ts-page-topbar {
  width: 100%;
  height: 56px;
  background: #cfd5db;
  margin: 0 0 14px;
}

/* Button Classes */
.ts-Button{margin:3px;}
/* Reports */
#ts_meta{background:#f4f4f4;border:#cccccc 1px solid;border-radius: 10px;overflow:auto;margin-bottom:20px;margin-top:20px;
    padding: 10px 10px 30px;
}

/* Staffing data tabular display */
#timesheet_data { list-style: none; margin: 0; padding-left: 10px; }
#timesheet_data li.header div { font-weight: bold; cursor: default; }
#timesheet_data li div {display: block; float: left; padding: 2px 2px; }
#timesheet_data li div.field_type {font-weight: bold; width: 120px; }
#timesheet_data li div.field_value {width: 300px;}

/*
.timesheetHtmlBoxPrintTop {}
.timesheetHtmlBoxPrintBottom {}
*/
/* Put label on left. */
.form-horizontal .control-label {
  text-align: left;
}

.item-page h1,
.sheet-edit h1,
.front-end-edit h1 {
  font-size: 1.05rem;
  line-height: 1.2;
  margin-bottom: 12px;
}

.staffing-page-title,
.item-page .staffing-page-title,
.sheet-edit .staffing-page-title,
.front-end-edit .staffing-page-title {
  color: #1f2933;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 10px 0 12px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.ts-page-branding img {
  max-width: min(260px, calc(100vw - 56px));
}

@media (max-width: 760px) {
  .ts-page-topbar {
    height: 76px !important;
  }

  .ts-page-branding {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    margin: 8px 12px 4px !important;
    z-index: 1 !important;
  }

  .ts-page-branding img {
    max-height: 54px !important;
    max-width: min(220px, calc(100vw - 24px)) !important;
  }

  .ts-page-branding span {
    font-size: 22px !important;
  }

  .ts-page-topbar-spacer {
    height: 4px !important;
  }

  .staffing-page-title,
  .item-page h1,
  .sheet-edit h1,
  .front-end-edit h1 {
    font-size: 1rem;
    line-height: 1.18;
    margin-top: 6px;
    margin-bottom: 10px;
  }
}

.item-page .timesheet-detail,
.sheet-edit .timesheet-detail {
  background: #ffffff;
  border: 1px solid #cfd5db;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(26, 38, 52, 0.08);
  margin: 20px 0;
  max-width: 900px;
  padding: 20px;
}

.item-page .timesheet-detail {
  margin-left: auto;
  margin-right: auto;
}

.item-page .timesheet-summary-panel {
  background: #f8fafb;
  border: 1px solid #dfe7eb;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(26, 38, 52, 0.06);
  margin: 20px auto 18px;
  max-width: 1100px;
  padding: 14px;
}

.item-page .timesheet-detail--sheet {
  max-width: 100%;
  padding: 10px 14px;
}

.item-page .timesheet-detail--sheet .timesheet-detail__header {
  margin-bottom: 8px;
  padding-bottom: 6px;
}

.item-page .timesheet-detail--sheet #sheetList {
  margin-bottom: 8px;
}

.item-page .timesheet-detail__meta-table th,
.item-page .timesheet-detail__meta-table td {
  padding: 2px 8px;
  line-height: 1.05;
}

.item-page .timesheet-detail__meta-table th {
  width: 28%;
}

.item-page .timesheet-detail__meta-table td {
  vertical-align: top;
}

.item-page .timesheet-detail__meta-row--remarks th,
.item-page .timesheet-detail__meta-row--remarks td {
  padding-top: 2px;
  padding-bottom: 2px;
}

.item-page .timesheet-detail__remarks-cell {
  max-width: 240px;
  white-space: normal;
  word-break: break-word;
}

.item-page .timesheet-grid-panel {
  background: #ffffff;
  border: 1px solid #cfd5db;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(26, 38, 52, 0.08);
  margin: 12px auto 18px;
  max-width: 1100px;
  padding: 14px 18px;
}

.item-page .timesheet-grid-panel #sheet {
  margin-top: 4px;
}

.item-page .timesheet-grid-panel .ui-jqgrid {
  max-width: 100% !important;
}

.item-page .timesheet-grid-panel .ui-jqgrid-view,
.item-page .timesheet-grid-panel .ui-jqgrid-bdiv,
.item-page .timesheet-grid-panel .ui-jqgrid-hdiv {
  max-width: 100% !important;
}

.item-page .timesheet-detail__header,
.sheet-edit .timesheet-detail__header {
  align-items: center;
  border-bottom: 1px solid #e2e8ee;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
}

.item-page .timesheet-detail__header h2,
.sheet-edit .timesheet-detail__header h2 {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.2;
}

.item-page .timesheet-detail__actions,
.sheet-edit .timesheet-detail__actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: auto;
}

.item-page .timesheet-detail__edit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  background: #2f9e44;
  border-color: #2f9e44;
  color: #ffffff;
  border-radius: 6px;
  font-weight: 600;
}

.item-page .timesheet-detail__edit-button:hover,
.item-page .timesheet-detail__edit-button:focus {
  background: #27863a;
  border-color: #27863a;
  color: #ffffff;
}

.item-page .timesheet-detail__edit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-height: 42px;
  border-radius: 50%;
  background: #2f9e44;
  color: #ffffff;
  text-decoration: none;
  overflow: visible;
  vertical-align: middle;
}

.item-page .timesheet-detail__edit-icon:hover,
.item-page .timesheet-detail__edit-icon:focus {
  background: #27863a;
  color: #ffffff;
  text-decoration: none;
}

.item-page .timesheet-detail__edit-icon .icon-edit {
  display: block;
  font-size: 20px;
  line-height: 20px;
  transform: translateY(-1px);
}

.item-page .timesheet-detail #sheetList,
.sheet-edit .timesheet-detail #sheetList {
  margin-bottom: 24px;
}

.item-page .timesheet-detail #sheetList th,
.sheet-edit .timesheet-detail #sheetList th {
  background: #f3f5f7;
  color: #1f2933;
  width: 32%;
}

.item-page .timesheet-detail #sheetList td,
.sheet-edit .timesheet-detail #sheetList td {
  background: #ffffff;
  color: #1f2933;
}

.ui-jqgrid .ui-pg-table .ui-pg-button .ui-icon,
.ui-jqgrid .ui-pg-table .ui-pg-button .ui-icon-search,
.ui-jqgrid .ui-pg-table .ui-pg-button .ui-icon-refresh,
.ui-jqgrid .ui-pg-table .ui-pg-button .ui-icon-seek-first,
.ui-jqgrid .ui-pg-table .ui-pg-button .ui-icon-seek-prev,
.ui-jqgrid .ui-pg-table .ui-pg-button .ui-icon-seek-next,
.ui-jqgrid .ui-pg-table .ui-pg-button .ui-icon-seek-end {
  background-image: none !important;
  text-indent: 0 !important;
  color: #2f9e44;
  font-size: 17px;
  font-weight: 700;
  line-height: 18px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: none;
  filter: none;
}

.ui-jqgrid .ui-pg-table .ui-pg-button .ui-icon::before {
  content: "•";
}

.ui-jqgrid .ui-pg-table .ui-pg-button .ui-icon-plus::before {
  content: "+";
}

.ui-jqgrid .ui-pg-table .ui-pg-button .ui-icon-pencil::before {
  content: "✎";
}

.ui-jqgrid .ui-pg-table .ui-pg-button .ui-icon-trash::before {
  content: "×";
}

.ui-jqgrid .ui-pg-table .ui-pg-button .ui-icon-search::before {
  content: "⌕";
}

.ui-jqgrid .ui-pg-table .ui-pg-button .ui-icon-refresh::before {
  content: "↻";
}

.ui-jqgrid .ui-pg-table .ui-pg-button .ui-icon-seek-first::before {
  content: "⏮";
  font-size: 14px;
}

.ui-jqgrid .ui-pg-table .ui-pg-button .ui-icon-seek-prev::before {
  content: "‹";
}

.ui-jqgrid .ui-pg-table .ui-pg-button .ui-icon-seek-next::before {
  content: "›";
}

.ui-jqgrid .ui-pg-table .ui-pg-button .ui-icon-seek-end::before {
  content: "⏭";
  font-size: 14px;
}

.ui-jqgrid .ui-pg-table .ui-pg-button {
  min-width: 30px;
  min-height: 30px;
  border-radius: 6px;
  background: #e9f7ef;
  border: 1px solid #b7ddc0;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.ui-jqgrid .ui-pg-table .ui-pg-button:hover .ui-icon,
.ui-jqgrid .ui-pg-table .ui-pg-button:focus .ui-icon {
  color: #237a35;
}

.ui-jqgrid .ui-pg-table .ui-pg-button:hover,
.ui-jqgrid .ui-pg-table .ui-pg-button:focus {
  background: #d8f0e0;
  border-color: #8fc59d;
}

.sheet-edit .timesheet-edit-panel {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.sheet-edit .timesheet-edit-panel--upload .timesheet-edit-panel__header h2 {
  font-size: 1rem !important;
  line-height: 1.12 !important;
  margin: 0 !important;
  overflow-wrap: anywhere;
}

.sheet-edit .timesheet-edit-panel .control-group {
  margin-bottom: 0;
}

.sheet-edit .timesheet-edit-panel .control-label {
  margin-bottom: 0;
  padding-top: 2px;
  line-height: 1.05;
}

.sheet-edit .timesheet-edit-panel .controls {
  margin-left: 0;
  line-height: 1.1;
}

.sheet-edit .timesheet-edit-panel .controls input,
.sheet-edit .timesheet-edit-panel .controls select,
.sheet-edit .timesheet-edit-panel .controls textarea {
  margin-bottom: 1px;
}

.sheet-edit .timesheet-edit-panel .controls .help-block,
.sheet-edit .timesheet-edit-panel .controls p {
  margin: 0;
  line-height: 1.05;
}

.sheet-edit .timesheet-edit-panel input[type="text"],
.sheet-edit .timesheet-edit-panel input[type="email"],
.sheet-edit .timesheet-edit-panel select,
.sheet-edit .timesheet-edit-panel textarea {
  max-width: 100%;
  margin-bottom: 0;
}

.sheet-edit .timesheet-edit-panel .control-group .help-block,
.sheet-edit .timesheet-edit-panel .control-group .help-inline,
.sheet-edit .timesheet-edit-panel .control-group small {
  margin-top: 1px;
  line-height: 1.1;
}

.sheet-edit .timesheet-edit-panel--upload .control-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.sheet-edit .timesheet-edit-panel--upload .control-label {
  display: flex;
  align-items: center;
  flex: 0 0 170px;
  min-height: 30px;
  margin-bottom: 0;
  padding-top: 0;
  line-height: 1.15;
  text-align: left;
  white-space: nowrap;
}

.sheet-edit .timesheet-edit-panel--upload .controls {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.2;
}

.sheet-edit .timesheet-edit-panel--upload .controls input,
.sheet-edit .timesheet-edit-panel--upload .controls select {
  margin-bottom: 0;
}

.sheet-edit .timesheet-edit-panel--upload .ts-upload-file-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  min-width: 0;
  width: 100%;
  max-width: 860px;
}

.sheet-edit .timesheet-edit-panel--upload .ts-upload-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.sheet-edit .timesheet-edit-panel--upload .ts-upload-file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 12px;
  margin: 0;
  border: 1px solid #bcc7d3;
  border-radius: 6px;
  background: #eef2f5;
  color: #33414f;
  font-weight: 600;
  cursor: pointer;
  line-height: 1;
}

.sheet-edit .timesheet-edit-panel--upload .ts-upload-file-button:hover,
.sheet-edit .timesheet-edit-panel--upload .ts-upload-file-button:focus {
  background: #e3e9ee;
  border-color: #aab6c2;
}

.sheet-edit .timesheet-edit-panel--upload .ts-upload-file-name {
  flex: 1 1 240px;
  min-width: 0;
  width: 100%;
  min-height: 30px;
  margin: 0;
  padding: 4px 8px;
  border: 1px solid #cfd8e3;
  border-radius: 6px;
  background: #f8fafb;
  color: #1f2933;
  box-sizing: border-box;
}

.sheet-edit .timesheet-edit-panel--upload button[type="submit"] {
  min-height: 30px;
  padding: 0 16px;
  border-radius: 6px;
  font-weight: 600;
}

@media (max-width: 640px) {
  .sheet-edit .timesheet-edit-panel--upload .timesheet-edit-panel__header h2 {
    font-size: 0.95rem !important;
    line-height: 1.12 !important;
  }

  .sheet-edit .timesheet-edit-panel--upload .control-group {
    flex-wrap: wrap;
    gap: 4px;
  }

  .sheet-edit .timesheet-edit-panel--upload .control-label {
    flex: 0 0 100%;
    min-height: auto;
  }

  .sheet-edit .timesheet-edit-panel--upload .controls {
    flex: 1 1 100%;
    width: 100%;
  }

  .sheet-edit .timesheet-edit-panel--upload .ts-upload-file-row {
    flex-wrap: nowrap;
    gap: 6px;
    max-width: 100%;
  }

  .sheet-edit .timesheet-edit-panel--upload .ts-upload-file-name {
    flex: 1 1 auto;
    min-width: 0;
  }
}

.sheet-edit .timesheet-edit-panel #jform_emp_remarks,
.sheet-edit .timesheet-edit-panel #jform_admin_remarks {
  max-width: 50%;
  min-height: 0;
  height: 4.5em;
  max-height: 4.5em;
}
