/* App-wide UI compliance layer for authenticated screens. */

:root {
    --gt-primary: #911d1f;
    --gt-text: #1f2937;
    --gt-muted: #374151;
    --gt-border: #d1d5db;
    --gt-header: #f3f4f6;
    --gt-hover: #f9fafb;
    --gt-success: #047857;
    --gt-warning: #92400e;
    --gt-danger: #991b1b;
}

.gt-app-shell,
.gt-app-shell .main,
.gt-app-shell .section,
.gt-app-shell .card,
.gt-app-shell .modal,
.gt-app-shell .dropdown-menu,
.gt-app-shell .table,
.gt-app-shell .form-control,
.gt-app-shell .form-select,
.gt-app-shell .btn {
    color: var(--gt-text);
    font-family: Arial, Calibri, Verdana, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 18px;
    line-height: 1.55;
}

.gt-app-shell .main {
    overflow-x: hidden;
}

.gt-app-shell h1,
.gt-app-shell .pagetitle h1 {
    color: var(--gt-text);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
}

.gt-app-shell h2,
.gt-app-shell .section-title,
.gt-app-shell .card-title {
    color: var(--gt-text);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.35;
}

.gt-app-shell h3,
.gt-app-shell h4,
.gt-app-shell h5,
.gt-app-shell h6,
.gt-app-shell label,
.gt-app-shell p,
.gt-app-shell span,
.gt-app-shell small,
.gt-app-shell li,
.gt-app-shell td,
.gt-app-shell th,
.gt-app-shell a,
.gt-app-shell button,
.gt-app-shell input,
.gt-app-shell select,
.gt-app-shell textarea {
    letter-spacing: 0;
}

.gt-app-shell p,
.gt-app-shell small,
.gt-app-shell .text-muted,
.gt-app-shell .form-text,
.gt-app-shell .stats-label,
.gt-app-shell .chart-summary-text {
    color: var(--gt-muted) !important;
    font-size: 18px;
}

.gt-app-shell .form-label,
.gt-app-shell label {
    color: var(--gt-text);
    font-size: 18px;
    font-weight: 600;
}

.gt-app-shell .form-control,
.gt-app-shell .form-select {
    border-color: var(--gt-border);
    border-radius: 8px;
    min-height: 46px;
    padding: 9px 12px;
}

.gt-app-shell .form-control:focus,
.gt-app-shell .form-select:focus,
.gt-app-shell .btn:focus,
.gt-app-shell .nav-link:focus,
.gt-app-shell .page-link:focus,
.gt-app-shell .dropdown-item:focus {
    border-color: var(--gt-primary);
    box-shadow: 0 0 0 3px rgba(145, 29, 31, 0.22);
    outline: 0;
}

.gt-app-shell .btn,
.gt-app-shell .page-link,
.gt-app-shell .dropdown-item {
    font-size: 18px;
}

.gt-app-shell .card:hover,
.gt-app-shell .alignment-card:hover,
.gt-app-shell .premium-stat-card:hover {
    box-shadow: none;
    transform: none !important;
}

.gt-app-shell .card,
.gt-app-shell .premium-filter-card,
.gt-app-shell .premium-info-banner,
.gt-app-shell .chart-container,
.gt-app-shell .data-table-card,
.gt-app-shell .premium-table-card,
.gt-app-shell .premium-stat-card {
    background: #ffffff;
    border: 1px solid var(--gt-border);
    border-radius: 10px;
    box-shadow: none;
    color: var(--gt-text);
}

.gt-app-shell .premium-info-banner {
    border-left: 6px solid var(--gt-primary);
}

.gt-app-shell .table,
.gt-app-shell .premium-table {
    color: var(--gt-text);
    font-size: 18px;
}

.gt-app-shell .table th,
.gt-app-shell .table td,
.gt-app-shell .premium-table th,
.gt-app-shell .premium-table td {
    border-color: var(--gt-border);
    color: var(--gt-text);
    font-size: 18px;
    padding: 12px 14px;
}

.gt-app-shell .table th,
.gt-app-shell .premium-table th,
.gt-app-shell .table thead th {
    background: var(--gt-header);
    color: var(--gt-text);
    font-weight: 700;
}

