.rr-page,
.rr-form,
.rr-detail {
  color: var(--ink, #192635);
}
.rr-page {
  min-width: 0;
}
.rr-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 28px;
}
.rr-heading h1 {
  margin: 0;
  font-size: clamp(32px, 3.6vw, 52px);
  letter-spacing: -0.055em;
  line-height: 1.04;
}
.rr-heading p {
  margin: 12px 0 0;
  color: var(--muted, #59616a);
  font-size: 15px;
  line-height: 1.55;
}
.rr-heading > button {
  flex: none;
}
.rr-panel {
  padding: 0;
  overflow: hidden;
}
.rr-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line, #d5d5cd);
  padding: 16px 20px;
  flex-wrap: wrap;
}
.rr-search {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 1 260px;
  min-width: 0;
}
.rr-search > span {
  line-height: 1;
  color: var(--muted, #59616a);
  font-size: 21px;
}
.rr-toolbar :is(input, select),
.rr-field :is(input, select, textarea) {
  font: inherit;
  color: var(--ink, #192635);
  background: white;
  border: 1px solid var(--line, #d5d5cd);
  border-radius: 5px;
  padding: 9px 10px;
  min-height: 39px;
  box-sizing: border-box;
}
.rr-toolbar input {
  width: 100%;
  min-width: 0;
}
.rr-toolbar select {
  max-width: 100%;
}
.rr-count {
  margin-left: auto;
  color: var(--muted, #59616a);
  white-space: nowrap;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.rr-empty {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 42px clamp(20px, 3.5vw, 54px) 48px;
}
.rr-empty-rule {
  border-top: 3px solid var(--blue, #2048bc);
  width: 30px;
  margin-top: 12px;
  flex-shrink: 0;
}
.rr-empty h2 {
  font-size: 23px;
  line-height: 1.24;
  letter-spacing: -0.035em;
  margin: 0 0 8px;
}
.rr-empty p {
  max-width: 61ch;
  margin: 0;
  color: var(--muted, #59616a);
  line-height: 1.55;
}
.rr-empty button {
  margin-top: 16px;
}
.rr-tablewrap {
  overflow: auto;
}
.rr-summary-nav {
  display: flex;
  align-items: end;
  gap: 14px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line, #d5d5cd);
}
.rr-switch {
  color: var(--muted, #59616a);
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 13px 0 10px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
}
.rr-switch[aria-pressed="true"] {
  color: var(--blue, #2048bc);
  border-bottom-color: currentColor;
}
.rr-summary {
  padding: 20px;
  min-width: 0;
}
.rr-summary h2 {
  font-size: 21px;
  margin: 0 0 6px;
  letter-spacing: -0.03em;
}
.rr-summary p {
  margin: 0 0 15px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted, #59616a);
  max-width: 76ch;
}
.rr-summary-scroll {
  width: 100%;
  overflow: auto;
}
.rr-summary table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  text-align: left;
}
.rr-summary :is(th, td) {
  padding: 10px 9px;
  vertical-align: top;
  border-bottom: 1px solid var(--line, #d5d5cd);
}
.rr-summary :is(th, td):first-child {
  padding-left: 0;
}
.rr-summary thead th {
  font-size: 12px;
  color: var(--muted, #59616a);
  font-weight: 600;
}
.rr-summary td small {
  display: block;
  margin-top: 3px;
  min-width: 86px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted, #59616a);
}
.rr-summary small.rr-stock-warning {
  color: #86471f;
}
.rr-summary .rr-summary-empty {
  margin: 24px 0 5px;
}
.rr-summary-date {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  color: var(--muted, #59616a);
}
.rr-summary-date input {
  width: auto;
}
.rr-subset {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 9px 20px;
  background: #edf1fa;
  font-size: 13px;
}
.rr-summary-date[hidden],
.rr-subset[hidden],
.rr-status-filter[hidden] {
  display: none;
}
.rr-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.rr-table :is(td, th) {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line, #d5d5cd);
}
.rr-table th {
  color: var(--muted, #59616a);
  font-size: 12px;
  font-weight: 600;
}
.rr-table td {
  vertical-align: middle;
  font-size: 14px;
}
.rr-table tbody tr:last-child td {
  border-bottom: 0;
}
.rr-table tbody tr {
  cursor: pointer;
}
.rr-table tbody tr:hover {
  background: #f0f2f6;
}
.rr-table small,
.rr-link small {
  display: block;
  color: var(--muted, #59616a);
  margin-top: 3px;
}
.rr-date {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.rr-title-button,
.rr-inline-button,
.rr-link {
  border: 0;
  background: none;
  font: inherit;
  padding: 0;
  text-align: left;
  cursor: pointer;
}
.rr-title-button {
  color: var(--ink, #192635);
  font-weight: 650;
  overflow-wrap: anywhere;
}
.rr-inline-button,
.rr-link,
.rr-attachment {
  color: var(--blue, #2048bc);
}
.rr-inline-button {
  font-size: 0.91em;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}
.rr-title-button:hover,
.rr-link:hover,
.rr-attachment:hover {
  text-decoration: underline;
  text-underline-offset: 0.14em;
}
.rr-badge {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.4;
  padding: 3px 7px;
  font-weight: 650;
}
.rr-neutral {
  color: #505963;
  background: #eaeae6;
}
.rr-good {
  color: #27553f;
  background: #e1eee0;
}
.rr-alert {
  color: #88431a;
  background: #f7e7d4;
}
.rr-active {
  color: #254681;
  background: #e4ebf9;
}
.rr-form,
.rr-detail {
  min-width: 0;
}
.rr-table small.rr-mobile-qty {
  display: none;
}
.rr-form-section {
  border-top: 1px solid var(--line, #d5d5cd);
}
.rr-shift-form > .rr-grid + .rr-form-section {
  margin-top: 18px;
}
.rr-form-section > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  cursor: pointer;
  font-size: 14px;
  list-style: none;
}
.rr-form-section summary::-webkit-details-marker {
  display: none;
}
.rr-form-section summary strong {
  flex: 1;
  font-weight: 550;
}
.rr-form-section summary small {
  color: var(--muted, #59616a);
  font-size: 12px;
}
.rr-form-section summary small:empty {
  display: none;
}
.rr-form-section summary svg {
  color: var(--muted, #59616a);
  flex-shrink: 0;
}
.rr-form-section[open] summary svg:last-child {
  transform: rotate(180deg);
}
.rr-form-section > .rr-grid {
  padding: 2px 0 16px;
}
.rr-form-section .rr-files {
  grid-column: 1 / -1;
  margin-top: 0;
}
.rr-field small.rr-field-error {
  color: #963e28;
  font-size: 13px;
}
.rr-field [aria-invalid="true"] {
  border-color: #a84a34;
}
.rr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px 16px;
}
.rr-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  min-width: 0;
  margin: 0;
}
.rr-field > span {
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--ink, #192635);
}
.rr-field :is(input, select, textarea) {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  font-size: 15px;
}
.rr-field textarea {
  resize: vertical;
}
.rr-field small {
  color: var(--muted, #59616a);
}
.rr-wide {
  grid-column: 1 / -1;
}
.rr-field[hidden] {
  display: none;
}
.rr-pin {
  margin: 0 0 16px;
  color: var(--blue, #2048bc);
  font-size: 13px;
}
.rr-files {
  margin-top: 18px;
}
.rr-files input[type="file"] {
  padding: 7px;
}
.rr-files input::file-selector-button {
  margin-right: 8px;
  color: var(--blue, #2048bc);
  background: #ecf0fb;
  border: none;
  border-radius: 3px;
  font: inherit;
  font-size: 13px;
  padding: 5px 8px;
  cursor: pointer;
}
.rr-files ul,
.rr-detail-files {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.rr-files li,
.rr-detail-files li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 7px 16px;
  padding: 6px 0;
  overflow-wrap: anywhere;
}
.rr-detail-files small {
  color: var(--muted, #59616a);
}
.rr-actions,
.rr-detail-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line, #d5d5cd);
}
.rr-form-error,
.rr-draft {
  border-left: 3px solid;
  padding: 10px 12px;
  border-radius: 2px;
  font-size: 14px;
  line-height: 1.45;
}
.rr-form-error {
  background: #f9e9e3;
  border-color: #ae5431;
  color: #733a24;
  margin-top: 12px;
}
.rr-form-error[hidden] {
  display: none;
}
.rr-draft {
  background: #eaf0fa;
  border-color: var(--blue, #2048bc);
  margin-bottom: 18px;
}
.rr-draft button + button {
  margin-left: 12px;
}
.rr-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.rr-detail-header time {
  color: var(--muted, #59616a);
  font-size: 13px;
}
.rr-detail h3 {
  margin: 24px 0 8px;
  font-size: 16px;
}
.rr-detail h3.rr-detail-title {
  font-size: clamp(23px, 3vw, 32px);
  letter-spacing: -0.04em;
  margin: 14px 0 20px;
  line-height: 1.14;
}
.rr-facts {
  display: grid;
  grid-template-columns: minmax(100px, 0.75fr) minmax(0, 1.5fr);
  font-size: 14px;
  margin: 0;
}
.rr-facts :is(dt, dd) {
  padding: 8px 0;
  border-top: 1px solid var(--line, #d5d5cd);
  margin: 0;
  overflow-wrap: anywhere;
}
.rr-facts dt {
  color: var(--muted, #59616a);
  padding-right: 10px;
}
.rr-detail-note {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.55;
  margin: 0;
}
.rr-disclosure {
  border-top: 1px solid var(--line, #d5d5cd);
  margin-top: 16px;
}
.rr-disclosure summary {
  cursor: pointer;
  font-weight: 600;
  padding: 12px 0 4px;
}
.rr-link {
  display: block;
  width: 100%;
  padding: 9px 0;
}
.rr-history {
  padding: 7px 0;
  color: var(--muted, #59616a);
  font-size: 13px;
}
.rr-history > div {
  padding: 6px 0;
}
.rr-history strong,
.rr-history small {
  display: block;
}
.rr-history strong {
  font-weight: 550;
  color: var(--ink, #192635);
}
.rr-history small {
  margin-top: 2px;
  font-size: 12px;
}
@media (max-width: 700px) {
  .rr-table small.rr-mobile-qty {
    display: block;
    font-variant-numeric: tabular-nums;
  }
  .rr-form .rr-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: #fff;
    margin: 8px -16px -16px;
    padding: 10px 16px max(10px, env(safe-area-inset-bottom));
  }
  .rr-actions > .btn {
    min-height: 44px;
  }
  .rr-actions > .primary {
    flex: 1;
  }
  .rr-field :is(input, select, textarea) {
    font-size: 16px;
  }
  .rr-form :is(input, select, textarea, summary) {
    scroll-margin-block: 76px;
  }
  .rr-heading {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 18px;
  }
  .rr-toolbar {
    padding: 12px;
  }
  .rr-search {
    flex: 1 1 100%;
  }
  .rr-table :is(th, td) {
    padding: 10px 8px;
  }
  .rr-table :is(th, td):nth-child(3) {
    display: none;
  }
  .rr-table td {
    font-size: 13px;
  }
  .rr-badge {
    white-space: normal;
  }
  .rr-empty {
    gap: 10px;
    padding: 25px 14px 29px;
  }
  .rr-empty-rule {
    width: 16px;
  }
}
@media (max-width: 460px) {
  .rr-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .rr-shift-form > .rr-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 10px;
  }
  .rr-toolbar select {
    font-size: 14px;
  }
  .rr-facts {
    grid-template-columns: minmax(85px, 0.8fr) minmax(0, 1.2fr);
  }
}
