/* ====================== */
/* Layout                 */
/* ====================== */
body {
    background: #f4f6f9;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.sote-topbar {
    background-color: #212121;
    color: #fff;
    height: 50px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.sote-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 18px;
    letter-spacing: 1px;
    width: 200px;
}

.sote-logo span {
    color: #fff;
}

.sote-logo .red-dots {
    color: #e53935;
    font-size: 24px;
    line-height: 1;
}

.sote-top-menu {
    display: flex;
    gap: 20px;
    margin-left: 20px;
}

.sote-top-menu a {
    color: #ccc;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.sote-top-menu a:hover {
    color: #fff;
}

.sote-wrapper {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.sote-sidebar {
    width: 220px;
    background-color: #333333;
    color: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    z-index: 900;
}

.sote-sidebar-header {
    padding: 15px 20px;
    font-weight: bold;
    font-size: 13px;
    letter-spacing: 0.5px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #444;
}

.sote-sidebar-menu {
    list-style: none;
    padding: 15px 0;
    margin: 0;
}

.sote-sidebar-menu li a {
    display: block;
    padding: 10px 20px;
    color: #aaa;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.2s, color 0.2s;
}

.sote-sidebar-menu li a:hover,
.sote-sidebar-menu li a.active {
    background-color: #444;
    color: #fff;
}

.sote-content {
    flex: 1;
    overflow-y: auto;
    background-color: #f4f6f9;
    padding: 20px 30px;
}

/* ====================== */
/* Tabs                   */
/* ====================== */
.st-mod-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: -1px;
    border-bottom: 0;
    padding: 0;
    list-style: none;
    position: relative;
    z-index: 2;
}

.st-mod-tab {
    padding: 8px 20px;
    background: #eee;
    color: #666;
    text-decoration: none;
    border-radius: 4px 4px 0 0;
    font-weight: bold;
    font-size: 13px;
    transition: all 0.2s;
    border: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    margin-bottom: 0;
}

.st-mod-tab:hover {
    background: #e5e5e5;
    color: #333;
}

.st-mod-tab.active {
    background: #fff;
    color: #007bb6;
    border-bottom: 1px solid #fff;
    position: relative;
    z-index: 3;
    border-top: 3px solid #007bb6;
}

