:root {
  --bs-primary: #155fb8;
  --bs-primary-rgb: 21, 95, 184;
  --bs-link-color: #155fb8;
  --bs-link-hover-color: #104b94;
  --ink: #21364f;
  --muted: #7a8799;
  --page: #f4f7fb;
  --line: #e1e8f1;
  --navy: #102c50;
  --blue: #155fb8;
  --sidebar: 210px
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Yu Gothic", Meiryo, sans-serif;
  font-size: 14px;
  line-height: 1.55
}

h1,
h2,
h3,
h4 {
  color: var(--ink)
}

h1 {
  font-size: 26px;
  font-weight: 650;
  letter-spacing: .3px;
  margin: 0
}

h2 {
  font-size: 17px;
  font-weight: 600
}

h3 {
  font-size: 15px;
  font-weight: 600
}

h4 {
  font-size: 14px;
  font-weight: 600
}

a {
  color: var(--blue)
}

button,
input,
select,
textarea {
  font: inherit
}

.icon-library {
  width: 0;
  height: 0;
  position: absolute;
  overflow: hidden
}

.ui-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
  vertical-align: middle
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  min-height: 39px;
  border-radius: 7px;
  padding: 8px 13px
}

.btn .ui-icon {
  width: 15px;
  height: 15px
}

.btn-sm {
  font-size: 11px;
  min-height: 30px;
  padding: 5px 10px
}

.btn-primary {
  --bs-btn-bg: #155fb8;
  --bs-btn-border-color: #155fb8;
  --bs-btn-hover-bg: #124f99;
  --bs-btn-hover-border-color: #124f99;
  --bs-btn-active-bg: #10478a;
  --bs-btn-disabled-bg: #155fb8;
  --bs-btn-disabled-border-color: #155fb8;
  box-shadow: 0 2px 4px #155fb81a
}

.btn-outline-secondary {
  --bs-btn-color: #697b92;
  --bs-btn-border-color: #d8e1ed;
  --bs-btn-hover-bg: #eef3fa;
  --bs-btn-hover-color: #284f80;
  --bs-btn-hover-border-color: #bdcfe3;
  background: white
}

.btn-outline-primary {
  --bs-btn-color: #155fb8;
  --bs-btn-border-color: #c6d8ef;
  --bs-btn-hover-bg: #eaf2fd;
  --bs-btn-hover-color: #104b94;
  --bs-btn-hover-border-color: #8eb5e4;
  background: white
}

.btn-link {
  color: #637e9e;
  text-decoration: none
}

.btn-link:hover {
  text-decoration: underline
}

.text-secondary {
  color: var(--muted) !important
}

.form-control,
.form-select {
  font-size: 13px;
  min-height: 41px;
  border-color: #dbe3ee;
  border-radius: 6px;
  color: var(--ink);
  background-color: white
}

.form-control:focus,
.form-select:focus {
  border-color: #8cb5e5;
  box-shadow: 0 0 0 3px #155fb817
}

.form-control::placeholder {
  color: #9aa6b7
}

.form-label {
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 7px
}

.form-text {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7
}

.required-mark {
  color: #4779b3;
  font-size: 12px;
  margin-left: 5px
}

.optional-label {
  font-size: 10px;
  color: #9aa6b6;
  font-weight: 400;
  margin-left: 7px
}

.small,
small {
  font-size: 11px
}

.alert {
  font-size: 12px;
  border-radius: 7px
}

.alert-primary {
  --bs-alert-bg: #eaf2fd;
  --bs-alert-border-color: #d3e2f5;
  --bs-alert-color: #42658e
}

.alert-warning {
  --bs-alert-bg: #fff7e9;
  --bs-alert-border-color: #eddfc4;
  --bs-alert-color: #94723d
}

.alert-danger {
  --bs-alert-bg: #fff1ef;
  --bs-alert-border-color: #efd6d0;
  --bs-alert-color: #a44b41
}

.form-errors {
  line-height: 1.9
}

.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  padding: 30px 18px;
  display: flex;
  flex-direction: column;
  background: var(--navy);
  color: #d6e3f4;
  z-index: 30
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  text-decoration: none;
  font-size: 24px;
  font-weight: 750;
  letter-spacing: 1px;
  margin-bottom: 43px
}

.brand:hover {
  color: white
}

.brand-symbol {
  display: grid;
  place-items: center;
  background: #2375d8;
  color: white;
  border-radius: 7px;
  width: 37px;
  height: 41px;
  font-size: 28px;
  line-height: 1
}

.brand small {
  display: block;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 3px;
  margin-top: 3px;
  color: #9bb8d9
}

.nav-section-label {
  font-size: 10px;
  color: #7f9bbd;
  margin: 0 11px 13px;
  letter-spacing: .7px
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border-radius: 7px;
  color: #b4c9e2;
  text-decoration: none;
  font-size: 12px;
  margin-bottom: 6px
}

.sidebar-link:hover {
  background: #193d68;
  color: white
}

.sidebar-link.active {
  background: #2371cb;
  color: white;
  font-weight: 600;
  box-shadow: 0 2px 9px #071e3b20
}

.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid #2c476a;
  padding: 21px 8px 0;
  color: #8daacc;
  font-size: 9px;
  letter-spacing: .5px;
  display: flex;
  align-items: center;
  gap: 8px
}

.sidebar-mark {
  display: block;
  background: #6aa9f0;
  width: 5px;
  height: 5px;
  border-radius: 50%
}

.app-layout {
  margin-left: var(--sidebar)
}

.app-topbar {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
  background: #ffffffd9
}

.breadcrumb-label {
  font-size: 11px;
  color: #78879c
}

.breadcrumb-label>span:first-child {
  color: #344e70;
  font-size: 10px;
  letter-spacing: 1px;
  font-weight: 650
}

.breadcrumb-slash {
  margin: 0 14px;
  color: #b4c0d1
}

.topbar-badge {
  font-size: 10px;
  border: 1px solid #d9e4f2;
  background: #f2f6fc;
  color: #6e86a5;
  padding: 4px 9px;
  border-radius: 5px
}

.app-main {
  padding: 33px 34px 0;
  max-width: 1810px;
  margin: 0 auto
}

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 27px
}

.page-eyebrow {
  font-size: 9px;
  letter-spacing: 2px;
  color: #8397b1;
  font-weight: 650;
  margin-bottom: 7px
}

.heading-actions {
  display: flex;
  gap: 9px
}

.demo-banner {
  padding: 10px 14px;
  border: 1px solid #d5e3f5;
  background: #ebf3ff;
  border-radius: 7px;
  color: #6986a9;
  font-size: 10px;
  margin-bottom: 23px
}

.app-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #a1aec0;
  font-size: 8px;
  letter-spacing: .8px;
  padding: 25px 0
}

.app-footer>span:last-child {
  letter-spacing: 0
}

.request-progress {
  height: 3px;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 2000;
  background: #4a96ef;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s
}

.htmx-request .request-progress,
.request-progress.htmx-request {
  opacity: 1
}

.app-toast {
  background: #183e6e;
  color: white;
  border: 1px solid #476b9a;
  font-size: 12px
}

.app-toast .btn-close {
  filter: invert(1)
}

.filter-bar {
  margin-bottom: 18px
}

.filter-toolbar {
  display: flex;
  align-items: center;
  gap: 10px
}

.search-field {
  position: relative;
  flex: 1;
  margin: 0;
  min-width: 160px
}

.search-field>.ui-icon {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 16px;
  height: 16px;
  color: #8a9ab0
}

.search-field .form-control {
  padding-left: 37px
}

.sort-select {
  max-width: 155px;
  font-size: 12px
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 15px;
  padding: 19px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 12px
}

.filter-grid>label {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 6px
}

.filter-grid .form-control,
.filter-grid .form-select {
  font-size: 12px;
  min-height: 37px
}

.filter-clear {
  display: flex;
  align-items: flex-end
}

.results-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  color: #8a98ad;
  margin: 16px 0 14px;
  min-height: 19px
}

.results-caption strong {
  font-weight: 500;
  color: #4c6483
}

.job-list {
  display: flex;
  flex-direction: column;
  gap: 12px
}

.job-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 2px 4px #1a456707
}

.job-item-summary+.job-item-summary {
  border-top: 1px dashed #e3eaf3
}

