html, body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #18180f;
    background: #f4f1ea;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

a, .btn-link {
    color: #1a5fa8;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #b85c2a, #cc6e39);
    border: none;
    border-radius: 10px;
    padding: 0.8rem 1.15rem;
    min-height: 44px;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn-primary:hover {
    opacity: 0.9;
}

h1:focus {
    outline: none;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.9rem;
    margin-top: 1.25rem;
}

.panel-grid,
.workspace-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.workspace-stack {
    display: grid;
    gap: 1.25rem;
    margin-top: 1.15rem;
}

.workspace-stack--customers {
    grid-template-columns: 1fr;
}

.workspace-stack--products {
    grid-template-columns: 1fr;
}

.workspace-stack--settings {
    grid-template-columns: 1fr;
}

.settings-shell {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.settings-menu-card,
.settings-content-shell {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(24, 24, 15, 0.08);
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(40, 28, 15, 0.06);
}

.settings-menu-card {
    padding: 0.85rem;
}

.settings-content-shell {
    padding: 1.5rem;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 0;
}

.settings-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0;
    margin-top: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.tab-button {
    appearance: none;
    border: 1px solid rgba(191, 112, 42, 0.18);
    background: #fffdfa;
    color: #5e381f;
    border-radius: 999px;
    padding: 0.82rem 1.15rem;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.tab-button:hover {
    transform: translateY(-1px);
    border-color: rgba(191, 112, 42, 0.42);
    background: #fff6ee;
    box-shadow: 0 8px 18px rgba(191, 112, 42, 0.12);
}

.tab-button:focus-visible {
    outline: 3px solid rgba(191, 112, 42, 0.18);
    outline-offset: 2px;
}

.tab-button--active {
    color: #ffffff;
    border-color: #bf702a;
    background: linear-gradient(135deg, #cc7332, #b75f20);
    box-shadow: 0 10px 20px rgba(183, 95, 32, 0.22);
}

.panel-card,
.stat-card,
.empty-state {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(24, 24, 15, 0.08);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.panel-card {
    padding: 1.4rem;
}

.panel-card--form {
    display: grid;
    gap: 1.25rem;
}

.panel-card h3 {
    margin: 0 0 1rem;
    font-size: 1.28rem;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #18180f;
}

.panel-card--accent {
    background: linear-gradient(135deg, #fdf0e8, #f7e3d6);
    color: #7a3a15;
    border-color: rgba(184, 92, 42, 0.2);
}

.page-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
}

.page-header h1 {
    margin: 0;
    font-size: 2rem;
    letter-spacing: -0.03em;
}

.page-header__eyebrow {
    margin: 0 0 0.35rem;
    color: #b85c2a;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.page-header__description {
    margin: 0.4rem 0 0;
    color: #6b6960;
    max-width: 760px;
}

.stat-card {
    padding: 1rem;
}

.stat-card__label {
    color: #6b6960;
    font-size: 0.78rem;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.stat-card__value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
}

.stat-card__help {
    margin-top: 0.45rem;
    color: #8b877d;
    font-size: 0.88rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.form-control {
    border-radius: 8px;
    padding: 0.82rem 1rem;
    min-height: 46px;
    border: 1px solid rgba(24, 24, 15, 0.14);
    background: #fffdfa;
    color: #18180f;
}

.form-control:focus {
    border-color: #b85c2a;
    box-shadow: none;
    outline: none;
}

.field-stack {
    display: grid;
    gap: 0.55rem;
}

.field-label {
    color: #6b6960;
    font-size: 0.84rem;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.customer-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.15rem;
}

.customer-form-grid__address {
    grid-column: span 2;
}

.customer-form-grid__notes {
    grid-column: span 1;
}

.product-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.15rem;
}

.product-form-grid__notes {
    grid-column: span 3;
}

.product-form-grid__barcode {
    grid-column: span 3;
}

.settings-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.15rem;
}

.settings-form-grid--comfortable {
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.settings-form-grid--wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.settings-form-grid__full {
    grid-column: 1 / -1;
}

.settings-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.1rem;
}

.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.9rem;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(24, 24, 15, 0.08);
    border-radius: 10px;
    background: #f8f4ed;
}

.settings-item--stack {
    align-items: flex-start;
}

.settings-item__text {
    display: grid;
    gap: 0.2rem;
}

.settings-item__text span {
    color: #6b6960;
    font-size: 0.86rem;
}

.brand-category-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1.15rem;
}

.brand-category-card {
    padding: 1rem;
    border: 1px solid rgba(24, 24, 15, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
}

.brand-category-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(24, 24, 15, 0.08);
}

.brand-category-card__header strong {
    font-size: 1.08rem;
    color: #18180f;
}

.brand-category-card__header span {
    color: #8b877d;
    font-size: 0.84rem;
    font-weight: 700;
}

.xiaomi-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.15rem;
}

.xiaomi-category-card {
    padding: 1rem;
    border: 1px solid rgba(24, 24, 15, 0.08);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 250, 244, 0.98), rgba(255, 255, 255, 0.98));
}

