/*
Site Name: First React Dashbord
Author: MS
Description: Projekt dashbordu. Nauka React.
Version: 1.0
License
*/
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap");
:root {
  --radius-s:5px;
  --radius-m:10px;
  --radius-l:20px;
  --shadow: 0 2px 7px var(--color-bg-300);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-family-sans);
  color: var(--color-text);
  font-size: var(--fs-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-normal);
  letter-spacing: var(--ls-normal);
}

body {
  background: var(--color-bg);
}

.test-environment-banner {
  width: 100%;
  margin-bottom: 0.6rem;
  padding: 0.55rem 0.75rem;
  border: 2px solid #8f1a1a;
  border-radius: 8px;
  background: repeating-linear-gradient(
    -45deg,
    #fff2f2,
    #fff2f2 12px,
    #ffdede 12px,
    #ffdede 24px
  );
  color: #8f1a1a;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

img {
  width: 100%;
  height: 100%;
}

a {
  -webkit-text-decoration: transparent;
          text-decoration: transparent;
  color: var(--color--brand);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  margin: 1rem 0;
}

input, textarea, select {
  background-color: var(--color-input-bg);
  border: transparent;
  border-radius: 10px;
  height: 2rem;
  padding: 10px;
}

select {
  padding: 0 10px;
}

input[type=checkbox] {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-color: var(--color-bg-100);
  margin: 5px;
  font: inherit;
  color: currentColor;
  width: 1.15em;
  height: 1.15em;
  border-radius: 50%;
  transform: translateY(-0.075em);
  display: grid;
  place-content: center;
}

input[type=checkbox]::before {
  content: "";
  width: 0.85em;
  height: 0.85em;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  transform-origin: bottom left;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  background-color: var(--color-bg-second);
}

input[type=checkbox]:checked, .list li input[type=checkbox]:checked, .list li:nth-child(odd) input[type=checkbox]:checked {
  background-color: var(--color--brand);
}

input[type=checkbox]:checked::before {
  transform: scale(1);
}

table {
  width: 100%;
  margin: 2rem 0;
  border-spacing: 0;
}
table thead tr th {
  font-size: var(--fs-xs);
  font-weight: var(--font-weight-medium);
  background-color: var(--color-bg-second);
  color: var(--color-text-second);
  border-left: 1px solid var(--color-bg-300);
  border-bottom: 1px solid var(--color-bg-300);
  padding: 0.5rem;
}
table tr td {
  padding: 0.5rem;
  text-align: center;
  border-left: 1px solid var(--color-bg-300);
  border-bottom: 1px solid rgba(16, 61, 53, 0.08);
}
table tr td img {
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

table tbody:nth-child(even) {
  background-color: var(--color-bg-200);
}

table tbody tr:nth-child(even) td {
  background-color: rgba(142, 178, 63, 0.07);
}

.table-row-link {
  cursor: pointer;
  transition: background-color ease-in-out 0.2s;
}

.table-row-link:hover {
  background-color: rgba(142, 178, 63, 0.16);
}

.actions-cell {
  min-width: 16rem;
}

.employee-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.employee-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: var(--color-bg-second);
  transition: transform ease-in-out 0.2s, background-color ease-in-out 0.2s;
}

.employee-action-link:hover {
  background-color: var(--color-brand-hover);
  transform: translateY(-1px);
}

.employee-action-link .icon-s {
  width: 1rem;
  height: 1rem;
  background-color: var(--color-text-second);
}

.asset-view {
  height: auto;
}

.asset-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.asset-employee-summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-md);
}

.asset-role {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background-color: var(--color-brand-disable);
  font-size: var(--fs-sm);
}

.compact-employee-form {
  gap: 1rem;
}

.asset-issue-row {
  grid-template-columns: minmax(10rem, 12rem) minmax(16rem, 1.6fr) minmax(8rem, 10rem) minmax(14rem, 1fr);
}

.asset-wide-field {
  min-width: 0;
}

.asset-filter-form {
  display: grid;
  gap: 0.75rem;
}

.narrow-filter-row {
  max-width: 30rem;
}

.left-actions {
  justify-content: flex-start;
}

.asset-history-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.asset-history-table {
  margin: 0;
}

.asset-history-table th,
.asset-history-table td {
  vertical-align: top;
}

.asset-history-table td input,
.asset-history-table td select,
.asset-history-table td textarea {
  width: 100%;
  min-width: 8rem;
  margin: 0;
}

.asset-history-table td textarea {
  min-width: 12rem;
  min-height: 4.5rem;
.compact-actions-cell {
  min-width: 5.5rem;
}
}

.building-inspection-row {
.marketing-icon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid var(--color-border);
  border-radius: 0.35rem;
  background-color: #fff;
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.marketing-icon-action:hover,
.marketing-icon-action:focus-visible {
  background-color: rgba(23, 56, 71, 0.08);
  border-color: rgba(23, 56, 71, 0.4);
  transform: translateY(-1px);
}
  cursor: pointer;
}

.building-inspection-row:hover td,
.building-inspection-row:focus td,
.building-inspection-row-active td {
  background-color: rgba(142, 178, 63, 0.14);
}

.order-service-entry-table .order-service-col-service {
  width: 32%;
  min-width: 18rem;
}

.order-service-entry-table .order-service-col-quantity {
  width: 8%;
  min-width: 5.5rem;
}

.order-service-entry-table .order-service-col-vat {
  width: 12%;
  min-width: 8.4rem;
}

.order-service-entry-table .order-service-col-service select,
.order-service-entry-table .order-service-col-quantity input,
.order-service-entry-table .order-service-col-vat input {
  min-width: 0;
}

.order-service-entry-table .order-service-col-vat input {
  font-size: 0.88rem;
}

.invoice-line-meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.76rem;
  color: #6b7280;
}

.invoice-line-draft-table textarea {
  min-height: 4rem;
  resize: vertical;
}

.invoice-line-draft-action-cell,
.invoice-line-remove-button {
  white-space: nowrap;
}

.invoice-integrations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

.invoice-integration-card {
  padding: 1.25rem;
  border: 1px solid #d1d5db;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.invoice-integration-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.invoice-integration-card-header h4 {
  margin: 0;
}

.invoice-integration-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.invoice-integration-badge-active {
  background: #dcfce7;
  color: #166534;
}

.invoice-integration-steps {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.invoice-integration-steps li + li {
  margin-top: 0.4rem;
}

.invoice-integration-form textarea {
  min-height: 4.25rem;
}

.invoice-integration-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.invoice-integration-summary-grid div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.8rem;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.invoice-integration-details summary {
  cursor: pointer;
  font-weight: 700;
  margin-bottom: 1rem;
}

.order-service-entry-table .order-service-col-action {
  width: 4.2rem;
  min-width: 4.2rem;
  white-space: nowrap;
}

.order-service-action-button {
  border-radius: 0.7rem;
}

.order-service-col-action .order-service-action-button + .order-service-action-button {
  margin-left: 0.45rem;
}

.history-actions-cell {
  min-width: 8rem;
}

.history-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
}

.inline-table-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-m);
  background-color: var(--color-bg-second);
  color: var(--color-text-second);
}

.inline-table-action:hover {
  color: var(--color-text-second);
  background-color: var(--color-brand-hover);
}

.btn-link {
  border: transparent;
  cursor: pointer;
}

.warehouse-category-actions-cell {
  min-width: 0;
  white-space: nowrap;
}

.warehouse-category-actions {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 0.35rem;
}

.warehouse-category-actions form {
  margin: 0;
}

.warehouse-category-actions .inline-table-action {
  min-height: 1.8rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.88rem;
  white-space: nowrap;
}

.warehouse-category-tree-cell {
  min-width: 18rem;
}

.warehouse-category-tree-cell strong,
.production-category-cell strong {
  display: block;
}

.warehouse-category-path,
.production-category-path {
  display: block;
  margin-top: 0.2rem;
  color: var(--color-info);
  font-size: 0.82rem;
  line-height: 1.35;
}

.warehouse-category-depth-0 strong {
  color: #173847;
}

.warehouse-category-depth-1 strong,
.warehouse-category-depth-2 strong,
.warehouse-category-depth-3 strong,
.warehouse-category-depth-4 strong,
.warehouse-category-depth-5 strong {
  position: relative;
  padding-left: 1rem;
}

.warehouse-category-depth-1 strong::before,
.warehouse-category-depth-2 strong::before,
.warehouse-category-depth-3 strong::before,
.warehouse-category-depth-4 strong::before,
.warehouse-category-depth-5 strong::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 50%;
  width: 0.55rem;
  height: 1px;
  background-color: rgba(23, 56, 71, 0.4);
}

.warehouse-category-type-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background-color: rgba(11, 95, 141, 0.1);
  color: #0b5f8d;
  font-size: 0.8rem;
  font-weight: 600;
}

.warehouse-product-actions-cell {
  min-width: 0;
  white-space: nowrap;
}

.warehouse-product-actions {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.warehouse-product-actions form {
  margin: 0;
}

.warehouse-icon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border: transparent;
  border-radius: var(--radius-m);
  transition: transform ease-in-out 0.2s, filter ease-in-out 0.2s;
}

.warehouse-icon-action:hover {
  transform: translateY(-1px);
  filter: brightness(0.96);
}

.warehouse-icon-action .icon-s,
.warehouse-icon-action .warehouse-icon-symbol {
  width: 1rem;
  height: 1rem;
  color: var(--color-text-second);
  background-color: var(--color-text-second);
}

.warehouse-icon-action .icon-s {
  margin: 0;
}

.warehouse-icon-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}

.warehouse-icon-action-receipt {
  background-color: var(--color-brand);
}

.warehouse-icon-action-issue {
  background-color: #8d9aa8;
}

.warehouse-icon-action-edit {
  background-color: #f0b34d;
}

.warehouse-icon-action-history {
  background-color: #5c86d6;
}

.warehouse-icon-action-deactivate {
  background-color: #b16666;
}

.warehouse-icon-action-delete {
  background-color: #b16666;
}

.warehouse-icon-action-activate {
  background-color: #4c8f61;
}

.employee-attachment-file-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.employee-attachment-file-link-icon {
  gap: 0;
}

.employee-attachment-file-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-m);
  background-color: #5c86d6;
  flex-shrink: 0;
}

.employee-attachment-file-icon .icon-s {
  width: 1rem;
  height: 1rem;
  margin: 0;
  color: var(--color-text-second);
  background-color: var(--color-text-second);
}

.employee-attachment-extension-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  min-height: 1.7rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background-color: var(--color-bg-second);
  color: var(--color-text-primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.employee-attachment-file-col {
  width: 4.4rem;
  min-width: 4.4rem;
  max-width: 4.4rem;
  text-align: center;
  white-space: nowrap;
}

.invoice-list-filter-form {
  margin-bottom: 1rem;
}

.invoice-list-filter-actions {
  gap: 0.75rem;
}

.invoice-list-actions {
  flex-wrap: nowrap;
  align-items: center;
  overflow: visible;
}

.invoice-list-settlement-wrap {
  position: relative;
  display: inline-flex;
  overflow: visible;
}

.invoice-list-settlement-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  bottom: auto;
  z-index: 20;
  width: 260px;
  padding: 0.8rem;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: var(--radius-m);
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
}

.invoice-list-settlement-panel[hidden] {
  display: none;
}

.invoice-list-settlement-form {
  display: grid;
  gap: 0.65rem;
}

