/* Shared owner-cabinet layout. Scoped away from Work and customer cabinets. */
.rh-owner-cabinet .main { padding: 18px 24px 24px; min-width: 0; }
.rh-owner-cabinet .main h1 { font-size: clamp(25px, 2vw, 34px); margin: 0 0 12px; }
.rh-owner-cabinet .main h2 { font-size: 20px; margin: 0 0 10px; line-height: 1.3; }
.rh-owner-cabinet .main h3 { font-size: 17px; margin: 12px 0 8px; }
.rh-owner-cabinet .main p { margin: 8px 0; line-height: 1.5; }
.rh-owner-cabinet .main .card { min-height: 0; padding: 16px; }
.rh-owner-cabinet .main .cards { gap: 12px; }
.rh-owner-cabinet .main .working-links { margin: 10px 0 16px; gap: 10px; }
.rh-owner-cabinet .main .working-links a { padding: 12px; }
.rh-owner-cabinet .main .footer { margin-top: 16px; }
.rh-owner-cabinet .main .hr-panel section,
.rh-owner-cabinet .main .manager-panel .panel { padding: 16px; margin: 12px 0; }
.rh-owner-cabinet .main .hr-metrics,
.rh-owner-cabinet .main .manager-panel .metrics { display: grid; grid-template-columns: repeat(auto-fit,minmax(170px,1fr)); gap: 10px; margin: 12px 0; }
.rh-owner-cabinet .main .hr-metrics section,
.rh-owner-cabinet .main .manager-panel .metrics article { margin: 0; padding: 12px 16px; min-width: 0; }
.rh-owner-cabinet .main .hr-metrics h2,
.rh-owner-cabinet .main .manager-panel .metrics h2 { font-size: 15px; margin: 0 0 6px; }
.rh-owner-cabinet .main .hr-metrics strong,
.rh-owner-cabinet .main .manager-panel .metrics strong { font-size: 28px; line-height: 1.2; }
.rh-owner-cabinet .main .hr-metrics p,
.rh-owner-cabinet .main .manager-panel .metrics p { font-size: 13px; margin: 5px 0 0; }
.rh-owner-cabinet .rh-personnel-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; align-items: start; }
.rh-owner-cabinet .rh-personnel-actions > section { min-width: 0; }
.rh-owner-cabinet .main .rh-hr-navigation { display: flex; flex-wrap: wrap; gap: 8px; }
.rh-owner-cabinet .main .rh-hr-navigation a { padding: 8px 12px; }
.rh-section-links { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0; }
.rh-section-links a { display:inline-block; padding:8px 12px; background:#fff; border:1px solid #c8d4df; border-radius:7px; text-decoration:none; color:#183b70; }
.rh-owner-cabinet .main form { display:flex; align-items:flex-end; flex-wrap:wrap; gap:10px; margin:10px 0; }
.rh-owner-cabinet .main form label { display:flex; flex-direction:column; gap:5px; margin:0; min-width:0; font-size:14px; }
.rh-owner-cabinet .main form input:not([type=checkbox]):not([type=hidden]),
.rh-owner-cabinet .main form select { font:inherit; padding:8px 10px; min-height:38px; min-width:0; max-width:100%; border:1px solid #a8bac8; background:#fff; color:#253b30; border-radius:6px; }
.rh-owner-cabinet .main form input[type=checkbox] { width:auto; }
.rh-owner-cabinet .main form button { font:inherit; font-size:14px; padding:8px 12px; min-height:38px; }
.rh-owner-cabinet .rh-personnel-actions form label { flex:1 1 220px; }
.rh-owner-cabinet .rh-personnel-actions form input,
.rh-owner-cabinet .rh-personnel-actions form select { width:100%; }
.rh-owner-cabinet .main table,
.rh-owner-report table,
.rh-owner-tender table { width:100%; border-collapse:collapse; border:1px solid #c6d2dc; font-size:14px; }
.rh-owner-cabinet .main table th,.rh-owner-cabinet .main table td,
.rh-owner-report table th,.rh-owner-report table td,
.rh-owner-tender table th,.rh-owner-tender table td { padding:10px 12px; border:1px solid #c6d2dc; text-align:left; vertical-align:top; line-height:1.4; }
.rh-owner-cabinet .main table th,.rh-owner-report table th,.rh-owner-tender table th { background:#edf2f7; color:#193854; font-weight:700; }
.rh-owner-cabinet .main tbody tr:nth-child(even),.rh-owner-report tbody tr:nth-child(even),.rh-owner-tender tbody tr:nth-child(even) { background:#f7f9fc; }
.rh-owner-cabinet .main tbody tr:hover { background:#f0f5fa; }
.rh-owner-cabinet .main table .rh-money { text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; background:#f7faf5; }
.rh-owner-cabinet .main table th.rh-money { background:#eaf2e6; }
.rh-owner-cabinet .main table .rh-count { text-align:center; font-variant-numeric:tabular-nums; }
.rh-owner-cabinet .main table .rh-group-start { border-left:2px solid #8fabc0; }
.rh-owner-cabinet .rh-manager-results { min-width:1060px; }
.rh-owner-cabinet .rh-manager-results th:first-child { min-width:190px; }
.rh-owner-cabinet .rh-manager-results caption { text-align:left; font-size:13px; padding:0 0 8px; color:#526575; }
.rh-table-scroll { max-width:100%; overflow-x:auto; padding-bottom:3px; }
.rh-table-scroll:focus-visible { outline:3px solid #b38d32; outline-offset:3px; }
.rh-owner-cabinet .main .rh-journal,.rh-owner-report .rh-journal { display:block; margin:12px 0; border:1px solid #c7d3dc; border-radius:9px; background:#fff; padding:0; }
.rh-owner-cabinet .main .rh-journal > summary,.rh-owner-report .rh-journal > summary { cursor:pointer; padding:12px 16px; font-weight:650; font-size:15px; color:#193b61; }
.rh-owner-cabinet .main .rh-journal[open] > summary { border-bottom:1px solid #d6dfe6; }
.rh-owner-cabinet .main .rh-journal-content,.rh-owner-report .rh-journal > ul { padding:12px 16px; }
.rh-owner-cabinet .main .rh-journal-content ul { margin:0; padding-left:20px; overflow-wrap:anywhere; }
.rh-owner-cabinet .main .rh-journal-content li { margin:6px 0; }
.rh-owner-cabinet .rh-help { margin:8px 0; font-size:14px; }
.rh-owner-cabinet .rh-help summary { cursor:pointer; font-weight:600; }
.rh-owner-cabinet :target { scroll-margin-top:16px; }
.rh-owner-report main { max-width:1400px; padding:20px; }
.rh-owner-report .panel { padding:16px; margin-bottom:12px; }
.rh-owner-report .subtitle { margin-bottom:16px; }
.rh-owner-report h2 { margin-bottom:10px; }
.rh-owner-report .metric { padding:12px; }
.rh-owner-report table .num { text-align:right; }
.rh-owner-tender main { max-width:1400px; margin:20px auto; }
.rh-owner-tender section { padding:16px; margin:12px 0; }
.rh-owner-tender h1 { font-size:28px; margin:12px 0; }
.rh-owner-tender h2 { font-size:21px; margin:0 0 10px; }
.rh-owner-tender header { padding:12px 24px; }
.rh-owner-tender nav { gap:8px; align-items:center; }
.rh-owner-tender header a { margin-right:8px; }
/* Existing Django admin, lists, filters and form layouts retain their controls. */
body.change-list #result_list th,body.change-list #result_list td { border-right:1px solid #c8d4dd; border-bottom:1px solid #c8d4dd; padding:9px 10px; }
body.change-list #result_list thead th { background:#edf2f7; }
body.change-list #result_list { border:1px solid #c8d4dd; }
body.change-list #result_list tbody tr:nth-child(even) { background:#f7f9fc; }
body.change-list #content,body.change-form #content { padding:20px 24px; }
body.change-form .module { margin-bottom:14px; }
body.change-form fieldset .form-row { padding:10px 12px; }
/* Travel work pages use the same readable spacing, with Work explicitly excluded. */
body .rh-erp { max-width:1400px; margin:18px auto; }
body .rh-erp .rh-panel { padding:16px; margin-top:12px; }
body .rh-erp .rh-crumbs { margin-bottom:12px; }
body .rh-review { margin:18px auto; padding-bottom:20px; }
body .rh-review .review-hero { padding:16px 20px; margin-bottom:12px; }
body .rh-review .review-columns { gap:12px; }
body .rh-review .panel,body .rh-review .file-card { padding:16px; }
body .rh-business section,body .rh-business form { padding:16px!important; margin:12px 0!important; }
@media(max-width:1000px) { .rh-owner-cabinet .rh-personnel-actions { grid-template-columns:1fr; gap:0; } }
@media(max-width:700px) {
  .rh-owner-cabinet .main { margin-left:0; padding:16px 12px; }
  .rh-owner-cabinet .main h1 { font-size:25px; }
  .rh-owner-cabinet .main .hr-metrics,.rh-owner-cabinet .main .manager-panel .metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .rh-owner-cabinet .main form label { flex:1 1 100%; }
  .rh-owner-cabinet .main form input:not([type=checkbox]),.rh-owner-cabinet .main form select { width:100%; }
  .rh-owner-cabinet .main form button { min-height:44px; }
  .rh-owner-tender section { overflow-x:auto; }
  .rh-owner-tender table { display:table; min-width:600px; }
  .rh-owner-tender tbody { display:table-row-group; }
  .rh-owner-tender tr { display:table-row; }
  .rh-owner-tender table th,.rh-owner-tender table td { display:table-cell; }
}
