.gt-table {
    width: 100%; 
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.gt-row {
    border-bottom: 1px solid #e2e8f0;
}

.gt-row:hover {
    background: #f8fafc;
}

.gt-cell,
.gt-head,
.gt-filter,
.gt-action {
    border: 1px solid #e2e8f0;
    overflow-wrap: anywhere;
    word-break: break-word;
    vertical-align: top;
}

.gt-cell {
    padding: 0.5rem 0.75rem;
}

.gt-cell.gt-date {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.gt-cell.gt-time,
.gt-cell.gt-datetime {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    text-align: center;
}

.gt-edit:focus-within {
    background: #fefce8;
    outline: none;
}

.gt-head {
    position: relative;
    padding: 0.5rem 0.75rem;
    color: #475569;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0;
    text-align: left;
    text-transform: uppercase;
}

.gt-head:hover {
    background: #e2e8f0;
}

.gt-head-group {
    background: #e2e8f0;
    text-align: center;
}

.gt-head-edit {
    background: #f0fdf4;
}

.gt-head-fk {
    background: #e2e8f0;
}

.gt-head-pk {
    background: #fff7ed;
}

.gt-head-mini {
    padding: 0.25rem;
    font-size: 0.6875rem;
    text-align: center;
}

.gt-filter {
    padding: 0.25rem;
}

.gt-action {
    width: 3rem;
    padding: 0.5rem 0.75rem;
    text-align: center;
}

.gt-input,
.gt-select,
.gt-filter-input {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    background: transparent;
    outline: none;
    box-sizing: border-box;
}

.gt-input {
    display: block;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
}

.gt-filter-input,
.gt-select {
    font-size: 0.75rem;
}

.gt-checkbox {
    height: 1rem;
    width: 1rem;
    accent-color: #2563eb;
    vertical-align: middle;
}

.gt-hidden {
    display: none !important;
}

.gt-highlight {
    color: #16a34a;
    transition: all 1s;
}

.gt-reassigned {
    background: #fef2f2;
    color: #b91c1c;
    font-weight: 500;
}

.gt-wrap {
    white-space: normal;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.gt-nowrap,
.gt-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gt-clip {
    white-space: nowrap;
    overflow: hidden;
}

.app-fragment {
    position: relative;
    padding: 0;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.app-page-title {
    margin: 0 0 0.5rem;
    color: #1e293b;
    font-size: 1rem;
    font-weight: 600;
}

.app-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.app-field-label {
    display: block;
    margin-bottom: 0.25rem;
    color: #64748b;
    font-size: 0.75rem;
}

.app-field {
    border: 1px solid #cbd5e1;
    border-radius: 0.25rem;
    background: #fff;
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
}

.app-action-primary {
    border-radius: 0.25rem;
    background: #2563eb;
    color: #fff;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.app-action-primary:hover {
    background: #1d4ed8;
}

.app-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.app-data-table th,
.app-data-table td {
    border: 1px solid #e2e8f0;
    padding: 0.5rem 0.75rem;
}

.app-data-table th {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: uppercase;
}

.app-data-table tr:hover {
    background: #f8fafc;
}

.app-sidebar {
    width: 10rem;
    color: #fff;
    height: 100vh;
    position: sticky;
    top: 0;
    padding: 1rem;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    overflow: hidden;
    flex-shrink: 0;
    transition: margin-left 0.3s ease;
}

.app-sidebar.collapsed {
    margin-left: -160px;
}

.app-sidebar-main,
aside.app-sidebar.app-theme-main,
.app-db-label.app-theme-main {
    background-color: #0f172a;
}

.app-sidebar-test,
aside.app-sidebar.app-theme-test,
.app-db-label.app-theme-test {
    background-color: #78350f;
}

aside.app-sidebar.app-theme-empty,
.app-db-label.app-theme-empty {
    background-color: #064e3b;
}

aside.app-sidebar.app-theme-ci,
.app-db-label.app-theme-ci {
    background-color: #1e3a8a;
}

.app-db-label {
    color: #fff;
    border-radius: 0.25rem;
    padding: 0.125rem 0.375rem;
    font-weight: 600;
    line-height: 1rem;
}

.app-menu {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.app-menu-btn {
    position: relative;
    width: 100%;
    text-align: left;
    padding: 0.5rem 1rem 0.5rem 1.125rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.app-menu-btn.role-marker::before {
    content: "";
    position: absolute;
    left: 0.375rem;
    top: 0.375rem;
    bottom: 0.375rem;
    width: 0.25rem;
    border-radius: 9999px;
}

.app-menu-btn.role-admin::before {
    background: #dc2626;
}

.app-menu-btn.role-management::before {
    background: #f97316;
}

.app-menu-btn.role-secretary::before {
    background: #eab308;
}

.app-menu-btn.role-teacher::before {
    background: #16a34a;
}

.app-menu-btn.role-customer::before {
    background: #2563eb;
}

.app-menu-btn:hover {
    background: #334155;
}

.app-menu-btn.nav-active {
    background: #16a34a;
    color: #fff;
}