.invoice-list-settlement-form label {
  display: grid;
  gap: 0.3rem;
}

.invoice-list-settlement-form label span {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
}

.invoice-list-settlement-summary {
  display: grid;
  gap: 0.15rem;
  font-size: 0.82rem;
}

.invoice-list-settlement-summary strong {
  font-size: 0.88rem;
}

.invoice-list-settlement-actions {
  display: flex;
  justify-content: flex-end;
}

.invoice-list-payment-meta {
  display: block;
  margin-top: 0.3rem;
  color: var(--color-muted);
  line-height: 1.4;
}

.invoice-list-main-table .invoice-list-amount-column,
.invoice-list-main-table .invoice-list-amount-cell {
  width: 9.5rem;
  min-width: 9.5rem;
  white-space: nowrap;
  text-align: right;
}

.invoice-list-main-table .invoice-list-amount-cell {
  font-size: 0.9rem;
}

.invoice-list-main-table .invoice-list-status-column,
.invoice-list-status-cell {
  min-width: 16rem;
}

.invoice-list-status-cell strong,
.invoice-ksef-status,
.invoice-payment-status {
  display: block;
}

.invoice-ksef-status,
.invoice-payment-status {
  margin-top: 0.2rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.invoice-ksef-status-sent,
.invoice-payment-status-paid {
  color: #0f6a35;
}

.invoice-ksef-status-pending {
  color: #b42318;
}

.invoice-payment-status-awaiting {
  color: #0b5fff;
}

.invoice-payment-status-pending,
.invoice-payment-status-neutral {
  color: #101828;
}

.invoice-payment-status-overdue {
  color: #b42318;
}

.invoice-payment-status-detail {
  font-weight: 700;
}

.invoice-list-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.invoice-list-summary-card {
  display: grid;
  gap: 0.3rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-m);
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.invoice-list-summary-card strong {
  font-size: 0.82rem;
}

.invoice-list-summary-card span {
  font-size: 1.05rem;
  font-weight: 700;
}

.invoice-list-summary-card-paid span {
  color: #0f6a35;
}

.invoice-list-summary-card-awaiting span {
  color: #0b5fff;
}

.invoice-list-summary-card-overdue span {
  color: #b42318;
}

.invoice-list-summary-card-total span {
  color: var(--color-info);
}

.invoice-print-dialog[hidden] {
  display: none;
}

.invoice-print-dialog {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
}

.invoice-print-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.46);
}

.invoice-print-dialog-card {
  position: relative;
  z-index: 1;
  width: min(26rem, calc(100vw - 2rem));
  padding: 1.1rem;
  border-radius: var(--radius-l);
  background: #fff;
  box-shadow: 0 1.2rem 2.8rem rgba(15, 23, 42, 0.24);
  display: grid;
  gap: 0.85rem;
}

.invoice-print-dialog-card h3,
.invoice-print-dialog-card p {
  margin: 0;
}

.invoice-print-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
}

.invoice-list-table-wrap {
  overflow: visible;
  padding-bottom: 8.5rem;
}

.invoice-list-table-wrap .contractor-results-table td:last-child,
.invoice-list-table-wrap .contractor-results-table th:last-child {
  overflow: visible;
}

.invoice-list-table-wrap .history-actions-cell,
.invoice-list-table-wrap .warehouse-product-actions-cell {
  overflow: visible;
}

.invoice-list-action-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.invoice-list-action-disabled:hover {
  transform: none;
  filter: none;
}

.invoice-list-details-row[hidden] {
  display: none;
}

.invoice-list-payments-row[hidden] {
  display: none;
}

.invoice-list-details-panel {
  display: grid;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.invoice-list-payments-panel {
  display: grid;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.invoice-list-details-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-m);
  background: rgba(15, 23, 42, 0.04);
}

.invoice-list-details-panel h4 {
  margin: 0;
}

.invoice-list-details-table {
  min-width: 860px;
}

.invoice-list-settlements-empty {
  margin: 0;
  color: var(--color-muted);
}

.warehouse-product-actions .inline-table-action {
  min-height: 1.8rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.88rem;
  white-space: nowrap;
}

.warehouse-filter-actions {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.warehouse-product-filter-fields-row {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.15fr) minmax(0, 1.15fr) minmax(7.5rem, 0.55fr) minmax(7.5rem, 0.55fr);
  align-items: end;
}

.warehouse-product-filter-number-field {
  max-width: 10rem;
}

.warehouse-product-filter-actions-row {
  grid-template-columns: minmax(0, 1fr);
}

.warehouse-product-filter-actions-row .warehouse-filter-actions {
  flex-wrap: nowrap;
  align-items: center;
}

.warehouse-product-filter-actions-row .warehouse-filter-actions .btn {
  white-space: nowrap;
}

.warehouse-stock-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-m);
  font-weight: 600;
}

.warehouse-stock-positive {
  background-color: rgba(65, 128, 77, 0.16);
  color: #295734;
}

.warehouse-stock-zero {
  background-color: rgba(160, 134, 72, 0.16);
  color: #735b1d;
}

.warehouse-stock-negative {
  background-color: rgba(155, 61, 61, 0.16);
  color: #7f2222;
}

.warehouse-product-summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.warehouse-history-wrap {
  margin-top: 1.25rem;
}

.warehouse-history-wrap h4 {
  margin-bottom: 0.75rem;
}

.warehouse-history-filter-form {
  margin-bottom: 1rem;
}

.warehouse-history-table th,
.warehouse-history-table td {
  white-space: nowrap;
}

.warehouse-history-table td:last-child {
  white-space: normal;
  min-width: 14rem;
}

.warehouse-history-table .warehouse-history-row-receipt td {
  background-color: #f6f9ee;
}

.warehouse-history-table .warehouse-history-row-issue td {
  background-color: #e2eaf2;
}

.warehouse-history-table .warehouse-history-row-opening td {
  background-color: #f7efd1;
  font-weight: 600;
}

.production-own-product-actions {
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 0.35rem;
}

.production-bulk-marketplace-form {
  margin-bottom: 1rem;
}

.production-bulk-marketplace-toolbar {
  display: grid;
  gap: 0.75rem;
}

.production-bulk-marketplace-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.production-bulk-selection-counter {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  background-color: rgba(23, 56, 71, 0.08);
  font-size: 0.85rem;
  font-weight: 600;
}

.production-bulk-marketplace-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.75rem;
}

.production-bulk-marketplace-row label {
  display: grid;
  gap: 0.3rem;
  min-width: 14rem;
  flex: 0 1 22rem;
}

.production-bulk-lp-cell,
.production-bulk-checkbox-cell {
  width: 2.2rem;
  min-width: 2.2rem;
  text-align: center;
}

.asset-history-table td input.production-bulk-product-checkbox,
.asset-history-table th input#production-bulk-select-all,
.production-bulk-product-checkbox,
#production-bulk-select-all {
  -webkit-appearance: checkbox;
     -moz-appearance: auto;
          appearance: auto;
  box-sizing: border-box;
  width: 0.8rem;
  height: 0.8rem;
  min-width: 0.8rem;
  min-height: 0.8rem;
  max-width: 0.8rem;
  flex: 0 0 0.8rem;
  margin: 0 auto;
  padding: 0;
  border: 1px solid #7f98a3;
  border-radius: 0;
  background-color: initial;
  transform: none;
  display: inline-block;
  line-height: 1;
  vertical-align: middle;
}

.production-bulk-product-checkbox::before,
#production-bulk-select-all::before {
  content: none;
}

.production-component-filter-form {
  margin-bottom: 1rem;
}

.production-component-inline-form {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.production-component-qty-input {
  width: 6.25rem;
}

.production-component-action-cell {
  white-space: nowrap;
}

.production-component-actions {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 0.35rem;
}

.production-component-actions form {
  margin: 0;
}

.production-components-table td,
.production-components-table th {
  vertical-align: middle;
}

.production-category-cell {
  min-width: 16rem;
}

.production-component-filter-note {
  margin: 0.85rem 0 1rem;
  color: var(--color-info);
  font-size: 0.86rem;
  line-height: 1.45;
}

.warehouse-label-selection-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.9rem;
}

.warehouse-label-selection-bar-compact {
  justify-content: flex-end;
}

.warehouse-label-selection-note {
  margin-right: auto;
  color: #173847;
  font-size: 0.92rem;
}

.warehouse-label-select-all {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  color: #173847;
}

.warehouse-label-checkbox-cell {
  width: 3rem;
  text-align: center;
}

.warehouse-label-checkbox-head-cell {
  width: 1.5rem;
  text-align: center;
}

.warehouse-product-table .warehouse-label-checkbox-cell,
.warehouse-product-table .warehouse-label-checkbox-head-cell {
  min-width: 1.5rem;
  width: 1.5rem;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}

.warehouse-product-table .warehouse-label-checkbox-cell input[type=checkbox],
.warehouse-product-table .warehouse-label-checkbox-head-cell input[type=checkbox] {
  width: 12px;
  height: 12px;
  min-width: 12px;
  margin: 0;
  border-radius: 2px;
  transform: none;
}

.warehouse-product-table .warehouse-label-checkbox-cell input[type=checkbox]::before,
.warehouse-product-table .warehouse-label-checkbox-head-cell input[type=checkbox]::before {
  width: 8px;
  height: 8px;
}

.warehouse-product-stock-head,
.warehouse-product-stock-cell {
  width: 5.5rem;
  min-width: 5.5rem;
  text-align: right;
}

.warehouse-product-stock-cell .warehouse-stock-badge {
  min-width: 4ch;
  justify-content: flex-end;
  margin-left: auto;
}

.warehouse-product-price-head,
.warehouse-product-price-cell {
  min-width: 6.2rem;
  text-align: right;
  padding-right: 0.65rem;
}

.production-richtext-field textarea[data-production-description-input] {
  min-height: 10rem;
}

.production-section-title {
  margin: 1.25rem 0 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-bg-second);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.production-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
}

.production-checkbox-label input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
}

.production-richtext-shell {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  overflow: hidden;
  background-color: #fff;
}

.production-richtext-toolbar {
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-bg-100);
}

.production-richtext-shell .ql-toolbar.ql-snow,
.production-richtext-shell .ql-container.ql-snow {
  border: 0;
}

.production-richtext-editor {
  min-height: 16rem;
}

.production-richtext-editor .ql-editor {
  min-height: 16rem;
  font-size: 1rem;
  line-height: 1.6;
}

.production-richtext-editor .ql-editor.ql-blank::before {
  font-style: normal;
  color: #7f8b96;
}

.ql-font-sans {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.ql-font-serif {
  font-family: Georgia, "Times New Roman", serif;
}

.ql-font-monospace {
  font-family: "Courier New", Courier, monospace;
}

.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="sans"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="sans"]::before {
  content: "Sans";
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="serif"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="serif"]::before {
  content: "Serif";
  font-family: Georgia, "Times New Roman", serif;
}

.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="monospace"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="monospace"]::before {
  content: "Mono";
  font-family: "Courier New", Courier, monospace;
}

.product-thumbnail-cell {
  width: 132px;
  min-width: 132px;
}

.product-thumbnail-image {
  width: 120px;
  max-width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-m);
  border: 1px solid var(--color-border);
  display: block;
  background-color: #fff;
}

.product-thumbnail-image-large {
  width: 120px;
  height: 120px;
}