.job-meta-line {
  display: grid;
  grid-template-columns: 185px minmax(90px, .9fr) minmax(125px, 1.5fr) 100px 72px;
  gap: 12px;
  align-items: center;
  padding: 17px 17px 12px
}

.job-identity {
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  border: 0;
  padding: 0;
  background: transparent;
  min-width: 0
}

.job-identity>.ui-icon {
  color: #95a6bd;
  width: 14px;
  height: 14px;
  transition: transform .15s
}

.job-identity[aria-expanded=true]>.ui-icon {
  transform: rotate(90deg)
}

.serial {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: .3px;
  color: #294f7f;
  font-variant-numeric: tabular-nums
}

.kouban {
  font-size: 10px;
  color: #8b9ab0;
  overflow-wrap: anywhere
}

.job-customer {
  font-size: 11px;
  color: #8090a6;
  overflow-wrap: anywhere
}

.job-product {
  font-size: 13px;
  font-weight: 550;
  overflow-wrap: anywhere
}

.job-product small {
  font-size: 10px;
  font-weight: 400;
  color: #8b99ae;
  margin-left: 5px;
  white-space: nowrap
}

.item-number {
  font-size: 9px;
  font-weight: 400;
  color: #98a6b9;
  display: inline-block;
  margin-left: 6px
}

.job-date {
  white-space: nowrap;
  font-size: 11px;
  font-variant-numeric: tabular-nums
}

.job-date>small {
  color: #94a2b5;
  font-size: 10px;
  margin-right: 5px
}

.due-kind {
  font-size: 9px;
  color: #9aa8ba;
  margin-left: 4px
}

.sub-item-label {
  color: #98a5b9;
  font-size: 10px;
  padding-left: 25px
}

.job-production-line {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 17px 17px 41px;
  flex-wrap: wrap
}

.receipts-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none
}

.receipt-mini {
  border: 0;
  background: none;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: #8b9bb0;
  white-space: nowrap
}

.receipt-mini .ui-icon {
  width: 12px;
  height: 12px
}

.receipt-mini.complete {
  color: #4e81be
}

.receipt-mini.partial {
  color: #b58a4d
}

.receipt-mini.missing {
  color: #a9b5c5
}

.receipt-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%)
}

.stage-chips {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  min-width: 0
}

.stage-chip {
  border: 1px solid #e0e7f1;
  border-radius: 6px;
  background: #f8fafd;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 9px;
  min-height: 34px;
  color: #3c5676;
  flex: 1;
  white-space: nowrap;
  font-size: 11px
}

.stage-chip:hover {
  background: #edf4fd;
  border-color: #b6cee9
}

.stage-chip.matched {
  border-color: #76a4dc;
  background: #edf4ff
}

.stage-name {
  font-size: 11px;
  font-weight: 550
}

.status-badge {
  display: inline-block;
  border-radius: 4px;
  padding: 2px 5px;
  font-size: 10px;
  font-weight: 400;
  white-space: nowrap
}

.status-pending {
  color: #8999ad;
  background: #eef2f7
}

.status-working {
  color: #347aa5;
  background: #e8f3fc
}

.status-complete {
  color: #2a66ad;
  background: #e5eefb
}

.status-hold {
  color: #ae7a36;
  background: #fcf2df
}

.staff-count {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border-left: 1px solid #dce5f1;
  padding-left: 6px;
  font-size: 10px;
  color: #8395ad
}

.staff-count .ui-icon {
  width: 12px;
  height: 12px
}

.unassigned-badge {
  font-size: 10px;
  color: #b2773f;
  background: #fcf1e1;
  display: inline-block;
  padding: 3px 6px;
  border-radius: 4px;
  white-space: nowrap
}

.not-applicable {
  opacity: .6
}

.stage-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #ccd9eb;
  background: white;
  color: #89a2c2;
  border-radius: 5px;
  width: 28px;
  height: 30px;
  flex: none;
  padding: 5px
}

.stage-add .ui-icon {
  width: 14px;
  height: 14px
}

.no-plans {
  font-size: 11px;
  color: #9eacc0
}

.empty-state {
  padding: 48px 22px;
  text-align: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px
}

.empty-state>.ui-icon {
  width: 30px;
  height: 30px;
  color: #96b4db;
  margin-bottom: 18px
}

.empty-state h2 {
  font-size: 16px;
  margin-bottom: 9px
}

.empty-state p {
  font-size: 12px;
  color: #91a0b5;
  margin-bottom: 20px
}

.list-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 23px;
  font-size: 11px;
  color: #8fa0b7
}

.job-expanded {
  padding: 23px;
  background: #f8fafd;
  border-top: 1px solid var(--line)
}

.expanded-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 18px
}

.expanded-heading h2 {
  font-size: 15px;
  margin: 0
}

.expanded-heading h2>span {
  font-size: 12px;
  font-weight: 400;
  color: #8a9bb1;
  margin-left: 12px
}

.expanded-heading p {
  font-size: 11px;
  color: #899ab2;
  margin: 6px 0 0
}

.item-detail-section {
  border-top: 1px solid var(--line);
  padding: 23px 0 8px
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px
}

.section-heading h2,
.section-heading h3,
.section-heading h4 {
  margin: 0
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
  margin: 0 0 19px
}

.detail-grid dt {
  font-size: 10px;
  color: #91a0b5;
  font-weight: 400;
  margin-bottom: 5px
}

.detail-grid dd {
  margin: 0;
  font-size: 12px;
  overflow-wrap: anywhere
}

.detail-receipts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px
}

.receipt-detail {
  padding: 13px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px
}

.receipt-detail>div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  gap: 8px
}

.receipt-detail strong {
  font-weight: 500
}

.receipt-detail>div>span {
  font-size: 10px;
  color: #718dad
}

.receipt-detail>small {
  font-size: 10px;
  color: #92a0b4;
  display: block;
  margin: 7px 0 10px
}

.receipt-detail p {
  font-size: 11px;
  color: #8293a9;
  white-space: pre-wrap
}

.record-notes {
  font-size: 12px;
  white-space: pre-wrap;
  color: #7387a1;
  padding: 12px 0
}

.record-notes>span {
  font-size: 10px;
  display: block;
  margin-bottom: 6px;
  color: #9aa7b9
}

.detail-table {
  font-size: 11px;
  --bs-table-bg: transparent;
  --bs-table-border-color: #e2e9f3;
  min-width: 570px
}

.detail-table th {
  font-size: 10px;
  font-weight: 500;
  color: #91a0b6;
  padding: 10px 8px;
  background: #f0f4fa
}

.detail-table td {
  padding: 12px 8px
}

.assignment-line+.assignment-line {
  margin-top: 5px
}

.text-button {
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  color: #4876ac;
  font-size: 11px
}

.text-button small {
  font-size: 10px;
  color: #98a5b8;
  margin-left: 6px
}

.history-heading {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 23px 0 13px
}

.history-heading h3 {
  margin: 0
}

.history-table pre {
  font-size: 10px;
  max-width: 250px;
  max-height: 160px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #72839c;
  margin: 0
}

.selected-assignment {
  background: #edf4fe;
  border: 1px solid #d4e3f7;
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  font-size: 12px;
  flex-wrap: wrap
}

.selected-assignment>span {
  font-size: 11px;
  color: #7f96b3
}

.selected-assignment>.btn {
  margin-left: auto
}

.table-panel {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  overflow: hidden
}

.table-panel .table {
  --bs-table-border-color: #e6ecf5;
  font-size: 13px
}

.table-panel th {
  background: #f8fafd;
  color: #8a9bb1;
  font-size: 11px;
  font-weight: 500;
  padding: 15px 21px;
  white-space: nowrap
}

.table-panel td {
  padding: 20px 21px
}

.table-panel tbody tr:last-child td {
  border-bottom: 0
}

.customer-table {
  min-width: 550px
}

.customer-table th:first-child {
  width: 36%
}

.customer-name {
  font-size: 14px;
  font-weight: 500
}

.count-cell span {
  font-size: 18px;
  font-weight: 500;
  font-variant-numeric: tabular-nums
}

.count-cell small {
  font-size: 10px;
  color: #9aa7ba;
  margin-left: 5px
}

