/* SAMOS database-backed report studio translated from wise-moon-5924. */

.samos-report-suite {
    margin: 24px 0 18px;
}

.samos-report-suite__heading,
.samos-report-studio-home .box-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.samos-report-suite__heading {
    margin-bottom: 12px;
}

.samos-report-suite__heading h2,
.samos-report-studio-home .box-title {
    margin: 2px 0 0;
    color: var(--samos-text);
    font-weight: 700;
}

.samos-report-suite__heading > span {
    max-width: 430px;
    color: var(--samos-text-muted);
    font-size: 12px;
    line-height: 1.5;
    text-align: right;
}

.samos-standard-reports {
    display: grid;
    grid-template-columns: repeat(3, minmax(210px, 1fr));
    gap: 12px;
}

.samos-standard-report {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 88px;
    padding: 15px;
    color: var(--samos-text);
    background: var(--samos-surface);
    border: 1px solid var(--samos-border);
    border-radius: 10px;
    box-shadow: var(--samos-shadow);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.samos-standard-report:hover,
.samos-standard-report:focus {
    color: var(--samos-text);
    border-color: var(--samos-primary);
    box-shadow: var(--samos-shadow);
    transform: translateY(-1px);
}

.samos-standard-report__icon {
    display: inline-flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: var(--samos-primary);
    background: var(--samos-primary-soft);
    border-radius: 9px;
    font-size: 17px;
}

.samos-standard-report > span:nth-child(2) {
    min-width: 0;
    flex: 1;
}

.samos-standard-report strong,
.samos-standard-report small {
    display: block;
}

.samos-standard-report strong {
    margin-bottom: 4px;
    font-size: 13px;
}

.samos-standard-report small {
    overflow: hidden;
    color: var(--samos-text-muted);
    font-size: 11px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.samos-standard-report > .fa-angle-right {
    color: var(--samos-text-muted);
}

.samos-report-studio-home {
    margin: 24px 0 18px;
}

.samos-report-studio-home > .box {
    overflow: hidden;
    border-top: 3px solid var(--samos-primary);
    border-radius: 10px;
    box-shadow: var(--samos-shadow);
}

.samos-report-studio-home .box-header {
    padding: 17px 18px;
}

.samos-report-studio-home .box-header p {
    margin: 5px 0 0;
    color: var(--samos-text-muted);
    font-size: 12px;
}

.samos-report-studio-home .box-body {
    padding: 18px;
}

.samos-report-controls {
    display: grid;
    grid-template-columns: minmax(230px, .8fr) minmax(0, 1.2fr);
    gap: 16px;
    margin-bottom: 18px;
    padding: 15px;
    background: var(--samos-surface-muted);
    border: 1px solid var(--samos-border);
    border-radius: 9px;
}

.samos-report-controls .form-group {
    margin-bottom: 0;
}

.samos-report-controls label,
.samos-report-field-toolbar label,
.samos-report-filter-grid label {
    color: var(--samos-text);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
}

.samos-report-dataset-copy {
    margin: 7px 0 0;
    color: var(--samos-text-muted);
    font-size: 11px;
    line-height: 1.45;
}

.samos-report-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: 10px;
}

.samos-report-filter-grid .form-group {
    margin: 0;
}

.samos-report-field-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.samos-report-field-toolbar__search {
    width: min(330px, 100%);
}

.samos-report-field-toolbar__search .form-control {
    height: 34px;
}

.samos-report-field-toolbar__actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.samos-report-field-list--database {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    max-height: 265px;
    overflow: auto;
    padding: 2px;
}

.samos-report-field__type {
    display: block;
    margin-top: 2px;
    color: var(--samos-text-muted);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.samos-report-generate-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--samos-border);
}

.samos-report-security-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    max-width: 720px;
    margin: 0;
    color: var(--samos-text-muted);
    font-size: 11px;
    line-height: 1.5;
}

.samos-report-security-note .fa {
    margin-top: 2px;
    color: var(--samos-primary);
}

.samos-report-error {
    margin: 13px 0 0;
    padding: 10px 12px;
    color: var(--samos-danger);
    background: color-mix(in srgb, var(--samos-danger) 12%, transparent);
    border: 1px solid var(--samos-danger);
    border-radius: 7px;
    font-size: 12px;
}

.samos-report-results {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--samos-border);
}

.samos-report-results__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.samos-report-results__heading h3 {
    margin: 2px 0 3px;
    color: var(--samos-text);
    font-size: 17px;
    font-weight: 700;
}

.samos-report-results__heading p {
    margin: 0;
    color: var(--samos-text-muted);
    font-size: 11px;
}

.samos-report-results__actions {
    display: flex;
    gap: 7px;
}

.samos-report-results .table-responsive {
    max-height: 480px;
    border: 1px solid var(--samos-border);
    border-radius: 8px;
}

.samos-report-results .table {
    margin-bottom: 0;
}

.samos-report-results .table > thead > tr > th {
    position: sticky;
    z-index: 2;
    top: 0;
    min-width: 130px;
    background: var(--samos-primary);
}

.samos-report-preview-note {
    margin: 9px 0 0;
    color: var(--samos-text-muted);
    font-size: 11px;
}

.samos-report-empty {
    padding: 36px 18px;
    color: var(--samos-text-muted);
    background: var(--samos-surface-muted);
    border: 1px dashed var(--samos-border);
    border-radius: 8px;
    text-align: center;
}

.samos-report-empty .fa {
    display: block;
    margin-bottom: 8px;
    color: var(--samos-primary);
    font-size: 22px;
}

@media (max-width: 1100px) {
    .samos-standard-reports,
    .samos-report-field-list--database {
        grid-template-columns: repeat(2, minmax(190px, 1fr));
    }
}

@media (max-width: 767px) {
    .samos-report-suite__heading,
    .samos-report-studio-home .box-header,
    .samos-report-field-toolbar,
    .samos-report-generate-row,
    .samos-report-results__heading {
        align-items: stretch;
        flex-direction: column;
    }

    .samos-report-suite__heading > span {
        max-width: none;
        text-align: left;
    }

    .samos-standard-reports,
    .samos-report-controls,
    .samos-report-field-list--database,
    .samos-report-filter-grid {
        grid-template-columns: 1fr;
    }

    .samos-report-field-toolbar__search {
        width: 100%;
    }

    .samos-report-results__actions,
    .samos-report-field-toolbar__actions {
        flex-wrap: wrap;
    }
}

@media print {
    body.samos-printing-report * {
        visibility: hidden !important;
    }

    body.samos-printing-report #samos-custom-report-print,
    body.samos-printing-report #samos-custom-report-print * {
        visibility: visible !important;
    }

    body.samos-printing-report #samos-custom-report-print {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
    }

    body.samos-modern .samos-report-studio-home {
        display: block !important;
        margin: 0 !important;
    }

    .samos-report-suite,
    .samos-report-studio-home > .box > .box-header,
    .samos-report-controls,
    .samos-report-field-toolbar,
    .samos-report-field-list,
    .samos-report-generate-row,
    .samos-report-results__actions,
    .samos-report-error {
        display: none !important;
    }

    .samos-report-studio-home > .box,
    .samos-report-studio-home .box-body,
    .samos-report-results {
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    .samos-report-results .table-responsive {
        max-height: none;
        overflow: visible;
        border: 0;
    }

    .samos-report-results .table > thead > tr > th {
        position: static;
        color: #000 !important;
        background: #fff !important;
    }
}
