/* --- NOWOCZESNE STYLE (Modern Clean UI) --- */

:root {
    --primary-color: #2563eb; /* Nowoczesny niebieski */
    --primary-hover: #1d4ed8;
    --bg-body: #f3f4f6;       /* Jasnoszare tło całej strony */
    --bg-card: #ffffff;
    --text-main: #111827;
    --text-muted: #6b7280;
    --border-color: #e5e7eb99;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius: 8px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.5;
}

/* Layout Fixes */
.tb-main-content {
    padding: 20px;
}

/* Header / Navbar Styling */
.tb-header {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 20px;
  
  
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
}

.tb-logo img {
    max-height: 40px;
}

/* Breadcrumbs */
.tb-breadcrumb {
    margin-bottom: 24px;
    background: transparent;
}
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}
.breadcrumb > li + li:before {
    color: #d1d5db;
    content: "/\00a0";
}
.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb a:hover {
    color: var(--primary-color);
}

/* Główne kontenery (Karty) */
.x-type-data-table, 
.af-form,
.t-detail {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

/* Pola detali (Szczegóły) */
.detail-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 4px;
    display: block;
}

.detail-val {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
    min-height: 24px;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 15px;
}

/* Tabele */
.table-wrap {
    overflow-x: auto;
}

.table {
    margin-bottom: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--border-color); /* Dodano zewnętrzne obramowanie */
    border-radius: 6px;
    overflow: hidden;
}

.table > thead > tr > th {
    background-color: #f9fafb;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color); /* Dodano linię pionową */
    border-top: none;
}
.table > thead > tr > th:last-child {
    border-right: none;
}

.table > tbody > tr > td {
    padding: 14px 16px;
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color); /* Dodano linię pionową */
    vertical-align: middle;
    color: #374151;
    font-size: 14px;
}
.table > tbody > tr > td:last-child {
    border-right: none;
}

/* Hover effect na wierszach */
.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: transparent; /* Reset bootstrapa */
}
.table-hover > tbody > tr:hover {
    background-color: #f3f4f6;
}

/* Przyciski */
.btn {
    border-radius: 6px;
    font-weight: 500;
    padding: 8px 16px;
    font-size: 13px;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-default, .btn-outline {
    background-color: #fff;
    border-color: #d1d5db;
    color: #374151;
}

.btn-default:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
    color: #111827;
}

/* Status Badges - Pastelowy styl */
.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.02em;
}







/* Formularze i Inputy */
.form-control {
    border-radius: 6px;
    border: 1px solid #d1d5db;
    padding: 8px 12px;
    height: 40px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Zakładki (Tabs) */
.nav-tabs {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.nav-tabs > li > a {
    border: none;
    color: var(--text-muted);
    font-weight: 500;
    padding: 10px 20px;
    background: transparent;
    border-bottom: 2px solid transparent;
    margin-right: 4px;
}

.nav-tabs > li.active > a, 
.nav-tabs > li.active > a:hover, 
.nav-tabs > li.active > a:focus {
    border: none;
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
}

.nav-tabs > li > a:hover {
    color: var(--text-main);
    background-color: transparent;
    border-bottom: 2px solid #d1d5db;
}

/* Sekcje akcji nad tabelą */
.table-actions {
    background: transparent;
    border: none;
    padding: 0 0 16px 0;
}

/* Specyficzne poprawki dla Twojego kodu */
.tb-menu-title {
    font-weight: 500;
}

/* Style dla .table-bordered (jeśli używana jest klasa bootstrapowa) */
.table-bordered {
    border: 1px solid var(--border-color);
}
.table-bordered > thead > tr > th, 
.table-bordered > tbody > tr > td {
    border: 1px solid var(--border-color);
}