body {
    margin: 0;
    background: #f7f4ef;
    color: #381f1c;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.dashboard-shell {
    display: flex;
    min-height: 100vh;
}

.dashboard-sidebar {
    position: fixed;
    z-index: 40;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    width: 248px;
    flex-direction: column;
    background: #431417;
    color: #fffaf4;
    transition: transform .2s ease;
}

.sidebar-brand {
    display: flex;
    height: 84px;
    flex: 0 0 84px;
    align-items: center;
    justify-content: space-between;
    padding: 0 27px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.brand-lockup,
.brand-lockup:hover {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fffaf4;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    padding: 3px;
    border-radius: 5px;
    object-fit: contain;
}

.brand-copy,
.account-copy,
.table-name-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.brand-name {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    line-height: 1;
}

.brand-name strong {
    color: #d96c54;
}

.brand-caption {
    margin-top: 5px;
    color: #d9aaa0;
    font-size: 9px;
    letter-spacing: .12em;
}

.sidebar-close,
.sidebar-open {
    display: none;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.sidebar-navigation {
    padding: 32px 16px 16px;
}

.sidebar-section-title {
    margin: 0;
    padding: 0 12px 12px;
    color: #c88a79;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-link {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 12px;
    padding: 0 12px;
    border-radius: 5px;
    color: #f3d8cf;
    font-size: 13px;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}

.sidebar-link i {
    width: 17px;
    text-align: center;
    font-size: 16px;
}

.sidebar-link:hover {
    background: rgba(255,255,255,.1);
    color: #fffaf4;
    text-decoration: none;
}

.sidebar-link.active,
.sidebar-link.active:hover {
    background: #fffaf4;
    color: #6e1c20;
    font-weight: 600;
}

.sidebar-account {
    margin-top: auto;
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,.1);
}

.account-summary {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
    margin-bottom: 12px;
    padding: 4px 8px;
}

.account-avatar {
    display: inline-flex;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ead6c5;
    color: #6e1c20;
    font-size: 11px;
    font-weight: 700;
}

.sidebar-account .account-avatar {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    background: #d6a24d;
    color: #431417;
}

.account-name {
    overflow: hidden;
    color: #fffaf4;
    font-size: 12px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-caption {
    margin-top: 3px;
    color: #d9aaa0;
    font-size: 10px;
}

.logout-link {
    font-size: 12px;
}

.dashboard-main {
    display: flex;
    min-width: 0;
    min-height: 100vh;
    flex: 1;
    flex-direction: column;
    margin-left: 248px;
}

.dashboard-topbar {
    display: flex;
    height: 84px;
    flex: 0 0 84px;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    border-bottom: 1px solid #e8dfd5;
    background: #fffdfa;
}

.topbar-heading {
    display: flex;
    align-items: center;
    gap: 13px;
}

.topbar-breadcrumb {
    margin: 0 0 2px;
    color: #9e8d83;
    font-size: 11px;
}

.topbar-heading h1 {
    margin: 0;
    color: #381f1c;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 400;
}

.demo-expiration-banner {
    position: sticky;
    z-index: 20;
    top: 0;
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 8px 20px;
    border-bottom: 1px solid #e9c878;
    background: #fff3cf;
    color: #684a12;
    font-size: 12px;
    text-align: center;
}

.demo-expiration-banner i {
    color: #946b1b;
}

.demo-expiration-banner strong {
    font-weight: 700;
}

.dashboard-content {
    width: 100%;
    max-width: 1450px;
    flex: 1;
    margin: 0 auto;
    padding: 32px 40px;
}

.dashboard-footer {
    padding: 18px 40px;
    border-top: 1px solid #e8dfd5;
    color: #9e8d83;
    font-size: 11px;
    text-align: center;
}

.dashboard-footer a {
    color: #8e2227;
}

.table-list-page {
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
}

.template-list-page {
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
}

.user-list-page {
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
}

.user-table {
    min-width: 700px;
}

.user-name-cell {
    display: flex;
    min-width: 220px;
    align-items: center;
    gap: 11px;
}

.user-avatar {
    display: inline-flex;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5e8df;
    color: #8e2227;
    font-size: 11px;
    font-weight: 700;
}

.user-name-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.user-name-copy strong {
    overflow: hidden;
    color: #4b2a25;
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-name-copy small {
    margin-top: 4px;
    color: #ae9b91;
    font-size: 10px;
}

.template-table {
    min-width: 700px;
}

.template-thumbnail {
    display: inline-flex;
    width: 88px;
    height: 58px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #e5dbd0;
    border-radius: 4px;
    background: #f7f4ef;
}

.template-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.template-name-cell {
    min-width: 200px;
}

.template-name-cell strong,
.template-name-cell small {
    display: block;
}

.template-name-cell strong {
    color: #4b2a25;
    font-size: 13px;
    font-weight: 600;
}

.template-name-cell small {
    margin-top: 4px;
    color: #ae9b91;
    font-size: 10px;
}

.table-form-page {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.form-page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.form-page-heading h2 {
    margin: 0;
    color: #381f1c;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.2;
}

.form-panel {
    overflow: hidden;
    border: 1px solid #e5dbd0;
    border-radius: 6px;
    background: #fffdfa;
}

.form-panel-heading {
    padding: 19px 24px;
    border-bottom: 1px solid #eee6dd;
}

.form-panel-heading h3 {
    margin: 0;
    color: #381f1c;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 400;
}

.form-panel-heading p {
    margin: 5px 0 0;
    color: #a08e84;
    font-size: 12px;
}

.dashboard-form {
    padding: 24px;
}

.form-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
}

.dashboard-field {
    min-width: 0;
}

.form-field--wide {
    grid-column: 1 / -1;
}

.dashboard-field > label {
    display: block;
    margin-bottom: 8px;
    color: #4b2a25;
    font-size: 12px;
    font-weight: 600;
}

.dashboard-input,
.dashboard-select,
.dashboard-form .select2-container--default .select2-selection--single {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #e2d7cc;
    border-radius: 4px;
    background-color: #fff;
    color: #4b2a25;
    font: inherit;
    font-size: 13px;
}

.dashboard-input:focus,
.dashboard-select:focus {
    border-color: #b52b2d;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(181,43,45,.1);
}

.dashboard-field > small {
    display: block;
    margin-top: 7px;
    color: #9e8d83;
    font-size: 11px;
}

.dashboard-form .select2-container {
    width: 100% !important;
}

.dashboard-form .select2-container--default .select2-selection--single {
    display: flex;
    align-items: center;
    padding: 0 12px;
}

.dashboard-form .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0;
    color: #4b2a25;
    line-height: normal;
}

.dashboard-form .select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 8px;
    right: 8px;
}

.dashboard-form .select2-container--default .select2-selection--multiple {
    min-height: 44px;
    padding: 4px 8px;
    border: 1px solid #e2d7cc;
    border-radius: 4px;
}

.dashboard-form .select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #b52b2d;
}

