@charset "UTF-8";
.new-template {
  position: relative;
}

.new-template .address-bar {
  min-height: 50px;
  padding: 0 14px;
  -webkit-transform-origin: 0 0;
  transform-origin: 0 0;
  background-color: #f8f9fa;
}

.new-template .address-bar .border-bottom {
  border-bottom: 1px solid #f4f5f7 !important;
}

.new-template .address-bar .address-bar_dots {
  margin-left: 4px;
}

.new-template .address-bar .address-bar_dots span {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin: 22px 8px 0 0;
}

.new-template .address-bar .address-bar_dots span.dot-1 {
  background-color: #f26c6f;
}

.new-template .address-bar .address-bar_dots span.dot-2 {
  background-color: #ffc554;
}

.new-template .address-bar .address-bar_dots span.dot-3 {
  background-color: #5dce91;
}

.new-template .address-bar .address-bar_menu {
  margin: 0;
  margin-top: 15px;
}

.new-template .address-bar .address-bar_menu li {
  float: left;
  list-style-type: none;
  display: block;
  margin-right: 15px;
  line-height: 18px;
}

.new-template .address-bar .address-bar_menu li input {
  cursor: pointer;
}

.new-template .address-bar .address-bar_menu li label {
  color: #000;
}

.new-template .browser {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  margin: 0 auto;
  border: 1px #dbdbdb solid;
  -webkit-box-shadow: 0 1px 2px rgba(166, 175, 195, 0.25);
  box-shadow: 0 1px 2px rgba(166, 175, 195, 0.25);
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  overflow-y: hidden;
}

.new-template .browser .browser_wrapper {
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  width: 100%;
  max-height: 100vh;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  overflow-y: hidden;
  margin-bottom: 0;
}

.new-template .browser .browser_wrapper .canves-wrapper {
  background-color: #dfdfdf;
  position: relative;
  min-height: calc(85vh - 50px - 18px);
  overflow-y: scroll;
  /* Scroll sideways instead of cutting the page off on narrow screens. */
  overflow-x: auto;
}

.new-template
  .browser
  .browser_wrapper
  .canves-wrapper
  .canves-ruler
  .ruler-top {
  height: 20px;
}

.new-template .browser .browser_wrapper .canves-wrapper .canves {
  position: relative;
  margin: 70px auto;
  height: 297mm;
  width: 210mm;
  background-color: #fff;
  -webkit-box-shadow: 0 0 6px #a5a5a5;
  box-shadow: 0 0 6px #a5a5a5;
}

.new-template .browser .browser_wrapper .canves-content-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.new-template
  .browser
  .browser_wrapper
  .canves-content-wrapper
  .canves-content {
  position: relative;
  margin: 70px auto;
  height: 297mm;
  width: 210mm;
  pointer-events: fill;
}

.new-template
  .browser
  .browser_wrapper
  .canves-content-wrapper
  .canves-content
  > div {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
}

.new-template
  .browser
  .browser_wrapper
  .canves-content-wrapper
  .canves-content
  .canves-section {
  position: relative;
  pointer-events: none;
  /*padding: 5px;*/
}

.new-template
  .browser
  .browser_wrapper
  .canves-content-wrapper
  .canves-content
  .canves-section
  .canves-content-children {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  border: 2px dashed transparent;
  pointer-events: none;
}

.new-template
  .browser
  .browser_wrapper
  .canves-content-wrapper
  .canves-content
  .canves-section
  .canves-content-children
  > * {
  cursor: pointer;
  -webkit-touch-callout: none;
  /* iOS Safari */
  -webkit-user-select: none;
  /* Safari */
  /* Konqueror HTML */
  -moz-user-select: none;
  /* Old versions of Firefox */
  -ms-user-select: none;
  /* Internet Explorer/Edge */
  user-select: none;
  /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
  pointer-events: all;
}

.new-template
  .browser
  .browser_wrapper
  .canves-content-wrapper
  .canves-content
  .canves-section:hover
  .canves-content-children {
  border: 2px dashed #007bff;
}