/* ====================== */
/* Filtry                 */
/* ====================== */
.sf_admin_filter {
    margin-bottom: 20px;
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.st-flex-end-wrap {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-field {
    margin-right: 15px;
}

.filter-field label {
    display: block;
    font-size: 12px;
    font-weight: bold;
    color: #555;
    margin-bottom: 5px;
}

.filter-actions {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.st_input {
    width: 300px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 13px;
    font-family: inherit;
    height: 38px;
    box-sizing: border-box;
    vertical-align: top;
}

.st_select {
    padding: 0 6px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 13px;
    font-family: inherit;
    height: 38px;
    box-sizing: border-box;
    vertical-align: top;
}

.st_button {
    padding: 0 20px;
    background: #007bb6;
    border: none;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    border-radius: 3px;
    font-size: 13px;
    font-family: inherit;
    height: 38px;
    line-height: 38px;
    box-sizing: border-box;
    vertical-align: top;
    display: inline-block;
}

.st_button:hover {
    background: #006a9e;
}

.st_button_cancel {
    padding: 0 15px;
    text-decoration: none;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: #f8f9fa;
    font-size: 13px;
    display: inline-block;
    height: 38px;
    line-height: 36px;
    box-sizing: border-box;
    vertical-align: top;
}

.st_button_cancel:hover {
    background: #eee;
    color: #333;
}

/* ====================== */
/* Statystyki             */
/* ====================== */
.sf_admin_statistics {
    background: #fff;
    padding: 15px;
    border: 1px solid #ddd;
    border-top: 3px solid #007bb6;
    border-radius: 4px;
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.stat-item {
    border-right: 1px solid #eee;
    padding-right: 20px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 3px solid transparent;
}

.stat-item:last-child {
    border-right: 0;
}

.stat-item:hover {
    background: #f8f9fa;
}

.stat-item.active {
    background: #f0f7ff;
    border-bottom-color: #007bb6;
}

.stat-label {
    color: #666;
    font-size: 11px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}

.stat-val {
    font-size: 18px;
    color: #333;
    font-weight: bold;
}

.stat-matched,
.stat-val.stat-matched,
.stat-label.stat-matched {
    color: #007bb6;
}

.stat-unmatched,
.stat-val.stat-unmatched,
.stat-label.stat-unmatched {
    color: #d9534f;
}

.stat-duplicates,
.stat-val.stat-duplicates,
.stat-label.stat-duplicates {
    color: #f57c00;
}

.stat-concordance,
.stat-val.stat-concordance,
.stat-label.stat-concordance {
    color: #28a745;
}



.stat-spacer-pagination {
    flex-grow: 1;
    text-align: right;
}

/* ====================== */
/* Paginacja              */
/* ====================== */
.pagination-nav-top,
.pagination-nav {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
}

.pagination-container {
    margin-top: 25px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.pagination-container.pagination-no-margin {
    margin-top: 0;
}

.pagination-stats {
    display: flex;
    gap: 4px;
    align-items: center;
}

.pagination-text {
    font-size: 13px;
    color: #555;
    margin-right: 15px;
}

.st_pagination_btn {
    display: inline-block;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
    font-weight: bold;
    font-size: 13px;
    min-width: 36px;
    text-align: center;
}

.st_pagination_btn:hover {
    background: #f5f5f5;
}

.st_pagination_btn.active {
    background: #007bb6;
    border-color: #007bb6;
    color: #fff;
    cursor: default;
}

/* ====================== */
/* Tabela / Karta         */
/* ====================== */
.st-content-card {
    background: #fff;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.st_record_list {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.st_record_list th {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    padding: 12px 6px;
    font-weight: bold;
    color: #333;
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
}

.st_record_list td {
    padding: 10px 6px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    background: #fff;
    font-size: 13px;
}

.st_record_list tr:hover td {
    background: #f5faff;
}

.table-empty {
    text-align: center;
    padding: 20px !important;
    color: #666;
}

/* ====================== */
/* Inputy w tabeli        */
/* ====================== */
.list-input {
    width: 100%;
    padding: 0 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 13px;
    box-sizing: border-box;
    height: 30px;
    line-height: 28px;
    font-family: inherit;
}

/* ====================== */
/* Etykiety i sortowanie  */
/* ====================== */
.sap-label-top {
    color: #333;
    font-size: 13px;
    font-weight: bold;
    display: block;
    height: 18px;
    line-height: 18px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sap-label {
    display: block;
    height: 18px;
    line-height: 18px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sap-clickable-label {
    color: #007bb6;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px dashed transparent;
}

.sap-clickable-label:hover {
    opacity: 0.8;
    border-bottom-color: currentColor;
    color: #005a8d;
}

.sort-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* ====================== */
/* Ikony akcji            */
/* ====================== */
.list_icon {
    display: inline-flex;
    vertical-align: middle;
    text-decoration: none;
    margin: 0 5px;
}

.list_icon:hover {
    opacity: 0.8;
}

.svg-icon {
    background-color: currentColor;
    display: inline-block;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.s18 {
    width: 18px;
    height: 18px;
}

.blue-bg {
    background-color: #007bb6;
}

.red-bg {
    background-color: #d9534f;
}

.green-bg {
    background-color: #28a745;
}

.tac {
    text-align: center;
}

/* ====================== */
/* Statusy wierszy        */
/* ====================== */
.row-success td {
    background-color: #f0fff0 !important;
}

.row-error td {
    background-color: #fff5f5 !important;
}

.btn-save {
    color: #d9534f;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-save:hover {
    color: #c9302c;
}

.btn-save.success {
    color: #5cb85c;
}

/* ====================== */
/* Klasy pomocnicze       */
/* ====================== */
.pagination-info {
    font-size: 12px;
    color: #666;
    margin-right: 20px;
}

.col-id {
    font-family: monospace;
    font-size: 11px;
    padding-left: 10px;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-gap-10 {
    gap: 10px;
}

.flex-gap-15 {
    gap: 15px;
}

/* Szerokości kolumn */
.w40 {
    width: 40px;
}

.w50 {
    width: 50px;
}

.w60 {
    width: 60px;
}

.w80 {
    width: 80px;
}

.w100 {
    width: 100px;
}

.w110 {
    width: 110px;
}

.w120 {
    width: 120px;
}

.w150 {
    width: 150px;
}

.w200 {
    width: 200px;
}

.w250 {
    width: 250px;
}

.nowrap {
    white-space: nowrap;
}

.opacity-3 {
    opacity: 0.3;
}

.mask-preview {
    -webkit-mask-image: url(/images/icons/preview.svg);
    mask-image: url(/images/icons/preview.svg);
}

.mask-edit {
    -webkit-mask-image: url(/images/icons/edit.svg);
    mask-image: url(/images/icons/edit.svg);
}

.mask-save {
    -webkit-mask-image: url(/images/icons/save.svg);
    mask-image: url(/images/icons/save.svg);
}

.header-container {
    margin-bottom: 20px;
}

.page-title {
    font-size: 24px;
    font-weight: normal;
    margin: 0 0 5px 0;
    color: #333;
}

.btn-info-custom {
    background: #17a2b8 !important;
    text-decoration: none;
}

.btn-success-custom {
    background: #28a745 !important;
}

.m0 {
    margin: 0;
}

.mb4 {
    margin-bottom: 4px;
}

.c333 {
    color: #333;
}

.cddd {
    color: #ddd;
}

.c-blue {
    color: #007bb6;
}

.c-aaa {
    color: #aaa;
}

.fs12 {
    font-size: 12px;
}

.w35p {
    width: 35%;
}

.mb3 {
    margin-bottom: 12px;
}

.img-thumbnail-custom {
    max-width: 50px;
    max-height: 50px;
    border: 1px solid #ddd;
    padding: 2px;
    border-radius: 3px;
}

.st-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
}