/* Workplace portal shared styles — ported from the UI demo's admin.css.
   Some classes serve views that are reskinned in later steps (payroll
   progress phases, key-value lists, validation tables). */

.admin-section-card {
    --bs-border-opacity: 0.2;
}

.admin-section-header {
    padding: 0.75rem 1.25rem;
    background-color: #fff;
    border-bottom: 1px solid rgba(var(--bs-secondary-rgb), 0.2);
}

.admin-summary-divider {
    border-inline-start: 1px solid rgba(var(--bs-secondary-rgb), 0.2);
}

.admin-summary-status {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    background-color: var(--admin-progress-green, #198754);
    border-radius: 0.375rem;
}

.admin-panel-divider {
    border-inline-start: 1px solid rgba(var(--bs-secondary-rgb), 0.2);
}

.admin-month-progress {
    --admin-progress-neutral-border: rgba(var(--bs-secondary-rgb), 0.35);
    --admin-progress-neutral-muted: #6c757d;
    --admin-progress-green: #198754;
    --admin-progress-green-border: rgba(25, 135, 84, 0.35);
    --admin-progress-green-fill: rgba(25, 135, 84, 0.12);
    --admin-progress-callout-height: 2.625rem;
    --admin-progress-leader: 4.125rem;
    position: relative;
    padding-top: var(--admin-progress-leader);
}

.admin-progress-callouts-row {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: var(--admin-progress-leader);
}

.admin-progress-callout-wrap {
    position: absolute;
    top: 0;
    transform: translateX(50%);
    text-align: center;
}

.admin-progress-callout-wrap.is-pos-start {
    right: 0;
    transform: none;
    text-align: start;
}

.admin-progress-callout-wrap.is-pos-close {
    right: 25%;
}

.admin-progress-callout-wrap.is-pos-lock {
    right: 50%;
}

.admin-progress-callout-wrap.is-pos-completed {
    right: 100%;
    transform: translateX(100%);
    text-align: end;
}

.admin-progress-callout {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    height: var(--admin-progress-callout-height);
    padding: 0.375rem 0.625rem;
    border: 1px solid var(--admin-progress-neutral-border);
    border-radius: 0.375rem;
    background-color: #fff;
    font-size: 0.8125rem;
    line-height: 1.35;
    white-space: nowrap;
}

.admin-progress-callout-wrap.is-complete .admin-progress-callout {
    background-color: var(--admin-progress-green-fill);
    border-color: var(--admin-progress-green-border);
}

.admin-progress-callout-line {
    display: block;
    width: 1px;
    height: calc(var(--admin-progress-leader) - var(--admin-progress-callout-height));
    margin-top: 0;
    margin-inline: auto;
    background-color: var(--admin-progress-neutral-border);
}

.admin-progress-callout-wrap.is-pos-start .admin-progress-callout-line {
    margin-inline-start: 0;
    margin-inline-end: auto;
}

.admin-progress-callout-wrap.is-pos-completed .admin-progress-callout-line {
    margin-inline-start: auto;
    margin-inline-end: 0;
}

.admin-progress-callout-title {
    display: block;
    font-size: 0.8125rem;
    color: var(--bs-body-color);
}

.admin-progress-callout-date {
    display: block;
    margin-top: 0.125rem;
    font-size: 0.75rem;
    color: var(--admin-progress-neutral-muted);
}

.admin-progress-phases-row {
    display: flex;
    border: 1px solid var(--admin-progress-neutral-border);
    border-radius: 0.375rem;
    overflow: visible;
}

.admin-progress-phase {
    position: relative;
    flex: 1;
    min-width: 0;
    padding: 1rem 0.75rem;
    border-inline-start: 1px solid var(--admin-progress-neutral-border);
    background-color: #fff;
    text-align: center;
}

.admin-progress-phases-row .admin-progress-phase:first-child {
    border-inline-start: 0;
    border-start-start-radius: 0.375rem;
    border-end-start-radius: 0.375rem;
}

.admin-progress-phases-row .admin-progress-phase:last-child {
    border-start-end-radius: 0.375rem;
    border-end-end-radius: 0.375rem;
}

.admin-progress-phase-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    font-size: 1rem;
    line-height: 1.35;
    color: var(--bs-body-color);
}

.admin-progress-phase-icon {
    display: none;
    flex-shrink: 0;
    font-size: 1.25rem;
    line-height: 1;
}

