body {
    font-family: Arial, sans-serif;
    background-color: #f4f6f9;
    padding: 30px;
}
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background-color: #eef;
    border-radius: 12px;
    box-shadow: 1px 1px 15px rgba(0,0,0,0.1);
    margin-bottom: 35px;
}
.user-left {
    font-size: 24px;
    font-family: monospace;
    font-weight: bold;
}
.company-center {
    flex: 1;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #222;
}
.button-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.button-stack button {
    background-color: #d9534f;
    color: white;
    font-size: 18px;
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    width: 90px;
}
.button-stack button:hover {
    background-color: #c9302c;
}
.section-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0 10px 0;
    position: relative;
}
.section-header h2 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 0;
}
.section-header button {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: #d9534f;
    color: white;
    font-size: 16px;
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
.section-header button:hover {
    background-color: #c9302c;
}
.filter-bar {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 15px;
}
.filter-bar input {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}



/* Main panel (use on any list) */
.panel {
  overflow-x: auto;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Tables (DataTables or plain) */
.table-basic { 
    width: 100%; 
    border-collapse: collapse; 
    table-layout: auto; 
}
.table-basic th, .table-basic td {
  border: 1px solid #ccc; 
  padding: 10px; 
  text-align: center; 
  font-size: 14px;
}
.table-basic th { 
    background-color: #f2f2f2; 
    font-weight: bold; 
}

#loadingMessage {
  text-align: center; 
  font-size: 18px; 
  color: #007bff; 
  margin: 20px 0;
}
.dataTables_length { 
    margin-bottom: 15px; 
}


@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .company-center {
        font-size: 18px;
        text-align: left;
    }

    .user-left {
        font-size: 16px;
    }

    #logoutBtn {
        font-size: 14px;
        padding: 4px 8px;
    }
}
