/* FikeszCRMV2 shell - builds on FikeszCRM8.css variables and FikeszCRMAlap.css controls. */

:root {
  --fv2-header-height: 42px;
  --fv2-footer-height: 24px;
  --fv2-sidebar-width: 236px;
  --fv2-sidebar-collapsed-width: 58px;
  --fv2-border: rgba(0, 0, 0, 0.16);
  --fv2-surface: #efefef;
  --fv2-surface-strong: #ffffff;
  --fv2-text-muted: #666666;
}

body.fv2-shell {
  height: 100vh;
  overflow: hidden;
}

.fv2-app {
  display: grid;
  grid-template-rows: var(--fv2-header-height) 1fr var(--fv2-footer-height);
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  background: var(--bodybc);
  color: var(--bodytc);
}

.fv2-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  padding: 0 10px;
  background: var(--headerbc);
  color: var(--headertc);
  border-bottom: 1px solid var(--fv2-border);
}

.fv2-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.fv2-brand-title {
  color: var(--headertc);
  font-size: 16px;
  font-weight: 700;
  line-height: var(--fv2-header-height);
  text-decoration: none;
  white-space: nowrap;
}

.fv2-icon-button,
.fv2-login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  min-width: 30px;
  border: 1px solid var(--fv2-border);
  border-radius: 5px;
  background: var(--default);
  color: var(--defaulttc);
  cursor: pointer;
}

.fv2-icon-button:hover,
.fv2-login-button:hover {
  background: var(--defaulth);
  color: var(--defaulthtc);
}

.fv2-login {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.fv2-login-input {
  width: 116px;
  height: 28px;
  padding: 4px 7px;
  border: 1px solid var(--fv2-border);
  border-radius: 4px;
  font-size: 12px;
}

.fv2-login-button {
  padding: 0 10px;
  font-size: 12px;
  white-space: nowrap;
}

.fv2-login-user {
  gap: 10px;
}

.fv2-user-name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fv2-user-avatar {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border: 1px solid var(--fv2-border);
  border-radius: 50%;
  object-fit: cover;
  background: var(--fv2-surface-strong);
  color: var(--fv2-text-muted);
}

.fv2-user-avatar-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.fv2-presence-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: max-content;
  max-width: 100%;
  min-height: 20px;
  padding: 2px 7px;
  border: 1px solid var(--fv2-border);
  border-radius: 999px;
  background: var(--fv2-surface-strong);
  color: var(--fv2-text-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.fv2-presence-badge > i {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8a8a8a;
  box-shadow: 0 0 0 2px rgba(138, 138, 138, 0.16);
}

.fv2-presence-online {
  border-color: rgba(35, 140, 72, 0.42);
  background: rgba(35, 140, 72, 0.11);
  color: #176534;
}

.fv2-presence-online > i {
  background: #24a148;
  box-shadow: 0 0 0 2px rgba(36, 161, 72, 0.18);
}

.fv2-presence-offline {
  border-color: rgba(126, 126, 126, 0.32);
  background: rgba(126, 126, 126, 0.09);
  color: var(--fv2-text-muted);
}

.fv2-chat-notification {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 28px;
  border: 1px solid var(--fv2-border);
  border-radius: 5px;
  background: var(--default);
  color: var(--defaulttc);
  text-decoration: none;
}

.fv2-chat-notification:hover {
  background: var(--defaulth);
  color: var(--defaulthtc);
}

.fv2-chat-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--danger, #d9534f);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.fv2-chat-badge-empty {
  display: none;
}

.fv2-body {
  display: grid;
  grid-template-columns: var(--fv2-sidebar-width) minmax(0, 1fr);
  height: calc(100vh - var(--fv2-header-height) - var(--fv2-footer-height));
  min-height: 0;
  overflow: hidden;
  transition: grid-template-columns 0.18s ease;
}

.fv2-app.fv2-sidebar-collapsed .fv2-body {
  grid-template-columns: var(--fv2-sidebar-collapsed-width) minmax(0, 1fr);
}

.fv2-sidebar {
  height: 100%;
  min-height: 0;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--navbarbc);
  color: var(--navbartc);
  border-right: 1px solid var(--fv2-border);
}

.fv2-menu {
  min-height: min-content;
  padding: 6px 6px 18px;
}

.fv2-menu-item {
  margin-bottom: 3px;
}

.fv2-menu-link {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 34px;
  padding: 7px 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--navbaratc);
  font-family: inherit;
  font-size: 12px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.fv2-menu-link:hover,
.fv2-menu-link.fv2-active {
  background: var(--navbaraactivebc);
  color: var(--navbaraactivetc);
}

.fv2-menu-icon {
  flex: 0 0 22px;
  width: 22px;
  font-size: 15px;
  text-align: center;
}

.fv2-menu-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fv2-menu-caret {
  margin-left: auto;
  font-size: 10px;
  transition: transform 0.18s ease;
}

.fv2-menu-button[aria-expanded="true"] .fv2-menu-caret {
  transform: rotate(180deg);
}

.fv2-submenu {
  display: none;
  padding-left: 12px;
}

.fv2-submenu.fv2-open {
  display: block;
}

.fv2-menu-level-1 .fv2-menu-link {
  min-height: 30px;
  padding-top: 6px;
  padding-bottom: 6px;
  color: var(--subnavtc);
}

.fv2-app.fv2-sidebar-collapsed .fv2-menu {
  padding: 6px 5px;
}

.fv2-app.fv2-sidebar-collapsed .fv2-menu-link {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

.fv2-app.fv2-sidebar-collapsed .fv2-menu-text,
.fv2-app.fv2-sidebar-collapsed .fv2-menu-caret,
.fv2-app.fv2-sidebar-collapsed .fv2-submenu {
  display: none;
}

.fv2-main {
  position: relative;
  min-width: 0;
  min-height: 0;
  background: var(--fv2-surface);
}

.fv2-start-panel {
  position: absolute;
  inset: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: var(--fv2-surface-strong);
  border: 1px solid var(--fv2-border);
  border-radius: 6px;
  color: var(--bodytc);
}

.fv2-start-panel h1 {
  margin: 0;
  font-size: 22px;
}

.fv2-start-panel p {
  margin: 0;
  color: var(--fv2-text-muted);
}

.fv2-start-panel.fv2-hidden {
  display: none;
}

.fv2-program-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
}

.fv2-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 10px;
  background: var(--footerbc);
  color: var(--footertc);
  border-top: 1px solid var(--fv2-border);
  font-size: 11px;
}

@media screen and (max-width: 760px) {
  body.fv2-shell {
    overflow: auto;
  }

  .fv2-app {
    min-height: 100vh;
    height: 100vh;
  }

  .fv2-header {
    gap: 8px;
  }

  .fv2-body {
    grid-template-columns: var(--fv2-sidebar-collapsed-width) minmax(0, 1fr);
    height: calc(100vh - var(--fv2-header-height) - var(--fv2-footer-height));
  }

  .fv2-login-input {
    width: 88px;
  }

  .fv2-brand-title {
    font-size: 14px;
  }
}

@media screen and (max-width: 520px) {
  .fv2-login-input {
    display: none;
  }

  .fv2-footer {
    justify-content: center;
  }

  .fv2-footer span:last-child {
    display: none;
  }
}

.fv2-admin-page {
  min-height: 100vh;
  margin: 0;
  padding: 10px;
  overflow: auto;
  background: var(--bodybc);
  color: var(--bodytc);
}

.fv2-admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding: 8px 10px;
  background: var(--headerbc);
  border: 1px solid var(--fv2-border);
  border-radius: 6px;
}

.fv2-admin-header h1 {
  margin: 0;
  font-size: 18px;
}

.fv2-admin-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.fv2-admin-header-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 6px 15px;
  line-height: 1.2;
}

.fv2-admin-page .btn,
.fv2-shell .btn {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 32px;
  padding: 7px 12px;
  border: 1px solid var(--fv2-border);
  border-radius: 5px;
  background-color: var(--default);
  color: var(--defaulttc);
  box-sizing: border-box;
  font: inherit;
  font-size: var(--fontmeret);
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.fv2-admin-page .btn:hover,
.fv2-shell .btn:hover {
  background-color: var(--defaulth);
  color: var(--defaulthtc);
  text-decoration: none;
}

.fv2-admin-page .btn.success,
.fv2-shell .btn.success {
  background-color: var(--success);
  color: var(--successtc);
}

.fv2-admin-page .btn.success:hover,
.fv2-shell .btn.success:hover {
  background-color: var(--successh);
  color: var(--successhtc);
}

.fv2-admin-page .btn.info,
.fv2-shell .btn.info {
  background-color: var(--info);
  color: var(--infotc);
}

.fv2-admin-page .btn.info:hover,
.fv2-shell .btn.info:hover {
  background-color: var(--infoh);
  color: var(--infohtc);
}

.fv2-admin-page .btn.warning,
.fv2-shell .btn.warning {
  background-color: var(--warning);
  color: var(--warningtc);
}

.fv2-admin-page .btn.warning:hover,
.fv2-shell .btn.warning:hover {
  background-color: var(--warningh);
  color: var(--warninghtc);
}

.fv2-admin-page .btn.danger,
.fv2-shell .btn.danger {
  background-color: var(--error);
  color: var(--errortc);
}

.fv2-admin-page .btn.danger:hover,
.fv2-shell .btn.danger:hover {
  background-color: var(--errorh);
  color: var(--errorhtc);
}

.fv2-admin-page .btn:focus-visible,
.fv2-shell .btn:focus-visible {
  outline: 2px solid var(--info);
  outline-offset: 2px;
}

.fv2-admin-header-actions .btn {
  min-height: 28px;
  padding: 6px 15px;
}

.btn.disabled,
.btn.disabled:hover {
  opacity: 0.48;
  cursor: not-allowed;
  pointer-events: none;
}

.fv2-home-page {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fv2-home-header div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.fv2-home-header span {
  color: var(--fv2-text-muted);
}

.fv2-home-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
  padding: 10px;
  background: var(--fv2-surface-strong);
  border: 1px solid var(--fv2-border);
  border-radius: 6px;
}

.fv2-home-toolbar label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 700;
}

.fv2-home-toolbar input {
  min-height: 32px;
  padding: 5px 8px;
  border: 1px solid var(--fv2-border);
  border-radius: 4px;
  color: var(--bodytc);
}

.fv2-home-toolbar .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 7px 12px;
  text-decoration: none;
  white-space: nowrap;
}

.fv2-home-toolbar .btn:not(.success):not(.info):not(.warning):not(.danger) {
  background: var(--default);
  color: var(--defaulttc);
}

.fv2-home-toolbar .btn:not(.success):not(.info):not(.warning):not(.danger):hover {
  background: var(--defaulth);
  color: var(--defaulthtc);
}

.fv2-home-view-switch {
  display: inline-flex;
  min-height: 32px;
  overflow: hidden;
  border: 1px solid var(--fv2-border);
  border-radius: 5px;
}

.fv2-home-view-switch a {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  background: var(--fv2-surface);
  color: var(--bodytc);
  text-decoration: none;
  border-right: 1px solid var(--fv2-border);
}

.fv2-home-view-switch a:last-child {
  border-right: 0;
}

.fv2-home-view-switch a:hover,
.fv2-home-view-switch a.active {
  background: var(--navbaraactivebc);
  color: var(--navbaraactivetc);
}

.fv2-home-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.fv2-home-summary > div,
.fv2-home-day,
.fv2-home-empty {
  background: var(--fv2-surface-strong);
  border: 1px solid var(--fv2-border);
  border-radius: 6px;
}

.fv2-home-summary > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
}

.fv2-home-summary strong {
  overflow: hidden;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fv2-home-summary span {
  color: var(--fv2-text-muted);
}

.fv2-home-events {
  display: grid;
  gap: 8px;
}

.fv2-home-empty {
  display: flex;
  min-height: 180px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px;
  text-align: center;
  color: var(--fv2-text-muted);
}

.fv2-home-empty i {
  font-size: 30px;
}

.fv2-home-empty h2 {
  margin: 0;
  font-size: 17px;
}

.fv2-home-day {
  padding: 10px;
}

.fv2-home-day header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--fv2-border);
}

.fv2-home-day h2 {
  margin: 0;
  font-size: 17px;
}

.fv2-home-day header span {
  color: var(--fv2-text-muted);
}

.fv2-home-event-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 8px;
}

.fv2-home-event {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  background: var(--fv2-surface);
  border: 1px solid var(--fv2-border);
  border-radius: 5px;
}

.fv2-home-event > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e9edf2;
  color: #435060;
}

.fv2-home-event strong,
.fv2-home-event span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fv2-home-event span {
  color: var(--fv2-text-muted);
}

.fv2-home-event em {
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.fv2-home-event-birthday > i {
  background: #f4d6d3;
  color: #9b2d24;
}

.fv2-home-event-nameday > i {
  background: #d9eadf;
  color: #236b38;
}

.fv2-home-event-medical > i {
  background: #d8e6f3;
  color: #255f8d;
}

.fv2-home-event-safety > i {
  background: #efe1bd;
  color: #7c5a0c;
}

.fv2-home-event-anniversary > i {
  background: #eadcf4;
  color: #69428a;
}

.fv2-home-relation-today {
  color: var(--success);
}

.fv2-home-relation-future {
  color: var(--info);
}

.fv2-home-relation-past {
  color: var(--fv2-text-muted);
}

@media screen and (max-width: 900px) {
  .fv2-home-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 620px) {
  .fv2-admin-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .fv2-admin-header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .fv2-home-header,
  .fv2-home-day header {
    align-items: flex-start;
    flex-direction: column;
  }

  .fv2-home-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .fv2-home-view-switch,
  .fv2-home-toolbar .btn,
  .fv2-home-toolbar input {
    width: 100%;
  }

  .fv2-home-view-switch a {
    flex: 1 1 0;
    justify-content: center;
  }

  .fv2-home-summary,
  .fv2-home-event-list {
    grid-template-columns: 1fr;
  }

  .fv2-import-summary {
    grid-template-columns: 1fr;
  }

  .fv2-import-preview header,
  .fv2-import-pager {
    align-items: flex-start;
    flex-direction: column;
  }

  .fv2-import-upload-form .btn,
  .fv2-import-actions .btn,
  .fv2-import-pager .btn {
    width: 100%;
  }

  .fv2-home-event {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .fv2-home-event em {
    grid-column: 2;
  }

  .fv2-employee-cake-modal {
    padding: 10px;
  }

  .fv2-employee-cake-dialog {
    width: 100%;
    max-height: 88vh;
  }

  .fv2-employee-cake-dialog header {
    align-items: flex-start;
    flex-direction: column;
  }
}

.fv2-admin-layout {
  display: grid;
  grid-template-columns: minmax(280px, 35%) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.fv2-admin-bootstrap {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

.fv2-admin-list,
.fv2-admin-editor {
  padding: 10px;
  background: var(--fv2-surface-strong);
  border: 1px solid var(--fv2-border);
  border-radius: 6px;
}

.fv2-admin-editor h2 {
  margin: 0 0 10px;
  font-size: 16px;
}

.fv2-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.fv2-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 700;
}

.fv2-form-grid input,
.fv2-form-grid select,
.fv2-form-grid textarea {
  min-height: 32px;
  padding: 5px 7px;
  border: 1px solid var(--fv2-border);
  border-radius: 4px;
  font: inherit;
  font-weight: 400;
}

.fv2-form-grid textarea {
  resize: vertical;
}

.fv2-form-full {
  grid-column: 1 / -1;
}

.fv2-form-section-label {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
}

.fv2-checkbox-line {
  flex-direction: row !important;
  align-items: center;
  padding-top: 20px;
}

.fv2-admin-page input[type="checkbox"],
.fv2-shell input[type="checkbox"] {
  flex: 0 0 auto;
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--fv2-border);
  border-radius: 3px;
  box-sizing: border-box;
  accent-color: var(--info);
  vertical-align: middle;
}

.fv2-checkbox-line input[type="checkbox"],
.fv2-eo-check-list input[type="checkbox"],
.fv2-access-item input[type="checkbox"],
.fv2-order-check input[type="checkbox"],
.fv2-log-checkbox input[type="checkbox"],
.fv2-partner-checkbox-grid input[type="checkbox"] {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
}

.fv2-access-panel {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--fv2-border);
}

.fv2-access-panel h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

.fv2-access-panel p {
  margin: 0 0 8px;
  color: var(--fv2-text-muted);
}

.fv2-access-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.fv2-access-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 5px 7px;
  align-items: start;
  padding: 8px;
  border: 1px solid var(--fv2-border);
  border-radius: 5px;
  background: var(--fv2-surface);
}

.fv2-access-item small {
  grid-column: 2;
  color: var(--fv2-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fv2-select-field-table a {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.fv2-select-active-field td,
.fv2-select-active-row td {
  background: var(--tabletdhoverbc);
  color: var(--tabletdhovertc);
}

.fv2-select-options-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 250px;
  margin-bottom: 10px;
  border: 1px solid var(--fv2-border);
  border-radius: 6px;
  background: var(--fv2-surface);
  overflow: hidden;
}

.fv2-select-options-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--fv2-border);
}

.fv2-select-options-title h2 {
  margin: 0;
  font-size: 15px;
}

.fv2-select-options-title span {
  color: var(--fv2-text-muted);
}

.fv2-select-options-wrap {
  overflow: auto;
}

.fv2-select-options-table {
  width: 100%;
}

.fv2-select-empty {
  padding: 16px !important;
  color: var(--fv2-text-muted);
  text-align: center !important;
}

.fv2-select-option-form {
  padding-top: 10px;
  border-top: 1px solid var(--fv2-border);
}

.fv2-list-color-program {
  margin-bottom: 10px;
}

.fv2-list-color-program label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 700;
}

.fv2-list-color-program select {
  min-height: 32px;
  padding: 5px 7px;
  border: 1px solid var(--fv2-border);
  border-radius: 4px;
  font: inherit;
  font-weight: 400;
}

.fv2-list-color-swatch {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  border: 1px solid var(--fv2-border);
  border-radius: 3px;
  vertical-align: middle;
}

.fv2-list-color-preview-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 700;
}

.fv2-list-color-preview {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  width: fit-content;
  min-width: 130px;
  padding: 6px 10px;
  border: 1px solid var(--fv2-border);
  border-radius: 4px;
  font-weight: 700;
}

.fv2-sandbox-page {
  padding: 6px;
}

.fv2-sandbox-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: flex-end;
  gap: 8px;
}

.fv2-sandbox-toolbar label {
  display: flex;
  min-width: 180px;
  flex-direction: column;
  gap: 4px;
  font-weight: 700;
}