.product-thumbnail-placeholder {
  width: 120px;
  height: 80px;
  border-radius: var(--radius-m);
  border: 1px dashed var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  font-size: 0.8rem;
  text-align: center;
  color: var(--color-brand-hover);
  background-color: var(--color-bg-100);
}

.production-image-gallery {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.production-image-gallery-link {
  display: inline-flex;
  text-decoration: none;
}

.production-image-gallery-image {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-m);
  border: 1px solid var(--color-border);
  background-color: #fff;
}

.production-existing-images-field {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.production-existing-images-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.production-existing-image-card {
  width: 200px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  background-color: #fff;
  cursor: pointer;
}

.production-existing-image-badges {
  display: flex;
  gap: 0.35rem;
}

.production-image-meta-form {
  display: grid;
  gap: 0.45rem;
}

.production-image-meta-form input[type="text"],
.production-image-meta-form input[type="number"] {
  width: 100%;
}

.production-inline-checkbox {
  min-height: 2rem;
}

.production-inline-delete-form {
  display: flex;
  justify-content: flex-end;
}

.production-inline-entity-form {
  width: 100%;
  align-items: end;
}

.production-ai-translate-actions {
  min-height: 2.75rem;
}

.production-ai-translate-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.6rem;
  padding: 0 0.85rem;
  border-radius: 999px;
  background-color: rgba(142, 178, 63, 0.14);
  color: var(--color-brand-hover);
  font-size: var(--fs-sm);
  font-weight: var(--font-weight-semibold);
}

.production-ai-translate-loading[hidden] {
  display: none;
}

.production-ai-translate-spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(16, 61, 53, 0.18);
  border-top-color: var(--color-bg-second);
  border-radius: 50%;
  animation: production-ai-translate-spin 0.8s linear infinite;
}

@keyframes production-ai-translate-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.production-allegro-category-suggestions {
  margin-top: 0.35rem;
  max-height: 16rem;
  overflow-y: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  background-color: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.production-allegro-category-suggestion {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(16, 61, 53, 0.08);
  border-radius: 0;
  background-color: #fff;
  text-align: left;
  height: auto;
  min-height: 2.4rem;
  padding: 0.5rem 0.65rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.production-allegro-category-suggestion:last-child {
  border-bottom: 0;
}

.production-allegro-category-suggestion strong {
  color: var(--color-text);
  font-size: var(--fs-sm);
  line-height: 1.35;
}

.production-allegro-category-suggestion span {
  color: var(--color-text-light);
  font-size: 0.75rem;
}

.production-allegro-category-suggestion:hover,
.production-allegro-category-suggestion:focus-visible,
.production-allegro-category-suggestion.is-active {
  background-color: rgba(142, 178, 63, 0.14);
}

.production-feature-inline-form {
  display: contents;
}

.production-view-tabs-section .form-block {
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.production-view-tabs {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.production-view-tab {
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--color-brand-hover);
  font-weight: 700;
  text-decoration: none;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
}

.production-view-tab:hover,
.production-view-tab:focus-visible {
  color: var(--color-bg-second);
}

.production-view-tab.is-active {
  color: var(--color-bg-second);
  border-bottom-color: var(--color-bg-second);
}

.production-view-tabs-separator {
  color: var(--color-border);
  font-weight: 700;
}

.production-existing-image-card input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
}

.production-existing-image-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-brand-hover);
}

.production-existing-image-preview {
  width: 200px;
  max-width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: var(--radius-m);
  border: 1px solid var(--color-border);
  background-color: #fff;
}

.disabled-action {
  opacity: 0.45;
  pointer-events: none;
}

.note-history-table td {
  text-align: left;
}

.note-history-table td:first-child,
.note-history-table td:last-child,
.note-history-table th:first-child,
.note-history-table th:last-child {
  text-align: center;
}

.negative-note {
  color: var(--color-error);
  font-weight: var(--font-weight-semibold);
}

.course-history-table td,
.course-history-table th {
  text-align: left;
}

.expired-course-row td {
  color: var(--color-error);
  font-weight: var(--font-weight-semibold);
}

.execution-main-row {
  grid-template-columns: minmax(16rem, 1.6fr) minmax(12rem, 16rem);
}

.execution-wide-field {
  min-width: 0;
}

.execution-groups {
  gap: 1rem;
}

.execution-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  background-color: var(--color-bg-100);
  padding: 1rem;
  display: grid;
  gap: 1rem;
}

.active-execution-card {
  border-left: 4px solid var(--color-notification);
}

.inactive-execution-card {
  border-left: 4px solid var(--color-sucess);
}

.execution-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
}

.execution-note {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-m);
  background-color: var(--color-bg);
}

.empty-execution-state {
  padding: 1rem;
  border-radius: var(--radius-m);
  background-color: var(--color-bg-100);
}

.execution-history-table {
  margin: 0;
}

@media (max-width: 768px) {
  .execution-main-row,
  .execution-summary-grid {
    grid-template-columns: 1fr;
  }
}

:root {
  --color-bg: #eff3ed;
  --color-bg-100: #f9fbf7;
  --color-bg-200: #dbe4d4;
  --color-bg-300: #c2d0bf;
  --color-bg-second: #103d35;
  --color-text: #103d35;
  --color-text-second: #f9fbf7;
  --color-brand: #8eb23f;
  --color-brand-hover: #6b8f2e;
  --color-brand-disable: #dce8bf;
  --color-sucess: #5d8f34;
  --color-sucess-hover: #446826;
  --color-sucess-disable: #d7e7c8;
  --color-error: #E74C3C;
  --color-error-hover: #B33022;
  --color-error-disable: #FDE5E3;
  --color-notification: #b7a94a;
  --color-notification-hover: #998a31;
  --color-notification-disable: #f0ebcc;
  --color-info: #486c65;
  --color-info-hover: #274740;
  --color-info-disable: #dce8e3;
  --color-input-bg: var(--color-bg-100);
  --color-border:var(--color-bg-200);
}

.darck-mode {
  --color-bg: #0d1714;
  --color-bg-100: #22332e;
  --color-bg-200: #1b2a25;
  --color-bg-300: #16211d;
  --color-bg-second: #0b2d27;
  --color-text: #eef5ea;
  --color-text-second: #eef5ea;
  --color-brand: #9dc953;
  --color-brand-hover: #b4d974;
  --color-brand-disable: #355235;
  --color-sucess: #79b64c;
  --color-sucess-hover: #9aca74;
  --color-sucess-disable: #20452a;
  --color-error: #FF6B5A;
  --color-error-hover: #FFAAA0;
  --color-error-disable: #A02214;
  --color-notification: #c3b35a;
  --color-notification-hover: #d8ca82;
  --color-notification-disable: #605824;
  --color-info: #7ea79e;
  --color-info-hover: #a6c7c0;
  --color-info-disable: #21433c;
  --color-input-bg: var(--color-bg-100);
  --color-border:var(--color-bg-200);
}

:root {
  /* FONT FAMILY */
  --font-family-sans: "Noto Sans", sans-serif;
  /* FONT WEIGHTS */
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  /* LINE HEIGHTS */
  --line-height-tight: 1.1;
  --line-height-normal: 1.4;
  --line-height-relaxed: 1.6;
  /* FONT SCALE (desktop) */
  --fs-xxl: 3rem; /* 48px */
  --fs-xl: 2.25rem; /* 36px */
  --fs-lg: 1.75rem; /* 28px */
  --fs-md: 1.25rem; /* 20px */
  --fs-base: 1rem; /* 16px */
  --fs-sm: 0.875rem; /* 14px */
  --fs-xs: 0.75rem; /* 12px */
  /* LETTER SPACING */
  --ls-tight: -0.01em;
  --ls-normal: 0;
  --ls-wide: 0.02em;
}

/* MOBILE SCALE (delikatnie mniejsza) */
@media (max-width: 768px) {
  :root {
    --fs-xxl: 2.5rem;
    --fs-xl: 2rem;
    --fs-lg: 1.5rem;
    --fs-md: 1.125rem;
  }
}
.title {
  color: var(--color-brand);
  font-size: var(--fs-xl);
  font-weight: var(--font-weight-medium);
  letter-spacing: 2px;
}

:root {
  --navMenu-width: 140px;
}

.layout {
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: var(--navMenu-width) 1fr;
  grid-template-areas: "aside header" "aside main" "aside footer";
}
.layout header {
  grid-area: header;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 0.5rem;
}
@media (width <= 48em) {
  .layout header {
    justify-content: space-between;
  }
}
.layout aside {
  grid-area: aside;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--color-bg-second);
  padding: 1.15rem 0;
}
.layout aside .logo {
  width: 120px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.layout aside .logo img {
  display: block;
  max-width: 100%;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.layout main {
  padding: 2rem;
}
.layout main .panels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  align-items: stretch;
}
.layout main .panels-grid > div {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.layout main .panels-grid-links > div {
  display: contents;
}
.layout footer {
  grid-area: footer;
  padding: 0.5rem;
  text-align: right;
  font-size: var(--fs-xs);
}
@media (width <= 48em) {
  .layout main .panels-grid-links > div {
    display: flex;
  }

  .layout footer {
    text-align: center;
  }
}
@media (width <= 48em) {
  .layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    grid-template-areas: "header" "main" "footer";
  }
}

.panel-s {
  background-color: var(--color-bg-100);
  border: var(--color-border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow);
  height: 320px;
}

.panel-m {
  background-color: var(--color-bg-100);
  border: var(--color-border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow);
  height: 320px;
}

.panel-header {
  padding: 0.3rem 1rem;
  background-color: var(--color-bg-second);
  color: var(--color-text-second);
  border-top-left-radius: var(--radius-m);
  border-top-right-radius: var(--radius-m);
}
.panel-header h3 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--color-text-second);
  font-weight: var(--font-weight-semibold);
}

.content-wraper {
  width: 100%;
  min-height: 828px;
  height: auto;
  background-color: var(--color-bg-100);
  border: 1px solid var(--color-bg-300);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
}

.login-image {
  height: 100vh;
  background-image: url("/images/ap_service_image1.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: right;
}
.login-image main {
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
}
.login-image footer {
  text-align: center;
  padding: 1rem;
  font-size: var(--fs-xs);
}

.login-wrapper {
  max-width: 580px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.login-wrapper .login-logo {
  width: 326px;
  margin-bottom: 60px;
}
@media (width <= 48em) {
  .login-wrapper .login-logo {
    width: 226px;
  }
}
.login-wrapper form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: start;
  padding: 2rem;
}
@media (width <= 48em) {
  .login-wrapper form {
    padding: 1rem;
  }
}
.login-wrapper form input {
  height: 58px;
  margin: 1rem 0;
  min-width: 480px;
}
@media (width <= 48em) {
  .login-wrapper form input {
    min-width: 100%;
  }
}
.login-wrapper form input {
  border: 1px solid var(--color-brand);
  background-color: transparent;
}
.login-wrapper button {
  margin-top: 30px;
  max-width: 280px;
  padding: 15px 93px;
  cursor: pointer;
}

.auth-panel {
  width: min(100%, 560px);
  padding: 0 2rem;
}

.auth-title {
  margin: 0 0 0.75rem;
}

.auth-description {
  margin: 0 0 1rem;
  color: var(--color-text);
}

.auth-alert {
  width: calc(100% - 4rem);
  margin: 0 2rem 1rem;
}

.auth-links-row {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.auth-link {
  color: var(--color-brand-hover);
  font-weight: 600;
  text-decoration: none;
}

.auth-link:hover {
  text-decoration: underline;
}

.account-summary-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 88px;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-m);
  background-color: var(--color-bg-100);
}

