/* Business tool directory (directory/business-tools.blade.php), brand 3.1. Prefix osh-dir. */
.osh-dir { color: var(--osh-text); font-family: var(--osh-font-body); }
.osh-dir *, .osh-dir *::before, .osh-dir *::after { box-sizing: border-box; }
.osh-dir-head { padding-block: var(--osh-space-2xl) var(--osh-space-xl); }
.osh-dir-title { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--osh-space-xl) var(--osh-space-3xl); align-items: start; margin-top: var(--osh-space-md); }
.osh-dir-title > div { display: grid; gap: var(--osh-space-md); max-width: 760px; }
.osh-dir-title p { margin: 0; }
.osh-dir-welcome { position: relative; width: 320px; padding: var(--osh-space-xl); border: 1px solid var(--osh-border); border-radius: var(--osh-radius); background: var(--osh-surface-subtle); }
.osh-dir-welcome[hidden] { display: none; }
.osh-dir-welcome ul { display: grid; gap: var(--osh-space-xs); margin: var(--osh-space-md) 0 0; padding: 0; list-style: none; font-size: var(--osh-type-label-size); line-height: var(--osh-type-label-leading); }
.osh-dir-welcome .osh-card-title { margin: 0; color: var(--osh-text); }
.osh-dir-x { position: absolute; top: var(--osh-space-sm); right: var(--osh-space-sm); width: 32px; height: 32px; border: 0; border-radius: var(--osh-radius); background: transparent; color: var(--osh-text-secondary); font-size: 20px; cursor: pointer; }
.osh-dir-x:hover { background: var(--osh-surface); color: var(--osh-text); }

.osh-dir-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: var(--osh-space-2xl); padding-bottom: var(--osh-space-4xl); }
.osh-dir-filters { position: sticky; top: calc(80px + var(--osh-space-lg)); align-self: start; display: grid; gap: var(--osh-space-lg); padding: var(--osh-space-xl); border: 1px solid var(--osh-border-subtle); border-radius: var(--osh-radius); background: var(--osh-surface); max-height: calc(100vh - 120px); overflow-y: auto; }
.osh-dir-k { margin: 0; font: 600 12px/1.4 var(--osh-font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--osh-text-secondary); }
.osh-dir-filters label > span, .osh-dir-filters legend { display: block; margin-bottom: var(--osh-space-xs); padding: 0; font: 600 var(--osh-type-label-size)/var(--osh-type-label-leading) var(--osh-font-body); }
.osh-dir-filters fieldset { margin: 0; padding: 0; border: 0; }
.osh-dir-filters :is(input[type=search], select) { width: 100%; min-height: var(--osh-target-min); padding: 0 var(--osh-space-md); border: 1px solid var(--osh-border); border-radius: var(--osh-radius); background: var(--osh-surface); color: var(--osh-text); font: 400 var(--osh-type-label-size)/1 var(--osh-font-body); }
.osh-dir-chips { display: flex; flex-wrap: wrap; gap: var(--osh-space-xs); }
.osh-dir-chips label { position: relative; }
.osh-dir-chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.osh-dir-chips span { display: inline-flex; align-items: center; min-height: 32px; padding: 0 var(--osh-space-sm); border: 1px solid var(--osh-border-subtle); border-radius: var(--osh-radius); font-size: 13px; }
.osh-dir-chips input:checked + span { border-color: var(--osh-text); background: var(--osh-text); color: var(--osh-canvas); font-weight: 600; }
.osh-dir-chips input:focus-visible + span { outline: 2px solid var(--osh-focus-outer); outline-offset: 2px; }
.osh-dir-check { display: flex; align-items: center; gap: var(--osh-space-sm); min-height: 32px; font-size: var(--osh-type-label-size); }
.osh-dir-check input { width: 16px; height: 16px; accent-color: var(--osh-petrol); }
.osh-dir-fgo { display: flex; align-items: center; gap: var(--osh-space-md); }
.osh-dir-fgo a { font-size: var(--osh-type-label-size); color: var(--osh-text); }
.osh-dir-fgo .osh-btn { flex: 1; }