.dashboard-form .select2-dropdown {
    border-color: #e2d7cc;
}

.item-carne {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
}

.img-carne {
    width: 32px;
    height: 32px;
    margin-right: 10px;
    border-radius: 4px;
    object-fit: cover;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #eee6dd;
}

.secondary-action {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border: 1px solid #e2d7cc;
    border-radius: 4px;
    background: #fffdfa;
    color: #6e554d;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.secondary-action:hover {
    border-color: #c9b9ad;
    background: #fcfaf7;
    color: #4b2a25;
    text-decoration: none;
}

.table-page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.table-page-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.eyebrow {
    margin: 0 0 8px;
    color: #b52b2d;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.table-page-heading h2,
.table-panel-heading h3 {
    margin: 0;
    color: #381f1c;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
}

.table-page-heading h2 {
    font-size: 30px;
    line-height: 1.2;
}

.page-description {
    margin: 8px 0 0;
    color: #8e746b;
    font-size: 13px;
}

.primary-action {
    display: inline-flex;
    min-height: 43px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 20px;
    border-radius: 4px;
    background: #b52b2d;
    box-shadow: 0 2px 4px rgba(67,20,23,.12);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.primary-action:hover {
    background: #8e2227;
    color: #fff;
    text-decoration: none;
}

.table-panel {
    overflow: hidden;
    border: 1px solid #e5dbd0;
    border-radius: 6px;
    background: #fffdfa;
}

.table-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 19px 20px;
    border-bottom: 1px solid #eee6dd;
}

.table-panel-heading h3 {
    font-size: 20px;
}

.table-panel-heading p {
    margin: 5px 0 0;
    color: #a08e84;
    font-size: 12px;
}

.table-search {
    display: flex;
    width: 220px;
    height: 36px;
    align-items: center;
    gap: 9px;
    padding: 0 11px;
    border: 1px solid #e2d7cc;
    border-radius: 4px;
    background: #fff;
    color: #aa958b;
}

.table-search input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #4b2a25;
    font-size: 12px;
}

.table-search input::placeholder {
    color: #b7a79e;
}

