:root {
    --otdm-ink: #172b4d;
    --otdm-muted: #64748b;
    --otdm-line: #e6ebf2;
    --otdm-blue: #245bd6;
    --otdm-surface: #ffffff;
}

body {
    color: var(--otdm-ink);
}

#kt_app_content {
    background: #f6f8fc;
}

#kt_app_content_container {
    padding-top: clamp(18px, 2.3vw, 32px);
    padding-bottom: 32px;
}

.card {
    border: 1px solid var(--otdm-line);
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(25, 48, 88, .045);
}

.card-header {
    min-height: 72px;
}

.card-title h1,
.card-title h2,
.card-title h3 {
    color: var(--otdm-ink);
    letter-spacing: -.02em;
}

.btn {
    border-radius: 9px;
    font-weight: 600;
    transition: transform .15s ease, box-shadow .15s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.form-control,
.form-select {
    border-color: #cbd5e1;
    border-radius: 8px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--otdm-blue);
    box-shadow: 0 0 0 3px rgba(36, 91, 214, .12);
}

.table-responsive {
    border-radius: 10px;
}

.table thead th {
    color: #64748b !important;
    background: #f7f9fc;
    border-bottom-color: var(--otdm-line);
    font-size: 11px;
    letter-spacing: .045em;
    white-space: nowrap;
}

.table tbody td {
    color: #334155;
    vertical-align: middle;
}

.table tbody tr:hover > * {
    background-color: #f8faff;
}

.otdm-dashboard-intro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 8px 2px 24px;
}

.otdm-dashboard-intro h1 {
    margin: 7px 0 5px;
    color: var(--otdm-ink);
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 750;
    letter-spacing: -.04em;
}

.otdm-dashboard-intro p {
    margin: 0;
    color: var(--otdm-muted);
    font-size: 15px;
}

.otdm-eyebrow {
    color: var(--otdm-blue);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .12em;
}

.otdm-dashboard-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.otdm-dashboard-shortcuts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.otdm-dashboard-shortcuts a {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 76px;
    padding: 14px 16px;
    background: var(--otdm-surface);
    border: 1px solid var(--otdm-line);
    border-radius: 12px;
    color: var(--otdm-ink);
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(25, 48, 88, .035);
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.otdm-dashboard-shortcuts a:hover {
    border-color: #b7caf4;
    box-shadow: 0 7px 20px rgba(25, 48, 88, .08);
    transform: translateY(-2px);
}

.otdm-dashboard-shortcuts strong,
.otdm-dashboard-shortcuts small {
    display: block;
}

.otdm-dashboard-shortcuts strong {
    font-size: 14px;
}

.otdm-dashboard-shortcuts small {
    margin-top: 3px;
    color: var(--otdm-muted);
    font-size: 12px;
}

.otdm-shortcut-icon {
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    color: var(--otdm-blue);
    background: #edf3ff;
    border-radius: 11px;
    font-size: 22px;
    font-weight: 700;
}

.otdm-shortcut-arrow {
    margin-left: auto;
    color: #94a3b8;
    font-size: 25px;
}

.otdm-kpi {
    border-top: 3px solid transparent;
    transition: transform .15s ease, box-shadow .15s ease;
}

.otdm-kpi:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(25, 48, 88, .09) !important;
}

.otdm-kpi-blue { border-top-color: #3b82f6; }
.otdm-kpi-green { border-top-color: #22a06b; }
.otdm-kpi-violet { border-top-color: #8b5cf6; }
.otdm-kpi-amber { border-top-color: #f59e0b; }
.otdm-kpi-neutral { border-top-color: #94a3b8; }

.otdm-chart-empty {
    display: flex;
    min-height: 300px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px;
    color: var(--otdm-muted);
    text-align: center;
}

.otdm-chart-empty span {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 5px;
    color: #5b7cc9;
    background: #edf3ff;
    border-radius: 50%;
    font-size: 24px;
}

.otdm-chart-empty strong {
    color: var(--otdm-ink);
    font-size: 14px;
}

.otdm-chart-empty small {
    max-width: 280px;
    font-size: 12px;
}

.otdm-page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin: 0 0 20px;
}

.otdm-page-heading h1 {
    margin: 0;
    color: var(--otdm-ink);
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 750;
    letter-spacing: -.03em;
}

.otdm-page-heading p {
    margin: 5px 0 0;
    color: var(--otdm-muted);
}

@media (max-width: 767.98px) {
    #kt_app_content_container { padding: 16px 12px 24px; }
    .otdm-dashboard-intro { align-items: flex-start; flex-direction: column; gap: 15px; }
    .otdm-dashboard-actions { width: 100%; }
    .otdm-dashboard-actions .btn { flex: 1 1 auto; }
    .otdm-dashboard-shortcuts { grid-template-columns: 1fr; gap: 9px; }
    .otdm-dashboard-shortcuts a { min-height: 68px; }
    .otdm-page-heading { align-items: flex-start; flex-direction: column; }
    .otdm-page-heading > .btn { width: 100%; }
    .card-header { min-height: 60px; }
    .table { min-width: 650px; }
    .dataTables_wrapper { overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; }
}