.new-template
  .browser
  .browser_wrapper
  .canves-content-wrapper
  .canves-content
  .canves-section
  .info {
  position: absolute;
  top: 5px;
  left: 5px;
  background-color: #007bff;
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  display: none;
  pointer-events: none;
}

.new-template
  .browser
  .browser_wrapper
  .canves-content-wrapper
  .canves-content
  .canves-section:hover
  .info {
  display: block;
}

.new-template
  .browser
  .browser_wrapper
  .canves-content-wrapper
  .canves-content
  .canves-header {
  height: 20%;
}

.new-template
  .browser
  .browser_wrapper
  .canves-content-wrapper
  .canves-content
  .canves-body {
  height: 40%;
}

.new-template
  .browser
  .browser_wrapper
  .canves-content-wrapper
  .canves-content
  .canves-total {
  height: 20%;
}

.new-template
  .browser
  .browser_wrapper
  .canves-content-wrapper
  .canves-content
  .canves-footer {
  height: 20%;
}

.new-template
  .browser
  .browser_wrapper
  .canves-content-wrapper
  .canves-content
  .slider {
  z-index: 999999;
  display: block;
  position: absolute;
  height: 2px;
  background-color: #7c7c7c;
  left: 0;
  bottom: 0;
  right: 0;
  overflow: visible;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.new-template
  .browser
  .browser_wrapper
  .canves-content-wrapper
  .canves-content
  .slider::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  left: 50%;
  width: 1.5rem;
  height: 0.5rem;
  background-color: #7c7c7c;
  cursor: row-resize;
}

.new-template .grid-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.new-template .grid-wrapper .grid-line {
  position: relative;
  pointer-events: visible;
  pointer-events: all;
}

.new-template .grid-wrapper .grid-line .info {
  display: none;
}

.new-template .grid-wrapper .grid-line-x {
  width: 100%;
  position: absolute;
  top: 90px;
  cursor: ns-resize;
  padding-top: 18px;
}

.new-template .grid-wrapper .grid-line-x .grid-line-pad-x {
  padding-bottom: 18px;
  border-top: 1px solid #f26c6f;
}

.new-template .grid-wrapper .grid-line-y {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 90px;
  cursor: ew-resize;
  padding-left: 18px;
}

.new-template .grid-wrapper .grid-line-y .grid-line-pad-y {
  position: absolute;
  top: 0;
  bottom: 0;
  padding-right: 18px;
  border-left: 1px solid #f26c6f;
  height: 100%;
}

.new-template .grid-wrapper .dragging-line .info {
  position: absolute;
  top: 23px;
  left: 23px;
  padding: 5px 10px;
  background-color: #000;
  display: block;
}

.new-template .grid-wrapper .dragging-line .info span {
  color: #fff;
}

.new-template .grid-wrapper .dragging-line .grid-line-pad-y {
  border-left: 2px solid #007bff !important;
}

.new-template .grid-wrapper .dragging-line .grid-line-pad-x {
  border-top: 2px solid #007bff !important;
}