.gt-app-shell .table-hover tbody tr:hover,
.gt-app-shell .premium-table tbody tr:hover {
    background: var(--gt-hover);
}

.gt-app-shell .badge,
.gt-app-shell .label,
.gt-app-shell .alert,
.gt-app-shell .pagination {
    font-size: 18px;
}

.gt-app-shell .dashboard-loading-overlay,
.gt-app-shell .app-loading-overlay {
    align-items: center;
    background-color: rgba(255, 255, 255, 0.86);
    bottom: 0;
    display: none;
    justify-content: center;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 9999;
}

.gt-app-shell .dashboard-loading-panel,
.gt-app-shell .app-loading-panel {
    background: #ffffff;
    border: 1px solid var(--gt-border);
    border-top: 5px solid var(--gt-primary);
    border-radius: 10px;
    padding: 24px 28px;
    text-align: center;
}

.gt-app-shell .dashboard-chart,
.gt-app-shell .dashboard-chart-tall,
.gt-app-shell .app-chart-400 {
    min-height: 400px;
    width: 100%;
}

.gt-app-shell .is-clickable {
    cursor: pointer;
}

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

.gt-app-shell .initial-hidden {
    display: none;
}

.gt-app-shell .initial-visible {
    display: block;
}

.gt-app-shell .field-required {
    color: var(--gt-danger);
    font-weight: 700;
}

.gt-app-shell .font-strong {
    font-weight: 700;
}

.gt-app-shell .form-group {
    padding-bottom: 0.35rem;
    padding-top: 0.35rem;
}

.gt-app-shell .tooltip-icon {
    cursor: pointer;
    margin-left: 5px;
}

.gt-app-shell .filter-select-auto {
    width: auto;
}

.gt-app-shell .filter-min-250 {
    min-width: 250px;
}

.gt-app-shell .app-scroll-x {
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
}

.gt-app-shell .app-scroll-x > table,
.gt-app-shell .app-scroll-x .table {
    margin-bottom: 0;
    min-width: 100%;
}