.table-footnote {
  font-size: 10px;
  color: #9aa7b9;
  margin: 14px 0 0
}

.panorama-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px
}

.month-field {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #8396af
}

.month-field .form-control {
  max-width: 170px;
  font-size: 12px
}

.form-panel {
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-bottom: 20px
}

.auto-number-label {
  font-size: 11px;
  color: #87a0c0;
  background: #f1f6fd;
  padding: 5px 9px;
  border-radius: 5px
}

.customer-picker {
  display: flex;
  gap: 9px;
  align-items: center
}

.customer-picker .form-select {
  flex: 1;
  min-width: 0
}

.customer-picker .btn {
  font-size: 11px;
  white-space: nowrap
}

.item-section-heading {
  margin: 27px 0 16px
}

.item-legend {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  width: auto;
  float: none
}

.order-actions {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 3px 0 12px
}

.modal-content {
  border: 1px solid #dbe4f1;
  border-radius: 11px;
  box-shadow: 0 18px 70px #12386922
}

.modal-header {
  padding: 22px 24px 18px;
  align-items: flex-start;
  border-bottom-color: #e4ebf4
}

.modal-kicker {
  font-size: 10px;
  color: #9aa8bc;
  margin-bottom: 7px;
  overflow-wrap: anywhere
}

.modal-title {
  font-size: 19px !important;
  font-weight: 600;
  line-height: 1.6
}

.modal-title>.status-badge {
  font-size: 11px;
  vertical-align: middle;
  margin-left: 5px
}

.modal-body {
  padding: 22px 24px
}

.modal-footer {
  padding: 15px 24px 21px;
  border-top-color: #e6ecf4
}

.modal-footer .btn {
  font-size: 12px
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px
}

.calendar-date-controls,
.calendar-select-controls {
  display: flex;
  align-items: center;
  gap: 7px
}

.calendar-date-controls>.btn {
  flex: none;
  white-space: nowrap;
  min-width: 32px
}

.employee-calendar tbody .employee-label {
  border-bottom: 1px solid #e5ecf6
}

.employee-calendar .employee-identity {
  border-bottom: 0
}

.calendar-date-controls>.form-control {
  max-width: 145px;
  font-size: 12px
}

.calendar-date-controls>.form-select {
  max-width: 100px;
  font-size: 12px
}

.calendar-select-controls>.form-select {
  max-width: 160px;
  font-size: 12px
}

.calendar-select-controls>.form-control {
  max-width: 180px;
  font-size: 12px
}

.calendar-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden
}

.calendar-scroll {
  overflow: auto;
  max-height: 650px;
  scrollbar-width: thin;
  scrollbar-color: #cad8ea #f4f7fb
}

.employee-calendar {
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  width: max-content;
  min-width: 100%;
  font-size: 12px
}

.employee-calendar .employee-label {
  width: 190px;
  min-width: 190px;
  max-width: 190px;
  position: sticky;
  left: 0;
  z-index: 2;
  background: white;
  border-right: 1px solid #dce6f2;
  text-align: left
}

.employee-calendar thead {
  position: sticky;
  top: 0;
  z-index: 4
}

.employee-calendar thead .employee-label {
  z-index: 5;
  background: #f6f9fd;
  color: #8ba0bc;
  font-size: 11px;
  padding-left: 18px;
  font-weight: 400
}

.calendar-date {
  background: #f6f9fd;
  min-width: 82px;
  width: 82px;
  height: 65px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid #e9eff7;
  padding: 9px 3px;
  font-weight: 400
}

.calendar-day {
  display: block;
  font-size: 15px;
  color: #637e9f;
  font-weight: 500;
  font-variant-numeric: tabular-nums
}

.calendar-date small {
  display: block;
  font-size: 9px;
  color: #98a9bf;
  margin-top: 3px
}

.calendar-date.today .calendar-day {
  background: #2671cb;
  color: white;
  border-radius: 5px;
  margin: 0 auto;
  width: 27px
}

.calendar-cell {
  width: 82px;
  min-width: 82px;
  vertical-align: top;
  padding: 10px 5px;
  border-right: 1px solid #eaf0f8;
  border-bottom: 1px solid #e5ecf6;
  height: 94px
}

.calendar-cell.weekend,
.calendar-date.weekend {
  background: #f1f4f9
}

.calendar-cell.company-holiday,
.calendar-date.company-holiday {
  background: #f9f1e7
}

.calendar-cell.personal-holiday {
  background: #fcf6ed
}

.calendar-rest {
  display: block;
  text-align: center;
  padding-top: 9px;
  font-size: 10px;
  color: #a2b0c2
}

.personal-holiday .calendar-rest,
.company-holiday .calendar-rest {
  color: #b79b72
}

.employee-calendar tbody tr:last-child .calendar-cell,
.employee-calendar tbody tr:last-child .employee-label {
  border-bottom: 0
}

.employee-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 17px 12px 17px 17px;
  min-height: 94px;
  font-size: 12px;
  font-weight: 500;
  border-bottom: 1px solid #e5ecf6
}

.employee-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 27px;
  height: 29px;
  border-radius: 7px;
  background: #eff4fc;
  color: #7898c2;
  font-size: 11px
}

.employee-identity>span:nth-child(2) {
  overflow-wrap: anywhere;
  flex: 1
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: #a5b5cb;
  padding: 3px;
  flex: none
}

.icon-button .ui-icon {
  width: 13px;
  height: 13px
}

.daily-assignments {
  display: flex;
  flex-direction: column;
  gap: 6px
}

.calendar-task {
  display: block;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 7px 3px;
  font-size: 11px;
  font-weight: 500;
  min-height: 32px;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  width: 100%
}

.task-pending {
  background: #edf2fa;
  color: #6e86a7
}

.task-working {
  background: #e1effc;
  color: #347cb4
}

.task-complete {
  background: #e3edfc;
  color: #285c9d
}

.task-hold {
  background: #fcf0dc;
  color: #ac813f
}

.calendar-task:hover {
  border-color: #78a5dc;
  box-shadow: 0 0 0 2px #155fb810
}

.calendar-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding: 13px 18px;
  color: #94a4ba;
  font-size: 10px
}

.calendar-legend>span {
  display: inline-flex;
  align-items: center;
  gap: 5px
}

.legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px
}

.pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  font-size: 12px
}

.pref-row small {
  color: #92a1b7;
  margin-left: 7px
}

@media(min-width:1450px) {
  .job-production-line {
    flex-wrap: nowrap
  }

  .stage-chips {
    flex-wrap: nowrap
  }

  .stage-chip {
    padding: 7px 8px;
    gap: 6px
  }

  .stage-name {
    font-size: 12px
  }
}

@media(max-width:1250px) {
  :root {
    --sidebar: 185px
  }

  .app-main {
    padding: 28px 23px 0
  }

  .app-topbar {
    padding: 0 23px
  }

  .app-sidebar {
    padding: 28px 14px
  }

  .job-meta-line {
    grid-template-columns: 155px minmax(80px, .9fr) minmax(110px, 1.3fr) 95px 65px;
    gap: 9px
  }

  .job-identity {
    gap: 6px;
    flex-wrap: wrap
  }

  .job-identity .kouban {
    font-size: 9px
  }

  .serial {
    font-size: 13px
  }

  .job-production-line {
    padding-left: 24px;
    gap: 12px
  }

  .receipts-mini {
    width: 100%
  }

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

  .calendar-select-controls {
    flex: 1
  }

  .calendar-select-controls>* {
    flex: 1;
    min-width: 0
  }
}

@media(max-width:950px) {
  :root {
    --sidebar: 165px
  }

  .brand {
    font-size: 21px;
    gap: 9px
  }

  .brand-symbol {
    width: 32px;
    height: 36px;
    font-size: 25px
  }

  .sidebar-link {
    font-size: 11px;
    padding: 11px 9px
  }

  .nav-section-label {
    font-size: 9px
  }

  .app-main {
    padding: 25px 19px 0
  }

  .job-meta-line {
    grid-template-columns: 150px 1fr 1.2fr
  }

  .job-meta-line .job-date {
    grid-row: 2
  }

  .job-meta-line .job-date:nth-last-child(2) {
    grid-column: 2
  }

  .job-meta-line .job-date:last-child {
    grid-column: 3
  }

  .job-product {
    font-size: 12px
  }

  .job-customer {
    font-size: 10px
  }

  .detail-receipts {
    gap: 8px
  }

  .expanded-heading {
    flex-direction: column;
    gap: 14px
  }

  .detail-grid {
    grid-template-columns: 1fr 1fr
  }

  .customer-picker {
    flex-wrap: wrap
  }

  .customer-picker .form-select {
    flex-basis: 100%
  }

  .table-panel td {
    padding: 18px 17px
  }
}

