/* Buttons: the tracker .btn family, modal action buttons, add / filter buttons and link buttons. */

.filter-btn {
    padding: 6px 10px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-sm);
    font-size: var(--fs-xs);
    cursor: pointer;
    background: var(--card);
    color: var(--muted);
    font-family: inherit;
}

.btn-reset {
    padding: 7px 16px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--card);
    font-size: var(--fs-xs);
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.btn-save {
    padding: 7px 16px;
    border: none;
    border-radius: 7px;
    background: var(--accent);
    color: #fff;
    font-size: var(--fs-xs);
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.btn-outline {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: none;
    font-size: var(--fs-sm);
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary {
    padding: 8px 16px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: var(--fs-sm);
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

/* The page's main action (Employees, Roles). It was a lime fill with a dashed
   border that turned orange on hover — three colours the app uses nowhere
   else. It is the primary action, so it looks like one. */
.add-btn {
    margin-left: auto;
    margin-right: 1%;
    padding: 8px 16px;
    border: 1px solid var(--primary);
    border-radius: var(--r-sm);
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: var(--fs-xs);
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: var(--shadow-xs);
    transition: background-color .15s, border-color .15s, box-shadow .15s;
    white-space: nowrap;
}

.add-btn:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    box-shadow: var(--shadow-sm);
}

.add-btn:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

/* Link-styled button, used in the goal breakdown, hold-ups and mapping lists. */
.lk {
    border: none;
    background: none;
    font: inherit;
    font-size: var(--fs-sm);
    color: var(--primary);
    cursor: pointer;
    padding: 0;
}

.lk:hover {
    text-decoration: underline;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    background: var(--primary);
    color: #fff;
    border: 1px solid transparent;
    border-radius: var(--r-sm);
    padding: 6px 14px;
    font: inherit;
    font-size: var(--fs-sm);
    font-weight: 600;
    line-height: var(--lh-tight);
    box-shadow: var(--shadow-xs);
    cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}

.btn:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.btn:hover {
    background: var(--primary-hover);
}

.btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.btn.subtle {
    background: var(--surface);
    color: var(--ink-2);
    border: 1px solid var(--line-strong);
}

.btn.subtle:hover {
    background: var(--surface-2);
    color: var(--ink);
}

.btn.warnb {
    background: var(--amber);
}

.btn.plumb {
    background: var(--plum);
}

.btn.dangerb {
    background: var(--surface);
    color: var(--danger-ink);
    border: 1px solid var(--danger-line);
}

.btn.dangerb:hover {
    background: var(--danger-soft);
}

.btn.warnb:hover,
.btn.plumb:hover {
    filter: brightness(.94);
}

/* Compact button for toolbars (clear sort, bulk-selection actions). */
.btn.btn-sm {
    min-height: 28px;
    padding: 4px 10px;
    font-size: var(--fs-xs);
}