.gt-app-shell .validation-table-scroll {
    border: 1px solid var(--gt-border);
    border-radius: 8px;
    display: block;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

.gt-app-shell .validation-table-scroll .table {
    table-layout: auto;
    margin-bottom: 0;
    min-width: auto;
    width: max-content;
}

.gt-app-shell .validation-table-scroll th,
.gt-app-shell .validation-table-scroll td {
    white-space: normal;
}

.gt-app-shell .validation-table-scroll th {
    max-width: 11rem;
    min-width: 0;
    vertical-align: middle;
    white-space: normal;
    word-break: normal;
}

.gt-app-shell .validation-table-scroll th,
.gt-app-shell .validation-table-scroll td {
    line-height: 1.35;
    padding: 10px 12px;
}

.gt-app-shell .validation-table-scroll .btn {
    margin: 0 0.35rem 0.35rem 0;
    min-width: 6rem;
    padding: 0.5rem 0.75rem;
    width: auto !important;
}

.gt-app-shell .validation-table-scroll td:last-child {
    max-width: 14rem;
    min-width: 12rem;
    width: 12rem;
}

.gt-app-shell .validation-table-scroll .table-empty-value {
    color: var(--gt-muted);
    display: inline-block;
    min-width: 1.25rem;
    text-align: center;
}

.gt-app-shell .signature-pad {
    border: 1px solid var(--gt-text);
    max-width: 100%;
}

.gt-app-shell .toast-position {
    position: fixed;
    right: 1rem;
    top: 3.6rem;
    z-index: 1050;
}

.gt-app-shell .privacy-notice-image {
    max-height: 250px;
}

.gt-app-shell .textarea-sm {
    height: 100px;
}

.gt-app-shell .modal-body-tall {
    min-height: 1500px;
}

.gt-app-shell .spinner-size-30 {
    height: 30px;
    width: 30px;
}

.gt-app-shell .spinner-size-40 {
    height: 40px;
    width: 40px;
}

.gt-app-shell .spinner-size-50 {
    height: 50px;
    width: 50px;
}

.gt-app-shell .chart-height-400 {
    min-height: 400px;
}

.gt-app-shell .chart-max-height-400 {
    max-height: 400px;
}

.gt-app-shell .progress-height-10 {
    height: 10px;
}

.gt-app-shell .progress-height-15 {
    height: 15px;
}

.gt-app-shell .progress-height-20 {
    height: 20px;
}

.gt-app-shell .progress-height-25 {
    height: 25px;
}

.gt-app-shell .report-stat-icon {
    color: rgba(31, 41, 55, 0.72);
    font-size: 4rem;
}

.gt-app-shell .chat-box {
    border: 1px solid var(--gt-border);
    height: 300px;
}

.gt-app-shell .metric-large {
    font-size: 2.2rem;
}

.gt-app-shell .metric-label {
    font-size: 1.1rem;
}

.gt-app-shell .metric-helper {
    font-size: 1.08rem;
}

.gt-app-shell .col-min-48 {
    min-width: 48px;
}

.gt-app-shell .progress-height-6 {
    height: 6px;
}

.gt-app-shell .progress-height-8 {
    height: 8px;
}

.gt-app-shell .form-inline {
    display: inline;
}

.gt-app-shell .media-preview-sm {
    height: auto;
    max-width: 120px;
}

.gt-app-shell .media-preview-md {
    max-width: 300px;
}

.gt-app-shell .login-brand-image {
    height: auto;
    width: 24rem;
}

.gt-app-shell .iframe-phpinfo {
    border: 0;
    height: 800px;
    width: 100%;
}

.gt-app-shell .faq-preview-dialog {
    height: 80vh;
    max-width: 80vw;
}

.gt-app-shell .h-available {
    height: 100%;
}

.gt-app-shell .faq-preview-body {
    height: calc(100% - 56px);
}

.gt-app-shell .borderless-frame {
    border: 0;
}

.gt-app-shell .suggestion-header-compact {
    margin-bottom: 1rem;
    padding: 0.75rem 0 0.75rem 1rem;
}

.gt-app-shell .suggestion-stats-compact {
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.gt-app-shell .suggestion-card-compact {
    padding: 0.75rem 1rem;
}

.gt-app-shell .suggestion-muted-strong {
    color: var(--gt-muted) !important;
    font-weight: 500;
}

.gt-app-shell .pre-wrap {
    line-height: 1.6;
    white-space: pre-wrap;
}

.gt-app-shell .hidden-field-shell {
    display: none;
}

.gt-app-shell .textarea-min-150 {
    min-height: 150px;
}

.gt-app-shell #flipbook {
    background: #f0f0f0;
    height: 700px;
    margin: 0 auto;
    width: 900px;
}

.gt-app-shell #flipbook-wrapper {
    max-width: 100%;
    overflow-x: auto;
}

.gt-app-shell .page {
    background: #ffffff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    display: inline-block;
    margin: 0;
    overflow: hidden;
    padding: 0;
    vertical-align: top;
}

.gt-app-shell .input-width-120 {
    width: 120px;
}

.gt-app-shell .control-height-32 {
    min-height: 32px;
}

.gt-app-shell .filter-flex-auto {
    flex: 0 1 auto;
}

.gt-app-shell .filter-min-180 {
    min-width: 180px;
}

.gt-app-shell .filter-min-140 {
    min-width: 140px;
}

.gt-app-shell .mt-compact-2 {
    margin-top: 2rem;
}

.gt-app-shell .breadcrumb-divider-chevron {
    --bs-breadcrumb-divider: ">";
}

.gt-app-shell .breadcrumb-divider-pipe {
    --bs-breadcrumb-divider: "|";
}

.gt-app-shell .breadcrumb-divider-dash {
    --bs-breadcrumb-divider: "-";
}

.gt-app-shell .breadcrumb-divider-dot {
    --bs-breadcrumb-divider: ".";
}

.gt-app-shell .breadcrumb-divider-none {
    --bs-breadcrumb-divider: "";
}

@media (max-width: 768px) {
    .gt-app-shell,
    .gt-app-shell .main,
    .gt-app-shell .table,
    .gt-app-shell .form-control,
    .gt-app-shell .form-select,
    .gt-app-shell .btn {
        font-size: 18px;
    }

    .gt-app-shell .table-responsive {
        overflow-x: auto;
    }
}