.fv2-sandbox-toolbar select {
  max-width: 360px;
  min-height: 30px;
  padding: 5px 7px;
  border: 1px solid var(--fv2-border);
  border-radius: 4px;
  font: inherit;
}

.fv2-sandbox-layout {
  display: block;
}

.fv2-sandbox-editor {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 84px);
  min-height: 500px;
  overflow: hidden;
}

.fv2-sandbox-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--fv2-border);
}

.fv2-sandbox-title h2 {
  margin: 0 0 3px;
  font-size: 17px;
}

.fv2-sandbox-title span {
  color: var(--fv2-text-muted);
}

.fv2-sandbox-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.fv2-sandbox-pager .btn {
  min-height: 30px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.fv2-sandbox-filter-form {
  margin: 0;
}

.fv2-sandbox-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.fv2-sandbox-filter-head div {
  display: flex;
  gap: 6px;
}

.fv2-sandbox-filter-grid {
  display: grid;
  gap: 5px;
}

.fv2-sandbox-filter-row {
  display: grid;
  grid-template-columns: 78px minmax(140px, 1fr) minmax(140px, 180px) minmax(160px, 1.2fr) 34px;
  gap: 6px;
}

.fv2-sandbox-filter-row select,
.fv2-sandbox-filter-row input {
  width: 100%;
  min-height: 28px;
  padding: 4px 6px;
  border: 1px solid var(--fv2-border);
  border-radius: 4px;
  background: var(--fv2-surface-strong);
  color: var(--fv2-text);
  box-sizing: border-box;
  font: inherit;
}

.fv2-sandbox-filter-remove {
  width: 34px;
  min-width: 34px;
  padding: 0;
}

.fv2-sandbox-filter-add {
  margin-top: 8px;
}

.fv2-sandbox-modal[hidden] {
  display: none;
}

.fv2-sandbox-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.fv2-sandbox-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
}

.fv2-sandbox-modal-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(900px, 96vw);
  max-height: 86vh;
  border: 1px solid var(--fv2-border);
  border-radius: 8px;
  background: var(--fv2-surface);
  color: var(--fv2-text);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.fv2-sandbox-modal-panel > form {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 86vh;
  flex-direction: column;
}

.fv2-sandbox-modal-panel-wide {
  width: min(1120px, 96vw);
}

.fv2-sandbox-modal-head,
.fv2-sandbox-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--fv2-border);
  background: var(--fv2-surface-strong);
}

.fv2-sandbox-modal-head h3 {
  margin: 0;
  font-size: 17px;
}

.fv2-sandbox-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 12px;
  overflow: auto;
  overscroll-behavior: contain;
}

.fv2-sandbox-modal-actions {
  justify-content: flex-end;
  border-top: 1px solid var(--fv2-border);
  border-bottom: 0;
}

.fv2-sandbox-insert-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 8px;
}

.fv2-sandbox-insert-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
  padding: 7px;
  border: 1px solid var(--fv2-border);
  border-radius: 6px;
  background: var(--fv2-surface-strong);
}

.fv2-sandbox-insert-field > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  color: var(--fv2-text);
  font-weight: 700;
}

.fv2-sandbox-insert-field.required > span::after {
  content: "*";
  color: var(--danger, #d9534f);
}

.fv2-sandbox-insert-field small {
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--info);
  color: var(--infotc);
  font-size: 10px;
  font-weight: 700;
}

.fv2-sandbox-insert-field input,
.fv2-sandbox-insert-field select,
.fv2-sandbox-insert-field textarea {
  width: 100%;
  min-height: 30px;
  padding: 4px 6px;
  border: 1px solid var(--fv2-border);
  border-radius: 4px;
  background: var(--fv2-surface);
  color: var(--fv2-text);
  box-sizing: border-box;
  font: inherit;
}

.fv2-sandbox-insert-field textarea {
  min-height: 74px;
  resize: vertical;
}

.fv2-sandbox-form {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.fv2-sandbox-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.fv2-sandbox-table-wrap {
  flex: 1 1 auto;
  width: 100%;
  min-height: 260px;
  overflow: scroll;
  scrollbar-gutter: stable both-edges;
}

.fv2-sandbox-data-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
  background: var(--tabletdbc);
}

.fv2-sandbox-data-table th,
.fv2-sandbox-data-table td {
  min-width: 170px;
  padding: 6px;
  border: 1px solid var(--tabletdborder);
  color: var(--tabletdtc);
  text-align: left;
  vertical-align: top;
}

.fv2-sandbox-data-table th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--tablethbc);
  color: var(--tablethtc);
  box-shadow: 0 1px 0 var(--tabletdborder);
}

.fv2-sandbox-data-table .fv2-sandbox-action-col,
.fv2-sandbox-data-table .fv2-sandbox-row-actions {
  min-width: 118px;
  width: 118px;
  text-align: center;
}

.fv2-sandbox-data-table .fv2-sandbox-action-col {
  left: 0;
  z-index: 8;
}

.fv2-sandbox-data-table .fv2-sandbox-row-actions {
  position: sticky;
  left: 0;
  z-index: 4;
  background: var(--tabletdbc);
  box-shadow: 1px 0 0 var(--tabletdborder);
}

.fv2-sandbox-row-actions .btn {
  width: 100%;
  min-height: 30px;
  justify-content: center;
  padding: 5px 7px;
  white-space: nowrap;
}

.fv2-sandbox-sort-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.fv2-sandbox-sort-link:hover {
  color: inherit;
  text-decoration: underline;
}

.fv2-sandbox-data-table th small {
  display: inline-flex;
  margin-left: 4px;
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--info);
  color: var(--infotc);
  font-size: 10px;
}

.fv2-sandbox-data-table input,
.fv2-sandbox-data-table select,
.fv2-sandbox-data-table textarea {
  width: 100%;
  min-height: 30px;
  padding: 4px 6px;
  border: 1px solid var(--fv2-border);
  border-radius: 4px;
  background: var(--fv2-surface-strong);
  color: var(--fv2-text);
  box-sizing: border-box;
  font: inherit;
  font-weight: 400;
}

.fv2-sandbox-data-table input[type="checkbox"] {
  width: auto;
  min-height: auto;
  padding: 0;
}

.fv2-sandbox-bool-cell {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 4px 6px;
  border: 1px solid var(--fv2-border);
  border-radius: 4px;
  background: var(--fv2-surface-strong);
  font-weight: 700;
  white-space: nowrap;
}

.fv2-sandbox-data-table textarea {
  min-height: 52px;
  resize: vertical;
}

.fv2-sandbox-data-table input[readonly],
.fv2-sandbox-data-table select[disabled],
.fv2-sandbox-data-table textarea[readonly] {
  opacity: 0.78;
}

.fv2-sandbox-empty {
  padding: 18px !important;
  color: var(--fv2-text-muted);
  text-align: center !important;
}

@media screen and (max-width: 980px) {
  .fv2-sandbox-title,
  .fv2-sandbox-filter-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .fv2-sandbox-filter-row {
    grid-template-columns: 1fr;
  }

  .fv2-sandbox-modal {
    padding: 10px;
  }

  .fv2-sandbox-insert-grid {
    grid-template-columns: 1fr;
  }
}

.fv2-user-list-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.fv2-user-list-name span {
  min-width: 0;
}

.fv2-user-presence-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 12px;
  color: var(--fv2-text-muted);
  font-size: 12px;
  font-weight: 700;
}

.fv2-user-avatar-list {
  width: 34px;
  height: 34px;
}

.fv2-user-avatar-form {
  width: 54px;
  height: 54px;
  font-size: 34px;
}

.fv2-avatar-upload-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.fv2-avatar-upload-row input[type="file"] {
  min-width: 0;
}

.fv2-admin-actions {
  margin-top: 12px;
}

.fv2-admin-actions-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.fv2-delete-form {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--fv2-border);
}

.fv2-employee-list-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.fv2-employee-list-name i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--fv2-surface);
  color: var(--fv2-text-muted);
  line-height: 28px;
  text-align: center;
  flex: 0 0 auto;
}

.fv2-employee-list-name span {
  min-width: 0;
}

body.fv2-modal-open {
  overflow: hidden;
}

.fv2-employee-cake-modal,
.fv2-employee-anniversary-modal {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.80);
}

.fv2-employee-cake-modal[hidden],
.fv2-employee-anniversary-modal[hidden] {
  display: none;
}

.fv2-employee-cake-dialog,
.fv2-employee-anniversary-dialog {
  display: flex;
  flex-direction: column;
  width: min(80vw, 980px);
  max-height: 80vh;
  overflow: hidden;
  background: var(--fv2-surface-strong);
  border: 1px solid var(--fv2-border);
  border-radius: 7px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
  color: var(--bodytc);
}

.fv2-employee-cake-dialog header,
.fv2-employee-anniversary-dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: var(--headerbc);
  border-bottom: 1px solid var(--fv2-border);
}

.fv2-employee-cake-dialog h2,
.fv2-employee-anniversary-dialog h2 {
  margin: 0;
  font-size: 18px;
}

.fv2-employee-cake-body,
.fv2-employee-anniversary-body {
  min-height: 0;
  padding: 10px;
  overflow: auto;
}

.fv2-employee-anniversary-body {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 10px;
}

.fv2-employee-anniversary-filter {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr)) auto;
  gap: 8px;
  align-items: end;
  padding: 8px;
  border: 1px solid var(--fv2-border);
  border-radius: 6px;
  background: var(--fv2-surface);
}

.fv2-employee-anniversary-filter label {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.fv2-employee-anniversary-filter span {
  color: var(--fv2-text-muted);
  font-size: 12px;
  font-weight: 700;
}

.fv2-employee-anniversary-filter input,
.fv2-employee-anniversary-filter select {
  min-width: 0;
}

.fv2-employee-anniversary-summary {
  color: var(--fv2-text-muted);
  font-size: 12px;
  font-weight: 700;
}

.fv2-employee-anniversary-table-wrap {
  min-height: 0;
  overflow: auto;
  border: 1px solid var(--fv2-border);
  background: var(--fv2-surface-strong);
}

.fv2-employee-anniversary-table {
  width: 100%;
}

.fv2-employee-anniversary-table th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.fv2-employee-anniversary-table th,
.fv2-employee-anniversary-table td {
  text-align: left;
  white-space: nowrap;
}

@media screen and (max-width: 980px) {
  .fv2-employee-anniversary-dialog {
    width: min(94vw, 980px);
  }

  .fv2-employee-anniversary-filter {
    grid-template-columns: 1fr;
  }
}

.fv2-employee-cake-table {
  width: 100%;
}

.fv2-employee-cake-table th,
.fv2-employee-cake-table td {
  text-align: left;
}

.fv2-employee-cake-empty {
  display: flex;
  min-height: 120px;
  align-items: center;
  justify-content: center;
  color: var(--fv2-text-muted);
}

.fv2-partner-import-page {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fv2-import-panel,
.fv2-import-actions,
.fv2-import-preview {
  padding: 10px;
  background: var(--fv2-surface-strong);
  border: 1px solid var(--fv2-border);
  border-radius: 6px;
}

.fv2-import-upload-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}

.fv2-import-upload-form label {
  display: flex;
  min-width: min(420px, 100%);
  flex: 1 1 320px;
  flex-direction: column;
  gap: 4px;
  font-weight: 700;
}

.fv2-import-upload-form input[type="file"] {
  min-height: 32px;
  padding: 5px 7px;
  border: 1px solid var(--fv2-border);
  border-radius: 4px;
  background: var(--fv2-surface);
}

.fv2-import-help {
  margin-top: 8px;
  color: var(--fv2-text-muted);
}

.fv2-import-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.fv2-import-summary > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  background: var(--fv2-surface-strong);
  border: 1px solid var(--fv2-border);
  border-radius: 6px;
}

.fv2-import-summary strong {
  font-size: 19px;
}

.fv2-import-summary span {
  color: var(--fv2-text-muted);
}

.fv2-import-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.fv2-import-actions > div {
  display: flex;
  min-width: min(360px, 100%);
  flex: 1 1 260px;
  flex-direction: column;
  gap: 2px;
}

.fv2-import-actions span {
  color: var(--fv2-text-muted);
}

.fv2-import-actions form {
  margin: 0;
}

.fv2-import-preview header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.fv2-import-preview h2 {
  margin: 0;
  font-size: 17px;
}

.fv2-import-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.fv2-import-empty {
  display: flex;
  min-height: 180px;
  align-items: center;
  justify-content: center;
  color: var(--fv2-text-muted);
}

.fv2-import-table-wrap {
  overflow: auto;
  max-height: calc(100vh - 330px);
  border: 1px solid var(--fv2-border);
  border-radius: 5px;
}

.fv2-import-table {
  min-width: 1160px;
  width: 100%;
}

.fv2-import-table th,
.fv2-import-table td {
  vertical-align: top;
}

.fv2-import-table small {
  color: var(--fv2-text-muted);
}

.fv2-import-row-ok td:first-child {
  border-left: 4px solid var(--success);
}

.fv2-import-row-warning td:first-child {
  border-left: 4px solid var(--warning);
}

.fv2-import-row-error td:first-child {
  border-left: 4px solid var(--error);
}

@media screen and (max-width: 620px) {
  .fv2-import-summary {
    grid-template-columns: 1fr;
  }

  .fv2-import-preview header,
  .fv2-import-pager {
    align-items: flex-start;
    flex-direction: column;
  }

  .fv2-import-upload-form .btn,
  .fv2-import-actions .btn,
  .fv2-import-pager .btn {
    width: 100%;
  }
}

.fv2-employee-note-editor {
  min-height: 180px;
  padding: 10px;
  overflow: auto;
  border: 1px solid var(--fv2-border);
  border-radius: 5px;
  background: #ffffff;
  color: var(--bodytc);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  line-height: 1.45;
  outline: none;
}

.fv2-employee-note-editor:focus {
  border-color: var(--info);
  box-shadow: 0 0 0 2px rgba(81, 127, 165, 0.20);
}

.fv2-employee-note-editor p,
.fv2-employee-note-editor div {
  margin: 0 0 8px;
}

.fv2-employee-note-editor ul,
.fv2-employee-note-editor ol {
  margin: 6px 0 8px 22px;
  padding: 0;
}

.fv2-employee-note-editor li {
  margin: 3px 0;
}

.fv2-admin-message {
  position: fixed;
  top: 10px;
  left: 14px;
  right: auto;
  z-index: 10000;
  max-width: min(430px, calc(100vw - 28px));
  padding: 10px 12px;
  border-radius: 5px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.20);
  animation: fv2ToastInOut 6s ease forwards;
  pointer-events: none;
}

.fv2-admin-message + .fv2-admin-message {
  top: 62px;
}

