pesapakawan/wwwroot/website/css/datatables-responsive.css

181 lines
3.1 KiB
CSS

/* #pengangkutanTable {
width: 100% !important;
table-layout: fixed;
}
#pengangkutanTable thead th,
#pengangkutanTable tbody td {
display: table-cell !important;
vertical-align: top;
word-wrap: break-word;
word-break: break-word;
white-space: normal;
overflow-wrap: break-word;
}
.dtr-details {
display: none !important;
}
.dtr-control {
display: none !important;
}
.child {
display: none !important;
}
#pengangkutanTable tbody tr:nth-child(even) {
background-color: #f9fafb;
}
#pengangkutanTable tbody tr:hover {
background-color: #e0f2fe !important;
transition: background-color 0.2s ease;
transform: translateY(-1px);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.dt-paging .dt-paging-button {
display: inline-block !important;
margin: 0 2px;
}
@media (max-width: 768px) {
.dataTables_wrapper {
overflow-x: visible;
}
#pengangkutanTable th:nth-child(1),
#pengangkutanTable td:nth-child(1) {
width: 10%;
min-width: 40px;
}
#pengangkutanTable th:nth-child(2),
#pengangkutanTable td:nth-child(2) {
width: 35%;
min-width: 120px;
}
#pengangkutanTable th:nth-child(3),
#pengangkutanTable td:nth-child(3) {
width: 35%;
min-width: 120px;
}
#pengangkutanTable th:nth-child(4),
#pengangkutanTable td:nth-child(4) {
width: 20%;
min-width: 100px;
}
#pengangkutanTable {
font-size: 13px;
}
#pengangkutanTable th,
#pengangkutanTable td {
padding: 10px 6px;
line-height: 1.4;
}
.overflow-x-auto {
overflow-x: visible;
}
}
@media (max-width: 640px) {
#pengangkutanTable {
font-size: 12px;
}
#pengangkutanTable th,
#pengangkutanTable td {
padding: 8px 4px;
line-height: 1.3;
}
#pengangkutanTable th:nth-child(1),
#pengangkutanTable td:nth-child(1) {
width: 8%;
min-width: 35px;
}
#pengangkutanTable th:nth-child(2),
#pengangkutanTable td:nth-child(2) {
width: 42%;
}
#pengangkutanTable th:nth-child(3),
#pengangkutanTable td:nth-child(3) {
width: 30%;
}
#pengangkutanTable th:nth-child(4),
#pengangkutanTable td:nth-child(4) {
width: 20%;
}
.status-badge {
display: block;
margin-top: 4px;
font-size: 10px;
padding: 2px 6px;
}
}
.dt-paging {
text-align: center;
margin-top: 1rem;
}
.dt-paging .dt-paging-button {
padding: 6px 12px;
margin: 0 2px;
border: 1px solid #d1d5db;
border-radius: 6px;
background: white;
color: #374151;
text-decoration: none;
transition: all 0.2s ease;
}
.dt-paging .dt-paging-button:hover {
background: #e0f2fe;
border-color: #0ea5e9;
color: #0369a1;
}
.dt-paging .dt-paging-button.current {
background: #0ea5e9;
border-color: #0ea5e9;
color: white;
}
.dt-paging .dt-paging-button.disabled {
opacity: 0.5;
cursor: not-allowed;
}
.dt-search input {
padding: 8px 12px;
border: 1px solid #d1d5db;
border-radius: 6px;
font-size: 14px;
transition: border-color 0.2s ease;
}
.dt-search input:focus {
outline: none;
border-color: #0ea5e9;
box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}
.dt-length select {
padding: 6px 10px;
border: 1px solid #d1d5db;
border-radius: 6px;
font-size: 14px;
} */