:root {
    --nycti-font-family: Arial, Helvetica, "Segoe UI", sans-serif;
    --nycti-control-height: 32px;
    --nycti-compact-gap: 8px;
}

html {
    font-size: 13px;
}

body,
button,
input,
select,
textarea,
option,
table,
dialog {
    font-family: var(--nycti-font-family) !important;
    font-kerning: normal;
    letter-spacing: 0;
}

body {
    line-height: 1.35;
    text-rendering: optimizeLegibility;
}

input::placeholder,
textarea::placeholder {
    color: #7a8799;
    font-family: var(--nycti-font-family);
    opacity: 1;
}

input:focus::placeholder,
textarea:focus::placeholder {
    color: #9aa5b4;
}

/* Shared compact form density. More specific controls such as OTP boxes keep
   their component dimensions while ordinary application fields stay concise. */
form {
    gap: 10px;
}

.form-grid,
.field-grid,
.report-form-grid,
.report-filter-grid {
    gap: 8px 10px;
}

.field,
.form-field {
    gap: 3px;
    margin-bottom: 6px;
}

.field label,
.form-field label,
.strength-field > label {
    margin-bottom: 3px;
    font-size: 12px;
    line-height: 1.2;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
select,
textarea {
    min-height: var(--nycti-control-height);
    border-radius: 6px;
    padding: 5px 8px;
    font-size: 12.5px;
    line-height: 1.25;
}

select {
    padding-right: 30px;
}

textarea {
    min-height: 64px;
}

input[type="checkbox"],
input[type="radio"] {
    min-height: 0;
}

.form-actions,
.inline-actions,
.payment-action-stack {
    gap: 6px;
}

.panel {
    margin-bottom: 10px;
}

.panel-header {
    gap: 7px;
    padding: 10px 13px;
}

.panel-header h2 {
    font-size: 16px;
    line-height: 1.2;
}

.panel-header p {
    margin-top: 1px;
    font-size: 12px;
    line-height: 1.3;
}

.panel-body {
    padding: 11px 13px;
}

.form-section {
    padding: 13px;
}

.section-heading {
    gap: 7px;
    margin-bottom: 9px;
}

.section-heading h2 {
    font-size: 16px;
    line-height: 1.2;
}

.section-heading p,
.field-hint,
.upload-meta {
    font-size: 11.5px;
    line-height: 1.3;
}

.button,
button,
input[type="submit"],
input[type="button"] {
    min-height: 30px;
    border-radius: 6px;
    padding-top: 4px;
    padding-bottom: 4px;
    font-size: 12px;
    line-height: 1.2;
}

.data-table th,
.data-table td,
table.dataTable th,
table.dataTable td {
    padding-top: 6px;
    padding-bottom: 6px;
    line-height: 1.3;
}

@media (max-width: 760px) {
    html {
        font-size: 12.5px;
    }

    .form-section,
    .panel-body {
        padding: 10px;
    }

    .panel-header {
        padding: 9px 10px;
    }
}
