@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Crimson+Pro:ital,wght@0,300;0,400;1,300&display=swap');

/* ═══════════════════════════════════════════════════════════
   OILCORP — GAME DESIGN SYSTEM
   Dark luxury · Gold accents · Industrial typography
   ═══════════════════════════════════════════════════════════ */

:root {
    --gold:        #c8a84b;
    --gold2:       #e8cc7a;
    --gold3:       #a08030;
    --gold-dim:    rgba(200,168,75,.12);
    --gold-border: rgba(200,168,75,.25);
    --gold-glow:   rgba(200,168,75,.3);

    --bg:          #08080f;
    --bg2:         #0f0f18;
    --bg3:         #161622;
    --bg4:         #1e1e2e;
    --bg5:         #252535;

    --text:        #e8e8f0;
    --text2:       rgba(232,232,240,.6);
    --text3:       rgba(232,232,240,.35);

    --red:         #e05555;
    --red-dim:     rgba(224,85,85,.12);
    --green:       #4ec97a;
    --green-dim:   rgba(78,201,122,.1);
    --blue:        #5b9cf6;
    --orange:      #f0a050;

    --border:      rgba(200,168,75,.18);
    --border2:     rgba(255,255,255,.06);

    --radius:      8px;
    --radius-lg:   12px;
    --shadow:      0 8px 32px rgba(0,0,0,.55);
    --shadow-lg:   0 20px 60px rgba(0,0,0,.7);
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 15%, rgba(200,168,75,.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 85%, rgba(200,168,75,.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ── LAYOUT ──────────────────────────────────────────────── */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 60px;
    position: relative;
    z-index: 1;
}

/* ── HEADER ──────────────────────────────────────────────── */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.header::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0;
    width: 100px; height: 1px;
    background: linear-gradient(90deg, var(--gold), transparent);
}

.header h1 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--gold);
}

.header h1 span { color: var(--text); font-weight: 300; }

.header h1 small {
    display: block;
    font-size: 8px;
    letter-spacing: 5px;
    color: var(--text3);
    font-weight: 400;
    margin-top: 3px;
    text-transform: uppercase;
}

.user-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.user-greeting {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--text3);
    text-transform: uppercase;
}

.main-content { min-height: calc(100vh - 200px); }

/* ── CARDS ───────────────────────────────────────────────── */
.card {
    background: linear-gradient(145deg, var(--bg3), var(--bg2));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px;
    margin-bottom: 22px;
    box-shadow: var(--shadow);
    transition: border-color .25s, box-shadow .25s;
}

.card:hover {
    border-color: rgba(200,168,75,.32);
    box-shadow: 0 12px 40px rgba(0,0,0,.6);
}

.card h2 {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card h2::before {
    content: '';
    display: inline-block;
    width: 3px; height: 13px;
    background: var(--gold);
    border-radius: 2px;
    flex-shrink: 0;
}

.card-warning { border-left: 3px solid var(--orange); }
.card-danger  { border-left: 3px solid var(--red); }
.card-success { border-left: 3px solid var(--green); }

/* ── STATUS GRID ─────────────────────────────────────────── */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.status-item {
    background: var(--bg4);
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color .2s;
}

.status-item:hover { border-color: var(--border); }

.status-label {
    font-size: 9px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text3);
    font-weight: 700;
}

.status-value {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
}

/* ── COLOR UTILITIES ─────────────────────────────────────── */
.money, .green  { color: var(--green) !important; }
.danger, .red   { color: var(--red) !important; }
.warning        { color: var(--orange) !important; }
.storage, .blue { color: var(--blue) !important; }
.gold           { color: var(--gold) !important; }
.muted          { color: var(--text2); }
.muted2         { color: var(--text3); }
.success        { color: var(--green); }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
    line-height: 1;
}

.btn:disabled { opacity: .35; cursor: not-allowed; pointer-events: none; }

.btn-primary {
    background: var(--gold);
    color: #000;
}
.btn-primary:hover:not(:disabled) {
    background: var(--gold2);
    box-shadow: 0 4px 20px var(--gold-glow);
    transform: translateY(-1px);
}

.btn-success {
    background: transparent;
    color: var(--green);
    border: 1px solid rgba(78,201,122,.3);
}
.btn-success:hover:not(:disabled) {
    background: var(--green-dim);
    border-color: var(--green);
}

.btn-danger {
    background: transparent;
    color: var(--red);
    border: 1px solid rgba(224,85,85,.3);
}
.btn-danger:hover:not(:disabled) {
    background: var(--red-dim);
    border-color: var(--red);
}

.btn-warning {
    background: transparent;
    color: var(--orange);
    border: 1px solid rgba(240,160,80,.3);
}
.btn-warning:hover:not(:disabled) { background: rgba(240,160,80,.1); border-color: var(--orange); }

.btn-secondary {
    background: var(--bg4);
    color: var(--text2);
    border: 1px solid var(--border2);
}
.btn-secondary:hover:not(:disabled) { background: var(--bg5); color: var(--text); border-color: var(--border); }

.btn-info {
    background: transparent;
    color: var(--blue);
    border: 1px solid rgba(91,156,246,.3);
}
.btn-info:hover:not(:disabled) { background: rgba(91,156,246,.1); border-color: var(--blue); }

.btn-full { width: 100%; }
.btn-sm   { padding: 6px 12px; font-size: 10px; letter-spacing: 1px; }

/* ── FORMS ───────────────────────────────────────────────── */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-label, label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text3);
}

.form-input, input[type="text"], input[type="email"],
input[type="password"], input[type="number"],
select, textarea {
    width: 100%;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    padding: 11px 14px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    outline: none;
    transition: border-color .2s, background .2s;
    -webkit-appearance: none;
    appearance: none;
}

.form-input:focus, input:focus, select:focus, textarea:focus {
    border-color: var(--gold);
    background: rgba(255,255,255,.06);
}

.form-input::placeholder, input::placeholder { color: var(--text3); }
select option { background: var(--bg3); color: var(--text); }
.form-group small { font-size: 10px; color: var(--text3); }

.password-wrap { position: relative; }
.btn-show-pass {
    position: absolute; right: 12px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    color: var(--text3); cursor: pointer;
    font-size: 14px; padding: 2px; line-height: 1;
    transition: color .2s;
}
.btn-show-pass:hover { color: var(--gold); }

/* ── ALERTS ──────────────────────────────────────────────── */
.alert, .error {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 12px;
    letter-spacing: .3px;
    margin-bottom: 18px;
}

.alert-error, .error {
    background: var(--red-dim);
    border: 1px solid rgba(224,85,85,.25);
    color: var(--red);
}

.alert-success {
    background: var(--green-dim);
    border: 1px solid rgba(78,201,122,.2);
    color: var(--green);
}

.alert-warning {
    background: rgba(240,160,80,.08);
    border: 1px solid rgba(240,160,80,.22);
    color: var(--orange);
}

.alert-info {
    background: rgba(91,156,246,.07);
    border: 1px solid rgba(91,156,246,.18);
    color: var(--blue);
}

/* ── BAILIFF ALERT ───────────────────────────────────────── */
.bailiff-alert {
    border-left: 6px solid #e74c3c;
    background: linear-gradient(145deg, rgba(231,76,60,0.25), rgba(231,76,60,0.15));
    border: 2px solid #e74c3c;
    box-shadow: 0 0 30px rgba(231,76,60,0.4);
}

.bailiff-heading {
    color: #e74c3c;
}

.bailiff-stage-info {
    margin: 16px 0;
    padding: 12px;
    background: rgba(231,76,60,0.1);
    border-radius: 4px;
}

.bailiff-stage-info p {
    margin: 0 0 8px 0;
}

.bailiff-stage-info p:last-child {
    margin: 0;
}

.bailiff-stage-label {
    font-size: 15px;
}

.bailiff-stage-time,
.bailiff-stage-debt {
    color: rgba(255,255,255,0.7);
}

.bailiff-seized-summary {
    margin: 12px 0;
    padding: 12px;
    background: rgba(0,0,0,0.3);
    border-radius: 4px;
}

.bailiff-seized-title {
    margin: 0 0 8px 0;
    font-weight: bold;
    color: #f39c12;
}

.bailiff-seized-list {
    margin: 0;
    padding-left: 20px;
    color: rgba(255,255,255,0.8);
}

.bailiff-seized-list li {
    margin: 4px 0;
}

.bailiff-wells-critical {
    color: #e74c3c;
    font-weight: bold;
}

.bailiff-wells-box {
    margin: 12px 0;
    padding: 12px;
    background: rgba(231,76,60,0.2);
    border: 1px solid #e74c3c;
    border-radius: 4px;
}

.bailiff-wells-title {
    margin: 0 0 8px 0;
    font-weight: bold;
    color: #e74c3c;
}

.bailiff-wells-list {
    margin: 0;
    padding-left: 20px;
    color: rgba(255,255,255,0.9);
}

.bailiff-wells-list li {
    margin: 6px 0;
}

.bailiff-wells-warning {
    margin: 8px 0 0 0;
    color: #f39c12;
    font-size: 13px;
}

.bailiff-actions {
    margin-top: 16px;
}

.bailiff-next-warning {
    color: #e74c3c;
    font-size: 13px;
    margin-left: 8px;
}

/* ── LOGIN / REGISTER PAGE ───────────────────────────────── */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    animation: fadeUp .5s ease-out;
}

.login-card h1 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--gold);
    text-align: center;
    margin-bottom: 4px;
}

.login-card h1 span { color: var(--text); font-weight: 300; }

.login-subtitle {
    text-align: center;
    font-size: 9px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text3);
    margin-bottom: 34px;
    margin-top: 6px;
}

.forgot-link {
    text-align: right;
    font-size: 11px;
    margin-top: -8px;
    margin-bottom: 16px;
}

.login-footer {
    text-align: center;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border2);
    font-size: 11px;
    color: var(--text3);
}

.link-primary { color: var(--gold); text-decoration: none; transition: color .2s; }
.link-primary:hover { color: var(--gold2); }

/* ── ACTION / WELL GRIDS ─────────────────────────────────── */
.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: 12px;
}

.well-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 18px;
}

.well-card {
    background: var(--bg4);
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    padding: 18px;
    border-left: 3px solid var(--green);
    transition: border-color .2s, box-shadow .2s;
}

.well-card:hover { border-color: var(--border); box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.well-card h3 { font-size: 13px; font-weight: 700; margin-bottom: 10px; }

.well-card-seized {
    background: linear-gradient(145deg, rgba(231,76,60,0.15), rgba(231,76,60,0.08));
    border: 2px solid #e74c3c;
    border-left: 4px solid #e74c3c;
    box-shadow: 0 0 20px rgba(231,76,60,0.3);
}

.well-card-seized:hover {
    box-shadow: 0 0 30px rgba(231,76,60,0.5);
}

.well-status-seized {
    font-weight: bold;
    text-transform: uppercase;
    color: var(--red);
    animation: seizePulse 2s infinite;
}

@keyframes seizePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ── DIRECTOR NOTIFICATIONS ──────────────────────────────── */
.notifications-panel {
    background: linear-gradient(145deg, var(--bg3), var(--bg2));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px;
    margin-bottom: 22px;
    box-shadow: var(--shadow);
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.notifications-header h2 {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.notifications-icon {
    font-size: 18px;
}

.notifications-count {
    background: var(--red);
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
}

.btn-mark-all-read {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text2);
    padding: 6px 12px;
    border-radius: var(--radius);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-mark-all-read:hover {
    background: var(--bg4);
    color: var(--text);
    border-color: var(--gold);
}

.notifications-alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 12px;
    font-weight: 600;
}

.notifications-alert.critical {
    background: rgba(231,76,60,0.15);
    border: 1px solid #e74c3c;
    color: #e74c3c;
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--bg4);
    border: 1px solid var(--border2);
    border-left: 4px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s;
}

.notification-item:hover {
    background: var(--bg5);
    border-color: var(--gold);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.notification-item.priority-critical {
    border-left-color: #e74c3c;
    background: linear-gradient(145deg, rgba(231,76,60,0.08), var(--bg4));
}

.notification-item.priority-high {
    border-left-color: var(--orange);
}

.notification-item.priority-medium {
    border-left-color: var(--gold);
}

.notification-item.priority-low {
    border-left-color: var(--green);
}

.notification-icon {
    font-size: 32px;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(200,168,75,0.1);
    border-radius: 50%;
}

.notification-content {
    flex: 1;
}

.notification-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.notification-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.notification-priority-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(255,255,255,0.05);
    white-space: nowrap;
}

.notification-message {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text2);
    margin: 0 0 12px 0;
}

.notification-meta {
    display: flex;
    gap: 16px;
    font-size: 11px;
    color: var(--text3);
    margin-bottom: 12px;
}

.notification-time,
.notification-expires {
    display: flex;
    align-items: center;
    gap: 4px;
}

.notification-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.notification-action-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* ── WELL SHOP ───────────────────────────────────────────── */
.well-shop-grid { display: grid; gap: 18px; margin-top: 18px; }

.well-shop-card {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    border-left: 3px solid var(--gold);
    transition: box-shadow .2s;
}

.well-shop-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,.4); }
.well-shop-title { font-size: 14px; font-weight: 700; margin-bottom: 12px; }

.well-shop-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.well-shop-stat { display: flex; justify-content: space-between; align-items: center; }
.well-shop-label { font-size: 10px; color: var(--text3); font-weight: 600; letter-spacing: 1px; }
.well-shop-value { font-size: 13px; font-weight: 700; }
.well-shop-description { color: var(--text2); font-size: 12px; line-height: 1.5; margin: 10px 0; }
.well-shop-actions { margin-top: 12px; text-align: right; }
.well-shop-form { margin: 0; }

/* ── LIMIT / TREND ALERTS ────────────────────────────────── */
.limit-alert {
    background: var(--red-dim);
    color: var(--red);
    padding: 13px 16px;
    border-radius: var(--radius);
    margin: 14px 0;
    border-left: 3px solid var(--red);
    font-weight: 600;
    font-size: 12px;
}

.trend-alert {
    padding: 16px 18px;
    border-radius: var(--radius);
    margin: 14px 0;
    border-left: 3px solid;
    animation: trendPulse 3s infinite;
}

.trend-crisis    { background: rgba(224,85,85,.08);  border-left-color: var(--red);    color: var(--red); }
.trend-boom      { background: rgba(78,201,122,.08); border-left-color: var(--green);  color: var(--green); }
.trend-war       { background: rgba(240,160,80,.08); border-left-color: var(--orange); color: var(--orange); }
.trend-discovery { background: rgba(91,156,246,.08); border-left-color: var(--blue);   color: var(--blue); }
.trend-winter    { background: rgba(155,89,182,.08); border-left-color: #9b59b6;       color: #c39bd3; }
.trend-opec      { background: rgba(200,168,75,.07); border-left-color: var(--gold);   color: var(--gold); }

.trend-header {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: .6;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,.05);
}

.trend-message { font-size: 14px; font-weight: 600; line-height: 1.5; }
.trend-duration { font-size: 11px; opacity: .7; margin-top: 6px; }

@keyframes trendPulse {
    0%, 100% { box-shadow: none; }
    50%       { box-shadow: 0 4px 20px rgba(0,0,0,.35); }
}

/* ── URGENT ALERT ────────────────────────────────────────── */
.urgent-alert-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.85);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
    animation: fadeIn .3s ease-out;
    backdrop-filter: blur(4px);
}

.urgent-alert-box {
    background: var(--bg3);
    border: 1px solid rgba(224,85,85,.35);
    border-radius: var(--radius-lg);
    max-width: 500px; width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,.7);
    animation: slideUp .3s ease-out;
    overflow: hidden;
}

.urgent-alert-header {
    background: rgba(224,85,85,.12);
    border-bottom: 1px solid rgba(224,85,85,.2);
    color: var(--red);
    padding: 15px 20px;
    display: flex; align-items: center; justify-content: space-between;
}

.urgent-alert-icon { font-size: 16px; margin-right: 10px; }

.urgent-alert-title {
    font-size: 10px; font-weight: 700;
    letter-spacing: 2.5px; text-transform: uppercase;
    flex: 1; text-align: center;
}

.urgent-alert-close {
    background: none; border: none;
    color: var(--text3); cursor: pointer;
    font-size: 18px; padding: 0;
    width: 26px; height: 26px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: all .2s;
}
.urgent-alert-close:hover { background: rgba(255,255,255,.08); color: var(--text); }

.urgent-alert-content {
    padding: 22px;
    font-size: 13px;
    color: var(--text);
    text-align: center;
    line-height: 1.6;
}

.urgent-alert-actions {
    padding: 14px 22px;
    background: var(--bg4);
    border-top: 1px solid var(--border2);
    display: flex; gap: 10px; justify-content: center;
}