.fv2-admin-message.success {
  background: var(--success, #5cb85c);
  color: var(--successtc, #ffffff);
  border-left: 6px solid var(--successh, #449d44);
}

.fv2-admin-message.warning {
  background: var(--warning, #f0ad4e);
  color: var(--warningtc, #ffffff);
  border-left: 6px solid var(--warningh, #ec971f);
}

.fv2-admin-message.info {
  background: var(--info, #5bc0de);
  color: var(--infotc, #ffffff);
  border-left: 6px solid var(--infoh, #31b0d5);
}

.fv2-admin-message.error,
.fv2-admin-message.danger {
  background: var(--error, #d9534f);
  color: var(--errortc, #ffffff);
  border-left: 6px solid var(--errorh, #c9302c);
}

@keyframes fv2ToastInOut {
  0% {
    opacity: 0;
    transform: translateX(-28px);
  }
  10%,
  82% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-28px);
    visibility: hidden;
  }
}

@media screen and (max-width: 900px) {
  .fv2-admin-layout,
  .fv2-form-grid,
  .fv2-access-list {
    grid-template-columns: 1fr;
  }
}

.fv2-log-page {
  padding: 8px;
}

.fv2-log-toolbar {
  display: grid;
  grid-template-columns: 150px minmax(180px, 260px) minmax(180px, 1fr) 130px auto auto auto;
  gap: 8px;
  align-items: end;
  margin-bottom: 8px;
  padding: 8px;
  background: var(--fv2-surface-strong);
  border: 1px solid var(--fv2-border);
  border-radius: 6px;
}

.fv2-log-toolbar label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-weight: 700;
}

.fv2-log-toolbar input,
.fv2-log-toolbar select {
  min-height: 31px;
  padding: 5px 7px;
  border: 1px solid var(--fv2-border);
  border-radius: 4px;
  font: inherit;
  font-weight: 400;
}

.fv2-log-checkbox {
  flex-direction: row !important;
  align-items: center;
  min-height: 31px;
}

.fv2-log-checkbox input {
  min-height: auto;
}

.fv2-log-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 8px;
  height: calc(100vh - 108px);
  min-height: 420px;
}

.fv2-log-files,
.fv2-log-viewer section {
  min-height: 0;
  background: var(--fv2-surface-strong);
  border: 1px solid var(--fv2-border);
  border-radius: 6px;
}

.fv2-log-files {
  overflow: auto;
  padding: 8px;
}

.fv2-log-files h2,
.fv2-log-viewer h2 {
  margin: 0;
  padding: 8px 10px;
  border-bottom: 1px solid var(--fv2-border);
  font-size: 14px;
}

.fv2-log-viewer h2 span {
  color: var(--fv2-text-muted);
  font-weight: 400;
}

.fv2-log-file {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 8px;
  border-radius: 5px;
  color: var(--bodytc);
  text-decoration: none;
}

.fv2-log-file:hover,
.fv2-log-file-active {
  background: var(--navbaraactivebc);
  color: var(--navbaraactivetc);
}

.fv2-log-file small {
  color: inherit;
  opacity: 0.78;
}

.fv2-log-viewer {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  min-height: 0;
}

.fv2-log-search-results {
  max-height: 260px;
}

.fv2-log-current-file {
  min-height: 0;
}

.fv2-log-scroll {
  height: calc(100% - 35px);
  min-height: 160px;
  overflow: auto;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  background: #151515;
}

.fv2-log-line {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 8px;
  padding: 3px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #e5e5e5;
}

.fv2-log-search-results .fv2-log-line {
  grid-template-columns: 250px minmax(0, 1fr);
}

.fv2-log-line code {
  white-space: pre-wrap;
  word-break: break-word;
  color: inherit;
}

.fv2-log-line-number,
.fv2-log-meta {
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

.fv2-log-error {
  background: rgba(244, 67, 54, 0.22);
  color: #ffb8b3;
}

.fv2-log-warning {
  background: rgba(212, 158, 77, 0.20);
  color: #ffd796;
}

.fv2-log-info {
  background: rgba(81, 127, 165, 0.20);
  color: #c8e7ff;
}

.fv2-log-debug {
  background: rgba(70, 161, 83, 0.16);
  color: #c9f5d0;
}

.fv2-log-log {
  background: rgba(255, 255, 255, 0.08);
  color: #f1f1f1;
}

@media screen and (max-width: 980px) {
  .fv2-log-toolbar,
  .fv2-log-layout {
    grid-template-columns: 1fr;
    height: auto;
  }

  .fv2-log-viewer {
    min-height: 560px;
  }
}

.fv2-cron-page {
  padding: 8px;
}

.fv2-cron-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) minmax(320px, 34%);
  gap: 8px;
  align-items: start;
}

.fv2-cron-list,
.fv2-cron-editor,
.fv2-cron-preview {
  background: var(--fv2-surface-strong);
  border: 1px solid var(--fv2-border);
  border-radius: 6px;
}

.fv2-cron-list,
.fv2-cron-preview {
  max-height: calc(100vh - 86px);
  overflow: auto;
  padding: 8px;
}

.fv2-cron-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.fv2-cron-list h2,
.fv2-cron-card h2,
.fv2-cron-preview h2 {
  margin: 0;
  font-size: 15px;
}

.fv2-cron-task {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
  padding: 8px;
  border: 1px solid var(--fv2-border);
  border-radius: 5px;
  background: var(--fv2-surface);
}

.fv2-cron-task-active {
  border-color: var(--default);
}

.fv2-cron-task a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  color: var(--bodytc);
  text-decoration: none;
}

.fv2-cron-task span,
.fv2-cron-task small {
  color: var(--fv2-text-muted);
}

.fv2-cron-task .btn {
  padding: 6px 9px;
}

.fv2-cron-editor {
  padding: 10px;
}

.fv2-cron-card {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--fv2-border);
}

.fv2-cron-card:last-of-type {
  border-bottom: 0;
}

.fv2-cron-full {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
  font-weight: 700;
}

.fv2-cron-full input,
.fv2-cron-full textarea {
  min-height: 32px;
  padding: 5px 7px;
  border: 1px solid var(--fv2-border);
  border-radius: 4px;
  font: inherit;
  font-weight: 400;
}

.fv2-cron-full textarea {
  min-height: 68px;
  resize: vertical;
}

.fv2-cron-time-grid {
  grid-template-columns: 1.4fr repeat(5, minmax(70px, 1fr));
}

.fv2-cron-preview p {
  margin: 7px 0;
  color: var(--fv2-text-muted);
  word-break: break-word;
}

.fv2-cron-preview pre {
  min-height: 360px;
  margin: 0;
  padding: 8px;
  overflow: auto;
  background: #151515;
  color: #e5e5e5;
  border-radius: 5px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  white-space: pre-wrap;
}

@media screen and (max-width: 1180px) {
  .fv2-cron-layout {
    grid-template-columns: 1fr;
  }

  .fv2-cron-list,
  .fv2-cron-preview {
    max-height: none;
  }
}

.fv2-skill-page {
  padding: 8px;
}

.fv2-skill-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fv2-skill-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.fv2-skill-summary-card {
  display: flex;
  min-height: 76px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 10px;
  background: var(--fv2-surface-strong);
  border: 1px solid var(--fv2-border);
  border-radius: 6px;
}

.fv2-skill-summary-card span,
.fv2-skill-section-head p,
.fv2-skill-empty,
.fv2-skill-run-card span,
.fv2-skill-run-card small,
.fv2-skill-run-meta span,
.fv2-skill-detail-meta span {
  color: var(--fv2-text-muted);
}

.fv2-skill-summary-card strong {
  font-size: 18px;
  line-height: 1.2;
}

.fv2-skill-section {
  margin-bottom: 8px;
  padding: 10px;
  background: var(--fv2-surface-strong);
  border: 1px solid var(--fv2-border);
  border-radius: 6px;
}

.fv2-skill-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.fv2-skill-section-head h2 {
  margin: 0 0 2px;
  font-size: 15px;
}

.fv2-skill-section-head p {
  margin: 0;
}

.fv2-skill-search-form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.fv2-skill-search-form input {
  min-width: min(340px, 70vw);
  height: 32px;
  padding: 5px 8px;
  border: 1px solid var(--fv2-border);
  border-radius: 4px;
  font: inherit;
}

.fv2-skill-search-form select {
  min-width: min(300px, 70vw);
  height: 32px;
  padding: 5px 8px;
  border: 1px solid var(--fv2-border);
  border-radius: 4px;
  font: inherit;
}

.fv2-skill-table-wrap {
  overflow: auto;
  border: 1px solid var(--fv2-border);
  border-radius: 5px;
}

.fv2-skill-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--fv2-surface-strong);
}

.fv2-skill-table th,
.fv2-skill-table td {
  padding: 8px 9px;
  vertical-align: top;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  text-align: left;
}

.fv2-skill-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--fv2-surface);
  font-size: 12px;
}

.fv2-skill-table td strong,
.fv2-skill-table td a strong {
  display: block;
  margin-bottom: 2px;
}

.fv2-skill-table td span,
.fv2-skill-table td small,
.fv2-skill-table td a span,
.fv2-skill-table td a small {
  display: block;
  color: var(--fv2-text-muted);
}

.fv2-skill-table a {
  color: inherit;
  text-decoration: none;
}

.fv2-skill-table a:hover strong {
  text-decoration: underline;
}

.fv2-skill-row-selected {
  background: rgba(91, 192, 222, 0.10);
}

.fv2-skill-empty {
  padding: 14px 10px;
  text-align: center;
}

.fv2-skill-panels {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.fv2-skill-run-list {
  display: grid;
  gap: 6px;
}

.fv2-skill-run-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 10px;
  border: 1px solid var(--fv2-border);
  border-radius: 5px;
  background: var(--fv2-surface);
  color: var(--bodytc);
  text-decoration: none;
}

.fv2-skill-run-card:hover {
  border-color: var(--info);
  text-decoration: none;
}

.fv2-skill-run-card-selected {
  border-color: var(--default);
  background: rgba(81, 127, 165, 0.08);
}

.fv2-skill-run-meta,
.fv2-skill-detail-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.fv2-skill-run-meta > div,
.fv2-skill-detail-meta > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 9px;
  border: 1px solid var(--fv2-border);
  border-radius: 5px;
  background: var(--fv2-surface);
}

.fv2-skill-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--fv2-border);
  background: var(--fv2-surface-strong);
}

.fv2-skill-status-success {
  border-color: rgba(35, 140, 72, 0.42);
  background: rgba(35, 140, 72, 0.10);
  color: #176534;
}

.fv2-skill-status-warning {
  border-color: rgba(212, 158, 77, 0.42);
  background: rgba(212, 158, 77, 0.12);
  color: #8a5b16;
}

.fv2-skill-status-danger {
  border-color: rgba(217, 83, 79, 0.42);
  background: rgba(217, 83, 79, 0.10);
  color: #a94442;
}

.fv2-skill-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: max-content;
  min-height: 20px;
  padding: 2px 8px;
  border: 1px solid var(--fv2-border);
  border-radius: 999px;
  background: var(--fv2-surface-strong);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.fv2-skill-badge-success {
  border-color: rgba(35, 140, 72, 0.42);
  background: rgba(35, 140, 72, 0.10);
  color: #176534;
}

.fv2-skill-badge-warning {
  border-color: rgba(212, 158, 77, 0.42);
  background: rgba(212, 158, 77, 0.12);
  color: #8a5b16;
}

.fv2-skill-badge-danger {
  border-color: rgba(217, 83, 79, 0.42);
  background: rgba(217, 83, 79, 0.10);
  color: #a94442;
}

.fv2-skill-badge-info {
  border-color: rgba(91, 192, 222, 0.42);
  background: rgba(91, 192, 222, 0.10);
  color: #1f5f73;
}

.fv2-skill-run-message {
  margin: 0 0 8px;
  padding: 8px 9px;
  background: var(--fv2-surface);
  border: 1px solid var(--fv2-border);
  border-radius: 5px;
}

.fv2-skill-run-items-wrap {
  overflow: auto;
  border: 1px solid var(--fv2-border);
  border-radius: 5px;
}

.fv2-skill-run-items {
  min-width: 760px;
}

.fv2-skill-content {
  margin: 0;
  padding: 10px;
  min-height: 320px;
  max-height: 680px;
  overflow: auto;
  border: 1px solid var(--fv2-border);
  border-radius: 5px;
  background: #111111;
  color: #e9e9e9;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.45;
}

.fv2-agent-cron-grid {
  margin-top: 10px;
}

.fv2-agent-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 280px;
}

.fv2-agent-actions form {
  margin: 0;
}

.fv2-agent-scheduler-page textarea {
  min-height: 170px;
}

@media screen and (max-width: 1180px) {
  .fv2-skill-summary-grid,
  .fv2-skill-panels,
  .fv2-skill-run-meta,
  .fv2-skill-detail-meta {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 900px) {
  .fv2-skill-search-form input {
    min-width: 100%;
  }
}

.fv2-firewall-page {
  padding: 8px;
}

.fv2-firewall-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.fv2-firewall-status-card,
.fv2-firewall-panel,
.fv2-firewall-notice {
  background: var(--fv2-surface-strong);
  border: 1px solid var(--fv2-border);
  border-radius: 6px;
}

.fv2-firewall-status-card {
  display: flex;
  min-height: 66px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 10px;
}

.fv2-firewall-status-card span,
.fv2-firewall-muted {
  color: var(--fv2-text-muted);
}

.fv2-firewall-status-card strong {
  font-size: 18px;
}

.fv2-firewall-state-active {
  border-left: 6px solid var(--success);
}

.fv2-firewall-state-inactive {
  border-left: 6px solid var(--warning);
}

.fv2-firewall-state-unknown {
  border-left: 6px solid var(--error);
}

.fv2-firewall-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr) minmax(320px, 38%);
  gap: 8px;
  align-items: start;
}

.fv2-firewall-panel,
.fv2-firewall-notice {
  padding: 10px;
}

.fv2-firewall-panel h2,
.fv2-firewall-notice h2 {
  margin: 0 0 10px;
  font-size: 15px;
}

.fv2-firewall-notice {
  margin-bottom: 8px;
}

.fv2-firewall-notice.warning {
  border-left: 6px solid var(--warning);
}

.fv2-firewall-notice p {
  margin: 0 0 8px;
}

.fv2-firewall-notice pre,
.fv2-firewall-pre {
  margin: 0;
  padding: 8px;
  overflow: auto;
  background: #151515;
  color: #e5e5e5;
  border-radius: 5px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  white-space: pre-wrap;
}

.fv2-firewall-policy-grid {
  grid-template-columns: 1fr;
}

.fv2-firewall-rule-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fv2-firewall-wide {
  grid-column: 1 / -1;
}

.fv2-firewall-rule-table {
  width: 100%;
  margin-bottom: 8px;
  border-collapse: collapse;
}

.fv2-firewall-rule-table th,
.fv2-firewall-rule-table td {
  padding: 6px;
  border-bottom: 1px solid var(--fv2-border);
  text-align: left;
  vertical-align: top;
}

.fv2-firewall-rule-table th {
  background: var(--tablethbc);
  color: var(--tablethtc);
}

.fv2-firewall-rule-table td:first-child {
  width: 44px;
  font-weight: 700;
}

.fv2-firewall-rule-table td:last-child {
  width: 48px;
  text-align: right;
}

.fv2-firewall-rule-table .btn {
  width: 32px;
  min-width: 32px;
  padding: 6px;
}

.fv2-firewall-command-panel {
  margin-top: 8px;
}

.fv2-firewall-command-panel code {
  display: block;
  margin-bottom: 8px;
  padding: 8px;
  overflow: auto;
  background: var(--fv2-surface);
  border: 1px solid var(--fv2-border);
  border-radius: 5px;
  white-space: pre-wrap;
}

@media screen and (max-width: 1180px) {
  .fv2-firewall-status-grid,
  .fv2-firewall-layout,
  .fv2-firewall-rule-grid {
    grid-template-columns: 1fr;
  }
}

.fv2-chat-page {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 8px;
  height: 100vh;
  min-height: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.fv2-chat-page .fv2-admin-header {
  margin-bottom: 0;
}

.fv2-chat-compose-panel {
  margin-bottom: 0;
  padding: 8px;
  background: var(--fv2-surface-strong);
  border: 1px solid var(--fv2-border);
  border-radius: 6px;
}

.fv2-chat-new-form {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(220px, 320px) auto;
  gap: 8px;
  align-items: end;
}

.fv2-chat-new-form label,
.fv2-chat-send-form label,
.fv2-chat-gif-upload-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 700;
}

.fv2-chat-new-form input,
.fv2-chat-new-form select,
.fv2-chat-send-form textarea,
.fv2-chat-send-form input[type="file"],
.fv2-chat-gif-upload-form input {
  min-height: 32px;
  padding: 5px 7px;
  border: 1px solid var(--fv2-border);
  border-radius: 4px;
  font: inherit;
  font-weight: 400;
}

.fv2-chat-send-form textarea {
  min-height: 74px;
  resize: vertical;
}

.fv2-chat-file-input small {
  color: var(--fv2-text-muted);
  font-size: 11px;
  font-weight: 400;
}

.fv2-chat-current-user {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.fv2-chat-presence-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.72);
  vertical-align: middle;
}

.fv2-chat-presence-online {
  background: #23a455;
}

.fv2-chat-presence-offline {
  background: #d43f3a;
}

.fv2-chat-user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--fv2-surface);
  color: var(--fv2-text-muted);
  object-fit: cover;
}

.fv2-chat-user-avatar-empty {
  border: 1px solid var(--fv2-border);
  font-size: 22px;
}

.fv2-chat-recipient-picker {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.fv2-chat-recipient-title {
  font-weight: 700;
}

.fv2-chat-recipient-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 7px;
  max-height: 118px;
  min-height: 40px;
  overflow: auto;
  padding: 2px;
}

.fv2-chat-recipient-empty {
  display: flex;
  align-items: center;
  min-height: 36px;
  color: var(--fv2-text-muted);
  font-size: 12px;
}

.fv2-chat-recipient-tile {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.fv2-chat-recipient-radio,
.fv2-chat-recipient-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.fv2-chat-recipient-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 8px;
  border: 1px solid var(--fv2-border);
  border-left-width: 4px;
  border-radius: 6px;
  background: var(--fv2-surface);
  color: var(--bodytc);
}

.fv2-chat-recipient-online .fv2-chat-recipient-card {
  border-left-color: #23a455;
}

.fv2-chat-recipient-offline .fv2-chat-recipient-card {
  border-left-color: #d43f3a;
}

.fv2-chat-recipient-tile:hover .fv2-chat-recipient-card,
.fv2-chat-recipient-radio:focus-visible + .fv2-chat-recipient-card,
.fv2-chat-recipient-checkbox:focus-visible + .fv2-chat-recipient-card {
  border-color: var(--navbaraactivebc, #1f7a8c);
  box-shadow: 0 0 0 2px rgba(31, 122, 140, 0.12);
}

.fv2-chat-recipient-radio:checked + .fv2-chat-recipient-card,
.fv2-chat-recipient-checkbox:checked + .fv2-chat-recipient-card {
  border-color: var(--navbaraactivebc, #1f7a8c);
  background: var(--navbaraactivebc);
  color: var(--navbaraactivetc);
  box-shadow: 0 0 0 2px rgba(31, 122, 140, 0.18);
}

.fv2-chat-recipient-online .fv2-chat-recipient-radio:checked + .fv2-chat-recipient-card,
.fv2-chat-recipient-online .fv2-chat-recipient-checkbox:checked + .fv2-chat-recipient-card,
.fv2-chat-recipient-online:hover .fv2-chat-recipient-card {
  border-left-color: #23a455;
}

.fv2-chat-recipient-offline .fv2-chat-recipient-radio:checked + .fv2-chat-recipient-card,
.fv2-chat-recipient-offline .fv2-chat-recipient-checkbox:checked + .fv2-chat-recipient-card,
.fv2-chat-recipient-offline:hover .fv2-chat-recipient-card {
  border-left-color: #d43f3a;
}

.fv2-chat-recipient-avatar-wrap {
  position: relative;
  width: 34px;
  height: 34px;
}

.fv2-chat-recipient-avatar {
  width: 34px;
  height: 34px;
}

.fv2-chat-recipient-avatar-wrap .fv2-chat-presence-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--fv2-surface);
  box-shadow: none;
}

.fv2-chat-recipient-radio:checked + .fv2-chat-recipient-card .fv2-chat-recipient-avatar-wrap .fv2-chat-presence-dot,
.fv2-chat-recipient-checkbox:checked + .fv2-chat-recipient-card .fv2-chat-recipient-avatar-wrap .fv2-chat-presence-dot {
  border-color: var(--navbaraactivebc);
}

.fv2-chat-recipient-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.fv2-chat-recipient-text strong,
.fv2-chat-recipient-text small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fv2-chat-recipient-text small {
  color: inherit;
  font-size: 11px;
  opacity: 0.78;
}

.fv2-chat-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 8px;
  height: 100%;
  min-height: 0;
}

.fv2-chat-conversations,
.fv2-chat-window {
  min-height: 0;
  background: var(--fv2-surface-strong);
  border: 1px solid var(--fv2-border);
  border-radius: 6px;
}

.fv2-chat-conversations {
  overflow: auto;
  padding: 8px;
}

.fv2-chat-panel-title,
.fv2-chat-window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.fv2-chat-panel-title {
  margin-bottom: 8px;
}

.fv2-chat-panel-title h2,
.fv2-chat-window-header h2,
.fv2-chat-empty-state h2 {
  margin: 0;
  font-size: 15px;
}

.fv2-chat-panel-title span {
  min-width: 24px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--fv2-surface);
  color: var(--fv2-text-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

.fv2-chat-conversation {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 6px;
  padding: 8px;
  border: 1px solid var(--fv2-border);
  border-radius: 5px;
  background: var(--fv2-surface);
  color: var(--bodytc);
  text-decoration: none;
}

.fv2-chat-conversation:hover,
.fv2-chat-conversation-active {
  background: var(--navbaraactivebc);
  color: var(--navbaraactivetc);
}

.fv2-chat-conversation-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  font-weight: 700;
}

.fv2-chat-conversation-title b {
  flex: 0 0 auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--danger, #d9534f);
  color: #ffffff;
  font-size: 11px;
  line-height: 20px;
  text-align: center;
}

.fv2-chat-conversation small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
  opacity: 0.75;
}