@media(max-width:700px) {
  :root {
    --sidebar: 0px
  }

  .app-sidebar {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 15px 15px 10px
  }

  .brand {
    margin: 0;
    font-size: 21px
  }

  .brand small {
    display: none
  }

  .brand-symbol {
    width: 28px;
    height: 30px;
    font-size: 22px
  }

  .nav-section-label,
  .sidebar-footer {
    display: none
  }

  .app-sidebar>nav {
    grid-column: 1/-1;
    grid-row: 2;
    display: flex;
    gap: 5px;
    margin-top: 7px
  }

  .sidebar-link {
    flex: 1;
    justify-content: center;
    margin: 0;
    padding: 10px 6px;
    font-size: 10px;
    gap: 7px
  }

  .sidebar-link .ui-icon {
    width: 16px;
    height: 16px
  }

  .app-sidebar>.sidebar-link {
    grid-column: 2;
    grid-row: 1;
    padding: 5px 9px;
    justify-content: flex-end;
    gap: 7px;
    font-size: 10px
  }

  .app-sidebar>.sidebar-link .ui-icon {
    width: 14px
  }

  .app-layout {
    margin-left: 0
  }

  .app-topbar {
    height: 44px;
    padding: 0 16px
  }

  .breadcrumb-label {
    font-size: 10px
  }

  .breadcrumb-slash {
    margin: 0 10px
  }

  .topbar-badge {
    font-size: 9px;
    padding: 3px 7px
  }

  .app-main {
    padding: 24px 14px 0
  }

  .page-heading {
    margin-bottom: 21px;
    gap: 12px;
    flex-wrap: wrap
  }

  h1 {
    font-size: 23px
  }

  .page-eyebrow {
    font-size: 8px
  }

  .heading-actions {
    gap: 7px
  }

  .heading-actions .btn {
    font-size: 11px;
    padding: 8px 10px
  }

  .filter-toolbar {
    gap: 7px;
    flex-wrap: wrap
  }

  .search-field {
    flex-basis: 100%
  }

  .sort-select {
    flex: 1;
    max-width: none
  }

  .filter-grid {
    grid-template-columns: 1fr 1fr;
    padding: 15px;
    gap: 12px
  }

  .filter-clear {
    grid-column: 1/-1
  }

  .job-meta-line {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    padding: 15px 13px 11px
  }

  .job-identity {
    gap: 8px;
    flex-wrap: nowrap
  }

  .job-customer {
    text-align: right
  }

  .job-product {
    grid-column: 1/-1;
    padding-left: 22px
  }

  .job-meta-line .job-date:nth-last-child(2) {
    grid-column: 1;
    grid-row: auto;
    padding-left: 22px
  }

  .job-meta-line .job-date:last-child {
    grid-column: 2;
    grid-row: auto;
    text-align: right
  }

  .job-production-line {
    padding: 0 13px 15px 35px;
    gap: 11px
  }

  .stage-chips {
    flex-direction: column;
    align-items: stretch
  }

  .stage-chip {
    justify-content: flex-start;
    gap: 10px;
    min-height: 37px;
    font-size: 11px
  }

  .stage-chip .staff-count,
  .stage-chip .unassigned-badge {
    margin-left: auto
  }

  .stage-add {
    align-self: flex-end;
    width: 30px
  }

  .sub-item-label {
    padding-left: 22px
  }

  .job-expanded {
    padding: 18px 14px
  }

  .detail-grid {
    gap: 14px
  }

  .detail-receipts {
    grid-template-columns: 1fr
  }

  .receipt-detail {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap
  }

  .receipt-detail>div {
    gap: 10px
  }

  .receipt-detail>small {
    margin: 0;
    flex: 1
  }

  .receipt-detail>p {
    flex-basis: 100%;
    margin: 0
  }

  .receipt-detail>.btn {
    margin-left: auto
  }

  .section-heading {
    gap: 10px;
    flex-wrap: wrap
  }

  .section-heading h3 {
    font-size: 13px
  }

  .section-heading h2 {
    font-size: 16px
  }

  .expanded-heading>div:last-child {
    flex-wrap: wrap
  }

  .table-panel th,
  .table-panel td {
    padding: 14px 16px
  }

  .customer-table th:first-child {
    width: auto
  }

  .customer-name {
    font-size: 13px
  }

  .count-cell span {
    font-size: 16px
  }

  .app-footer {
    flex-direction: column;
    gap: 6px;
    font-size: 7px;
    padding-top: 22px
  }

  .form-panel {
    padding: 19px 15px
  }

  .auto-number-label {
    font-size: 10px
  }

  .item-section-heading>span {
    font-size: 10px
  }

  .order-actions {
    flex-wrap: wrap;
    gap: 14px
  }

  .order-actions>div {
    margin-left: auto
  }

  .modal-header {
    padding: 20px 18px 16px
  }

  .modal-body {
    padding: 19px 18px
  }

  .modal-footer {
    padding: 15px 18px 18px
  }

  .modal-title {
    font-size: 18px !important
  }

  .calendar-toolbar {
    gap: 10px
  }

  .calendar-date-controls {
    flex-wrap: wrap;
    gap: 5px;
    width: 100%
  }

  .calendar-date-controls>.form-control {
    flex: 1;
    min-width: 110px
  }

  .calendar-date-controls>.form-select {
    max-width: 88px
  }

  .calendar-select-controls {
    width: 100%;
    flex-wrap: wrap
  }

  .calendar-select-controls>.form-select {
    max-width: none
  }

  .calendar-select-controls>.form-control {
    max-width: none;
    flex-basis: 100%
  }

  .employee-calendar .employee-label {
    width: 145px;
    min-width: 145px;
    max-width: 145px
  }

  .employee-identity {
    font-size: 11px;
    padding: 15px 9px;
    gap: 6px
  }

  .employee-avatar {
    width: 23px;
    height: 25px;
    font-size: 10px
  }

  .calendar-date,
  .calendar-cell {
    min-width: 72px;
    width: 72px
  }

  .calendar-legend {
    gap: 11px;
    font-size: 9px;
    padding: 12px
  }

  .calendar-legend>span:last-child {
    flex-basis: 100%;
    margin-left: 0 !important
  }

  .selected-assignment {
    gap: 10px;
    font-size: 11px
  }

  .selected-assignment>.btn {
    margin-left: 0
  }
}

@media(pointer:coarse) {

  .calendar-task,
  .stage-chip,
  .btn,
  .icon-button {
    min-height: 44px
  }

  .form-control,
  .form-select {
    font-size: 16px
  }

  .btn-sm {
    min-height: 38px
  }

  .calendar-task {
    font-size: 12px
  }

  .icon-button {
    min-width: 32px
  }
}

@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important
  }
}

/* Painel operacional: leitura e ações têm prioridade sobre tons suaves. */
:root {
  --muted: #536176;
  --line: #c6d2e2;
  --attention: #ffc247;
  --attention-ink: #482900;
  --late: #ad1724
}

body {
  font-size: 15px
}

.text-secondary {
  color: #536176 !important
}

.btn {
  font-size: 14px;
  font-weight: 650;
  min-height: 44px;
  border-width: 2px
}

.btn-sm {
  font-size: 13px;
  min-height: 36px
}

.btn-outline-secondary,
.btn-outline-primary {
  --bs-btn-color: #155fb8;
  --bs-btn-border-color: #155fb8;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #104b94;
  --bs-btn-hover-border-color: #104b94;
  background: #fff
}

.btn-link {
  font-weight: 650;
  color: #104b94;
  text-decoration: underline
}

.btn:disabled {
  opacity: 1;
  filter: none;
  background: #e3e8ef;
  border-color: #8996a8;
  color: #435169;
  box-shadow: none
}

.form-control,
.form-select {
  font-size: 15px;
  min-height: 44px;
  border-color: #889bb3
}