/* ── MY OFFERS TABLE ─────────────────────────────────────── */
.my-offers-table {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.my-offers-table table { width: 100%; border-collapse: collapse; }

.my-offers-table thead tr { background: var(--bg4); }

.my-offers-table th {
    padding: 11px 13px;
    text-align: left;
    font-size: 9px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    color: var(--text3);
    border-bottom: 1px solid var(--border);
}

.my-offers-table td {
    padding: 11px 13px;
    border-bottom: 1px solid var(--border2);
    font-size: 13px;
}

.my-offers-table tbody tr:hover { background: rgba(255,255,255,.02); }
.my-offers-table tbody tr:last-child td { border-bottom: none; }

.status-pending   { color: var(--orange); font-size: 10px; font-weight: 700; letter-spacing: 1px; }
.status-completed { color: var(--green);  font-size: 10px; font-weight: 700; letter-spacing: 1px; }
.status-cancelled { color: var(--red);    font-size: 10px; font-weight: 700; letter-spacing: 1px; }
.status-success   { color: var(--green);  font-weight: 600; }
.status-warning   { color: var(--orange); font-weight: 600; }

.offer-actions { display: flex; gap: 6px; justify-content: center; }
.date-cell     { font-size: 11px; color: var(--text2); }
.actions-cell  { text-align: center; }
.empty-message { text-align: center; color: var(--text3); margin: 22px 0; font-size: 12px; letter-spacing: 1px; }
.inactive-text { color: var(--text3); font-size: 11px; }

/* ── INFO BOX ────────────────────────────────────────────── */
.info-box {
    margin-top: 12px;
    padding: 11px 14px;
    background: rgba(200,168,75,.05);
    border: 1px solid rgba(200,168,75,.14);
    border-radius: var(--radius);
    font-size: 12px;
    color: var(--text2);
}

.info-box-blue {
    background: rgba(91,156,246,.05);
    border: 1px solid rgba(91,156,246,.14);
    color: var(--text2);
}

/* ── STARTER PACK ────────────────────────────────────────── */
.starter-pack {
    margin-top: 26px;
    padding: 16px;
    background: rgba(200,168,75,.06);
    border: 1px solid rgba(200,168,75,.18);
    border-radius: var(--radius);
}

.starter-pack h3 {
    font-size: 9px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}

.starter-pack ul {
    list-style: none;
    padding: 0;
    color: var(--text2);
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* ── REPAY SECTION ───────────────────────────────────────── */
.repay-section {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border2);
}

.repay-title {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text3);
    margin-bottom: 10px;
}

.repay-form-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.repay-form-multi {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.repay-select {
    background: var(--bg4);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    padding: 8px 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    outline: none;
    cursor: pointer;
    transition: border-color .2s;
}

.repay-select:focus { border-color: var(--gold); }

/* ── NEGOTIATION SECTION ────────────────────────────── */
.negotiation-section {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border2);
}

.negotiation-approved {
    background: rgba(78,201,122,0.08);
    border: 1px solid rgba(78,201,122,0.2);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
}

.negotiation-approved p {
    margin: 6px 0;
    font-size: 13px;
    color: var(--text);
}

.negotiation-option {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
}

.negotiation-option h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 8px;
}

.negotiation-form {
    margin-top: 12px;
}

/* ── LOAN CARDS ──────────────────────────────────────────── */
.loan-card {
    background: var(--bg4);
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 14px;
    transition: border-color .2s;
}

.loan-card:hover { border-color: var(--border); }
.loan-late { border-left: 3px solid var(--red); }

.loan-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.status-active { background: var(--green-dim); color: var(--green); border: 1px solid rgba(78,201,122,.18); }
.status-late   { background: var(--red-dim);   color: var(--red);   border: 1px solid rgba(224,85,85,.18); }

/* ── NAVIGATION ──────────────────────────────────────────── */
.page-nav {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 22px;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
    text-align: center;
    padding: 22px 0 0;
    margin-top: 50px;
    border-top: 1px solid var(--border2);
    color: var(--text3);
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ── FOOTER NAV — linki stopki (renderowane przez templates/footer.php) ── */
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 14px;
    margin-bottom: 10px;
}

.footer-link {
    font-size: 10px;
    color: var(--text3);
    text-decoration: none;
    letter-spacing: .5px;
    text-transform: uppercase;
    transition: color .12s;
}
.footer-link:hover { color: var(--gold); }

/* ── URGENT OFFER ITEM ───────────────────────────────────── */
.urgent-offer-item {
    margin: 8px 0;
    padding: 11px 13px;
    background: var(--bg4);
    border: 1px solid var(--border2);
    border-radius: var(--radius);
}

/* ── MISC ────────────────────────────────────────────────── */
.form-grid { display: grid; gap: 14px; }

/* ── ANIMATIONS ──────────────────────────────────────────── */
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp  { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }

.fade-in { animation: fadeUp .45s ease-out; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .container { padding: 0 14px 40px; }

    .header {
        flex-direction: column;
        text-align: center;
        gap: 14px;
        padding: 16px 0;
    }

    .header h1 { font-size: 16px; }

    .status-grid { grid-template-columns: 1fr 1fr; }
    .action-grid { grid-template-columns: 1fr; }
    .well-grid   { grid-template-columns: 1fr; }

    .repay-form-inline,
    .repay-form-multi { flex-direction: column; align-items: stretch; }

    .login-card { padding: 26px 20px; }
}

