/* ══════════════════════════════════════════════
   LIST VIEWS - Shared styles for all list pages
   ══════════════════════════════════════════════ */

/* ── Header ── */
.lv-header {
    padding: 0;
}
.lv-title {
    font-size: 28px;
    font-weight: 400;
    color: #1a1a1a;
    font-family: 'Segoe UI', nobel, -apple-system, BlinkMacSystemFont, sans-serif;
}
.lv-btn-new {
    background-color: #030213 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 28px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: opacity 0.2s;
}
.lv-btn-new:hover {
    opacity: 0.85;
}

/* ── Filters Card ── */
.lv-filters-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.08);
    padding: 24px;
}
.lv-filters-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
.lv-select {
    width: 100%;
    padding: 10px 36px 10px 14px !important;
    border: 1px solid #d0d0d0 !important;
    border-bottom: 1px solid #d0d0d0 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    color: #1a1a1a !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 14px 10px !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    cursor: pointer;
}
.lv-select:focus {
    border-color: #030213 !important;
    border-bottom-color: #030213 !important;
    box-shadow: 0 0 0 1px #030213;
}
.lv-select option,
.lv-select-sm option {
    background-color: #fff !important;
    color: #1a1a1a !important;
}

/* ── Search ── */
.lv-search-box {
    position: relative;
}
.lv-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}
.lv-search-input {
    width: 100%;
    padding: 10px 14px 10px 40px !important;
    border: 1px solid #d0d0d0 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    color: #1a1a1a !important;
    background-color: #fff !important;
    outline: none;
}
.lv-search-input:focus {
    border-color: #030213 !important;
    box-shadow: 0 0 0 1px #030213;
}
.lv-search-input::placeholder {
    color: #999;
}

/* ── Table Card ── */
.lv-table-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.08);
    overflow: hidden;
}
.lv-table {
    margin-bottom: 0 !important;
}
.lv-table-head th {
    background-color: #d1d5db !important;
    color: #1a1a1a !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    font-style: italic;
    padding: 14px 20px !important;
    border: none !important;
    white-space: nowrap;
}
.lv-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
}
.lv-table tbody tr:nth-child(odd) {
    background-color: #fafafa !important;
}
.lv-table tbody tr:nth-child(even) {
    background-color: #fff !important;
}
.lv-table tbody td {
    padding: 16px 20px !important;
    font-size: 14px;
    color: #1a1a1a;
    vertical-align: middle;
}

/* ── Toggle Switch ── */
.lv-table .form-check-input:checked {
    background-color: #030213 !important;
    border-color: #030213 !important;
}
.lv-table .form-switch .form-check-input {
    width: 44px;
    height: 24px;
    cursor: pointer;
}

/* ── Action Icons ── */
.lv-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.lv-action-btn {
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: #666;
    border-radius: 4px;
    transition: background-color 0.15s, color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lv-action-btn:hover {
    background-color: #f0f0f0;
    color: #1a1a1a;
}
.lv-action-btn svg {
    width: 18px;
    height: 18px;
}
.lv-table .icon a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    transition: background-color 0.15s;
    color: #555 !important;
    text-decoration: none;
}
.lv-table .icon a:hover {
    background-color: #f0f0f0;
    color: #1a1a1a !important;
}
.lv-table .icon i {
    font-size: 20px;
    margin-right: 0;
    color: inherit;
}

/* ── Pagination ── */
.lv-pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-top: 1px solid #f0f0f0;
}
.lv-records-selector {
    gap: 8px;
    font-size: 14px;
    color: #666;
}
.lv-select-sm {
    padding: 4px 28px 4px 10px !important;
    border: 1px solid #d0d0d0 !important;
    border-bottom: 1px solid #d0d0d0 !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px 9px;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
}

/* ══════════════════════════════════════════════
   STEPPER - Work group create/edit wizard
   ══════════════════════════════════════════════ */
