﻿/* ===== TABLE RESPONSIVE CONTAINER ===== */
.table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: auto;
    display: block;
}



/* ===== MASTER TABLE STYLE ===== */
.master-table {
    width: 100%; /* IMPORTANT: do NOT use max-content */
    border-collapse: collapse;
    margin-top: 15px;
    font-family: Tahoma, sans-serif;
    table-layout: auto; /* allows horizontal scroll inside container */
}
    /* ===== TABLE CELLS ===== */
    .master-table th,
    .master-table td {
        border: 1px solid #ddd;
        padding: 8px 12px;
        text-align: left;
        vertical-align: middle;
        white-space: wrap ; /* prevents wrapping */
    }


    /* ===== HEADER ===== */
    .master-table th {
        background-color: #3498db;
        color: white;
        position: sticky;
        top: 0;
        z-index: 2;
    }


    /* ===== ROW COLORS ===== */
    .master-table tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    .master-table tr:nth-child(odd) {
        background-color: #ffffff;
    }


    /* ===== HOVER EFFECT ===== */
    .master-table tbody tr:hover {
        background-color: #eef5ff;
        transition: background-color 0.15s ease;
    }


    /* ===== ACTION COLUMN CENTER ===== */
    .master-table .action-col {
        text-align: center;
        width: 60px;
    }


    /* ===== OPTIONAL NO WRAP CLASS ===== */
    .master-table .nowrap {
        white-space: nowrap;
    }


/* ===== FORM LABEL STYLE ===== */
.form-label-app {
    font-size: 15px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 4px;
    font-family: Tahoma, sans-serif;
}


/* ===== FORM CONTROL FOCUS ===== */
.form-control:focus {
    box-shadow: none;
    border-color: #0d6efd;
}


/* ===== MASTER HEADER ===== */
.master-header {
    background-color: #1aa3b8;
    color: white;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 28px;
    font-weight: 600;
    font-family: Tahoma, sans-serif;
}


/* ===== DASHBOARD CARD ===== */
.dashboard-card {
    transition: all 0.2s ease;
    cursor: pointer;
}

    .dashboard-card:hover {
        transform: scale(1.05);
        background-color: #f1f9ff;
    }


/* ===== LOGIN CARD ===== */
.login-card {
    width: 360px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

    .login-card .form-control {
        border-radius: 8px;
    }


/* ===== MODAL VIEW FIX ===== */
.modal-body label {
    font-size: 14px;
    margin-bottom: 2px;
}

.modal-body div {
    font-size: 15px;
}


/* ===== SCROLLBAR STYLING (OPTIONAL PROFESSIONAL LOOK) ===== */
.table-responsive::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background-color: #c1c1c1;
    border-radius: 4px;
}

    .table-responsive::-webkit-scrollbar-thumb:hover {
        background-color: #a8a8a8;
    }
