.form-card {
    background: #ffffff;
    border: 1px solid #e2e4e7;
    border-radius: 6px;
    padding: 24px;
    margin-bottom: 24px;
    max-width: 620px;
}

    .form-card h3 {
        font-family: "Bahnschrift", "Arial Narrow", sans-serif;
        font-weight: 600;
        font-size: 20px;
        letter-spacing: 0.02em;
        color: #1a1d1f;
        margin: 0 0 20px;
    }

.form-field {
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .form-field label {
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 0.03em;
        color: #5a6069;
    }

    .form-field input,
    .form-field select {
        border: 1px solid #d7dade;
        border-radius: 4px;
        padding: 8px 10px;
        font-size: 14px;
        font-family: inherit;
        color: #1a1d1f;
        background: #fff;
        transition: border-color 0.12s, box-shadow 0.12s;
    }

        .form-field input:focus,
        .form-field select:focus {
            outline: none;
            border-color: var(--brand-accent);
            box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-accent) 18%, transparent);
        }

.btn-primary {
    background: var(--brand-accent);
    color: var(--brand-text-on-accent);
    border: none;
    border-radius: 4px;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.12s;
}

    .btn-primary:hover {
        opacity: 0.88;
    }

.btn-secondary {
    background: #fff;
    color: #5a6069;
    border: 1px solid #d7dade;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: border-color 0.12s, color 0.12s;
}

    .btn-secondary:hover {
        border-color: #b6bac0;
        color: #1a1d1f;
    }

.btn-danger {
    background: var(--brand-accent);
    color: var(--brand-text-on-accent);
    border: none;
    border-radius: 4px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.12s;
}

    .btn-danger:hover {
        opacity: 0.88;
    }

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 6px;
    overflow: hidden;
    font-size: 14px;
}

    .data-table thead th {
        text-align: left;
        padding: 10px 14px;
        background: #f7f8f9;
        border-bottom: 1px solid #e2e4e7;
        font-size: 11px;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: #5a6069;
        font-weight: 600;
    }

    .data-table tbody td {
        padding: 10px 14px;
        border-bottom: 1px solid #eef0f1;
        color: #1a1d1f;
    }

    .data-table tbody tr:last-child td {
        border-bottom: none;
    }

    .data-table tbody tr:hover {
        background: #fafbfb;
    }

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.badge-pendente {
    background: #eef0f1;
    color: #5a6069;
}

.badge-parcial {
    background: #fdf1de;
    color: #a3670c;
}

.badge-cortado {
    background: #e6f4ea;
    color: #1e7d34;
}

.badge-bloqueada {
    background: #fce8e6;
    color: #c0392b;
}

.badge-liberada {
    background: #e6f4ea;
    color: #1e7d34;
}
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

    .page-header h3 {
        margin: 0;
    }

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 23, 26, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-card {
    background: #ffffff;
    border-radius: 6px;
    padding: 24px;
    width: 100%;
    max-width: 460px;
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

    .modal-card h3 {
        font-family: "Bahnschrift", "Arial Narrow", sans-serif;
        font-weight: 600;
        font-size: 20px;
        color: #1a1d1f;
        margin: 0 0 20px;
    }

.modal-actions {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.btn-icon {
    background: none;
    border: none;
    color: #5a6069;
    cursor: pointer;
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.12s, color 0.12s;
}

    .btn-icon:hover {
        background: #eef0f1;
        color: #1a1d1f;
    }

.linha-bloqueada {
    background: #fdf5f4;
}

.ordem-num {
    font-family: Consolas, "SF Mono", monospace;
    font-weight: 600;
    color: #5a6069;
}

.detail-header {
    background: #1a1d1f;
    border-radius: 6px;
    margin-bottom: 24px;
    border-left: 3px solid var(--brand-accent);
    padding: 20px 24px;
}

.detail-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.detail-header h3 {
    color: #ecedee;
    margin: 0;
}

.detail-fields {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px solid #2b3036;
}

.detail-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.detail-field-label {
    font-family: Consolas, "SF Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6d7278;
}

.detail-field-value {
    font-size: 14px;
    color: #ecedee;
}

.btn-back {
    display: inline-block;
    color: var(--brand-accent);
    font-size: 13px;
    text-decoration: none;
    margin-bottom: 12px;
}

.btn-outline {
    background: #fff;
    color: var(--brand-accent);
    border: 1.5px solid var(--brand-accent);
    border-radius: 4px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.12s;
}

    .btn-outline:hover {
        background: color-mix(in srgb, var(--brand-accent) 10%, transparent);
    }

.btn-ordem {
    background: var(--brand-accent);
    color: var(--brand-text-on-accent);
    border: none;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.12s;
}

    .btn-ordem:hover:not(:disabled) {
        opacity: 0.88;
    }

    .btn-ordem:disabled {
        background: #d7dade;
        color: #fff;
        cursor: not-allowed;
    }

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    font-size: 13px;
    color: #5a6069;
}

.pagination-info {
    color: #8b9096;
}

.pagination-controls {
    display: flex;
    gap: 6px;
    align-items: center;
}

.pagination-btn {
    background: #fff;
    border: 1px solid #d7dade;
    border-radius: 4px;
    padding: 5px 12px;
    font-size: 13px;
    cursor: pointer;
    color: #1a1d1f;
    transition: border-color 0.12s;
}

    .pagination-btn:hover:not(:disabled) {
        border-color: var(--brand-accent);
    }

    .pagination-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }

