﻿.okrk-page {
    font-size: 16px;
    line-height: 1.5;
    color: #1f2937;
    width: 100%;
}
.okrk-page--narrow {
    max-width: 720px;
}
.okrk-page .form-control,
.okrk-edit .form-control,
.okrk-analytics .form-control {
    font-size: 16px;
    height: 42px;
    border-radius: 10px;
    border-color: #d7dce3;
    box-shadow: none;
}
.okrk-page textarea.form-control,
.okrk-edit textarea.form-control {
    height: auto;
    border-radius: 10px;
}
.okrk-card {
    background: #fff;
    border: 1px solid #e7e9eb;
    border-top: 3px solid #188ae2;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(49, 58, 70, 0.04);
    margin-bottom: 16px;
}
.okrk-card-head {
    padding: 14px 16px;
    border-bottom: 1px solid #eef2f7;
}
.okrk-card-body {
    padding: 16px;
}
.okrk-title {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #111827;
}
.okrk-subtitle {
    margin: 0;
    font-size: 16px;
    color: #6b7280;
}
.okrk-section-title {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}
.okrk-head-bar {
    display: table;
    width: 100%;
}
.okrk-head-bar .okrk-title,
.okrk-head-bar .okrk-section-title {
    display: table-cell;
    vertical-align: middle;
    margin: 0;
}
.okrk-head-actions {
    margin-top: 14px;
}
.okrk-head-bar .okrk-head-actions {
    display: table-cell;
    vertical-align: middle;
    text-align: right;
    width: 1%;
    white-space: nowrap;
    padding-left: 12px;
    margin-top: 0;
}
.okrk-head-actions .btn,
.okrk-form-actions .btn {
    font-size: 15px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 10px;
    margin-right: 8px;
    margin-bottom: 6px;
}
.okrk-btn-dark {
    background: #111827;
    border-color: #111827;
    color: #fff;
}
.okrk-btn-dark:hover,
.okrk-btn-dark:focus {
    background: #000;
    border-color: #000;
    color: #fff;
}
.okrk-chip {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
}
.okrk-field {
    margin-bottom: 16px;
}
.okrk-field label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #4b5563;
    margin-bottom: 6px;
}
.okrk-field-static {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}
.okrk-field-wrap {
    position: relative;
}
.okrk-hint {
    font-size: 15px;
    color: #6b7280;
    margin: 8px 0 0;
}
.okrk-empty {
    margin: 8px 0 0;
    color: #6b7280;
    font-size: 15px;
}
.okrk-table-wrap {
    overflow: auto;
    max-height: 70vh;
    border: 1px solid #e7e9eb;
    border-radius: 6px;
}
.okrk-table {
    margin: 0;
    font-size: 15px;
    background: #fff;
}
.okrk-table > thead > tr > th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    color: #4b5563;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    padding: 10px 12px;
}
.okrk-table > tbody > tr > td {
    padding: 12px;
    border-top: 1px solid #f3f4f6;
    vertical-align: middle;
}
.okrk-table > tbody > tr:hover > td {
    background: #f9fafb;
}
.okrk-table > tbody > tr.okrk-sortable-ghost > td {
    background: #e8f1fb;
}
.okrk-order-col {
    white-space: nowrap;
    width: 1%;
}
.okrk-drag-handle {
    display: inline-block;
    margin-right: 8px;
    color: #9ca3af;
    cursor: grab;
    font-size: 14px;
    vertical-align: middle;
}
.okrk-drag-handle:active {
    cursor: grabbing;
}
.okrk-order-num {
    display: inline-block;
    min-width: 1.5em;
    font-variant-numeric: tabular-nums;
    vertical-align: middle;
}
.okrk-table .label {
    font-size: 13px;
    font-weight: 700;
    padding: 5px 9px;
    border-radius: 999px;
}
.okrk-a-link,
.okrk-table .btn-link,
button.okrk-a-link {
    display: inline-block;
    margin: 0 6px 4px 0;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #111827;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
}
.okrk-row-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 168px;
}
.okrk-row-actions-line {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
}
.okrk-row-actions .okrk-a-link {
    margin: 0;
    white-space: nowrap;
}
.okrk-a-link:hover,
.okrk-a-link:focus,
.okrk-table .btn-link:hover,
.okrk-table .btn-link:focus {
    background: #f3f4f6;
    color: #111827;
    text-decoration: none;
}
.okrk-a-link-danger,
button.okrk-a-link-danger {
    border-color: #dc2626;
    background: #dc2626;
    color: #fff;
}
.okrk-a-link-danger:hover,
.okrk-a-link-danger:focus,
button.okrk-a-link-danger:hover,
button.okrk-a-link-danger:focus {
    border-color: #b91c1c;
    background: #b91c1c;
    color: #fff;
}
.okrk-row-overdue > td,
.okrk-table > tbody > tr.danger > td {
    background: #fef2f2;
}
.okrk-inline-form {
    display: inline-block;
    white-space: nowrap;
    margin: 0;
}
.okrk-inline-form .form-control {
    display: inline-block;
    width: 160px;
    height: 34px;
    font-size: 14px;
    margin-right: 6px;
    vertical-align: middle;
}
.okrk-tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.okrk-tile {
    flex: 1 1 220px;
    min-width: 200px;
    color: #313a46;
}
.okrk-tile-inner {
    display: block;
    height: 100%;
    background: #fff;
    border: 1px solid #e7e9eb;
    border-radius: 6px;
    padding: 14px 16px;
    min-height: 96px;
    color: #313a46;
    text-decoration: none;
}
a.okrk-tile-inner:hover,
a.okrk-tile-inner:focus {
    border-color: #188ae2;
    color: #313a46;
    text-decoration: none;
}
.okrk-tile-title {
    display: block;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
}
.okrk-tile-hint {
    display: block;
    font-size: 13px;
    color: #6b7280;
}
.okrk-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.okrk-stat {
    flex: 1 1 180px;
    min-width: 160px;
    background: #fff;
    border: 1px solid #e6e8eb;
    border-radius: 6px;
    padding: 12px 14px;
}
.okrk-stat-value {
    display: block;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #188ae2;
    line-height: 1.2;
}
.okrk-stat-label {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #6b7280;
}
.okrk-stat--warn .okrk-stat-value {
    color: #b45309;
}
.okrk-stat--danger .okrk-stat-value {
    color: #b91c1c;
}
.okrk-file {
    display: block;
    padding: 10px 0;
}
.okrk-labels-form {
    margin-bottom: 22px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eef0f3;
}
.okrk-labels-grid {
    display: table;
    width: 100%;
    table-layout: fixed;
}
.okrk-labels-col {
    display: table-cell;
    vertical-align: top;
    padding-right: 24px;
}
.okrk-labels-col + .okrk-labels-col {
    padding-right: 0;
    padding-left: 24px;
    border-left: 1px solid #eef0f3;
}
@media (max-width: 767px) {
    .okrk-title {
        font-size: 22px;
    }
    .okrk-tile {
        width: 100%;
    }
    .okrk-head-bar,
    .okrk-head-bar .okrk-title,
    .okrk-head-bar .okrk-head-actions {
        display: block;
        width: 100%;
        text-align: left;
        padding-left: 0;
    }
    .okrk-head-bar .okrk-head-actions {
        margin-top: 12px;
    }
    .okrk-labels-grid,
    .okrk-labels-col,
    .okrk-labels-col + .okrk-labels-col {
        display: block;
        width: 100%;
        padding: 0;
        border: 0;
    }
    .okrk-labels-col + .okrk-labels-col {
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid #eef0f3;
    }
}