.form-control::placeholder {
  color: #5d6c80
}

.form-label,
.form-text,
.filter-grid label {
  font-size: 14px;
  color: #435169
}

.form-label {
  font-weight: 650
}

.optional-label,
.auto-number-label {
  color: #526176
}

.filter-grid .form-control,
.filter-grid .form-select,
.sort-select {
  font-size: 14px
}

.results-caption {
  font-size: 13px;
  color: #536176
}

.results-caption strong {
  font-weight: 700;
  color: #233c5b
}

.sidebar-link {
  font-weight: 600
}

.job-card {
  border-color: #b9c9dc;
  box-shadow: 0 2px 5px #163b6214
}

.serial {
  font-size: 16px;
  font-weight: 750
}

.job-identity>.ui-icon {
  color: #155fb8;
  width: 19px;
  height: 19px
}

.job-identity .kouban,
.job-customer,
.sub-item-label {
  font-size: 13px;
  color: #42566e
}

.job-customer {
  font-weight: 600
}

.job-product {
  font-size: 15px;
  font-weight: 700;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 6px 10px;
  flex-wrap: wrap
}

.product-title {
  min-width: 0;
  overflow-wrap: anywhere
}

.job-product small,
.item-number,
.job-date>small,
.due-kind {
  font-size: 12px;
  color: #526176
}

.job-end-user {
  font-size: 13px;
  font-weight: 600;
  color: #304d70;
  overflow-wrap: anywhere
}

.job-end-user>small {
  font-size: 11px;
  color: #526176;
  font-weight: 500
}

.job-date {
  font-size: 13px;
  font-weight: 650
}

.job-production-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 11px
}

.receipts-mini {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
  min-width: 0
}

.receipt-mini {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  border: 2px solid;
  padding: 7px 9px;
  border-radius: 6px;
  min-height: 38px;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer
}

.receipt-mini .ui-icon {
  width: 16px;
  height: 16px;
  flex: none
}

.receipt-label {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip-path: none;
  font-size: 12px;
  font-weight: 700
}

.receipt-delay {
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap
}

.receipt-pending,
.receipt-missing {
  background: #ffc247;
  color: #482900;
  border-color: #ad5900
}

.receipt-partial {
  background: #ffe09b;
  color: #573300;
  border-color: #ad5900
}

.receipt-complete {
  background: #dfecff;
  color: #124c91;
  border-color: #2667b7
}

.receipt-not_applicable {
  background: #e9edf2;
  color: #4f6076;
  border-color: #8e9fb3
}

.receipt-overdue {
  background: #ffe2e5;
  color: #991321;
  border-color: #b51d2b
}

.receipt-overdue .receipt-delay {
  background: #ad1724;
  color: white;
  border-radius: 3px;
  padding: 2px 5px
}

.receipt-mini.complete {
  color: #124c91
}

.receipt-mini.partial,
.receipt-mini.missing {
  color: #482900
}

.receipt-mini.receipt-overdue {
  color: #991321
}

.receipt-mini:hover {
  outline: 2px solid #173f70;
  outline-offset: 2px
}

.receipt-mini:disabled {
  cursor: default;
  opacity: 1
}

.receipt-mini:disabled:hover {
  outline: 0
}

.stage-chips {
  gap: 8px;
  width: 100%;
  min-width: 0;
  flex-wrap: wrap
}

.stage-chip {
  min-height: 42px;
  border-color: #819cbd;
  background: #f4f8ff;
  color: #233e61;
  font-size: 13px;
  font-weight: 600;
  flex-wrap: wrap;
  white-space: normal;
  min-width: 0
}

.stage-name {
  font-size: 14px;
  font-weight: 750
}

.status-badge {
  font-size: 12px;
  font-weight: 650
}

.status-pending {
  background: #e4eaf2;
  color: #3b4d65
}

.status-working {
  background: #c5e3ff;
  color: #0b467f
}

.status-complete {
  background: #155fb8;
  color: #fff
}

.status-hold {
  background: #ffc247;
  color: #482900
}

.staff-count {
  font-size: 12px;
  color: #334f72;
  font-weight: 650;
  border-color: #8095b0
}

.unassigned-badge,
.no-plans {
  color: #482900;
  background: #ffc247;
  border: 1px solid #ad5900;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 7px;
  border-radius: 4px
}

.no-plans {
  display: inline-flex;
  align-items: center;
  gap: 5px
}

.stage-add {
  width: auto;
  min-width: 96px;
  height: 42px;
  padding: 7px 10px;
  background: #155fb8;
  color: #fff;
  border: 2px solid #155fb8;
  font-size: 13px;
  font-weight: 700;
  gap: 4px
}

.stage-add:hover {
  background: #104b94;
  border-color: #104b94
}

.stage-add .ui-icon {
  width: 16px;
  height: 16px
}

.detail-grid dt,
.detail-table th,
.receipt-detail>small {
  color: #4d5e75;
  font-size: 13px;
  font-weight: 600
}

.detail-grid dd,
.detail-table,
.receipt-detail>div,
.receipt-detail p {
  font-size: 14px;
  color: #233c5b
}

.receipt-detail {
  border-width: 2px
}

.receipt-detail>div>span,
.receipt-detail strong {
  font-size: 14px;
  font-weight: 750;
  color: inherit
}

.receipt-detail>div {
  color: inherit
}

.receipt-detail>small,
.receipt-detail p {
  color: inherit
}

.receipt-detail>.btn {
  margin-top: 7px
}

.receipt-detail .ui-icon {
  width: 17px;
  height: 17px
}

.receipt-detail.receipt-overdue {
  background: #fff0f1
}

.receipt-detail.receipt-complete {
  background: #edf4ff
}

.detail-table th {
  background: #e6eef8
}

.text-button {
  font-size: 14px;
  color: #155fb8;
  font-weight: 650;
  text-decoration: underline
}

.icon-button {
  color: #155fb8;
  border: 1px solid #155fb8;
  background: #fff;
  border-radius: 4px;
  min-width: 27px;
  min-height: 27px
}

.icon-button:hover {
  background: #dfecff
}

.section-heading h4,
.record-notes>span,
.modal-kicker {
  color: #415b79;
  font-size: 13px
}

.modal-body,
.modal-footer {
  font-size: 14px
}

.completion-requirements {
  background: #fff2d4;
  color: #593700;
  border: 1px solid #ad5900;
  border-left: 5px solid #ad5900;
  padding: 13px 16px;
  margin-bottom: 18px;
  border-radius: 5px;
  font-size: 13px
}

.completion-requirements ul {
  margin: 8px 0 0;
  padding-left: 22px
}

.completed-stamp {
  display: block;
  color: #155395;
  font-size: 12px;
  font-weight: 700;
  margin-top: 4px
}

.empty-state p {
  font-size: 14px;
  color: #526176
}

.table-panel th,
.table-panel td {
  font-size: 14px
}

.calendar-task {
  font-size: 13px;
  font-weight: 700;
  border-color: #9caec5
}

.task-pending {
  background: #e1e8f2;
  color: #304f76
}

.task-working {
  background: #b9dcff;
  color: #073d72;
  border-color: #4a86c3
}

.task-complete {
  background: #155fb8;
  color: white;
  border-color: #155fb8
}

.task-hold {
  background: #ffc247;
  color: #482900;
  border-color: #ad5900
}

.calendar-legend {
  font-size: 12px;
  color: #43556f
}

.calendar-date small {
  color: #536176;
  font-size: 11px
}

.calendar-day {
  color: #334e70
}

.calendar-rest {
  color: #526176
}

.company-holiday .calendar-rest,
.personal-holiday .calendar-rest {
  color: #6f4813
}

.employee-identity {
  font-size: 14px
}

.calendar-date-controls>.form-control,
.calendar-date-controls>.form-select,
.calendar-select-controls>.form-control,
.calendar-select-controls>.form-select {
  font-size: 14px
}

.order-actions>.js-add-item {
  box-shadow: 0 2px 5px #155fb836
}

.btn:focus-visible,
.receipt-mini:focus-visible,
.stage-chip:focus-visible,
.stage-add:focus-visible,
.job-identity:focus-visible {
  outline: 3px solid #063c7b;
  outline-offset: 3px
}

