/* Common styles for Деловой бухгалтер */

html { scroll-behavior: smooth; }
body { background-color: #f8f9fa; }
@media (min-width: 768px) {
    html { scroll-padding-top: 5rem; }
}

/* Hero gradient */
.hero-gradient {
    background: linear-gradient(135deg, #5D2906 0%, #B8860B 100%);
}

/* Активный пункт меню в шапке */
header nav ul li a.nav-link.active,
.nav-link.active {
    font-weight: 700 !important;
    color: white !important;
}
header nav ul li a.nav-link.active:hover,
.nav-link.active:hover {
    color: #fb923c !important;
}

/* ====== Карточки клиентов ====== */
.client-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.client-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(166, 83, 0, 0.18);
}

/* Кружок-инициалы вместо аватарки */
.client-avatar-initials {
    width: 56px;
    height: 56px;
    border-radius: 9999px;
    background-color: rgba(166, 83, 0, 0.14);
    color: #5D2906;
    font-weight: 700;
    font-size: 1.125rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ====== Pricing tabs ====== */
.pricing-tab-button {
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    border: 2px solid rgb(166, 83, 0);
    color: rgb(166, 83, 0);
    background: transparent;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
}
.pricing-tab-button:hover { background-color: rgba(166, 83, 0, 0.08); }
.pricing-tab-button.active {
    background-color: rgb(166, 83, 0);
    color: #fff;
}

/* Pricing tables */
.pricing-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.95rem;
}
.pricing-table th,
.pricing-table td {
    border-bottom: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    vertical-align: middle;
}
.pricing-table th:last-child,
.pricing-table td:last-child { border-right: 0; }
.pricing-table tbody tr:last-child td { border-bottom: 0; }
.pricing-table tbody tr:nth-child(odd) { background-color: #fafafa; }
.pricing-table tbody tr:hover { background-color: rgba(166, 83, 0, 0.06); }
.pricing-row-total td {
    background-color: #fff7ed !important;
    font-size: 1rem;
    position: sticky;
    bottom: 0;
    z-index: 4;
}
.pricing-row-total td::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -1px;
    height: 1px;
    background-color: #e5e7eb;
}

/* Скругление углов без overflow:hidden, чтобы не ломать sticky thead */
.pricing-table thead tr:first-child th:first-child { border-top-left-radius: 0.5rem; }
.pricing-table thead tr:first-child th:last-child  { border-top-right-radius: 0.5rem; }
.pricing-table tbody tr:last-child td:first-child  { border-bottom-left-radius: 0.5rem; }
.pricing-table tbody tr:last-child td:last-child   { border-bottom-right-radius: 0.5rem; }

/* Sticky thead в прокручиваемой обёртке таблицы цен.
   Явный фон обязателен — фон через Tailwind-класс ниже sticky-слоя. */
.pricing-table thead th {
    position: sticky;
    top: 0;
    z-index: 5;
    background-color: #f3f4f6;
}
/* Тень-разделитель снизу sticky-шапки при скролле */
.pricing-table thead th::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background-color: #e5e7eb;
}

/* ====== Утилитарные ====== */
.transition-smooth { transition: all 0.3s ease; }
