/* ==============================================
   НЕФТЯНОЙ БИЗНЕС - СТИЛИ БЕЗ КАРТИНОК
   ============================================== */

/* Основные настройки */
body {
    font-family: Arial;
    color: #b9b9b9;
    background: #0e3d7e;
    max-width: 380px;
    margin: auto;
}

a {
    color: #3cfaff;
    text-decoration: none;
}

img {
    vertical-align: middle;
}

h2 {
    font-family: comicbd;
    color: #99e2ff;
    font-size: 18px;
    margin: 0;
    padding: 0;
    text-align: center;
}

@font-face {
    font-family: Arial;
    src: url(arial.ttf);
}

@font-face {
    font-family: comicbd;
    src: url(comicbd.ttf);
}

/* ==============================================
   ОСНОВНЫЕ БЛОКИ
   ============================================== */

.verh {
    background: #2063b4;
    margin-top: 10px;
    padding: 15px;
}

.verh-2 {
    background: #28458d;
    margin-top: 10px;
    padding: 15px;
}

.ser {
    background: #28458d;
    padding: 10px;
}

.menus2 {
    background: #2063b4;
    padding: 10px;
}

.menus4 {
    background: #2063b4;
}

.niz {
    background: #2063b4;
    padding: 15px;
    text-align: center;
}

.niz-2 {
    background: #28458d;
    margin-bottom: 2px;
    padding: 15px;
    text-align: center;
}

.niz-3 {
    background: #28458d;
    padding: 15px;
    text-align: center;
}

.niz-4 {
    background: #28458d;
    padding: 5px;
    text-align: center;
}

.line {
    background: #1a5191;
    padding: 1px;
    margin: 5px 0;
}

.foot {
    background: #2063b4;
    padding: 10px;
    text-align: center;
    font-weight: bold;
}

/* ==============================================
   КАРТА УЧАСТКОВ
   ============================================== */