.account-summary-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-brand-hover);
}

.account-placeholder {
  margin: 0;
}

.schedule-filter-form {
  display: grid;
  gap: 0.85rem;
}

.schedule-request-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.schedule-request-note {
  margin: 0.25rem 0 0;
  color: var(--color-brand-hover);
}

.my-schedule-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.my-schedule-table {
  margin: 1rem 0 0;
}

.my-schedule-table th,
.my-schedule-table td {
  text-align: left;
  vertical-align: top;
}

.my-schedule-table th:nth-child(1),
.my-schedule-table td:nth-child(1),
.my-schedule-table th:nth-child(2),
.my-schedule-table td:nth-child(2),
.my-schedule-table th:last-child,
.my-schedule-table td:last-child {
  text-align: center;
}

.schedule-cell-stack,
.schedule-history-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.schedule-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 1.9rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background-color: var(--color-bg-200);
  color: var(--color-text);
  font-size: var(--fs-sm);
  line-height: 1.2;
}

.schedule-chip-shift {
  border-left: 4px solid var(--color-brand);
}

.schedule-chip-task {
  border-left: 4px solid #2b7a78;
  background-color: #e5f5f3;
  color: #14504f;
}

.schedule-chip-request {
  border-left: 4px solid var(--color-info);
}

.schedule-chip-request-pending {
  background-color: #fff2d6;
  color: #8a5a00;
  border-left-color: #f0aa00;
}

.schedule-chip-request-pending-sickness {
  background-color: #fde4e4;
  color: #a61f1f;
  border-left-color: #d61f1f;
}

.schedule-chip-request-approved {
  background-color: #e3f6ea;
  color: #0f6a35;
  border-left-color: #0f8d46;
}

.schedule-chip-request-rejected {
  background-color: #f0f1f3;
  color: #5d6670;
  border-left-color: #7f8790;
}

.schedule-history-item {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.schedule-history-time {
  font-weight: var(--font-weight-semibold);
}

.schedule-muted {
  color: var(--color-info);
}

.schedule-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-m);
  background-color: var(--color-bg-second);
  color: var(--color-text-second);
}

.schedule-action-link:hover {
  background-color: var(--color-brand-hover);
  color: var(--color-text-second);
}

.schedule-action-disabled {
  color: var(--color-info);
}

.schema-help-box {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-m);
  background-color: var(--color-bg-200);
}

.schema-help-box p {
  margin: 0;
}

.audit-presets {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.audit-data-details {
  min-width: 18rem;
}

.audit-data-details summary {
  cursor: pointer;
  color: var(--color-brand);
  font-weight: var(--font-weight-semibold);
}

.audit-data-blocks {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.audit-data-block {
  padding: 0.75rem;
  border-radius: var(--radius-m);
  background-color: var(--color-bg-200);
}

.audit-data-block strong {
  display: block;
  margin-bottom: 0.5rem;
}

.audit-data-block pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.8rem;
  line-height: 1.45;
}

.request-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7.5rem;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: var(--font-weight-semibold);
}

.request-status-pending {
  background-color: #fff2d6;
  color: #8a5a00;
}

.request-status-approved {
  background-color: #e3f6ea;
  color: #0f6a35;
}

.request-status-rejected {
  background-color: #f0f1f3;
  color: #5d6670;
}

.approval-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.approval-actions form {
  margin: 0;
}

.btn-danger {
  background-color: var(--color-error);
}

.btn-danger:hover {
  background-color: var(--color-error-hover);
}

.title-with-avatar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.employee-avatar-preview {
  width: 100px;
  height: 100px;
  flex: 0 0 100px;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--color-bg-100);
  border: 1px solid var(--color-border);
}

.employee-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.account-avatar-row {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 1rem;
}

.employee-form small {
  display: block;
  margin-top: 0.35rem;
  color: var(--color-brand-hover);
}

.invoice-import-contractor-card {
  padding: 18px;
  margin-top: 18px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-m);
  background: #f8fbf7;
}

.invoice-import-attention-summary {
  margin-top: 18px;
}

.invoice-import-collapsible {
  margin-top: 18px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-m);
  background: #fff;
}

.invoice-import-collapsible summary {
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 700;
}

.invoice-import-collapsible .asset-history-table-wrap {
  padding: 0 18px 18px;
}

.invoice-import-contractor-actions {
  margin-top: 12px;
}

.dashboard-panel-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.dashboard-panel-link .panel-s,
.dashboard-panel-link .panel-m {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.dashboard-panel-link:hover .panel-s,
.dashboard-panel-link:hover .panel-m {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.align-start {
  justify-content: flex-start;
}

@media (width <= 48em) {
  .title-with-avatar {
    align-items: flex-start;
    flex-direction: column;
  }

  .auth-panel {
    padding: 0 1rem;
  }

  .auth-alert {
    width: calc(100% - 2rem);
    margin: 0 1rem 1rem;
  }

  .approval-actions {
    flex-direction: column;
  }
}

:root {
  --icon-user: url('/images/icons/icon-user.svg');
  --icon-logout: url('/images/icons/icon-logout.svg');
  --icon-dashboard: url('/images/icons/icon-dashboard.svg');
  --icon-hr: url('/images/icons/icon-hr.svg');
  --icon-company: url('/images/icons/icon-dashboard.svg');
  --icon-stock: url('/images/icons/icon-stock.svg');
  --icon-orders: url('/images/icons/icon-orders.svg');
  --icon-ok: url('/images/icons/icon-ok.svg');
  --icon-ok-fill: url('/images/icons/icon-ok-fill.svg');
  --icon-no: url('/images/icons/icon-no.svg');
  --icon-no-fill: url('/images/icons/icon-no-fill.svg');
  --icon-notification: url('/images/icons/icon-notification.svg');
  --icon-caution: url('/images/icons/icon-caution.svg');
  --icon-lock: url('/images/icons/icon-lock.svg');
  --icon-filters: url('/images/icons/icon-filters.svg');
  --icon-files: url('/images/icons/icon-files.svg');
  --icon-upload: url('/images/icons/icon-upload.svg');
  --icon-edit: url('/images/icons/icon-edit.svg');
  --icon-gears: url('/images/icons/icon-gears.svg');
  --icon-notebook: url('/images/icons/icon-notebook.svg');
  --icon-trash: url('/images/icons/icon-trash.svg');
  --icon-stats: url('/images/icons/icon-stats.svg');
  --icon-calendar: url('/images/icons/icon-calendar.svg');
  --icon-gear: url('/images/icons/icon-gear.svg');
  --icon-zoom: url('/images/icons/icon-zoom.svg');
  --icon-search: url('/images/icons/icon-search.svg');
  --icon-details: url('/images/icons/icon-details.svg');
  --icon-clock: url('/images/icons/icon-clock.svg');
  --icon-car: url('/images/icons/icon-car.svg');
  --icon-map: url('/images/icons/icon-map.svg');
}

.icon, .icon-s {
  width: 68px;
  height: 68px;
  display: inline-block;
  background-color: currentColor;
  -webkit-mask-size: contain;
          mask-size: contain;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  color: var(--color-text-second);
  transition: all ease-in-out 0.2s;
}

.icon-s {
  height: 34px;
  width: 34px;
  background-color: var(--color-brand);
}

.icon-user {
  -webkit-mask-image: var(--icon-user);
          mask-image: var(--icon-user);
}

.icon-logout {
  -webkit-mask-image: var(--icon-logout);
          mask-image: var(--icon-logout);
}

.icon-dashboard {
  -webkit-mask-image: var(--icon-dashboard);
          mask-image: var(--icon-dashboard);
}

.icon-hr {
  -webkit-mask-image: var(--icon-hr);
          mask-image: var(--icon-hr);
}

.icon-company {
  -webkit-mask-image: var(--icon-company);
          mask-image: var(--icon-company);
}

.icon-stock {
  -webkit-mask-image: var(--icon-stock);
          mask-image: var(--icon-stock);
}

.icon-orders {
  -webkit-mask-image: var(--icon-orders);
          mask-image: var(--icon-orders);
}

.icon-ok {
  -webkit-mask-image: var(--icon-ok);
          mask-image: var(--icon-ok);
}

.icon-ok-fill {
  -webkit-mask-image: var(--icon-ok-fill);
          mask-image: var(--icon-ok-fill);
}

.icon-no {
  -webkit-mask-image: var(--icon-no);
          mask-image: var(--icon-no);
}

.icon-no-fill {
  -webkit-mask-image: var(--icon-no-fill);
          mask-image: var(--icon-no-fill);
}

.icon-zoom {
  -webkit-mask-image: var(--icon-zoom);
          mask-image: var(--icon-zoom);
}

.icon-details {
  -webkit-mask-image: var(--icon-details);
          mask-image: var(--icon-details);
}

.icon-map {
  -webkit-mask-image: var(--icon-map);
          mask-image: var(--icon-map);
}

.icon-calendar {
  -webkit-mask-image: var(--icon-calendar);
          mask-image: var(--icon-calendar);
}

.icon-gear {
  -webkit-mask-image: var(--icon-gear);
          mask-image: var(--icon-gear);
}

.icon-gears {
  -webkit-mask-image: var(--icon-gears);
          mask-image: var(--icon-gears);
}

.icon-notebook {
  -webkit-mask-image: var(--icon-notebook);
          mask-image: var(--icon-notebook);
}

.icon-trash {
  -webkit-mask-image: var(--icon-trash);
          mask-image: var(--icon-trash);
}

.icon-stats {
  -webkit-mask-image: var(--icon-stats);
          mask-image: var(--icon-stats);
}

.icon-files {
  -webkit-mask-image: var(--icon-files);
          mask-image: var(--icon-files);
}

.icon-caution {
  -webkit-mask-image: var(--icon-caution);
          mask-image: var(--icon-caution);
}

.icon-lock {
  -webkit-mask-image: var(--icon-lock);
          mask-image: var(--icon-lock);
}

.icon-clock {
  -webkit-mask-image: var(--icon-clock);
          mask-image: var(--icon-clock);
}

.icon-car {
  -webkit-mask-image: var(--icon-car);
          mask-image: var(--icon-car);
}

.icon-search {
  -webkit-mask-image: var(--icon-search);
          mask-image: var(--icon-search);
}

.icon-add {
  -webkit-mask-image: var(--icon-no-fill);
          mask-image: var(--icon-no-fill);
  rotate: 45deg;
}

.btn {
  padding: 5px 15px;
  border-radius: var(--radius-m);
  border: transparent;
  background-color: var(--color-brand);
  transition: all ease-in-out 0.5s;
  color: var(--color-text-second);
}
.btn:hover {
  background-color: var(--color-brand-hover);
}

.btn-light {
  background-color: var(--color-bg-100);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.btn-light:hover {
  background-color: var(--color-bg-200);
}

.btn-copy-inline {
  margin-top: 0.65rem;
  width: fit-content;
}

.ics-link-value {
  display: block;
  margin-top: 0.45rem;
  word-break: break-all;
}

.btn-circle {
  border-radius: 50%;
  width: 30px;
  height: 30px;
  border: transparent;
  background-color: var(--color-brand);
  transition: all ease-in-out 0.5s;
  color: var(--color-text-second);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-md);
}

.error {
  background-color: var(--color-error);
}

.sucess {
  background-color: var(--color-sucess);
}

.avatar {
  margin: 0.5rem;
}
.avatar img {
  border-radius: 50%;
  width: 100%;
  height: 100%;
}

header .user-short {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
header .user-short .avatar-s {
  height: 28px;
  width: 28px;
}

@media (width <= 48em) {
  header {
    background-color: var(--color-bg-second);
    height: 40px;
  }
  header .icon-logout {
    background-color: var(--color-bg-100);
  }
  span {
    display: none;
  }
}
nav ul {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
@media (width <= 48em) {
  nav ul {
    flex-direction: row;
    justify-content: space-between;
    gap: 3.5rem;
  }
}
nav ul {
  margin: 1rem 0;
}
nav ul li {
  width: var(--navMenu-width);
  height: var(--navMenu-width);
  transition: background-color ease-in 500ms;
}
@media (width <= 48em) {
  nav ul li {
    width: 60px;
    height: 40px;
  }
}
nav ul li a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  color: var(--color-text-second);
  transition: color ease-in 300ms;
}
@media (width <= 48em) {
  nav ul li a .icon {
    height: 40px;
    width: 40px;
  }
}
nav ul li:hover {
  background-color: var(--color-brand);
}
nav ul li .active {
  background-color: var(--color-bg);
  color: var(--color-brand);
  font-weight: var(--font-weight-bold);
}
nav ul li .active .icon {
  color: var(--color-brand);
}

.pagination {
  display: flex;
  justify-content: center;
}
.pagination ul {
  display: flex;
  flex-direction: row;
  gap: 10px;
}
.pagination ul li {
  color: var(--color-info);
}
.pagination ul .pagi-active {
  color: var(--color-brand);
}

.nav-add {
  display: none;
}
.nav-add a {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  color: inherit;
}
.nav-add li {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  transition: all ease-in-out 0.5s;
}
.nav-add li:hover {
  color: var(--color-brand-hover);
  cursor: pointer;
}
.nav-add li:hover .icon-add {
  rotate: 90deg;
  background-color: var(--color-brand-hover);
}

.dashboard-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

#dashboard-invoices-panel {
  z-index: 2;
}

.dashboard-panel-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0.85rem;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

.dashboard-panel-nav-form {
  margin: 0;
}

.dashboard-panel-action {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 2.2rem;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-m);
  background-color: var(--color-bg-200);
  color: var(--color-text);
  transition: background-color ease-in-out 0.2s, transform ease-in-out 0.2s;
  position: relative;
  z-index: 1;
}

.dashboard-panel-action-button {
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.dashboard-panel-action:hover {
  background-color: var(--color-brand-disable);
  transform: translateY(-1px);
}

.dashboard-panel-action .icon-s {
  flex: 0 0 auto;
}

.dashboard-panel-action-label {
  flex: 1 1 auto;
}

.dashboard-panel-action-unread .dashboard-panel-action-label {
  font-weight: var(--font-weight-semibold);
}

.dashboard-panel-action-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.45rem;
  height: 1.45rem;
  padding: 0 0.38rem;
  border-radius: 999px;
  background-color: var(--color-brand-hover);
  color: var(--color-text-second);
  font-size: var(--fs-xs);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
}

.crm-meeting-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.crm-meeting-column h4 {
  margin: 0 0 0.75rem;
}

.dashboard-panel-placeholder {
  padding: 0.85rem;
  color: var(--color-info);
  overflow-y: auto;
}

.dashboard-panel-static {
  cursor: default;
}

.dashboard-panel-static:hover {
  transform: none;
}

.dashboard-task-day-section {
  margin-bottom: 2rem;
}

.dashboard-task-day-panel {
  background-color: var(--color-bg-100);
  border: var(--color-border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.dashboard-task-day-body {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(0, 2fr);
  gap: 1.25rem;
  padding: 1rem;
}

.dashboard-task-calendar-column,
.dashboard-task-table-column {
  min-width: 0;
}

.dashboard-task-calendar-toolbar,
.dashboard-task-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.dashboard-task-table-header h4,
.dashboard-task-table-header p {
  margin: 0;
}

.dashboard-task-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.dashboard-task-table-header p {
  color: var(--color-info);
  margin-top: 0.2rem;
}

.dashboard-task-calendar-nav,
.dashboard-task-open-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 2rem;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-m);
  color: #fff;
  background: var(--color-bg-200);
}

.dashboard-task-calendar-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.45rem;
  scrollbar-width: thin;
  scrollbar-color: var(--color-brand) rgba(20, 80, 79, 0.12);
}

