.painel-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    z-index: 10000;
}

.painel-modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    width: 95%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    font-family: system-ui, sans-serif;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    height: auto;
}

.painel-modal-content h2 {
    margin-top: 0;
}

.btn-fechar-painel {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
}

#painel-atalhos .painel-modal-content {
    max-width: 700px;
    width: 110%;
    margin-top: 30vh;
    margin-bottom: 3vh;
}

#painel-central-oee .painel-modal-content {
    max-width: 1600px;
    margin-top: 3vh;
    margin-bottom: 3vh;
}
#painel-central-oee {
    z-index: 10001;
}

.atalhos-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.shortcut-card {
    width: 150px;
    height: 150px;
    background: #e8f0fe;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.shortcut-card:hover {
    transform: scale(1.05);
}

.shortcut-card a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.shortcut-card a, .shortcut-card a:hover {
    text-decoration: none !important;
    border: none;
    outline: none;
    box-shadow: none;
}

.card-icon-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.shortcut-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 150px;
}

.shortcut-title-external {
    font-weight: bold;
    color: #333;
    font-size: 13px;
    margin-bottom: 8px;
    text-align: center;
    width: 100%;
}

.btn-deletar-atalho {
    position: absolute;
    top: 2px;
    right: 4px;
    background: none;
    border: none;
    color: red;
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
}

#botao-abrir-form {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background-color: transparent;
    color: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    z-index: 10;
}

#botao-abrir-form:hover {
    transform: scale(1.1);
}

#modal-form {
    display: none;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

#modal-form h3 { margin-top: 0; }
#modal-form .form-group { margin-bottom: 10px; }
#modal-form label { display: block; margin-bottom: 5px; }
#modal-form input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}
#modal-form .form-actions { text-align: right; }
#modal-form .form-actions button {
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}
#modal-form #cancelar-form { background: #6c757d; margin-right: 10px; }
#modal-form button[type="submit"] { background: #28a745; }

.botao-flutuante {
    position: fixed;
    width: 160px;
    height: 160px;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #a3daba;
    cursor: pointer;
}
.botao-flutuante:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}
.botao-flutuante img { margin-bottom: 10px; }
.botao-flutuante span {
    color: #000000;
    font-size: 12px;
    text-transform: uppercase;
}

#botao-gerenciar-atalhos {
    bottom: 30px;
    right: 30px;
}
#botao-gestao-linhas {
    bottom: 210px;
    right: 30px;
}

.atalhos-container-central-oee {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    padding: 10px;
    min-height: 300px;
}

.oee-card {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}
.oee-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.oee-card a {
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    height: 100%;
    flex-grow: 1;
}
.oee-card h3 {
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 10px;
    color: #0056b3;
}
.oee-card-gauge {
    width: 100%;
    height: 100px;
    margin-bottom: 15px;
}
.oee-card-metrics {
    margin-top: auto;
}
.oee-card-metric-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    padding: 4px 0;
    border-bottom: 1px solid #e9ecef;
}
.oee-card-metric-row:last-child {
    border-bottom: none;
}
.oee-card-metric-row span { color: #6c757d; }
.oee-card-metric-row strong { color: #212529; }

/* Status Badges */
.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
    margin-bottom: 15px;
    display: inline-block;
    color: #fff;
}
.status-em-producao { background-color: #28a745; }
.status-parada-detectada { background-color: #ffc107; color: #212529; }
.status-concluida { background-color: #007bff; }
.status-aguardando-op { background-color: #6c757d; }