.osh-dir-main { min-width: 0; }
.osh-dir-toast { margin: 0 0 var(--osh-space-md); padding: var(--osh-space-sm) var(--osh-space-md); border: 1px solid var(--osh-status-success-border); border-radius: var(--osh-radius); background: var(--osh-status-success-bg); color: var(--osh-status-success-fg); font-weight: 600; }
.osh-dir-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--osh-space-md); margin-bottom: var(--osh-space-md); }
.osh-dir-bar p { margin: 0; }
.osh-dir-bar p span { color: var(--osh-text-secondary); font-size: var(--osh-type-label-size); }
.osh-dir-tools { display: flex; align-items: center; gap: var(--osh-space-sm); }
.osh-dir-cols { position: relative; }
.osh-dir-cols summary { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--osh-space-lg); border: 1px solid var(--osh-border); border-radius: var(--osh-radius); font-weight: 600; font-size: var(--osh-type-label-size); cursor: pointer; list-style: none; }
.osh-dir-cols summary::-webkit-details-marker { display: none; }
.osh-dir-cols > div { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; display: grid; gap: 2px; width: 240px; padding: var(--osh-space-md); border: 1px solid var(--osh-border); border-radius: var(--osh-radius); background: var(--osh-surface); box-shadow: 0 16px 32px -20px color-mix(in srgb, var(--osh-petrol) 50%, transparent); }
.osh-dir-cols label { display: flex; align-items: center; gap: var(--osh-space-sm); min-height: 32px; font-size: var(--osh-type-label-size); }
.osh-dir-cols input { accent-color: var(--osh-petrol); }
.osh-dir-cmp { min-height: 40px; font-size: var(--osh-type-label-size); }
.osh-dir-cmp[hidden] { display: none; }
.osh-dir-lockbtn { display: inline-flex; align-items: center; gap: var(--osh-space-sm); min-height: 40px; padding: 0 var(--osh-space-lg); border: 1px dashed var(--osh-border); border-radius: var(--osh-radius); font-size: var(--osh-type-label-size); font-weight: 600; color: var(--osh-text); text-decoration: none; }
.osh-dir-lockbtn::before { content: ""; width: 12px; height: 12px; border: 2px solid currentColor; border-radius: 2px 2px 3px 3px; box-shadow: inset 0 -5px 0 -2px currentColor; }

.osh-dir-tablewrap { overflow-x: auto; border: 1px solid var(--osh-border-subtle); border-radius: var(--osh-radius); background: var(--osh-surface); }
.osh-dir-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--osh-type-label-size); line-height: var(--osh-type-label-leading); }
.osh-dir-table :is(th, td) { padding: var(--osh-space-md); border-bottom: 1px solid var(--osh-border-subtle); text-align: left; vertical-align: middle; white-space: nowrap; }
.osh-dir-table td[data-col="category"], .osh-dir-table td[data-col="certs"] { white-space: normal; min-width: 160px; }
.osh-dir-table thead th { position: sticky; top: 0; z-index: 2; background: var(--osh-surface-subtle); font-weight: 600; color: var(--osh-text-secondary); }
.osh-dir-table thead a { color: inherit; text-decoration: none; }
.osh-dir-table thead a[aria-sort="ascending"]::after { content: " ↑"; }
.osh-dir-table thead a[aria-sort="descending"]::after { content: " ↓"; }
.osh-dir-table thead a:hover { color: var(--osh-text); }
.osh-dir-table tbody tr:hover > * { background: var(--osh-surface-subtle); }
.osh-dir-table [hidden] { display: none; }
.osh-dir-name { position: sticky; left: 0; z-index: 1; background: var(--osh-surface); min-width: 220px; font-weight: 600; box-shadow: inset -1px 0 0 var(--osh-border-subtle); }
thead .osh-dir-name { z-index: 3; background: var(--osh-surface-subtle); }
.osh-dir-name > span { display: flex; align-items: center; gap: var(--osh-space-sm); }
.osh-dir-name a { color: var(--osh-text); text-decoration: none; }
.osh-dir-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.osh-dir-table .v5-logo-sm { width: 28px; height: 28px; flex: none; }
.osh-dir-table td a { color: var(--osh-text); }
.osh-dir-table small { display: block; color: var(--osh-text-secondary); font-size: 12px; }
.osh-dir-pick { width: 40px; text-align: center !important; }
.osh-dir-pick input { width: 16px; height: 16px; accent-color: var(--osh-petrol); }
.osh-dir-nist { display: inline-flex; gap: 2px; }
.osh-dir-nist abbr { display: inline-grid; place-items: center; width: 26px; height: 22px; border-radius: 3px; font-size: 11px; font-weight: 600; text-decoration: none; color: var(--osh-text-secondary); background: transparent; border: 1px solid var(--osh-border-subtle); }
.osh-dir-nist abbr.is-on { background: var(--osh-text); border-color: var(--osh-text); color: var(--osh-canvas); }
.osh-dir-add form { margin: 0; }
.osh-dir-add button { min-height: 32px; padding: 0 var(--osh-space-md); border: 1px solid var(--osh-border); border-radius: var(--osh-radius); background: var(--osh-surface); color: var(--osh-text); font: 600 13px/1 var(--osh-font-body); cursor: pointer; }
.osh-dir-add button:hover { background: var(--osh-surface-subtle); }
.osh-dir-in { display: inline-grid; place-items: center; width: 32px; height: 32px; color: var(--osh-status-success-fg); font-weight: 700; }