@media (max-width: 480px) {
    .status-grid { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════════════════════════
   technical.css — Dział Techniczny OilCorp
   ═══════════════════════════════════════════════════════════ */

/* ── LAYOUT ── */
body { margin: 0; }

.tech-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    border-bottom: 1px solid rgba(200,168,75,.18);
    background: rgba(8,8,15,.96);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.t-logo {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 5px;
    color: #c8a84b;
    text-decoration: none;
}
.t-logo span { color: #e8e8f0; font-weight: 300; }

.t-section {
    font-size: 11px;
    letter-spacing: 3px;
    color: rgba(232,232,240,.35);
    text-transform: uppercase;
    margin-left: 16px;
}

.t-back {
    font-size: 10px;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: rgba(232,232,240,.4);
    text-decoration: none;
    text-transform: uppercase;
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 8px;
    transition: all .2s;
}
.t-back:hover { color: #c8a84b; border-color: rgba(200,168,75,.3); }

.t-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 24px 60px;
}

/* ── TABS ── */
.t-tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(200,168,75,.1);
}

.t-tab {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 8px;
    color: rgba(232,232,240,.4);
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}
.t-tab:hover { color: #c8a84b; border-color: rgba(200,168,75,.25); }
.t-tab.active {
    background: rgba(200,168,75,.12);
    border-color: rgba(200,168,75,.4);
    color: #c8a84b;
}

.t-tab .tbadge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: #e05555;
    color: #fff;
    border-radius: 8px;
    font-size: 9px;
    margin-left: 5px;
}
.t-tab .tbadge-ok { background: #4ec97a; }

/* ── POWIADOMIENIA ── */
.notif-wrap {
    background: rgba(224,85,85,.07);
    border: 1px solid rgba(224,85,85,.22);
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 22px;
}
.notif-hdr {
    font-size: 9px;
    letter-spacing: 2.5px;
    color: rgba(224,85,85,.7);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10px;
}
.notif-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(224,85,85,.1);
}
.notif-row:last-child { border-bottom: none; padding-bottom: 0; }
.notif-row:first-of-type { padding-top: 0; }
.notif-msg { font-size: 13px; color: #e8e8f0; line-height: 1.5; flex: 1; }
.notif-time { font-size: 10px; color: rgba(232,232,240,.3); white-space: nowrap; }
.notif-x {
    background: none;
    border: none;
    color: rgba(224,85,85,.5);
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    line-height: 1;
    transition: color .2s;
    flex-shrink: 0;
}
.notif-x:hover { color: #e05555; }

/* ── KARTY ── */
.g-card {
    background: linear-gradient(145deg, #161622, #0f0f18);
    border: 1px solid rgba(200,168,75,.15);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}
.g-card-title {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #c8a84b;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(200,168,75,.12);
    display: flex;
    align-items: center;
    gap: 10px;
}
.g-card-title::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 13px;
    background: #c8a84b;
    border-radius: 2px;
    flex-shrink: 0;
}

/* ── KIEROWNIK ── */
.mgr-card { display: flex; gap: 20px; align-items: center; }
.mgr-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(200,168,75,.15);
    border: 2px solid rgba(200,168,75,.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.mgr-name { font-size: 16px; font-weight: 700; }
.mgr-role {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #c8a84b;
    margin-top: 3px;
}
.mgr-stats { display: flex; gap: 14px; margin-top: 8px; flex-wrap: wrap; }
.mgr-stat { font-size: 11px; color: rgba(232,232,240,.4); }
.mgr-stat span { color: #e8e8f0; font-weight: 600; }

/* ── SIATKA INŻYNIERÓW ── */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
}
.staff-card {
    background: rgba(22,22,34,.8);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 10px;
    padding: 18px;
    transition: border-color .2s;
}
.staff-card:hover { border-color: rgba(200,168,75,.2); }
.staff-card.busy { border-left: 3px solid #c8a84b; }
.staff-hdr {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}
.staff-name { font-size: 14px; font-weight: 700; }
.staff-spec {
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(232,232,240,.4);
    margin-top: 3px;
}
.staff-spec-icon { font-size: 18px; }

/* Skill bar */
.skill-bar-row { margin-top: 12px; }
.skill-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: rgba(232,232,240,.35);
    margin-bottom: 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.skill-bar {
    height: 4px;
    background: rgba(255,255,255,.06);
    border-radius: 2px;
    overflow: hidden;
}
.skill-fill {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, #c8a84b, #e8cc7a);
}

/* Aktywne zadanie w karcie inżyniera */
.task-running {
    margin-top: 12px;
    padding: 10px 12px;
    background: rgba(200,168,75,.06);
    border: 1px solid rgba(200,168,75,.15);
    border-radius: 8px;
}
.task-running-label {
    font-size: 9px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(232,232,240,.35);
    margin-bottom: 4px;
}
.task-running-title { font-size: 12px; font-weight: 600; color: #c8a84b; }
.task-running-time { font-size: 11px; color: rgba(232,232,240,.5); margin-top: 3px; }
.task-running-bar {
    height: 3px;
    background: rgba(255,255,255,.06);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 8px;
}
.task-running-fill {
    height: 100%;
    background: #c8a84b;
    border-radius: 2px;
    transition: width .3s;
}

/* ── BADGE ── */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.b-active { background: rgba(78,201,122,.1);  color: #4ec97a; border: 1px solid rgba(78,201,122,.2); }
.b-busy   { background: rgba(200,168,75,.1);  color: #c8a84b; border: 1px solid rgba(200,168,75,.2); }
.b-broken { background: rgba(224,85,85,.1);   color: #e05555; border: 1px solid rgba(224,85,85,.2); }
.b-paused { background: rgba(240,160,80,.1);  color: #f0a050; border: 1px solid rgba(240,160,80,.2); }

/* ── FORMULARZE ── */
.hire-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr auto;
    gap: 10px;
    align-items: end;
}
@media(max-width:900px) { .hire-form { grid-template-columns: 1fr 1fr; } }

.task-form {
    background: rgba(200,168,75,.05);
    border: 1px solid rgba(200,168,75,.12);
    border-radius: 8px;
    padding: 16px;
    margin-top: 12px;
}
.task-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 10px;
    align-items: end;
}
@media(max-width:768px) { .task-form-grid { grid-template-columns: 1fr 1fr; } }

/* ── LISTA ZADAŃ ── */
.task-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: rgba(22,22,34,.8);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 8px;
    margin-bottom: 8px;
}
.task-item.in_progress { border-left: 3px solid #c8a84b; }
.task-item.completed   { border-left: 3px solid #4ec97a; opacity: .75; }
.task-item.failed      { border-left: 3px solid #e05555; opacity: .6; }
.task-item.cancelled   { border-left: 3px solid #555; opacity: .5; }
.task-item.task-overdue { border-left: 3px solid #5b9cf6; background: rgba(91,156,246,.04); }
.task-icon  { font-size: 20px; flex-shrink: 0; }
.task-info  { flex: 1; min-width: 0; }
.task-title { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-meta  { font-size: 11px; color: rgba(232,232,240,.4); margin-top: 3px; }
.task-meta .sep { margin: 0 4px; opacity: .4; }
.task-side  { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.task-time  { font-size: 12px; font-weight: 600; color: #c8a84b; text-align: right; }
.task-time.done     { color: #4ec97a; }
.task-time.failed-t { color: #e05555; }
.task-date  { font-size: 10px; font-weight: 400; color: rgba(232,232,240,.35); margin-top: 2px; }
.task-overdue-lbl { font-size: 12px; color: #5b9cf6; font-weight: 600; }

/* Progress bar w zadaniu */
.task-prog-row { display: flex; align-items: center; gap: 8px; margin-top: 7px; }
.task-prog-bar  { flex: 1; height: 4px; background: rgba(255,255,255,.08); border-radius: 2px; overflow: hidden; }
.task-prog-fill { height: 100%; width: var(--bar-w, 0%); background: linear-gradient(90deg, #c8a84b, #f0d080); border-radius: 2px; transition: width .5s; }
.task-prog-pct  { font-size: 10px; color: rgba(232,232,240,.4); min-width: 28px; text-align: right; }

/* Przycisk anulowania zadania */
.cancel-form { margin: 0; }
.btn-cancel-task {
    background: rgba(224,85,85,.12);
    border: 1px solid rgba(224,85,85,.3);
    color: #e05555;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    letter-spacing: .3px;
    transition: background .15s, border-color .15s;
    white-space: nowrap;
}
.btn-cancel-task:hover { background: rgba(224,85,85,.22); border-color: rgba(224,85,85,.5); }

/* ── KOLEJKA ZADAŃ ── */
.section-h-note { font-size: 11px; font-weight: 400; color: rgba(232,232,240,.35); margin-left: 8px; }
.queue-list { margin-bottom: 16px; }
.queue-header {
    display: grid;
    grid-template-columns: 1.5fr 1.2fr 1fr 1fr 40px;
    gap: 10px;
    padding: 6px 14px;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(232,232,240,.3);
    border-bottom: 1px solid rgba(255,255,255,.06);
    margin-bottom: 4px;
}
.queue-row {
    display: grid;
    grid-template-columns: 1.5fr 1.2fr 1fr 1fr 40px;
    gap: 10px;
    align-items: center;
    padding: 10px 14px;
    background: rgba(22,22,34,.6);
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 6px;
    margin-bottom: 4px;
    font-size: 13px;
}
.queue-row:hover { background: rgba(200,168,75,.04); border-color: rgba(200,168,75,.1); }
.queue-worker { font-weight: 600; }
.queue-spec   { display: block; font-size: 10px; font-weight: 400; color: rgba(232,232,240,.4); margin-top: 1px; }
.queue-task   { font-size: 12px; }
.queue-well   { font-size: 12px; }
.queue-time   { font-size: 11px; }
.queue-actions { display: flex; justify-content: center; }
.btn-cancel-queue {
    background: none;
    border: 1px solid rgba(224,85,85,.25);
    color: rgba(224,85,85,.6);
    width: 28px; height: 28px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    transition: all .15s;
}
.btn-cancel-queue:hover { background: rgba(224,85,85,.15); color: #e05555; border-color: rgba(224,85,85,.5); }

/* ── PANEL BHP / HSE ── */
.hse-panel {
    border-radius: 10px;
    padding: 20px 22px;
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,.08);
}
.hse-panel--active   { background: rgba(78,201,122,.06); border-color: rgba(78,201,122,.2); }
.hse-panel--inactive { background: rgba(224,85,85,.06);  border-color: rgba(224,85,85,.22); }

.hse-panel-hdr {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.hse-icon  { font-size: 18px; }
.hse-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(232,232,240,.5);
    text-transform: uppercase;
    flex: 1;
}
.hse-status-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 3px 10px;
    border-radius: 20px;
}
.hse-badge--on  { background: rgba(78,201,122,.15); color: #4ec97a; border: 1px solid rgba(78,201,122,.3); }
.hse-badge--off { background: rgba(224,85,85,.15);  color: #e05555; border: 1px solid rgba(224,85,85,.3); }
.hse-audit-badge {
    font-size: 10px;
    color: #c8a84b;
    background: rgba(200,168,75,.1);
    border: 1px solid rgba(200,168,75,.25);
    padding: 3px 10px;
    border-radius: 20px;
}

/* Metryki BHP */
.hse-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}
.hse-metric {
    background: rgba(0,0,0,.2);
    border-radius: 8px;
    padding: 12px 14px;
    text-align: center;
}
.hse-metric.hse-good { border: 1px solid rgba(78,201,122,.15); }
.hse-metric-val {
    font-size: 22px;
    font-weight: 700;
    color: #4ec97a;
    line-height: 1;
}
.hse-metric-lbl {
    font-size: 10px;
    color: rgba(232,232,240,.4);
    margin-top: 5px;
    letter-spacing: .3px;
}
.hse-note {
    font-size: 11px;
    color: rgba(232,232,240,.35);
    line-height: 1.6;
}

/* Blok ostrzeżenia gdy brak BHP */
.hse-warning-block { padding: 4px 0; }
.hse-warn-title {
    font-size: 15px;
    font-weight: 700;
    color: #e05555;
    margin-bottom: 8px;
}
.hse-risk-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.hse-risk-list li {
    font-size: 12px;
    color: rgba(232,232,240,.6);
}
.hse-fix-hint {
    font-size: 12px;
    color: #c8a84b;
    margin-top: 8px;
}

/* ── KATASTROFY PRZEMYSŁOWE ── */
.disaster-panel {
    border-radius: 10px;
    padding: 20px 22px;
    margin-bottom: 12px;
    background: rgba(224,85,85,.08);
    border: 1px solid rgba(224,85,85,.35);
}
.disaster-panel-hdr {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.disaster-icon { font-size: 22px; flex-shrink: 0; }
.disaster-title {
    flex: 1;
    font-size: 14px;
    font-weight: 700;
    color: #e05555;
}
.disaster-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(224,85,85,.2);
    color: #e05555;
    border: 1px solid rgba(224,85,85,.4);
    text-transform: uppercase;
}
.disaster-desc {
    font-size: 12px;
    color: rgba(232,232,240,.6);
    line-height: 1.65;
    margin-bottom: 14px;
}
.disaster-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}
.disaster-stat {
    background: rgba(0,0,0,.25);
    border: 1px solid rgba(224,85,85,.15);
    border-radius: 7px;
    padding: 10px 12px;
    text-align: center;
}
.disaster-stat-val {
    font-size: 16px;
    font-weight: 700;
    color: #e05555;
}
.disaster-stat-val.cost { color: #e05555; }
.disaster-stat-val.fine { color: #f0a000; }
.disaster-stat-val.loss { color: #c8a84b; }
.disaster-stat-lbl {
    font-size: 10px;
    color: rgba(232,232,240,.35);
    margin-top: 3px;
    letter-spacing: .3px;
}
.disaster-action-hint {
    font-size: 12px;
    color: #c8a84b;
    background: rgba(200,168,75,.07);
    border: 1px solid rgba(200,168,75,.2);
    border-radius: 6px;
    padding: 9px 13px;
    line-height: 1.55;
}
.disaster-action-hint strong { color: #f0d080; }
.disaster-hse-note {
    font-size: 11px;
    color: rgba(78,201,122,.7);
    margin-top: 8px;
}

/* Historia katastrof */
.disaster-history-row {
    display: grid;
    grid-template-columns: 36px 1.5fr 1fr 1fr 1fr 90px;
    gap: 10px;
    align-items: center;
    padding: 10px 14px;
    background: rgba(22,22,34,.7);
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 6px;
    margin-bottom: 4px;
    font-size: 12px;
}
.disaster-history-row:hover { background: rgba(224,85,85,.04); }
.disaster-history-hdr {
    display: grid;
    grid-template-columns: 36px 1.5fr 1fr 1fr 1fr 90px;
    gap: 10px;
    padding: 4px 14px;
    font-size: 10px;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: rgba(232,232,240,.3);
    border-bottom: 1px solid rgba(255,255,255,.06);
    margin-bottom: 4px;
}
.disaster-type-blowout      { color: #e05555; font-weight: 700; }
.disaster-type-pipeline     { color: #f0a000; font-weight: 700; }
.disaster-type-contamination{ color: #c8a84b; font-weight: 700; }
.disaster-type-spill        { color: #5b9cf6; font-weight: 700; }
.wells-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
}
.well-item {
    background: rgba(22,22,34,.8);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 10px;
    padding: 18px;
    transition: border-color .2s;
}
.well-item:hover { border-color: rgba(200,168,75,.2); }
.well-num  { font-size: 10px; letter-spacing: 2px; color: rgba(232,232,240,.3); text-transform: uppercase; }
.well-name { font-size: 14px; font-weight: 700; margin-top: 2px; }
.well-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}
.w-stat-lbl {
    font-size: 9px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(232,232,240,.3);
    margin-bottom: 3px;
}
.w-stat-val { font-size: 15px; font-weight: 700; }

.cond-bar {
    height: 4px;
    background: rgba(255,255,255,.06);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 8px;
}
.cond-fill  { height: 100%; border-radius: 2px; }
.cond-good  { background: #4ec97a; }
.cond-warn  { background: #f0a050; }
.cond-bad   { background: #e05555; }

/* ── KOLORY STANU ── */
.c-good { color: #4ec97a; }
.c-warn { color: #f0a050; }
.c-bad  { color: #e05555; }
.c-gold { color: #c8a84b; }

/* ── PRODUKCJA — STATYSTYKI ── */
.prod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}
.prod-stat {
    text-align: center;
    background: rgba(22,22,34,.8);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 10px;
    padding: 18px;
}
.prod-val  { font-size: 26px; font-weight: 800; color: #c8a84b; }
.prod-unit { font-size: 10px; color: rgba(232,232,240,.3); letter-spacing: 1.5px; text-transform: uppercase; margin-top: 3px; }

/* ── RUROCIĄG ── */
.pipe-card {
    background: rgba(22,22,34,.8);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 14px;
}
.pipe-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    margin: 14px 0;
}
.util-bar {
    height: 6px;
    background: rgba(255,255,255,.06);
    border-radius: 3px;
    overflow: hidden;
}
.util-fill { height: 100%; border-radius: 3px; }

/* ── LISTY DANYCH (zamiast tabel HTML) ── */
.data-list { display: flex; flex-direction: column; }

.data-list-head {
    display: grid;
    padding: 8px 16px;
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(232,232,240,.25);
    border-bottom: 1px solid rgba(200,168,75,.1);
}
.data-list-row {
    display: grid;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,.04);
    align-items: center;
    transition: background .15s;
}
.data-list-row:last-child { border-bottom: none; }
.data-list-row:hover { background: rgba(255,255,255,.025); }

.dlc    { font-size: 13px; }
.dlc.sm { font-size: 11px; color: rgba(232,232,240,.35); }

.cols-prod  { grid-template-columns: 50px 1fr 120px 90px 90px 70px; }
.cols-fail  { grid-template-columns: 1fr 1fr 120px 130px 90px; }
.cols-wells { grid-template-columns: 50px 1fr 100px 120px 80px 80px 70px; }
.cols-staff { grid-template-columns: 1fr 1fr 80px 100px 110px; }

@media(max-width:768px) {
    .data-list-head { display: none; }
    .cols-prod,
    .cols-fail,
    .cols-wells,
    .cols-staff { grid-template-columns: 1fr 1fr; }
}

/* ── KOMUNIKATY / MISC ── */
.msg-bar {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .3px;
}
.msg-success { background: rgba(78,201,122,.1); border: 1px solid rgba(78,201,122,.2); color: #4ec97a; }
.msg-error   { background: rgba(224,85,85,.1);  border: 1px solid rgba(224,85,85,.2);  color: #e05555; }

.empty-state {
    text-align: center;
    padding: 30px;
    color: rgba(232,232,240,.3);
    font-size: 13px;
}

.info-chip {
    padding: 6px 14px;
    background: rgba(78,201,122,.08);
    border: 1px solid rgba(78,201,122,.15);
    border-radius: 20px;
    font-size: 11px;
    color: #4ec97a;
}
.info-chip.warn { background: rgba(240,160,80,.08); border-color: rgba(240,160,80,.15); color: #f0a050; }
.info-chip.gold { background: rgba(200,168,75,.08); border-color: rgba(200,168,75,.15); color: #c8a84b; }

.section-h {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(232,232,240,.35);
    margin: 24px 0 12px;
}

/* ═══════════════════════════════════════════════════════════
   TECHNICAL — uzupełnienie klas zastępujących inline style
   ═══════════════════════════════════════════════════════════ */

/* Topbar wewnętrzny layout */
.topbar-left  { display: flex; align-items: center; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-manager { font-size: 12px; color: rgba(232,232,240,.5); }
.topbar-manager-name { color: #e8e8f0; font-weight: 600; }
.topbar-manager-role { color: #c8a84b; margin-left: 8px; font-size: 10px; letter-spacing: 1px; }

/* Bonus kierownika */
.mgr-bonus {
    margin-top: 14px;
    padding: 10px 14px;
    background: rgba(78,201,122,.06);
    border: 1px solid rgba(78,201,122,.12);
    border-radius: 8px;
    font-size: 11px;
    color: #4ec97a;
}

/* Inżynierowie — meta i akcje */
.staff-meta {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    font-size: 11px;
    color: rgba(232,232,240,.35);
    flex-wrap: wrap;
}
.staff-actions { margin-top: 12px; }
.task-assign-toggle {
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(200,168,75,.6);
    cursor: pointer;
    font-weight: 700;
}
.fire-form { margin-top: 10px; }

/* Skill bar & task bar — CSS custom property */
.skill-fill        { width: var(--bar-w, 0%); }
.task-running-fill { width: var(--bar-w, 0%); }
.cond-fill         { width: var(--bar-w, 0%); }
.util-fill         { width: var(--bar-w, 0%); }

/* Util bar warianty kolorów */
.util-ok   { background: #4ec97a; }
.util-warn { background: #f0a050; }
.util-bad  { background: #e05555; }

/* Formularze */
.form-group--flush { margin-bottom: 0; }
.form-group--hidden { display: none; }
.input-pair { display: flex; gap: 8px; }
.form-hint  { margin-top: 8px; font-size: 11px; color: rgba(232,232,240,.3); }

/* Specjalizacje grid */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}
.spec-card {
    padding: 14px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 8px;
}
.spec-icon  { font-size: 18px; margin-bottom: 6px; }
.spec-name  { font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.spec-desc  { font-size: 11px; color: rgba(232,232,240,.4); margin-bottom: 8px; }
.spec-tasks { font-size: 10px; color: rgba(232,232,240,.25); }

/* Zadania — data pod timerem */
.task-date { font-size: 9px; color: rgba(232,232,240,.3); margin-top: 2px; }

/* Odwierty */
.well-broken { border-left: 3px solid #e05555; }
.well-hdr {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.well-cond-wrap { margin-top: 12px; }
.well-cond-row  {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    margin-bottom: 4px;
}

/* Risk score */
.well-risk-wrap   { margin-top: 10px; }
.well-hdr-badges  { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }

.risk-fill { height: 100%; width: var(--bar-w, 0%); border-radius: 2px; transition: width .6s; }
.risk-low  { background: linear-gradient(90deg, #4ec97a, #6fe09a); }
.risk-med  { background: linear-gradient(90deg, #c8a84b, #f0c060); }
.risk-high { background: linear-gradient(90deg, #e07030, #f09050); }
.risk-crit { background: linear-gradient(90deg, #e05555, #ff7070); animation: risk-pulse 1.5s ease-in-out infinite; }

@keyframes risk-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .6; }
}

.well-critical { border-color: rgba(224,85,85,.4) !important; box-shadow: 0 0 12px rgba(224,85,85,.12); }

/* Badge trybu produkcji */
.badge-mode {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: .5px;
}
.mode-eco    { background: rgba(78,201,122,.12); color: #4ec97a; border: 1px solid rgba(78,201,122,.25); }
.mode-normal { background: rgba(200,168,75,.10); color: #c8a84b; border: 1px solid rgba(200,168,75,.2); }
.mode-boost  { background: rgba(91,156,246,.12); color: #5b9cf6; border: 1px solid rgba(91,156,246,.25); }

/* Sekcja trybu produkcji na karcie odwiertu */
.well-mode-wrap  { margin-top: 12px; border-top: 1px solid rgba(255,255,255,.05); padding-top: 10px; }
.well-mode-label {
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(232,232,240,.3);
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.mode-prod-hint {
    font-size: 10px;
    color: #c8a84b;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 600;
}
.well-mode-btns { display: flex; gap: 6px; margin-bottom: 7px; }
.mode-form      { margin: 0; }
.btn-mode {
    flex: 1;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.04);
    color: rgba(232,232,240,.5);
    transition: all .15s;
    white-space: nowrap;
}
.btn-mode:hover:not(:disabled) {
    background: rgba(255,255,255,.08);
    color: rgba(232,232,240,.9);
    border-color: rgba(255,255,255,.2);
}
.btn-mode--active {
    color: #e8e8f0;
    cursor: default;
}
.btn-mode--active.mode-eco    { background: rgba(78,201,122,.15);  border-color: rgba(78,201,122,.4); color: #4ec97a; }
.btn-mode--active.mode-normal { background: rgba(200,168,75,.12);  border-color: rgba(200,168,75,.3); color: #c8a84b; }
.btn-mode--active.mode-boost  { background: rgba(91,156,246,.15);  border-color: rgba(91,156,246,.4); color: #5b9cf6; }
.well-mode-desc { font-size: 11px; line-height: 1.5; min-height: 16px; }

/* Rurociąg */
.pipe-hdr {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}
.pipe-label  { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: rgba(232,232,240,.3); }
.pipe-name   { font-size: 16px; font-weight: 700; margin-top: 3px; }
.pipe-alert  {
    padding: 8px 12px;
    background: rgba(224,85,85,.08);
    border-radius: 6px;
    font-size: 12px;
    color: #e05555;
    margin: 10px 0;
}
.pipe-footer { margin-top: 12px; font-size: 11px; color: rgba(232,232,240,.3); }

/* Bezpieczeństwo */
.safety-section { margin-bottom: 20px; }
.safety-hdr {
    font-size: 10px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 12px;
}
.safety-hdr--danger { color: #e05555; }
.safety-hdr--warn   { color: #f0a050; }

.safety-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 8px;
}
.safety-row--danger {
    background: rgba(224,85,85,.07);
    border: 1px solid rgba(224,85,85,.18);
}
.safety-row--warn {
    background: rgba(240,160,80,.06);
    border: 1px solid rgba(240,160,80,.15);
}
.cols-risk {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 12px;
    align-items: center;
}
.safety-cond { font-size: 12px; color: rgba(232,232,240,.4); }
.safety-hint { font-size: 11px; color: rgba(232,232,240,.4); }
.safety-ok {
    padding: 30px;
    text-align: center;
    color: #4ec97a;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Utility klasy kolorów i font-weight */
.c-blue   { color: #5b9cf6; }
.c-green  { color: #4ec97a; }
.c-muted  { color: rgba(232,232,240,.6); }
.c-muted2 { color: rgba(232,232,240,.4); }
.link-gold { color: #c8a84b; }
.fw6 { font-weight: 600; }
.fw7 { font-weight: 700; }
.fs12 { font-size: 12px; }
.ml8  { margin-left: 8px; }
.sm-label { font-size: 9px; text-transform: uppercase; letter-spacing: 1px; color: rgba(232,232,240,.3); }
/* ═══════════════════════════════════════════════════════════
   KANDYDACI TECHNICZNI — karty i formularz oceny
   ═══════════════════════════════════════════════════════════ */

.cand-card {
    background: linear-gradient(145deg, #161622, #0f0f18);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 12px;
    padding: 22px 24px;
    margin-bottom: 14px;
    transition: border-color .2s;
}
.cand-card.cand-hire   { border-left: 3px solid #4ec97a; }
.cand-card.cand-reject { border-left: 3px solid #e05555; }

.cand-hdr {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}
.cand-name    { font-size: 17px; font-weight: 700; color: #e8e8f0; margin-bottom: 3px; }
.cand-spec    { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: #c8a84b; margin-bottom: 4px; }
.cand-meta    { font-size: 11px; color: rgba(232,232,240,.4); }
.cand-badges  { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cand-expiry  { font-size: 10px; }

/* Statystyki kandydata */
.cand-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
    padding: 14px 16px;
    background: rgba(255,255,255,.025);
    border-radius: 8px;
}
.cand-stat-lbl { font-size: 9px; text-transform: uppercase; letter-spacing: 1px; color: rgba(232,232,240,.35); margin-bottom: 3px; }
.cand-stat-val { font-size: 15px; font-weight: 700; }

/* Poprzednia ocena */
.cand-prev-review {
    display: flex;
    gap: 16px;
    align-items: baseline;
    padding: 8px 12px;
    background: rgba(200,168,75,.06);
    border: 1px solid rgba(200,168,75,.12);
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 12px;
    flex-wrap: wrap;
}
.cand-prev-score   { color: #c8a84b; font-weight: 600; white-space: nowrap; }
.cand-prev-comment { color: rgba(232,232,240,.5); font-style: italic; }
.cand-no-manager   { font-size: 12px; color: rgba(232,232,240,.4); margin-top: 12px; padding: 10px; background: rgba(224,85,85,.06); border-radius: 6px; }

/* Formularz oceny */
.cand-review-form  { margin-top: 12px; }
.cand-review-grid  { display: flex; flex-direction: column; gap: 14px; }
.cand-comment {
    width: 100%;
    min-height: 70px;
    resize: vertical;
}

/* Przyciski oceny 1–10 */
.score-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px;
}
.score-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s;
    color: rgba(232,232,240,.5);
    background: rgba(255,255,255,.03);
}
.score-btn input[type="radio"] { display: none; }
.score-btn:hover             { border-color: #c8a84b; color: #c8a84b; }
.score-btn.selected,
.score-btn:has(input:checked) {
    background: rgba(200,168,75,.15);
    border-color: #c8a84b;
    color: #c8a84b;
}

/* Rekomendacja */
.rec-buttons { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.rec-btn {
    flex: 1;
    min-width: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.08);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    color: rgba(232,232,240,.5);
    background: rgba(255,255,255,.02);
}
.rec-btn input[type="radio"] { display: none; }
.rec-btn.rec-hire:hover,
.rec-btn.rec-hire:has(input:checked),
.rec-btn.rec-hire.selected {
    background: rgba(78,201,122,.12);
    border-color: #4ec97a;
    color: #4ec97a;
}
.rec-btn.rec-reject:hover,
.rec-btn.rec-reject:has(input:checked),
.rec-btn.rec-reject.selected {
    background: rgba(224,85,85,.12);
    border-color: #e05555;
    color: #e05555;
}

/* ═══════════════════════════════════════════════════════════════
   KANDYDACI TECHNICZNI
   ═══════════════════════════════════════════════════════════════ */
.cand-card { background:linear-gradient(145deg,#161622,#0f0f18); border:1px solid rgba(255,255,255,.07); border-radius:12px; padding:22px 24px; margin-bottom:14px; }
.cand-card.cand-hire   { border-left:3px solid #4ec97a; }
.cand-card.cand-reject { border-left:3px solid #e05555; }
.cand-hdr { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:16px; }
.cand-name  { font-size:17px; font-weight:700; color:#e8e8f0; margin-bottom:3px; }
.cand-spec  { font-size:11px; letter-spacing:1.5px; text-transform:uppercase; color:#c8a84b; margin-bottom:4px; }
.cand-meta  { font-size:11px; color:rgba(232,232,240,.4); }
.cand-badges { display:flex; flex-direction:column; align-items:flex-end; gap:6px; }
.cand-stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(110px,1fr)); gap:10px; margin-bottom:16px; padding:14px 16px; background:rgba(255,255,255,.025); border-radius:8px; }
.cand-stat-lbl { font-size:9px; text-transform:uppercase; letter-spacing:1px; color:rgba(232,232,240,.35); margin-bottom:3px; }
.cand-stat-val { font-size:15px; font-weight:700; }
.cand-prev-review { display:flex; gap:16px; align-items:baseline; padding:8px 12px; background:rgba(200,168,75,.06); border:1px solid rgba(200,168,75,.12); border-radius:8px; margin-bottom:12px; font-size:12px; flex-wrap:wrap; }
.cand-prev-score   { color:#c8a84b; font-weight:600; }
.cand-prev-comment { color:rgba(232,232,240,.5); font-style:italic; }
.cand-review-form  { margin-top:12px; }
.cand-review-grid  { display:flex; flex-direction:column; gap:14px; }
.cand-comment { width:100%; min-height:70px; resize:vertical; }
.score-buttons { display:flex; gap:6px; flex-wrap:wrap; margin-top:6px; }
.score-btn { display:flex; align-items:center; justify-content:center; width:36px; height:36px; border:1px solid rgba(255,255,255,.1); border-radius:6px; font-size:13px; font-weight:700; cursor:pointer; transition:all .15s; color:rgba(232,232,240,.5); background:rgba(255,255,255,.03); }
.score-btn input[type="radio"] { display:none; }
.score-btn:hover, .score-btn.selected, .score-btn:has(input:checked) { background:rgba(200,168,75,.15); border-color:#c8a84b; color:#c8a84b; }
.rec-buttons { display:flex; gap:10px; margin-top:6px; flex-wrap:wrap; }
.rec-btn { flex:1; min-width:160px; display:flex; align-items:center; justify-content:center; gap:6px; padding:10px 16px; border-radius:8px; border:1px solid rgba(255,255,255,.08); font-size:12px; font-weight:600; cursor:pointer; transition:all .15s; color:rgba(232,232,240,.5); background:rgba(255,255,255,.02); }
.rec-btn input[type="radio"] { display:none; }
.rec-btn.rec-hire:hover, .rec-btn.rec-hire:has(input:checked), .rec-btn.rec-hire.selected { background:rgba(78,201,122,.12); border-color:#4ec97a; color:#4ec97a; }
.rec-btn.rec-reject:hover, .rec-btn.rec-reject:has(input:checked), .rec-btn.rec-reject.selected { background:rgba(224,85,85,.12); border-color:#e05555; color:#e05555; }

/* ═══════════════════════════════════════════════════════════════
   ZAPOTRZEBOWANIE NA SPECJALISTÓW
   ═══════════════════════════════════════════════════════════════ */
.specs-need-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:12px; }
.spec-need-card { padding:16px; border-radius:10px; border:1px solid rgba(255,255,255,.06); background:rgba(255,255,255,.02); display:flex; flex-direction:column; gap:6px; }
.spec-need-card.spec-have    { border-color:rgba(78,201,122,.18); background:rgba(78,201,122,.03); }
.spec-need-card.spec-partial { border-color:rgba(224,180,60,.25); background:rgba(224,180,60,.03); }
.spec-need-card.spec-missing { border-color:rgba(200,168,75,.18); }
.spec-have-info { font-size:12px; margin-top:4px; }
.spec-need-icon { font-size:22px; }
.spec-need-name { font-size:12px; font-weight:700; color:#e8e8f0; }
.spec-need-count { font-size:11px; margin-bottom:4px; }
.spec-need-form { display:flex; flex-direction:column; gap:6px; margin-top:4px; }
.spec-need-region { font-size:11px; padding:5px 8px; }
.rec-status-bar { display:flex; align-items:center; gap:16px; padding:16px 20px; border-radius:10px; border:1px solid; }
.rec-status-bar.rec-pending { background:rgba(200,168,75,.06); border-color:rgba(200,168,75,.2); }
.rec-status-bar.rec-ready   { background:rgba(78,201,122,.07); border-color:rgba(78,201,122,.25); }
.rec-status-icon  { font-size:22px; flex-shrink:0; }
.rec-status-info  { flex:1; }
.rec-status-title { font-size:14px; font-weight:700; color:#e8e8f0; margin-bottom:3px; }
.rec-status-meta  { font-size:11px; color:rgba(232,232,240,.45); }

/* ═══════════════════════════════════════════════════════════════
   OCENA TECHNICZNA — widok w HR
   ═══════════════════════════════════════════════════════════════ */
.tech-review-badge { display:flex; flex-wrap:wrap; gap:10px; align-items:center; padding:10px 14px; background:rgba(200,168,75,.05); border:1px solid rgba(200,168,75,.15); border-radius:8px; margin-bottom:12px; font-size:12px; }
.tech-review-score { color:#c8a84b; font-weight:600; }
.tech-review-comment { width:100%; color:rgba(232,232,240,.5); font-style:italic; font-size:11px; }

/* ═══════════════════════════════════════════════════════════════
   HEADHUNTER
   ═══════════════════════════════════════════════════════════════ */
.hh-status-card { display:flex; align-items:center; gap:16px; padding:20px 24px; border-radius:12px; border:1px solid; margin-bottom:20px; }
.hh-status-card.hh-searching { background:rgba(200,168,75,.06); border-color:rgba(200,168,75,.2); }
.hh-status-card.hh-ready     { background:rgba(78,201,122,.07); border-color:rgba(78,201,122,.25); }
.hh-status-icon  { font-size:28px; flex-shrink:0; }
.hh-status-info  { flex:1; }
.hh-status-title { font-size:15px; font-weight:700; color:#e8e8f0; margin-bottom:4px; }
.hh-status-meta  { font-size:12px; color:rgba(232,232,240,.45); }
.hh-start-form   { display:grid; grid-template-columns:1fr; gap:0; }
.hh-start-card   { background:rgba(255,255,255,.02); border:1px solid rgba(255,255,255,.07); border-radius:12px; padding:24px; max-width:560px; }
.hh-start-title  { font-size:15px; font-weight:700; color:#e8e8f0; margin-bottom:6px; }
.hh-cost-info    { font-size:12px; color:rgba(232,232,240,.5); margin-bottom:4px; }
.hh-modifiers    { margin:16px 0; padding:14px; background:rgba(255,255,255,.02); border-radius:8px; }
.hh-mod-title    { font-size:10px; text-transform:uppercase; letter-spacing:1px; color:rgba(232,232,240,.35); margin-bottom:8px; }
.hh-mod-row      { font-size:12px; margin-bottom:4px; }
.hh-candidate    { border-left:3px solid rgba(200,168,75,.5); }
.hh-offer-form   { margin-top:14px; padding-top:14px; border-top:1px solid rgba(255,255,255,.06); }
.hh-offer-row    { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.hr-input-small  { width:100%; padding:8px 12px; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.1); border-radius:6px; color:#e8e8f0; font-size:13px; }

/* ═══════════════════════════════════════════════════════════
   OCENA TECHNICZNA — badge przy kandydacie w hr.php
   ═══════════════════════════════════════════════════════════ */

.tech-review-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
    margin: 12px 0 8px;
    flex-wrap: wrap;
}
.tech-review-badge.rev-hire {
    background: rgba(78,201,122,.08);
    border: 1px solid rgba(78,201,122,.25);
    color: #4ec97a;
}
.tech-review-badge.rev-reject {
    background: rgba(224,85,85,.08);
    border: 1px solid rgba(224,85,85,.2);
    color: #e05555;
}
.tech-review-badge.rev-pending {
    background: rgba(200,168,75,.05);
    border: 1px solid rgba(200,168,75,.15);
    color: rgba(200,168,75,.7);
}
.tech-rev-icon    { font-size: 16px; flex-shrink: 0; }
.tech-rev-title   { font-weight: 600; }
.tech-rev-score   { font-weight: 700; background: rgba(255,255,255,.07); padding: 2px 8px; border-radius: 4px; }
.tech-rev-comment { color: rgba(232,232,240,.5); font-style: italic; width: 100%; }

.btn-cv-hire-recommended {
    background: rgba(78,201,122,.15) !important;
    border-color: #4ec97a !important;
    color: #4ec97a !important;
}

/* ═══════════════════════════════════════════════════════════
   HEADHUNTER — panel hr.php
   ═══════════════════════════════════════════════════════════ */

.hh-status-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-radius: 12px;
    border: 1px solid rgba(200,168,75,.25);
    background: rgba(200,168,75,.05);
    margin-bottom: 24px;
}
.hh-status-icon  { font-size: 28px; flex-shrink: 0; }
.hh-status-title { font-size: 15px; font-weight: 700; color: #e8e8f0; margin-bottom: 4px; }
.hh-status-meta  { font-size: 11px; color: rgba(232,232,240,.45); }

.hh-launch-form {
    background: linear-gradient(145deg, #161622, #0f0f18);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}
.hh-launch-title { font-size: 14px; font-weight: 700; color: #c8a84b; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
.hh-launch-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}
.hh-cost-info, .hh-time-info {
    padding: 14px;
    background: rgba(255,255,255,.03);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.06);
}
.hh-cost-label, .hh-time-label { font-size: 9px; text-transform: uppercase; letter-spacing: 1px; color: rgba(232,232,240,.35); margin-bottom: 4px; }
.hh-cost-range, .hh-time-range { font-size: 14px; font-weight: 700; color: #c8a84b; margin-bottom: 3px; }
.hh-cost-note, .hh-time-note   { font-size: 10px; color: rgba(232,232,240,.35); }

.hh-candidate-card {
    background: linear-gradient(145deg, #161622, #0f0f18);
    border: 1px solid rgba(255,255,255,.07);
    border-left: 3px solid #c8a84b;
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 14px;
}
.hh-cand-hdr {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}
.hh-cand-name    { font-size: 16px; font-weight: 700; color: #e8e8f0; margin-bottom: 3px; }
.hh-cand-spec    { font-size: 11px; color: #c8a84b; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 3px; }
.hh-cand-company { font-size: 11px; color: rgba(232,232,240,.4); }
.hh-cand-skill-badge {
    text-align: center;
    background: rgba(200,168,75,.12);
    border: 1px solid rgba(200,168,75,.3);
    border-radius: 10px;
    padding: 8px 14px;
    flex-shrink: 0;
}
.hh-skill-num { font-size: 24px; font-weight: 800; color: #c8a84b; line-height: 1; }
.hh-skill-lbl { font-size: 9px; color: rgba(200,168,75,.6); text-transform: uppercase; letter-spacing: 1px; }

.hh-cand-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px,1fr));
    gap: 10px;
    padding: 12px 14px;
    background: rgba(255,255,255,.025);
    border-radius: 8px;
    margin-bottom: 12px;
}
.hh-stat-lbl { font-size: 9px; text-transform: uppercase; letter-spacing: 1px; color: rgba(232,232,240,.35); margin-bottom: 3px; }
.hh-stat-val { font-size: 14px; font-weight: 700; }

.hh-offer-form  { margin-top: 12px; }
.hh-offer-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 10px; }
.hh-offer-hint  { font-size: 11px; color: rgba(232,232,240,.35); margin-bottom: 12px; }

@media (max-width: 600px) {
    .hh-launch-grid  { grid-template-columns: 1fr; }
    .hh-offer-grid   { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   KLASY ZASTĘPUJĄCE INLINE STYLES — hr.php + technical.php
   ═══════════════════════════════════════════════════════════════ */

/* ── Topbar HR ──────────────────────────────────────────────── */
.topbar-info { display:flex; align-items:center; gap:20px; }
.topbar-events-badge { color:var(--gold); }
.topbar-back-link,
.topbar-map-link  { color:rgba(255,255,255,0.5); text-decoration:none; font-size:11px; letter-spacing:1px; }
.topbar-back-link:hover,
.topbar-map-link:hover  { color:rgba(255,255,255,0.8); }

/* ── Tab badges ─────────────────────────────────────────────── */
.tab-badge--green  { background:var(--green);              color:#000; }
.tab-badge--yellow { background:var(--yellow);             color:#000; }
.tab-badge--gold   { background:var(--gold);               color:#000; }
.tab-badge--muted  { background:rgba(255,255,255,0.15);    color:rgba(255,255,255,0.7); }

/* ── Form labels ────────────────────────────────────────────── */
.hr-label--mt { margin-top:20px; }
.region-info  { margin-top:16px; }

/* ── Empty states ───────────────────────────────────────────── */
.hr-empty--big  { padding:60px; text-align:center; }
.hr-empty-icon  { font-size:48px; opacity:.3; margin-bottom:16px; }

/* ── Kandydaci count ────────────────────────────────────────── */
.cand-count-label { font-size:12px; color:rgba(255,255,255,.4); }

/* ── Cand footer ────────────────────────────────────────────── */
.cand-footer-left    { display:flex; flex-direction:column; gap:3px; }
.cand-footer-actions { display:flex; gap:6px; align-items:center; flex-wrap:wrap; }

/* ── Cand expires ───────────────────────────────────────────── */
.cand-expires          { color:rgba(255,255,255,.3); font-size:12px; }
.cand-expires--urgent  { color:var(--red); }
.cand-region-name      { font-size:10px; color:rgba(255,255,255,.25); }

/* ── CV section label ───────────────────────────────────────── */
.cv-section-label--mt { margin-top:14px; }

/* ── Employee salary block ──────────────────────────────────── */
.emp-salary-block    { text-align:right; flex-shrink:0; }
.emp-contract-warn   { font-size:10px; color:var(--yellow); margin-top:4px; }
.emp-details         { display:none; }
.skills-avg-label    { color:rgba(255,255,255,.3); font-weight:400; }

/* ── History row ────────────────────────────────────────────── */
.history-name   { font-weight:600; color:#fff; }
.history-role   { font-size:12px; color:rgba(255,255,255,.5); }
.history-reason { font-size:12px; color:rgba(255,255,255,.4); }

/* ── Specs table ────────────────────────────────────────────── */
.specs-name   { font-weight:600; color:#fff; }
.specs-desc   { font-size:11px; color:rgba(255,255,255,.3); margin-top:2px; }
.specs-dept   { font-size:12px; color:rgba(255,255,255,.6); }
.specs-salary { font-size:12px; }
.specs-age    { font-size:12px; color:rgba(255,255,255,.4); }

/* ── Contracts ──────────────────────────────────────────────── */
.contract-dates { font-size:12px; }

/* ── HR subtitle variant ────────────────────────────────────── */
.hr-subtitle--mt { margin-top:30px; }

/* ── Technical.php margins ──────────────────────────────────── */
.mt-xs { margin-top:4px; }
.mt-sm { margin-top:6px; }
/* ============================================================
   NEGOCJACJE BANKOWE 
   ============================================================ */

/* ── Pasek spłaty kredytu ─────────────────────────────────── */
.repay-bar-wrap {
    margin: 12px 0 4px;
}
.repay-bar-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.repay-bar {
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}
.repay-bar-fill {
    height: 100%;
    background: var(--color-success);
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* ── Blok negocjacji w karcie kredytu ─────────────────────── */
.neg-block {
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}
.neg-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 12px;
    color: var(--text-primary);
}

/* ── Aktywna negocjacja ───────────────────────────────────── */
.neg-active {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px 16px;
}
.neg-active-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.neg-type-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}
.neg-status-pending  { border-left: 3px solid var(--color-warning); }
.neg-status-approved { border-left: 3px solid var(--color-success); }
.neg-status-rejected { border-left: 3px solid var(--color-danger);  }

.neg-bank-msg {
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px 12px;
    margin: 8px 0;
}
.neg-due {
    font-size: 13px;
    color: var(--text-muted);
    margin: 6px 0;
}

/* ── Szczegóły zatwierdzonej oferty ───────────────────────── */
.neg-offer-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 16px;
    margin: 10px 0;
    font-size: 13px;
}
.neg-offer-item {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px solid var(--border-color);
}
.neg-offer-item:last-child { border-bottom: none; }
.neg-expire strong { color: var(--color-warning); }

.neg-apply-form {
    margin-top: 12px;
}

/* ── Zdarzenia losowe ─────────────────────────────────────── */
.neg-events {
    margin-top: 14px;
    border-top: 1px dashed var(--border-color);
    padding-top: 10px;
}
.neg-events-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin: 0 0 8px;
}
.neg-event {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 12px;
}
.neg-event:last-child { border-bottom: none; }
.neg-event-icon {
    flex-shrink: 0;
    width: 18px;
    text-align: center;
    font-size: 14px;
}
.neg-event-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.neg-event-msg  { color: var(--text-primary); line-height: 1.45; }
.neg-event-time { color: var(--text-muted); font-size: 11px; }

.neg-event-delay,
.neg-event-fee_increase,
.neg-event-trust_penalty {
    background: rgba(220, 53, 69, 0.04);
    border-radius: 4px;
    padding: 6px 8px;
    margin: 2px 0;
}
.neg-event-speedup,
.neg-event-fee_decrease,
.neg-event-approval_boost {
    background: rgba(40, 167, 69, 0.04);
    border-radius: 4px;
    padding: 6px 8px;
    margin: 2px 0;
}

/* ── Accordion typów negocjacji ───────────────────────────── */
.neg-accordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.neg-panel {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}
.neg-panel-critical {
    border-color: var(--color-danger);
}
.neg-panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    background: var(--bg-secondary);
    user-select: none;
    list-style: none;
    flex-wrap: wrap;
}
.neg-panel-header::-webkit-details-marker { display: none; }
.neg-panel-header::before {
    content: '▶';
    font-size: 10px;
    color: var(--text-muted);
    transition: transform 0.2s;
    flex-shrink: 0;
}
details[open] > .neg-panel-header::before {
    transform: rotate(90deg);
}
.neg-panel-sub {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: auto;
}
.neg-panel-body {
    padding: 14px 16px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-primary);
}
.neg-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 14px;
    line-height: 1.55;
}

/* ── Radio opcje odroczenia ───────────────────────────────── */
.neg-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}
.neg-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.neg-option:hover {
    border-color: var(--color-primary);
    background: var(--bg-secondary);
}
.neg-option input[type="radio"] {
    margin-top: 2px;
    flex-shrink: 0;
}
.neg-option-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 14px;
    font-weight: 500;
}
.neg-option-label small {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 12px;
}
.neg-fee-note {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ── Negocjacje niedostępne ───────────────────────────────── */
.neg-unavailable {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: rgba(232,232,240,.4);
    font-size: 12px;
    background: rgba(0,0,0,.15);
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,.05);
}
.neg-lock-icon {
    font-size: 13px;
    flex-shrink: 0;
    opacity: .6;
}

/* ── Komunikaty CFO / Prawnik ─────────────────────────────── */
.neg-cfo-msg,
.neg-lawyer-msg {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}
.neg-cfo-msg::before    { content: '👔 '; }
.neg-lawyer-msg::before { content: '⚖️ '; }

/* ── Responsywność ────────────────────────────────────────── */
@media (max-width: 600px) {
    .neg-offer-details {
        grid-template-columns: 1fr;
    }
    .neg-panel-sub {
        margin-left: 0;
        width: 100%;
    }
}
/* ============================================================
   BANERY BANKRUTA
 
   ============================================================ */

/* ── Mały globalny pasek w headerze (header.php) ─────────── */
.header-bankruptcy-bar {
    background: rgba(224, 85, 85, 0.12);
    border: 1px solid rgba(224, 85, 85, 0.35);
    border-radius: var(--radius, 6px);
    padding: 8px 14px;
    font-size: 13px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.header-bankruptcy-bar strong {
    color: var(--red, #e05555);
}
.header-bankruptcy-bar a {
    color: var(--orange, #f0a050);
    font-weight: 600;
    white-space: nowrap;
    margin-left: auto;
    text-decoration: none;
}
.header-bankruptcy-bar a:hover {
    text-decoration: underline;
}

/* ── Duży baner w dashboard.php ──────────────────────────── */
.bankruptcy-banner {
    background: rgba(224, 85, 85, 0.10);
    border: 1px solid rgba(224, 85, 85, 0.45);
    border-left: 4px solid var(--red, #e05555);
    border-radius: var(--radius, 6px);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.bankruptcy-banner-icon {
    font-size: 22px;
    flex-shrink: 0;
}
.bankruptcy-banner-body {
    flex: 1;
    font-size: 14px;
    color: var(--text);
    line-height: 1.5;
}
.bankruptcy-banner-body strong {
    color: var(--red, #e05555);
    display: block;
    margin-bottom: 2px;
}
.bankruptcy-banner-btn {
    background: var(--red, #e05555);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--radius, 6px);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity 0.15s;
}
.bankruptcy-banner-btn:hover {
    opacity: 0.85;
}

@media (max-width: 600px) {
    .bankruptcy-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ═══════════════════════════════════════════════════════
   PANEL PROCEDUR BHP (proc-*)
   ═══════════════════════════════════════════════════════ */

.proc-panel {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius, 8px);
    padding: 18px 20px;
    margin-bottom: 18px;
}

.proc-panel-hdr {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.proc-icon { font-size: 18px; flex-shrink: 0; }

.proc-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--text);
    text-transform: uppercase;
}

.proc-level-badge {
    font-size: 12px;
    font-weight: 600;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 20px;
    padding: 2px 10px;
    color: var(--text-muted, rgba(232,232,240,.6));
}

.proc-status-badge {
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    padding: 2px 10px;
}
.proc-status-badge.proc-integrity--ok   { background: rgba(78,201,122,.12); color: #4ec97a; border: 1px solid rgba(78,201,122,.2); }
.proc-status-badge.proc-integrity--warn { background: rgba(230,180,60,.10); color: #e6b43c; border: 1px solid rgba(230,180,60,.2); }
.proc-status-badge.proc-integrity--crit { background: rgba(224,85,85,.10);  color: #e05555; border: 1px solid rgba(224,85,85,.2); }

/* Pasek integralności */
.proc-integrity-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.proc-integrity-lbl {
    font-size: 12px;
    color: var(--text-muted, rgba(232,232,240,.5));
    white-space: nowrap;
    width: 160px;
    flex-shrink: 0;
}

.proc-bar-wrap {
    flex: 1;
    height: 8px;
    background: rgba(255,255,255,.07);
    border-radius: 4px;
    overflow: hidden;
}

.proc-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width .4s ease;
}
.proc-bar-fill.proc-integrity--ok   { background: #4ec97a; }
.proc-bar-fill.proc-integrity--warn { background: #e6b43c; }
.proc-bar-fill.proc-integrity--crit { background: #e05555; }

.proc-integrity-val {
    font-size: 13px;
    font-weight: 700;
    width: 48px;
    text-align: right;
}
.proc-integrity-val.proc-integrity--ok   { color: #4ec97a; }
.proc-integrity-val.proc-integrity--warn { color: #e6b43c; }
.proc-integrity-val.proc-integrity--crit { color: #e05555; }

/* Metryki efektów procedur */
.proc-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

@media (max-width: 640px) {
    .proc-metrics { grid-template-columns: repeat(2, 1fr); }
}

.proc-metric {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 6px;
    padding: 8px 10px;
    text-align: center;
}

.proc-metric-val {
    font-size: 16px;
    font-weight: 700;
    color: #4ec97a;
    line-height: 1.2;
}

.proc-metric-lbl {
    font-size: 11px;
    color: var(--text-muted, rgba(232,232,240,.5));
    margin-top: 3px;
}

.proc-integrity-zero {
    font-size: 13px;
    color: #e05555;
    background: rgba(224,85,85,.08);
    border: 1px solid rgba(224,85,85,.18);
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 12px;
}

/* Przyciski akcji */
.proc-action-form { margin-bottom: 10px; }

.btn-proc-repair {
    background: rgba(230,180,60,.12);
    border: 1px solid rgba(230,180,60,.28);
    color: #e6b43c;
    border-radius: 6px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: background .15s;
}
.btn-proc-repair:hover { background: rgba(230,180,60,.20); }

/* Stan pustego panelu (brak procedur) */
.proc-empty {
    font-size: 13px;
    color: var(--text-muted, rgba(232,232,240,.6));
    line-height: 1.6;
    margin-bottom: 14px;
}

.proc-benefit-list {
    margin: 8px 0 8px 18px;
    padding: 0;
    font-size: 12px;
    color: rgba(78,201,122,.8);
}

.proc-benefit-list li { margin-bottom: 3px; }

.proc-note {
    font-size: 12px;
    color: rgba(230,180,60,.75);
    margin-top: 8px;
}

/* Sekcja upgrade */
.proc-upgrade-section {
    border-top: 1px solid rgba(255,255,255,.07);
    padding-top: 14px;
    margin-top: 6px;
}

.proc-upgrade-hdr {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted, rgba(232,232,240,.5));
    margin-bottom: 10px;
}

.proc-upgrade-blocked {
    font-size: 13px;
    color: rgba(230,180,60,.8);
    background: rgba(230,180,60,.07);
    border: 1px solid rgba(230,180,60,.15);
    border-radius: 6px;
    padding: 10px 14px;
}

.proc-upgrade-info {
    font-size: 13px;
    color: var(--text-muted, rgba(232,232,240,.6));
    margin-bottom: 10px;
}

.btn-proc-upgrade {
    background: rgba(78,201,122,.10);
    border: 1px solid rgba(78,201,122,.25);
    color: #4ec97a;
    border-radius: 6px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: background .15s;
}
.btn-proc-upgrade:hover { background: rgba(78,201,122,.18); }
/* ═══════════════════════════════════════════════════════
   KARTY ODWIERTÓW — rozwijane (well-card / <details>)
   ═══════════════════════════════════════════════════════ */

.wells-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

/* <details> jako karta */
.well-card {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius, 8px);
    overflow: hidden;
    transition: border-color .2s;
}
.well-card:hover        { border-color: rgba(255,255,255,.16); }
.well-card--paused      { border-color: rgba(224,85,85,.2); background: rgba(224,85,85,.03); }
.well-card--staff       { border-color: rgba(230,180,60,.25); background: rgba(230,180,60,.04); }
.well-card[open]        { border-color: rgba(255,255,255,.18); }

/* summary = klikalna część */
.well-card-summary {
    list-style: none;
    cursor: pointer;
    padding: 16px;
    outline: none;
    user-select: none;
}
.well-card-summary::-webkit-details-marker { display: none; }

.well-card-hdr {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}
.well-card-title { display: flex; flex-direction: column; gap: 2px; }
.well-num  { font-size: 11px; font-weight: 600; text-transform: uppercase;
             letter-spacing: .06em; color: var(--text-muted, rgba(232,232,240,.5)); }
.well-name { font-size: 15px; font-weight: 700; color: var(--text); }

.well-card-badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* Badge wstrzymany — złoty */
.badge.b-staff {
    background: rgba(230,180,60,.12);
    color: #e6b43c;
    border: 1px solid rgba(230,180,60,.28);
}

/* Hint "▼ szczegóły" */
.well-expand-hint {
    font-size: 11px;
    color: rgba(232,232,240,.25);
    text-align: right;
    margin-top: 8px;
    letter-spacing: .04em;
    transition: color .15s;
}
.well-card-summary:hover .well-expand-hint { color: rgba(232,232,240,.5); }
.well-card[open] .well-expand-hint { color: rgba(232,232,240,.4); }

/* ── Rozwinięte szczegóły ── */
.well-detail {
    border-top: 1px solid rgba(255,255,255,.07);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Siatka metryk operacyjnych */
.well-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
@media (max-width: 480px) { .well-detail-grid { grid-template-columns: repeat(2,1fr); } }

.well-detail-stat {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 6px;
    padding: 8px 10px;
}
.well-detail-lbl { font-size: 11px; color: var(--text-muted, rgba(232,232,240,.45)); margin-bottom: 3px; }
.well-detail-val { font-size: 14px; font-weight: 700; color: var(--text); }

/* ── Diagnozy (paused_staff / paused_cash / disaster) ── */
.well-diag {
    border-radius: 6px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.well-diag--staff   { background: rgba(230,180,60,.08); border: 1px solid rgba(230,180,60,.2); }
.well-diag--cash    { background: rgba(224,85,85,.07);  border: 1px solid rgba(224,85,85,.2); }
.well-diag--storage { background: rgba(100,149,237,.07);border: 1px solid rgba(100,149,237,.2); }
.well-diag--disaster{ background: rgba(224,85,85,.09);  border: 1px solid rgba(224,85,85,.25); }

.well-diag-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}
.well-diag-body { display: flex; flex-direction: column; gap: 6px; }
.well-diag-note { font-size: 13px; color: var(--text-muted, rgba(232,232,240,.65)); line-height: 1.5; margin: 0; }

/* Lista brakujących specjalizacji */
.well-missing-list {
    list-style: none;
    margin: 4px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.well-missing-item {
    font-size: 13px;
    font-weight: 600;
    color: #e05555;
    padding: 4px 0;
}

.well-diag-btn { align-self: flex-start; margin-top: 4px; }

/* ── Aktywne zadania na odwiercie ── */
.well-tasks-list { display: flex; flex-direction: column; gap: 6px; }
.well-tasks-hdr {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted, rgba(232,232,240,.4));
    margin-bottom: 2px;
}
.well-task-row {
    display: grid;
    grid-template-columns: 20px 1fr auto auto;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.03);
    border-radius: 5px;
    padding: 6px 10px;
    font-size: 12px;
}
.well-task-icon { font-size: 14px; }
.well-task-name { color: var(--text); font-weight: 500; }
.well-task-who  { color: var(--text-muted, rgba(232,232,240,.45)); }
.well-task-time { font-weight: 600; white-space: nowrap; }

/* ═══════════════════════════════════════════════════════
   WELL GRID — index.php (karty odwiertów z <details>)
   ═══════════════════════════════════════════════════════ */

.well-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

/* <details> karta */
details.well-card {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius, 8px);
    overflow: hidden;
    transition: border-color .2s;
}
details.well-card:hover        { border-color: rgba(255,255,255,.16); }
details.well-card.well-card-paused { border-color: rgba(230,180,60,.2); background: rgba(230,180,60,.03); }
details.well-card.well-card-seized { border-color: rgba(224,85,85,.25); background: rgba(224,85,85,.04); }

details.well-card summary.well-card-summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 16px;
    outline: none;
    user-select: none;
}
details.well-card summary::-webkit-details-marker { display: none; }

.well-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}
.well-card-header h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: var(--text);
}

.well-status-badge {
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    padding: 2px 10px;
    white-space: nowrap;
}
.well-status-badge.success { background: rgba(78,201,122,.12); color: #4ec97a; border: 1px solid rgba(78,201,122,.2); }
.well-status-badge.warning { background: rgba(230,180,60,.12); color: #e6b43c; border: 1px solid rgba(230,180,60,.2); }
.well-status-badge.danger  { background: rgba(224,85,85,.12);  color: #e05555; border: 1px solid rgba(224,85,85,.2); }

.well-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: var(--text-muted, rgba(232,232,240,.6));
}
.well-card-stats span strong { color: var(--text); }

.well-staff-hint {
    font-size: 11px;
    color: #e6b43c;
    margin-top: 6px;
    padding: 4px 8px;
    background: rgba(230,180,60,.07);
    border-radius: 4px;
}

.well-expand-hint {
    font-size: 11px;
    color: rgba(232,232,240,.25);
    text-align: right;
    margin-top: 8px;
}
details.well-card summary:hover .well-expand-hint { color: rgba(232,232,240,.5); }

/* Rozwinięta sekcja */
.well-detail-section {
    border-top: 1px solid rgba(255,255,255,.07);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Alerty statusu */
.well-alert {
    font-size: 13px;
    border-radius: 6px;
    padding: 10px 14px;
    line-height: 1.5;
}
.well-alert a { color: var(--gold, #c8a84b); }
.well-alert--warning { background: rgba(230,180,60,.08); border: 1px solid rgba(230,180,60,.2); color: rgba(232,232,240,.8); }
.well-alert--danger  { background: rgba(224,85,85,.08);  border: 1px solid rgba(224,85,85,.2);  color: rgba(232,232,240,.8); }

/* Statystyki odwiertu */
.well-detail-stats { display: flex; flex-direction: column; gap: 6px; }
.well-detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted, rgba(232,232,240,.6));
    padding: 4px 0;
    border-bottom: 1px solid rgba(255,255,255,.04);
}
.well-detail-row strong { color: var(--text); font-weight: 600; }

/* Sekcja rozbudowy magazynu — osobny <details> */
.storage-upgrade-details {
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 6px;
    overflow: hidden;
}
.storage-upgrade-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: rgba(232,232,240,.7);
    list-style: none;
    user-select: none;
    transition: background .15s;
}
.storage-upgrade-summary::-webkit-details-marker { display: none; }
.storage-upgrade-summary:hover { background: rgba(255,255,255,.04); }
.storage-upgrade-details[open] .storage-upgrade-summary {
    border-bottom: 1px solid rgba(255,255,255,.07);
    background: rgba(255,255,255,.03);
}
.storage-upgrade-summary-meta {
    font-size: 11px;
    font-weight: 400;
    color: rgba(232,232,240,.4);
    margin-left: auto;
}
.storage-upgrade-body {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 6px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.storage-upgrade-header {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted, rgba(232,232,240,.5));
}
.storage-upgrade-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.storage-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.storage-stat-lbl {
    font-size: 11px;
    color: var(--text-muted, rgba(232,232,240,.45));
}
.storage-stat strong { font-size: 13px; font-weight: 700; }
.c-green { color: #4ec97a; }
.c-red   { color: #e05555; }

.btn-storage-upgrade {
    background: rgba(230,180,60,.10);
    border: 1px solid rgba(230,180,60,.28);
    color: #e6b43c;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    text-align: center;
    line-height: 1.4;
    transition: background .15s;
}
.btn-storage-upgrade small {
    display: block;
    font-size: 11px;
    font-weight: 400;
    opacity: .75;
    margin-top: 2px;
}
.btn-storage-upgrade:hover { background: rgba(230,180,60,.20); }

.storage-upgrade-blocked {
    font-size: 13px;
    color: rgba(224,85,85,.8);
    background: rgba(224,85,85,.07);
    border: 1px solid rgba(224,85,85,.15);
    border-radius: 6px;
    padding: 8px 12px;
}
.storage-upgrade-form { margin: 0; }

/* ═══════════════════════════════════════════════════════
   MAPA ŚWIATA — map.php
   ═══════════════════════════════════════════════════════ */

/* Legenda */
.map-legend-card { padding: 12px 16px; margin-bottom: 12px; }
.map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 3px 6px;
    border-radius: 4px;
    transition: background .15s;
}
.legend-item:hover { background: rgba(255,255,255,.05); }
.legend-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.legend-name { font-size: 12px; font-weight: 600; color: var(--text); }
.legend-tax  { font-size: 10px; color: rgba(232,232,240,.4); }

/* Układ mapa + sidebar */
.map-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 12px;
    align-items: stretch;
}
@media (max-width: 900px) {
    .map-layout { grid-template-columns: 1fr; }
}

.map-wrap { padding: 0; overflow: hidden; }
#world-map { width: 100%; height: 560px; border-radius: var(--radius, 8px); }

/* Etykiety regionów — mniejsze żeby nie nachodziły na pinezki */
.region-label-text {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .8px;
    text-shadow: 0 1px 4px rgba(0,0,0,.9), 0 0 10px rgba(0,0,0,.8);
    white-space: nowrap;
    pointer-events: none;
    text-transform: uppercase;
    opacity: .85;
}

/* Pinezki */
.map-pin {
    border-radius: 50%;
    border: 2px solid;
    cursor: pointer;
    transition: transform .15s;
}
.map-pin:hover { transform: scale(1.4); }
.map-pin--available {
    width: 12px; height: 12px;
    opacity: .85;
}
.map-pin--mine {
    width: 20px; height: 20px;
    background: transparent !important;
    border: none !important;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.map-pin--taken {
    width: 10px; height: 10px;
    background: rgba(120,120,130,.4);
    border-color: rgba(120,120,130,.6);
}

/* Sidebar */
.map-sidebar {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius, 8px);
    height: 560px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Placeholder */
.sidebar-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    text-align: center;
    height: 100%;
    min-height: 400px;
}
.sidebar-ph-icon { font-size: 48px; margin-bottom: 16px; opacity: .4; }
.sidebar-ph-text { font-size: 13px; color: rgba(232,232,240,.45); line-height: 1.6; }

/* Region panel */
.sidebar-region,
.sidebar-location { padding: 20px; }

.sidebar-region-hdr {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.sr-icon  { font-size: 28px; }
.sr-name  { font-size: 16px; font-weight: 700; color: var(--text); }
.sr-sub   { font-size: 11px; color: rgba(232,232,240,.45); margin-top: 3px; line-height: 1.4; }

.sr-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}
.sr-metric {
    background: rgba(0,0,0,.2);
    border-radius: 6px;
    padding: 10px 12px;
    text-align: center;
}
.sr-m-val { font-size: 16px; font-weight: 700; margin-bottom: 3px; }
.sr-m-lbl { font-size: 10px; color: rgba(232,232,240,.4); letter-spacing: .3px; }

.sr-desc {
    font-size: 12px;
    color: rgba(232,232,240,.5);
    line-height: 1.5;
    margin-bottom: 14px;
}

.sr-locations-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(232,232,240,.4);
    margin-bottom: 8px;
}
.sr-locations { display: flex; flex-direction: column; gap: 6px; }

/* Lokalizacja w liście regionu */
.loc-item {
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,.07);
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.loc-item:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.15); }
.loc-item--mine   { border-color: rgba(78,201,122,.2); background: rgba(78,201,122,.04); }
.loc-item--taken  { opacity: .5; cursor: default; }
.loc-item-name    { font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.loc-item-meta    { font-size: 11px; color: rgba(232,232,240,.45); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.loc-badge {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .5px;
    padding: 1px 6px;
    border-radius: 10px;
    text-transform: uppercase;
}
.loc-badge--free  { background: rgba(78,201,122,.12); color: #4ec97a; border: 1px solid rgba(78,201,122,.25); }
.loc-badge--mine  { background: rgba(200,168,75,.12); color: #c8a84b; border: 1px solid rgba(200,168,75,.25); }
.loc-badge--taken { background: rgba(120,120,130,.1); color: rgba(232,232,240,.4); border: 1px solid rgba(120,120,130,.2); }

/* Location detail panel */
.loc-back {
    background: none;
    border: none;
    color: rgba(232,232,240,.5);
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    margin-bottom: 14px;
    transition: color .15s;
}
.loc-back:hover { color: var(--text); }

.loc-hdr { margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.07); }
.loc-name   { font-size: 17px; font-weight: 700; }
.loc-region { font-size: 12px; font-weight: 600; margin-top: 3px; }
.loc-type   { font-size: 11px; color: rgba(232,232,240,.45); margin-top: 2px; }

.loc-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}
.loc-desc {
    font-size: 12px;
    color: rgba(232,232,240,.5);
    line-height: 1.5;
    margin-bottom: 16px;
}

/* Zakup */
.buy-summary {
    background: rgba(0,0,0,.2);
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.buy-sum-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(232,232,240,.6);
}
.buy-sum-row strong { color: var(--text); }
.buy-sum-total {
    padding-top: 7px;
    margin-top: 4px;
    border-top: 1px solid rgba(255,255,255,.08);
    font-size: 13px;
}
.buy-sum-total strong { font-size: 15px; }

.btn-buy-well {
    width: 100%;
    padding: 12px;
    background: rgba(78,201,122,.12);
    border: 1px solid rgba(78,201,122,.3);
    color: #4ec97a;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
}
.btn-buy-well:hover    { background: rgba(78,201,122,.22); }
.btn-buy-well:disabled { opacity: .5; cursor: default; }

.loc-owned-badge {
    background: rgba(200,168,75,.1);
    border: 1px solid rgba(200,168,75,.25);
    color: #c8a84b;
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}
.loc-taken-badge {
    background: rgba(224,85,85,.08);
    border: 1px solid rgba(224,85,85,.2);
    color: rgba(224,85,85,.8);
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}
.loc-nofunds {
    background: rgba(224,85,85,.08);
    border: 1px solid rgba(224,85,85,.2);
    border-radius: 6px;
    padding: 14px;
}
.loc-nofunds-title { font-size: 13px; font-weight: 700; color: #e05555; margin-bottom: 4px; }
.loc-nofunds-diff  { font-size: 12px; color: rgba(232,232,240,.6); }

/* ═══════════════════════════════════════════════════════
   WELL GRID v2 — well_grid.php (JS accordion)
   ═══════════════════════════════════════════════════════ */

.wg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

/* Karta odwiertu */
.wg-card {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color .2s;
}
.wg-card:hover { border-color: rgba(255,255,255,.15); }

/* Nagłówek — klikalny */
.wg-header {
    padding: 14px 16px;
    cursor: pointer;
    user-select: none;
    display: block;
}
.wg-header:hover .wg-toggle-hint { color: rgba(232,232,240,.6); }

.wg-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}
.wg-title-wrap { display: flex; flex-direction: column; gap: 2px; }
.wg-num  { font-size: 10px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: rgba(232,232,240,.45); }
.wg-name { font-size: 14px; font-weight: 700; color: var(--text); }

/* Badge statusu */
.wbadge {
    font-size: 10px; font-weight: 700; letter-spacing: .5px;
    padding: 3px 10px; border-radius: 20px; white-space: nowrap;
    flex-shrink: 0;
}
.wbadge--active  { background: rgba(78,201,122,.12);  color: #4ec97a; border: 1px solid rgba(78,201,122,.25); }
.wbadge--warn    { background: rgba(230,180,60,.12);  color: #e6b43c; border: 1px solid rgba(230,180,60,.25); }
.wbadge--danger  { background: rgba(224,85,85,.12);   color: #e05555; border: 1px solid rgba(224,85,85,.25); }

/* Statystyki w nagłówku */
.wg-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}
.wg-stat-lbl { font-size: 9px; letter-spacing: .5px; text-transform: uppercase; color: rgba(232,232,240,.35); margin-bottom: 3px; }
.wg-stat-val { font-size: 13px; font-weight: 700; }

/* Pasek stanu technicznego */
.wg-cond { margin-bottom: 8px; }
.wg-cond-row { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 4px; }
.wg-bar { height: 4px; background: rgba(255,255,255,.08); border-radius: 2px; overflow: hidden; }
.wg-bar-fill { height: 100%; border-radius: 2px; transition: width .3s; }
.wg-bar-fill.cg-good { background: #4ec97a; }
.wg-bar-fill.cg-warn { background: #e6b43c; }
.wg-bar-fill.cg-bad  { background: #e05555; }

/* Hint brakującego personelu */
.wg-staff-hint {
    font-size: 11px; color: #e6b43c;
    background: rgba(230,180,60,.07); border-radius: 4px;
    padding: 4px 8px; margin-bottom: 6px;
}

/* Toggle hint */
.wg-toggle-hint {
    font-size: 10px; color: rgba(232,232,240,.25);
    text-align: right; margin-top: 6px;
}

/* Sekcja szczegółów */
.wg-detail {
    border-top: 1px solid rgba(255,255,255,.07);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Diagnozy */
.wg-diag { border-radius: 8px; padding: 12px 14px; }
.wg-diag--staff   { background: rgba(230,180,60,.07); border: 1px solid rgba(230,180,60,.2); }
.wg-diag--cash    { background: rgba(224,85,85,.07);  border: 1px solid rgba(224,85,85,.2); }
.wg-diag--storage { background: rgba(230,180,60,.07); border: 1px solid rgba(230,180,60,.2); }
.wg-diag--disaster{ background: rgba(224,85,85,.07);  border: 1px solid rgba(224,85,85,.2); }
.wg-diag-title { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.wg-diag-note  { font-size: 12px; color: rgba(232,232,240,.65); line-height: 1.5; margin-bottom: 8px; }
.wg-missing-list { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-direction: column; gap: 5px; }
.wg-missing-list li { font-size: 12px; font-weight: 600; color: #e05555; }

/* Metryki aktywnego odwiertu */
.wg-metrics {
    display: grid; grid-template-columns: repeat(4,1fr); gap: 8px;
}
.wg-metric {
    background: rgba(0,0,0,.2); border-radius: 6px; padding: 10px 8px; text-align: center;
}
.wg-metric-val { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.wg-metric-lbl { font-size: 9px; color: rgba(232,232,240,.35); letter-spacing: .3px; }

/* Rozbudowa magazynu */
.wg-storage-wrap {
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 7px; overflow: hidden;
}
.wg-storage-toggle {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 12px;
    font-size: 12px; font-weight: 600; color: rgba(232,232,240,.7);
    cursor: pointer; user-select: none;
    transition: background .15s;
}
.wg-storage-toggle:hover { background: rgba(255,255,255,.05); }
.wg-storage-meta { font-size: 11px; font-weight: 400; color: rgba(232,232,240,.4); margin-left: auto; }
.wg-storage-arrow { font-size: 10px; color: rgba(232,232,240,.3); }
.wg-storage-body {
    border-top: 1px solid rgba(255,255,255,.07);
    padding: 12px;
}
.wg-storage-stats {
    display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; margin-bottom: 10px;
}
.wg-ssstat { display: flex; flex-direction: column; gap: 2px; }
.wg-sslbl  { font-size: 10px; color: rgba(232,232,240,.4); }
.wg-ssstat strong { font-size: 13px; font-weight: 700; }
.wg-btn-upgrade {
    width: 100%; padding: 10px; border-radius: 6px;
    background: rgba(78,201,122,.1); border: 1px solid rgba(78,201,122,.25);
    color: #4ec97a; font-size: 12px; font-weight: 700;
    cursor: pointer; transition: background .15s;
}
.wg-btn-upgrade:hover { background: rgba(78,201,122,.2); }
.wg-storage-blocked {
    font-size: 12px; color: rgba(224,85,85,.8);
    background: rgba(224,85,85,.07); border-radius: 5px; padding: 8px 10px;
}

/* Panel sprzętu odwiertu */
.wg-equipment-wrap {
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 7px; overflow: hidden;
    margin-top: 8px;
}
.wg-equipment-toggle {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 12px;
    font-size: 12px; font-weight: 600; color: rgba(232,232,240,.7);
    cursor: pointer; user-select: none;
    transition: background .15s;
}
.wg-equipment-toggle:hover { background: rgba(255,255,255,.05); }
.wg-equipment-meta { font-size: 11px; font-weight: 400; color: rgba(232,232,240,.4); margin-left: auto; }
.wg-equipment-arrow { font-size: 10px; color: rgba(232,232,240,.3); }
.wg-equipment-body {
    border-top: 1px solid rgba(255,255,255,.07);
    padding: 12px;
    display: flex; flex-direction: column; gap: 10px;
}
.wg-eq-stats {
    display: grid; grid-template-columns: repeat(4,1fr); gap: 6px;
}
.wg-eq-stat { display: flex; flex-direction: column; gap: 2px; }
.wg-eq-lbl { font-size: 9px; color: rgba(232,232,240,.35); letter-spacing: .3px; }
.wg-eq-val { font-size: 13px; font-weight: 700; }
.wg-eq-section-title {
    font-size: 10px; font-weight: 600; color: rgba(232,232,240,.4);
    text-transform: uppercase; letter-spacing: .5px;
    padding-top: 4px; border-top: 1px solid rgba(255,255,255,.06);
}
.wg-eq-tiers { display: flex; flex-direction: column; gap: 6px; }
.wg-eq-tier {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 8px 10px; border-radius: 6px;
    border: 1px solid rgba(255,255,255,.07);
    background: rgba(255,255,255,.02);
}
.wg-eq-tier--active {
    border-color: rgba(78,201,122,.3);
    background: rgba(78,201,122,.05);
}
.wg-eq-tier-info { display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.wg-eq-tier-desc { font-size: 10px; color: rgba(232,232,240,.4); }
.wg-eq-tier-cost { font-size: 11px; font-weight: 600; }
.wg-eq-upgrade {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 8px 10px; border-radius: 6px;
    border: 1px solid rgba(230,180,60,.2);
    background: rgba(230,180,60,.04);
}
.wg-eq-upgrade-info { display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.wg-eq-maxlvl {
    font-size: 12px; color: #4ec97a;
    background: rgba(78,201,122,.07); border-radius: 5px; padding: 8px 10px;
    text-align: center;
}
.wg-btn-eq {
    padding: 6px 12px; border-radius: 5px; border: none; cursor: pointer;
    font-size: 11px; font-weight: 600;
    background: rgba(78,201,122,.15); color: #4ec97a;
    transition: background .15s; white-space: nowrap;
}
.wg-btn-eq:hover { background: rgba(78,201,122,.25); }
.wg-btn-eq--disabled { opacity: .4; cursor: not-allowed; }

/* Panel warstw geologicznych */
.wg-layer-wrap {
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 7px; overflow: hidden;
    margin-top: 8px;
}
.wg-layer-toggle {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 12px;
    font-size: 12px; font-weight: 600; color: rgba(232,232,240,.7);
    cursor: pointer; user-select: none;
    transition: background .15s;
}
.wg-layer-toggle:hover { background: rgba(255,255,255,.05); }
.wg-layer-meta { font-size: 11px; font-weight: 400; color: rgba(232,232,240,.4); margin-left: auto; }
.wg-layer-arrow { font-size: 10px; color: rgba(232,232,240,.3); }
.wg-layer-body {
    border-top: 1px solid rgba(255,255,255,.07);
    padding: 12px;
    display: flex; flex-direction: column; gap: 10px;
}
.wg-layer-switching {
    font-size: 12px; color: #e6b43c;
    background: rgba(230,180,60,.07); border-radius: 5px; padding: 10px 12px;
    text-align: center;
}
.wg-layer-active-stats {
    display: grid; grid-template-columns: repeat(4,1fr); gap: 6px;
}
.wg-layer-stat { display: flex; flex-direction: column; gap: 2px; }
.wg-layer-stat-lbl { font-size: 9px; color: rgba(232,232,240,.35); letter-spacing: .3px; }
.wg-layer-stat-val { font-size: 13px; font-weight: 700; }
.wg-layer-section-title {
    font-size: 10px; font-weight: 600; color: rgba(232,232,240,.4);
    text-transform: uppercase; letter-spacing: .5px;
    padding-top: 4px; border-top: 1px solid rgba(255,255,255,.06);
}
.wg-layers-list { display: flex; flex-direction: column; gap: 6px; }
.wg-layer-item {
    padding: 9px 10px; border-radius: 6px;
    border: 1px solid rgba(255,255,255,.07);
    background: rgba(255,255,255,.02);
    display: flex; flex-direction: column; gap: 5px;
}
.wg-layer-item--active {
    border-color: rgba(78,201,122,.3);
    background: rgba(78,201,122,.05);
}
.wg-layer-item-header {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 12px;
}
.wg-layer-depth { font-size: 10px; color: rgba(232,232,240,.35); }
.wg-layer-item-stats {
    display: flex; flex-wrap: wrap; gap: 6px;
    font-size: 10px; font-weight: 600;
}
.wg-layer-item-footer {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 11px; font-weight: 600;
}
.wg-btn-layer {
    padding: 5px 11px; border-radius: 5px; border: none; cursor: pointer;
    font-size: 11px; font-weight: 600;
    background: rgba(200,168,75,.15); color: #c8a84b;
    transition: background .15s; white-space: nowrap;
}
.wg-btn-layer:hover { background: rgba(200,168,75,.28); }
.wg-btn-layer--disabled { opacity: .4; cursor: not-allowed; }
.cv-orange { color: #e07d2a; }

/* Kolory wartości */
.cv-gold  { color: #c8a84b; }
.cv-good  { color: #4ec97a; }
.cv-warn  { color: #e6b43c; }
.cv-bad   { color: #e05555; }
.cv-muted { color: rgba(232,232,240,.4); }
.cg-good  { color: #4ec97a; }
.cg-warn  { color: #e6b43c; }
.cg-bad   { color: #e05555; }

/* Paginacja well_grid */
.wg-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.wg-page-info { font-size: 12px; color: rgba(232,232,240,.4); }
.wg-page-btns { display: flex; gap: 4px; flex-wrap: wrap; }
.wg-page-btn {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    color: rgba(232,232,240,.6);
    text-decoration: none;
    transition: background .15s;
}
.wg-page-btn:hover { background: rgba(255,255,255,.1); color: var(--text); }
.wg-page-btn--active {
    background: rgba(200,168,75,.15);
    border-color: rgba(200,168,75,.4);
    color: #c8a84b;
    font-weight: 700;
}

/* Region w nagłówku karty odwiertu */
.wg-region {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .3px;
    margin-top: 1px;
    opacity: .85;
}

/* Dane lokalizacji w rozwinięciu aktywnego odwiertu */
.wg-location-info {
    background: rgba(0,0,0,.15);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 6px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.wg-loc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}
.wg-loc-lbl { color: rgba(232,232,240,.45); }
.wg-loc-val { font-weight: 600; }

/* ── Sekcja spłaty kredytu ────────────────────────────────── */
.repay-block {
    border: 1px solid rgba(78,201,122,.2);
    background: rgba(78,201,122,.04);
    border-radius: 8px;
    padding: 14px 16px;
    margin: 12px 0;
}
.repay-block-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #4ec97a;
}
.repay-form { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.repay-options { display: flex; gap: 10px; flex-wrap: wrap; flex: 1; }
.repay-option {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    background: rgba(0,0,0,.2);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: border-color .15s;
    flex: 1;
    min-width: 130px;
}
.repay-option:has(input:checked) {
    border-color: #4ec97a;
    background: rgba(78,201,122,.08);
}
.repay-option input[type=radio] { margin-top: 3px; flex-shrink: 0; }
.repay-option > span { display: flex; flex-direction: column; gap: 3px; font-size: 13px; font-weight: 600; }
.repay-option > span small { font-size: 11px; font-weight: 400; color: rgba(232,232,240,.55); }
.repay-option > span small select {
    background: transparent;
    border: none;
    color: rgba(232,232,240,.7);
    font-size: 11px;
    cursor: pointer;
}

/* Dynamiczna kwota przy wyborze liczby rat */
.repay-multi-amount {
    display: block;
    margin-top: 2px;
    color: #c8a84b;
    font-weight: 700;
    font-size: 12px;
}

/* ═══════════════════════════════════════════════════════════
   GRUPY REGIONALNE — accordion per kontynent/region
   ═══════════════════════════════════════════════════════════ */

.wg-regions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wg-region-group {
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    overflow: hidden;
}

/* Nagłówek grupy */
.wg-region-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    user-select: none;
    background: rgba(255,255,255,.03);
    transition: background .15s;
}
.wg-region-header:hover { background: rgba(255,255,255,.06); }

.wg-region-hdr-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.wg-region-icon  { font-size: 18px; flex-shrink: 0; }
.wg-region-name  { font-size: 14px; font-weight: 700; }
.wg-region-count { font-size: 11px; color: rgba(232,232,240,.35); font-weight: 400; }

.wg-region-hdr-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.wg-region-pills { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* Pilułki statusów */
.wg-rpill {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
}
.wg-rpill--active  { background: rgba(78,201,122,.12);  color: #4ec97a; border: 1px solid rgba(78,201,122,.25); }
.wg-rpill--warn    { background: rgba(230,180,60,.12);  color: #e6b43c; border: 1px solid rgba(230,180,60,.25); }
.wg-rpill--danger  { background: rgba(224,85,85,.12);   color: #e05555; border: 1px solid rgba(224,85,85,.25); }
.wg-rpill--prod    { background: rgba(200,168,75,.10);  color: #c8a84b; border: 1px solid rgba(200,168,75,.2);  }

.wg-region-arrow {
    font-size: 11px;
    color: rgba(232,232,240,.3);
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

/* Siatka kart wewnątrz grupy */
.wg-region-group .wg-grid {
    padding: 12px;
    border-top: 1px solid rgba(255,255,255,.06);
    background: rgba(0,0,0,.15);
}

/* ── Modal potwierdzenia magazynu ────────────────────────── */
.wg-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.7);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
    animation: wgFadeIn .15s ease;
}
.wg-modal-closing { opacity: 0; transition: opacity .2s; }
@keyframes wgFadeIn { from { opacity:0 } to { opacity:1 } }

.wg-modal {
    background: #1a1a28;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    padding: 24px;
    width: 380px;
    max-width: calc(100vw - 32px);
    box-sizing: border-box;
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
    animation: wgSlideUp .15s ease;
}
@keyframes wgSlideUp { from { transform:translateY(20px); opacity:0 } to { transform:none; opacity:1 } }

.wg-modal-title {
    font-size: 16px; font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}
.wg-modal-body { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.wg-modal-row {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px; padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.wg-modal-row--cost { border-bottom: none; padding-top: 10px; margin-top: 2px; }
.wg-modal-actions {
    display: flex; gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
}
.wg-modal-actions .btn {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
}

/* Modal — komunikaty sukcesu/błędu */
.wg-modal-msg {
    min-height: 20px;
    font-size: 12px;
    padding: 6px 0 0;
    border-radius: 4px;
}
.wg-modal-success { color: #4ec97a; }
.wg-modal-error   { color: #e05555; }

/* Aktywny link nawigacji */
.user-nav .nav-active {
    background: rgba(200,168,75,.15) !important;
    border-color: rgba(200,168,75,.4) !important;
    color: #c8a84b !important;
}
/* ══════════════════════════════════════════
   WELL STAFF — Personel Odwiertów
══════════════════════════════════════════ */
.ws-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    margin-top: 20px;
}
.ws-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    padding: 16px;
    min-width: 0;
}
.ws-card--warn { border-color: rgba(224,180,60,.35); }

.ws-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
}
.ws-well-name {
    font-weight: 600; font-size: 14px; color: #e8e8f0;
    flex: 1; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ws-status-badge {
    font-size: 10px; font-weight: 600; padding: 3px 8px;
    border-radius: 20px; letter-spacing: .3px;
    white-space: nowrap; flex-shrink: 0;
}
.ws-status-active        { background: rgba(78,201,122,.12); color: #4ec97a; border: 1px solid rgba(78,201,122,.3); }
.ws-status-no_operator   { background: rgba(224,85,85,.12);  color: #e05555; border: 1px solid rgba(224,85,85,.3); }
.ws-status-no_technician { background: rgba(224,180,60,.12); color: #e0b44c; border: 1px solid rgba(224,180,60,.3); }
.ws-status-paused_staff  { background: rgba(224,180,60,.12); color: #e0b44c; border: 1px solid rgba(224,180,60,.3); }
.ws-status-paused_cash   { background: rgba(224,85,85,.08);  color: #e05555; border: 1px solid rgba(224,85,85,.2); }

/* Wiersz roli — lewa: etykieta, prawa: przypisany/empty */
.ws-role-row {
    display: grid;
    grid-template-columns: 110px 1fr;
    align-items: center;
    gap: 8px;
    padding: 9px 0;
    border-top: 1px solid rgba(255,255,255,.06);
    min-width: 0;
}
.ws-role-label {
    display: flex; align-items: center; gap: 5px;
    font-size: 11px; color: rgba(255,255,255,.5);
    flex-shrink: 0;
}
.ws-role-icon { font-size: 13px; }
.ws-role-req  { font-size: 10px; color: rgba(255,255,255,.3); display: inline; }

/* Przypisany pracownik */
.ws-assigned {
    display: flex; align-items: center;
    gap: 6px; min-width: 0;
    justify-content: space-between;
}

/* Chip — kompaktowy widok przypisanego pracownika */
.ws-chip {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(200,168,75,.08);
    border: 1px solid rgba(200,168,75,.2);
    border-radius: 20px;
    padding: 2px 8px 2px 4px;
    min-width: 0; max-width: 160px;
    cursor: default;
}
.ws-chip-skill {
    display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px; border-radius: 50%;
    background: rgba(200,168,75,.25); color: #c8a84b;
    font-size: 10px; font-weight: 700; flex-shrink: 0;
}
.ws-chip-name {
    font-size: 11px; font-weight: 600; color: #d4b96a;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Puste miejsce */
.ws-empty {
    display: flex; align-items: center;
    gap: 8px; justify-content: space-between; flex: 1;
}
.ws-empty-label {
    font-size: 11px; color: rgba(255,255,255,.2);
    font-style: italic;
}

/* Przyciski */
.btn-ws-assign {
    font-size: 11px; font-weight: 700; padding: 3px 10px;
    background: rgba(200,168,75,.1); color: #c8a84b;
    border: 1px solid rgba(200,168,75,.3); border-radius: 5px;
    cursor: pointer; transition: all .2s;
    white-space: nowrap; flex-shrink: 0;
}
.btn-ws-assign:hover { background: rgba(200,168,75,.2); }
.btn-ws-remove {
    font-size: 11px; padding: 2px 7px; flex-shrink: 0;
    background: rgba(224,85,85,.08); color: #e05555;
    border: 1px solid rgba(224,85,85,.25); border-radius: 5px; cursor: pointer;
}
.btn-ws-remove:hover { background: rgba(224,85,85,.18); }

/* Modal */
.ws-modal-backdrop {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(0,0,0,.7); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
}
.ws-modal {
    background: #12121f; border: 1px solid rgba(200,168,75,.25);
    border-radius: 12px; width: 480px; max-width: 95vw;
    max-height: 80vh; display: flex; flex-direction: column;
}
.ws-modal-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 20px 24px 16px; border-bottom: 1px solid rgba(255,255,255,.07);
}
.ws-modal-title { font-size: 16px; font-weight: 700; color: #c8a84b; }
.ws-modal-sub   { font-size: 12px; color: rgba(255,255,255,.45); margin-top: 2px; }
.ws-modal-close { background: none; border: none; color: rgba(255,255,255,.4);
    font-size: 22px; cursor: pointer; padding: 0; line-height: 1; }
.ws-modal-body  { padding: 16px 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }

.ws-staff-card {
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px; padding: 14px 16px;
    display: flex; justify-content: space-between; align-items: center;
    transition: all .2s;
}
.ws-staff-card:hover:not(.ws-staff-card--busy) { border-color: rgba(200,168,75,.4); background: rgba(200,168,75,.06); }
.ws-staff-name { font-size: 14px; font-weight: 600; color: #e8e8f0; }
.ws-staff-meta { font-size: 11px; color: rgba(255,255,255,.4); margin-top: 2px; }
.ws-staff-right { text-align: right; }
.ws-skill-big   { font-size: 22px; font-weight: 700; color: #c8a84b; line-height: 1; }
.ws-skill-big span { font-size: 12px; color: rgba(255,255,255,.35); }
.ws-salary      { font-size: 11px; color: rgba(255,255,255,.4); margin-top: 2px; }
.ws-already-assigned { color: rgba(224,180,60,.6); font-style: italic; }

.ws-loading, .ws-empty-msg, .ws-error {
    text-align: center; padding: 24px; color: rgba(255,255,255,.4); font-size: 13px; line-height: 1.7;
}
.ws-error  { color: #e05555; }
.ws-link-gold { color: #c8a84b; }
/* ── Blokada wniosku kredytowego ── */
.block-reasons-list {
    margin: 12px 0 16px 0;
    padding-left: 20px;
    color: #e05555;
}
.block-reasons-list li {
    margin-bottom: 6px;
    font-size: 14px;
}

/* ══════════════════════════════════════════
   PROFIL GRACZA
══════════════════════════════════════════ */
.profile-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 16px 60px;
}
.profile-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    margin-top: 24px;
}
@media (max-width: 700px) {
    .profile-grid { grid-template-columns: 1fr; }
}

/* ── Avatar ── */
.profile-avatar-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    margin-bottom: 16px;
}
.profile-avatar-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 14px;
}
.profile-avatar-img {
    width: 96px; height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(200,168,75,.4);
    display: block;
}
.profile-avatar-placeholder {
    width: 96px; height: 96px;
    border-radius: 50%;
    background: rgba(200,168,75,.15);
    border: 2px solid rgba(200,168,75,.35);
    display: flex; align-items: center; justify-content: center;
    font-size: 36px; font-weight: 700; color: #c8a84b;
}
.profile-avatar-overlay {
    position: absolute; inset: 0;
    border-radius: 50%;
    background: rgba(0,0,0,.5);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    opacity: 0; transition: opacity .2s;
    cursor: pointer;
}
.profile-avatar-wrap:hover .profile-avatar-overlay { opacity: 1; }
.profile-username {
    font-size: 16px; font-weight: 700; color: #e8e8f0;
    margin-bottom: 4px;
}
.profile-company {
    font-size: 12px; color: #c8a84b;
    margin-bottom: 8px;
}
.profile-avatar-hint {
    font-size: 11px; color: rgba(255,255,255,.3);
    margin-top: 8px;
}

/* ── Statystyki ── */
.profile-stats-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    padding: 16px;
}
.profile-stat {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
    font-size: 12px;
}
.profile-stat:last-child { border-bottom: none; }
.profile-stat-label { color: rgba(255,255,255,.45); }
.profile-stat-value { font-weight: 600; color: #e8e8f0; }

/* ── Karty formularzy ── */
.profile-right { display: flex; flex-direction: column; gap: 20px; }
.profile-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    padding: 24px;
}
.profile-card-title {
    font-size: 15px; font-weight: 700; color: #c8a84b;
    margin: 0 0 20px 0;
}
.profile-field { margin-bottom: 16px; }
.profile-label {
    display: block;
    font-size: 12px; font-weight: 600;
    color: rgba(255,255,255,.55);
    margin-bottom: 6px; letter-spacing: .5px;
    text-transform: uppercase;
}
.profile-input {
    width: 100%; box-sizing: border-box;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 7px;
    padding: 10px 14px;
    font-size: 14px; color: #e8e8f0;
    font-family: inherit;
    transition: border-color .2s;
}
.profile-input:focus {
    outline: none;
    border-color: rgba(200,168,75,.5);
}
.profile-hint {
    display: block;
    font-size: 11px; color: rgba(255,255,255,.3);
    margin-top: 5px;
}
.profile-password-wrap {
    position: relative;
}
.profile-password-wrap .profile-input {
    padding-right: 42px;
}
.profile-pass-toggle {
    position: absolute; right: 10px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    font-size: 16px; cursor: pointer;
    padding: 0; line-height: 1;
    color: rgba(255,255,255,.4);
}
.profile-pass-toggle:hover { color: rgba(255,255,255,.8); }
.profile-pass-strength, .profile-pass-match {
    font-size: 11px; font-weight: 600;
    margin-top: 5px; min-height: 16px;
}

/* ── Topbar: link do profilu z avatarem ── */
.topbar-user-link {
    display: inline-flex; align-items: center; gap: 7px;
    text-decoration: none;
    padding: 3px 8px 3px 4px;
    border-radius: 20px;
    border: 1px solid rgba(200,168,75,.2);
    transition: all .2s;
}
.topbar-user-link:hover {
    background: rgba(200,168,75,.1);
    border-color: rgba(200,168,75,.4);
}
.topbar-avatar {
    width: 24px; height: 24px;
    border-radius: 50%; object-fit: cover;
    border: 1px solid rgba(200,168,75,.4);
    flex-shrink: 0;
}
.topbar-avatar-initials {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: rgba(200,168,75,.2);
    color: #c8a84b;
    font-size: 11px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

/* ── index.php — karty alertów ── */
.card--hr-alert {
    border-left: 4px solid var(--gold);
    background: linear-gradient(145deg, rgba(200,168,75,.1), rgba(200,168,75,.05));
}
.card--bank-approved {
    border-left: 4px solid var(--green);
}
.bank-loan-count {
    color: var(--orange);
}

/* ══════════════════════════════════════════
   INCIDENT LOG — zakładka Incydenty
══════════════════════════════════════════ */
.inc-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.inc-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.07);
    transition: background .15s;
}
.inc-row:hover { background: rgba(255,255,255,.055); }

.inc-row.inc-micro  { border-left: 3px solid rgba(78,201,122,.4); }
.inc-row.inc-minor  { border-left: 3px solid rgba(224,180,60,.5); }
.inc-row.inc-medium { border-left: 3px solid rgba(224,130,50,.6); background: rgba(224,130,50,.04); }
.inc-row.inc-major  { border-left: 3px solid rgba(224,85,85,.7);  background: rgba(224,85,85,.06); }
.inc-row.inc-repaired { opacity: .55; }

.inc-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }

.inc-body { flex: 1; min-width: 0; }
.inc-msg  { font-size: 13px; color: #e8e8f0; line-height: 1.5; }
.inc-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-top: 5px;
    font-size: 11px;
    color: rgba(232,232,240,.45);
}
.inc-meta .sep { opacity: .35; }

.inc-right {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}
.inc-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
    padding: 2px 7px;
    border-radius: 4px;
}
.inc-micro  .inc-badge { background: rgba(78,201,122,.12);  color: #4ec97a; }
.inc-minor  .inc-badge { background: rgba(224,180,60,.12);  color: #e0b43c; }
.inc-medium .inc-badge { background: rgba(224,130,50,.15);  color: #e08232; }
.inc-major  .inc-badge { background: rgba(224,85,85,.18);   color: #e05555; }
.inc-repaired .inc-badge { background: rgba(200,168,75,.12);  color: #c8a84b; }

/* ── BANK — klasy specyficzne ────────────────────────────── */
.loans-table { display: flex; flex-direction: column; gap: 14px; }

.loan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.loan-id { font-weight: 700; font-size: 14px; color: var(--text3); }

.loan-details { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.loan-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid var(--border2);
}
.loan-item:last-child { border-bottom: none; }

.loan-warning {
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(243,156,18,.1);
    border-left: 3px solid var(--orange, #f39c12);
    border-radius: 0 4px 4px 0;
    font-size: 13px;
    color: var(--orange, #f39c12);
}

.offer-details {
    background: var(--bg4);
    border: 1px solid var(--border2);
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 12px;
}
.offer-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid var(--border2);
    font-size: 14px;
}
.offer-item:last-child { border-bottom: none; }
.offer-label { color: var(--text3); font-size: 13px; }
.offer-note  { font-size: 12px; color: var(--text3); margin: 10px 0 14px; font-style: italic; }

.rejection-cooldown {
    background: rgba(231,76,60,.08);
    border: 1px solid rgba(231,76,60,.25);
    border-radius: 6px;
    padding: 12px 16px;
    margin-top: 10px;
    font-size: 14px;
}
.bank-pending-info { padding: 20px; text-align: center; color: var(--text3); font-size: 14px; }

/* loan body flex row */
.loan-body-row { display: flex; gap: 16px; align-items: flex-start; }
.loan-body-main { flex: 1 1 0; min-width: 0; }

/* panel restrukturyzacji (prawa kolumna) */
.loan-restruct-panel {
    flex: 0 0 180px;
    border-radius: 8px;
    padding: 14px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.loan-restruct-panel.restruct-active {
    background: rgba(243,156,18,.10);
    border: 1px solid rgba(243,156,18,.35);
}
.loan-restruct-panel.restruct-done {
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border2);
    opacity: .7;
}
.restruct-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--orange, #f39c12);
    letter-spacing: .02em;
    line-height: 1.3;
}
.restruct-done .restruct-title { color: var(--text3); }
.restruct-countdown { display: flex; flex-direction: column; align-items: center; margin: 4px 0; }
.restruct-days { font-size: 36px; font-weight: 800; color: var(--orange, #f39c12); line-height: 1; }
.restruct-days-label { font-size: 11px; color: var(--text3); margin-top: 2px; }
.restruct-meta { font-size: 11px; color: var(--text3); }
.restruct-done-label { font-size: 13px; font-weight: 700; color: var(--text3); }

@media (max-width: 600px) {
    .loan-body-row { flex-direction: column; }
    .loan-restruct-panel { flex: none; width: 100%; }
}
/* ══════════════════════════════════════════
   PERKI PRACOWNIKÓW (specjalizacje)
══════════════════════════════════════════ */
.ws-perk-badge {
    display: inline-block;
    margin-top: 5px;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .3px;
}
.ws-perk--common {
    background: rgba(120,180,120,.15);
    color: #7eb87e;
    border: 1px solid rgba(120,180,120,.3);
}
.ws-perk--uncommon {
    background: rgba(100,140,220,.15);
    color: #7ab0e8;
    border: 1px solid rgba(100,140,220,.3);
}
.ws-perk--rare {
    background: rgba(180,100,220,.15);
    color: #c87de8;
    border: 1px solid rgba(180,100,220,.3);
}

/* Perk w liście pracowników technical.php */
.ts-perk-badge {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    margin-left: 6px;
    vertical-align: middle;
}
.ts-perk--common   { background: rgba(120,180,120,.2); color:#7eb87e; }
.ts-perk--uncommon { background: rgba(100,140,220,.2); color:#7ab0e8; }
.ts-perk--rare     { background: rgba(180,100,220,.2); color:#c87de8; }

/* ── Formularz rekrutacji: region + ilość obok siebie ── */
.spec-need-row {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}
.spec-need-region {
    flex: 1;
    min-width: 0;
}
.spec-need-count {
    width: 60px;
    flex-shrink: 0;
    text-align: center;
    font-weight: 700;
}

/* ══════════════════════════════════════════
   TRANSPORT ODWIERTÓW
══════════════════════════════════════════ */
.wg-transport-wrap {
    margin-top: 10px;
    border-top: 1px solid rgba(255,255,255,.06);
    padding-top: 10px;
}
.wg-transport-toggle {
    display: flex; align-items: center; gap: 8px;
    cursor: pointer; font-size: 13px; font-weight: 600;
    color: rgba(255,255,255,.75);
    padding: 4px 0;
    user-select: none;
}
.wg-transport-toggle:hover { color: #e8e8f0; }
.wg-transport-meta {
    font-size: 11px; font-weight: 400;
    color: rgba(255,255,255,.45);
    margin-left: 4px;
}
.wg-transport-body { padding-top: 10px; }

/* Sprzedaż odwiertu */
.wg-sell-wrap {
    margin-top: 10px;
    border-top: 1px solid rgba(255,255,255,.06);
    padding-top: 10px;
}
.wg-btn-sell {
    width: 100%;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid rgba(192,57,43,.5);
    background: rgba(192,57,43,.15);
    color: #e8a09a;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.wg-btn-sell:hover {
    background: rgba(192,57,43,.3);
    border-color: rgba(192,57,43,.8);
    color: #fff;
}

/* Zadanie oczekujące na finalizację przez cron */
.task-done-label {
    font-size: 11px;
    color: rgba(255,255,255,.4);
    font-style: italic;
}

/* ══════════════════════════════════════════
   KOMUNIKATY TECHNICZNE (dashboard)
══════════════════════════════════════════ */
.tech-notif-block {
    background: rgba(255,160,50,.06);
    border: 1px solid rgba(255,160,50,.2);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}
.tech-notif-header {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 12px;
}
.tech-notif-title {
    font-weight: 700; font-size: 14px;
    color: #f0a030;
}
.tech-notif-count {
    background: #f0a030; color: #000;
    border-radius: 10px; padding: 1px 7px;
    font-size: 11px; font-weight: 700;
}
.tech-notif-list { display: flex; flex-direction: column; gap: 8px; }
.tech-notif-item {
    display: flex; align-items: flex-start; gap: 10px;
    background: rgba(255,255,255,.04);
    border-radius: 8px; padding: 10px 12px;
    transition: opacity .3s;
}
.tech-notif-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.tech-notif-body { flex: 1; min-width: 0; }
.tech-notif-label {
    font-size: 10px; font-weight: 700;
    color: rgba(255,255,255,.4);
    text-transform: uppercase; letter-spacing: .5px;
    margin-bottom: 2px;
}
.tech-notif-msg {
    font-size: 13px; color: #e8e8f0;
    line-height: 1.4;
}
.tech-notif-time {
    font-size: 11px; color: rgba(255,255,255,.3);
    margin-top: 3px;
}
.tech-notif-dismiss {
    background: none; border: none;
    color: rgba(255,255,255,.25);
    cursor: pointer; font-size: 14px;
    padding: 0 2px; flex-shrink: 0;
    transition: color .2s;
}
.tech-notif-dismiss:hover { color: rgba(255,80,80,.8); }
.tech-notif-more {
    font-size: 12px; color: rgba(255,255,255,.4);
    padding: 4px 0;
}
.tech-notif-more a { color: #f0a030; }
.tech-notif-footer {
    margin-top: 8px;
    text-align: right;
}

/* ═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════
   finance.css — Dział Finansowy OilCorp
   Używa zmiennych z style.css: --bg, --gold, --green, --red itp.
   ═══════════════════════════════════════════════════════ */

.finance-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ── Alerty ──────────────────────────────────────────── */
.finance-alerts {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.finance-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 13px;
    border-left: 3px solid;
}
.finance-alert--danger  { background: var(--red-dim);    border-color: var(--red);    color: var(--red); }
.finance-alert--warning { background: rgba(240,160,80,.1); border-color: var(--orange); color: var(--orange); }
.finance-alert--info    { background: rgba(91,156,246,.08); border-color: var(--blue);  color: var(--blue); }

/* ── Top bar (4 karty) ───────────────────────────────── */
.fin-topbar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
@media (max-width: 768px) {
    .fin-topbar { grid-template-columns: repeat(2, 1fr); }
}
.fin-stat-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px !important;
}
.fin-big {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.5px;
    line-height: 1.2;
}
.fin-sub {
    font-size: 11px;
    color: var(--text3);
    margin-top: 2px;
}

/* ── Kolory ──────────────────────────────────────────── */
.fin-green  { color: var(--green); }
.fin-red    { color: var(--red); }
.fin-orange { color: var(--orange); }
.fin-muted  { color: var(--text3); }
.fin-bold   { font-weight: 600; }
.fin-small  { font-size: 11px; }

/* ── Wykres ──────────────────────────────────────────── */
.finance-chart-card { padding: 16px !important; }
.finance-chart-hdr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.fin-range-btns { display: flex; gap: 6px; }
.finance-chart-wrap { position: relative; width: 100%; }
.fin-empty {
    color: var(--text3);
    font-size: 13px;
    text-align: center;
    padding: 32px 0;
}

/* ── Breakdown ───────────────────────────────────────── */
.fin-breakdown {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 12px;
}
@media (max-width: 768px) {
    .fin-breakdown { grid-template-columns: 1fr; }
}
.fin-breakdown-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border2);
}
.fin-breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--border2);
    gap: 8px;
}
.fin-breakdown-row:last-child { border-bottom: none; }
.fin-hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 8px 0;
}

.fin-row-loss td { background: rgba(224,85,85,.04); }
.fin-num { text-align: right; font-variant-numeric: tabular-nums; }
.fin-well-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
}
.fin-well-link:hover { color: var(--gold2); text-decoration: underline; }
.fin-type-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--bg4);
    color: var(--text2);
}
.fin-type-badge.fin-type-offshore { color: var(--blue); }
.fin-status-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--bg3);
    color: var(--text3);
}
.fin-note {
    font-size: 11px;
    color: var(--text3);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border2);
}

/* ── Klasy generyczne dla paneli finansowych ───────────── */

/* finance.php — odwierty nieaktywne */
.fin-well-row--inactive { opacity: .55; }

/* ── Per-well list (grid, bez tabel) ───────────────────── */
.fin-well-list { display: flex; flex-direction: column; gap: 0; margin-top: 10px; }

.fin-well-header,
.fin-well-row {
    display: grid;
    grid-template-columns: 2fr 80px 100px 90px 110px 80px 70px 110px;
    gap: 8px;
    align-items: center;
    padding: 7px 10px;
    border-bottom: 1px solid var(--border2);
    font-size: 13px;
}
@media (max-width: 900px) {
    .fin-well-header,
    .fin-well-row { grid-template-columns: 2fr 1fr 1fr; }
    .fin-well-header span:nth-child(n+4),
    .fin-well-row  span:nth-child(n+4) { display: none; }
}
.fin-well-header {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text3);
    border-bottom: 1px solid var(--border);
}
.fin-well-row:hover { background: rgba(255,255,255,.02); }
.fin-well-row--loss { background: rgba(224,85,85,.04); }
.fin-well-row--inactive { opacity: .55; }

.fin-num { text-align: right; font-variant-numeric: tabular-nums; }

/* ═══════════════════════════════════════════════════════════════════════════
   FINANCIAL CRISIS SYSTEM — dodano 08.04.2026
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Crisis overlay (stan krytyczny) ─────────────────────────────────────── */
.crisis-overlay {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    background: rgba(224, 85, 85, .12);
    border: 1px solid rgba(224, 85, 85, .5);
    border-left: 4px solid var(--red);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 16px;
    animation: crisis-pulse 2s ease-in-out infinite;
}
@keyframes crisis-pulse {
    0%, 100% { border-left-color: var(--red); }
    50%       { border-left-color: rgba(224,85,85,.4); }
}
.crisis-icon { font-size: 28px; }

.crisis-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 4px;
}
.crisis-sub {
    font-size: 13px;
    color: var(--text2);
    margin-bottom: 10px;
}
.crisis-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.crisis-counter {
    text-align: center;
    min-width: 70px;
}
.crisis-counter-val {
    font-size: 22px;
    font-weight: 700;
    color: var(--red);
    line-height: 1;
}
.crisis-counter-lbl {
    font-size: 10px;
    color: var(--text3);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: .05em;
}
@media (max-width: 600px) {
    .crisis-overlay { grid-template-columns: auto 1fr; }
    .crisis-counter { display: none; }
}

/* ── Warning banner (stan ostrzeżenia) ────────────────────────────────────── */
.warning-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(240, 160, 80, .10);
    border: 1px solid rgba(240, 160, 80, .4);
    border-left: 4px solid var(--orange);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.warning-banner-icon { font-size: 18px; flex-shrink: 0; }
.warning-banner-body { flex: 1; font-size: 13px; color: var(--text2); }
.warning-banner-body strong { color: var(--orange); }
.warning-banner-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* ══════════════════════════════════════════
   OFFLINE PROTECTION SYSTEM
══════════════════════════════════════════ */
.offline-report-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(90, 120, 200, .10);
    border: 1px solid rgba(100, 140, 255, .30);
    border-left: 4px solid #6488ff;
    border-radius: var(--radius);
    padding: 14px 18px;
    margin-bottom: 16px;
    position: relative;
}
.offline-report-icon {
    font-size: 28px;
    flex-shrink: 0;
}
.offline-report-body { flex: 1; }
.offline-report-title {
    font-size: 14px;
    font-weight: 700;
    color: #8ba8ff;
    margin-bottom: 4px;
}
.offline-report-sub {
    font-size: 13px;
    color: var(--text2);
    line-height: 1.5;
}
.offline-report-close {
    background: none;
    border: none;
    color: var(--text3);
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    flex-shrink: 0;
    transition: color .15s;
}
.offline-report-close:hover { color: var(--text1); }

/* Badge "Tryb offline" w well_grid / player info */
.badge-offline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(90, 120, 200, .15);
    border: 1px solid rgba(100, 140, 255, .35);
    color: #8ba8ff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: .03em;
}
.badge-offline::before { content: '🟡'; font-size: 10px; }

/* ── Crisis mode notice (blokada przycisków) ──────────────────────────────── */
.crisis-mode-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(224,85,85,.06);
    border: 1px solid rgba(224,85,85,.2);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--text3);
    margin-bottom: 12px;
}
/* well_grid — utility classes */
.wg-hidden { display: none; }
.wg-diag-note--danger { color: var(--red); margin-top: 6px; }