.income-panel {
    background: #2063b4;
    padding: 12px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.income-label {
    font-size: 12px;
    color: #b9b9b9;
}

.income-value {
    font-size: 18px;
    font-weight: bold;
    color: #3cfaff;
}

.reservoir-panel {
    background: #2063b4;
    padding: 10px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.reservoir-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.reservoir-icon {
    font-size: 24px;
}

.reservoir-level {
    background: #28458d;
    color: #99e2ff;
    padding: 2px 8px;
    font-size: 11px;
    font-family: comicbd;
}

.reservoir-capacity {
    font-size: 16px;
    font-weight: bold;
    color: #3cfaff;
}

.plots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin: 10px 0;
}

@media (min-width: 480px) {
    .plots-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) {
    .plots-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.plot-card {
    background: #2063b4;
    padding: 8px 5px;
    text-align: center;
    text-decoration: none;
    color: #b9b9b9;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    border: 1px solid #2d69b3;
}

.plot-card.owned {
    border: 2px solid #3cfaff;
}

.plot-card.empty {
    opacity: 0.7;
    background: #1a5191;
}

.plot-number {
    font-size: 14px;
    font-weight: bold;
    color: #99e2ff;
    font-family: comicbd;
}

.plot-status {
    font-size: 22px;
    margin: 2px 0;
}

.plot-rig-name {
    font-size: 9px;
    color: #b9b9b9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.plot-income {
    font-size: 9px;
    color: #3cfaff;
    font-weight: bold;
}

.plot-badge {
    background: #28458d;
    color: #99e2ff;
    padding: 2px 4px;
    font-size: 8px;
    margin-top: 2px;
    border: 1px solid #2d69b3;
}

.buy-plot-btn {
    display: block;
    background: #044390;
    color: #fff;
    text-decoration: none;
    padding: 12px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    margin: 10px 0;
    border-bottom: 2px solid #03b2e3;
    border-top: 1px solid #0074bb;
    border-left: 1px solid #2ab794;
    border-right: 1px solid #2cb894;
}

.nav-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin: 15px 0;
}

.nav-btn {
    background: #044390;
    color: #fff;
    text-decoration: none;
    padding: 10px 5px;
    text-align: center;
    font-size: 12px;
    border-bottom: 2px solid #03b2e3;
    border-top: 1px solid #0074bb;
    border-left: 1px solid #2ab794;
    border-right: 1px solid #2cb894;
}

.info-panel {
    background: #28458d;
    padding: 10px;
    margin: 10px 0;
    font-size: 11px;
    color: #b9b9b9;
    text-align: center;
    border-left: 3px solid #3cfaff;
}

/* ==============================================
   СТРАНИЦА УЧАСТКА
   ============================================== */

.plot-container {
    max-width: 100%;
    margin: 0 auto;
}

.plot-header {
    background: #2063b4;
    padding: 12px;
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plot-title {
    font-size: 18px;
    font-weight: bold;
    color: #99e2ff;
    font-family: comicbd;
}

.plot-back-btn {
    background: #044390;
    color: #fff;
    text-decoration: none;
    padding: 6px 10px;
    font-size: 12px;
    border-bottom: 2px solid #03b2e3;
    border-top: 1px solid #0074bb;
    border-left: 1px solid #2ab794;
    border-right: 1px solid #2cb894;
}

.status-bar {
    background: #2063b4;
    padding: 12px;
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid;
}

.status-ready { border-left-color: #3cfaff; }
.status-work { border-left-color: #00ff00; }
.status-maint { border-left-color: #ff9800; }
.status-idle { border-left-color: #99e2ff; }
.status-need { border-left-color: #ff4444; }

.status-icon { font-size: 22px; margin-right: 8px; }
.status-text { font-size: 14px; font-weight: bold; color: #fff; }
.status-time { font-size: 14px; color: #3cfaff; }

.rig-card {
    background: #2063b4;
    padding: 12px;
    margin: 10px 0;
}

.rig-name {
    font-size: 16px;
    font-weight: bold;
    color: #99e2ff;
    font-family: comicbd;
    margin-bottom: 8px;
}

.rig-level {
    background: #28458d;
    padding: 8px;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.income-block {
    background: #2063b4;
    padding: 12px;
    margin: 10px 0;
}

.income-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.income-value {
    font-size: 22px;
    font-weight: bold;
    color: #3cfaff;
}

.income-details-btn {
    background: #044390;
    color: #fff;
    text-decoration: none;
    padding: 6px 10px;
    font-size: 12px;
    border-bottom: 2px solid #03b2e3;
    border-top: 1px solid #0074bb;
    border-left: 1px solid #2ab794;
    border-right: 1px solid #2cb894;
}

.income-details {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #2d69b3;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin: 6px 0;
    font-size: 13px;
}

.bonuses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin: 10px 0;
}

.bonus-item {
    background: #28458d;
    padding: 8px 5px;
    text-align: center;
    font-size: 10px;
    border: 1px solid #2d69b3;
}

.bonus-value {
    font-weight: bold;
    margin-top: 3px;
}
.bonus-speed { color: #3cfaff; }
.bonus-income { color: #00ff00; }
.bonus-maint { color: #ff9800; }

.manager-card {
    background: #28458d;
    padding: 10px;
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    border-left: 4px solid #3cfaff;
}

.workers-card {
    background: #2063b4;
    padding: 12px;
    margin: 10px 0;
}

.workers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.worker-item {
    background: #28458d;
    padding: 8px;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #2d69b3;
}

.worker-name {
    font-weight: bold;
    color: #99e2ff;
}

.worker-bonus {
    font-size: 11px;
    color: #3cfaff;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 3px;
    margin-top: 10px;
}

.pagination a, .pagination span {
    padding: 5px 8px;
    background: #28458d;
    color: #b9b9b9;
    text-decoration: none;
    font-size: 12px;
    border: 1px solid #2d69b3;
}

.pagination .active {
    background: #044390;
    color: #fff;
    border-bottom: 2px solid #03b2e3;
}

.upgrades-card {
    background: #2063b4;
    padding: 12px;
    margin: 10px 0;
}

.upgrades-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

@media (min-width: 480px) {
    .upgrades-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.upgrade-item {
    background: #28458d;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    border: 1px solid #2d69b3;
}

.upgrade-name {
    font-weight: bold;
    color: #99e2ff;
}

.upgrade-level {
    font-size: 11px;
    color: #b9b9b9;
}

.upgrade-btn {
    background: #044390;
    color: #fff;
    text-decoration: none;
    padding: 5px 10px;
    font-size: 11px;
    border-bottom: 2px solid #03b2e3;
    border-top: 1px solid #0074bb;
    border-left: 1px solid #2ab794;
    border-right: 1px solid #2cb894;
}

.upgrade-btn.disabled {
    background: #666;
    border-bottom-color: #444;
    pointer-events: none;
    opacity: 0.5;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin: 15px 0;
}

.action-btn {
    background: #044390;
    color: #fff;
    text-decoration: none;
    padding: 10px 5px;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    border-bottom: 2px solid #03b2e3;
    border-top: 1px solid #0074bb;
    border-left: 1px solid #2ab794;
    border-right: 1px solid #2cb894;
}

/* ==============================================
   КНОПКИ
   ============================================== */

.btn-sm {
    padding: 6px 10px;
    font-size: 11px;
    text-decoration: none;
    display: inline-block;
    background: #044390;
    color: #fff;
    border-bottom: 2px solid #03b2e3;
    border-top: 1px solid #0074bb;
    border-left: 1px solid #2ab794;
    border-right: 1px solid #2cb894;
}

.btn_b {
    display: inline-block;
    font-size: medium;
    background: #1a5191;
    min-height: 18px;
    min-width: 60px;
    font-weight: bold;
    text-align: center;
    color: #fff;
    margin: 2px;
    padding: 8px;
    border-radius: 4px;
}

.cnop_new {
    display: inline-block;
    zoom: 1;
    vertical-align: baseline;
    outline: none;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    border: 2px solid #23ea67;
    padding: .3em 1em .30em;
    border-radius: .5em;
    box-shadow: 0 1px 2px #ececec;
    background: #1257d0;
}

.pan-3 {
    background: #044390;
    color: #fff;
    padding: 8px;
    border-bottom: 2px solid #03b2e3;
    border-top: 1px solid #0074bb;
    border-left: 1px solid #2ab794;
    border-right: 1px solid #2cb894;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.2);
    border-radius: 3px;
    margin-bottom: 1px;
}

/* ==============================================
   ТЕКСТОВЫЕ ЭЛЕМЕНТЫ
   ============================================== */

.text-block {
    background: #0e3d7e;
    padding: 8px;
    border-radius: 9px;
    word-wrap: break-word;
}

.right {
    float: right;
}

/* ==============================================
   ПРОГРЕСС БАР
   ============================================== */

.progress {
    background: rgba(0, 0, 0, 0.25);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25), 0 1px rgba(255, 255, 255, 0.08);
}

.progress > .progress-bar {
    background-color: #3cfaff;
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.33) 0, rgba(255, 255, 255, 0.08) 50%, rgba(0, 0, 0, 0.25) 50%, rgba(0, 0, 0, 0.1) 100%),
                      linear-gradient(45deg, rgba(255, 255, 255, 0.16) 25%, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0) 50%, rgba(255, 255, 255, 0.16) 50%, rgba(255, 255, 255, 0.16) 75%, rgba(0, 0, 0, 0) 75%, rgba(0, 0, 0, 0)),
                      linear-gradient(to right, #2463b3, #82bf56);
    box-shadow: inset 0 1px 1px 0px rgba(255, 215, 215, 0.5), inset 0 -1px 1px 0px rgba(255, 255, 255, 0.25), 1px 1px 3px 0 rgba(255, 255, 255, 0.33);
}

.progress-bar {
    background-size: 100% 100%, 20px 20px, 100% 100%;
    position: relative;
    height: 10px;
    box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.25), inset 0 1px rgba(255, 255, 255, 0.1);
}

/* ==============================================
   ПАГИНАЦИЯ
   ============================================== */

.div7777 {
    margin: 2px;
    background-color: #0d3e90;
    border: 1px solid #0064a4;
    color: #5fe9f1;
    padding: 2px 6px;
    display: inline-block;
}

.div777 {
    color: #3cfaff;
    background-color: #04428f;
    border: 1px solid #00b8e8;
    padding: 2px 6px;
    text-align: center;
    display: inline-block;
}

/* ==============================================
   ДОПОЛНИТЕЛЬНЫЕ КЛАССЫ
   ============================================== */

.center_block {
    position: relative;
    display: block;
    text-align: center;
    background-color: #2063b4;
    overflow: hidden;
    padding: 6px;
    margin: 4px;
    border-radius: 8px;
}

.sp5 {
    border: 2px solid #2d69b3;
    background-color: #2b478d;
    display: block;
    padding: 5px 8px;
}

.inv2 {
    padding: 4px;
    text-align: center;
}

.block {
    background: #0a316c;
    color: #fff;
    padding: 0px 10px;
}