Files
IncomeTaxSystem/static/css/mat_credit.css

124 lines
2.3 KiB
CSS

/* ===== CONTAINER ===== */
.container {
max-width: 1200px;
margin: 30px auto;
padding: 25px;
background: #ffffff;
border-radius: 10px;
box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}
/* ===== TABLE WRAPPER (FOR SCROLL) ===== */
.table-wrapper {
width: 100%;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}
/* ===== TABLE ===== */
#matTable {
width: 100%;
min-width: 900px;
/* IMPORTANT for horizontal scroll */
border-collapse: collapse;
font-size: 14px;
text-align: center;
}
/* ===== HEADER ===== */
#matTable thead th {
background: linear-gradient(135deg, #0d6efd, #0a58ca);
color: #ffffff;
padding: 12px 8px;
border: 1px solid #0a58ca;
font-weight: 600;
white-space: nowrap;
}
/* ===== BODY CELLS ===== */
#matTable tbody td {
padding: 8px;
border: 1px solid #dcdcdc;
background-color: #ffffff;
}
/* ===== FY COLUMN ===== */
#matTable tbody td:first-child {
font-weight: 600;
background-color: #f5f8ff;
}
/* ===== INPUT FIELDS ===== */
#matTable input {
width: 100%;
padding: 6px;
border: 1px solid #cfd8dc;
border-radius: 4px;
font-size: 13px;
text-align: right;
box-sizing: border-box;
}
#matTable input:focus {
border-color: #0d6efd;
box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.15);
outline: none;
}
/* ===== ACTION BUTTON ===== */
#matTable button {
background-color: #198754;
border: none;
color: white;
padding: 6px 14px;
border-radius: 4px;
cursor: pointer;
font-size: 13px;
}
#matTable button:hover {
background-color: #157347;
}
/* ===== ROW STATES ===== */
#matTable tbody tr:hover {
background-color: #f1f6ff;
}
.input-error {
border-color: #dc3545 !important;
background-color: #fff5f5;
}
.row-saved {
background-color: #e9f7ef !important;
}
/* ===== MOBILE RESPONSIVE (TABLE FORMAT + INTERNAL SCROLL) ===== */
@media (max-width: 768px) {
.container {
margin: 10px;
padding: 15px;
}
.table-wrapper {
overflow-x: auto;
border-radius: 8px;
}
#matTable {
font-size: 12px;
min-width: 800px;
/* keeps table structure */
}
#matTable input {
font-size: 12px;
}
#matTable button {
font-size: 12px;
padding: 5px 10px;
}
}