.xiaomi-category-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.xiaomi-category-card__header strong {
    font-size: 1rem;
    color: #18180f;
}

.xiaomi-category-card__header span {
    color: #8b877d;
    font-size: 0.82rem;
    font-weight: 700;
}

.xiaomi-category-card__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.xiaomi-chip {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(191, 112, 42, 0.16);
    color: #5c391f;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
}

.settings-check-grid {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.settings-check-grid--compact {
    margin-top: -0.15rem;
    margin-bottom: 0.35rem;
}

.settings-check {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #4a4840;
    font-size: 0.92rem;
}

.login-page {
    width: 100%;
    display: grid;
    place-items: center;
}

.login-card {
    padding: 1.75rem;
    width: min(480px, 100%);
}

.login-card--clean {
    padding: 2.2rem;
}

.login-card__brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.login-card__logo {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #c96b2c 0%, #b85c2a 100%);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: 0 14px 30px rgba(184, 92, 42, 0.24);
}

.login-card__brand-text {
    display: grid;
    gap: 0.2rem;
}

.login-card__brand-text strong {
    font-size: 1.35rem;
    line-height: 1.1;
    color: #16140f;
}

.login-card__brand-text span {
    color: #7a7265;
    font-size: 0.92rem;
}

.login-card__logo-image {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.login-card__brand-text small {
    color: #b85c2a;
    font-size: 0.82rem;
    font-weight: 700;
}

.navbar-brand__logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #fff;
    object-fit: contain;
    padding: 0.3rem;
    box-shadow: 0 10px 24px rgba(16, 16, 14, 0.18);
}

.navbar-brand__text {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.navbar-brand__text em {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.74rem;
    font-style: normal;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.settings-branding-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.settings-branding-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(24, 24, 15, 0.08);
    border-radius: 1rem;
    background: rgba(255, 252, 247, 0.82);
}

.settings-branding-preview__logo {
    width: 78px;
    height: 78px;
    object-fit: contain;
    border-radius: 1.1rem;
    background: #fff;
    box-shadow: 0 14px 30px rgba(29, 27, 22, 0.08);
    padding: 0.45rem;
}

.settings-branding-preview__text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.settings-branding-preview__text strong {
    font-size: 1.2rem;
    color: #1c1a14;
}

.settings-branding-preview__text span {
    color: #6d675c;
}

.settings-branding-preview__text small {
    color: #b85c2a;
    font-weight: 700;
}

.access-denied-card {
    text-align: center;
}

.access-denied-card .login-card__brand,
.access-denied-card .form-actions {
    justify-content: center;
}

.auth-redirect-card {
    width: min(440px, 100%);
    text-align: center;
}

.section-title--login {
    margin-bottom: 1rem;
}

.login-form-grid {
    display: grid;
    gap: 1rem;
}

.form-stack {
    display: grid;
}

.form-stack--spacious {
    gap: 1rem;
}

.login-card__options {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.form-actions--login {
    margin-top: 0.5rem;
}

.btn-login-submit {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    font-size: 0.98rem;
}

.permissions-shell {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.permissions-role-list,
.permissions-groups {
    display: grid;
    gap: 0.75rem;
}

.permissions-role {
    border: 1px solid rgba(24, 24, 15, 0.08);
    border-radius: 12px;
    background: #f8f4ed;
    padding: 0.95rem 1rem;
    display: grid;
    gap: 0.25rem;
    text-align: left;
}

.permissions-role.is-active {
    background: linear-gradient(135deg, #fdf0e8, #f7e3d6);
    border-color: rgba(184, 92, 42, 0.22);
}

.permissions-role span,
.permissions-item span {
    color: #6b6960;
    font-size: 0.84rem;
}

.permissions-group {
    border: 1px solid rgba(24, 24, 15, 0.08);
    border-radius: 12px;
    background: #fffdfa;
    overflow: hidden;
}

.permissions-group__head {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    background: #f5f1ea;
    border-bottom: 1px solid rgba(24, 24, 15, 0.08);
}

.permissions-group__items {
    display: grid;
}

.permissions-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.95rem 1rem;
    border-top: 1px solid rgba(24, 24, 15, 0.06);
}

.permissions-item:first-child {
    border-top: 0;
}

.form-control--textarea {
    min-height: 118px;
    resize: vertical;
}

.form-control--notes {
    min-height: 100%;
}

.form-grid-span-2 {
    grid-column: span 2;
}

.form-section-title {
    margin: 1rem 0 0.75rem;
    color: #6b6960;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.read-only-box {
    border-radius: 8px;
    padding: 0.75rem 0.95rem;
    border: 1px solid rgba(24, 24, 15, 0.1);
    background: #f3eee5;
}

.read-only-box label {
    display: block;
    font-size: 0.72rem;
    color: #6b6960;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.read-only-box--inline {
    height: 100%;
    display: flex;
    align-items: center;
}

.barcode-preview-panel {
    border: 1px dashed rgba(24, 24, 15, 0.14);
    border-radius: 12px;
    background: #fffdfa;
    padding: 1.1rem;
    display: grid;
    gap: 0.85rem;
    min-height: 150px;
}

.barcode-preview-host {
    min-height: 88px;
    display: grid;
    place-items: center;
}

.barcode-preview-host img {
    max-width: 100%;
    height: auto;
}

.barcode-preview-text {
    color: #6b6960;
    font-size: 0.84rem;
    text-align: center;
}

.data-table {
    margin-bottom: 0;
    width: 100%;
}

.data-table thead th {
    color: #a09d96;
    font-weight: 600;
    border-bottom-width: 1px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.72rem;
    background: #f0ede6;
    padding: 0.95rem 1rem;
}

.data-table tbody td {
    vertical-align: middle;
    font-size: 0.92rem;
    padding: 1rem;
    line-height: 1.5;
}

.data-table tbody tr:hover {
    background: #f7f3ec;
}

.data-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.data-table--fixed {
    table-layout: fixed;
    min-width: 820px;
}

.cell-wrap {
    white-space: normal;
    overflow-wrap: anywhere;
}

.cell-nowrap {
    white-space: nowrap;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.section-title--compact {
    margin-bottom: 0;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid rgba(24, 24, 15, 0.08);
}

.section-title h3 {
    margin: 0;
}

.section-title span {
    color: #8b877d;
    font-size: 0.86rem;
}

.list-toolbar,
.form-actions,
.table-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.list-toolbar {
    margin-bottom: 1.1rem;
}

.panel-card--form .form-actions {
    margin-top: 0.15rem;
}

.list-toolbar .form-control {
    flex: 1 1 320px;
}

.table-actions {
    gap: 0.5rem;
}

.action-btn {
    border-radius: 10px;
    padding: 0.68rem 0.95rem;
    min-height: 42px;
    border: 1px solid rgba(24, 24, 15, 0.12);
    background: #fffdfa;
}

.action-btn--danger {
    color: #9f1239;
    border-color: rgba(159, 18, 57, 0.18);
    background: #fff1f2;
}

.list-footer,
.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.list-footer {
    margin-top: 1.15rem;
    color: #6b6960;
    font-size: 0.88rem;
}

@media (max-width: 1200px) {
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.quick-link {
    display: block;
    padding: 0.95rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    background: #f3eee5;
    border: 1px solid rgba(24, 24, 15, 0.1);
    color: #18180f;
    font-weight: 600;
}

.quick-link:hover {
    background: #ece6dc;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: #fdf0e8;
    color: #7a3a15;
    font-size: 0.78rem;
    font-weight: 700;
}

.empty-state {
    padding: 2.25rem 1.5rem;
    text-align: center;
    color: #6b6960;
}

.empty-state h3 {
    color: #18180f;
    margin-bottom: 0.5rem;
}

.validation-summary-errors {
    color: #b42318;
    margin-bottom: 1rem;
}

.alert-success {
    background: #e8f5ea;
    border-color: rgba(45, 122, 58, 0.2);
    color: #1a4d22;
    border-radius: 10px;
}

.alert-danger {
    background: #fdeaea;
    border-color: rgba(181, 32, 32, 0.2);
    color: #7a1515;
    border-radius: 10px;
}

.change-password-card {
    max-width: 760px;
}

.personnel-reset-card {
    max-width: 920px;
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-grid-span-2 {
        grid-column: span 1;
    }

    .customer-form-grid {
        grid-template-columns: 1fr;
    }

    .customer-form-grid__address,
    .customer-form-grid__notes {
        grid-column: span 1;
    }

    .product-form-grid {
        grid-template-columns: 1fr;
    }

    .product-form-grid__notes {
        grid-column: span 1;
    }

    .product-form-grid__barcode {
        grid-column: span 1;
    }

    .settings-form-grid {
        grid-template-columns: 1fr;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .xiaomi-category-grid {
        grid-template-columns: 1fr;
    }

    .settings-form-grid--wide,
    .login-page,
    .permissions-shell {
        grid-template-columns: 1fr;
    }
}

.service-workbench {
    display: grid;
    gap: 1.2rem;
}

.service-announcement {
    background: linear-gradient(135deg, #fffdf9 0%, #fff8ef 100%);
    border: 1px solid rgba(184, 92, 42, 0.18);
    border-radius: 16px;
    padding: 1.1rem 1.2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
    display: grid;
    gap: 1rem;
}

.service-announcement__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.service-announcement__eyebrow {
    color: #b85c2a;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.28rem;
}

.service-announcement__header h2 {
    margin: 0;
    font-size: 1.18rem;
    letter-spacing: -0.03em;
}

.service-announcement__news {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.service-announcement__news-item {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(24, 24, 15, 0.08);
    border-radius: 14px;
    padding: 0.95rem 1rem;
    display: grid;
    gap: 0.38rem;
}

.service-announcement__news-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.service-announcement__news-item strong {
    font-size: 1rem;
    color: #18180f;
}

.service-announcement__news-item p {
    margin: 0;
    color: #5f5b54;
    font-size: 0.92rem;
    line-height: 1.5;
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: #fffdfa;
    border: 1px solid rgba(24, 24, 15, 0.08);
    border-radius: 12px;
    padding: 1.1rem 1.2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
}

.service-header__brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.service-header__brand h1 {
    margin: 0;
    font-size: 1.25rem;
    letter-spacing: -0.03em;
}

.service-header__brand span {
    color: #6b6960;
    font-size: 0.9rem;
}

.service-muted {
    color: #8d8a82;
    font-size: 0.85rem;
}

.service-header__logo {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #b85c2a;
    color: #fff;
    font-weight: 800;
}

@media (max-width: 1100px) {
    .service-announcement__news {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .service-announcement__header {
        flex-direction: column;
    }

    .service-announcement__news {
        grid-template-columns: 1fr;
    }
}

.service-tabbar {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    padding: 0.45rem;
    background: #fffdfa;
    border: 1px solid rgba(24, 24, 15, 0.08);
    border-radius: 12px;
}

.service-tabbar__btn,
.service-btn {
    border: 1px solid rgba(24, 24, 15, 0.12);
    background: #fffdfa;
    color: #18180f;
    border-radius: 8px;
    padding: 0.68rem 0.95rem;
    min-height: 42px;
    font: inherit;
    cursor: pointer;
}

.service-tabbar__btn.is-active,
.service-btn--primary {
    background: #b85c2a;
    color: #fff;
    border-color: #b85c2a;
}

.service-btn--danger {
    background: #fff1f2;
    color: #9f1239;
    border-color: rgba(159, 18, 57, 0.18);
}

.service-btn--info {
    background: #e8f1fb;
    color: #0c3d6e;
    border-color: rgba(26, 95, 168, 0.18);
}

.service-btn--warn {
    background: #fef6e0;
    color: #6b4600;
    border-color: rgba(154, 101, 0, 0.18);
}

.service-btn--success {
    background: #e8f5ea;
    color: #1a4d22;
    border-color: rgba(45, 122, 58, 0.18);
}

.service-btn--ghost {
    background: transparent;
}

.service-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.service-stats--4 {
    grid-template-columns: repeat(4, 1fr);
}

.service-stats--compact {
    margin-top: -0.15rem;
}

.service-stats--3 {
    grid-template-columns: repeat(3, 1fr);
}

.service-stat,
.service-card {
    background: linear-gradient(180deg, rgba(255, 253, 250, 0.98) 0%, rgba(250, 245, 237, 0.96) 100%);
    border: 1px solid rgba(24, 24, 15, 0.08);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
}

.service-stat {
    padding: 1.1rem;
}

.service-stat--soft {
    padding: 0.95rem 1rem;
    background: rgba(255, 255, 255, 0.78);
}

.service-stat--highlight {
    position: relative;
    overflow: hidden;
}

.service-stat__mini-dot {
    width: 10px;
    height: 10px;
    display: inline-block;
    border-radius: 999px;
    margin-bottom: 0.65rem;
}

.service-stat--highlight::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    border-radius: 12px 0 0 12px;
    background: currentColor;
    opacity: 0.9;
}

.service-stat--highlight-green {
    color: #2d7a3a;
}

.service-stat--highlight-red {
    color: #b52020;
}

.service-stat--highlight-blue {
    color: #1a5fa8;
}

.service-stat--highlight-amber {
    color: #9a6500;
}

.service-stat--highlight-green .service-stat__mini-dot {
    background: #2d7a3a;
}

.service-stat--highlight-red .service-stat__mini-dot {
    background: #b52020;
}

.service-stat--highlight-blue .service-stat__mini-dot {
    background: #1a5fa8;
}

.service-stat--highlight-amber .service-stat__mini-dot {
    background: #9a6500;
}

.service-stat--soft strong {
    font-size: 1.02rem;
    line-height: 1.25;
    color: #18180f;
}

.service-stat--soft span:last-child {
    margin-top: 0.25rem;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #5f5b54;
}

.service-stat strong {
    display: block;
    font-size: 1.85rem;
    line-height: 1;
}

.service-stat span:last-child {
    display: block;
    margin-top: 0.35rem;
    color: #6b6960;
    font-size: 0.82rem;
}

.service-stat__dot {
    width: 8px;
    height: 8px;
    display: block;
    border-radius: 999px;
    margin-bottom: 0.6rem;
}

.service-stat__dot--amber { background: #9a6500; }
.service-stat__dot--blue { background: #1a5fa8; }
.service-stat__dot--red { background: #b52020; }
.service-stat__dot--green { background: #2d7a3a; }
.service-stat__dot--gray { background: #6b6960; }

.service-dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
}

.service-dashboard-side {
    display: grid;
    gap: 1rem;
}

.service-card {
    padding: 1.15rem 1.2rem;
    position: relative;
    overflow: hidden;
}

.service-card__title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, rgba(184, 92, 42, 0.85), rgba(217, 119, 6, 0.35));
}

.service-list,
.service-notes,
.service-log {
    display: grid;
    gap: 0.75rem;
}

.service-list__item,
.service-list__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    text-align: left;
    width: 100%;
    border: 0;
    background: #f5f0e7;
    border-radius: 8px;
    padding: 0.95rem 1rem;
}

.service-list__item strong,
.service-list__row strong,
.service-section-header h2,
.service-detail-card h4 {
    margin: 0;
}

.service-list__item span,
.service-list__row span,
.service-cell-sub,
.service-detail-row span,
.service-log__time,
.service-empty,
.service-income span {
    color: #6b6960;
}

.service-filters,
.service-income,
.service-form-grid {
    display: grid;
    gap: 0.75rem;
}

.service-filters {
    grid-template-columns: 1.6fr 1fr 1fr;
    margin-bottom: 1rem;
}

.service-input,
.service-select,
.service-textarea {
    width: 100%;
    border: 1px solid rgba(24, 24, 15, 0.14);
    border-radius: 8px;
    background: #fffdfa;
    color: #18180f;
    padding: 0.82rem 0.95rem;
    min-height: 46px;
    font: inherit;
}

.service-inline {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.service-inline--stretch .service-input {
    flex: 1 1 auto;
}

.service-input--mono {
    font-family: Consolas, "Courier New", monospace;
    letter-spacing: 0.04em;
}

.service-textarea {
    min-height: 96px;
    resize: vertical;
}

.service-textarea--small {
    min-height: 60px;
}

.service-form-grid--2 { grid-template-columns: 1fr 1fr; }
.service-form-grid--3 { grid-template-columns: repeat(3, 1fr); }

.service-field {
    display: grid;
    gap: 0.45rem;
}

.service-field label {
    font-size: 0.76rem;
    font-weight: 700;
    color: #6b6960;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.service-table-wrap {
    overflow-x: auto;
}

.service-kanban {
    display: grid;
    grid-template-columns: repeat(7, minmax(160px, 1fr));
    gap: 0.8rem;
    overflow-x: auto;
}

.service-kanban__col {
    background: linear-gradient(180deg, #f7f1e8 0%, #f2eadf 100%);
    border: 1px solid rgba(24, 24, 15, 0.08);
    border-radius: 14px;
    padding: 0.9rem;
    min-height: 260px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.service-kanban__col.is-drop-target {
    border-color: rgba(184, 92, 42, 0.38);
    box-shadow: 0 0 0 3px rgba(184, 92, 42, 0.08), inset 0 1px 0 rgba(255,255,255,0.55);
    background: linear-gradient(180deg, #fbf4ea 0%, #f6eee4 100%);
}

.service-kanban__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 0.85rem;
}

.service-kanban__col h3 {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b6960;
    margin: 0;
}

.service-kanban__head span {
    min-width: 30px;
    height: 30px;
    padding: 0 0.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(184, 92, 42, 0.12);
    color: #8a451b;
    font-size: 0.78rem;
    font-weight: 700;
}

.service-kanban__card {
    width: 100%;
    text-align: left;
    border: 1px solid rgba(24,24,15,0.08);
    border-radius: 12px;
    background: #fffdfa;
    padding: 0.9rem;
    margin-bottom: 0.7rem;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.service-kanban__card:hover {
    transform: translateY(-2px);
    border-color: rgba(184, 92, 42, 0.22);
    box-shadow: 0 12px 24px rgba(24, 24, 15, 0.08);
}

.service-kanban__card.is-dragging {
    opacity: 0.58;
    transform: scale(0.985);
    box-shadow: 0 8px 18px rgba(24, 24, 15, 0.06);
}

.service-kanban__no {
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.72rem;
    color: #8d8a82;
}

.service-kanban__device {
    font-weight: 700;
    margin: 0.2rem 0;
}

.service-kanban__meta {
    font-size: 0.76rem;
    color: #6b6960;
}

.service-filters--kanban {
    margin-bottom: 1rem;
}

.service-kanban__empty {
    padding: 0.95rem 0.85rem;
    border: 1px dashed rgba(24, 24, 15, 0.12);
    border-radius: 12px;
    background: rgba(255,255,255,0.56);
    color: #8d8a82;
    font-size: 0.84rem;
}

.service-kanban__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.75rem;
}

.service-table {
    width: 100%;
    border-collapse: collapse;
}

.service-table thead th {
    text-align: left;
    background: #f0ede6;
    color: #8d8a82;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.95rem 1rem;
}

.service-table tbody td {
    padding: 1rem;
    border-top: 1px solid rgba(24, 24, 15, 0.08);
    vertical-align: top;
    line-height: 1.5;
}

.service-cell-title {
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.service-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
}

.service-badge--bekliyor, .service-badge--teslim { background: #f0ede6; color: #4a4840; }
.service-badge--inceleme { background: #e8f1fb; color: #0c3d6e; }
.service-badge--onarim { background: #fef6e0; color: #6b4600; }
.service-badge--parca { background: #fdeaea; color: #7a1515; }
.service-badge--test { background: #fdf0e8; color: #7a3a15; }
.service-badge--hazir { background: #e8f5ea; color: #1a4d22; }
.service-badge--priority-high { background: #fff1f2; color: #9f1239; }
.service-badge--priority-normal { background: #f8f4ed; color: #6b6960; }
.service-badge--priority-low { background: #eef2ff; color: #3730a3; }
.service-badge--overdue { background: #fee2e2; color: #991b1b; }

.service-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 1000;
}

.service-modal {
    width: min(780px, 100%);
    max-height: 88vh;
    overflow: auto;
    background: linear-gradient(180deg, #fffdfa 0%, #fbf6ee 100%);
    border: 1px solid rgba(24,24,15,0.14);
    border-radius: 14px;
    box-shadow: 0 26px 70px rgba(0,0,0,0.22);
}

.service-modal--wide { width: min(1120px, 100%); }
.service-modal--narrow { width: min(560px, 100%); }

.service-modal__header,
.service-modal__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem 1.2rem;
    border-bottom: 1px solid rgba(24,24,15,0.08);
}

.service-modal__header--stacked {
    align-items: flex-start;
}

.service-modal__header--stacked h3 {
    margin: 0;
}

.service-modal__eyebrow {
    display: inline-block;
    margin-bottom: 0.45rem;
    color: #b85c2a;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.service-modal__lead {
    margin: 0.45rem 0 0;
    color: #6b6960;
    font-size: 0.92rem;
    max-width: 680px;
    line-height: 1.55;
}

.service-modal__footer {
    border-top: 1px solid rgba(24,24,15,0.08);
    border-bottom: 0;
}

.service-modal__body {
    padding: 1.2rem;
    display: grid;
    gap: 1.15rem;
}

.service-modal__section {
    display: grid;
    gap: 0.8rem;
}

.service-modal__section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.service-modal__section-title {
    margin: 0;
    font-size: 0.96rem;
    font-weight: 800;
}

.service-modal__section-help {
    margin: 0.3rem 0 0;
    color: #7e786e;
    font-size: 0.85rem;
    line-height: 1.5;
}

.service-modal__surface {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
    background: rgba(255, 252, 247, 0.86);
    border: 1px solid rgba(24,24,15,0.08);
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
}

.service-modal__surface--accent {
    background: linear-gradient(180deg, #fff8ee 0%, #fff2df 100%);
    border-color: rgba(184, 92, 42, 0.12);
}

.service-modal__summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.service-modal__summary-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-modal__summary {
    display: grid;
    gap: 0.25rem;
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(24,24,15,0.06);
}

.service-modal__summary span {
    color: #8d8a82;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.service-modal__summary strong {
    font-size: 0.98rem;
    line-height: 1.35;
}

.service-modal__footer-note {
    color: #7a7469;
    font-size: 0.86rem;
    line-height: 1.5;
}

.service-stepper {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.4rem;
}

.service-step {
    text-align: center;
}

.service-step__dot {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    margin: 0 auto 0.35rem;
    display: grid;
    place-items: center;
    background: #f0ede6;
    border: 2px solid #d6d0c4;
    font-size: 0.76rem;
    font-weight: 700;
}

.service-step.is-active .service-step__dot,
.service-step.is-done .service-step__dot {
    background: #b85c2a;
    border-color: #b85c2a;
    color: #fff;
}

.service-step__label {
    font-size: 0.7rem;
    color: #6b6960;
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
}

.service-detail-grid--top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 320px;
    align-items: start;
}

.service-detail-card {
    background: rgba(255, 252, 247, 0.78);
    border: 1px solid rgba(24, 24, 15, 0.07);
    border-radius: 14px;
    padding: 1.05rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

.service-detail-card--sticky {
    position: sticky;
    top: 0;
}

.service-detail-card--qr {
    background: linear-gradient(180deg, #fff9ef 0%, #fff4e2 100%);
    border: 1px solid rgba(184, 92, 42, 0.14);
}

.service-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.45rem 0;
}

.service-note-box {
    background: #fdf0e8;
    color: #7a3a15;
    border-left: 3px solid #b85c2a;
    border-radius: 8px;
    padding: 0.85rem 0.95rem;
}

.service-workflow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin: 1.15rem 0 1.4rem;
}

.service-workflow__step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.95rem;
    padding: 1rem;
    border: 1px solid rgba(24, 24, 15, 0.08);
    border-radius: 16px;
    background: linear-gradient(180deg, #fffdfa 0%, #f8f2e8 100%);
    box-shadow: 0 10px 24px rgba(24, 24, 15, 0.05);
}

.service-workflow__index {
    width: 2.1rem;
    height: 2.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #b85c2a;
    color: #fff;
    font-weight: 800;
}

.service-workflow__content h3 {
    margin: 0 0 0.45rem;
    font-size: 1rem;
}

.service-workflow__content p {
    margin: 0 0 0.7rem;
    color: #5d5a52;
    line-height: 1.55;
}

.service-workflow__meta {
    display: grid;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: #59564f;
}

.service-workflow__hint {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px dashed rgba(24, 24, 15, 0.1);
    color: #7a3a15;
    font-size: 0.84rem;
}

.service-parts-list {
    display: grid;
}

.service-parts-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.6rem 0;
    border-top: 1px solid rgba(24,24,15,0.08);
}

.service-parts-row--header {
    color: #8d8a82;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-top: 0;
}

.service-log__item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.65rem 0;
    border-top: 1px solid rgba(24,24,15,0.08);
}

.service-log__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #b85c2a;
}

.service-section-header,
.service-modal__actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.service-payment {
    display: grid;
    gap: 0.55rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(24,24,15,0.08);
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,249,239,0.65) 100%);
    border-radius: 12px;
}

.service-payment__header,
.service-payment__meta {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.84rem;
}

.service-payment__meta {
    color: #6b6960;
}

.service-payment-bar {
    position: relative;
    width: 100%;
    height: 14px;
    border-radius: 999px;
    background: #efe7da;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(24,24,15,0.08);
}

.service-payment-bar--compact {
    height: 8px;
    margin-top: 0.35rem;
    max-width: 140px;
}

.service-payment-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #d97706 0%, #16a34a 100%);
    transition: width 0.25s ease;
}

.service-qr-panel {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
}

.service-qr-panel--stacked {
    grid-template-columns: 1fr;
}

.service-qr-preview {
    width: 208px;
    min-height: 208px;
    background: #fff;
    border: 1px dashed rgba(24,24,15,0.18);
    border-radius: 12px;
    display: grid;
    place-items: center;
    padding: 0.9rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

.service-qr-preview img,
.service-qr-preview canvas {
    max-width: 180px;
    height: auto;
}

.service-qr-panel__meta {
    display: grid;
    gap: 0.65rem;
    width: 100%;
}

.service-quick-actions {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.1rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(24,24,15,0.08);
}

.service-quick-actions__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.service-quick-actions__grid .service-btn {
    width: 100%;
    justify-content: center;
}

@media (max-width: 900px) {
    .service-stats,
    .service-dashboard-grid,
    .service-detail-grid,
    .service-detail-grid--top,
    .service-filters,
    .service-form-grid--2,
    .service-form-grid--3,
    .service-qr-panel,
    .service-modal__summary-grid,
    .service-modal__summary-grid--3 {
        grid-template-columns: 1fr;
    }

    .service-detail-card--sticky {
        position: static;
    }

    .service-quick-actions__grid {
        grid-template-columns: 1fr;
    }
}