@media(min-width:1600px) {
  .job-production-line {
    grid-template-columns: auto minmax(0, 1fr)
  }

  .stage-chip {
    flex-wrap: nowrap
  }
}

@media(max-width:1250px) {
  .job-meta-line {
    grid-template-columns: 145px minmax(80px, .85fr) minmax(120px, 1.4fr) 103px 76px;
    gap: 9px
  }

  .stage-chips {
    flex-wrap: wrap
  }
}

@media(max-width:950px) {
  .job-meta-line {
    grid-template-columns: 145px 1fr 1.3fr
  }

  .job-product {
    font-size: 14px
  }

  .job-customer {
    font-size: 13px
  }

  .job-end-user {
    flex-basis: 100%
  }
}

@media(max-width:700px) {

  .btn,
  .heading-actions .btn {
    font-size: 13px;
    min-height: 42px
  }

  .btn-sm {
    min-height: 36px
  }

  .app-sidebar>nav {
    display: grid;
    grid-template-columns: 1fr 1fr
  }

  .sidebar-link {
    font-size: 12px;
    min-height: 41px
  }

  .job-meta-line {
    grid-template-columns: 1fr 1fr;
    padding: 15px 13px 12px
  }

  .job-product {
    grid-column: 1/-1;
    font-size: 15px
  }

  .job-end-user {
    display: block;
    flex-basis: 100%;
    font-size: 14px
  }

  .job-customer {
    font-size: 13px
  }

  .job-identity .kouban {
    font-size: 11px
  }

  .job-production-line {
    padding-left: 13px;
    padding-right: 13px;
    display: grid
  }

  .receipts-mini {
    display: grid;
    grid-template-columns: 1fr 1fr
  }

  .receipt-mini {
    white-space: normal;
    font-size: 13px;
    padding: 8px 5px;
    gap: 5px
  }

  .receipt-mini:last-child {
    grid-column: 1/-1
  }

  .stage-chips {
    flex-direction: column;
    align-items: stretch
  }

  .stage-chip {
    font-size: 13px;
    min-height: 44px;
    justify-content: flex-start
  }

  .stage-chip .staff-count,
  .stage-chip .unassigned-badge {
    margin-left: auto
  }

  .stage-add {
    align-self: stretch;
    min-height: 44px
  }

  .detail-grid dt,
  .detail-table th {
    font-size: 12px
  }

  .detail-grid dd,
  .detail-table {
    font-size: 14px
  }

  .receipt-detail {
    display: block
  }

  .receipt-detail>div {
    justify-content: space-between
  }

  .receipt-detail>small {
    margin: 8px 0
  }

  .receipt-detail>.btn {
    margin-left: 0
  }

  .filter-grid label {
    font-size: 13px
  }

  .form-control,
  .form-select {
    font-size: 16px
  }

  .completion-requirements {
    font-size: 13px
  }

  .app-footer {
    font-size: 10px
  }

  .completed-stamp {
    font-size: 11px
  }

  .calendar-task {
    font-size: 13px
  }
}

@media(min-width:951px) {
  .job-meta-line {
    grid-template-columns: 155px minmax(90px, .85fr) minmax(150px, 1.5fr) 128px 90px
  }
}

/* Densidade compacta: a cor mantém a prioridade, sem ampliar indicadores. */
.job-product {
  display: block
}

.job-end-user,
.product-title {
  font-size: inherit;
  font-weight: inherit;
  color: inherit
}

.job-end-user {
  display: inline;
  flex-basis: auto
}

.product-separator {
  padding: 0 4px;
  color: #536176;
  font-weight: 400
}

.job-meta-line {
  padding-top: 13px;
  padding-bottom: 9px
}

.job-production-line {
  display: flex;
  align-items: center;
  gap: 7px 12px;
  flex-wrap: wrap;
  padding-bottom: 12px
}

.receipts-mini {
  display: flex;
  flex: 0 1 auto;
  width: auto;
  gap: 5px;
  flex-wrap: wrap
}

.receipt-mini {
  min-height: 28px;
  padding: 3px 6px;
  gap: 4px;
  border-width: 1px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px
}

.receipt-mini .ui-icon {
  width: 13px;
  height: 13px
}

.receipt-label,
.receipt-delay {
  font-size: 10px
}

.receipt-overdue .receipt-delay {
  padding: 1px 3px
}

.stage-chips {
  width: auto;
  flex: 1 1 420px;
  gap: 5px
}

.stage-chip {
  min-height: 31px;
  padding: 4px 6px;
  gap: 5px;
  font-size: 11px;
  border-radius: 4px
}

.stage-name {
  font-size: 12px;
  font-weight: 700
}

.stage-chip .status-badge {
  font-size: 10px;
  padding: 2px 4px
}

.stage-chip .staff-count {
  font-size: 10px;
  padding-left: 4px
}

.unassigned-badge,
.no-plans {
  font-size: 10px;
  font-weight: 750;
  padding: 2px 4px;
  border-radius: 3px
}

.stage-add {
  height: 31px;
  min-height: 31px;
  min-width: 80px;
  padding: 4px 7px;
  font-size: 11px;
  border-width: 1px;
  border-radius: 4px
}

.stage-add .ui-icon {
  width: 13px;
  height: 13px
}

@media(max-width:700px) {
  .job-product {
    display: block;
    font-size: 15px
  }

  .job-end-user,
  .product-title {
    display: inline;
    font-size: inherit;
    font-weight: inherit;
    flex-basis: auto
  }

  .job-meta-line {
    padding-top: 12px;
    padding-bottom: 9px;
    gap: 7px
  }

  .job-production-line {
    display: flex;
    padding-left: 13px;
    padding-right: 13px;
    gap: 8px
  }

  .receipts-mini {
    display: flex;
    width: 100%;
    gap: 5px
  }

  .receipt-mini {
    font-size: 11px;
    padding: 4px 6px;
    min-height: 29px;
    white-space: normal
  }

  .receipt-mini:last-child {
    grid-column: auto
  }

  .stage-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex: 1 1 100%;
    gap: 5px
  }

  .stage-chip {
    min-height: 33px;
    justify-content: center;
    font-size: 11px;
    gap: 4px;
    padding: 4px 5px
  }

  .stage-chip .staff-count,
  .stage-chip .unassigned-badge {
    margin-left: 0
  }

  .stage-add {
    width: auto;
    min-width: 0;
    height: auto;
    min-height: 33px;
    align-self: stretch
  }

  .no-plans {
    align-self: center
  }
}

@media(pointer:coarse) {
  .receipt-mini {
    min-height: 34px
  }

  .stage-chip,
  .stage-add {
    min-height: 36px
  }
}

/* Per-process dates stay inside the compact stage block. */
.stage-chip {
  flex-direction: column;
  flex-wrap: nowrap;
  flex: 1 1 145px;
  gap: 3px;
  padding: 5px 6px;
  min-height: 48px
}

.stage-chips {
  align-items: stretch
}

.stage-overview {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0
}

.stage-period {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: #435873;
  white-space: nowrap
}

.stage-period-arrow {
  color: #61738c
}

.stage-add {
  align-self: center
}

.order-processes {
  margin: 20px 0 0;
  padding-top: 15px;
  border-top: 1px solid #cbd7e7;
  min-width: 0
}

.order-processes>legend {
  float: none;
  width: auto;
  font-size: 14px;
  font-weight: 700;
  color: #233e61;
  margin-bottom: 6px
}

.process-help {
  font-size: 12px;
  color: #536176;
  line-height: 1.5;
  margin-bottom: 10px
}

.order-process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px
}

.order-process-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 106px;
  align-items: center;
  gap: 7px;
  padding: 8px;
  border: 1px solid #a0b4ce;
  border-radius: 5px;
  background: #f6f9fe;
  min-width: 0
}

.order-process-row:has(.js-process-toggle:checked) {
  border-color: #155fb8;
  background: #eaf3ff
}

.process-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  font-weight: 650;
  color: #233e61;
  overflow-wrap: anywhere;
  min-width: 0;
  cursor: pointer
}

.process-choice .form-check-input {
  flex: none;
  margin: 0;
  width: 17px;
  height: 17px;
  border-color: #7188a6
}

.process-choice .form-check-input:checked {
  background-color: #155fb8;
  border-color: #155fb8
}

