body {
  font-family: Arial;
  font-size: 12px;
  color: #222;
}

.view {
}

.header {
  background: #e65c25 none repeat scroll 0 0 !important;
  border: 0px !important;
}

.header h2.logo {
  margin: 0 1em 0 3%;
  padding: 1em 0 0.7em;
  text-align: left;
}

.header h2.logo a {
  background: rgba(0, 0, 0, 0) url("../img/logo.png") no-repeat scroll 0 0 / contain;
  color: #fff;
  display: inline-block;
  font-size: 1em;
  line-height: 4em;
  padding: 0 0 0 5em;
  text-decoration: none;
  vertical-align: middle;
}
.header.bg-0 {
  background: #fae100 none repeat scroll 0 0 !important;
}
.header.bg-0 h2.logo a {
  color: #000000 !important;
}
.header.bg-1 {
  background: #e65c25 none repeat scroll 0 0 !important;
}
.header.bg-2 {
  background: #006900 none repeat scroll 0 0 !important;
}
.header.bg-3 {
  background: #000000 none repeat scroll 0 0 !important;
}
.header.bg-cereri {
  background: #5dade2 none repeat scroll 0 0 !important;
}

/**sticky header*/
.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #fff;
}

.header.fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1001;
}

.sticky-wrapper.fixed {
  position: fixed;
  top: 68px; /* Adjust based on header height */
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #fff;
  padding: 10px 20px;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
}

.sticky-header.fixed,
#orders-tbl thead.fixed {
  position: fixed;
  top: 205px; /* Adjust based on header + sticky-wrapper height */
  left: 0;
  z-index: 999;
  margin: 0;
  border-bottom: 2px solid #e65c25;
}

#orders-tbl thead.fixed th {
  background: #f5f5f5;
}

/* Add padding to compensate for fixed elements */
.fixed-header-spacer {
  display: none;
}

.fixed-header-spacer.active {
  display: block;
}
/**end sticky header*/

.content {
}

.footer {
  background: #f5f5f5 none repeat scroll 0 0 !important;
  border: medium none !important;
  color: #000000;
  margin: 30px 0 0 !important;
  padding: 20px;
  text-align: center;
}

.footer div {
  background: #f5f5f5 none repeat scroll 0 0 !important;
  font-size: 11px;
  padding: 0;
}

.footer .ui-block-a .ui-bar-a {
  text-align: left;
}

.footer .ui-block-b .ui-bar-a {
  text-align: right;
}

.orders-tbl {
  border: 1px solid #ddd;
  width: 100%;
}

.orders-tbl td,
.orders-tbl th {
  padding: 5px 10px;
  border-right: 1px solid #ddd;
  color: #7d7d7d;
  text-align: center;
  vertical-align: middle;
}

.orders-tbl td .nr-comanda {
  color: #222;
  font-size: 18px;
  line-height: normal;
  text-align: left;
}

.orders-tbl td:last-child,
.orders-tbl th:last-child {
  border-right: 0px solid #ddd;
}

.orders-tbl th {
  background: #f5f5f5 none repeat scroll 0 0;
  font-size: 17px;
  font-weight: 100;
  padding: 24px 10px;
  color: #222;
}

.orders-tbl th.acc-heading {
  font-size: 20px;
  font-weight: 800;
}

.orders-tbl th.order-number-heading {
  max-width: 200px;
}

.orders-tbl th.del-heading {
  width: 30px;
}

.orders-tbl tr {
  border-bottom: 1px solid #fff;
  height: 100px;
}

.orders-tbl tr.tr-1 td {
  background: #fff none repeat scroll 0 0;
}

.orders-tbl tr.tr-2 td {
  background: #f5f5f5 none repeat scroll 0 0;
}

.form-new-order {
  margin: 10px 0;
}

.step-status-gen {
  height: 26px;
  margin: 0 auto;
  width: 26px;
}

.step-status-gen a {
  height: 26px;
  width: 26px;
  display: block;
  text-indent: -9999px;
}

.step-status-gen a.step-status-1 {
  background: rgba(0, 0, 0, 0) url("../img/step-status-verde.jpg") repeat scroll 0 0 / contain;
}

.step-status-gen a.step-status-0 {
  background: rgba(0, 0, 0, 0) url("../img/step-status-0.jpg") repeat scroll 0 0 / contain;
}

.alert a.step-status-0 {
  background: rgba(0, 0, 0, 0) url("../img/step-status-rosu.jpg") repeat scroll 0 0 / contain;
}

.alert a.step-status-1 {
  background: rgba(0, 0, 0, 0) url("../img/step-status-rosu.jpg") repeat scroll 0 0 / contain;
}

textarea,
input {
  color: #7d7d7d !important;
}