.st-wrapper {
    max-width: 900px;
    margin: 0 auto;
}
.st-breadcrumb {
    font-size: 14px;
    color: #888;
    margin-bottom: 16px;
}
.st-breadcrumb a {
    color: #888;
    text-decoration: none;
}
.st-breadcrumb a:hover {
    color: #1a1a1a;
}
.st-breadcrumb span {
    color: #1a1a1a;
    font-weight: 500;
}

/* Stepper bar */
.st-steps {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
    position: relative;
}
.st-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 1;
    cursor: pointer;
}
.st-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    border: 2px solid #d0d0d0;
    background: #fff;
    color: #999;
    transition: all 0.2s;
}
.st-step.active .st-step-circle {
    background: #030213;
    border-color: #030213;
    color: #fff;
}
.st-step.completed .st-step-circle {
    background: #166534;
    border-color: #166534;
    color: #fff;
}
.st-step-label {
    font-size: 11px;
    text-align: center;
    margin-top: 6px;
    max-width: 80px;
    line-height: 1.3;
    color: #999;
}
.st-step.active .st-step-label {
    color: #030213;
    font-weight: 500;
}
.st-step.completed .st-step-label {
    color: #166534;
    font-weight: 500;
}
.st-step-line {
    position: absolute;
    top: 16px;
    left: calc(50% + 20px);
    right: calc(-50% + 20px);
    height: 2px;
    background: #d0d0d0;
    z-index: 0;
}
.st-step.completed .st-step-line {
    background: #166534;
}

/* Step content card */
.st-content {
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.08);
    padding: 32px;
    margin-bottom: 24px;
}
.st-content h2 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 8px;
}
.st-content .st-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
}
.st-content label.st-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #1a1a1a;
}
.st-content label.st-label .required {
    color: #dc2626;
}
.st-content .st-input {
    width: 100%;
    padding: 10px 14px !important;
    border: 1px solid #d0d0d0 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    background: #fff !important;
    outline: none;
}
.st-content .st-input:focus {
    border-color: #030213 !important;
    box-shadow: 0 0 0 1px #030213;
}
.st-content .st-hint {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}
.st-content .st-error {
    font-size: 12px;
    color: #dc2626;
    margin-top: 4px;
}
.st-content .st-counter {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
}

/* Table inside step */
.st-table-wrapper {
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    overflow: hidden;
}
.st-table-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f9f9f9;
    border-bottom: 1px solid #f0f0f0;
}
.st-table-toolbar .lv-search-box {
    flex: 1;
}
.st-select-all {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
    white-space: nowrap;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}
.st-selected-count {
    font-size: 12px;
    color: #888;
    margin-top: 8px;
}

/* Navigation footer */
.st-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}
.st-nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
.st-nav .st-step-indicator {
    font-size: 14px;
    color: #888;
}
.st-btn-cancel {
    padding: 10px 24px !important;
    border: 1px solid #d0d0d0 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #333 !important;
    font-size: 14px !important;
    cursor: pointer;
    transition: background 0.15s;
}
.st-btn-cancel:hover {
    background: #f5f5f5 !important;
}
.st-btn-next {
    padding: 10px 24px !important;
    border: none !important;
    border-radius: 8px !important;
    background: #030213 !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer;
    transition: opacity 0.15s;
}
.st-btn-next:hover {
    opacity: 0.85;
}
.st-btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Summary step */
.st-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}
.st-summary-card {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 16px;
}
.st-summary-card .st-summary-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}
.st-summary-card .st-summary-value {
    font-size: 14px;
    font-weight: 500;
}
.st-summary-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
    max-height: 120px;
    overflow-y: auto;
}
.st-summary-tag {
    display: inline-block;
    font-size: 12px;
    padding: 4px 8px;
    background: #030213;
    color: #fff;
    border-radius: 4px;
}

/* ── Font override ── */
.navbar-menu,
.navbar-menu .navbar-nav .nav-link,
.navbar-menu .navbar-nav .nav-sm .nav-link,
input, select, textarea, button, table, th, td, label {
    font-family: 'Segoe UI', nobel, -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* ── Responsive ── */
@media (max-width: 992px) {
    .lv-filters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .lv-filters-grid {
        grid-template-columns: 1fr;
    }
}