.dashboard-task-calendar-scroll::-webkit-scrollbar {
  height: 0.7rem;
}

.dashboard-task-calendar-scroll::-webkit-scrollbar-track {
  background: rgba(20, 80, 79, 0.12);
  border-radius: 999px;
}

.dashboard-task-calendar-scroll::-webkit-scrollbar-thumb {
  background: var(--color-brand);
  border-radius: 999px;
}

.dashboard-task-calendar-table {
  width: 49rem;
  min-width: 49rem;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0.35rem;
}

.dashboard-task-calendar-table th {
  text-align: center;
  font-size: var(--fs-xs);
  color: #ffffff;
  font-weight: var(--font-weight-semibold);
  background: #154b45;
  border-radius: var(--radius-s);
  padding: 0.55rem 0.3rem;
}

.dashboard-task-calendar-table th:nth-child(7) {
  background: #e7bcbc;
  color: #7f1d1d;
}

.dashboard-task-calendar-day {
  padding: 0;
}

.dashboard-task-calendar-day a {
  display: flex;
  min-height: 7rem;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0.45rem;
  border-radius: var(--radius-m);
  background: var(--color-bg-200);
  border: 1px solid transparent;
  color: var(--color-text);
  gap: 0.28rem;
}

.dashboard-task-calendar-day a:hover {
  border-color: var(--color-brand);
}

.dashboard-task-calendar-table td:nth-child(7) a {
  background: #f6dcdc;
}

.dashboard-task-calendar-day small {
  align-self: flex-end;
  padding: 0.16rem 0.42rem;
  border-radius: 999px;
  background: #205b84;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: var(--font-weight-semibold);
}

.dashboard-task-calendar-range,
.dashboard-task-calendar-more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  align-self: flex-start;
  margin-top: 0.2rem;
  padding: 0.18rem 0.48rem;
  border-radius: 999px;
  background: #154b45;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: var(--font-weight-semibold);
  font-style: normal;
  line-height: 1.2;
  white-space: pre-line;
  text-align: center;
}

.dashboard-task-calendar-range span {
  display: block;
  color: #ffffff !important;
}

.dashboard-task-calendar-range.is-meeting {
  padding-right: 0.35rem;
}

.dashboard-task-calendar-range-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  color: #ffffff !important;
  font-size: 0.78rem;
  line-height: 1;
}

.dashboard-task-calendar-day.is-outside-month a {
  opacity: 0.45;
}

.dashboard-task-calendar-day.is-selected a {
  border-color: var(--color-brand);
  background: rgba(23, 171, 228, 0.08);
}

.dashboard-task-calendar-day.is-today a {
  box-shadow: inset 0 0 0 1px rgba(232, 178, 58, 0.32);
}

.dashboard-task-calendar-day.has-tasks a {
  background: rgba(23, 171, 228, 0.06);
}

.dashboard-task-day-table td,
.dashboard-task-day-table th {
  vertical-align: top;
}

.dashboard-task-cell-note {
  margin-top: 0.3rem;
  color: var(--color-info);
  font-size: var(--fs-xs);
}

.dashboard-task-participants {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.dashboard-task-participant-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-bg-100);
  box-shadow: 0 0 0 1px var(--color-bg-300);
  background: var(--color-bg-100);
}

.dashboard-task-progress {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.dashboard-task-progress span {
  color: var(--color-info);
  font-size: var(--fs-xs);
}

.dashboard-task-detail-section {
  margin-bottom: 2rem;
}

.dashboard-task-detail-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.2rem;
  margin-bottom: 1rem;
  color: var(--color-info);
}

.dashboard-task-detail-summary strong {
  color: var(--color-text);
}

.dashboard-task-upload-form,
.dashboard-task-history-wrap,
.dashboard-task-files-block {
  margin-top: 1rem;
}

.my-account-google-actions-row {
  margin-top: 1rem;
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
}

.my-account-google-actions-row > .btn,
.my-account-google-action-form {
  flex: 1 1 0;
}

.my-account-google-action-form {
  margin: 0;
}

.my-account-google-actions-row > .btn,
.my-account-google-action-form .btn {
  width: 100%;
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.dashboard-task-checkbox-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
}

.dashboard-task-checkbox-row input[type="checkbox"] {
  width: auto;
}

.dashboard-task-hours-help {
  display: block;
  margin-top: 0.2rem;
  color: var(--color-text-muted);
}

.order-task-today-row td {
  background-color: rgba(232, 178, 58, 0.12);
}

.my-task-list {
  display: grid;
  gap: 1rem;
}

.my-task-card {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-m);
  padding: 1rem;
  background: var(--color-bg-200);
}

.my-task-card-today {
  border-color: rgba(232, 178, 58, 0.8);
  box-shadow: inset 0 0 0 1px rgba(232, 178, 58, 0.18);
}

.my-task-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.my-task-card-header h4 {
  margin: 0 0 0.2rem;
}

.my-task-card-header p,
.my-task-card-description,
.my-task-empty,
.my-task-note-list p {
  margin: 0;
}

.my-task-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: 0.75rem;
  color: var(--color-info);
}

.my-task-card-description {
  margin-top: 0.9rem;
}

.my-task-notes {
  margin-top: 1rem;
}

.my-task-note-list {
  display: grid;
  gap: 0.8rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.my-task-note-list li {
  padding: 0.8rem;
  border-radius: var(--radius-m);
  background: var(--color-bg-100);
}

.my-task-note-list strong,
.my-task-note-list span {
  display: block;
}

.my-task-note-list span {
  margin: 0.2rem 0 0.45rem;
  color: var(--color-info);
}

.my-task-note-form {
  margin-top: 1rem;
}

@media (width <= 48em) {
  .dashboard-task-day-body {
    grid-template-columns: 1fr;
  }

  .dashboard-task-calendar-toolbar,
  .dashboard-task-table-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-panel-action {
    min-height: 2rem;
    padding: 0.5rem 0.7rem;
  }

  .my-task-card-header {
    flex-direction: column;
  }
}

.form-page {
  height: auto;
  padding: 2rem;
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-m);
  margin-bottom: 1rem;
  border: 1px solid transparent;
}

.alert-error {
  background-color: var(--color-error-disable);
  border-color: var(--color-error);
  color: var(--color-error-hover);
}

.alert-success {
  background-color: var(--color-sucess-disable);
  border-color: var(--color-sucess);
  color: var(--color-sucess-hover);
}

.alert-info {
  background-color: #e4f2f5;
  border-color: #8cb8c2;
  color: #0c4a56;
}

.employee-form {
  display: grid;
  gap: 2rem;
}

.form-section {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  overflow: visible;
  background-color: var(--color-bg);
  box-shadow: var(--shadow);
  padding: 0 1.5rem 1.5rem;
}

.form-tab {
  display: flex;
  align-items: center;
  min-height: 3.25rem;
  width: calc(100% + 3rem);
  padding: 0.85rem 1.5rem;
  margin: 0 -1.5rem 0.75rem;
  border-radius: var(--radius-m) var(--radius-m) 0 0;
  background-color: var(--color-bg-second);
  border-bottom: 1px solid var(--color-border);
  box-shadow: none;
}

