.admin-header, .admin-brand, .admin-user, .admin-heading, .admin-actions { display: flex; align-items: center; }
.admin-header { justify-content: space-between; min-height: 72px; gap: 12px; }
.admin-brand { gap: 17px; white-space: nowrap; }
.admin-brand > span { color: var(--muted); font-size: 14px; border-left: 1px solid var(--line); padding-left: 17px; }
.admin-user { gap: 15px; font-size: 13px; overflow-wrap: anywhere; }
.admin-user button { white-space: nowrap; }
.admin-page { min-height: 100vh; }
.login-panel { width: min(430px, calc(100% - 36px)); margin: clamp(42px, 12vh, 116px) auto 45px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); padding: clamp(24px, 6vw, 41px); }
.login-panel h1 { font: 700 28px/1.35 var(--serif); margin-bottom: 25px; }
.admin-content { padding-block: 44px 60px; }
.admin-heading { justify-content: space-between; align-items: flex-start; gap: 15px; }
.admin-heading h1 { font: 700 clamp(27px, 4vw, 39px)/1.3 var(--serif); }
.admin-heading p { margin-top: 7px; }
.admin-actions { flex-wrap: wrap; gap: 8px; justify-content: end; }
.admin-nav { display: flex; gap: 22px; margin: 24px 0 16px; border-bottom: 1px solid var(--line); }
.admin-nav button { border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 10px 3px; color: var(--muted); }
.admin-nav button[aria-pressed="true"] { color: var(--green); border-bottom-color: var(--green); font-weight: 650; }
.table-frame { overflow-x: auto; border: 1px solid var(--line); border-radius: 5px; background: var(--white); }
#records-table { width: 100%; min-width: 610px; border-collapse: collapse; text-align: left; font-size: 14px; }
#records-table th, #records-table td { padding: 13px 15px; }
#records-table th { background: #eef0e9; color: var(--dark-green); font-size: 13px; }
#records-table tr + tr td { border-top: 1px solid var(--line); }
.record-status { display: inline-flex; align-items: center; border-radius: 99px; padding: 4px 8px; white-space: nowrap; background: #eaeee7; color: var(--green); font-size: 12px; }
.record-status[data-status="pending"] { background: #f3eadd; color: #6c491b; }
.record-status[data-status="cancelled"], .record-status[data-status="inactive"] { background: #f3e6e6; color: #742e31; }
.record-action { padding: 5px 9px; border: 1px solid var(--line); border-radius: 3px; background: transparent; color: var(--green); white-space: nowrap; }
.record-action:hover { background: #ebeee7; }
.admin-dialog { width: min(550px, calc(100% - 24px)); max-height: calc(100% - 24px); }
.admin-dialog .panel-heading { padding: 12px 20px; }
.admin-dialog-body { padding: 18px 20px 22px; }
.admin-dialog-body > .message { margin-top: 12px; }
.order-facts { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px; margin: 0 0 20px; font-size: 14px; }
.order-facts dt { color: var(--muted); }
.order-facts dd { margin: 0; overflow-wrap: anywhere; }
.order-line { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.order-line:last-child { border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.order-line span:last-child { white-space: nowrap; }
.editor-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-stack .check-label { display: flex; align-items: center; justify-content: flex-start; }
.form-stack .check-label input { width: 19px; min-height: 19px; accent-color: var(--green); }
#dashboard-message:not(:empty) { margin: 0 0 14px; }
#orders-more { margin-top: 13px; }
@media (max-width: 500px) {
  .admin-header { min-height: 63px; }
  .admin-brand { gap: 8px; }
  .admin-brand > span { padding-left: 8px; }
  .admin-user { gap: 6px; }
  .admin-user button { padding: 7px; }
  .admin-content { padding-top: 29px; }
}