.fv2-chat-presence-line {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  opacity: 1 !important;
}

.fv2-chat-window {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.fv2-chat-window-header {
  padding: 9px 10px;
  border-bottom: 1px solid var(--fv2-border);
}

.fv2-chat-window-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.fv2-chat-window-header span {
  display: block;
  margin-top: 2px;
  color: var(--fv2-text-muted);
  font-size: 12px;
}

.fv2-chat-window-header .fv2-chat-presence-dot {
  display: inline-block;
  margin-top: 0;
}

.fv2-chat-messages {
  min-height: 0;
  overflow: auto;
  padding: 10px;
  background: #f7f7f7;
}

.fv2-chat-message {
  width: min(76%, 760px);
  margin: 0 0 8px;
  padding: 8px 10px;
  border: 1px solid var(--fv2-border);
  border-radius: 6px;
  background: #ffffff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.fv2-chat-message-own {
  margin-left: auto;
  background: #e8f1f7;
  border-color: rgba(81, 127, 165, 0.36);
}

.fv2-chat-message-reply-selected {
  border-color: #2e7d32;
  box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.18);
}

.fv2-chat-message-jump-highlight {
  border-color: #d68a00;
  box-shadow: 0 0 0 3px rgba(214, 138, 0, 0.24);
}

.fv2-chat-message-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
  color: var(--fv2-text-muted);
  font-size: 12px;
}

.fv2-chat-message-meta strong {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--bodytc);
}

.fv2-chat-message-meta time {
  white-space: nowrap;
}

.fv2-chat-message-meta-actions {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.fv2-chat-message-reply-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 3px 7px;
  border: 1px solid var(--fv2-border);
  border-radius: 5px;
  background: var(--fv2-surface);
  color: var(--bodytc);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  line-height: 1;
}

.fv2-chat-message-reply-button:hover,
.fv2-chat-message-reply-button:focus-visible {
  border-color: #517fa5;
  background: #edf5fb;
  outline: none;
}

.fv2-chat-reply-context {
  display: grid;
  gap: 2px;
  margin: 0 0 7px;
  padding: 7px 9px;
  border-left: 3px solid #517fa5;
  border-radius: 5px;
  background: rgba(81, 127, 165, 0.08);
  color: var(--bodytc);
  text-decoration: none;
}

.fv2-chat-reply-context:hover {
  background: rgba(81, 127, 165, 0.14);
}

.fv2-chat-reply-context span {
  color: var(--fv2-text-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.fv2-chat-reply-context strong,
.fv2-chat-reply-context small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fv2-chat-reply-context small {
  color: var(--fv2-text-muted);
  font-size: 12px;
}

.fv2-chat-message p {
  margin: 0;
  white-space: normal;
  word-break: break-word;
}

.fv2-chat-gif-message {
  margin: 0;
}

.fv2-chat-gif-message img {
  display: block;
  width: min(100%, 280px);
  max-height: 220px;
  object-fit: cover;
  border: 1px solid var(--fv2-border);
  border-radius: 6px;
  background: var(--fv2-surface);
}

.fv2-chat-gif-message figcaption {
  margin-top: 5px;
  color: var(--fv2-text-muted);
  font-size: 12px;
}

.fv2-chat-file-link {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin-top: 6px;
  padding: 7px 9px;
  border: 1px solid var(--fv2-border);
  border-radius: 6px;
  background: var(--fv2-surface);
  color: var(--bodytc);
  font-weight: 700;
  text-decoration: none;
}

.fv2-chat-file-link:hover {
  border-color: var(--navbaraactivebc);
  background: var(--navbaraactivebc);
  color: var(--navbaraactivetc);
}

.fv2-chat-file-link span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fv2-chat-file-link small {
  color: inherit;
  font-size: 11px;
  font-weight: 400;
  opacity: 0.78;
  white-space: nowrap;
}

.fv2-chat-composer {
  display: grid;
  gap: 8px;
  min-height: 0;
  padding: 9px 10px;
  border-top: 1px solid var(--fv2-border);
  background: var(--fv2-surface-strong);
}

.fv2-chat-send-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
  min-height: 0;
}

.fv2-chat-reply-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  border: 1px solid rgba(81, 127, 165, 0.35);
  border-left: 3px solid #517fa5;
  border-radius: 6px;
  background: rgba(81, 127, 165, 0.09);
}

.fv2-chat-reply-composer[hidden] {
  display: none;
}

.fv2-chat-reply-composer span {
  display: block;
  color: var(--fv2-text-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.fv2-chat-reply-composer strong,
.fv2-chat-reply-composer p {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fv2-chat-reply-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--fv2-border);
  border-radius: 5px;
  background: #fff;
  color: var(--fv2-text-muted);
  cursor: pointer;
}

.fv2-chat-reply-clear:hover,
.fv2-chat-reply-clear:focus-visible {
  border-color: #a94442;
  color: #a94442;
  outline: none;
}

.fv2-chat-composer-tools {
  display: grid;
  gap: 8px;
}

.fv2-chat-picker-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.fv2-chat-picker-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  min-width: 36px;
  height: 32px;
  padding: 0;
}

.fv2-chat-tool-group {
  display: grid;
  gap: 6px;
}

.fv2-chat-tool-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.fv2-chat-tool-title {
  color: var(--fv2-text-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.fv2-chat-smiley-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
  gap: 8px;
}

.fv2-chat-smiley-button {
  width: 100%;
  min-height: 42px;
  padding: 0;
  border: 1px solid var(--fv2-border);
  border-radius: 5px;
  background: var(--fv2-surface);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.fv2-chat-smiley-button:hover,
.fv2-chat-gif-button:hover {
  border-color: var(--navbaraactivebc, #1f7a8c);
  box-shadow: 0 0 0 2px rgba(31, 122, 140, 0.12);
}

.fv2-chat-smiley-button:focus-visible,
.fv2-chat-gif-button:focus-visible {
  outline: 3px solid rgba(31, 122, 140, 0.22);
  outline-offset: 2px;
}

.fv2-chat-gif-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 8px;
}

.fv2-chat-gif-form {
  margin: 0;
  min-width: 0;
}

.fv2-chat-gif-button {
  display: grid;
  gap: 5px;
  width: 100%;
  min-width: 0;
  padding: 6px;
  border: 1px solid var(--fv2-border);
  border-radius: 6px;
  background: var(--fv2-surface);
  color: var(--bodytc);
  cursor: pointer;
  text-align: left;
}

.fv2-chat-gif-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.fv2-chat-gif-button img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
  background: #dddddd;
}

.fv2-chat-gif-button span {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fv2-chat-smiley-modal[hidden],
.fv2-chat-gif-modal[hidden] {
  display: none;
}

.fv2-chat-smiley-modal,
.fv2-chat-gif-modal {
  position: fixed;
  inset: 0;
  z-index: 20020;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.fv2-chat-smiley-backdrop,
.fv2-chat-gif-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.fv2-chat-smiley-dialog,
.fv2-chat-gif-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(820px, 94vw);
  max-height: 80vh;
  overflow: hidden;
  border: 1px solid var(--fv2-border);
  border-radius: 7px;
  background: var(--fv2-surface-strong);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
  color: var(--bodytc);
}

.fv2-chat-smiley-dialog {
  width: min(520px, 94vw);
}

.fv2-chat-smiley-dialog header,
.fv2-chat-gif-dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--fv2-border);
  background: var(--headerbc);
}

.fv2-chat-smiley-dialog h3,
.fv2-chat-gif-dialog h3 {
  margin: 0;
  font-size: 16px;
}

.fv2-chat-smiley-body,
.fv2-chat-gif-body {
  min-height: 0;
  overflow: auto;
  padding: 12px;
}

.fv2-chat-gif-upload-form {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(190px, 1.2fr) auto;
  gap: 8px;
  align-items: end;
  padding: 8px;
  border: 1px dashed var(--fv2-border);
  border-radius: 6px;
  background: var(--fv2-surface);
}

.fv2-chat-gif-upload-form input[type="file"] {
  padding: 4px 7px;
}

.fv2-chat-empty,
.fv2-chat-empty-state {
  color: var(--fv2-text-muted);
}

.fv2-chat-empty {
  margin: 8px;
}

.fv2-chat-empty-state {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  min-height: 260px;
}

.fv2-chat-empty-state p {
  margin: 0;
}

@media screen and (max-width: 980px) {
  .fv2-chat-page {
    display: block;
    height: auto;
    min-height: 100vh;
    overflow: auto;
  }

  .fv2-chat-new-form,
  .fv2-chat-layout {
    grid-template-columns: 1fr;
    height: auto;
  }

  .fv2-chat-conversations {
    max-height: 260px;
  }

  .fv2-chat-window {
    min-height: 560px;
  }

  .fv2-chat-window-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .fv2-chat-window-actions {
    justify-content: flex-start;
  }

  .fv2-chat-message {
    width: 92%;
  }

  .fv2-chat-message-meta {
    align-items: flex-start;
  }

  .fv2-chat-message-meta-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .fv2-chat-gif-list {
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  }

  .fv2-chat-gif-upload-form {
    grid-template-columns: 1fr;
  }
}

.fv2-ticket-page {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  height: 100vh;
  min-height: 0;
  overflow: hidden;
}

.fv2-ticket-page .fv2-admin-header {
  margin-bottom: 0;
}

.fv2-ticket-layout {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 8px;
  min-height: 0;
}

.fv2-ticket-list-panel,
.fv2-ticket-detail {
  min-height: 0;
  overflow: auto;
  background: var(--fv2-surface-strong);
  border: 1px solid var(--fv2-border);
  border-radius: 6px;
}

.fv2-ticket-list-panel {
  padding: 8px;
}

.fv2-ticket-filter,
.fv2-ticket-new form,
.fv2-ticket-editor {
  display: grid;
  gap: 8px;
}

.fv2-ticket-filter {
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  align-items: end;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--fv2-border);
}

.fv2-ticket-filter label,
.fv2-ticket-new label,
.fv2-ticket-editor label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 700;
}

.fv2-ticket-filter input,
.fv2-ticket-filter select,
.fv2-ticket-new input,
.fv2-ticket-new select,
.fv2-ticket-new textarea,
.fv2-ticket-editor input,
.fv2-ticket-editor select,
.fv2-ticket-editor textarea {
  min-height: 32px;
  padding: 5px 7px;
  border: 1px solid var(--fv2-border);
  border-radius: 4px;
  font: inherit;
  font-weight: 400;
}

.fv2-ticket-new textarea,
.fv2-ticket-editor textarea {
  resize: vertical;
}

.fv2-ticket-new {
  margin-top: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--fv2-border);
}

.fv2-ticket-new h2,
.fv2-ticket-list h2,
.fv2-ticket-detail-header h2,
.fv2-ticket-attachments h3,
.fv2-ticket-empty-state h2 {
  margin: 0;
  font-size: 15px;
}

.fv2-ticket-two,
.fv2-ticket-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.fv2-ticket-editor-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(150px, 0.7fr) minmax(150px, 0.7fr);
}

.fv2-ticket-list {
  margin-top: 8px;
}

.fv2-ticket-list h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.fv2-ticket-list h2 span {
  min-width: 24px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--fv2-surface);
  color: var(--fv2-text-muted);
  font-size: 12px;
  line-height: 22px;
  text-align: center;
}

.fv2-ticket-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 6px;
  padding: 8px;
  border: 1px solid var(--fv2-border);
  border-radius: 5px;
  background: var(--fv2-surface);
  color: var(--bodytc);
  text-decoration: none;
}

.fv2-ticket-row:hover,
.fv2-ticket-row-active {
  background: var(--navbaraactivebc);
  color: var(--navbaraactivetc);
}

.fv2-ticket-row-title {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fv2-ticket-row small {
  color: inherit;
  opacity: 0.76;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fv2-ticket-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 20px;
  margin: 0 3px 2px 0;
  padding: 2px 7px;
  border-radius: 10px;
  background: #e4e4e4;
  color: #333333;
  font-size: 11px;
  font-weight: 700;
}

.fv2-ticket-status-new {
  background: #e8f1f7;
  color: #255d86;
}

.fv2-ticket-status-in_progress {
  background: #eef2d8;
  color: #5d6d16;
}

.fv2-ticket-status-waiting {
  background: #f7ead3;
  color: #8a5f17;
}

.fv2-ticket-status-closed {
  background: #e3e3e3;
  color: #555555;
}

.fv2-ticket-severity-low {
  background: #e2f1e5;
  color: #2e6e38;
}

.fv2-ticket-severity-normal {
  background: #e9edf2;
  color: #435060;
}

.fv2-ticket-severity-high {
  background: #f8e6d0;
  color: #965517;
}

.fv2-ticket-severity-urgent {
  background: #f4d6d3;
  color: #9b2d24;
}

.fv2-ticket-detail {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.fv2-ticket-editor {
  padding: 10px;
  border-bottom: 1px solid var(--fv2-border);
}

.fv2-ticket-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.fv2-ticket-detail-header span {
  display: block;
  margin-top: 3px;
  color: var(--fv2-text-muted);
  font-size: 12px;
}

.fv2-ticket-full {
  grid-column: 1 / -1;
}

.fv2-ticket-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.fv2-ticket-attachments {
  padding: 10px;
  overflow: auto;
}

.fv2-ticket-attachments h3 {
  margin-bottom: 8px;
}

.fv2-ticket-attachment {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
  padding: 8px;
  border: 1px solid var(--fv2-border);
  border-radius: 5px;
  background: var(--fv2-surface);
  color: var(--bodytc);
  text-decoration: none;
}

.fv2-ticket-attachment span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.fv2-ticket-attachment small {
  color: var(--fv2-text-muted);
  white-space: nowrap;
}

.fv2-ticket-empty,
.fv2-ticket-empty-state {
  color: var(--fv2-text-muted);
}

.fv2-ticket-empty-state {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  min-height: 320px;
  padding: 12px;
}

.fv2-ticket-empty-state p {
  margin: 0;
}

@media screen and (max-width: 1180px) {
  .fv2-ticket-page {
    display: block;
    height: auto;
    min-height: 100vh;
    overflow: auto;
  }

  .fv2-ticket-layout,
  .fv2-ticket-filter,
  .fv2-ticket-two,
  .fv2-ticket-editor-grid {
    grid-template-columns: 1fr;
  }

  .fv2-ticket-list-panel,
  .fv2-ticket-detail {
    margin-bottom: 8px;
    overflow: visible;
  }

  .fv2-ticket-attachment {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .fv2-ticket-attachment small {
    grid-column: 2;
  }
}

.fv2-partner-page {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  height: 100vh;
  min-height: 0;
  overflow: hidden;
}

.fv2-partner-page .fv2-admin-header {
  margin-bottom: 0;
}

.fv2-partner-layout {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(0, 2fr);
  gap: 8px;
  min-height: 0;
}

.fv2-partner-sidebar,
.fv2-partner-detail {
  min-height: 0;
}

.fv2-partner-sidebar {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  overflow: hidden;
}

.fv2-partner-search,
.fv2-partner-results,
.fv2-partner-detail {
  background: var(--fv2-surface-strong);
  border: 1px solid var(--fv2-border);
  border-radius: 6px;
}

.fv2-partner-search {
  padding: 8px;
}

.fv2-partner-search-form,
.fv2-partner-form,
.fv2-partner-upload-form {
  display: grid;
  gap: 8px;
}

.fv2-partner-search-form label,
.fv2-partner-form label,
.fv2-partner-upload-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  font-weight: 700;
}

.fv2-partner-search-form input,
.fv2-partner-search-form select,
.fv2-partner-form input,
.fv2-partner-form select,
.fv2-partner-form textarea,
.fv2-partner-upload-form input,
.fv2-partner-upload-form select,
.fv2-partner-upload-form textarea {
  min-height: 32px;
  min-width: 0;
  padding: 5px 7px;
  border: 1px solid var(--fv2-border);
  border-radius: 4px;
  font: inherit;
  font-weight: 400;
}

.fv2-partner-form textarea,
.fv2-partner-upload-form textarea {
  resize: vertical;
}

.fv2-partner-search-actions,
.fv2-partner-actions,
.fv2-partner-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fv2-partner-search-actions,
.fv2-partner-actions {
  justify-content: flex-end;
}

.fv2-partner-actions form {
  margin: 0;
}

.fv2-partner-header-actions {
  flex-wrap: wrap;
}

.fv2-partner-search-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 92px;
  min-height: 32px;
  padding: 7px 12px;
  color: #ffffff;
}

.fv2-partner-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 32px;
  padding: 7px 12px;
  color: #ffffff;
}

.fv2-partner-actions .btn:not(.success):not(.info):not(.warning):not(.danger) {
  background: var(--default);
  color: var(--defaulttc);
}

.fv2-partner-actions .btn:not(.success):not(.info):not(.warning):not(.danger):hover {
  background: var(--defaulth);
  color: var(--defaulthtc);
}

.fv2-partner-results {
  min-height: 0;
  padding: 8px;
  overflow: auto;
}

.fv2-partner-results h2,
.fv2-partner-table-panel h3,
.fv2-partner-subform h3,
.fv2-partner-section h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.fv2-partner-results h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.fv2-partner-results h2 span {
  min-width: 24px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--fv2-surface);
  color: var(--fv2-text-muted);
  font-size: 12px;
  line-height: 22px;
  text-align: center;
}

.fv2-partner-result {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 6px;
  padding: 8px;
  border: 1px solid var(--fv2-border);
  border-radius: 5px;
  background: var(--fv2-surface);
  color: var(--bodytc);
  text-decoration: none;
}

.fv2-partner-result:hover,
.fv2-partner-result-active {
  background: var(--navbaraactivebc);
  color: var(--navbaraactivetc);
}

.fv2-partner-result span,
.fv2-partner-result small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fv2-partner-result span {
  font-weight: 700;
}

.fv2-partner-result small {
  color: inherit;
  opacity: 0.75;
}

.fv2-partner-detail {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
}

.fv2-partner-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid var(--fv2-border);
}

.fv2-partner-detail-header h2 {
  margin: 0;
  font-size: 16px;
}

.fv2-partner-detail-header span {
  display: block;
  margin-top: 3px;
  color: var(--fv2-text-muted);
  font-size: 12px;
}

.fv2-partner-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 8px 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--fv2-border);
}

.fv2-partner-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  color: var(--bodytc);
  text-decoration: none;
  white-space: nowrap;
}

.fv2-partner-tabs a:hover,
.fv2-partner-tabs a.active {
  background: var(--fv2-surface);
  border-color: var(--fv2-border);
  color: var(--bodytc);
}