.form-tab h3 {
  margin: 0;
  padding-left: 0.5ch;
  color: var(--color-text-second);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  font-weight: var(--font-weight-semibold);
}

.invoice-party-tab {
  justify-content: flex-start;
}

.invoice-party-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.invoice-party-toggle span {
  color: var(--color-text-second);
  font-size: inherit;
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

.invoice-party-toggle input[type=checkbox] {
  width: 1rem;
  height: 1rem;
  margin: 0;
  border-radius: 0.2rem;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background-color: transparent;
  transform: none;
}

.invoice-party-toggle input[type=checkbox]::before {
  width: 0.7rem;
  height: 0.7rem;
  background-color: var(--color-text-second);
}

.invoice-party-panel:not(.is-expanded) .form-tab {
  margin-bottom: 0;
  border-radius: var(--radius-m);
}

.invoice-line-draft-name-cell {
  position: relative;
  width: 34%;
  min-width: 20rem;
}

.invoice-product-search-results {
  position: static;
  display: grid;
  gap: 0.2rem;
  max-height: 22rem;
  margin-top: 0.35rem;
  padding: 0.35rem;
  overflow-y: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  background-color: var(--color-bg-100);
  box-shadow: var(--shadow);
}

.invoice-product-search-option {
  display: grid;
  gap: 0.2rem;
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 0;
  border-radius: var(--radius-s);
  background-color: var(--color-bg-200);
  text-align: left;
  cursor: pointer;
}

.invoice-product-search-option:hover {
  background-color: var(--color-brand-disable);
}

.invoice-product-search-option.is-active {
  background-color: var(--color-brand-disable);
  outline: 1px solid var(--color-brand);
}

.invoice-product-search-option strong,
.invoice-product-search-option span {
  color: var(--color-text);
}

.invoice-product-search-option span {
  font-size: var(--fs-sm);
}

.invoice-product-search-option small {
  color: var(--color-text-light);
  font-size: 0.75rem;
}

.invoice-line-draft-unit-cell,
.invoice-line-draft-pkwiu-cell {
  width: 7rem;
}

.invoice-line-draft-unit-cell {
  width: 10.5rem;
}

.invoice-line-draft-vat-cell {
  width: 10.1rem;
}

.invoice-line-draft-unit-cell input,
.invoice-line-draft-pkwiu-cell input,
.invoice-line-draft-vat-cell select {
  min-width: 0 !important;
}

.invoice-line-draft-table th:first-child,
.invoice-line-draft-table td:first-child {
  width: 34%;
  min-width: 20rem;
}

.invoice-line-draft-action-cell {
  width: 1.95rem;
  min-width: 1.95rem;
}

.invoice-line-draft-add-button {
  min-width: 0;
  width: 1.95rem;
  height: 2.4rem;
  padding: 0;
  border-radius: 0.4rem;
  background-color: #0d6efd;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.invoice-line-draft-add-button:hover {
  background-color: #0b5ed7;
}

.form-block {
  display: grid;
  gap: 1.25rem;
  padding: 0.75rem 0.5rem 0.5rem;
}

.form-row {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.form-row-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.form-row-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-row-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-row-1 {
  grid-template-columns: minmax(0, 1fr);
}

.narrow-row {
  max-width: 22rem;
}

.form-block label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.form-block label span {
  display: inline-block;
  font-size: var(--fs-sm);
  font-weight: var(--font-weight-medium);
  padding-left: 0.2rem;
}

.field-label-with-tooltip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.field-help-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  background: var(--color-brand);
  color: var(--color-text-second);
  font-size: 0.75rem;
  font-weight: var(--font-weight-bold);
  line-height: 1;
  cursor: help;
}

.field-help-tooltip-bubble {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.55rem);
  transform: translateX(-50%);
  width: min(20rem, 70vw);
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-m);
  background: var(--color-text);
  color: var(--color-text-second);
  box-shadow: 0 14px 28px rgba(11, 26, 20, 0.18);
  font-size: var(--fs-sm);
  font-weight: var(--font-weight-regular);
  line-height: 1.45;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 30;
}

.field-help-tooltip-bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 0.45rem;
  border-style: solid;
  border-color: var(--color-text) transparent transparent transparent;
}

.field-help-tooltip:hover .field-help-tooltip-bubble,
.field-help-tooltip:focus .field-help-tooltip-bubble,
.field-help-tooltip:focus-visible .field-help-tooltip-bubble {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-0.1rem);
}

.field-help-tooltip:focus-visible {
  outline: 2px solid var(--color-brand-hover);
  outline-offset: 2px;
}

.form-block input,
.form-block select,
.form-block textarea {
  width: 100%;
  min-height: 3rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  padding: 0.75rem 0.9rem;
}

.form-block textarea {
  min-height: 7.5rem;
  resize: vertical;
  line-height: var(--line-height-relaxed);
  padding-top: 0.85rem;
}

.field-checkbox {
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem !important;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  background-color: var(--color-input-bg);
}

.field-checkbox input {
  width: auto;
  margin: 0;
  min-height: auto;
  padding: 0;
}

.field-full-width {
  width: 100%;
}

.field-full-width textarea {
  min-height: 10rem;
}

.company-logo-field {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.company-logo-preview {
  width: 220px;
  max-width: 100%;
  max-height: 140px;
  object-fit: contain;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  background-color: #fff;
  padding: 0.75rem;
}

.ce-process-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  background-color: #f4f8fb;
  color: #183845;
  box-shadow: var(--shadow);
}

.ce-checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.ce-stage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.ce-stage-card,
.ce-requirement-card {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  background-color: #fff;
}

.ce-stage-card h4,
.ce-requirement-card h4 {
  margin: 0;
  color: #173847;
}

.ce-stage-card p {
  margin: 0;
  color: #5f6d78;
  font-size: 0.92rem;
}

.ce-stage-meta {
  color: #687784;
  font-size: 0.84rem;
}

.ce-stage-badge {
  display: inline-flex;
  width: fit-content;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background-color: #eef6f8;
  color: #1b5d6a;
  font-size: 0.82rem;
}

.ce-requirements-list {
  display: grid;
  gap: 1rem;
}

.ce-rohs-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  color: #294956;
}

.ce-rohs-table td input[type="file"] {
  max-width: 220px;
}

.ce-rohs-table td input[type="text"],
.ce-rohs-table td input[type="date"],
.ce-rohs-table td select {
  min-width: 160px;
}

.ce-document-link {
  color: #0b5f8d;
  text-decoration: underline;
}

.contractor-page {
  display: grid;
  gap: 1rem;
}

.order-form-block {
  gap: 1.5rem;
}

.order-stage-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.order-stage-pill {
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  background-color: var(--color-bg-100);
  color: var(--color-text-second);
  font-weight: 600;
}

.order-stage-pill-active {
  border-color: var(--color-primary);
  background-color: rgba(11, 95, 141, 0.08);
  color: var(--color-primary);
}

.order-stage-pill-done {
  background-color: rgba(11, 107, 45, 0.08);
  border-color: rgba(11, 107, 45, 0.22);
  color: #0b6b2d;
}

.order-summary-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.order-summary-card {
  display: grid;
  gap: 0.4rem;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  background-color: var(--color-bg-100);
}

.order-summary-label {
  color: var(--color-text-second);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.order-step-panel {
  display: grid;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  overflow: hidden;
}

.order-step-panel-disabled {
  opacity: 0.82;
}

.order-dynamic-grid {
  display: grid;
  gap: 1rem;
}

.order-dynamic-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  background-color: var(--color-bg-100);
}

.order-dynamic-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.order-row-remove {
  flex: 0 0 auto;
}

.order-form-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
  display: grid;
  gap: 1rem;
}

.order-dictionaries-grid {
  display: grid;
  gap: 1rem;
}

.order-dictionary-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  background-color: var(--color-bg-100);
}

.order-dictionary-card-header h4 {
  margin: 0;
}

.order-dictionary-form {
  width: 100%;
}

.order-dictionary-cell {
  display: flex;
  align-items: center;
}

.order-dictionary-cell input[type="text"] {
  width: 100%;
}

.order-dictionary-cell-checkbox {
  justify-content: center;
}

.order-dictionary-actions {
  display: flex;
  align-items: flex-end;
}

.order-team-builder {
  display: grid;
  gap: 1rem;
}

.order-team-picker {
  display: grid;
  grid-template-columns: minmax(18rem, 50%) auto;
  align-items: end;
  gap: 0.75rem;
}

.order-team-picker > label {
  margin: 0;
}

.order-team-picker-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.order-team-picker > .btn {
  align-self: end;
}

.order-task-team-picker {
  grid-template-columns: minmax(14rem, 30%) auto minmax(18rem, 1fr);
  align-items: start;
}

.order-task-team-select-field {
  min-width: 0;
}

.order-task-team-list-box {
  height: 100%;
}

.order-team-list-box {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  background-color: var(--color-bg-100);
}

.order-team-list-label {
  font-weight: 600;
}

.order-team-empty {
  margin: 0;
  color: var(--color-text-500);
}

.order-team-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.order-team-member {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  background-color: var(--color-white);
}

.order-team-member span {
  min-width: 0;
}

.order-team-remove {
  flex: 0 0 auto;
}

.order-task-member {
  gap: 0.75rem;
}

.order-task-remove-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border: 0;
  border-radius: 999px;
  background-color: #b16666;
  color: var(--color-white);
  cursor: pointer;
  flex: 0 0 auto;
}

.order-task-remove-button:hover {
  background-color: #9f4f4f;
}

.order-task-remove-button .icon-s {
  width: 0.95rem;
  height: 0.95rem;
}

.order-delegation-form {
  display: grid;
  gap: 1rem;
}

.contractor-contacts-grid {
  display: grid;
  gap: 1rem;
}

.contractor-contact-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  background-color: var(--color-bg-100);
}

.contractor-contact-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.contractor-contact-remove {
  flex: 0 0 auto;
}

.contractor-contact-actions {
  gap: 0.75rem;
  flex-wrap: wrap;
}

.contractor-search-form {
  gap: 1rem;
}

.contractor-search-feedback {
  min-height: 1.5rem;
  font-weight: 600;
}

.contractor-search-feedback-success {
  color: #0b6b2d;
}

.contractor-search-feedback-error {
  color: #b33022;
}

.contractor-search-feedback-info {
  color: #073f4a;
}

.contractor-search-results {
  display: grid;
}

.contractor-edit-panel-hidden {
  display: none;
}

.contractor-results-empty {
  padding: 1rem;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-m);
  color: var(--color-info);
}

.contractor-results-table {
  margin-top: 0;
}

.contractor-results-table th,
.contractor-results-table td {
  text-align: left;
  vertical-align: top;
}

.contractor-results-table td:last-child,
.contractor-results-table th:last-child {
  width: 10rem;
}

.contractor-edit-trigger {
  min-width: 6.5rem;
}

.contractor-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.order-list-icon-action {
  flex: 0 0 auto;
}

.order-list-icon-action-delegation {
  background-color: #0f5c55;
}

.asset-history-table tbody tr.order-constructor-assigned td {
  background-color: #dceee3;
  color: #174a2f;
}

.asset-history-table tbody tr.order-constructor-missing td {
  background-color: #f6dede;
  color: #8a1f1f;
}

.asset-history-table tbody tr.employee-hierarchy-root td {
  font-weight: var(--font-weight-bold);
}