.table-scroll {
    overflow-x: auto;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.dashboard-table th {
    padding: 13px 12px;
    background: #fcfaf7;
    color: #9e8d83;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    white-space: nowrap;
}

.dashboard-table td {
    padding: 14px 12px;
    border-top: 1px solid #f0e8df;
    color: #765e55;
    font-size: 12px;
    vertical-align: middle;
}

.dashboard-table tbody tr:hover {
    background: #fffcf9;
}

.dashboard-table tbody tr[hidden] {
    display: none;
}

.table-name-cell {
    min-width: 180px;
}

.table-name-cell > * {
    display: inline-flex;
    vertical-align: middle;
}

.table-icon {
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    border-radius: 4px;
    background: #f5e8df;
    color: #b52b2d;
    font-size: 15px;
}

.table-name-copy {
    max-width: calc(100% - 48px);
}

.table-name-copy strong {
    color: #4b2a25;
    font-size: 13px;
    font-weight: 600;
}

.table-name-copy small {
    margin-top: 4px;
    color: #ae9b91;
    font-size: 10px;
}

.status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge.is-published {
    background: #e8f2e9;
    color: #48704c;
}

.status-badge.is-draft {
    background: #f5efe2;
    color: #8b7044;
}

.actions-heading,
.row-actions {
    text-align: right !important;
    white-space: nowrap;
}

.table-items-action {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 5px 10px;
    border: 1px solid #ead8cd;
    border-radius: 999px;
    background: #fbf1eb;
    color: #8e292b;
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
    vertical-align: middle;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.table-items-action:hover {
    border-color: #d9b8a8;
    background: #f5e5dc;
    color: #6e1c20;
    text-decoration: none;
}

.row-action {
    display: inline-flex;
    width: 27px;
    height: 29px;
    align-items: center;
    justify-content: center;
    margin-left: 1px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    color: #846d63;
    font-size: 14px;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
}

.row-action:hover {
    border-color: #eee1d7;
    background: #f8f2eb;
    color: #6e1c20;
    text-decoration: none;
}

.row-action.is-delete:hover {
    border-color: #f1d7d4;
    background: #fff1ef;
    color: #b42318;
}

.empty-state-row td,
.no-search-results {
    padding: 35px 20px;
    color: #9e8d83;
    text-align: center;
}

.no-search-results[hidden] {
    display: none;
}

.sidebar-backdrop {
    display: none;
}

@media (min-width: 992px) {
    .dashboard-sidebar {
        position: fixed;
    }
}

@media (min-width: 1200px) {
    .dashboard-table th,
    .dashboard-table td {
        padding-right: 20px;
        padding-left: 20px;
    }
}

@media (max-width: 991px) {
    .dashboard-sidebar {
        transform: translateX(-100%);
    }

    body.sidebar-open .dashboard-sidebar {
        transform: translateX(0);
    }

    .sidebar-close,
    .sidebar-open {
        display: inline-flex;
        width: 36px;
        height: 36px;
        align-items: center;
        justify-content: center;
        border-radius: 4px;
        color: inherit;
        font-size: 20px;
    }

    .sidebar-open {
        color: #6e1c20;
    }

    .sidebar-open:hover,
    .sidebar-close:hover {
        background: rgba(0,0,0,.06);
    }

    .sidebar-backdrop {
        position: fixed;
        z-index: 30;
        inset: 0;
        background: rgba(30,15,13,.45);
    }

    body.sidebar-open .sidebar-backdrop {
        display: block;
    }

    .dashboard-main {
        margin-left: 0;
    }

    body.sidebar-open {
        overflow: hidden;
    }
}

@media (max-width: 640px) {
    .dashboard-topbar {
        height: 72px;
        flex-basis: 72px;
        padding: 0 18px;
    }

    .dashboard-content {
        padding: 24px 16px;
    }

    .dashboard-footer {
        padding: 16px;
    }

    .table-page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .table-page-actions {
        align-self: flex-end;
    }

    .form-page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .form-page-heading h2 {
        font-size: 27px;
    }

    .table-page-heading h2 {
        font-size: 27px;
    }

    .table-panel-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .table-search {
        width: 100%;
    }

    .user-table {
        min-width: 0;
        table-layout: fixed;
    }

    .user-table th:nth-child(2),
    .user-table td:nth-child(2) {
        display: none;
    }

    .user-table th:last-child {
        width: 68px;
    }

    .user-table td.user-name-cell {
        min-width: 0;
        padding-right: 4px;
    }

    .user-name-copy {
        overflow: hidden;
    }

    .user-name-copy .user-mobile-email {
        display: block;
        overflow: hidden;
        max-width: 100%;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .user-table .row-actions {
        padding-left: 0;
    }

    .user-table .row-action {
        width: 26px;
        margin-left: 0;
    }

    .template-list-page .table-page-heading {
        margin-bottom: 22px;
    }

    .dashboard-form {
        padding: 18px;
    }

    .form-field-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-field--wide {
        grid-column: auto;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .form-actions .primary-action,
    .form-actions .secondary-action {
        width: 100%;
    }
}