.fv2-partner-tab-panel {
  min-height: 0;
  padding: 10px;
  overflow: auto;
}

.fv2-partner-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.fv2-partner-wide {
  grid-column: span 2;
}

.fv2-partner-subform,
.fv2-partner-section,
.fv2-partner-upload-form {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--fv2-border);
}

.fv2-partner-section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.fv2-partner-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px 10px;
  margin-top: 8px;
  padding: 8px;
  border: 1px solid var(--fv2-border);
  border-radius: 5px;
  background: var(--fv2-surface);
}

.fv2-partner-checkbox-grid strong {
  grid-column: 1 / -1;
}

.fv2-partner-checkbox-grid label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  font-weight: 400;
}

.fv2-partner-table-panel {
  margin-bottom: 8px;
}

.fv2-partner-table-wrap {
  overflow: auto;
  border: 1px solid var(--fv2-border);
  border-radius: 5px;
}

.fv2-partner-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 740px;
}

.fv2-partner-table th,
.fv2-partner-table td {
  padding: 7px 8px;
  border-bottom: 1px solid var(--fv2-border);
  text-align: left;
  vertical-align: top;
}

.fv2-partner-table th {
  background: var(--fv2-surface);
  font-weight: 700;
}

.fv2-partner-table tr:last-child td {
  border-bottom: 0;
}

.fv2-partner-row-actions {
  justify-content: flex-end;
  white-space: nowrap;
}

.fv2-partner-row-actions form {
  margin: 0;
}

.fv2-partner-row-actions .btn {
  min-width: 32px;
  padding: 5px 8px;
}

.fv2-partner-note-editor {
  min-height: 360px;
  padding: 10px;
  overflow: auto;
  border: 1px solid var(--fv2-border);
  border-radius: 5px;
  background: #ffffff;
  color: var(--bodytc);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
  outline: none;
}

.fv2-partner-note-editor:focus {
  border-color: var(--info);
  box-shadow: 0 0 0 2px rgba(81, 127, 165, 0.20);
}

.fv2-partner-note-editor p,
.fv2-partner-note-editor div {
  margin: 0 0 8px;
}

.fv2-partner-note-editor ul,
.fv2-partner-note-editor ol {
  margin: 6px 0 8px 22px;
  padding: 0;
}

.fv2-partner-note-editor li {
  margin: 3px 0;
}

.fv2-partner-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}

.fv2-partner-editor-toolbar button {
  min-width: 34px;
  min-height: 32px;
  border: 1px solid var(--fv2-border);
  border-radius: 4px;
  background: var(--fv2-surface);
  color: var(--bodytc);
  cursor: pointer;
}

.fv2-partner-editor-toolbar button:hover {
  background: var(--navbaraactivebc);
  color: var(--navbaraactivetc);
}

.fv2-partner-empty,
.fv2-partner-empty-state {
  color: var(--fv2-text-muted);
}

.fv2-partner-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 12px;
  text-align: center;
}

@media screen and (max-width: 1180px) {
  .fv2-partner-page {
    display: block;
    height: auto;
    min-height: 100vh;
    overflow: auto;
  }

  .fv2-partner-layout,
  .fv2-partner-sidebar,
  .fv2-partner-form-grid,
  .fv2-partner-checkbox-grid {
    grid-template-columns: 1fr;
  }

  .fv2-partner-sidebar,
  .fv2-partner-detail {
    overflow: visible;
    margin-bottom: 8px;
  }

  .fv2-partner-wide {
    grid-column: auto;
  }
}

.fv2-email-page {
  padding: 8px;
}

.fv2-email-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 8px;
  align-items: start;
}

.fv2-email-main {
  display: grid;
  gap: 8px;
}

.fv2-email-card,
.fv2-email-queue-panel {
  padding: 10px;
  background: var(--fv2-surface-strong);
  border: 1px solid var(--fv2-border);
  border-radius: 6px;
}

.fv2-email-card h2,
.fv2-email-queue-panel h2 {
  margin: 0 0 10px;
  font-size: 16px;
}

.fv2-email-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.fv2-email-card-title h2 {
  margin-bottom: 0;
}

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

.fv2-email-editor-block {
  margin-top: 10px;
}

.fv2-email-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 5px;
  margin-bottom: 6px;
}

.fv2-email-editor-toolbar label {
  display: flex;
  min-width: 90px;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  font-weight: 700;
}

.fv2-email-editor-toolbar select,
.fv2-email-editor-toolbar input[type="color"] {
  min-height: 32px;
  border: 1px solid var(--fv2-border);
  border-radius: 4px;
  background: var(--fv2-surface);
  color: var(--bodytc);
  font: inherit;
}

.fv2-email-editor-toolbar select {
  min-width: 96px;
  padding: 4px 6px;
}

.fv2-email-editor-toolbar input[type="color"] {
  width: 44px;
  padding: 2px;
}

.fv2-email-editor-toolbar .fv2-toolbar-color {
  min-width: 48px;
}

.fv2-email-editor-toolbar button {
  min-width: 34px;
  min-height: 32px;
  border: 1px solid var(--fv2-border);
  border-radius: 4px;
  background: var(--fv2-surface);
  color: var(--bodytc);
  cursor: pointer;
}

.fv2-email-editor-toolbar button:hover {
  background: var(--navbaraactivebc);
  color: var(--navbaraactivetc);
}

.fv2-email-rich-editor {
  min-height: 210px;
  padding: 10px;
  overflow: auto;
  border: 1px solid var(--fv2-border);
  border-radius: 5px;
  background: #ffffff;
  color: #1b2036;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  line-height: 1.45;
  outline: none;
}

.fv2-email-rich-editor:focus {
  border-color: var(--info);
  box-shadow: 0 0 0 2px rgba(81, 127, 165, 0.20);
}

.fv2-email-signature-editor {
  min-height: 130px;
}

.fv2-email-rich-editor p,
.fv2-email-rich-editor div {
  margin: 0 0 10px;
}

.fv2-email-rich-editor ul,
.fv2-email-rich-editor ol {
  margin: 6px 0 8px 22px;
  padding: 0;
}

.fv2-email-rich-editor table,
.fv-mail-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
}

.fv2-email-rich-editor th,
.fv-mail-table th {
  padding: 8px;
  background: #1b2036;
  color: #ffffff;
  border: 1px solid #1b2036;
  text-align: left;
}

.fv2-email-rich-editor td,
.fv-mail-table td {
  padding: 8px;
  background: #f7f8fb;
  color: #1b2036;
  border: 1px solid #d9dee8;
}

.fv-mail-button {
  display: inline-block;
  padding: 9px 14px;
  background: var(--info, #517fa5);
  color: var(--infotc, #ffffff) !important;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
}

.fv2-template-dialog[hidden] {
  display: none;
}

body.fv2-draft-modal-open {
  overflow: hidden;
}

.fv2-template-dialog {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.fv2-template-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 35, 0.58);
}

.fv2-template-dialog-panel {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(620px, 96vw);
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--fv2-border);
  border-radius: 6px;
  background: var(--fv2-surface);
  color: var(--bodytc);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.26);
}

.fv2-template-dialog-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.fv2-template-dialog-title h3 {
  margin: 0;
}

.fv2-template-dialog-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--fv2-border);
  border-radius: 4px;
  background: var(--fv2-surface);
  color: var(--bodytc);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.fv2-template-dialog-panel label {
  display: grid;
  gap: 4px;
  font-weight: 700;
}

.fv2-template-dialog-panel input,
.fv2-template-dialog-panel select {
  min-height: 34px;
  border: 1px solid var(--fv2-border);
  border-radius: 4px;
  background: var(--fv2-surface);
  color: var(--bodytc);
  font: inherit;
}

.fv2-template-dialog-panel input {
  padding: 6px 8px;
}

.fv2-template-dialog-variable-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.fv2-draft-preview-dialog .fv2-template-dialog-panel {
  width: min(980px, 96vw);
  max-height: calc(100vh - 40px);
  overflow: auto;
}

.fv2-draft-preview-dialog {
  z-index: 50000;
}

.fv2-draft-preview-dialog-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fv2-draft-preview-dialog-note {
  margin: 0;
  color: #415269;
  font-size: 13px;
  line-height: 1.45;
}

.fv2-draft-preview-dialog .fv2-draft-preview {
  margin: 0;
}

.fv2-email-source-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

.fv2-email-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  border: 1px solid var(--fv2-border);
  border-radius: 5px;
  background: var(--fv2-surface);
  color: var(--bodytc);
  text-decoration: none;
}

.fv2-email-chip.active {
  border-color: var(--info);
  box-shadow: 0 0 0 2px rgba(81, 127, 165, 0.14);
}

.fv2-email-chip small,
.fv2-email-chip em {
  color: var(--fv2-text-muted);
  font-size: 12px;
}

.fv2-email-queue-panel {
  position: sticky;
  top: 8px;
  max-height: calc(100vh - 86px);
  overflow: auto;
}

.fv2-email-queue-item {
  margin-bottom: 8px;
  padding: 8px;
  border: 1px solid var(--fv2-border);
  border-left: 5px solid var(--default);
  border-radius: 5px;
  background: var(--fv2-surface);
}

.fv2-email-status-sent {
  border-left-color: var(--success, #5cb85c);
}

.fv2-email-status-error {
  border-left-color: var(--danger, #d9534f);
}

.fv2-email-status-cancelled {
  border-left-color: var(--warning, #f0ad4e);
}

.fv2-email-status-sending {
  border-left-color: var(--info, #5bc0de);
}

.fv2-email-queue-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.fv2-email-queue-head strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.fv2-email-queue-head span {
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--fv2-surface-strong);
  border: 1px solid var(--fv2-border);
  font-size: 11px;
  font-weight: 700;
}

.fv2-email-queue-item dl {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 3px 7px;
  margin: 0;
  font-size: 12px;
}

.fv2-email-queue-item dt {
  color: var(--fv2-text-muted);
  font-weight: 700;
}

.fv2-email-queue-item dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.fv2-email-error {
  margin: 8px 0 0;
  padding: 7px;
  border-radius: 4px;
  background: rgba(217, 83, 79, 0.10);
  color: var(--danger, #d9534f);
  overflow-wrap: anywhere;
}

.fv2-email-queue-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.fv2-email-queue-actions .btn {
  padding: 5px 8px;
}

.fv2-email-empty {
  margin: 0;
  color: var(--fv2-text-muted);
}

@media screen and (max-width: 1180px) {
  .fv2-email-layout,
  .fv2-email-form-grid {
    grid-template-columns: 1fr;
  }

  .fv2-email-queue-panel {
    position: static;
    max-height: none;
  }
}

.fv2-product-page,
.fv2-product-import-page {
  padding: 8px;
}

.fv2-product-layout {
  display: grid;
  grid-template-columns: minmax(280px, 31%) minmax(0, 1fr);
  gap: 8px;
  height: calc(100vh - 58px);
  min-height: 0;
}

.fv2-product-sidebar,
.fv2-product-detail {
  min-height: 0;
  overflow: auto;
  background: var(--fv2-surface-strong);
  border: 1px solid var(--fv2-border);
  border-radius: 6px;
}

.fv2-product-sidebar {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.fv2-product-search {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid var(--fv2-border);
}

.fv2-product-search label,
.fv2-product-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 700;
}

.fv2-product-search input,
.fv2-product-search select,
.fv2-product-form-grid input,
.fv2-product-form-grid select {
  min-height: 32px;
  padding: 5px 7px;
  border: 1px solid var(--fv2-border);
  border-radius: 4px;
  font: inherit;
  font-weight: 400;
}

.fv2-product-search-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.fv2-product-search-actions .btn {
  justify-content: center;
  width: 100%;
}

.fv2-product-list {
  min-height: 0;
  overflow: auto;
  padding: 8px;
}

.fv2-product-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 6px;
  padding: 9px;
  border: 1px solid var(--fv2-border);
  border-radius: 5px;
  background: var(--fv2-surface);
  color: var(--bodytc);
  text-decoration: none;
}

.fv2-product-row:hover,
.fv2-product-row.active {
  border-color: var(--info);
  box-shadow: 0 0 0 2px rgba(81, 127, 165, 0.14);
}

.fv2-product-row span,
.fv2-product-row small,
.fv2-product-empty {
  color: var(--fv2-text-muted);
}

.fv2-product-detail {
  padding: 10px;
}

.fv2-product-titlebar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.fv2-product-titlebar h2 {
  margin: 0 0 2px;
  font-size: 18px;
}

.fv2-product-titlebar span {
  color: var(--fv2-text-muted);
}

.fv2-product-card {
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid var(--fv2-border);
  border-radius: 6px;
  background: var(--fv2-surface);
}

.fv2-product-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.fv2-product-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.fv2-product-form-grid .fv2-checkbox-line {
  min-height: 55px;
  padding-top: 20px;
}

.fv2-product-price-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.fv2-product-price-side,
.fv2-product-margin-control {
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--fv2-border);
  border-radius: 5px;
  background: var(--fv2-surface-strong);
}

.fv2-product-price-side {
  display: grid;
  gap: 8px;
}

.fv2-product-price-side h4 {
  margin: 0;
  font-size: 14px;
}

.fv2-product-price-side label,
.fv2-product-margin-control label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 700;
}

.fv2-product-price-side input,
.fv2-product-margin-control input {
  min-height: 32px;
  padding: 5px 7px;
  border: 1px solid var(--fv2-border);
  border-radius: 4px;
  font: inherit;
  font-weight: 400;
}

.fv2-product-margin-control {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  gap: 6px;
  align-content: center;
  align-items: end;
}

.fv2-product-margin-control .btn {
  width: 34px;
  min-width: 34px;
  min-height: 32px;
  padding: 6px;
}

.fv2-product-relation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.fv2-product-relation-box {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--fv2-border);
  border-radius: 5px;
  background: var(--fv2-surface-strong);
}

.fv2-product-relation-box h4 {
  margin: 0 0 8px;
  font-size: 14px;
}

.fv2-product-relation-form,
.fv2-product-document-form {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.fv2-product-relation-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.fv2-product-relation-form select,
.fv2-product-document-form input,
.fv2-product-document-form select {
  min-height: 32px;
  padding: 5px 7px;
  border: 1px solid var(--fv2-border);
  border-radius: 4px;
  font: inherit;
}

.fv2-product-document-form {
  grid-template-columns: minmax(180px, 240px) minmax(220px, 1fr) auto;
  align-items: end;
}

.fv2-product-document-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 700;
}

.fv2-product-relation-list {
  display: grid;
  gap: 6px;
}

.fv2-product-relation-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  padding: 7px;
  border: 1px solid var(--fv2-border);
  border-radius: 5px;
  background: var(--fv2-surface);
}

.fv2-product-relation-row a {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
  color: var(--bodytc);
  text-decoration: none;
}

.fv2-product-relation-row strong,
.fv2-product-relation-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fv2-product-relation-row span {
  color: var(--fv2-text-muted);
}

.fv2-product-relation-row form,
.fv2-product-document-table form {
  margin: 0;
}

.fv2-product-relation-row .btn,
.fv2-product-document-table .btn {
  min-width: 34px;
  min-height: 30px;
  padding: 6px 9px;
}

.fv2-product-document-table-wrap {
  overflow: auto;
}

.fv2-product-document-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--tabletdbc);
}

.fv2-product-document-table th,
.fv2-product-document-table td {
  padding: 7px;
  border: 1px solid var(--tabletdborder);
  color: var(--tabletdtc);
  text-align: left;
  vertical-align: middle;
}

.fv2-product-document-table th {
  background: var(--tablethbc);
  color: var(--tablethtc);
}

@media screen and (max-width: 1180px) {
  .fv2-product-layout {
    display: block;
    height: auto;
    min-height: 100vh;
    overflow: auto;
  }

  .fv2-product-sidebar,
  .fv2-product-detail {
    overflow: visible;
    margin-bottom: 8px;
  }

  .fv2-product-form-grid {
    grid-template-columns: 1fr;
  }

  .fv2-product-price-panel {
    grid-template-columns: 1fr;
  }

  .fv2-product-margin-control {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
  }

  .fv2-product-relation-grid,
  .fv2-product-document-form {
    grid-template-columns: 1fr;
  }

  .fv2-product-relation-form {
    grid-template-columns: 1fr;
  }
}

.fv2-order-page {
  padding: 8px;
}

.fv2-order-search {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) minmax(130px, 180px) minmax(130px, 180px) 140px 140px auto auto auto;
  gap: 8px;
  align-items: end;
  margin-bottom: 8px;
  padding: 8px;
  border: 1px solid var(--fv2-border);
  border-radius: 6px;
  background: var(--fv2-surface-strong);
}

.fv2-order-search label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
  font-weight: 700;
}

.fv2-order-search input,
.fv2-order-search select,
.fv2-order-form-grid input,
.fv2-order-form-grid textarea {
  min-height: 32px;
  padding: 5px 7px;
  border: 1px solid var(--fv2-border);
  border-radius: 4px;
  font: inherit;
  font-weight: 400;
}

.fv2-order-check {
  flex-direction: row !important;
  align-items: center;
  min-height: 32px;
}

.fv2-order-check input {
  min-height: auto;
}

.fv2-order-list-panel,
.fv2-order-editor-main,
.fv2-order-items-panel {
  min-height: 0;
  border: 1px solid var(--fv2-border);
  border-radius: 6px;
  background: var(--fv2-surface-strong);
}

.fv2-order-list-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: calc(100vh - 132px);
  margin-bottom: 8px;
  overflow: hidden;
}

.fv2-order-list-panel-compact {
  height: 260px;
}

.fv2-order-list-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--fv2-border);
}

.fv2-order-list-title h2 {
  margin: 0;
  font-size: 15px;
}

.fv2-order-list-title span {
  color: var(--fv2-text-muted);
}

.fv2-order-table-wrap,
.fv2-order-items-wrap {
  min-height: 0;
  overflow: auto;
}

.fv2-order-table,
.fv2-order-items-table {
  width: 100%;
  min-width: 1680px;
  border-collapse: collapse;
  background: var(--tabletdbc);
}

.fv2-order-items-table {
  min-width: 2300px;
}

.fv2-order-table th,
.fv2-order-table td,
.fv2-order-items-table th,
.fv2-order-items-table td {
  padding: 7px;
  border: 1px solid var(--tabletdborder);
  color: var(--tabletdtc);
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

.fv2-order-table th,
.fv2-order-items-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--tablethbc);
  color: var(--tablethtc);
}

.fv2-order-table tbody tr {
  cursor: pointer;
}

