/* site-18-supervisor-directives.css: page "Directivas" of the supervisor (Management/SupervisorDirectives)
   and its card in the supervisor's dashboard. */

/* ===== Tabs by state ===== */
.sd-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
}

.sd-tab {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid #d5dce6;
    border-radius: 999px;
    background: #fff;
    color: #334155;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

    .sd-tab:hover {
        border-color: #9fb2cf;
        color: #1e3a6b;
    }

    .sd-tab.is-active {
        border-color: #1e3a6b;
        background: #1e3a6b;
        color: #fff;
    }

.sd-tab-count {
    min-width: 26px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e7eef8;
    color: #1e3a6b;
    font-weight: 700;
    text-align: center;
}

.sd-tab.is-active .sd-tab-count {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

/* ===== Cards ===== */
.sd-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sd-card {
    overflow: hidden;
    border: 1px solid #dfe5ee;
    border-radius: 16px;
    background: #fff;
}

.sd-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-bottom: 1px solid #eef2f7;
}

.sd-card-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.sd-code {
    color: #166534;
    font-family: "Roboto Mono", ui-monospace, monospace;
    font-size: 1.1rem;
    font-weight: 700;
}

.sd-cover {
    color: #0f172a;
    font-size: 1.1rem;
    font-weight: 700;
}

.sd-operator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #5b6778;
    font-size: 0.9rem;
}

.sd-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 500;
}

.sd-progress-bar {
    width: 140px;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e7ecf3;
}

    .sd-progress-bar > div {
        height: 100%;
        border-radius: 999px;
        background: #2f6fb5;
    }

.sd-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 14px 22px 4px;
    color: #475569;
    font-size: 0.9rem;
}

.sd-origin {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sd-origin--prosecutor {
    background: #e6eefc;
    color: #1d4ed8;
}

.sd-origin--supervisor {
    background: #efe7fb;
    color: #6d28d9;
}

.sd-text {
    margin: 0;
    padding: 12px 22px 6px;
    color: #0f172a;
    white-space: pre-line;
}

/* --- Points of the directive --- */
.sd-items {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 10px 22px 6px;
    list-style: none;
}

.sd-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid #f0f3f8;
}

.sd-item-mark {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 2px solid #e0a35c;
    border-radius: 50%;
    color: #9a4a12;
    font-size: 0.8rem;
    font-weight: 700;
}

.sd-item.is-done .sd-item-mark {
    border-color: #dcfce7;
    background: #dcfce7;
    color: #15803d;
}

.sd-item-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.sd-item-text {
    color: #0f172a;
    font-size: 0.95rem;
    line-height: 1.45;
}

.sd-item.is-done .sd-item-text {
    color: #64748b;
}

.sd-item-meta {
    color: #9a4a12;
    font-size: 0.82rem;
    font-weight: 500;
}

.sd-item.is-done .sd-item-meta {
    color: #15803d;
    font-weight: 400;
}

.sd-card-foot {
    display: flex;
    justify-content: flex-end;
    padding: 10px 22px 18px;
}

.sd-open {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 10px;
    background: #e7eef8;
    color: #1e3a6b;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
}

    .sd-open:hover {
        background: #1e3a6b;
        color: #fff;
    }

.sd-footer {
    margin-top: 14px;
}

/* ===== Card of the dashboard ===== */
.action-card--directives {
    --card-tint: 154, 74, 18;
    --card-image: url("../images/cards/acta.jpg");
    --card-image-filter: brightness(0.50) contrast(1.05);
}

.action-card-badge {
    position: absolute;
    top: 16px;
    right: 14px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #fff;
    color: rgb(var(--card-tint));
    font-size: 0.8rem;
    font-weight: 700;
}