.process-hours {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  font-size: 12px;
  color: #435873
}

.process-hours .form-control {
  min-width: 0;
  min-height: 32px;
  padding: 4px 6px;
  font-size: 13px
}

.process-hours .form-control:disabled {
  background: #e8edf4;
  color: #536176;
  opacity: 1
}

.modal-body .order-process-list {
  grid-template-columns: repeat(2, minmax(0, 1fr))
}

@media(max-width:1100px) {
  .order-process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media(max-width:700px) {
  .stage-chip {
    min-height: 48px;
    padding: 5px;
    gap: 4px
  }

  .stage-overview {
    gap: 4px
  }

  .stage-period {
    font-size: 11px
  }

  .stage-add {
    min-height: 33px;
    align-self: center
  }

  .order-process-list,
  .modal-body .order-process-list {
    grid-template-columns: minmax(0, 1fr)
  }

  .process-hours .form-control {
    font-size: 16px
  }

  .process-choice {
    min-height: 34px
  }
}

/* 工番 and customer share a column, with two compact lines. */
.job-meta-line {
  grid-template-columns: 120px minmax(145px, .95fr) minmax(170px, 1.6fr) 128px 90px
}

.job-identity {
  flex-wrap: nowrap
}

.job-account {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  text-align: left
}

.job-account .kouban {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #42566e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: normal
}

.job-account .job-customer {
  display: block;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  color: #536176;
  text-align: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.job-account .completed-stamp {
  font-size: 10px;
  margin-top: 1px
}

@media(max-width:1150px) and (min-width:701px) {
  .job-meta-line {
    grid-template-columns: 110px minmax(135px, 1fr) minmax(180px, 1.5fr)
  }

  .job-meta-line .job-date {
    grid-row: 2
  }

  .job-meta-line .job-date:nth-last-child(2) {
    grid-column: 2
  }

  .job-meta-line .job-date:last-child {
    grid-column: 3
  }
}

@media(max-width:700px) {
  .job-meta-line {
    grid-template-columns: minmax(100px, .8fr) minmax(0, 1.2fr)
  }

  .job-account .kouban {
    font-size: 13px
  }

  .job-account .job-customer {
    font-size: 11px
  }

  .job-meta-line .job-date:nth-last-child(2) {
    grid-column: 1;
    grid-row: auto
  }

  .job-meta-line .job-date:last-child {
    grid-column: 2;
    grid-row: auto
  }
}

/* Shared company calendar and personnel management. */
.app-sidebar {
  overflow-y: auto
}

.personnel-filters,
.company-toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 16px
}

.personnel-filters .search-field {
  flex: 1 1 230px
}

.personnel-filters>.form-select {
  width: auto;
  flex: 0 1 200px
}

.company-toolbar input {
  width: 165px
}

.company-toolbar .js-import-local-calendar {
  margin-left: auto;
  font-size: 12px
}

.personnel-note {
  font-size: 12px;
  color: #536176;
  line-height: 1.8;
  margin-top: 16px
}

.staff-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap
}

.employment-badge,
.holiday-kind {
  display: inline-block;
  padding: 3px 7px;
  border: 1px solid #a5b9d2;
  background: #eaf1fa;
  color: #234e82;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap
}

.employment-badge.is-part,
.holiday-kind.part-kind {
  background: #ffe1e8;
  color: #931d3a;
  border-color: #d77990
}

.company-legend {
  display: flex;
  gap: 19px;
  margin: 13px 0;
  font-size: 12px;
  color: #43566f
}

.company-legend>span {
  display: inline-flex;
  align-items: center;
  gap: 6px
}

.day-key {
  width: 15px;
  height: 15px;
  border: 1px solid #9aadc4;
  border-radius: 3px
}

.closed-key {
  background: #d7e7fb
}

.part-key {
  background: #ffd8e3;
  border-color: #c8627e
}

.weekend-key {
  background: #e6eaf0
}

.company-calendar-panel {
  background: #fff;
  border: 1px solid #b8c8dc;
  border-radius: 8px;
  overflow: hidden
}

.company-calendar {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse
}

.company-calendar th {
  font-size: 12px;
  text-align: center;
  padding: 9px;
  background: #e6eef9;
  color: #314c70
}

.company-calendar td {
  padding: 0;
  border: 1px solid #d9e2ee;
  vertical-align: top;
  background: #fff
}

.company-calendar td.company-weekend {
  background: #edf0f5
}

.company-calendar td.day-closed {
  background: #dceaff
}

.company-calendar td.day-part {
  background: #ffe3eb;
  color: #981e3d
}

.company-calendar td.outside-month {
  opacity: .45
}

.company-calendar td.company-today {
  box-shadow: inset 0 0 0 2px #155fb8
}

.company-day {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  min-height: 100px;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left
}

.company-day:hover {
  background: #155fb80d
}

.company-day:focus-visible {
  outline: 3px solid #155fb8;
  outline-offset: -3px
}

.company-day>strong {
  font-size: 16px;
  font-variant-numeric: tabular-nums
}

.company-day-type {
  font-size: 11px;
  font-weight: 750
}

.company-day-name {
  display: block;
  font-size: 12px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.employee-group-heading th {
  background: #dce8f8;
  padding: 7px 12px;
  text-align: left;
  font-size: 12px;
  font-weight: 750;
  color: #214b7b;
  border-bottom: 1px solid #a8bfdc
}

.employee-group-heading th>span {
  position: sticky;
  left: 12px
}

.employee-part-label {
  display: block;
  color: #9b2642;
  font-size: 10px;
  font-weight: 650
}

.calendar-date.part-time-holiday {
  background: #ffe0e9;
  color: #941f3c
}

.calendar-date.part-time-holiday small {
  color: #941f3c
}

.calendar-rest {
  font-size: 12px
}

.personnel-table th,
.personnel-table td {
  white-space: nowrap
}

@media(max-width:700px) {
  .personnel-filters>.form-select {
    flex: 1 1 140px;
    min-width: 0
  }

  .company-toolbar .js-import-local-calendar {
    margin: 0;
    flex-basis: 100%;
    justify-content: flex-start
  }

  .company-day {
    min-height: 82px;
    padding: 6px 4px;
    gap: 3px
  }

  .company-day>strong {
    font-size: 14px
  }

  .company-day-name {
    font-size: 9px
  }

  .company-day-type {
    font-size: 9px
  }

  .company-calendar th {
    font-size: 11px;
    padding: 8px 3px
  }

  .personnel-note {
    font-size: 11px
  }

  .company-legend {
    gap: 12px;
    font-size: 11px
  }

  .personnel-table th,
  .personnel-table td {
    padding: 12px
  }

  .staff-actions .btn {
    font-size: 12px
  }

  .employee-group-heading th {
    font-size: 11px
  }
}

.plan-status-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px 12px;
  margin: 0 0 20px;
  padding: 12px;
  border: 1px solid #8daed4;
  border-left: 4px solid #155fb8;
  border-radius: 6px;
  background: #edf4ff
}

.plan-status-form .form-label {
  margin-bottom: 5px;
  color: #233e61;
  font-size: 13px;
  font-weight: 700
}

.plan-status-form .form-select {
  min-width: 0;
  min-height: 40px;
  border-color: #7d9abc
}

.plan-status-form>.btn {
  min-height: 40px;
  white-space: nowrap
}

.plan-status-help {
  grid-column: 1/-1;
  margin: 0;
  color: #754700;
  font-size: 12px;
  line-height: 1.5
}

.plan-status-readonly {
  padding: 10px 12px;
  border: 1px solid #bccbdf;
  border-radius: 5px;
  background: #f1f4f8;
  color: #415777;
  font-size: 13px
}

.quick-filter-button {
  white-space: nowrap;
  font-size: 13px;
  font-weight: 650;
  min-height: 41px;
  margin: 0;
  border-color: #155fb8
}

.quick-filter-button[aria-pressed=true] {
  color: #fff;
  background: #155fb8;
  border-color: #155fb8
}

.quick-filter-button:focus-visible {
  outline: 3px solid #063c7b;
  outline-offset: 3px
}

/* Keep nested forms inside Bootstrap's scrollable modal height. */
.modal-dialog-scrollable .modal-content>form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  overflow: hidden
}