.fv2-order-table tbody tr:hover td,
.fv2-order-active-row td,
.fv2-order-items-table tbody tr:hover td {
  background: var(--tabletdhoverbc);
  color: var(--tabletdhovertc);
}

.fv2-order-table a {
  color: inherit;
  font-weight: 700;
}

.fv2-order-empty {
  padding: 18px !important;
  color: var(--fv2-text-muted);
  text-align: center !important;
}

.fv2-order-editor {
  display: grid;
  grid-template-rows: minmax(220px, 1fr) minmax(0, 2fr);
  gap: 8px;
  height: calc(100vh - 418px);
  min-height: 520px;
}

.fv2-order-detail-page .fv2-order-editor {
  height: calc(100vh - 82px);
}

.fv2-order-editor-main {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
}

.fv2-order-editor-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border-bottom: 1px solid var(--fv2-border);
}

.fv2-order-editor-header h2 {
  margin: 0 0 3px;
  font-size: 18px;
}

.fv2-order-editor-header span {
  color: var(--fv2-text-muted);
}

.fv2-order-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px 8px 0;
  border-bottom: 1px solid var(--fv2-border);
}

.fv2-order-tabs button {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--fv2-border);
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  background: var(--tabbc);
  color: var(--tabtc);
  cursor: pointer;
  font-weight: 700;
}

.fv2-order-tabs button:hover,
.fv2-order-tabs button.active {
  background: var(--tabhoverbc);
  color: var(--tabhovertc);
}

.fv2-order-tab-panel {
  display: none;
  min-height: 0;
  overflow: auto;
  padding: 10px;
}

.fv2-order-tab-panel.active {
  display: block;
}

.fv2-order-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.fv2-order-form-grid label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
  font-weight: 700;
}

.fv2-order-field-wide {
  grid-column: span 2;
}

.fv2-order-form-grid textarea {
  min-height: 82px;
  resize: vertical;
}

.fv2-order-notes-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.fv2-order-notes-stack label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
  font-weight: 700;
}

.fv2-order-notes-stack textarea {
  width: 100%;
  min-height: 72px;
  padding: 5px 7px;
  border: 1px solid var(--fv2-border);
  border-radius: 4px;
  font: inherit;
  font-weight: 400;
  resize: vertical;
}

.fv2-order-notes-stack .fv2-order-field-wide {
  grid-column: auto;
}

.fv2-order-items-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
}

.fv2-order-item-add {
  padding: 8px 10px;
  border-bottom: 1px solid var(--fv2-border);
  background: var(--fv2-surface);
}

.fv2-order-item-add form {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(320px, 1.3fr) auto;
  gap: 8px;
  align-items: end;
}

.fv2-order-item-add label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
  font-weight: 700;
}

.fv2-order-item-add input,
.fv2-order-item-add select,
.fv2-order-items-table input,
.fv2-order-items-table textarea {
  width: 100%;
  min-height: 30px;
  padding: 4px 6px;
  border: 1px solid var(--fv2-border);
  border-radius: 4px;
  background: var(--fv2-surface-strong);
  color: var(--fv2-text);
  font: inherit;
  font-weight: 400;
}

.fv2-order-items-edit-form {
  display: grid;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.fv2-order-items-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--fv2-border);
}

.fv2-order-items-table td {
  min-width: 92px;
  white-space: normal;
}

.fv2-order-items-table td:first-child {
  min-width: 52px;
  width: 52px;
  text-align: center;
}

.fv2-order-items-table textarea {
  min-width: 180px;
  min-height: 48px;
  resize: vertical;
}

.fv2-order-row-delete {
  width: 32px;
  min-width: 32px;
  padding-right: 0;
  padding-left: 0;
}

.fv2-order-detail-page {
  padding: 0;
  overflow: hidden;
  background: #ededed;
}

.fv2-order-detail-page .fv2-admin-header {
  display: none;
}

.fv2-cm-order-editor {
  grid-template-rows: auto minmax(0, 0.30fr) minmax(0, 0.70fr);
  gap: 3px;
  height: calc(100vh - 6px);
  min-height: 0;
  padding: 3px;
  color: #161616;
  font-size: 11px;
  line-height: 1.2;
}

.fv2-cm-ribbon {
  display: flex;
  min-height: 74px;
  align-items: stretch;
  gap: 1px;
  overflow-x: auto;
  overflow-y: hidden;
  border-bottom: 1px solid #b8b8b8;
  background: #d9d9d9;
}

.fv2-cm-ribbon-btn {
  display: inline-flex;
  min-width: 58px;
  max-width: 88px;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 6px;
  border: 0;
  border-right: 1px solid #c5c5c5;
  background: linear-gradient(#eeeeee, #d9d9d9);
  color: #202020;
  font: inherit;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.fv2-cm-ribbon-btn i {
  color: #4774a5;
  font-size: 22px;
}

.fv2-cm-ribbon-btn span {
  display: block;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

.fv2-cm-ribbon-btn:hover,
.fv2-cm-ribbon-btn:focus {
  background: #c7ddf4;
  color: #111;
}

.fv2-cm-ribbon-btn.primary {
  background: #cfe4fb;
  outline: 1px solid #9fb8d4;
}

.fv2-cm-ribbon-btn:disabled {
  color: #8a8a8a;
  cursor: default;
  opacity: 0.68;
}

.fv2-cm-ribbon-btn:disabled i {
  color: #8f8f8f;
}

.fv2-cm-editor-main,
.fv2-cm-items-panel {
  border: 1px solid #aaa;
  border-radius: 0;
  background: #e8e8e8;
}

.fv2-cm-editor-main {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.fv2-cm-titlebar,
.fv2-cm-section-title {
  min-height: 22px;
  padding: 3px 7px;
  border-bottom: 1px solid #bcbcbc;
  background: #d1d1d1;
  color: #1a1a1a;
}

.fv2-cm-titlebar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.fv2-cm-titlebar span,
.fv2-cm-section-title h2 {
  font-size: 12px;
  font-weight: 700;
}

.fv2-cm-titlebar strong {
  font-weight: 700;
}

.fv2-cm-tabs {
  gap: 0;
  padding: 3px 4px 0;
  background: #eeeeee;
}

.fv2-cm-tabs button {
  min-height: 22px;
  padding: 3px 9px;
  border-color: #a9a9a9;
  border-radius: 0;
  background: #e7e7e7;
  color: #111;
  font-size: 11px;
  font-weight: 400;
}

.fv2-cm-tabs button.active {
  background: #fff;
  color: #111;
  font-weight: 700;
}

.fv2-cm-tabs button:hover {
  background: #f8f8f8;
  color: #111;
}

.fv2-cm-editor-main .fv2-order-tab-panel {
  padding: 3px;
  background: #eeeeee;
}

.fv2-cm-main-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(250px, 0.9fr) minmax(260px, 1.08fr) minmax(230px, 0.72fr);
  gap: 4px;
  height: 100%;
  min-height: 0;
}

.fv2-cm-two-col {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(520px, 1.2fr);
  gap: 6px;
  min-height: 0;
}

.fv2-cm-group {
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 18px 5px 5px;
  overflow: auto;
  border: 1px solid #b5b5b5;
  background: #efefef;
}

.fv2-cm-group legend {
  padding: 0 5px;
  color: #222;
  font-size: 11px;
  font-weight: 700;
}

.fv2-cm-field {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 4px;
  align-items: center;
  min-width: 0;
  margin: 0 0 4px;
  font-weight: 400;
}

.fv2-cm-field.wide {
  grid-column: 1 / -1;
}

.fv2-cm-field span {
  overflow: hidden;
  color: #222;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fv2-cm-field input,
.fv2-cm-field select,
.fv2-cm-field textarea,
.fv2-cm-toolbar-field input,
.fv2-cm-toolbar-field select {
  width: 100%;
  min-width: 0;
  min-height: 20px;
  padding: 2px 4px;
  border: 1px solid #c5c5c5;
  border-radius: 0;
  background: #f8f8f8;
  color: #111;
  box-sizing: border-box;
  font: inherit;
}

.fv2-cm-field input[readonly] {
  background: #f2f2f2;
  color: #333;
}

.fv2-cm-field textarea {
  min-height: 88px;
  resize: none;
}

.fv2-cm-status-group {
  padding: 18px 4px 4px;
}

.fv2-cm-status-box {
  display: grid;
  grid-template-rows: 56px auto auto;
  gap: 3px;
  height: 100%;
}

.fv2-cm-status-box > i {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #248a39;
  font-size: 34px;
  text-shadow: 0 1px 0 #fff;
}

.fv2-cm-status-box.cancelled > i {
  color: #c9302c;
}

.fv2-cm-totals .fv2-cm-field {
  grid-template-columns: 82px minmax(0, 1fr);
}

.fv2-cm-inline-action,
.fv2-cm-row-action {
  min-height: 20px !important;
  padding: 3px 7px !important;
  border-radius: 0 !important;
  font-size: 11px !important;
}

.fv2-cm-inline-action {
  display: inline-flex !important;
  width: max-content;
  margin: 0 0 4px 90px;
  align-items: center;
  gap: 4px;
}

.fv2-cm-address-group {
  height: 100%;
}

.fv2-cm-address-row {
  display: grid;
  grid-template-columns: 78px minmax(170px, 1.05fr) minmax(130px, 0.8fr) minmax(82px, 0.45fr) minmax(120px, 0.7fr) minmax(210px, 1.2fr) auto;
  gap: 4px;
  align-items: center;
  margin-bottom: 5px;
}

.fv2-cm-address-row .fv2-cm-field {
  grid-template-columns: 0 minmax(0, 1fr);
  margin: 0;
}

.fv2-cm-address-row .fv2-cm-field span {
  display: none;
}

.fv2-cm-finance-head {
  display: grid;
  grid-template-columns: 1fr 0.5fr 0.5fr;
  gap: 4px;
  margin-bottom: 4px;
}

.fv2-cm-small-table-wrap {
  width: 100%;
  min-height: 0;
  overflow: auto;
  border: 1px solid #b6b6b6;
  background: #fff;
}

.fv2-cm-small-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: #fff;
  color: #111;
}

.fv2-cm-small-table th,
.fv2-cm-small-table td {
  padding: 3px 5px;
  border: 1px solid #c7c7c7;
  text-align: left;
  white-space: nowrap;
}

.fv2-cm-small-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #e5e5e5;
  color: #333;
  font-weight: 700;
}

.fv2-cm-small-table tbody tr:nth-child(odd) td {
  background: #f7f7f7;
}

.fv2-cm-small-table td.num {
  text-align: right;
  font-weight: 700;
}

.fv2-cm-alert-row {
  color: #d00000;
  font-weight: 700;
  text-align: center !important;
}

.fv2-cm-project-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(360px, 1fr);
  gap: 4px 28px;
  max-width: 1250px;
}

.fv2-cm-notes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  height: 100%;
}

.fv2-cm-notes-grid .fv2-cm-field,
.fv2-cm-notes2-stack .fv2-cm-field {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  margin: 0;
}

.fv2-cm-notes-grid textarea {
  min-height: 110px;
  height: 100%;
}

.fv2-cm-custom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 6px;
  height: 100%;
}

.fv2-cm-side-list {
  overflow: auto;
  border: 1px solid #b5b5b5;
  background: #fff;
}

.fv2-cm-side-list strong,
.fv2-cm-side-list span {
  display: block;
  padding: 4px 6px;
  border-bottom: 1px solid #ddd;
}

.fv2-cm-history-table .danger {
  color: #c9302c;
}

.fv2-cm-procurement-grid {
  grid-template-columns: minmax(260px, 0.45fr) minmax(620px, 1.55fr);
}

.fv2-cm-stock-grid,
.fv2-cm-service-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.52fr) minmax(360px, 0.8fr) minmax(520px, 1fr);
  gap: 6px;
  height: 100%;
}

.fv2-cm-issued-materials {
  min-height: 46px;
  margin-top: 5px;
  padding: 5px;
  border: 1px solid #c7c7c7;
  background: #fff;
}

.fv2-cm-notes2-stack {
  display: grid;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 8px;
  height: 100%;
}

.fv2-cm-notes2-stack textarea {
  min-height: 44px;
  height: 100%;
}

.fv2-cm-items-panel {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.fv2-cm-items-panel .fv2-order-items-edit-form {
  height: 100%;
  grid-template-rows: minmax(0, 1fr);
}

.fv2-cm-items-panel .fv2-order-items-wrap {
  height: 100%;
  min-height: 0;
  overflow: auto;
}

.fv2-cm-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fv2-cm-section-title h2 {
  margin: 0;
}

.fv2-cm-item-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  background: #eeeeee;
}

.fv2-cm-item-toolbar form {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: minmax(120px, 170px) minmax(280px, 1fr) auto;
  gap: 5px;
  align-items: center;
}

.fv2-cm-toolbar-field {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 4px;
  align-items: center;
  margin: 0;
}

.fv2-cm-item-toolbar .btn {
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 0;
  font-size: 11px;
}

.fv2-cm-items-table {
  min-width: 2100px;
  font-size: 11px;
}

.fv2-cm-items-table th,
.fv2-cm-items-table td {
  padding: 2px 4px;
  white-space: nowrap;
}

.fv2-cm-items-table td {
  min-width: 86px;
}

.fv2-cm-items-table td:nth-child(2),
.fv2-cm-items-table td:nth-child(3),
.fv2-cm-items-table td:nth-child(4),
.fv2-cm-items-table td:nth-child(8),
.fv2-cm-items-table td:nth-child(9),
.fv2-cm-items-table td:nth-child(10),
.fv2-cm-items-table td:nth-child(11) {
  text-align: right;
}

.fv2-cm-items-table td:first-child {
  min-width: 28px;
  width: 28px;
}

.fv2-cm-items-table input {
  min-height: 20px;
  padding: 1px 3px;
  border-radius: 0;
  font-size: 11px;
}

.fv2-cm-items-table .fv2-order-row-delete {
  min-width: 23px;
  width: 23px;
  min-height: 20px;
  padding: 1px;
  border-radius: 0;
}

.fv2-cm-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  background: rgba(0, 0, 0, 0.55);
}

.fv2-cm-modal {
  display: grid;
  width: min(1180px, 92vw);
  max-height: 88vh;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #808080;
  background: #eeeeee;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
  color: #111;
  font-size: 12px;
}

.fv2-cm-address-modal {
  width: min(1340px, 94vw);
  grid-template-rows: auto minmax(0, 1fr);
}

.fv2-cm-modal header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid #b8b8b8;
  background: #d1d1d1;
}

.fv2-cm-modal h2,
.fv2-cm-modal h3 {
  margin: 0;
  font-size: 14px;
}

.fv2-cm-modal-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  padding: 8px;
  border-bottom: 1px solid #c7c7c7;
}

.fv2-cm-modal-search label,
.fv2-cm-address-form label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
  font-weight: 700;
}

.fv2-cm-modal input,
.fv2-cm-modal select {
  min-height: 24px;
  padding: 3px 5px;
  border: 1px solid #aaa;
  border-radius: 0;
  background: #fff;
  color: #111;
  font: inherit;
}

.fv2-cm-modal-table-wrap {
  min-height: 0;
  overflow: auto;
  padding: 8px;
}

.fv2-cm-modal-table-wrap form {
  margin: 0;
}

.fv2-cm-modal-columns {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1.3fr) minmax(330px, 0.7fr);
  gap: 10px;
  overflow: auto;
  padding: 8px;
}

.fv2-cm-address-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding: 8px;
  border: 1px solid #c3c3c3;
  background: #f7f7f7;
}

.fv2-cm-address-form .wide,
.fv2-cm-address-form button {
  grid-column: 1 / -1;
}

.fv2-cm-check {
  flex-direction: row !important;
  align-items: center;
  padding-top: 18px;
}

.fv2-cm-check input {
  width: 16px;
  min-height: auto;
}

.fv2-eo-page .fv2-admin-header-actions form,
.fv2-eo-shipments form {
  margin: 0;
}

.fv2-eo-check-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 8px;
  border: 1px solid var(--fv2-border);
  border-radius: 6px;
  background: var(--fv2-surface);
}

.fv2-eo-check-list > span {
  flex: 0 0 100%;
  font-weight: 700;
}

.fv2-eo-check-list label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
}

.fv2-eo-search {
  grid-template-columns: minmax(180px, 240px) minmax(280px, 1fr) auto auto auto;
}

.fv2-eo-layout {
  display: grid;
  grid-template-columns: minmax(260px, 32%) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.fv2-eo-summary,
.fv2-eo-create-form,
.fv2-eo-shipments {
  padding: 10px;
  border: 1px solid var(--fv2-border);
  border-radius: 6px;
  background: var(--fv2-surface-strong);
}

.fv2-eo-summary h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.fv2-eo-summary dl {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 6px 8px;
  margin: 0;
}

.fv2-eo-summary dt {
  color: var(--fv2-text-muted);
  font-weight: 700;
}

.fv2-eo-summary dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.fv2-eo-create-form h3 {
  margin: 12px 0 8px;
  padding-top: 10px;
  border-top: 1px solid var(--fv2-border);
  font-size: 15px;
}

.fv2-eo-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  gap: 8px;
}

.fv2-eo-form-grid label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
  font-weight: 700;
}

.fv2-eo-form-grid input,
.fv2-eo-form-grid select,
.fv2-eo-form-grid textarea {
  width: 100%;
  min-height: 32px;
  padding: 5px 7px;
  border: 1px solid var(--fv2-border);
  border-radius: 4px;
  background: var(--fv2-surface-strong);
  color: var(--fv2-text);
  box-sizing: border-box;
  font: inherit;
  font-weight: 400;
}

.fv2-eo-wide {
  grid-column: 1 / -1;
}

.fv2-eo-shipments {
  margin-top: 10px;
}

.fv2-pl-page .fv2-admin-header-actions {
  display: flex;
  gap: 8px;
}

.fv2-pl-page #overlay {
  background-color: rgba(0, 0, 0, 0.52);
}

.fv2-pl-overlay-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 22px;
  border-radius: 8px;
  background: rgba(20, 20, 20, 0.72);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

.fv2-pl-overlay-text {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

body.fv2-overlay-open {
  cursor: progress;
}

.fv2-pl-search {
  grid-template-columns: minmax(220px, 280px) minmax(280px, 1fr) auto auto;
}

.fv2-pl-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
  gap: 10px;
  align-items: start;
}

.fv2-pl-step-panel {
  margin-top: 10px;
}

.fv2-pl-form-grid {
  margin-bottom: 10px;
}

.fv2-pl-step-panel .fv2-order-list-title {
  gap: 10px;
  margin-bottom: 12px;
}

.fv2-pl-step-panel form {
  display: block;
  padding: 14px 14px 16px;
}

