/* v0.7: readable calendars, focused mobile work and operational detail. */
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #258aa1;
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.72;
}
input,
select,
textarea {
  font-size: 16px;
}
.notice {
  border: 1px solid #c8e2e6;
  background: #eff8fa;
  color: #294e61;
  border-radius: 9px;
  padding: 10px 12px;
}
.notice.warn {
  background: #fff5e4;
  border-color: #ebd19b;
  color: #765018;
}
.error-banner {
  border: 1px solid #d69696;
  background: #fff0f0;
  color: #7c2525;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 12px;
}
.draft-banner {
  background: #fff5dc;
  color: #68500f;
  padding: 10px 12px;
  border: 1px solid #e6cf80;
  border-radius: 10px;
  margin-bottom: 12px;
}
.freshness {
  font-size: 0.76rem;
  color: #617488;
  margin-bottom: 10px;
}
.day-weekday {
  display: inline-block;
  background: #e6edf3;
  color: #263f58;
  padding: 3px 7px;
  border-radius: 5px;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.weekend .day-weekday {
  background: #e6e5f4;
  color: #433c69;
}
.month-weekdays span:nth-last-child(-n + 2),
.picker-weekday:nth-child(6),
.picker-weekday:nth-child(7) {
  background: #e8e6f5;
  color: #433c69;
  font-weight: 800;
  border-radius: 5px;
}
.weekend .day-head,
.month-day.weekend {
  background: #f5f4fb;
}
.holiday .day-head,
.month-day.holiday,
.warehouse-day.holiday,
.grain-day.holiday,
.picker-day.holiday,
.draft-day.holiday,
.operational-day.holiday {
  background: #fff0f0;
  border-color: #e5a8af;
}
.holiday-badge {
  display: block;
  color: #8d2839;
  background: #ffe0e5;
  border-radius: 5px;
  font-size: 0.67rem;
  line-height: 1.3;
  padding: 4px 6px;
  margin-bottom: 4px;
  font-weight: 750;
  white-space: normal;
}
.closed-day-note {
  color: #8a3042;
  background: #fff2f4;
  border-radius: 6px;
  padding: 7px;
  font-size: 0.76rem;
  font-weight: 700;
}
.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: #4a5b70;
  margin-bottom: 12px;
}
.calendar-legend .legend-weekend {
  color: #51466c;
}
.calendar-legend .legend-holiday {
  color: #8d2839;
}
.day-head {
  flex-wrap: wrap;
  align-items: start;
}
.day-head .holiday-badge {
  flex-basis: 100%;
}
.slot-reason {
  display: block;
  font-size: 0.68rem;
  color: #633b3b;
  white-space: normal;
  line-height: 1.25;
}
.draft-day.short {
  opacity: 1;
  color: #626a75;
  background: #f1f3f5;
}
.draft-day.short.holiday {
  background: #fff1f3;
}
.picker-day.blocked {
  opacity: 0.85;
}
.draft-day.selected,
.picker-day.selected {
  outline: 3px solid #147b83;
  outline-offset: -3px;
}
.line-product {
  display: block;
  color: #203f59;
  font-size: 0.77rem;
  font-weight: 750;
  white-space: normal;
}
.line-slot small {
  white-space: normal;
}
.production-need {
  font-size: 0.69rem;
  color: #63501f;
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px solid #ddd5b9;
}
.free-chip {
  white-space: normal;
}
.other-products summary {
  font-size: 0.76rem;
  padding: 5px;
  cursor: pointer;
  color: #226b75;
}
.load-card.holiday {
  border-left-color: #ab3850;
  background: #fff2f4;
}
.orders-quick,
.mobile-sort {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}
.orders-quick .active {
  background: #dceff0;
  border-color: #7eaeb5;
}
.sort-button {
  border: 0;
  background: transparent;
  color: #355a73;
  font-weight: 750;
  padding: 7px 3px;
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.sort-button:hover {
  color: #096c75;
}
.sort-button[aria-sort='ascending'],
.sort-button[aria-sort='descending'] {
  color: #096c75;
  background: #e5f3f4;
  border-radius: 5px;
}
#ordersTable tbody tr:nth-child(even) {
  background: #edf3f7;
}
#ordersTable tbody tr:nth-child(odd) {
  background: #fff;
}
#ordersTable tbody tr:hover {
  background: #e0f0f2;
}
#ordersTable td {
  border-bottom: 1px solid #d4e0e8;
}
.request-edit-item {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 0.8fr auto;
  gap: 10px;
  padding: 14px;
  background: #f6f9fc;
  border: 1px solid #d6e0e8;
  border-radius: 9px;
  align-items: end;
  margin-bottom: 10px;
}
.request-edit-item .item-detail {
  grid-column: 1/-1;
  font-size: 0.77rem;
  color: #5d6f7e;
}
.edit-preview {
  background: #f0f7fb;
  border: 1px solid #c8dfe9;
  padding: 11px;
  border-radius: 8px;
}
.sticky-actions {
  position: sticky;
  bottom: -23px;
  background: white;
  padding: 14px 0;
  margin-bottom: -12px;
  border-top: 1px solid #d7e3eb;
  z-index: 2;
}
.metrics-button {
  text-align: left;
  color: #17283b;
  font: inherit;
  cursor: pointer;
}
.metrics-button:hover {
  border-color: #7babbb;
  background: #f3fafb;
}
.metrics-button:disabled {
  cursor: default;
}
.analytics-progress {
  display: block;
  width: 100%;
  height: 8px;
  appearance: none;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
}
.analytics-progress::-webkit-progress-bar {
  background: #d9e5ed;
}
.analytics-progress::-webkit-progress-value {
  background: #258d98;
}
.analytics-progress::-moz-progress-bar {
  background: #258d98;
}
.product-drill {
  display: block;
  width: 100%;
  text-align: left;
  background: white;
  color: #223d50;
  border: 1px solid #d4e1e8;
  border-radius: 10px;
  padding: 13px;
  margin: 0 0 9px;
  font: inherit;
}
.product-drill:hover {
  background: #f0f8fa;
  border-color: #80b5c2;
}
.product-drill div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.product-drill small {
  display: block;
  margin-top: 8px;
}
.operational-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(130px, 1fr));
  gap: 9px;
  overflow: auto;
}
.operational-day {
  border: 1px solid #d6e1e8;
  border-radius: 9px;
  padding: 10px;
  font-size: 0.79rem;
}
.operation-open {
  border: 0;
  background: none;
  text-align: left;
  width: 100%;
  padding: 0;
  display: grid;
  gap: 5px;
  color: #1c3d52;
  margin-bottom: 8px;
  font: inherit;
}
.operation-open strong {
  text-transform: capitalize;
}
.operational-day.has-risk {
  border-color: #dba29c;
  background: #fff5f2;
}
.operational-day details {
  margin-top: 10px;
}
.operational-day details p {
  margin: 7px 0;
  font-size: 0.74rem;
}
.quick-layout {
  display: grid;
  grid-template-columns: minmax(0, 540px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.quick-form {
  gap: 15px;
}
.quick-quantity input {
  font-size: 1.8rem;
  font-weight: 750;
  padding: 14px;
  text-align: left;
  min-height: 65px;
}
.quick-save {
  min-height: 54px;
  font-size: 1rem;
}
.quick-form details {
  padding: 10px;
  background: #f5f8fa;
  border-radius: 8px;
}
.quick-form details label {
  margin-top: 10px;
}
.shift-date {
  font-size: 0.8rem;
}
.shift-record {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #d6e2e8;
  padding: 11px 0;
}
.shift-record div {
  display: grid;
  gap: 3px;
}
.shift-record span,
.shift-record small {
  font-size: 0.77rem;
  color: #5b7287;
}
.history-event {
  display: grid;
  gap: 5px;
  padding: 13px;
  border-bottom: 1px solid #d7e3eb;
}
.history-event.unread {
  background: #ecf7fa;
  border-left: 3px solid #278b98;
}
.history-event small {
  color: #657b8c;
  font-size: 0.75rem;
}
.warehouse-calendar-toggle {
  margin: 16px 0;
}
.warehouse-calendar-toggle > summary {
  cursor: pointer;
  font-weight: 750;
  color: #345d75;
  padding: 12px;
  background: #eaf2f7;
  border-radius: 9px;
}
.warehouse-day {
  min-height: 84px;
}
.warehouse-card .button {
  min-height: 44px;
}
.warehouse-card small {
  white-space: normal;
}
.warehouse-cards .planned .warehouse-card-side:after {
  content: 'Ожидает подтверждения логистом';
  font-size: 0.75rem;
  color: #7a5e2d;
}
.report-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin-bottom: 15px;
}
.report-controls label {
  flex: 1;
  min-width: 145px;
}
.line-access {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #d8e2e9;
  border-radius: 9px;
}
.line-access label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.line-access input {
  width: auto;
}
.mobile-sort {
  display: none;
}
@media (max-width: 1100px) {
  .topbar {
    flex-wrap: wrap;
    height: auto;
    padding-top: 10px;
    padding-bottom: 8px;
  }
  .topnav {
    order: 3;
    width: 100%;
    height: 45px;
    overflow: auto;
    flex-shrink: 0;
  }
  .nav-button {
    flex-shrink: 0;
  }
  .operational-days {
    grid-template-columns: repeat(7, 165px);
  }
  .toolbar-right {
    flex-wrap: wrap;
  }
}
@media (max-width: 720px) {
  .page {
    padding-top: 14px;
  }
  .account {
    flex-wrap: wrap;
    gap: 6px;
  }
  .account .text-button {
    min-height: 36px;
  }
  .topnav {
    height: 46px;
  }
  .nav-button {
    min-width: 80px;
  }
  .button,
  .button.small,
  .table-action,
  .close-button {
    min-height: 44px;
  }
  .icon-button {
    width: 44px;
    height: 44px;
  }
  .quick-layout,
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .quick-layout .panel {
    padding: 14px;
  }
  .quick-form .form-grid {
    gap: 10px;
  }
  .quick-form .shift-date {
    line-height: 1.4;
  }
  .quick-save {
    position: sticky;
    bottom: 8px;
    z-index: 2;
    box-shadow: 0 4px 20px #14314735;
  }
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .modal,
  .modal.wide-modal {
    width: calc(100vw - 12px);
    max-width: none;
    max-height: 96dvh;
    margin: 2dvh auto;
    border-radius: 12px;
  }
  .modal-head,
  .modal-body {
    padding: 14px;
  }
  .request-layout {
    display: block;
  }
  .request-item,
  .request-edit-item {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px;
  }
  .request-item label:first-child,
  .request-edit-item label:first-child {
    grid-column: 1/-1;
  }
  .request-item .remove-item,
  .request-edit-item .remove-item {
    min-height: 44px;
    justify-self: end;
  }
  .request-slots {
    margin-top: 16px;
  }
  .request-slots .request-section-head {
    flex-wrap: wrap;
  }
  .draft-loads {
    max-height: none;
  }
  .draft-calendar-grid,
  .move-calendar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .draft-day {
    min-height: 106px;
  }
  .picker-grid {
    gap: 3px;
  }
  .picker-day {
    min-height: 58px;
    padding: 4px 2px;
  }
  .picker-day small {
    font-size: 0.62rem;
  }
  .picker-weekday {
    font-size: 0.68rem;
  }
  .sticky-actions {
    bottom: -14px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .sticky-actions .button {
    flex: 1;
  }
  .mobile-sort {
    display: flex;
  }
  .mobile-sort label {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .mobile-sort select {
    width: auto;
  }
  .order-filters {
    grid-template-columns: 1fr 1fr;
    padding: 12px;
    gap: 10px;
  }
  .order-filters label:first-child {
    grid-column: 1/-1;
  }
  #ordersTable {
    min-width: 0;
    display: block;
  }
  #ordersTable thead {
    display: none;
  }
  #ordersTable tbody {
    display: grid;
    gap: 10px;
  }
  #ordersTable tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid #c8d9e4;
    border-radius: 10px;
    padding: 9px;
    background: #fff;
  }
  #ordersTable td {
    display: block;
    border: 0;
    padding: 6px;
    font-size: 0.84rem;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  #ordersTable td:before {
    content: attr(data-label);
    display: block;
    font-size: 0.68rem;
    color: #526d82;
    margin-bottom: 3px;
    font-weight: 750;
  }
  #ordersTable td:first-child,
  #ordersTable td:last-child {
    grid-column: 1/-1;
  }
  #ordersTable .table-actions {
    flex-wrap: wrap;
  }
  #ordersTable td .quick-request-status {
    max-width: 100%;
    font-size: 14px;
  }
  .orders-quick {
    gap: 5px;
  }
  .orders-quick .button {
    flex: 1;
    white-space: normal;
  }
  .product-drill div {
    display: grid;
  }
  .operational-days {
    grid-template-columns: repeat(7, 165px);
  }
  .warehouse-toolbar {
    flex-wrap: wrap;
  }
  .warehouse-calendar {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
  .warehouse-day {
    padding: 5px 2px;
    min-height: 65px;
  }
  .warehouse-day span {
    font-size: 0.62rem;
  }
  .warehouse-day small {
    display: none;
  }
  .warehouse-card {
    padding: 12px;
  }
  .warehouse-card-main {
    align-items: start;
  }
  .warehouse-card-side {
    align-items: start;
  }
  .warehouse-card-side .button {
    width: 100%;
    font-size: 0.88rem;
  }
  .warehouse-calendar-toggle {
    margin: 12px 0;
  }
  .warehouse-summary {
    margin-bottom: 10px;
  }
  .report-controls label {
    min-width: 135px;
  }
  .settings-grid .panel {
    margin-bottom: 12px;
  }
  .setting-row {
    flex-wrap: wrap;
  }
  .setting-row span {
    flex-basis: 100%;
  }
  .setting-row input {
    flex: 1;
    max-width: none;
  }
  .manager-overview {
    min-width: 590px;
  }
  .access-users {
    min-width: 660px;
  }
  .toast {
    right: 10px;
    left: 10px;
    bottom: 12px;
    max-width: none;
    z-index: 20;
  }
  .detail-list {
    grid-template-columns: 100px 1fr;
  }
  .month-day .month-day-top {
    display: grid;
  }
  .month-day .day-weekday {
    font-size: 0.67rem;
  }
  .month-free-title {
    font-size: 0.68rem;
  }
}
@media (max-width: 720px) {
  .warehouse-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
    gap: 10px;
  }
  .warehouse-card-main {
    width: 100%;
    gap: 9px;
  }
  .warehouse-card-main > div {
    min-width: 0;
  }
  .warehouse-card h3 {
    overflow-wrap: anywhere;
    font-size: 1rem;
  }
  .warehouse-icon {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }
  .warehouse-card-side {
    grid-template-columns: auto 1fr;
    justify-items: start;
    text-align: left;
    align-items: center;
    width: 100%;
    gap: 7px;
  }
  .warehouse-card-side .button {
    grid-column: 1/-1;
  }
  .warehouse-cards .planned .warehouse-card-side:after {
    grid-column: 1/-1;
  }
  .grain-calendar {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
  .grain-day {
    min-height: 84px;
    padding: 4px 2px;
    font-size: 0.62rem;
  }
  .grain-day span,
  .grain-day b {
    font-size: 0.6rem;
  }
  .grain-day strong {
    font-size: 0.68rem;
  }
  .holiday-badge {
    font-size: 0.62rem;
  }
  .warehouse-calendar .holiday-badge,
  .grain-calendar .holiday-badge {
    overflow-wrap: anywhere;
  }
  .quick-form .shift-date {
    font-size: 0.78rem;
    line-height: 1.4;
  }
  .sort-button {
    padding: 7px;
  }
  .warehouse-toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-bottom: 12px;
  }
  .warehouse-toolbar > label {
    grid-column: 1/-1;
  }
  .warehouse-toolbar button:nth-child(3) {
    grid-column: 1/-1;
  }
}
@media (max-width: 720px) {
  body[data-single-view='true'] .topnav {
    display: none;
  }
  .warehouse-date {
    min-width: 140px;
    font-size: 0.78rem;
  }
  .warehouse-date input {
    width: 145px;
  }
  .warehouse-group {
    padding: 12px;
  }
  .warehouse-group-head {
    flex-wrap: wrap;
    margin-bottom: 6px;
  }
  .warehouse-group-head h2 {
    margin-bottom: 0;
  }
  .warehouse-group-head > span {
    font-size: 0.73rem;
  }
  .warehouse-card .status-badge {
    white-space: normal;
  }
  .report-controls {
    padding: 12px;
  }
}
.month-day.weekend .day-weekday,
.day-column.weekend .day-weekday {
  background: #e6e5f4;
  color: #433c69;
}
.month-day.holiday .day-weekday {
  background: #ffdae2;
  color: #852337;
}
.month-day.today .day-weekday {
  background: #dbf0f1;
  color: #145962;
}
.month-day.weekend .month-day-top strong {
  color: #433c69;
}
.sort-button {
  min-height: 32px;
}
.manager-overview {
  font-variant-numeric: tabular-nums;
}
@media (max-width: 720px) {
  body[data-role='worker'] #accountName {
    display: inline;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.72rem;
  }
  .conflict-comparison .button {
    white-space: normal;
    width: 100%;
    margin-top: 8px;
  }
}
.permission-inactive {
  opacity: 0.6;
  background: #edf0f2;
}
.permission-effective {
  font-size: 0.8rem;
  margin: 10px 0;
}
.permission-inactive small {
  color: #52606a;
}
.warehouse-toolbar input {
  width: 100%;
}
@media (max-width: 720px) {
  .warehouse-toolbar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .warehouse-toolbar > label {
    grid-column: 1/-1;
  }
  .warehouse-toolbar button:nth-child(3) {
    grid-column: auto;
  }
  .warehouse-toolbar .button {
    padding: 8px 6px;
    font-size: 0.79rem;
  }
}
.month-ramp {
  display: block;
  font-size: 0.68rem;
  color: #4c677a;
  margin-bottom: 6px;
}
.month-day .free-chip {
  overflow-wrap: anywhere;
}
.calendar-legend .legend-holiday {
  background: #ffe7eb;
  padding: 3px 6px;
  border-radius: 4px;
}
.calendar-legend .legend-weekend {
  background: #eceaf7;
  padding: 3px 6px;
  border-radius: 4px;
}
.toolbar {
  flex-wrap: wrap;
}
.toolbar-right {
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
}
@media (max-width: 720px) {
  .quick-save {
    position: sticky;
    bottom: 10px;
    z-index: 2;
    min-height: 48px;
  }
  .quick-form .form-error:empty {
    display: none;
  }
}
.quick-item {
  border: 1px solid #cedfe6;
  background: #f6fafb;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
}
.quick-item-main {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 10px;
}
.quick-item-main label {
  min-width: 0;
}
.quick-item-main select,
.quick-item-main input {
  width: 100%;
  min-height: 48px;
}
.quick-item-main input {
  font-size: 1.4rem;
  font-weight: 750;
}
.quick-item-tools {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 8px;
  margin-top: 8px;
}
.quick-item-tools details {
  padding: 0;
  background: none;
  flex: 1;
  min-width: 0;
}
.quick-item-tools summary {
  font-size: 0.74rem;
  line-height: 1.4;
}
.quick-item-tools .button {
  font-size: 0.73rem;
  padding: 6px 9px;
}
.quick-item-hint:empty {
  display: none;
}
.quick-item-hint .notice {
  font-size: 0.77rem;
  margin-bottom: 0;
}
.quick-total {
  color: #165c66;
  background: #eaf5f4;
  border-radius: 8px;
  font-weight: 750;
  padding: 10px;
  margin: 0;
  font-size: 0.88rem;
}
.shift-group {
  border-bottom: 1px solid #d6e2e8;
  padding: 12px 0;
}
.shift-group h3 {
  margin: 0 0 5px;
  font-size: 0.91rem;
}
.shift-group > .button {
  margin-top: 8px;
}
.shift-group .shift-record {
  border: 0;
  padding: 6px 0;
}
.quick-form .form-grid .wide {
  grid-column: 1/-1;
}
.workforce-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.workforce-card {
  border: 1px solid #d5e1e8;
  border-radius: 9px;
  padding: 12px;
  margin: 10px 0;
  background: #f7fafb;
}
.workforce-card h3 {
  margin: 0 0 7px;
}
.workforce-card p {
  overflow-wrap: anywhere;
}
.workforce-members {
  border: 1px solid #d4e1e8;
  padding: 12px;
  border-radius: 8px;
}
.workforce-members .checkbox-line,
.quick-roster .checkbox-line {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
}
.workforce-members input[type='checkbox'],
.quick-roster input[type='checkbox'] {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.workforce-slot {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 8px;
  align-items: end;
  padding: 10px;
  border: 1px solid #d6e2e8;
  border-radius: 9px;
  margin: 8px 0;
}
.workforce-slot input {
  min-width: 0;
  width: 100%;
}
.quick-roster summary {
  font-size: 0.8rem;
  line-height: 1.4;
  min-height: 40px;
  padding: 8px 0;
  cursor: pointer;
}
.quick-roster div {
  max-height: 240px;
  overflow: auto;
}
#quickCrew {
  display: grid;
  gap: 7px;
}
#quickCrew select {
  min-height: 44px;
}
.shift-crew-history {
  font-size: 0.8rem;
  line-height: 1.5;
  background: #edf4f6;
  padding: 8px;
  border-radius: 6px;
  overflow-wrap: anywhere;
}
.workforce-slot {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}
.workforce-slot label:first-child {
  grid-column: 1/-1;
}
.workforce-slot input[type='time'] {
  padding-left: 8px;
  padding-right: 4px;
  font-size: 16px;
}
#workforceScheduleForm > [type='submit'] {
  position: sticky;
  bottom: -14px;
  z-index: 2;
  box-shadow: 0 2px 12px #17364725;
}
@media (max-width: 720px) {
  .workforce-slot {
    grid-template-columns: 1fr 1fr;
  }
  .workforce-slot label:first-child {
    grid-column: 1/-1;
  }
  .workforce-slot > .button {
    grid-column: 1/-1;
  }
  .workforce-toolbar .button {
    flex: 1;
    white-space: normal;
  }
  .quick-form .quick-roster {
    padding: 3px 9px;
  }
  .quick-form .shift-date {
    font-size: 0.74rem;
  }
  .quick-roster summary {
    font-size: 0.75rem;
  }
}
@media (max-width: 720px) {
  .quick-form {
    gap: 11px;
  }
  .quick-item {
    padding: 10px;
  }
  .quick-item-main label {
    font-size: 0.81rem;
  }
  .quick-item-main select {
    font-size: 0.88rem;
    padding: 8px 5px;
  }
  .quick-form .shift-date {
    margin: 0;
    padding: 9px;
  }
  .quick-item-tools .button {
    min-height: 36px;
  }
  .quick-item-tools summary {
    min-height: 36px;
    padding: 8px 0;
  }
  .quick-item-tools details[open] {
    min-width: 0;
  }
  .quick-item-tools input {
    font-size: 16px;
  }
  #quickHint .subtle {
    font-size: 0.75rem;
    margin: 0;
  }
}

@media (max-width: 720px) {
  .quick-form .form-grid > label:has(select[name='shift']) {
    grid-column: 1/-1;
  }
  .quick-form select[name='shift'] {
    width: 100%;
    font-size: 16px;
    padding-right: 28px;
  }
  .quick-save {
    position: static;
    box-shadow: none;
    margin-top: 8px;
  }
  .quick-form {
    padding-bottom: 12px;
  }
  .card-status-select {
    min-height: 44px;
  }
}