.osh-dir-ghost > * { pointer-events: none; }
.osh-dir-ghost i { display: block; height: 10px; width: 70%; border-radius: 3px; background: var(--osh-surface-subtle); }
.osh-dir-ghost .osh-dir-name i { width: 120px; }
.osh-dir-ghost .v5-logo { background: var(--osh-surface-subtle); }
.osh-dir-ghost:nth-last-child(-n+3) { opacity: .6; }
.osh-dir-ghost:last-child { opacity: .3; }
.osh-dir-gate { display: grid; gap: var(--osh-space-md); justify-items: center; margin-top: calc(-1 * var(--osh-space-4xl)); position: relative; padding: var(--osh-space-3xl) var(--osh-space-xl) var(--osh-space-2xl); text-align: center; background: linear-gradient(to bottom, color-mix(in srgb, var(--osh-canvas) 0%, transparent), var(--osh-canvas) 45%); }
.osh-dir-gate p { margin: 0; max-width: 56ch; }
.osh-dir-gate .osh-card-title { color: var(--osh-text); }
.osh-dir-gate div { display: flex; align-items: center; gap: var(--osh-space-lg); }
.osh-dir-gate div a:not(.osh-btn) { font-weight: 600; color: var(--osh-text); }
.osh-dir-empty { display: grid; gap: var(--osh-space-md); justify-items: start; padding: var(--osh-space-2xl); border: 1px dashed var(--osh-border-subtle); border-radius: var(--osh-radius); }
.osh-dir-empty p { margin: 0; }
.osh-dir-pages { display: flex; flex-wrap: wrap; gap: var(--osh-space-xs); margin-top: var(--osh-space-lg); }
.osh-dir-pages :is(a, span) { display: inline-grid; place-items: center; min-width: 36px; height: 36px; border: 1px solid var(--osh-border-subtle); border-radius: var(--osh-radius); color: var(--osh-text); text-decoration: none; font-size: var(--osh-type-label-size); }
.osh-dir-pages span { background: var(--osh-text); border-color: var(--osh-text); color: var(--osh-canvas); font-weight: 600; }

/* older table and form styles must not reach this table */
#osh-main .osh-dir-table, #osh-main .osh-dir-table :is(th, td) { border: 0 !important; border-radius: 0 !important; }
#osh-main .osh-dir-table :is(th, td) { border-bottom: 1px solid var(--osh-border-subtle) !important; }
#osh-main .osh-dir-table thead th { background-color: var(--osh-surface-subtle) !important; }
#osh-main .osh-dir-table tbody tr > * { background-color: var(--osh-surface) !important; }
#osh-main .osh-dir-table tbody tr:hover > * { background-color: var(--osh-surface-subtle) !important; }
#osh-main .osh-dir-table .osh-dir-name { box-shadow: inset -1px 0 0 var(--osh-border-subtle) !important; }
#osh-main .osh-dir-table td[data-col="pricing"] { white-space: normal; min-width: 180px; max-width: 280px; }
#osh-main .osh-dir-table td[data-col="category"] a { text-decoration: none; }
#osh-main .osh-dir-table td[data-col="category"] a:hover { text-decoration: underline; }
#osh-main .osh-dir-chips { gap: 6px !important; }
#osh-main .osh-dir-chips label { display: inline-flex; margin: 0 !important; padding: 0 !important; border: 0 !important; }
#osh-main .osh-dir-chips span { margin: 0 !important; padding: 0 10px !important; line-height: 30px; }

@media (max-width: 1023px) {
    .osh-dir-body { grid-template-columns: minmax(0, 1fr); }
    .osh-dir-filters { position: static; max-height: none; }
    .osh-dir-title { grid-template-columns: minmax(0, 1fr); }
    .osh-dir-welcome { width: auto; }
}
