/*
 * Shared app UI helpers for styles moved out of PHP templates.
 * Keep these semantic and reusable; dynamic PHP/database colors stay inline for now.
 */

.kaos-clear {
    clear: both;
}

.page-action-link {
    float: right;
}

.link-plain {
    text-decoration: none;
}

.link-spaced {
    letter-spacing: 1px;
    text-decoration: none;
}

.link-muted {
    color: black;
    text-decoration: none;
}

.link-strong-uppercase {
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
}

.clickable {
    cursor: pointer;
}

.row-transparent {
    background-color: transparent;
}

.modal-width-md {
    max-width: 600px;
}

.modal-width-sm {
    max-width: 420px;
}

.inline-action-group,
.template-button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.compact-button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.attachment-list {
    margin: 0;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.report-card-clickable {
    cursor: pointer;
}

.report-title {
    margin-top: 0;
}

.report-kpi-large {
    font-size: 28px;
    font-weight: bold;
}

.report-kpi-medium {
    font-size: 22px;
    font-weight: bold;
}

.report-chart-block {
    margin-bottom: 12px;
}

.report-legend {
    margin-bottom: 4px;
}

.report-swatch {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 6px;
}

.report-swatch-secondary {
    margin: 0 6px 0 12px;
}

.report-swatch-blue {
    background: #2196F3;
}

.report-swatch-grey {
    background: #bdbdbd;
}

.chart-canvas-compact {
    width: 100%;
    max-height: 120px;
}

.button-spaced-top {
    margin-top: 8px;
}

.status-spaced-left {
    margin-left: 8px;
}

.invisible-sort-value {
    opacity: 0;
}

.table-small-font {
    font-size: small;
}

.form-section-title {
    padding: 5px;
    margin-top: 5px;
    margin-bottom: 5px;
    background: #D5DFF3;
    border-top: 1px solid black;
    font-size: 14px;
    font-weight: bold;
}

.form-column-main {
    width: 50%;
    padding-right: 25px;
}

.form-column-side {
    width: 50%;
}

.address-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.address-postcode {
    flex: 0 0 9ch;
    min-width: 9ch;
    margin-right: 1rem;
}

.address-place {
    flex: 1 1 0;
    min-width: 8ch;
}

.text-uppercase {
    text-transform: uppercase;
}

.input-action-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-action-row .w3-input {
    flex: 1 1 auto;
}

.table-section-heading {
    background: #f0f0f0;
    font-weight: bold;
}

.textarea-notes {
    min-height: 9rem;
    resize: vertical;
    box-sizing: border-box;
}

.scroll-panel-200 {
    height: 200px;
    overflow: auto;
}

.scroll-panel-560 {
    max-height: 560px;
    overflow-y: scroll;
}

.is-hidden {
    display: none;
}

.filter-data-cell {
    display: none !important;
}

.button-xs {
    font-size: 10px;
}

.drawing-frame {
    width: 100%;
    height: 600px;
    border: 1px solid #ccc;
}

.option-positive {
    color: green;
}

.option-negative,
.text-danger {
    color: red;
}

.memo-delete-link {
    display: block;
    margin-top: 5px;
}

.memo-link {
    color: black;
    font-weight: bold;
    text-decoration: none;
}

.memo-text {
    margin-top: 5px;
    margin-bottom: 5px;
}

.table-col-120 {
    width: 120px;
}

.modal-body-compact {
    padding: 12px 16px;
}

.label-spaced-right {
    margin-right: 1rem;
}

.helper-text-top {
    margin-top: 0.25rem;
}

.audit-filter-count {
    margin-left: 1rem;
}

.audit-created-col {
    width: 160px;
}

.audit-type-col,
.audit-user-col {
    width: 90px;
}

.audit-ip-col {
    width: 120px;
}

.text-wrap-normal {
    white-space: normal;
}