.modal-dialog-scrollable .modal-content>form>.modal-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain
}

/* Ferramentas ocasionais e cenários separados da agenda real. */
.maintenance-menu {
  margin: 14px 16px 0;
  color: #b3c6df;
  font-size: .76rem
}

.maintenance-menu>summary {
  padding: 8px;
  cursor: pointer
}

.maintenance-menu .sidebar-link {
  margin: 6px 0
}

.record-maintenance {
  margin-top: 22px;
  padding-top: 12px;
  border-top: 1px solid #d7e0ec;
  font-size: .8rem;
  color: #607189
}

.record-maintenance>summary,
.simulation-editor-footer summary {
  cursor: pointer
}

.simulation-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  border-left: 4px solid #a66610;
  padding: 12px 16px;
  background: #fff4df;
  color: #6f4309;
  margin-bottom: 20px;
  font-size: .84rem
}

.simulation-create {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1fr) auto;
  gap: 14px;
  align-items: end;
  padding: 20px;
  border: 1px solid #c7d5e8;
  border-radius: 8px;
  background: white;
  margin: 20px 0 26px
}

.simulation-create .alert {
  grid-column: 1/-1;
  margin: 0
}

.simulation-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border: 1px solid #b9cce5;
  background: #edf4ff;
  color: #244b7c;
  margin: 16px 0 4px;
  font-size: .8rem;
  border-radius: 6px
}

.simulation-summary small {
  margin-left: auto
}

.gantt-filter-controls.simulation-filter-controls {
  display: grid;
  grid-template-columns: minmax(180px, 1.7fr) minmax(130px, 1fr) minmax(210px, 1fr)
}

.simulation-editor-note {
  background: #fff4df;
  border-left: 3px solid #a66610;
  padding: 9px 12px;
  font-size: .82rem
}

.simulation-plan {
  padding: 14px;
  border: 1px solid #ccd7e5;
  border-radius: 6px;
  margin-top: 12px
}

.simulation-plan-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-weight: 700
}

.simulation-plan-title .form-select {
  max-width: 120px
}

.simulation-plan .form-label {
  font-size: .8rem
}

.simulation-employees {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 10px;
  font-size: .85rem
}

.simulation-plan summary {
  font-size: .8rem;
  color: #315a91;
  cursor: pointer
}

.simulation-editor-footer details {
  margin-right: auto;
  font-size: .75rem
}

@media(max-width:767px) {
  .simulation-create {
    grid-template-columns: 1fr;
    padding: 14px
  }

  .gantt-filter-controls.simulation-filter-controls {
    grid-template-columns: 1fr
  }

  .simulation-summary small {
    margin-left: 0
  }

  .simulation-banner {
    gap: 5px
  }

  .maintenance-menu {
    margin: 0
  }

  .record-maintenance {
    margin-top: 14px
  }
}

/* FUJII 0007 — acesso e identidade; azul corporativo em todas as telas. */
.topbar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end
}

.topbar-user .topbar-account {
  font-size: 11px;
  color: #245c9a;
  text-decoration: none;
  white-space: nowrap
}

.topbar-logout {
  margin: 0
}

.brand {
  letter-spacing: .6px
}

.brand small {
  font-size: 9px;
  letter-spacing: .5px
}

.auth-body {
  min-height: 100vh;
  background: linear-gradient(145deg, #e8f1ff, #f8fafc 52%, #dce9f8);
  display: grid;
  place-items: center;
  margin: 0;
  padding: 22px
}

.auth-container {
  width: 100%;
  max-width: 425px
}

.auth-panel {
  padding: 38px 39px;
  background: #fff;
  border: 1px solid #cbdcf0;
  border-radius: 13px;
  box-shadow: 0 14px 50px #142b4626
}

.auth-panel h1 {
  font-size: 22px;
  font-weight: 740;
  color: #163b6e;
  margin: 30px 0 8px
}

.auth-description,
.auth-footnote {
  font-size: 12px;
  color: #617692;
  line-height: 1.75
}

.auth-footnote {
  margin: 24px 0 0;
  text-align: center
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #163b6e
}

.auth-logo {
  display: grid;
  place-items: center;
  width: 59px;
  height: 59px;
  border-radius: 13px;
  background: #1759a4;
  color: #fff;
  font-weight: 800;
  font-size: 39px
}

.auth-brand strong {
  display: block;
  font-size: 24px;
  letter-spacing: 2px
}

.auth-brand small {
  display: block;
  font-size: 11px;
  color: #5d779a;
  letter-spacing: .3px
}

.auth-panel .form-label,
.auth-settings-panel .form-label {
  font-size: 12px;
  font-weight: 640;
  color: #2d4a6d
}

.auth-panel .form-control {
  padding: 12px;
  border-color: #cbd8e7
}

.auth-panel .btn {
  min-height: 44px
}

.auth-settings-panel {
  max-width: 640px;
  background: #fff;
  border: 1px solid #c8d9ee;
  border-radius: 10px;
  padding: 25px
}

.auth-admin-card {
  border: 1px solid #c7d7eb;
  background: #fff;
  border-radius: 10px;
  padding: 23px
}

.auth-admin-card h2 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 20px;
  color: #164779
}

.auth-admin-card .form-label {
  font-size: 12px;
  color: #365779
}

.auth-user-row {
  border-top: 1px solid #dce5f2
}

.auth-user-row>summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 15px 7px;
  cursor: pointer;
  font-size: 12px
}

.auth-user-row>summary strong {
  min-width: 120px;
  color: #173e68;
  font-size: 13px
}

.auth-user-row>summary span:nth-child(2) {
  min-width: 120px;
  color: #657c96
}

.auth-user-edit {
  padding: 20px 12px;
  background: #f3f7fc;
  border-radius: 8px;
  margin-bottom: 12px
}

.auth-reset-form {
  max-width: 410px;
  margin-top: 23px;
  padding-top: 17px;
  border-top: 1px solid #d7e2f1
}

.app-readonly button[hx-get^="/ui/forms/"],
.app-readonly button[hx-post],
.app-readonly .stage-add,
.app-readonly .record-maintenance,
.app-readonly .simulation-actions [hx-get*="delete"],
.app-readonly button[type="submit"][form],
.app-readonly .js-import-local-calendar {
  display: none !important
}

.app-readonly .receipt-mini[hx-get^="/ui/forms/"] {
  display: inline-flex !important;
  pointer-events: none;
  cursor: default
}

.app-readonly .stage-chip[hx-get^="/ui/forms/"] {
  pointer-events: none;
  cursor: default
}

.app-readonly form[hx-post] button[type="submit"] {
  display: none !important
}

@media(max-width:700px) {
  .topbar-user {
    gap: 7px
  }

  .topbar-user .topbar-badge {
    display: none
  }

  .topbar-user .topbar-account {
    font-size: 10px
  }

  .topbar-logout button {
    font-size: 10px
  }

  .app-topbar {
    min-height: 53px;
    height: auto
  }

  .auth-panel {
    padding: 28px 20px
  }

  .auth-admin-card {
    padding: 15px
  }

  .auth-user-row>summary {
    gap: 6px
  }
}

/* Logotipo da FUJII: composicao inferior da pagina 3 de fujii_logoset_fix.pdf.
   O original tem letras escuras e permanece sobre fundo claro, inclusive na barra azul. */
.app-sidebar .brand {
  background: #fff;
  border: 1px solid #dfe8f3;
  border-radius: 9px;
  padding: 8px 9px;
  margin-bottom: 32px;
  color: #21364f;
  min-height: 68px;
  box-shadow: 0 2px 12px #061c3224
}

.app-sidebar .brand:hover {
  color: #21364f
}

.brand-wordmark {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 64px;
  object-fit: contain;
  object-position: center
}

.auth-wordmark {
  display: block;
  width: 300px;
  max-width: 100%;
  height: auto;
  object-fit: contain
}

@media(max-width:950px) {
  .app-sidebar .brand {
    padding: 7px;
    min-height: 56px
  }
}

@media(max-width:700px) {
  .app-sidebar .brand {
    margin-bottom: 0;
    max-width: 210px;
    min-height: 46px;
    padding: 5px 7px
  }

  .brand-wordmark {
    height: auto;
    max-height: 44px
  }

  .auth-wordmark {
    width: 270px
  }
}