.admin-progress-phase.is-complete .admin-progress-phase-icon-check {
    display: inline-block;
    color: var(--admin-progress-green);
}

.admin-progress-phase.is-active .admin-progress-phase-icon-arrow {
    display: inline-block;
    color: var(--admin-progress-green);
}

.admin-progress-phase.is-complete {
    background-color: var(--admin-progress-green-fill);
}

.admin-progress-phase.is-active {
    z-index: 1;
}

.admin-progress-phase.is-active::before {
    content: "";
    position: absolute;
    inset: -2px;
    border: 2px solid var(--admin-progress-green);
    border-radius: calc(0.375rem + 2px);
    pointer-events: none;
}

.admin-progress-phases-row .admin-progress-phase:first-child.is-active::before {
    border-start-start-radius: calc(0.375rem + 2px);
    border-end-start-radius: calc(0.375rem + 2px);
}

.admin-progress-phases-row .admin-progress-phase:last-child.is-active::before {
    border-start-end-radius: calc(0.375rem + 2px);
    border-end-end-radius: calc(0.375rem + 2px);
}

.admin-progress-phase.is-active .admin-progress-phase-label {
    font-weight: 700;
}

/* Guide vertical timeline — the progress bar's phase language (green tokens,
   circle markers) turned vertical for content-heavy per-phase explanations. */
.admin-guide-timeline {
    --admin-progress-green: #198754;
    --admin-progress-green-border: rgba(25, 135, 84, 0.35);
    --admin-progress-green-fill: rgba(25, 135, 84, 0.12);
    --admin-guide-marker-size: 2.25rem;
    display: flex;
    flex-direction: column;
}

.admin-guide-step {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1.75rem;
}

.admin-guide-step:last-child {
    padding-bottom: 0;
}

/* Connector line between markers */
.admin-guide-step::before {
    content: "";
    position: absolute;
    top: calc(var(--admin-guide-marker-size) + 0.25rem);
    bottom: 0.25rem;
    inset-inline-start: calc(var(--admin-guide-marker-size) / 2 - 0.5px);
    width: 1px;
    background-color: rgba(var(--bs-secondary-rgb), 0.35);
}

.admin-guide-step:last-child::before {
    display: none;
}

.admin-guide-step-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--admin-guide-marker-size);
    height: var(--admin-guide-marker-size);
    border-radius: 50%;
    border: 1px solid var(--admin-progress-green-border);
    background-color: var(--admin-progress-green-fill);
    color: var(--admin-progress-green);
    font-weight: 700;
    flex-shrink: 0;
}

.admin-guide-step-content {
    flex: 1;
    min-width: 0;
}

/* Responsive column dividers used by the payroll demo (missing from the
   demo's admin.css — authored here). */
@media (min-width: 768px) {
    .admin-col-divider-md {
        border-inline-start: 1px solid rgba(var(--bs-secondary-rgb), 0.2);
    }
}

@media (min-width: 992px) {
    .admin-col-divider-lg {
        border-inline-start: 1px solid rgba(var(--bs-secondary-rgb), 0.2);
    }
}

.admin-kv-list {
    display: flex;
    flex-direction: column;
}

.admin-kv-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(var(--bs-secondary-rgb), 0.15);
}

.admin-kv-row:last-child {
    border-bottom: 0;
}

.admin-kv-key {
    flex: 0 1 45%;
    font-weight: 400;
}

.admin-kv-value {
    flex: 1 1 0;
    min-width: 0;
    font-weight: 700;
    text-align: end;
}

.admin-kv-ltr {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
    max-width: 100%;
    text-align: left;
}

.admin-stat-label {
    font-size: 0.875rem;
    font-weight: 400;
}

.admin-stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.admin-task-icon {
    flex-shrink: 0;
    font-size: 1.25rem;
    line-height: 1;
}

.admin-task-icon-done {
    color: #6c757d;
}

.admin-task-icon-pending {
    color: #adb5bd;
}

.admin-project-list {
    max-height: 18rem;
    overflow-y: auto;
}

.admin-validation-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
}

.admin-validation-stats dt {
    font-weight: 400;
    margin-bottom: 0;
}

.admin-validation-stats dd {
    font-weight: 700;
    margin-bottom: 0;
}

.admin-validation-summary-table th,
.admin-validation-summary-table td {
    font-size: 1rem;
}