.new-template .editor-wrapper {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.new-template .editor-wrapper path {
  color: #fff;
}

.new-template .editor-wrapper .editor-panel {
  pointer-events: all;
  border: 1px solid rgba(0, 0, 0, 0.87);
  border-radius: 0;
  padding: 2px 12px;
  margin: 0;
  /* Spans the whole canvas area (not the settings panel). */
  width: 100%;
  min-width: 0;
  max-width: none;
  position: relative;
  z-index: 99999999;
}

.new-template .editor-wrapper .editor-panel .panel-react-outer {
  border: 1px solid transparent;
  -webkit-transition:
    border 0.2s linear,
    background 0.2s linear;
  transition:
    border 0.2s linear,
    background 0.2s linear;
}

.new-template .editor-wrapper .editor-panel .panel-react-outer:hover {
  border-color: #ccc;
  background-color: #0043a8 !important;
}

.new-template .editor-wrapper .editor-panel .panel-react-outer.active {
  background-color: rgba(255, 255, 255, 0.2) !important;
}

.new-template .editor-wrapper .editor-panel .panel-react-outer.active:hover {
  background-color: rgba(255, 255, 255, 0.3) !important;
}

.new-template .editor-wrapper .editor-panel .panel-react-inner {
  -webkit-box-flex: 0;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  color: #fff;
  padding: 6px 8px;
  overflow: visible;
  font-size: 1.1rem;
  text-align: center;
  cursor: pointer;
  margin: 0;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  outline: 0;
  position: relative;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  vertical-align: middle;
  -moz-appearance: none;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  text-decoration: none;
  background-color: transparent;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.new-template .editor-wrapper hr {
  border: none;
  height: 1px;
  margin: 0;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  background-color: rgba(255, 255, 255, 0.12);
}

.new-template .editor-wrapper .editor-section {
  padding: 5px;
  width: 27px;
  text-align: center;
  margin: 3px;
  background: #efefef;
}

.new-template .editor-wrapper .editor-section path {
  color: #000 !important;
}

.custom-element {
  position: relative;
  border: 1px dashed #ccc;
  z-index: 100;
}

.custom-element > * {
  pointer-events: none;
}

.custom-element.selected-element {
  border: 1px solid #007bff;
  font-size: 14px;
  z-index: 999;
}

.custom-element.selected-element .resize {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

.custom-element.selected-element .resize > span {
  pointer-events: all !important;
  position: absolute;
  height: 20px;
  width: 20px;
  content: " ";
  background: #007bff;
  border-radius: 50%;
  display: block;
}

.custom-element.selected-element .resize > span:after {
  color: #fff;
  padding: 0 5px;
  display: block;
}

.custom-element.selected-element .resize .top-left {
  top: -10px;
  left: -10px;
  cursor: move;
}

.custom-element.selected-element .resize .top-left:after {
  content: "⧈";
}

.custom-element.selected-element .resize .top-right {
  top: -10px;
  right: -10px;
  cursor: ne-resize;
}

.custom-element.selected-element .resize .bottom-left {
  bottom: -10px;
  left: -10px;
  cursor: ne-resize;
}

.custom-element.selected-element .resize .bottom-right {
  bottom: -10px;
  right: -10px;
  cursor: nw-resize;
}

.custom-element.selected-element .resize .bottom-right:after {
  content: "⇲";
}

.custom-element.has-link {
  border-style: dashed;
  border-color: #17a2b8;
}

.custom-element.group-selected-element {
  border: 1px solid #007bff;
  box-shadow: 0 0 0 1px rgba(0, 123, 255, 0.35);
}

/* A field shown only when its value passes a check. */
.custom-element.has-condition::before {
  content: "";
  position: absolute;
  top: -3px;
  right: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f59f00;
  pointer-events: none;
}

/* Hovered in the selection list. */
.custom-element.list-hover-element {
  outline: 2px solid #f59f00;
  outline-offset: 1px;
}

/* Invoice preview modal: dimmed + blurred backdrop above the editor, a large
   dialog whose body scrolls so the header and footer stay put. */
.modal-backdrop.preview-modal-backdrop {
  z-index: 10690;
  background-color: rgba(15, 23, 42, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.modal-backdrop.preview-modal-backdrop.show {
  opacity: 1;
}

.modal-dialog.preview-modal-dialog {
  max-width: 95vw;
  width: 95vw;
  height: 94vh;
  margin: 3vh auto;
}

.modal-dialog.preview-modal-dialog .modal-content {
  height: 100%;
  max-height: 100%;
}
/* Page-number marker on the editor canvas (click opens its settings). */
.page-number-marker {
  padding: 1px 4px;
  border: 1px dashed #007bff;
  background-color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  user-select: none;
}

.page-number-marker:hover,
.page-number-marker:focus {
  outline: none;
  border-style: solid;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Page-number settings: clickable mini page with six positions. */
.page-number-settings {
  border-radius: 4px;
  padding: 4px;
  margin: -4px;
}

.page-number-settings.is-highlighted {
  animation: page-number-settings-flash 1.6s ease-out;
}

@keyframes page-number-settings-flash {
  0%, 30% { background-color: rgba(0, 123, 255, 0.15); }
  100% { background-color: transparent; }
}

.page-number-picker {
  width: 72px;
  height: 100px;
  border: 1px solid #adb5bd;
  border-radius: 3px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4px;
}

.page-number-picker-row {
  display: flex;
  justify-content: space-between;
}

.page-number-picker-spot {
  width: 18px;
  height: 10px;
  padding: 0;
  border: 1px solid #ced4da;
  border-radius: 2px;
  background: #f1f3f5;
  cursor: pointer;
}

.page-number-picker-spot:hover {
  border-color: #007bff;
}

.page-number-picker-spot.active {
  background: #007bff;
  border-color: #007bff;
}
/* Colour picker that fills its container: the hex input stretches, the
   swatch keeps its size. Used where two fields share one row. */
.compact-colour-field > div {
  width: 100%;
}

.compact-colour-field input[type="text"] {
  width: auto !important;
  flex: 1 1 auto;
  min-width: 0;
}
/* ---- Element toolbar (bottom of the canvas) ---- */
.editor-panel .toolbar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
}

.editor-panel .toolbar-buttons {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
}

.editor-panel .toolbar-group {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 6px;
}

.editor-panel .toolbar-group + .toolbar-group {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.editor-panel .toolbar-group:first-child {
  padding-left: 0;
}

.editor-panel .toolbar-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.editor-panel .toolbar-btn i,
.editor-panel .toolbar-btn svg {
  color: #fff;
}

/* Text in place of an icon (letter case: "Aa", "AB"). */
.editor-panel .toolbar-btn .toolbar-btn-label {
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.editor-panel .toolbar-btn:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.editor-panel .toolbar-btn:focus-visible,
.editor-panel .toolbar-toggle:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 1px;
}

.editor-panel .toolbar-btn.active {
  background-color: rgba(255, 255, 255, 0.25);
}

.editor-panel .toolbar-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  background: transparent;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.editor-panel .toolbar-toggle:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.editor-panel .toolbar-fields {
  display: flex;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 16px;
  padding: 6px 0 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  overflow-x: auto;
}

.editor-panel .toolbar-field-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  margin-bottom: 3px;
  white-space: nowrap;
}
/* Toolbar input fields: one width and height for every field. */
.editor-panel .toolbar-field {
  flex: 0 0 auto;
  width: 160px;
}

.editor-panel .toolbar-input {
  height: 32px;
  border-radius: 4px;
}

/* Colour pickers in the toolbar: 32px tall like the other inputs. */
.editor-panel .toolbar-field.compact-colour-field input[type="text"] {
  height: 32px;
}

/* Currency switch: same 32px row height as the inputs. */
.editor-panel .toolbar-field-switch {
  width: auto;
}

/* Currency and Badge switches side by side, also in the stacked
   properties panel. */
.toolbar-field-row {
  display: flex;
  align-items: flex-start;
  flex: 0 0 auto;
  gap: 16px;
}

.properties-panel .toolbar-field-row .toolbar-field {
  width: auto;
}

.editor-panel .toolbar-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  margin: 0;
  padding-left: 2.5em;
}

.editor-panel .toolbar-switch .form-check-input {
  width: 2.25em;
  height: 1.25em;
  margin-top: 0;
  cursor: pointer;
}

.editor-panel .toolbar-switch .form-check-input:checked {
  background-color: #22c55e;
  border-color: #22c55e;
}

.editor-panel .toolbar-switch .form-check-label {
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}
/* Border side picker (All / Top / Right / Bottom / Left) in the toolbar. */
.editor-panel .toolbar-field-sides {
  width: auto;
}

.editor-panel .toolbar-segmented {
  display: inline-flex;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  overflow: hidden;
}

.editor-panel .toolbar-segmented button {
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.editor-panel .toolbar-segmented button + button {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.editor-panel .toolbar-segmented button:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.editor-panel .toolbar-segmented button.active {
  background-color: rgba(255, 255, 255, 0.25);
}
/* Little preview line inside the Solid / Dashed / Dotted buttons. */
.editor-panel .border-style-swatch {
  display: inline-block;
  width: 14px;
  margin-right: 6px;
  vertical-align: middle;
  border-top: 2px solid #fff;
}

.editor-panel .border-style-swatch.is-dashed {
  border-top-style: dashed;
}

.editor-panel .border-style-swatch.is-dotted {
  border-top-style: dotted;
}
/* ---- Right-hand element properties panel ---- */
.properties-panel-expand {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 24px;
  border: 0;
  background: #f8f9fa;
  color: #495057;
  cursor: pointer;
}

.properties-panel-expand span {
  writing-mode: vertical-rl;
  font-size: 12px;
  letter-spacing: 0.05em;
}

.properties-panel-expand:hover {
  background: #eef1f4;
}

.properties-panel-empty {
  text-align: center;
  color: #6c757d;
  padding: 48px 12px;
}

.properties-panel-empty svg {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.properties-panel-empty p {
  margin-bottom: 4px;
}

.properties-panel-summary {
  font-weight: 600;
  margin-bottom: 16px;
  word-break: break-word;
}

/* The elements of a multi-selection, under the panel header. */
.selection-member-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  font-weight: normal;
  font-size: 0.85rem;
}

.selection-member-list li {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 3px 6px;
  border-radius: 4px;
  cursor: pointer;
}

.selection-member-list li:hover {
  background: #f1f3f5;
}

.selection-member-list li.primary {
  background: #e7f1ff;
}

.selection-member-list .selection-member-type {
  color: #6c757d;
  white-space: nowrap;
}

.selection-member-list .selection-member-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selection-member-list .selection-member-condition {
  margin-left: auto;
  color: #f59f00;
  white-space: nowrap;
}

.group-condition-list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  font-size: 0.85rem;
}

.group-condition-list li {
  padding: 2px 0;
}

/* Under Visibility: the section doesn't grow, so hidden rows leave a gap. */
.properties-panel .visibility-grow-notice {
  padding: 8px 10px;
  border: 1px solid #ffe08a;
  border-radius: 6px;
  background: #fff8e1;
  font-size: 12px;
  color: #664d03;
}

.properties-panel .visibility-grow-notice ul {
  margin: 4px 0 8px;
  padding-left: 18px;
}

.properties-panel-section {
  margin-bottom: 20px;
}

.properties-panel-section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6c757d;
  margin-bottom: 8px;
}

.properties-panel .toolbar-buttons {
  display: flex;
  flex-wrap: wrap;
  row-gap: 6px;
}

.properties-panel .toolbar-group {
  display: flex;
  gap: 2px;
  padding-right: 6px;
  margin-right: 6px;
  border-right: 1px solid #e5e7eb;
}

.properties-panel .toolbar-group:last-child {
  border-right: 0;
  margin-right: 0;
  padding-right: 0;
}

.properties-panel .toolbar-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #212529;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.properties-panel .toolbar-btn:hover {
  background-color: #f1f3f5;
}

.properties-panel .toolbar-btn.active {
  background-color: #e7f1ff;
  border-color: #b6d4fe;
  color: #0d6efd;
}

.properties-panel .toolbar-btn:focus-visible {
  outline: 2px solid #86b7fe;
  outline-offset: 1px;
}

.properties-panel .toolbar-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.properties-panel .toolbar-field {
  width: 100%;
}

.properties-panel .toolbar-field-label {
  font-size: 12px;
  color: #495057;
  margin-bottom: 4px;
}

.properties-panel .toolbar-input {
  height: 32px;
  border-radius: 4px;
}

.properties-panel .toolbar-segmented {
  display: flex;
  width: 100%;
  height: 32px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  overflow: hidden;
}

.properties-panel .toolbar-segmented button {
  flex: 1 1 0;
  min-width: 0;
  padding: 0 4px;
  border: 0;
  background: #fff;
  color: #212529;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.properties-panel .toolbar-segmented button + button {
  border-left: 1px solid #dee2e6;
}

.properties-panel .toolbar-segmented button:hover {
  background-color: #f1f3f5;
}

.properties-panel .toolbar-segmented button.active {
  background-color: #e7f1ff;
  color: #0d6efd;
}

.properties-panel .border-style-swatch {
  display: inline-block;
  width: 12px;
  margin-right: 4px;
  vertical-align: middle;
  border-top: 2px solid currentColor;
}

.properties-panel .border-style-swatch.is-dashed {
  border-top-style: dashed;
}

.properties-panel .border-style-swatch.is-dotted {
  border-top-style: dotted;
}

.properties-panel .toolbar-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  margin: 0;
  padding-left: 2.5em;
}

.properties-panel .toolbar-switch .form-check-input {
  width: 2.25em;
  height: 1.25em;
  margin-top: 0;
  cursor: pointer;
}

.properties-panel .toolbar-switch .form-check-label {
  font-size: 13px;
  cursor: pointer;
}

/* Switches in the side panel: one compact row each (label left, switch
   right), and switches that follow each other join into one bordered list. */
.properties-panel .toolbar-field-row {
  display: contents;
}

.properties-panel .toolbar-field-switch,
.properties-panel .toolbar-field-row .toolbar-field-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  padding: 2px 10px;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  background: #fff;
}

.properties-panel .toolbar-field-switch + .toolbar-field-switch {
  margin-top: -13px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.properties-panel .toolbar-field-switch:has(+ .toolbar-field-switch) {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.properties-panel .toolbar-field-switch:hover {
  background: #f8f9fa;
}

.properties-panel .toolbar-field-switch .toolbar-field-label {
  margin-bottom: 0;
  font-size: 13px;
  color: #212529;
}

.properties-panel .toolbar-field-switch .toolbar-switch {
  flex: 0 0 auto;
  height: auto;
  min-height: 0;
  padding-left: 0;
}

.properties-panel .toolbar-field-switch .toolbar-switch .form-check-input {
  float: none;
  margin-left: 0;
}

/* The row's label says what the switch does; "On"/"Off" is only for
   screen readers. */
.properties-panel .toolbar-field-switch .toolbar-switch .form-check-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.properties-panel-expand.has-selection {
  background: #e7f1ff;
  color: #0d6efd;
}

.fullscreen-bg .nav-properties-column .column-body.properties-panel {
  padding: 12px;
}

.fullscreen-bg .nav-properties-column .column-header.properties-panel-header {
  padding: 20px 12px;
}
/* Narrow panel: keep segmented labels on one line. */
.properties-panel .toolbar-segmented button {
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Keyboard shortcuts cheat sheet. */
.shortcuts-modal {
  max-width: 480px;
}

.shortcuts-group + .shortcuts-group {
  margin-top: 16px;
}

.shortcuts-group-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6c757d;
  margin-bottom: 6px;
}

.shortcuts-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 5px 0;
  border-bottom: 1px solid #f1f3f5;
  font-size: 14px;
}

.shortcuts-keys {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  flex: 0 0 auto;
}

.shortcuts-combo {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.shortcuts-modal kbd {
  display: inline-block;
  padding: 1px 6px;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.5;
  color: #212529;
  background: #fff;
  border: 1px solid #ced4da;
  border-bottom-width: 2px;
  border-radius: 4px;
  box-shadow: none;
}

.shortcuts-plus,
.shortcuts-or {
  font-size: 12px;
  color: #adb5bd;
}
/* ---- Items: table column list (Labels tab) ----
   Accents use the app's primary colour (#00446d, src/styles/app.scss). */
.item-columns .item-column {
  border-left: 3px solid transparent;
}

.item-columns .item-column--available {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  background: #fff;
  color: #6c757d;
}

.item-columns .item-column--available .item-column-add {
  padding: 1px 8px;
  font-size: 12px;
  flex: 0 0 auto;
}

.item-columns .item-column--added {
  padding: 10px;
  background: #f3f6f8;
  border-left-color: #00446d;
  color: #212529;
}

.item-columns .item-column-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.item-columns .item-column--added .item-column-name {
  font-weight: 600;
}

.item-columns .item-column-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.item-columns .item-column-badge {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  background: #00446d;
  border-radius: 10px;
  padding: 1px 7px;
}

.item-columns .item-column-remove {
  flex: 0 0 auto;
  padding: 0 4px;
  color: #6c757d;
}

.item-columns .item-column-remove:hover {
  color: #dc3545;
}

.item-columns .item-column-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px 10px;
}

.item-columns .item-column-field label {
  display: block;
  font-size: 12px;
  color: #495057;
  margin-bottom: 2px;
}

.item-columns .item-column-field--full {
  grid-column: 1 / -1;
}

.item-columns .item-column-field--check {
  display: flex;
  align-items: flex-end;
  padding-bottom: 5px;
}

.item-columns .item-column-field--check label {
  font-size: 13px;
  color: #212529;
  margin: 0;
}

.item-columns .item-column-segmented {
  display: flex;
  height: 31px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.item-columns .item-column-segmented button {
  flex: 1 1 0;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #495057;
  font-size: 13px;
  cursor: pointer;
}

.item-columns .item-column-segmented button + button {
  border-left: 1px solid #dee2e6;
}

.item-columns .item-column-segmented button:hover {
  background: #f1f3f5;
}

.item-columns .item-column-segmented button.active {
  background: rgba(0, 68, 109, 0.12);
  color: #00446d;
}

/* Header text with the column's value format beside it. */
.item-columns .item-column-header-format {
  display: flex;
  gap: 8px;
}

.item-columns .item-column-header-input {
  flex: 1 1 auto;
  min-width: 0;
}

.item-columns .item-column-format-select {
  flex: 0 0 112px;
}

.item-columns .item-column-format-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.item-columns .item-column-format-checks label {
  font-size: 13px;
  color: #212529;
  margin: 0;
}

.item-columns .item-column-format-example {
  font-size: 12px;
  color: #6c757d;
}

/* Field label with hover help. */
.field-label-tip {
  cursor: pointer;
}

.field-label-tip .field-label-tip-icon {
  margin-left: 6px;
  color: #adb5bd;
}

/* The side panel sits at z-index 1000001, so tooltips must go above it. */
.tooltip.field-help-tooltip {
  z-index: 1000010;
}

.field-label-tip:hover .field-label-tip-icon {
  color: #00446d;
}

/* ---- Items Layout: header / row text style fields ---- */
.table-style-fields {
  display: grid;
  /* minmax(0, 1fr): columns never grow wider than the side panel. */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px 12px;
}

.table-style-field {
  min-width: 0;
}

.table-style-field .form-select,
.table-style-field .input-group {
  width: 100%;
}

/* Items > Layout tab: titled sections with even spacing. */
.items-layout {
  padding-bottom: 16px;
}

.items-layout-section {
  padding: 14px 0;
  border-top: 1px solid #e9ecef;
}

.items-layout-title {
  font-weight: 600;
  margin-bottom: 10px;
}

.items-layout-check {
  margin-top: 12px;
  margin-bottom: 0;
}

.items-layout-sub {
  margin-top: 8px;
  padding-left: 24px;
}

.table-style-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #495057;
  margin-bottom: 2px;
}

.table-style-inherited {
  font-size: 10px;
  color: #adb5bd;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.table-style-reset {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 11px;
  color: #00446d;
  text-decoration: underline;
  cursor: pointer;
}

.table-style-segmented {
  display: flex;
  height: 31px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.table-style-segmented button {
  flex: 1 1 0;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #495057;
  font-size: 12px;
  cursor: pointer;
}

.table-style-segmented button + button {
  border-left: 1px solid #dee2e6;
}

.table-style-segmented button:hover {
  background: #f1f3f5;
}

.table-style-segmented button.active {
  background: rgba(0, 68, 109, 0.12);
  color: #00446d;
}

/* Underlined header/value cells stay underlined on hover. */
.column-underline,
.column-underline:hover {
  text-decoration: underline !important;
}
/* ---- Items > Layout tab: one spacing scale (8px steps) and one control
   height (32px) for every input, select, unit box, colour field and button
   group. ---- */
.items-layout .items-layout-picker {
  padding: 16px 0;
  margin: 0;
}

.items-layout .items-layout-hint {
  display: block;
  margin-top: 8px;
}

.items-layout .items-layout-section {
  padding: 16px 0;
  border-top: 1px solid #e9ecef;
}

.items-layout .items-layout-title {
  font-weight: 600;
  line-height: 20px;
  margin-bottom: 12px;
}

.items-layout .table-style-fields {
  gap: 12px;
}

.items-layout .table-style-label {
  height: 16px;
  line-height: 16px;
  margin-bottom: 4px;
}

.items-layout .items-layout-check {
  margin-top: 12px;
  margin-bottom: 0;
  min-height: 20px;
}

.items-layout .items-layout-sub {
  margin-top: 8px;
}

.items-layout .form-select,
.items-layout .form-control,
.items-layout .input-group-text,
.items-layout .table-style-segmented,
.items-layout .compact-colour-field input[type="text"] {
  height: 32px;
  min-height: 32px;
}

.items-layout .form-select,
.items-layout .form-control {
  font-size: 13px;
  padding-top: 0;
  padding-bottom: 0;
}

.items-layout .input-group-text {
  font-size: 12px;
  padding-top: 0;
  padding-bottom: 0;
}

.items-layout .compact-colour-field > div:last-of-type > div {
  height: 32px;
}
/* ---- Items > Labels: column order (drag and drop) ---- */
.item-columns-group-title {
  font-size: 12px;
  font-weight: 600;
  color: #495057;
  margin: 8px 0 6px;
}

.item-columns .item-column-drag {
  flex: 0 0 auto;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: #868e96;
  cursor: grab;
  line-height: 1;
}

.item-columns .item-column-drag:hover,
.item-columns .item-column-drag:focus-visible {
  color: #00446d;
  outline: none;
}

.item-columns .item-column-drag:active {
  cursor: grabbing;
}

.item-columns .item-column.is-dragging {
  opacity: 0.5;
}

/* Drop indicator: a navy line above or below the card it will land next to. */
.item-columns .item-column.is-drop-before {
  box-shadow: inset 0 3px 0 0 #00446d;
}

.item-columns .item-column.is-drop-after {
  box-shadow: inset 0 -3px 0 0 #00446d;
}
/*# sourceMappingURL=paper.css.map */

/* Shape and QR code names: a pencil appears on hover to rename. */
.element-name {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
}

.element-name-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.element-name-edit {
  padding: 0 2px;
  border: 0;
  background: none;
  color: #adb5bd;
  font-size: 0.75em;
  line-height: 1;
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.element-name:hover .element-name-edit,
[data-target]:hover .element-name-edit,
.element-name-edit:focus-visible {
  opacity: 1;
}

.element-name-edit:hover {
  color: #0d6efd;
}

.element-name-input {
  display: inline-block;
  width: 180px;
  height: 26px;
  padding: 2px 6px;
  font-size: 13px;
}

/* Calculation values in the side panel: [+/-] [value] [number] [x]. */
.calculation-term {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.calculation-term .form-select {
  flex: 1 1 auto;
  min-width: 0;
}

.calculation-number {
  flex: 0 0 72px;
}

.calculation-op {
  flex: 0 0 28px;
  height: 28px;
  border: 1px solid #b6d4fe;
  border-radius: 4px;
  background: #e7f1ff;
  color: #0d6efd;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.calculation-op.is-subtract {
  border-color: #f5c2c7;
  background: #f8d7da;
  color: #b02a37;
}

.calculation-remove {
  flex: 0 0 auto;
  padding: 0 4px;
  border: 0;
  background: none;
  color: #adb5bd;
  cursor: pointer;
}

.calculation-remove:hover {
  color: #dc3545;
}