.asset-history-table tbody tr.employee-hierarchy-group-leader td {
  border-top: 2px solid rgba(15, 77, 71, 0.25);
}

.asset-history-table tbody tr.employee-hierarchy-group-1 td {
  background-color: #e4f1ea;
  color: #1c4931;
}

.asset-history-table tbody tr.employee-hierarchy-group-2 td {
  background-color: #e4eef8;
  color: #234669;
}

.asset-history-table tbody tr.employee-hierarchy-group-3 td {
  background-color: #f3eadf;
  color: #6d4921;
}

.asset-history-table tbody tr.employee-hierarchy-group-4 td {
  background-color: #efe5f5;
  color: #5d3d78;
}

.asset-history-table tbody tr.employee-hierarchy-group-5 td {
  background-color: #f7eadf;
  color: #7a4a1f;
}

.asset-history-table tbody tr.employee-hierarchy-group-6 td {
  background-color: #e2f0ef;
  color: #1d5552;
}

.contractor-details-row-hidden {
  display: none;
}

.contractor-details-row td {
  padding-top: 0;
  background-color: var(--color-bg-100);
}

.contractor-inline-details-body {
  padding: 1rem;
}

.contractor-inline-details-wrap {
  overflow-x: auto;
}

.contractor-inline-table {
  margin-top: 0;
}

.contractor-inline-table th:last-child,
.contractor-inline-table td:last-child {
  width: 10rem;
}

.contractor-inline-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.contractor-primary-badge {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background-color: #dff3e4;
  color: #146c2e;
  font-size: var(--fs-sm);
  font-weight: var(--font-weight-semibold);
}

.contractor-primary-badge-inline {
  margin-left: 0.5rem;
  min-height: auto;
  padding: 0.15rem 0.55rem;
}

.contractor-inline-action {
  min-width: 4.75rem;
}

.contractor-inline-arrow {
  min-width: 2.5rem;
  justify-content: center;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.contractor-inline-arrow-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  background-color: var(--color-bg-100);
  color: var(--color-text-disable);
}

.vehicle-page {
  display: grid;
  gap: 1rem;
}

.vehicle-filter-form {
  gap: 1rem;
}

.vehicle-filter-actions {
  align-self: end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.vehicle-table {
  min-width: 1080px;
}

.vehicle-empty-row {
  text-align: center;
  color: var(--color-info);
}

.vehicle-meta {
  color: var(--color-text-second);
  font-size: var(--fs-sm);
}

.vehicle-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6.5rem;
  min-height: 2rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: var(--font-weight-semibold);
}

.vehicle-status-active {
  background-color: #dff3e4;
  color: #146c2e;
}

.vehicle-status-inactive {
  background-color: #f3e3de;
  color: #8d3a22;
}

.vehicle-legal-owner-panel {
  margin-top: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  background-color: #fafbfd;
}

.vehicle-legal-owner-panel h4 {
  margin: 0 0 0.75rem;
  font-size: var(--fs-md);
}

.vehicle-inline-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
}

.vehicle-inline-checkbox-label input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin: 0;
}

.equipment-page {
  display: grid;
  gap: 1rem;
}

.equipment-filter-form,
.equipment-history-form {
  gap: 1rem;
}

.equipment-filter-actions {
  align-self: end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.equipment-table {
  min-width: 1180px;
}

.equipment-meta {
  color: var(--color-text-second);
  font-size: var(--fs-sm);
}

.equipment-detail-section {
  scroll-margin-top: 2rem;
}

.equipment-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.equipment-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-m);
  border: 1px solid var(--color-border);
  background-color: var(--color-bg-100);
  color: var(--color-bg-second);
  font-weight: var(--font-weight-medium);
}

.equipment-tab-active {
  background-color: var(--color-bg-second);
  color: var(--color-bg-100);
  border-color: var(--color-brand-hover);
}

.equipment-history-table {
  margin-top: 0.5rem;
}

.equipment-history-table th,
.equipment-history-table td {
  text-align: left;
  vertical-align: top;
}

.equipment-status-active {
  background-color: #dff3e4;
  color: #146c2e;
}

.equipment-status-warning {
  background-color: #f5eacd;
  color: #8a6116;
}

.equipment-status-inactive {
  background-color: #f3e3de;
  color: #8d3a22;
}

.building-page {
  display: grid;
  gap: 1rem;
}

.building-table {
  min-width: 1200px;
}

.building-reminder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.building-reminder-card {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  background-color: var(--color-bg-100);
}

.building-reminder-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.building-reminder-card p {
  margin: 0;
}

.building-reminder-overdue {
  background-color: #f3e3de;
  color: #8d3a22;
}

.building-reminder-upcoming {
  background-color: #f5eacd;
  color: #8a6116;
}

.contractor-inline-empty,
.contractor-inline-loading,
.contractor-inline-error {
  padding: 0.75rem 0;
}

.contractor-inline-error {
  color: var(--color-error-hover);
}

.contractor-inline-editor {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  background-color: var(--color-bg);
}

.contractor-inline-editor-hidden {
  display: none;
}