textarea {
}

a.order-status-0 {
  color: #7d7d7d;
  text-decoration: none !important;
  font-size: 20px;
  font-weight: 800;
}

a.order-status-1 {
  color: #fe0002;
  text-decoration: none !important;
  font-size: 20px;
  font-weight: 800;
}

.ui-bar-a {
  border: 0px;
}

.footer span {
  color: #e65c25;
}

.button {
  background-color: #ddd;
  border: 0px;
  padding: 5px 10px;
  border-radius: 5px;
  text-decoration: none;
}

.tr-urgent {
  background-color: #e65c25;
}

a.request-accelerated-0 {
  color: #7d7d7d;
  text-decoration: none !important;
  font-size: 20px;
  font-weight: 800;
}

a.request-accelerated-1 {
  color: #fe0002;
  text-decoration: none !important;
  font-size: 20px;
  font-weight: 800;
}

span.request-accelerated-1 {
  color: #fe0002;
  font-size: 20px;
  font-weight: 800;
}

.request-milestone-wrap {
  text-align: center;
  min-width: 70px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
}

#requests-tbl td:has(.request-milestone-wrap) {
  vertical-align: top;
}

.request-milestone-wrap .step-status-gen {
  margin: 0;
  flex-shrink: 0;
}

.request-title-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  gap: 4px;
}

.request-title-row .request-title-text {
  flex: 1;
  min-width: 0;
}

.request-milestone-status-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 26px;
}

.request-milestone-status-row .request-log-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.request-log-btn {
  display: block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  text-indent: -9999px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E") no-repeat center / 16px 16px;
  opacity: 0.85;
}

.request-log-btn:hover {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.12);
}

.cereri-logs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px !important;
}

.cereri-logs-table th,
.cereri-logs-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.5em 0.65em;
  border-bottom: 1px solid #ddd;
  color: #000 !important;
  font-size: 14px !important;
}

.cereri-logs-table th {
  font-weight: 700;
  background: #f5f5f5;
}

.cereri-logs-table .cereri-logs-comment {
  word-break: break-word;
}

.cereri-logs-table .cereri-logs-empty {
  text-align: center;
  color: #666 !important;
  font-style: italic;
}

.cereri-logs-popup {
  max-height: 80vh;
  overflow-y: auto !important;
}

.request-cell-stale { background-color: #fff3cd !important; }
.request-cell-stale-critical { background-color: #ffcdd2 !important; }

#requests-tbl tbody td {
  border-bottom: 1px solid #ddd;
  vertical-align: top;
}

#requests-tbl td,
#requests-tbl .request-title-text,
#requests-tbl .milestone-user,
#requests-tbl .request-notes-field,
#requests-tbl textarea,
#requests-tbl input,
#requests-tbl .ui-btn {
  color: #000 !important;
  font-size: 18px !important;
}

#requests-tbl a.request-accelerated-0 {
  color: #7d7d7d !important;
  font-size: 20px !important;
  font-weight: 800;
  text-decoration: none !important;
}

#requests-tbl a.request-accelerated-1 {
  color: #fe0002 !important;
  font-size: 20px !important;
  font-weight: 800;
  text-decoration: none !important;
}

#requests-tbl span.request-accelerated-1 {
  color: #fe0002 !important;
  font-size: 20px !important;
  font-weight: 800;
}

#requests-tbl .request-created-at,
#requests-tbl .milestone-date {
  color: #000 !important;
  font-size: 14px !important;
}

#requests-tbl .milestone-user {
  font-style: italic;
  font-size: 16px !important;
}

.request-created-at {
  display: block;
  font-size: 11px;
  color: #888;
}

.request-title-open {
  cursor: pointer;
}

.request-title-cell {
  cursor: default;
}

.request-title-text {
  display: block;
  font-weight: 600;
}

.request-notes-field {
  width: 100%;
  min-height: 60px;
}

.request-notes-field.request-notes-error {
  border: 2px solid #fe0002 !important;
}

.milestone-date, .milestone-user {
  display: block;
  font-size: 10px;
}

.milestone-meta-label {
  font-weight: 600;
}

.request-notes-preview {
  display: block;
  max-width: 350px;
  margin-top: 4px;
  font-size: 16px;
  color: #555;
  line-height: 1.3;
  white-space: pre-wrap;
  word-break: break-word;
  text-align: left;
}

.tr-urgent .request-notes-preview {
  color: #fff;
}

.request-notes-preview-truncated {
  cursor: pointer;
}

#requests-tbl .request-notes-preview-truncated,
#requests-tbl .request-notes-preview-truncated:hover,
#requests-tbl .request-notes-preview-truncated.expanded {
  cursor: pointer !important;
  margin: 0 auto;
}