.fv2-pl-step-panel > .fv2-inline-note,
.fv2-pl-step-panel > .fv2-admin-message,
.fv2-pl-step-panel > .fv2-pl-courier-summary,
.fv2-pl-step-panel > .fv2-admin-actions,
.fv2-pl-step-panel > .fv2-pl-courier-form,
.fv2-pl-step-panel > .fv2-pl-note-items {
  margin-left: 14px;
  margin-right: 14px;
}

.fv2-pl-step-panel > .fv2-inline-note,
.fv2-pl-step-panel > .fv2-admin-message {
  margin-top: 14px;
  margin-bottom: 14px;
}

.fv2-pl-note-list {
  min-width: 0;
}

.fv2-pl-note-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fv2-pl-note-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid var(--fv2-border);
  border-radius: 6px;
  background: var(--fv2-surface);
  color: inherit;
  text-decoration: none;
}

.fv2-pl-note-item strong,
.fv2-pl-note-item span,
.fv2-pl-note-item small {
  overflow-wrap: anywhere;
}

.fv2-pl-note-item.active {
  border-color: var(--fv2-accent);
  box-shadow: inset 0 0 0 1px var(--fv2-accent);
}

.fv2-pl-note-item:hover {
  background: var(--fv2-surface-strong);
}

.fv2-pl-qty-input {
  width: 100%;
  min-width: 110px;
  min-height: 32px;
  padding: 5px 7px;
  border: 1px solid var(--fv2-border);
  border-radius: 4px;
  background: var(--fv2-surface-strong);
  color: var(--fv2-text);
  box-sizing: border-box;
  font: inherit;
}

.fv2-pl-items-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  margin: 2px 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--fv2-border);
  border-radius: 6px;
  background: var(--fv2-surface);
}

.fv2-pl-toggle-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 700;
}

.fv2-pl-toggle-all input[type="checkbox"],
.fv2-pl-check-col input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

.fv2-pl-step-panel .fv2-order-items-wrap {
  overflow-x: auto;
  padding-bottom: 2px;
}

.fv2-pl-step-panel .fv2-order-items-table {
  width: 100%;
  min-width: 1080px;
  table-layout: fixed;
}

.fv2-pl-step-panel .fv2-order-items-table th,
.fv2-pl-step-panel .fv2-order-items-table td {
  padding: 9px 10px;
  vertical-align: top;
  line-height: 1.4;
}

.fv2-pl-step-panel .fv2-order-items-table th {
  white-space: nowrap;
}

.fv2-pl-step-panel .fv2-order-items-table td {
  overflow-wrap: anywhere;
}

.fv2-pl-check-col {
  width: 90px;
  text-align: center;
}

.fv2-pl-step-panel .fv2-admin-actions {
  margin-top: 14px;
}

.fv2-pl-step-panel .fv2-admin-actions .btn,
.fv2-pl-page .fv2-admin-actions .btn {
  margin-right: 8px;
}

.fv2-pl-step-panel > .fv2-admin-actions {
  margin-top: 12px;
  margin-bottom: 12px;
}

.fv2-pl-courier-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid var(--fv2-border);
  border-radius: 6px;
  background: var(--fv2-surface);
}

.fv2-pl-courier-summary > div {
  min-width: 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.fv2-pl-courier-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  margin-bottom: 10px;
}

.fv2-pl-courier-form label {
  display: flex;
  min-width: 220px;
  flex-direction: column;
  gap: 4px;
  font-weight: 700;
}

.fv2-pl-courier-form select {
  width: 100%;
  min-height: 32px;
  padding: 5px 7px;
  border: 1px solid var(--fv2-border);
  border-radius: 4px;
  background: var(--fv2-surface-strong);
  color: var(--fv2-text);
  box-sizing: border-box;
  font: inherit;
  font-weight: 400;
}

.fv2-pl-note-items {
  margin-top: 10px;
}

@media screen and (max-width: 1180px) {
  .fv2-order-search,
  .fv2-order-form-grid {
    grid-template-columns: 1fr;
  }

  .fv2-order-list-panel,
  .fv2-order-list-panel-compact,
  .fv2-order-editor {
    height: auto;
    min-height: 0;
  }

  .fv2-order-editor {
    display: block;
  }

  .fv2-order-editor-main,
  .fv2-order-items-panel {
    margin-bottom: 8px;
  }

  .fv2-order-item-add form {
    grid-template-columns: 1fr;
  }

  .fv2-order-field-wide {
    grid-column: auto;
  }

  .fv2-eo-search,
  .fv2-eo-layout,
  .fv2-eo-form-grid {
    grid-template-columns: 1fr;
  }

  .fv2-pl-search,
  .fv2-pl-layout,
  .fv2-pl-courier-summary {
    grid-template-columns: 1fr;
  }

  .fv2-pl-items-toolbar {
    align-items: stretch;
  }

  .fv2-pl-step-panel .fv2-order-items-table {
    min-width: 920px;
  }

  .fv2-pl-step-panel form {
    padding: 12px;
  }

  .fv2-pl-step-panel > .fv2-inline-note,
  .fv2-pl-step-panel > .fv2-admin-message,
  .fv2-pl-step-panel > .fv2-pl-courier-summary,
  .fv2-pl-step-panel > .fv2-admin-actions,
  .fv2-pl-step-panel > .fv2-pl-courier-form,
  .fv2-pl-step-panel > .fv2-pl-note-items {
    margin-left: 12px;
    margin-right: 12px;
  }

  .fv2-pl-courier-form {
    align-items: stretch;
  }

  .fv2-pl-courier-form label,
  .fv2-pl-qty-input {
    width: 100%;
  }
}

.fv2-template-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.8fr);
  gap: 10px;
  align-items: start;
}

.fv2-template-card {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--fv2-border);
  border-radius: 6px;
  background: var(--fv2-surface-strong);
}

.fv2-template-editor-card {
  grid-row: span 2;
}

.fv2-template-card h2 {
  margin: 0 0 10px;
  font-size: 16px;
}

.fv2-template-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.fv2-template-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--fv2-border);
  border-radius: 6px;
  background: var(--fv2-surface);
}

.fv2-template-tools label {
  display: flex;
  min-width: 260px;
  flex: 1 1 280px;
  flex-direction: column;
  gap: 4px;
  font-weight: 700;
}

.fv2-template-tools select {
  min-height: 32px;
  padding: 5px 7px;
  border: 1px solid var(--fv2-border);
  border-radius: 4px;
  font: inherit;
}

.fv2-template-rich-editor {
  min-height: 360px;
}

.fv2-template-item-table-builder {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--fv2-border);
  border-radius: 6px;
  background: var(--fv2-surface);
}

.fv2-template-item-table-builder div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.fv2-template-item-table-builder label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
}

.fv2-global-variable-token {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 7px 9px;
  border: 1px solid var(--fv2-border);
  border-radius: 4px;
  background: var(--fv2-surface);
}

.fv2-global-variable-token span {
  font-weight: 700;
}

.fv2-global-variable-token strong {
  font-family: "Courier New", Courier, monospace;
  font-weight: 700;
}

#Fv2GlobalVariables textarea {
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
}

.fv2-template-table-wrap {
  max-height: 320px;
  margin-top: 10px;
  overflow: auto;
  border: 1px solid var(--fv2-border);
  border-radius: 6px;
}

.fv2-template-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: var(--tabletdbc);
}

.fv2-template-table th,
.fv2-template-table td {
  padding: 7px;
  border: 1px solid var(--tabletdborder);
  color: var(--tabletdtc);
  text-align: left;
  vertical-align: top;
}

.fv2-template-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--tablethbc);
  color: var(--tablethtc);
}

.fv2-template-table tbody tr:hover td {
  background: var(--tabletdhoverbc);
  color: var(--tabletdhovertc);
}

.fv2-inline-form {
  margin-top: 10px;
}

.fv2-admin-header-actions .fv2-inline-form {
  margin-top: 0;
}

.fv2-email-rich-editor img {
  max-width: 100%;
  height: auto;
}

@media screen and (max-width: 1280px) {
  .fv2-template-layout,
  .fv2-template-top-grid {
    grid-template-columns: 1fr;
  }

  .fv2-template-editor-card {
    grid-row: auto;
  }
}

.fv2-sapi-page {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px;
}

.fv2-sapi-hero,
.fv2-sapi-section,
.fv2-sapi-kpis article {
  border: 1px solid var(--fv2-border);
  border-radius: 6px;
  background: var(--fv2-surface-strong);
}

.fv2-sapi-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 12px;
  align-items: center;
  padding: 14px;
}

.fv2-sapi-hero span,
.fv2-sapi-muted,
.fv2-sapi-kpis small {
  color: var(--fv2-text-muted);
}

.fv2-sapi-hero h2 {
  margin: 3px 0 6px;
  font-size: 22px;
}

.fv2-sapi-hero p {
  max-width: 920px;
  margin: 0;
  line-height: 1.45;
}

.fv2-sapi-health {
  display: grid;
  min-height: 112px;
  place-items: center;
  padding: 10px;
  border: 1px solid var(--info);
  border-radius: 6px;
  background: var(--fv2-surface);
  text-align: center;
}

.fv2-sapi-health strong {
  font-size: 30px;
}

.fv2-sapi-health span {
  font-weight: 700;
}

.fv2-sapi-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.fv2-sapi-kpis article {
  display: grid;
  gap: 3px;
  padding: 10px;
}

.fv2-sapi-kpis strong {
  font-size: 24px;
}

.fv2-sapi-section {
  padding: 10px;
}

.fv2-sapi-interface-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}

.fv2-sapi-module-launcher {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}

.fv2-sapi-module-launcher a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--fv2-border);
  border-radius: 5px;
  background: var(--fv2-surface);
  color: var(--bodytc);
  font-weight: 700;
  text-decoration: none;
}

.fv2-sapi-module-launcher a:hover {
  background: var(--navbaraactivebc);
  color: var(--navbaraactivetc);
}

.fv2-sapi-interface-card {
  display: grid;
  gap: 5px;
  min-height: 132px;
  padding: 10px;
  border: 1px solid var(--fv2-border);
  border-radius: 5px;
  background: var(--fv2-surface);
}

.fv2-sapi-interface-card i {
  color: var(--info);
  font-size: 18px;
}

.fv2-sapi-interface-card h3 {
  margin: 0;
  font-size: 15px;
}

.fv2-sapi-interface-card p {
  margin: 0;
  color: var(--fv2-text-muted);
  line-height: 1.35;
}

.fv2-sapi-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 10px;
  align-items: start;
}

.fv2-sapi-side {
  position: sticky;
  top: 8px;
}

.fv2-sapi-group-title {
  margin: 12px 0 6px;
  font-size: 15px;
}

.fv2-sapi-table-wrap {
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--fv2-border);
  border-radius: 5px;
}

.fv2-sapi-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.fv2-sapi-table th,
.fv2-sapi-table td {
  padding: 8px;
  border-bottom: 1px solid var(--fv2-border);
  text-align: left;
  vertical-align: top;
}

.fv2-sapi-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--fv2-surface);
}

.fv2-sapi-table tbody tr:hover {
  background: var(--tabletrhbc);
  color: var(--tabletrhtc);
}

.fv2-sapi-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.fv2-sapi-pill.ok {
  background: rgba(92, 184, 92, 0.15);
  color: var(--success);
}

.fv2-sapi-pill.missing {
  background: rgba(240, 173, 78, 0.18);
  color: var(--warning);
}

.fv2-sapi-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fv2-sapi-steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--fv2-border);
  border-radius: 5px;
  background: var(--fv2-surface);
}

.fv2-sapi-steps span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--info);
  color: var(--infotc);
  font-weight: 700;
}

.fv2-sapi-steps strong {
  display: block;
  margin-bottom: 3px;
}

.fv2-sapi-steps p {
  margin: 0;
  color: var(--fv2-text-muted);
  line-height: 1.35;
}

.fv2-sapi-note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.fv2-sapi-note-grid article {
  padding: 10px;
  border: 1px solid var(--fv2-border);
  border-radius: 5px;
  background: var(--fv2-surface);
}

.fv2-sapi-note-grid p {
  margin: 5px 0 0;
  color: var(--fv2-text-muted);
  line-height: 1.4;
}

@media screen and (max-width: 1120px) {
  .fv2-sapi-layout,
  .fv2-sapi-hero,
  .fv2-sapi-note-grid,
  .fv2-sapi-kpis {
    grid-template-columns: 1fr;
  }

  .fv2-sapi-side {
    position: static;
  }
}

.fv2-sapi-module-page {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px;
}

.fv2-sapi-module-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--fv2-border);
  border-radius: 6px;
  background: var(--fv2-surface-strong);
}

.fv2-sapi-module-nav a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 6px 9px;
  border: 1px solid var(--fv2-border);
  border-radius: 5px;
  background: var(--fv2-surface);
  color: var(--bodytc);
  font-weight: 700;
  text-decoration: none;
}

.fv2-sapi-module-nav a:hover,
.fv2-sapi-module-nav a.active {
  background: var(--navbaraactivebc);
  color: var(--navbaraactivetc);
}

.fv2-sapi-module-intro {
  padding: 10px;
  border: 1px solid var(--fv2-border);
  border-radius: 6px;
  background: var(--fv2-surface-strong);
}

.fv2-sapi-module-intro p {
  margin: 0;
  line-height: 1.4;
}

.fv2-sapi-module-intro ul {
  margin: 8px 0 0 18px;
  padding: 0;
  color: var(--fv2-text-muted);
}

.fv2-sapi-search-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px;
}

.fv2-sapi-search-form label {
  display: grid;
  min-width: min(360px, 100%);
  gap: 3px;
  font-weight: 700;
}

.fv2-sapi-search-form input {
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid var(--fv2-border);
  border-radius: 4px;
  background: var(--fv2-surface);
  color: var(--bodytc);
  font: inherit;
}

.fv2-sapi-search-form.compact {
  margin: 0;
}

.fv2-sapi-search-form.compact input {
  width: min(260px, 50vw);
}

.fv2-sapi-record-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.fv2-sapi-record-form label {
  display: grid;
  gap: 4px;
  font-weight: 700;
}

.fv2-sapi-record-form label span {
  font-size: 12px;
}

.fv2-sapi-record-form input,
.fv2-sapi-record-form select,
.fv2-sapi-record-form textarea {
  min-width: 0;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid var(--fv2-border);
  border-radius: 4px;
  background: var(--fv2-surface);
  color: var(--bodytc);
  font: inherit;
}

.fv2-sapi-record-form textarea {
  resize: vertical;
  font-family: inherit;
  line-height: 1.35;
}

.fv2-sapi-record-form textarea[name$="Json"],
.fv2-sapi-record-form textarea[name="PayloadJson"],
.fv2-sapi-record-form textarea[name="VariableJson"],
.fv2-sapi-record-form textarea[name="ConditionJson"] {
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
}

.fv2-sapi-record-form input[type="checkbox"] {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
  justify-self: start;
}

.fv2-sapi-form-full,
.fv2-sapi-form-actions {
  grid-column: 1 / -1;
}

.fv2-sapi-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 6px;
}

.fv2-sapi-summary-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
  margin: 0;
}

.fv2-sapi-summary-list dt {
  color: var(--fv2-text-muted);
  font-weight: 700;
}

.fv2-sapi-summary-list dd {
  margin: 0;
  font-weight: 700;
}

@media screen and (max-width: 900px) {
  .fv2-sapi-record-form {
    grid-template-columns: 1fr;
  }

  .fv2-sapi-search-form.compact input {
    width: 100%;
  }
}

.fv2-billing-search {
  grid-template-columns: minmax(320px, 1fr) auto auto;
}

.fv2-billing-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 8px 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--fv2-border);
}

.fv2-billing-tabs button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  background: transparent;
  color: var(--bodytc);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  white-space: nowrap;
}

.fv2-billing-tabs button:hover,
.fv2-billing-tabs button.active {
  background: var(--fv2-surface);
  border-color: var(--fv2-border);
  color: var(--bodytc);
}

.fv2-billing-panels {
  min-width: 0;
}

.fv2-billing-panel {
  display: none;
  min-width: 0;
  padding: 10px 10px 0;
}

.fv2-billing-panel.active {
  display: block;
}

.fv2-billing-panel[hidden] {
  display: none !important;
}

.fv2-billing-panel > .fv2-billing-section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.fv2-billing-layout {
  display: block;
  width: 100%;
}

.fv2-billing-form {
  display: grid;
  gap: 10px;
  min-width: 0;
  align-content: start;
}

.fv2-billing-panels {
  max-height: min(44vh, 420px);
  overflow: auto;
  padding-right: 4px;
}

.fv2-billing-items-panel {
  min-width: 0;
  margin-top: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.fv2-billing-items-section {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.fv2-billing-section {
  margin-top: 10px;
  padding-top: 0;
  border-top: 0;
}

.fv2-order-list-title + .fv2-billing-section,
.fv2-order-list-title + .fv2-inline-warning + .fv2-billing-section {
  margin-top: 10px;
}

.fv2-billing-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.fv2-billing-section-head h3 {
  margin: 0;
  font-size: 15px;
}

.fv2-billing-section-head span {
  color: var(--fv2-text-muted);
  font-size: 12px;
  line-height: 1.3;
  min-width: 0;
  overflow-wrap: anywhere;
}

.fv2-billing-form .fv2-eo-form-grid {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.fv2-billing-section .fv2-eo-form-grid + .fv2-eo-form-grid {
  margin-top: 8px;
}

.fv2-billing-items-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--fv2-border);
  border-radius: 6px;
  background: var(--fv2-surface);
}

.fv2-billing-items-table,
.fv2-billing-custom-table {
  min-width: 1120px;
}

.fv2-billing-items-table input,
.fv2-billing-custom-table input {
  width: 100%;
  min-width: 70px;
  min-height: 30px;
  padding: 4px 6px;
  border: 1px solid var(--fv2-border);
  border-radius: 4px;
  background: var(--fv2-surface-strong);
  color: var(--fv2-text);
  box-sizing: border-box;
  font: inherit;
}

.fv2-billing-items-table input[type="checkbox"] {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
}

.fv2-billing-items-table th:nth-child(1),
.fv2-billing-items-table td:nth-child(1) {
  width: 54px;
  text-align: center;
}

.fv2-billing-items-table th:nth-child(2),
.fv2-billing-items-table td:nth-child(2) {
  width: 140px;
}

.fv2-billing-items-table th:nth-child(3),
.fv2-billing-items-table td:nth-child(3) {
  min-width: 260px;
}

.fv2-billing-total-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.fv2-billing-actions {
  justify-content: flex-end;
  position: sticky;
  bottom: 8px;
  z-index: 3;
  margin-top: 0;
  padding-top: 8px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.02), var(--fv2-surface-strong) 18%);
}

