/* ====================================================================
   SGI WORKFLOW - MOBILE UX & TOUCH ENHANCEMENTS
   ==================================================================== */
   
.desktop_view{
	display:none;
}

@media (max-width: 767.98px) {

    /* --- 1. TOUCH-FRIENDLY TARGET SIZES (Thumb-First) --- */
    .btn, 
    .form-control, 
    .form-select,
    .input-group-text {
        min-height: 48px !important;
        font-size: 1rem !important;
    }

    /* Give touch targets ample spacing */
    .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
	
	/*---anchor link to edit estágio operacional*/
	.desktop_view{
		display:block;
	}

    /* --- 2. RESPONSIVE CARD VIEW FOR TABLES --- */
    .table-mobile-cards thead,
    .mobile-dashboard-table thead {
        display: none !important;
    }

    .table-mobile-cards, 
    .table-mobile-cards tbody, 
    .table-mobile-cards tr, 
    .table-mobile-cards td,
    .mobile-dashboard-table,
    .mobile-dashboard-table tbody,
    .mobile-dashboard-table tr,
    .mobile-dashboard-table td {
        display: block !important;
        width: 100% !important;
    }

    .table-mobile-cards tr,
    .mobile-dashboard-table tr {
        margin-bottom: 1rem !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 0.85rem !important;
        padding: 0.85rem 1rem !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04) !important;
    }

    .table-mobile-cards td,
    .mobile-dashboard-table td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        text-align: right !important;
        padding: 0.6rem 0 !important;
        border-bottom: 1px dashed #e2e8f0 !important;
        font-size: 0.95rem !important;
    }

    .table-mobile-cards td:last-child,
    .mobile-dashboard-table td:last-child {
        border-bottom: none !important;
        padding-top: 0.75rem !important;
    }

    /* Renders column header title via data-label */
    .table-mobile-cards td::before,
    .mobile-dashboard-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #64748b;
        text-align: left;
        padding-right: 1rem;
        font-size: 0.85rem;
        text-transform: uppercase;
    }

    /* Full-width action button inside card */
    .mobile-dashboard-table td[data-label="Ação"] .btn {
        width: 100% !important;
        font-weight: 700 !important;
    }

    /* --- 3. DASHBOARD KPI CARDS (STAKED & HIGH CONTRAST) --- */
    .dashboard-header {
        font-size: 1.65rem !important;
        font-weight: 800 !important;
    }

    .kpi-card {
        border-radius: 18px !important;
        padding: 1.25rem !important;
        color: #ffffff !important;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08) !important;
        border: none !important;
        margin-bottom: 0.75rem !important;
    }

    .kpi-card .kpi-title {
        font-size: 0.85rem !important;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        opacity: 0.9;
    }

    .kpi-card .kpi-value {
        font-size: 2.5rem !important;
        font-weight: 800 !important;
        line-height: 1.1;
    }

    .kpi-card .progress {
        height: 8px !important;
        background-color: rgba(255, 255, 255, 0.3) !important;
        border-radius: 10px;
        margin-top: 0.75rem;
    }

    /* --- 4. STICKY ACTION FOOTER FOR MOBILE --- */
    .mobile-sticky-actions {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #ffffff;
        padding: 0.75rem 1rem;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
        z-index: 1040;
    }

    /* Prevents bottom page content from being covered by sticky footers */
    body {
        padding-bottom: 85px !important;
    }
	
}