.pagination-current {
    font-weight: 600;
    color: #1a1d1f;
    padding: 0 4px;
}

.app-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2000;
}

.app-toast {
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    animation: app-toast-in 0.2s ease-out;
    max-width: 340px;
}

.app-toast-sucesso {
    background: #1e7d34;
    color: #fff;
}

.app-toast-erro {
    background: #c0392b;
    color: #fff;
}

@keyframes app-toast-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-toast {
        animation: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .toast {
        animation: none;
    }
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.kpi-card {
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 6px;
    padding: 16px 18px;
}

.kpi-label {
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8b9096;
    margin: 0 0 6px;
}

.kpi-value {
    font-family: "Bahnschrift", "Arial Narrow", sans-serif;
    font-weight: 600;
    font-size: 24px;
    color: #1a1d1f;
    margin: 0;
}

    .kpi-value.accent {
        color: var(--brand-accent);
    }

.section-title {
    font-family: "Bahnschrift", "Arial Narrow", sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #1a1d1f;
    margin: 28px 0 12px;
}

.filtro-bar {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.dash-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.dash-kpi-card {
    background: #1a1d1f;
    border-radius: 8px;
    padding: 20px 22px;
    border-left: 4px solid var(--brand-accent);
}

.dash-kpi-label {
    font-family: Consolas, "SF Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8b9096;
    margin: 0 0 10px;
}

.dash-kpi-value {
    font-family: "Bahnschrift", "Arial Narrow", sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: #ecedee;
    margin: 0;
    line-height: 1;
}

    .dash-kpi-value.accent {
        color: var(--brand-accent);
    }

    .dash-kpi-value.ok {
        color: #5fae6b;
    }

    .dash-kpi-value.warn {
        color: #e0a63b;
    }

.dash-section {
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 8px;
    padding: 20px 22px;
    margin-bottom: 24px;
}

.dash-section-title {
    font-family: "Bahnschrift", "Arial Narrow", sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #1a1d1f;
    margin: 0 0 16px;
}

.dash-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.dash-bar-label {
    width: 110px;
    font-size: 13px;
    font-weight: 600;
    color: #1a1d1f;
    flex-shrink: 0;
}

.dash-bar-track {
    flex: 1;
    height: 22px;
    background: #eef0f1;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
}

.dash-bar-segment {
    height: 100%;
}

.dash-bar-producao {
    background: #1e7d34;
}

.dash-bar-setup {
    background: #e0a63b;
}

.dash-bar-parada {
    background: #c0392b;
}

.dash-bar-ocioso {
    background: #d7dade;
}

.dash-legend {
    display: flex;
    gap: 20px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.dash-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #5a6069;
}

.dash-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.status-parada-ativa {
    background: #fdf5f4;
    border: 1px solid #f0c4bd;
    border-radius: 6px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.status-parada-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.status-parada-label {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #c0392b;
    font-weight: 700;
}

.status-parada-motivo {
    font-size: 14px;
    color: #1a1d1f;
}

.btn-setup {
    background: #fff;
    color: var(--brand-accent);
    border: 1.5px solid var(--brand-accent);
    border-radius: 4px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.12s;
}

    .btn-setup:hover {
        background: color-mix(in srgb, var(--brand-accent) 10%, transparent);
    }

.apont-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    border-bottom: 1px solid #e2e4e7;
}

.apont-tab {
    background: none;
    border: none;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #8b9096;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

    .apont-tab.ativa {
        color: var(--brand-accent);
        border-bottom-color: var(--brand-accent);
    }

    .apont-tab:hover:not(.ativa) {
        color: #1a1d1f;
    }