.fv2-billing-bank-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.fv2-billing-hint {
  display: block;
  margin-top: 4px;
  color: var(--fv2-text-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.fv2-billing-prepayment-form {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.fv2-billing-prepayment-form label {
  display: grid;
  gap: 4px;
  font-weight: 700;
}

.fv2-billing-prepayment-form input {
  min-height: 32px;
  padding: 5px 7px;
  border: 1px solid var(--fv2-border);
  border-radius: 4px;
  background: var(--fv2-surface-strong);
  color: var(--fv2-text);
  font: inherit;
}

.fv2-billing-status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--fv2-surface);
  color: var(--fv2-text);
  font-weight: 700;
}

.fv2-billing-status-generated,
.fv2-billing-status-manual {
  background: var(--success, #5cb85c);
  color: var(--successtc, #ffffff);
}

.fv2-billing-status-draft,
.fv2-billing-status-preview {
  background: var(--info, #5bc0de);
  color: var(--infotc, #ffffff);
}

.fv2-billing-status-error {
  background: var(--error, #d9534f);
  color: var(--errortc, #ffffff);
}

.fv2-billing-flag {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--fv2-surface-strong);
  color: var(--fv2-text);
  font-weight: 700;
}

.fv2-billing-flag.on {
  background: rgba(92, 184, 92, 0.16);
  color: #2b6d2b;
}

.fv2-billing-flag.off {
  background: rgba(217, 83, 79, 0.12);
  color: #9d2e2a;
}

.fv2-money-cell {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.fv2-inline-warning {
  margin: 8px 0;
  padding: 8px 10px;
  border-left: 5px solid var(--warning, #f0ad4e);
  border-radius: 5px;
  background: var(--fv2-surface);
  color: var(--fv2-text);
  font-weight: 700;
}

@media screen and (max-width: 1180px) {
  .fv2-billing-search,
  .fv2-billing-layout,
  .fv2-billing-form .fv2-eo-form-grid,
  .fv2-billing-prepayment-form {
    grid-template-columns: 1fr;
  }

  .fv2-billing-panels {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .fv2-billing-actions {
    position: static;
    background: transparent;
  }

  .fv2-billing-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .fv2-billing-actions {
    justify-content: flex-start;
  }
}

.fv2-sample-page {
  overflow: auto;
}

.fv2-sample-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fv2-sample-panel {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--fv2-border);
  border-radius: 6px;
  background: var(--fv2-surface-strong);
  color: var(--fv2-text, var(--bodytc));
}

.fv2-sample-wide {
  grid-column: 1 / -1;
}

.fv2-sample-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--fv2-border);
}

.fv2-sample-title h2 {
  margin: 0;
  font-size: 17px;
}

.fv2-sample-title span {
  color: var(--fv2-text-muted);
  font-size: 12px;
  font-weight: 700;
}

.fv2-sample-typography h1,
.fv2-sample-typography h2,
.fv2-sample-typography h3,
.fv2-sample-typography h4,
.fv2-sample-typography p,
.fv2-sample-typography blockquote,
.fv2-sample-typography pre {
  margin-top: 0;
}

.fv2-sample-typography blockquote {
  margin-left: 0;
  padding: 8px 10px;
  border-left: 5px solid var(--info, #5bc0de);
  background: var(--fv2-surface);
}

.fv2-sample-typography pre {
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--fv2-border);
  border-radius: 5px;
  background: var(--fv2-surface);
}

.fv2-sample-typography kbd {
  display: inline-block;
  min-width: 22px;
  padding: 1px 5px;
  border: 1px solid var(--fv2-border);
  border-radius: 4px;
  background: var(--fv2-surface);
  font: inherit;
  font-weight: 700;
  text-align: center;
}

.fv2-sample-columns {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
}

.fv2-sample-stack {
  display: grid;
  gap: 8px;
}

.fv2-sample-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 10px;
  align-items: end;
}

.fv2-sample-form label:not(.fv2-checkbox-line),
.fv2-sample-stack label {
  display: grid;
  gap: 4px;
  font-weight: 700;
}

.fv2-sample-form input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
.fv2-sample-form select,
.fv2-sample-form textarea {
  min-height: 32px;
  padding: 5px 7px;
  border: 1px solid var(--fv2-border);
  border-radius: 4px;
  background: var(--fv2-surface-strong);
  color: var(--fv2-text, var(--bodytc));
  font: inherit;
}

.fv2-sample-form input[type="color"] {
  width: 54px;
  min-height: 32px;
  padding: 2px;
}

.fv2-sample-form textarea {
  resize: vertical;
}

.fv2-sample-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fv2-sample-figure {
  margin: 0;
}

.fv2-sample-image-placeholder {
  width: 100%;
  min-height: 92px;
  border: 1px solid var(--fv2-border);
  border-radius: 5px;
  background:
    linear-gradient(135deg, rgba(82, 99, 148, 0.18), rgba(199, 227, 255, 0.55)),
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(0, 0, 0, 0.05) 12px 24px);
}

.fv2-sample-table-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 8px;
  padding: 8px;
  border: 1px solid var(--fv2-border);
  border-radius: 6px;
  background: var(--fv2-surface);
}

.fv2-sample-table-wrap {
  width: 100%;
  max-height: 430px;
  overflow: scroll;
  border: 1px solid var(--fv2-border);
  border-radius: 6px;
  background: var(--fv2-surface-strong);
  scrollbar-gutter: stable both-edges;
}

.fv2-sample-table {
  width: max-content;
  min-width: 1245px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  color: var(--fv2-text, var(--bodytc));
}

.fv2-sample-table th,
.fv2-sample-table td {
  min-width: 76px;
  padding: 7px 9px;
  border-right: 1px solid var(--fv2-border);
  border-bottom: 1px solid var(--fv2-border);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: var(--fv2-surface-strong);
}

.fv2-sample-table th {
  position: relative;
  background: var(--fv2-surface);
  color: var(--fv2-text, var(--bodytc));
  text-align: left;
  z-index: 2;
}

.fv2-sample-freeze-header .fv2-sample-table th {
  position: sticky;
  top: 0;
}

.fv2-sample-table tbody tr:nth-child(even) td {
  background: rgba(0, 0, 0, 0.025);
}

.fv2-sample-table tbody tr:hover td {
  background: rgba(91, 192, 222, 0.18);
}

.fv2-sample-sort-button {
  display: block;
  width: 100%;
  min-height: 24px;
  padding: 0 18px 0 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.fv2-sample-sort-button::after {
  content: "\f0dc";
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  font-family: FontAwesome;
  color: var(--fv2-text-muted);
  font-size: 12px;
}

.fv2-sample-sort-asc .fv2-sample-sort-button::after {
  content: "\f0de";
}

.fv2-sample-sort-desc .fv2-sample-sort-button::after {
  content: "\f0dd";
}

.fv2-sample-col-resizer {
  position: absolute;
  top: 0;
  right: -3px;
  width: 7px;
  height: 100%;
  cursor: col-resize;
  user-select: none;
  z-index: 7;
}

.fv2-sample-col-resizer:hover,
.fv2-sample-resizing .fv2-sample-col-resizer {
  background: rgba(82, 99, 148, 0.32);
}

.fv2-sample-sticky-cell {
  position: sticky;
  z-index: 3;
  box-shadow: 1px 0 0 var(--fv2-border);
}

.fv2-sample-table th.fv2-sample-sticky-cell,
.fv2-sample-sticky-header-cell {
  z-index: 5;
}

.fv2-sample-table tbody tr:nth-child(even) .fv2-sample-sticky-cell {
  background: var(--fv2-surface);
}

.fv2-sample-table tbody tr:hover .fv2-sample-sticky-cell {
  background: rgba(91, 192, 222, 0.28);
}

.fv2-sample-resizing {
  cursor: col-resize;
  user-select: none;
}

@media screen and (max-width: 1100px) {
  .fv2-sample-grid,
  .fv2-sample-columns,
  .fv2-sample-form {
    grid-template-columns: 1fr;
  }
}

.fv2-order2-page {
  min-height: 100vh;
  padding: 10px;
  background: var(--bodybc);
  color: var(--bodytc);
  box-sizing: border-box;
}

.fv2-order2-page *,
.fv2-order2-page *::before,
.fv2-order2-page *::after {
  box-sizing: border-box;
}

.fv2-order2-header {
  margin-bottom: 10px;
}

.fv2-order2-header h1,
.fv2-order2-detail-header h1,
.fv2-order2-card h2,
.fv2-order2-items-head h2,
.fv2-order2-list-head h2 {
  margin: 0;
}

.fv2-order2-header p,
.fv2-order2-detail-header p,
.fv2-order2-items-head span,
.fv2-order2-list-head span {
  margin: 3px 0 0;
  color: var(--fv2-text-muted);
}

.fv2-order2-dashboard {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.fv2-order2-dashboard article,
.fv2-order2-card,
.fv2-order2-list-shell,
.fv2-order2-top,
.fv2-order2-items {
  border: 1px solid var(--fv2-border);
  border-radius: 8px;
  background: var(--fv2-surface-strong);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.fv2-order2-dashboard article {
  display: flex;
  min-height: 64px;
  flex-direction: column;
  justify-content: center;
  padding: 10px 12px;
}

.fv2-order2-dashboard span {
  color: var(--fv2-text-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.fv2-order2-dashboard strong {
  margin-top: 4px;
  font-size: 22px;
}

.fv2-order2-filterbar {
  display: grid;
  grid-template-columns: minmax(280px, 2fr) minmax(140px, 180px) minmax(140px, 180px) 145px 145px auto auto auto;
  gap: 8px;
  align-items: end;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid var(--fv2-border);
  border-radius: 8px;
  background: var(--fv2-surface-strong);
}

.fv2-order2-filterbar label,
.fv2-order2-field,
.fv2-order2-product-add label,
.fv2-order2-modal-search label,
.fv2-order2-address-form label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
  font-weight: 700;
}

.fv2-order2-filterbar .wide {
  min-width: 320px;
}

.fv2-order2-filterbar .check,
.fv2-order2-address-form .check {
  flex-direction: row;
  align-items: center;
  min-height: 34px;
}

.fv2-order2-filterbar input,
.fv2-order2-filterbar select,
.fv2-order2-field input,
.fv2-order2-field select,
.fv2-order2-field textarea,
.fv2-order2-product-add input,
.fv2-order2-product-add select,
.fv2-order2-items-table input,
.fv2-order2-modal input,
.fv2-order2-modal select,
.fv2-order2-address-form input {
  width: 100%;
  min-width: 0;
  min-height: 32px;
  padding: 6px 8px;
  border: 1px solid var(--fv2-border);
  border-radius: 6px;
  background: var(--fv2-surface);
  color: var(--fv2-text, var(--bodytc));
  font: inherit;
  font-weight: 400;
}

.fv2-order2-field textarea {
  min-height: 90px;
  resize: vertical;
}

.fv2-order2-field input[readonly] {
  background: var(--fv2-surface);
  color: var(--fv2-text-muted);
}

.fv2-order2-list-shell {
  display: grid;
  height: calc(100vh - 238px);
  min-height: 360px;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.fv2-order2-list-head,
.fv2-order2-items-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--fv2-border);
}

.fv2-order2-table-wrap,
.fv2-order2-items-wrap {
  min-height: 0;
  overflow: auto;
}

.fv2-order2-table,
.fv2-order2-items-table,
.fv2-order2-mini-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--tabletdbc);
}

.fv2-order2-table {
  min-width: 1740px;
}

.fv2-order2-items-table {
  min-width: 2140px;
}

.fv2-order2-mini-table {
  min-width: 850px;
}

.fv2-order2-table th,
.fv2-order2-table td,
.fv2-order2-items-table th,
.fv2-order2-items-table td,
.fv2-order2-mini-table th,
.fv2-order2-mini-table td {
  padding: 7px 9px;
  border-right: 1px solid var(--tabletdborder);
  border-bottom: 1px solid var(--tabletdborder);
  color: var(--tabletdtc);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.fv2-order2-table th,
.fv2-order2-items-table th,
.fv2-order2-mini-table th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: var(--tablethbc);
  color: var(--tablethtc);
  font-weight: 700;
}

.fv2-order2-table tbody tr:nth-child(even) td,
.fv2-order2-items-table tbody tr:nth-child(even) td,
.fv2-order2-mini-table tbody tr:nth-child(even) td {
  background: rgba(0, 0, 0, 0.025);
}

.fv2-order2-table tbody tr:hover td,
.fv2-order2-items-table tbody tr:hover td,
.fv2-order2-mini-table tbody tr:hover td {
  background: var(--tabletdhoverbc);
  color: var(--tabletdhovertc);
}

.fv2-order2-table tbody tr {
  cursor: pointer;
}

.fv2-order2-table a {
  color: inherit;
  font-weight: 800;
  text-decoration: none;
}

.fv2-order2-table .num,
.fv2-order2-items-table .num {
  text-align: right;
}

.fv2-order2-table .strong {
  font-weight: 800;
}

.fv2-order2-detail-page {
  padding: 8px;
  overflow: hidden;
}

.fv2-order2-workbench {
  display: grid;
  height: calc(100vh - 16px);
  min-height: 650px;
  grid-template-rows: auto minmax(235px, 1fr) minmax(0, 2fr);
  gap: 8px;
}

.fv2-order2-detail-header {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(280px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--fv2-border);
  border-radius: 8px;
  background: var(--fv2-surface-strong);
}

.fv2-order2-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
  color: var(--linkcolor);
  font-weight: 700;
  text-decoration: none;
}

.fv2-order2-badges,
.fv2-order2-actions,
.fv2-order2-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.fv2-order2-badges span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid var(--fv2-border);
  border-radius: 999px;
  background: var(--fv2-surface);
  color: var(--bodytc);
  font-weight: 700;
}

.fv2-order2-actions {
  justify-content: flex-end;
}

.fv2-order2-top {
  display: grid;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.fv2-order2-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 8px 8px 0;
  border-bottom: 1px solid var(--fv2-border);
}

.fv2-order2-tabs button {
  min-height: 34px;
  flex: 0 0 auto;
  padding: 7px 12px;
  border: 1px solid var(--fv2-border);
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  background: var(--tabbc);
  color: var(--tabtc);
  cursor: pointer;
  font-weight: 800;
}

.fv2-order2-tabs button:hover,
.fv2-order2-tabs button.active {
  background: var(--tabhoverbc);
  color: var(--tabhovertc);
}

.fv2-order2-panel {
  display: none;
  min-height: 0;
  overflow: auto;
  padding: 10px;
}

.fv2-order2-panel.active {
  display: block;
}

.fv2-order2-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.fv2-order2-card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fv2-order2-card {
  min-width: 0;
  padding: 12px;
}

.fv2-order2-card h2 {
  margin-bottom: 10px;
  font-size: 16px;
}

.fv2-order2-form-grid,
.fv2-order2-total-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.fv2-order2-form-grid .wide {
  grid-column: 1 / -1;
}

.fv2-order2-card > .fv2-order2-field,
.fv2-order2-card > .btn {
  margin-bottom: 8px;
}

.fv2-order2-notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.fv2-order2-notes-grid .fv2-order2-field {
  min-height: 135px;
}

.fv2-order2-notes-grid textarea {
  height: 100%;
}

.fv2-order2-package-list {
  display: grid;
  gap: 7px;
  max-height: 185px;
  overflow: auto;
}

.fv2-order2-package-list span {
  padding: 8px;
  border: 1px solid var(--fv2-border);
  border-radius: 6px;
  background: var(--fv2-surface);
}

.fv2-order2-items {
  display: grid;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.fv2-order2-items-head {
  align-items: end;
}

.fv2-order2-product-add {
  flex: 1 1 680px;
  max-width: 900px;
  padding: 0;
  border: 0;
  background: transparent;
}

.fv2-order2-product-add form {
  display: grid;
  grid-template-columns: minmax(190px, 0.8fr) minmax(280px, 1.2fr) auto;
  gap: 8px;
  align-items: end;
}

.fv2-order2-items-form {
  min-height: 0;
  overflow: hidden;
}

.fv2-order2-items-wrap {
  height: 100%;
}

.fv2-order2-items-table th.action,
.fv2-order2-items-table td.action {
  position: sticky;
  left: 0;
  z-index: 5;
  width: 46px;
  min-width: 46px;
  text-align: center;
}

.fv2-order2-items-table th.action {
  z-index: 7;
}

.fv2-order2-items-table td {
  min-width: 96px;
  padding: 4px;
}

.fv2-order2-items-table td.wide {
  min-width: 260px;
}

.fv2-order2-items-table input {
  min-height: 28px;
  padding: 4px 6px;
}

.fv2-order2-items-table .fv2-order-row-delete {
  width: 30px;
  min-width: 30px;
  min-height: 28px;
  padding: 0;
}

.fv2-order2-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  background: rgba(0, 0, 0, 0.56);
}

.fv2-order2-modal {
  display: grid;
  width: min(1120px, 94vw);
  max-height: 88vh;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--fv2-border);
  border-radius: 8px;
  background: var(--fv2-surface-strong);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.fv2-order2-modal.wide {
  width: min(1380px, 94vw);
  grid-template-rows: auto minmax(0, 1fr);
}

.fv2-order2-modal header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--fv2-border);
}

.fv2-order2-modal h2,
.fv2-order2-modal h3 {
  margin: 0;
}

.fv2-order2-modal-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  padding: 10px 12px;
  border-bottom: 1px solid var(--fv2-border);
}

.fv2-order2-modal-body,
.fv2-order2-address-modal-grid {
  min-height: 0;
  overflow: auto;
  padding: 12px;
}

.fv2-order2-address-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 12px;
}

.fv2-order2-address-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.fv2-order2-address-form .wide,
.fv2-order2-address-form button {
  grid-column: 1 / -1;
}

@media screen and (max-width: 1280px) {
  .fv2-order2-filterbar,
  .fv2-order2-detail-header,
  .fv2-order2-card-grid,
  .fv2-order2-card-grid.three,
  .fv2-order2-notes-grid,
  .fv2-order2-address-modal-grid {
    grid-template-columns: 1fr;
  }

  .fv2-order2-list-shell {
    height: auto;
    min-height: 520px;
  }

  .fv2-order2-detail-page {
    overflow: auto;
  }

  .fv2-order2-workbench {
    height: auto;
    grid-template-rows: auto auto minmax(480px, 70vh);
  }
}
