﻿html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.container {
    max-width: 1820px;
}

.container-ip {
    background: #fff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 65px;
    line-height: inherit !important;
}

tr {
    vertical-align: middle;
}

.btn-default {
    background-color: rgba(0,0,0,.2);
}

.btn-delete {
    background-color: #dc3545;
    color: white;
}

.btn-save {
    background-color: #198754;
    color: white;
}

.btn-create {
    background-color: #198754;
    color: white;
}

.btn-edit {
    background-color: cornflowerblue;
    color: white;
}

.row {
    margin: 10px;
    justify-content: center !important;
}

.btn-default:hover {
    color: white;
}

.nav-item:hover {
    background-color: lightgrey;
}

.nav-item {
    transition: background 0.5s ease;
    border-radius: 5px;
}

.add-item-block {
    text-align: center;
    border-style: solid;
    border-width: 1px;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 30px;
}

.notification {
    visibility: hidden;
    min-width: 250px;
    transform: translate(-50%, -50%);
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 10px;
    padding: 16px;
    position: fixed;
    z-index: 9000;
    left: 50%;
    top: 50%;
    font-size: 17px;
    opacity: 0;
    transition: opacity 0.6s, visibility 0.6s;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

/* Стили для формы */
#Add_new_invoice-form {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

#Edit_invoice-form {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.modal-overlay.show {
    display: flex;
}

.notification-success {
    background-color: #198754 !important;
}

.notification-error {
    background-color: #dc3545 !important;
}

.notification.show {
    visibility: visible;
    opacity: 1;
}

table a span {
    font-size: 12px;
    margin-left: 5px;
    color: gray;
}

table a:hover span {
    color: black;
}

.form-field {
    margin-bottom: 10px;
}

.btn-with-icon {
    display: flex;
    align-items: center;
}

.icon {
    margin-right: 5px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    overflow-y: hidden;
}

/* MAIN TABLE */
.table-group-label {
    text-align: center;
}

.table-group-today {
    background-color: lightgoldenrodyellow;
}

/* VKS BLOCK */
.vks-block {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 250px;
    max-width: 350px;
    text-align: center;
}

.vks-item {
    padding: 5px;
    background-color: lightblue;
    border-radius: 10px;
    font-size: x-large;
}

/* Окно подтверждения */
.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    text-align: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

/* Кнопки */
.modal-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: space-around;
}

.table-hover tbody tr:hover {
    filter: saturate(1.2);
}

.ip {
    font-size: 28px;
    font-weight: bold;
    color: #273c75;
    cursor: pointer;
    margin-bottom: 5px;
    user-select: none;
}

    .ip:hover {
        text-decoration: underline;
    }

.location {
    color: #718093;
    margin-bottom: 20px;
}

button {
    background: #0984e3;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover:not(:disabled) {
    background: #74b9ff;
}

button:disabled {
    background: #b2bec3;
    cursor: not-allowed;
}

.result {
    margin-top: 20px;
    font-size: 18px;
    font-weight: 500;
    color: #2d3436;
}

.notes {
    color: gray;
    font-size: 0.9em;
    margin-top: 8px;
}

.copy-Notice {
    font-size: 0.9em;
    color: green;
    margin-top: 4px;
    background-color: darkseagreen;
    width: 120px;
    border-radius: 8px;
    text-align: center;
}

#copyNotice {
    display: none !important;
}

#copyNotice.show {
    display: flex !important;
}

/* QR PAGE — ДОПОЛНИТЕЛЬНЫЕ АККУРАТНЫЕ ПРАВКИ */

.qr-sticky {
    position: sticky;
    top: 1rem;
}

.qr-preview {
    /* Держим аккуратный квадрат превью */
    background: #fff;
}

/* Чуть мягче карточки */
.card {
    border-radius: 0.75rem;
}

/* Компактнее заголовки секций */
.card-header {
    border-bottom-color: rgba(0,0,0,.06);
}

/* Уплотнение формы без потери читабельности */
.form-label {
    margin-bottom: .35rem;
}

.form-text {
    margin-top: .25rem;
}

/* Кнопки с иконками — выравнивание уже ок, просто чуть плотнее */
.btn .fa {
    vertical-align: -0.125em;
}

/* На мобилках уменьшим отступы контейнеров */
@media (max-width: 576px) {
    .container-lg {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
