html {
    font-size:0.8em;
    background: var(--surface-ground, #f8f9fa);
    color: var(--text-color, #212529);
}

body {
    background: var(--surface-ground, #f8f9fa);
    color: var(--text-color, #212529);
    margin: 0;
    min-height: 100vh;
}

.headertext {
    font-size:1.6em;
    vertical-align: middle;
    padding:5px;

}

.bold {
    font-weight: bold;
}

#display .i{
    display: block;
    text-align: center;
    width:3em;
    border:0;
}

#display .np {
    padding:0;
}

img {

    border:0;
}

.ui-datatable input.ui-column-filter {
    width:90%;
}

div.ui-panel-titlebar{
    height:auto; 
}

ul.ui-picklist-list{
    width:400px !important;
}

.ui-datatable tbody td.wrap {
    white-space: normal;
}

a {
    font-weight:bold;
    text-decoration: none;
    color: var(--primary-color, #2196f3);
}

.ui-datatable tbody td.borderless {
    border: 0px;
    background: transparent;
}

.ui-datagrid-data tbody td {
    border: 0px;
    background: transparent;
}

.borderless .ui-widget-content {
    border: 0px;
    background: transparent;
    color: var(--text-color, #212529);
}

.jqplot-series-canvas {
  background:transparent;
}

html body .ui-paginator span.ui-paginator-pages {
  display: flex !important;
}

/* Semantic text colors for the bundled light and dark themes. */
.status-news {
    color: #a16207;
}

.status-count {
    color: #b71c1c;
}

.status-news.status-dark {
    color: #ffe082;
}

.status-count.status-dark {
    color: #f48fb1;
}

.status-success {
    color: var(--green-500, #22c55e);
}

.status-danger {
    color: var(--red-500, #ef4444);
}

.status-muted {
    color: var(--text-color-secondary, #6c757d);
}

.status-strong {
    font-weight: bold;
}

.character-counter-field {
    align-items: center;
    display: flex;
    gap: .75rem;
    width: 90%;
}

.character-counter-field .character-counter-input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
}

.character-counter {
    display: none;
    flex: 0 0 4.5rem;
    margin-top: 0;
    color: var(--text-color-secondary, #6c757d);
    font-size: .9em;
    text-align: right;
    white-space: nowrap;
}

html body .character-counter.over-limit {
    display: inline-block;
    color: var(--red-500, #ef4444) !important;
    font-weight: bold;
}

.report-dialog.ui-dialog {
    height: 92vh !important;
    left: 2vw !important;
    max-height: 92vh !important;
    max-width: 96vw !important;
    top: 4vh !important;
    width: 96vw !important;
}

.report-dialog .ui-dialog-content {
    height: calc(92vh - 4rem) !important;
    overflow: hidden !important;
    padding: 1rem !important;
}

.report-layout {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(21rem, 28rem) minmax(0, 1fr);
    height: 100%;
}

.report-options {
    min-width: 0;
    overflow: auto;
    padding-right: .25rem;
}

.report-options .ui-panelgrid,
.report-options .ui-selectonemenu,
.report-options .ui-inputfield,
.report-options .ui-datatable {
    max-width: 100%;
}

.report-preview-pane {
    border: 1px solid var(--surface-border, #dee2e6);
    border-radius: var(--border-radius, 4px);
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}

.report-preview-heading {
    background: var(--surface-section, #f8f9fa);
    border-bottom: 1px solid var(--surface-border, #dee2e6);
    flex: 0 0 auto;
    font-weight: 600;
    padding: .75rem 1rem;
}

.sheet-preview-scroll {
    background: #fff;
    color: #111;
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: .5rem;
}

.sheet-preview-meta,
.sheet-preview-warning,
.sheet-preview-message {
    margin: .5rem;
}

.sheet-preview-warning {
    background: #fff3cd;
    border: 1px solid #ffe69c;
    border-radius: 4px;
    color: #664d03;
    padding: .5rem .75rem;
}

.sheet-preview-table {
    border-collapse: collapse;
    table-layout: fixed;
    width: max-content;
}

.sheet-preview-table th,
.sheet-preview-table td {
    border: 1px solid #d0d7de;
    box-sizing: border-box;
    min-height: 18px;
    overflow: hidden;
    padding: 2px 4px;
    text-overflow: ellipsis;
    vertical-align: bottom;
    white-space: pre;
}

.sheet-preview-table td {
    background-clip: padding-box;
    cursor: cell;
    user-select: none;
}

.sheet-preview-table td.sheet-cell-selected {
    box-shadow: inset 0 0 0 2px #2563eb;
    position: relative;
    z-index: 1;
}

.sheet-preview-table td.sheet-cell-block-area {
    background: rgba(207, 232, 255, 0.45);
}

.sheet-preview-table .sheet-column-header,
.sheet-preview-table .sheet-row-header,
.sheet-preview-table .sheet-corner {
    background: #f3f4f6;
    color: #4b5563;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    position: sticky;
    text-align: center;
    z-index: 2;
}

.sheet-preview-table .sheet-column-header,
.sheet-preview-table .sheet-corner {
    top: 0;
}

.sheet-preview-table .sheet-row-header,
.sheet-preview-table .sheet-corner {
    left: 0;
}

.sheet-preview-table .sheet-corner {
    z-index: 3;
}

.sheet-row-number-column {
    width: 3.5rem;
}

@media (max-width: 900px) {
    .report-layout {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(14rem, 40%) minmax(0, 1fr);
    }
}

/* Keep confirmation actions compact even inside the fluid page container. */
body .confirmation-dialog.ui-dialog {
    width: 42rem !important;
    max-width: calc(100vw - 2rem);
    box-sizing: border-box;
}

body .confirmation-dialog .ui-dialog-content {
    padding: 1.25rem;
    overflow-wrap: anywhere;
}

.confirmation-dialog p {
    margin: 0 0 1.5rem;
    line-height: 1.6;
}

.dialog-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .75rem;
}

body .ui-fluid .dialog-actions .ui-button {
    width: auto;
    flex: 0 0 auto;
    margin: 0;
    min-width: 9rem;
}