.request-notes-preview-truncated:hover {
  color: #333;
  text-decoration: underline;
}

#requests-tbl .step-status-gen a.step-status-request-gray {
  background: rgba(0, 0, 0, 0) url("../img/step-status-0.jpg") repeat scroll 0 0 / contain;
}

#requests-tbl .step-status-gen a.step-status-request-red {
  background: rgba(0, 0, 0, 0) url("../img/step-status-rosu.jpg") repeat scroll 0 0 / contain;
}

#requests-tbl .step-status-gen a.step-status-request-green {
  background: rgba(0, 0, 0, 0) url("../img/step-status-verde.jpg") repeat scroll 0 0 / contain;
}

.cereri-milestone-notes {
  margin-top: 0;
}

.cereri-milestone-notes label {
  font-size: 14px;
}

.cereri-milestone-notes textarea {
  width: 100%;
  min-height: 8em;
  box-sizing: border-box;
  font-size: 14px;
}

.cereri-milestone-user-row {
  display: flex;
  align-items: flex-end;
  gap: 0.5em;
  flex-wrap: wrap;
}

.cereri-milestone-user-row select.cereri-form-select {
  flex: 1;
  min-width: 10em;
  margin-bottom: 0;
}

.cereri-milestone-user-row .ui-btn {
  margin: 0;
}

.cereri-milestone-hint {
  font-size: 0.9em;
  color: #666;
  margin: 0.5em 0;
}

.cereri-errors { color: red; }
.cereri-add-popup .cereri-errors { margin-top: 0.75em; }

.cereri-add-popup.ui-popup,
.cereri-add-popup {
  width: 52.5em !important;
  max-width: 95vw !important;
  box-sizing: border-box;
  overflow: visible !important;
}

.cereri-add-popup input[type="text"],
.cereri-add-popup textarea {
  width: 100%;
  box-sizing: border-box;
}

.cereri-add-popup select.cereri-form-select,
.cereri-milestone-popup select.cereri-form-select,
select.cereri-form-select {
  display: block;
  width: 100%;
  margin: 0.5em 0 1em;
  padding: 0.6em 0.5em;
  font-size: 1em;
  line-height: 1.4;
  border: 1px solid #ccc;
  border-radius: 0.25em;
  background: #fff;
  position: relative;
  z-index: 1201;
  min-height: 2.5em;
  box-sizing: border-box;
  opacity: 1;
  clip: auto;
  overflow: visible;
  -webkit-appearance: menulist;
  -moz-appearance: menulist;
  appearance: menulist;
}

.cereri-milestone-popup.ui-popup,
.cereri-milestone-popup {
  width: 56em !important;
  max-width: 95vw !important;
  box-sizing: border-box;
  overflow: visible !important;
}

.cereri-milestone-title {
  margin: 0 2em 0.75em 0;
  font-size: 18px;
}

.cereri-action-divider {
  position: relative;
  margin: 1.25em 0;
  text-align: center;
}

.cereri-action-divider hr {
  border: none;
  border-top: 3px solid #bbb;
  margin: 0;
}

.cereri-action-divider span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 0 0.75em;
  font-weight: 600;
  font-size: 0.85em;
  color: #666;
  letter-spacing: 0.05em;
}

.cereri-milestone-panel label {
  display: block;
  margin: 0.5em 0;
}

.cereri-milestone-radios label {
  display: block;
  margin: 0.5em 0;
}

.cereri-milestone-panel textarea {
  width: 100%;
  min-height: 8em;
  box-sizing: border-box;
  margin-bottom: 0.75em;
  font-size: 14px;
}

.cereri-milestone-actions {
  margin-top: 0;
}

.cereri-milestone-actions .ui-btn {
  margin: 0.25em 0.25em 0.25em 0;
}

.ui-popup-container:has(#addPopup.cereri-add-popup),
.ui-popup-container:has(.cereri-modal-popup) {
  overflow: visible !important;
  z-index: 1100;
}

#meniu-dr .ui-btn {
  border: 0 none !important;
  font-size: 1em !important;
  background-color: #fff !important;
}

.ui-btn-right {
  right: 1em;
}

.new-order-form p {
  color: red;
}

@media all and (min-width: 50em) {
  .login-form,
  .new-order-form,
  .change-pass-form {
    width: 400px;
    margin: 0 auto;
  }
}

.order_target {
  border: 1px solid #bbb;
}

.order_target td {
  background: #ffeee8 none repeat scroll 0 0 !important;
}

.data-calendar {
  color: #222 !important;
  font-size: 1.5em !important;
}

textarea {
  color: #222 !important;
  font-size: 1.5em !important;
  overflow-y: visible !important;
}