@media (width <= 48em) {
  .contractor-contact-card-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

.form-actions .btn {
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.compact-section .form-block {
  padding-top: 1.5rem;
}

.status-row {
  max-width: 32rem;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.btn-secondary {
  background-color: var(--color-bg-second);
}

.btn-secondary:hover {
  background-color: var(--color-info-hover);
}

.order-delegation-action-label,
.order-delegation-action-meta {
  display: block;
  line-height: 1.2;
}

.order-delegation-action-meta {
  font-size: 0.72rem;
  opacity: 0.8;
}

.order-delegation-related-badge {
  display: inline-flex;
  align-items: center;
  margin-top: 0.3rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background-color: rgba(16, 68, 84, 0.12);
  color: var(--color-bg-second);
  font-size: 0.72rem;
  font-weight: var(--font-weight-semibold);
}

.order-delegation-linked-row td {
  border-top-color: transparent;
}

.order-delegation-linked-row.order-delegation-chain-break td {
  border-top: 0.7rem solid var(--color-bg);
}

.order-delegation-chain-1 td {
  background-color: #edf7fb;
}

.order-delegation-chain-2 td {
  background-color: #f3f8ef;
}

.order-delegation-chain-3 td {
  background-color: #fbf3ea;
}

.order-delegation-settle-hint {
  margin: 0;
  color: var(--color-text-second);
  font-size: var(--fs-sm);
}

@media (max-width: 768px) {
  .form-row,
  .form-row-4,
  .form-row-3,
  .form-row-2,
  .form-row-1 {
    grid-template-columns: 1fr;
  }

  .order-team-picker {
    grid-template-columns: 1fr;
  }

  .order-task-team-picker {
    grid-template-columns: 1fr;
  }

  .narrow-row,
  .status-row {
    max-width: none;
  }

  .warehouse-product-filter-fields-row {
    grid-template-columns: 1fr;
  }

  .warehouse-product-filter-number-field {
    max-width: none;
  }

  .warehouse-product-filter-actions-row .warehouse-filter-actions {
    flex-wrap: wrap;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .my-account-google-actions-row {
    flex-direction: column;
  }

  .form-page {
    padding: 1rem;
  }

  .asset-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .asset-issue-row {
    grid-template-columns: 1fr;
  }

  .form-tab {
    width: calc(100% + 2rem);
    margin: 0 -1rem 0.75rem;
    padding: 0.85rem 1rem;
  }

  .form-block {
    padding: 0.75rem 0;
  }

  .form-section {
    padding: 0 1rem 1rem;
  }
}

.tasks-wrapper {
  grid-area: main;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 60px;
}

.todo-holder {
  padding: 10px;
}
.todo-holder form input {
  width: 100%;
  margin: 0.65rem 0;
}

.todo-add input {
  margin: 0.65rem 0;
}

.list {
  margin: 1.5rem 0;
}
.list li {
  padding: 0.75rem;
  display: flex;
  flex-flow: row;
  justify-content: space-between;
  border-radius: 10px;
  transition: all ease-in-out 0.5s;
}
.list li .element-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
.list li .element-header h4 {
  flex-grow: 1;
  margin: 0 10px;
}

.list li:nth-child(odd) {
  background-color: var(--color-input-bg);
}

.list li:has(input[type=checkbox]:checked) {
  background-color: var(--color--accept);
}

.list li input[type=checkbox] {
  background-color: var(--color-input-bg);
}

.list li:nth-child(odd) input[type=checkbox] {
  background-color: var(--color-bg-second);
}

.users-list li {
  padding: 0.75rem;
  margin: 0.5rem 0;
  border: 1px solid var(--color-border);
  background-color: var(--color-bg);
  transition: all ease-in-out 400ms;
  display: flex;
  gap: 40px;
  align-items: center;
  border-radius: 20px;
}
.users-list li img {
  border-radius: 50%;
  height: 80px;
  width: 80px;
}
.users-list li h3 {
  margin: 0;
}
.users-list li:hover {
  background-color: var(--color-accent);
  color: var(--color-text-second);
  cursor: pointer;
}

.selected {
  background-color: var(--color-highlight) !important;
  color: var(--color-text-second);
}

.user-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.user-details p, .user-details strong {
  padding: 0.2rem;
}

.marketing-nav-group {
  display: grid;
  gap: 0.35rem;
}

.marketing-nav-group > a {
  display: flex;
  align-items: center;
}

.marketing-page {
  display: grid;
  gap: 1.5rem;
}

.marketing-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.marketing-toolbar-note {
  margin: 0;
  color: var(--color-text-light);
}

.marketing-table-wrap {
  overflow-x: auto;
}

.marketing-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.marketing-stat-card {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  background-color: #fff;
  box-shadow: var(--shadow);
}

.marketing-stat-card span {
  color: var(--color-text-light);
  font-size: var(--fs-sm);
}

.marketing-stat-card strong {
  font-size: 1.4rem;
  color: #173847;
}

.marketing-stat-card-link {
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.marketing-stat-card-link:hover,
.marketing-stat-card-link:focus-visible {
  transform: translateY(-2px);
  border-color: #8eb23f;
  box-shadow: 0 8px 20px rgba(23, 56, 71, 0.12);
}

.marketing-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.marketing-card-panel {
  height: 100%;
}

.marketing-list-grid {
  display: grid;
  gap: 0.75rem;
}

.marketing-list-card {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  background-color: #fff;
}

.marketing-list-card:hover {
  background-color: rgba(142, 178, 63, 0.09);
}

.marketing-list-card-static:hover {
  background-color: #fff;
}

.marketing-list-card strong {
  margin: 0;
  color: #173847;
}

.marketing-list-card span,
.marketing-list-card small,
.marketing-empty-state {
  color: var(--color-text-light);
}

.marketing-help-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  margin-left: 0.35rem;
  border: 1px solid #7f98a3;
  border-radius: 50%;
  background-color: #f3f8ea;
  color: #173847;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  vertical-align: middle;
}

.marketing-help-icon::before {
  content: '';
  position: absolute;
  left: calc(100% + 4px);
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent #173847 transparent transparent;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.14s ease;
  z-index: 25;
}

.marketing-help-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  width: max-content;
  max-width: min(320px, calc(100vw - 60px));
  padding: 0.55rem 0.65rem;
  border-radius: 0.45rem;
  background-color: #173847;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
  box-shadow: 0 8px 18px rgba(23, 56, 71, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.14s ease;
  z-index: 25;
}

.marketing-help-icon:hover::before,
.marketing-help-icon:hover::after,
.marketing-help-icon:focus-visible::before,
.marketing-help-icon:focus-visible::after {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 900px) {
  .marketing-help-icon::before {
    left: 50%;
    top: calc(100% + 2px);
    transform: translateX(-50%) rotate(90deg);
  }

  .marketing-help-icon::after {
    left: 50%;
    top: calc(100% + 10px);
    transform: translateX(-50%);
  }
}

.marketing-comments-list {
  display: grid;
  gap: 0.85rem;
}

.marketing-comment-card {
  display: grid;
  gap: 0.4rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  background-color: #fff;
}

.marketing-comment-card p {
  margin: 0;
  line-height: 1.6;
}

.marketing-comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.marketing-comment-meta-block {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.marketing-traffic-hourly-block {
  margin-top: 1rem;
}

.marketing-traffic-hourly-block h4 {
  margin: 0 0 0.75rem;
  color: #173847;
}

.marketing-traffic-hourly-chart-shell {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 0.75rem;
  width: 100%;
}

.marketing-traffic-hourly-axis-y {
  height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 0.1rem;
  color: var(--color-text-light);
  font-size: var(--fs-sm);
  line-height: 1;
  text-align: right;
}

.marketing-traffic-hourly-plot {
  min-width: 0;
}

.marketing-traffic-hourly-plot-area {
  position: relative;
  height: 250px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  background: linear-gradient(180deg, rgba(23, 56, 71, 0.02) 0%, rgba(255, 255, 255, 1) 100%);
  overflow: hidden;
}

.marketing-traffic-hourly-gridlines {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.marketing-traffic-hourly-gridlines span {
  display: block;
  border-top: 1px dashed rgba(23, 56, 71, 0.14);
  flex: 1 1 0;
}

.marketing-traffic-hourly-bars {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 0.15rem;
  padding: 0.5rem 0.4rem 0.45rem;
}

.marketing-traffic-hour-cell {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
  min-width: 0;
}

.marketing-traffic-hour-bar-wrap--vertical {
  position: absolute;
  inset: 0;
  display: block;
  height: 100% !important;
  width: 100% !important;
  overflow: visible;
  background-color: transparent;
}

.marketing-traffic-hour-bar-stack {
  position: absolute;
  left: 16%;
  bottom: 0;
  width: 68%;
  height: 100%;
}

.marketing-traffic-hour-bar-wrap--vertical .marketing-traffic-hour-bar {
  position: absolute;
  left: 0;
  width: 100%;
  min-width: 6px;
}

.marketing-traffic-hour-bar--orange {
  border-radius: 0.4rem 0.4rem 0 0;
  background: linear-gradient(180deg, #f6b73c 0%, #d98912 100%);
}

.marketing-traffic-hour-bar--green {
  border-radius: 0.4rem 0.4rem 0 0;
  background: linear-gradient(180deg, #8eb23f 0%, #4d7d2b 100%);
}

.marketing-traffic-hourly-axis-x {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 0.15rem;
  margin-top: 0.45rem;
  color: var(--color-text-light);
  font-size: var(--fs-sm);
  line-height: 1;
  text-align: center;
}

.marketing-traffic-hourly-axis-x span {
  white-space: nowrap;
}

.marketing-traffic-hourly-chart {
  display: grid;
  gap: 0.5rem;
}

.marketing-traffic-daily-chart {
  display: grid;
  gap: 0.5rem;
}

.marketing-traffic-day-row {
  display: grid;
  grid-template-columns: 98px 1fr 48px;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 0.45rem;
  border: 1px solid transparent;
  border-radius: 0.45rem;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.marketing-traffic-day-row:hover,
.marketing-traffic-day-row:focus-visible {
  background-color: rgba(142, 178, 63, 0.12);
  border-color: rgba(142, 178, 63, 0.48);
}

.marketing-traffic-day-row.active {
  background-color: rgba(23, 56, 71, 0.08);
  border-color: rgba(23, 56, 71, 0.28);
}

.marketing-traffic-daily-chart-shell {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 0.75rem;
  width: 100%;
}

.marketing-traffic-daily-bars {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  gap: 0.15rem;
  padding: 0.5rem 0.4rem 0.45rem;
}

.marketing-traffic-daily-cell {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
  min-width: 0;
}

.marketing-traffic-daily-bar-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.marketing-traffic-daily-bar-link.active {
  outline: 1px solid rgba(23, 56, 71, 0.24);
  outline-offset: -1px;
}

.marketing-traffic-daily-bar {
  position: absolute;
  left: 16%;
  bottom: 0;
  width: 68%;
  min-width: 6px;
  border-radius: 0.4rem 0.4rem 0 0;
}

.marketing-traffic-day-bar-wrap {
  height: 0.7rem;
  border-radius: 999px;
  background-color: rgba(23, 56, 71, 0.12);
  overflow: hidden;
}

.marketing-traffic-day-bar-stack {
  display: flex;
  height: 100%;
}

.marketing-traffic-day-bar {
  height: 100%;
}

.marketing-traffic-day-bar--orange {
  background: linear-gradient(90deg, #d98912 0%, #f6b73c 100%);
}

.marketing-traffic-day-bar--green {
  background: linear-gradient(90deg, #8eb23f 0%, #4d7d2b 100%);
}

.marketing-traffic-daily-axis-x {
  display: grid;
  gap: 0.15rem;
  margin-top: 0.45rem;
  color: var(--color-text-light);
  font-size: var(--fs-sm);
  line-height: 1;
  text-align: center;
}

.marketing-traffic-daily-axis-x span {
  white-space: nowrap;
}

.marketing-traffic-hour-row {
  display: grid;
  grid-template-columns: 56px 1fr 48px;
  align-items: center;
  gap: 0.65rem;
}

.marketing-traffic-hour-label,
.marketing-traffic-hour-value {
  color: var(--color-text-light);
  font-size: var(--fs-sm);
}

.marketing-traffic-hour-bar-wrap {
  height: 0.7rem;
  border-radius: 999px;
  background-color: rgba(23, 56, 71, 0.12);
  overflow: hidden;
}

.marketing-traffic-hour-bar-wrap--vertical.marketing-traffic-hour-bar-wrap {
  height: 100% !important;
  border-radius: 0;
  background-color: transparent;
  overflow: visible;
}

.marketing-traffic-hour-bar {
  height: 100%;
  min-width: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #8eb23f 0%, #4d7d2b 100%);
}

.marketing-traffic-hour-bar-wrap--vertical .marketing-traffic-hour-bar {
}

.marketing-empty-state {
  margin: 0;
  line-height: 1.5;
}

.marketing-required {
  color: #b42318;
}

.marketing-field-error {
  color: #b42318;
  font-size: 0.8rem;
  line-height: 1.4;
}

.marketing-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.9rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background-color: rgba(23, 56, 71, 0.08);
  font-size: 0.82rem;
  font-weight: 700;
}

.marketing-summary-grid,
.marketing-detail-grid {
  display: grid;
  gap: 0.9rem;
}

.marketing-detail-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.marketing-detail-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.marketing-detail-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.marketing-detail-grid-1 {
  grid-template-columns: minmax(0, 1fr);
}

.marketing-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.marketing-summary-card,
.marketing-detail-card {
  display: grid;
  gap: 0.3rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  background-color: #fff;
}

.marketing-summary-card span,
.marketing-detail-card span {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
}

.marketing-summary-card strong,
.marketing-detail-card strong {
  color: #173847;
}

.marketing-detail-card-text strong {
  font-weight: var(--font-weight-regular);
  line-height: 1.6;
}

.marketing-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-start;
}

.marketing-tab-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 2.9rem;
  min-height: 2.9rem;
  max-height: 2.9rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  background-color: #fff;
  line-height: 1.1;
  white-space: nowrap;
}

.marketing-tab-link.active,
.marketing-tab-link:hover {
  background-color: rgba(142, 178, 63, 0.14);
}

.marketing-campaign-summary-actions {
  margin: 0.55rem 0 0.35rem;
}

.marketing-campaign-local-actions {
  margin: 0.3rem 0 0.55rem;
}

.marketing-campaign-summary-actions,
.marketing-campaign-local-actions {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
}

.marketing-campaign-summary-actions .btn,
.marketing-campaign-summary-actions .marketing-inline-action-form > .btn,
.marketing-campaign-local-actions .btn,
.marketing-campaign-local-actions .marketing-inline-action-form > .btn {
  min-height: 2.9rem;
  height: 2.9rem;
  padding: 0.45rem 1rem;
  flex: 0 0 auto;
  width: auto;
  white-space: nowrap;
}

.marketing-campaign-summary-actions .marketing-inline-action-form,
.marketing-campaign-local-actions .marketing-inline-action-form {
  margin: 0;
  flex: 0 0 auto;
}

.marketing-pagination {
  display: flex;
  justify-content: flex-end;
  color: var(--color-text-light);
  font-size: var(--fs-sm);
}

.marketing-row-overdue td {
  background-color: rgba(180, 35, 24, 0.08);
}

@media (max-width: 1100px) {
  .marketing-detail-grid-4,
  .marketing-detail-grid-3,
  .marketing-detail-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .marketing-detail-grid-4,
  .marketing-detail-grid-3,
  .marketing-detail-grid-2,
  .marketing-detail-grid-1 {
    grid-template-columns: minmax(0, 1fr);
  }

  .marketing-comment-header {
    align-items: flex-start;
  }
}

.marketing-ai-agent-shell {
  margin-bottom: 1rem;
  padding: 0.75rem;
  border: 1px dashed #d7b27e;
  border-radius: var(--radius-m);
  background: linear-gradient(180deg, #fff8ec 0%, #fffdf8 100%);
}

.marketing-ai-agent-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.marketing-ai-agent-toolbar .marketing-ai-agent-generate-loading {
  opacity: 0.72;
  filter: saturate(0.88);
  transform: translateY(0.5px);
  transition: opacity 0.16s ease, filter 0.16s ease, transform 0.16s ease;
}

.marketing-ai-agent-body {
  display: none;
  margin-top: 0.65rem;
}

.marketing-ai-agent-body.is-open {
  display: block;
}

.marketing-ai-agent-body [data-agent-status] {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.marketing-ai-agent-spinner {
  width: 0.95rem;
  height: 0.95rem;
  border: 2px solid rgba(23, 56, 71, 0.25);
  border-top-color: #173847;
  border-radius: 50%;
  animation: marketingAgentSpin 0.8s linear infinite;
  flex: 0 0 auto;
}

@keyframes marketingAgentSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.marketing-ai-agent-output {
  margin-top: 0.7rem;
}

.marketing-ai-agent-heading {
  margin: 0.85rem 0 0.45rem;
  color: #173847;
}

.marketing-ai-agent-list {
  margin: 0 0 0.75rem 1.1rem;
  list-style: disc;
}

.marketing-ai-agent-list li {
  margin-bottom: 0.35rem;
}

.marketing-ai-agent-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.marketing-ai-agent-card {
  padding: 0.75rem;
  border: 1px solid #e8d4af;
  border-radius: var(--radius-m);
  background-color: #fff;
}

.marketing-ai-agent-card h5,
.marketing-ai-agent-card h6 {
  margin: 0 0 0.45rem;
}

.marketing-ai-agent-card p {
  margin: 0 0 0.5rem;
  line-height: 1.45;
}

.marketing-inline-action-form {
  margin: 0;
}

.marketing-icon-action-button {
  cursor: pointer;
  font: inherit;
}
/*# sourceMappingURL=main.css.map */