* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #F5F7FB;
    color: #313131;
    min-height: 100vh;
    overflow-x: hidden;
}

body.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

a {
    text-decoration: none;
}

::placeholder {
    color: #CFCFCF;
    opacity: 1;
}

::-webkit-input-placeholder { color: #CFCFCF; }
::-moz-placeholder { color: #CFCFCF; opacity: 1; }
:-ms-input-placeholder { color: #CFCFCF; }

/* Login Page */

.login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    padding: 28px 32px;
}

.login-logo {
    display: flex;
    justify-content: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #E5E7EB;
}

.login-logo img {
    height: 48px;
    width: auto;
}

.login-title {
    font-size: 24px;
    font-weight: 500;
    color: #1D3261;
    margin-top: 24px;
    margin-bottom: 20px;
}

.login-description {
    font-size: 13px;
    font-weight: 400;
    color: #64748B;
    line-height: 1.55;
    margin-top: -12px;
    margin-bottom: 20px;
}

.login-status {
    font-size: 13px;
    color: #16A34A;
    margin-bottom: 12px;
}

.login-form .field {
    margin-bottom: 16px;
}

.login-form label {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: #475569;
    margin-bottom: 4px;
}

.login-form input[type="email"],
.login-form input[type="password"] {
    width: 100%;
    border: 1px solid #CBD5E1;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    color: #1F2937;
    background: #fff;
}

.login-form input[type="email"]:focus,
.login-form input[type="password"]:focus {
    outline: none;
    border-color: #5A8CFC;
    box-shadow: 0 0 0 2px rgba(90, 140, 252, 0.25);
}

.login-error {
    font-size: 12px;
    color: #DC2626;
    margin-bottom: 12px;
}

.btn-signin {
    width: 100%;
    background-color: #5A8CFC;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 0;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.btn-signin:hover {
    background-color: #4a7df0;
}

.forgot-password {
    text-align: center;
    margin-top: 12px;
}

.forgot-password a {
    font-size: 14px;
    font-weight: 400;
    color: #1D3261;
}

.forgot-password a:hover {
    opacity: 0.8;
}

/* Dashboard Layout */

.app-shell {
    display: flex;
    min-height: 100vh;
}

.mobile-topbar,
.mobile-nav-backdrop,
.mobile-sidebar-header {
    display: none;
}

.label-mobile {
    display: none;
}

/* Sidebar */

.sidebar {
    width: 220px;
    background: #fff;
    border-right: 1px solid #E5E7EB;
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-logo {
    padding: 0 8px 24px 8px;
}

.sidebar-logo img {
    height: 40px;
    width: auto;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    color: #6A6A6A;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-item:hover {
    background-color: #F1F5F9;
}

.nav-item-disabled {
    cursor: default;
}

.nav-item.active {
    color: #5A8CFC;
}

.nav-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #6A6A6A;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    transition: background-color 0.15s ease;
}

.nav-icon-dashboard { -webkit-mask-image: url('/images/dashboard.svg'); mask-image: url('/images/dashboard.svg'); }
.nav-icon-tickets   { -webkit-mask-image: url('/images/tickets.svg');   mask-image: url('/images/tickets.svg'); }
.nav-icon-invoices  { -webkit-mask-image: url('/images/invoices.svg');  mask-image: url('/images/invoices.svg'); }
.nav-icon-contracts { -webkit-mask-image: url('/images/contracts.svg'); mask-image: url('/images/contracts.svg'); }
.nav-icon-services  { -webkit-mask-image: url('/images/services.svg');  mask-image: url('/images/services.svg'); }
.nav-icon-estimates { -webkit-mask-image: url('/images/estimates.svg'); mask-image: url('/images/estimates.svg'); }

.nav-item.active .nav-icon {
    background-color: #5A8CFC;
}

.nav-badge {
    width: 28px;
    height: 18px;
    background: #1D3261;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 8px 0 8px;
    border-top: 1px solid #E5E7EB;
    margin-top: 12px;
}

.user-summary {
    min-width: 0;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #C8DA2F;
    color: #1D3261;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-name {
    display: block;
    font-size: 13px;
    color: #475569;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logout-button {
    background: none;
    border: 0;
    color: #5A8CFC;
    cursor: pointer;
    font-size: 12px;
    line-height: 1.3;
    padding: 0;
}

.logout-button:hover {
    text-decoration: underline;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.3;
    margin-top: 2px;
}

.account-link {
    color: #5A8CFC;
    font-size: 12px;
    line-height: 1.3;
}

.account-link:hover {
    text-decoration: underline;
}

/* Main content */

.main {
    flex: 1;
    position: relative;
    min-width: 0;
    overflow-x: hidden;
}

.main-bg-wave {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 220px;
    background: url('/images/wave.png') no-repeat;
    background-position: right top -205px;
    background-size: 100% auto;
    pointer-events: none;
    z-index: 0;
}

.main-inner {
    position: relative;
    z-index: 1;
    padding: 24px 32px;
}

.main-header {
    margin-bottom: 16px;
}

.main-header h1 {
    font-size: 20px;
    font-weight: 600;
    color: #1D3261;
}

.main-header-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-action-header {
    font-weight: 700;
    padding: 7px 16px;
}

/* Stat cards */

.stat-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.stat-card {
    width: 240px;
    height: 106px;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-label {
    font-size: 14px;
    font-weight: 500;
    color: #AAAAAA;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 32px;
    font-weight: 500;
    color: #1D3261;
}

/* Alerts */

.alerts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.alert {
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid transparent;
}

.alert-error {
    background: #FF00041A;
    border: 1px solid #FC5A5D;
    color: #1F2937;
}

.alert-info {
    background: #5A8CFC1A;
    border: 1px solid #5A8CFC;
    color: #1F2937;
}

.alert a {
    color: #5A8CFC;
    text-decoration: underline;
}

/* Dashboard tables */

.dashboard-tables {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.data-card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    padding: 20px;
}

.data-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.data-card-header h2 {
    font-size: 20px;
    font-weight: 500;
    color: #1D3261;
}

.data-card-actions {
    display: flex;
    gap: 8px;
}

.btn {
    font-size: 14px;
    font-weight: 400;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.btn-outline {
    background: #fff;
    border-color: #5A8CFC;
    color: #5A8CFC;
}

.btn-outline:hover {
    background: #F0F5FF;
}

.btn-primary {
    background: #5A8CFC;
    color: #fff;
}

.btn-primary:hover {
    background: #4a7df0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.table-scroll {
    display: block;
    max-width: 100%;
    min-width: 0;
    width: 100%;
}

.data-table th {
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    color: #000000;
    background: #F2F6FF;
    padding: 8px 12px;
    border-top: 1px solid #AAAAAA;
    border-bottom: 1px solid #AAAAAA;
}

.data-table td {
    padding: 10px 12px;
    color: #1F2937;
    border-bottom: 1px solid #F1F5F9;
}

.data-table tr:last-child td {
    border-bottom: 0;
}

.data-table a {
    font-size: 14px;
    font-weight: 400;
    color: #5A8CFC;
}

.data-table a:hover {
    text-decoration: underline;
}

.status-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    padding: 2px 10px;
    border-radius: 999px;
}

@media (max-width: 860px) {
    body.mobile-nav-open {
        overflow: hidden;
    }

    .app-shell {
        display: block;
    }

    .mobile-topbar {
        align-items: center;
        background: #FFFFFF;
        border-bottom: 1px solid #E5E7EB;
        display: flex;
        height: 72px;
        justify-content: space-between;
        padding: 0 40px;
        position: sticky;
        top: 0;
        z-index: 80;
    }

    .mobile-logo {
        display: inline-flex;
        align-items: center;
        overflow: hidden;
        width: 50px;
    }

    .mobile-logo img {
        height: 46px;
        max-width: none;
        width: auto;
    }

    .mobile-menu-button {
        align-items: center;
        background: transparent;
        border: 0;
        cursor: pointer;
        display: inline-flex;
        flex-direction: column;
        gap: 6px;
        height: 44px;
        justify-content: center;
        padding: 0;
        width: 44px;
    }

    .mobile-menu-button span {
        background: #222222;
        display: block;
        height: 4px;
        width: 32px;
    }

    .mobile-nav-backdrop {
        background: rgba(15, 23, 42, 0.42);
        inset: 0;
        opacity: 0;
        position: fixed;
        transition: opacity 0.2s ease, visibility 0.2s ease;
        visibility: hidden;
        z-index: 85;
    }

    .mobile-nav-backdrop.open {
        display: block;
        opacity: 1;
        visibility: visible;
    }

    .sidebar {
        background: #1D3261;
        border-right: 0;
        box-shadow: none;
        height: 100dvh;
        left: 0;
        max-width: none;
        padding: 48px 36px;
        position: fixed;
        top: 0;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        width: 100vw;
        z-index: 90;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .mobile-sidebar-header {
        display: block;
        position: absolute;
        right: 34px;
        top: 48px;
    }

    .mobile-sidebar-close {
        align-items: center;
        background: transparent;
        border: 0;
        color: #FFFFFF;
        cursor: pointer;
        display: inline-flex;
        gap: 14px;
        font-size: 20px;
        font-weight: 700;
        line-height: 1;
        padding: 0;
    }

    .mobile-close-icon {
        display: inline-block;
        height: 28px;
        position: relative;
        width: 28px;
    }

    .mobile-close-icon::before,
    .mobile-close-icon::after {
        background: #FFFFFF;
        content: "";
        height: 4px;
        left: 2px;
        position: absolute;
        top: 13px;
        width: 28px;
    }

    .mobile-close-icon::before {
        transform: rotate(45deg);
    }

    .mobile-close-icon::after {
        transform: rotate(-45deg);
    }

    .sidebar-logo,
    .sidebar-user {
        display: none;
    }

    .sidebar-nav {
        gap: 28px;
        padding-top: 2px;
    }

    .nav-item {
        align-items: center;
        border-radius: 0;
        color: #FFFFFF;
        gap: 18px;
        font-size: 24px;
        font-weight: 700;
        line-height: 1.15;
        padding: 0;
    }

    .nav-item:hover,
    .nav-item.active {
        background: transparent;
    }

    .nav-item.active {
        color: #C8DA2F;
    }

    .nav-icon {
        background-color: #FFFFFF;
        height: 28px;
        width: 28px;
    }

    .nav-item.active .nav-icon {
        background-color: #C8DA2F;
    }

    .nav-badge {
        background: #5A8CFC;
        color: #FFFFFF;
        font-size: 20px;
        font-weight: 700;
        height: 30px;
        margin-left: 4px;
        min-width: 44px;
        padding: 0 12px;
        width: auto;
    }

    .main {
        overflow-x: hidden;
        width: 100%;
    }

    .main-bg-wave {
        height: 150px;
        background-position: right top -126px;
        background-size: 900px auto;
    }

    .main-inner {
        padding: 32px 40px 56px;
    }

    .main-header {
        margin-bottom: 18px;
    }

    .main-header h1 {
        font-size: 40px;
        font-weight: 600;
        line-height: 1.15;
    }

    .stat-cards {
        flex-wrap: nowrap;
        gap: 20px;
        margin-bottom: 40px;
        margin-left: -1px;
        overflow-x: auto;
        padding: 0 1px 2px;
        scrollbar-width: none;
    }

    .stat-cards::-webkit-scrollbar {
        display: none;
    }

    .stat-card {
        flex: 0 0 min(408px, 56vw);
        height: 180px;
        padding: 28px 40px;
    }

    .stat-label {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .stat-value {
        font-size: 54px;
        line-height: 1.05;
    }

    .alerts {
        gap: 20px;
        margin-bottom: 40px;
    }

    .alert {
        border-radius: 12px;
        font-size: 24px;
        font-weight: 700;
        line-height: 1.2;
        padding: 20px 40px;
    }

    .dashboard-tables {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .data-card {
        min-width: 0;
        padding: 40px;
    }

    .table-scroll {
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        touch-action: pan-x pan-y;
        -webkit-overflow-scrolling: touch;
    }

    .table-scroll::-webkit-scrollbar {
        display: none;
    }

    .data-card-header {
        gap: 24px;
        margin-bottom: 28px;
    }

    .data-card-header h2 {
        font-size: 34px;
        font-weight: 600;
        line-height: 1.15;
        white-space: nowrap;
    }

    .data-card-actions {
        flex: 0 0 auto;
        gap: 14px;
    }

    .btn {
        align-items: center;
        display: inline-flex;
        font-size: 24px;
        font-weight: 700;
        justify-content: center;
        min-height: 54px;
        min-width: 126px;
        padding: 10px 24px;
    }

    .label-wide {
        display: none;
    }

    .label-mobile {
        display: inline;
    }

    .data-table {
        font-size: 24px;
        min-width: 800px;
        width: max-content;
    }

    .data-table th {
        font-size: 24px;
        font-weight: 700;
        padding: 20px;
    }

    .data-table td {
        font-size: 24px;
        padding: 20px;
    }

    .data-table a {
        font-size: 24px;
    }

    .status-badge {
        font-size: 20px;
        padding: 4px 12px;
    }
}

@media (max-width: 520px) {
    .mobile-topbar {
        height: 64px;
        padding: 0 20px;
    }

    .mobile-logo img {
        height: 42px;
    }

    .mobile-logo {
        width: 46px;
    }

    .mobile-menu-button span {
        height: 3px;
        width: 28px;
    }

    .sidebar {
        padding: 50px 36px;
    }

    .mobile-sidebar-header {
        right: 34px;
        top: 50px;
    }

    .mobile-sidebar-close {
        font-size: 14px;
        gap: 12px;
    }

    .mobile-close-icon {
        height: 22px;
        width: 22px;
    }

    .mobile-close-icon::before,
    .mobile-close-icon::after {
        height: 3px;
        top: 10px;
        width: 23px;
    }

    .sidebar-nav {
        gap: 28px;
    }

    .nav-item {
        gap: 14px;
        font-size: 18px;
    }

    .nav-icon {
        height: 22px;
        width: 22px;
    }

    .nav-badge {
        font-size: 16px;
        height: 24px;
        min-width: 36px;
    }

    .main-bg-wave {
        background-position: right top -92px;
        background-size: 680px auto;
    }

    .main-inner {
        padding: 28px 20px 48px;
    }

    .main-header h1 {
        font-size: 30px;
    }

    .stat-cards {
        gap: 12px;
        margin-bottom: 28px;
    }

    .stat-card {
        flex-basis: min(216px, 55vw);
        height: 106px;
        padding: 18px 24px;
    }

    .stat-label {
        font-size: 14px;
    }

    .stat-value {
        font-size: 32px;
    }

    .alerts {
        gap: 12px;
        margin-bottom: 32px;
    }

    .alert {
        border-radius: 8px;
        font-size: 16px;
        padding: 16px 20px;
    }

    .dashboard-tables {
        gap: 32px;
    }

    .data-card {
        padding: 28px 20px;
    }

    .data-card-header {
        align-items: center;
        gap: 10px;
    }

    .data-card-header h2 {
        font-size: 22px;
    }

    .data-card-actions {
        gap: 10px;
    }

    .btn {
        font-size: 16px;
        min-height: 40px;
        min-width: 80px;
        padding: 8px 12px;
    }

    .data-table {
        font-size: 16px;
        min-width: 620px;
    }

    .data-table th,
    .data-table td {
        font-size: 16px;
        padding: 14px 20px;
    }

    .data-table a {
        font-size: 16px;
    }

    .status-badge {
        font-size: 14px;
    }
}

/* Green: open, in progress, paid */
.status-open,
.status-progress,
.status-paid {
    background: #5CAF2926;
    color: #5CAF29;
}

/* Blue: refunded, answered, customer reply, pending client reply */
.status-refunded,
.status-answered,
.status-customer-reply,
.status-pending-reply {
    background: #5A8CFC26;
    color: #4F73C9;
}

/* Orange: pending, in review, estimate sent, create estimate */
.status-pending,
.status-review,
.status-estimate-sent,
.status-create-estimate {
    background: #F59E0B26;
    color: #B45309;
}

/* Purple: scheduled, trying to schedule */
.status-scheduled,
.status-trying-schedule {
    background: #A855F726;
    color: #7E22CE;
}

/* Red: unpaid, overdue, collections, on hold, hold renewal, pending payment */
.status-unpaid,
.status-overdue,
.status-collections,
.status-hold,
.status-hold-renewal,
.status-pending-payment {
    background: #EA363926;
    color: #8C3434;
}

/* Gray: draft, cancelled, closed */
.status-draft,
.status-cancelled,
.status-closed {
    background: #9CA3AF26;
    color: #4B5563;
}

.status-delivered,
.status-accepted {
    background: #5CAF2926;
    color: #5CAF29;
}

.status-tag-example {
    background: #5CAF2926;
    color: #5CAF29;
}

.status-on-hold,
.status-lost,
.status-dead {
    background: #EA363926;
    color: #8C3434;
}

/* Search box */

.search-box {
    position: relative;
    margin-bottom: 12px;
    max-width: 320px;
}

.search-box input {
    width: 100%;
    border: 1px solid #CBD5E1;
    border-radius: 4px;
    padding: 7px 36px 7px 12px;
    font-size: 13px;
    color: #1F2937;
    background: #fff;
}

.search-box input:focus {
    outline: none;
    border-color: #5A8CFC;
    box-shadow: 0 0 0 2px rgba(90, 140, 252, 0.2);
}

.search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background-color: #94A3B8;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") no-repeat center / contain;
    pointer-events: none;
}

.data-card-spacer {
    margin-top: 16px;
}

.list-filters {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.list-filters .search-box {
    margin-bottom: 0;
}

.list-filters select {
    border: 1px solid #CBD5E1;
    border-radius: 4px;
    padding: 7px 32px 7px 10px;
    font-size: 13px;
    color: #1F2937;
    background: #fff;
    min-width: 150px;
}

.estimate-detail-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.estimate-detail-header h2 {
    font-size: 22px;
    font-weight: 500;
    color: #1D3261;
}

.estimate-subtitle {
    color: #64748B;
    font-size: 13px;
    margin-top: 4px;
}

.estimate-summary {
    display: flex;
    align-items: center;
    gap: 12px;
}

.estimate-summary strong {
    color: #1D3261;
    font-size: 22px;
    font-weight: 500;
}

.estimate-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.estimate-copy {
    color: #1F2937;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.estimate-notes {
    margin: 18px 0 0;
}

.estimate-notes h3 {
    color: #1D3261;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 6px;
}

.invoice-detail-page {
    background: #fff;
    min-height: 100vh;
}

.invoice-detail-page .main-bg-wave {
    height: 184px;
    background-position: right top -216px;
    background-size: 100% auto;
}

.invoice-detail-page .main-inner {
    padding: 25px 25px 48px;
}

.invoice-detail-page .sidebar {
    width: 205px;
    padding: 28px 25px 24px;
}

.invoice-detail-page .sidebar-logo {
    padding: 0 0 54px;
}

.invoice-detail-page .sidebar-logo img {
    height: 54px;
}

.invoice-detail-page .sidebar-nav {
    gap: 24px;
}

.invoice-detail-page .nav-item {
    gap: 11px;
    min-height: 22px;
    padding: 0;
    font-size: 16px;
    line-height: 1.2;
}

.invoice-detail-page .nav-item,
.invoice-detail-page .nav-icon {
    color: #686868;
}

.invoice-detail-page .nav-item:hover,
.invoice-detail-page .nav-item.active {
    background: transparent;
}

.invoice-detail-page .nav-badge {
    height: 19px;
    min-width: 29px;
    width: auto;
}

.invoice-detail-page .sidebar-user {
    border-top: 0;
    margin-top: auto;
    padding: 0;
}

.invoice-detail-page .user-avatar {
    height: 42px;
    width: 42px;
    font-size: 16px;
}

.invoice-detail-page .user-actions,
.invoice-detail-page .logout-button {
    display: none;
}

.invoice-detail-page .user-name {
    color: #686868;
    font-size: 14px;
}

.invoice-page-header {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
    min-height: 71px;
}

.invoice-page-header h1 {
    color: #1D3261;
    font-size: 29px;
    font-weight: 700;
    line-height: 1.18;
    margin-bottom: 19px;
}

.invoice-page-header .back-link {
    color: #5A8CFC;
    font-size: 18px;
    gap: 6px;
}

.invoice-page-header .back-arrow {
    height: 16px;
    width: 16px;
}

.invoice-print-button {
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    height: 38px;
    margin-top: 0;
    min-width: 94px;
    padding: 0 24px;
}

.invoice-figma-layout {
    align-items: start;
    display: grid;
    gap: 26px;
    grid-template-columns: 348px minmax(0, 1fr);
}

.invoice-side-column,
.invoice-main-column {
    display: grid;
    gap: 26px;
    min-width: 0;
}

.invoice-panel {
    background: #FFFFFF;
    border: 1px solid #DADDE3;
    border-radius: 6px;
    box-shadow: none;
    min-width: 0;
    overflow: hidden;
}

.invoice-panel h2 {
    color: #1D3261;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    padding: 24px 25px 13px;
}

.invoice-balance-band {
    background: #F8DDDF;
    border-radius: 8px;
    color: #1D3261;
    margin: 0 25px 14px;
    min-height: 76px;
    padding: 14px 14px 12px;
}

.invoice-balance-band span,
.invoice-meta-grid dt,
.invoice-address-block h3,
.invoice-payment-form > label,
.invoice-payment-methods p {
    color: #000000;
    display: block;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 8px;
}

.invoice-balance-band strong {
    color: #686868;
    display: block;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.35;
}

.invoice-meta-grid {
    border-top: 1px solid #E5E5E5;
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 25px;
    padding: 15px 0 13px;
}

.invoice-meta-grid dd,
.invoice-address-block p,
.payment-note,
.invoice-payment-method,
.invoice-payment-form > label {
    color: #686868;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    margin: 0;
}

.invoice-address-block {
    padding: 0 25px 14px;
}

.invoice-address-block h3 {
    color: #000;
    margin-bottom: 8px;
}

.invoice-download {
    display: none;
}

.invoice-payment-form {
    display: grid;
    gap: 20px;
    padding: 0 25px 25px;
}

.invoice-payment-methods {
    display: grid;
    gap: 9px;
}

.invoice-payment-methods p {
    color: #686868;
    font-weight: 400;
    margin-bottom: 6px;
}

.invoice-payment-method {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.invoice-payment-method > span:first-child {
    align-items: center;
    display: inline-flex;
    gap: 8px;
}

.invoice-payment-method input[type="radio"] {
    accent-color: #C7D51E;
    height: 16px;
    margin: 0;
    width: 16px;
}

.invoice-payment-form input[type="text"] {
    border: 1px solid #E4E4E4;
    border-radius: 4px;
    color: #1F2937;
    font-size: 16px;
    height: 38px;
    padding: 7px 10px;
    width: 100%;
}

.invoice-payment-form input[type="text"]:focus {
    border-color: #5A8CFC;
    box-shadow: 0 0 0 2px rgba(90, 140, 252, 0.2);
    outline: none;
}

.btn-pay-now {
    background: #55B42A;
    border: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    height: 38px;
    margin-top: 9px;
    width: 100%;
}

.btn-pay-now:hover {
    background: #4CA224;
}

.payment-note {
    padding: 0 25px 25px;
}

.invoice-table-panel {
    padding: 0 24px 12px;
}

.invoice-table-panel h2 {
    padding: 26px 0 13px;
}

.invoice-figma-table {
    background: #FFFFFF;
    border-collapse: collapse;
    color: #686868;
    font-size: 16px;
    width: 100%;
}

.invoice-figma-table th,
.invoice-figma-table td {
    border-bottom: 1px solid #E5E5E5;
    padding: 13px 14px;
    text-align: left;
    vertical-align: top;
}

.invoice-figma-table thead th {
    background: #EDF2FA;
    border-bottom: 1px solid #AEB3BA;
    border-top: 1px solid #AEB3BA;
    color: #000000;
    font-weight: 700;
}

.invoice-figma-table tbody td {
    background: #FFFFFF;
    color: #686868;
    font-weight: 400;
}

.invoice-figma-table td:last-child,
.invoice-figma-table th:last-child {
    text-align: left;
    width: 282px;
}

.invoice-figma-table tfoot th,
.invoice-figma-table tfoot td {
    background: #F4F4F4;
    color: #000000;
    font-weight: 700;
}

.invoice-figma-table tfoot td {
    color: #000;
}

.invoice-notes {
    color: #686868;
    font-size: 16px;
    line-height: 1.5;
    margin-top: 18px;
}

.invoice-notes h3 {
    color: #1D3261;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

@media (max-width: 760px) {
    .list-filters,
    .estimate-detail-header {
        flex-direction: column;
        align-items: stretch;
    }

    .list-filters .search-box,
    .list-filters select {
        max-width: none;
        width: 100%;
    }

    .invoice-figma-layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .invoice-figma-table {
        min-width: 620px;
    }

    .invoice-table-panel {
        overflow-x: auto;
    }
}

/* Account form */

.account-form {
    max-width: 860px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
}

.form-grid-full {
    grid-column: 1 / -1;
}

.account-form .field {
    margin-bottom: 0;
}

.account-form label {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: #6A6A6A;
    margin-bottom: 6px;
}

.account-form input {
    width: 100%;
    border: 1px solid #CBD5E1;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    color: #1F2937;
    background: #fff;
}

.account-form input:focus {
    outline: none;
    border-color: #5A8CFC;
    box-shadow: 0 0 0 2px rgba(90, 140, 252, 0.2);
}

.field-error {
    display: block;
    color: #8C3434;
    font-size: 12px;
    margin-top: 4px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

@media (max-width: 760px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* Slide Panel */

.slide-panel-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 90;
}

.slide-panel-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.slide-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 600px;
    max-width: 100vw;
    height: 100vh;
    background: #fff;
    border-left: 1px solid #E5E7EB;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 100;
    overflow-y: auto;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.06);
}

.slide-panel.open {
    transform: translateX(0);
}

.slide-panel-inner {
    padding: 28px 32px;
}

.slide-panel-title {
    font-size: 24px;
    font-weight: 500;
    color: #1D3261;
    margin-bottom: 24px;
}

.ticket-form .field {
    margin-bottom: 14px;
}

.ticket-form label {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: #6A6A6A;
    margin-bottom: 6px;
}

.ticket-form input[type="text"],
.ticket-form select,
.ticket-form textarea {
    width: 100%;
    border: 1px solid #CBD5E1;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    color: #1F2937;
    background: #fff;
}

.ticket-form input[type="text"]:focus,
.ticket-form select:focus,
.ticket-form textarea:focus {
    outline: none;
    border-color: #5A8CFC;
    box-shadow: 0 0 0 2px rgba(90, 140, 252, 0.2);
}

.ticket-form textarea {
    resize: vertical;
    height: 270px;
}

.ticket-form select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2364748B'%3E%3Cpath d='M5 7l5 6 5-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    padding-right: 32px;
}

.btn-attach {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 174px;
    font-size: 14px;
    font-weight: 700;
}

.attachment-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.attachment-list {
    margin-top: 8px;
    font-size: 12px;
    color: #64748B;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.attach-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    background-color: #5A8CFC;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48'/%3E%3C/svg%3E") no-repeat center / contain;
}

.attach-hint {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 400;
    color: #AAAAAA;
    line-height: 1.5;
}

.slide-panel-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid #E5E7EB;
    margin-top: 20px;
}

.slide-panel-actions .btn-primary {
    width: 93px;
    height: 32px;
    font-size: 14px;
    font-weight: 700;
    padding: 0;
}

.btn-cancel {
    background: none;
    border: 0;
    font-size: 14px;
    font-weight: 400;
    color: #5A8CFC;
    cursor: pointer;
}

.btn-cancel:hover {
    text-decoration: underline;
}

/* Ticket Detail */

.ticket-detail-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.ticket-detail-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: #1D3261;
    line-height: 1.2;
    margin-bottom: 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #5A8CFC;
}

.back-link:hover {
    text-decoration: underline;
}

.back-arrow {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: #5A8CFC;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M12 19l-7-7 7-7'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M12 19l-7-7 7-7'/%3E%3C/svg%3E") no-repeat center / contain;
}

.ticket-detail-layout {
    display: grid;
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.ticket-detail-sidebar {
    min-width: 0;
}

.ticket-detail-sidebar .info-card {
    width: 100%;
}

.ticket-detail-sidebar .info-card:first-child {
    min-height: 305px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.ticket-detail-sidebar .info-card:first-child .info-card-title {
    margin-bottom: 14px;
}

.ticket-detail-sidebar .info-card:first-child .info-list {
    row-gap: 10px;
    padding-bottom: 14px;
    margin-bottom: 0;
}

.ticket-detail-sidebar .info-card:first-child .btn-block {
    margin-top: auto;
    padding: 9px 0;
}

.info-card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(29, 50, 97, 0.06);
    margin-bottom: 18px;
}

.info-card-title {
    font-size: 19px;
    font-weight: 500;
    color: #1D3261;
    line-height: 1.25;
    margin-bottom: 18px;
}

.info-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 12px;
    row-gap: 14px;
    align-items: start;
    padding-bottom: 18px;
    border-bottom: 1px solid #E5E7EB;
    margin-bottom: 18px;
}

.info-list dt {
    font-size: 14px;
    font-weight: 400;
    color: #6A6A6A;
}

.info-list dd {
    font-size: 14px;
    color: #1F2937;
    margin-left: 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

.btn-block {
    width: 100%;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 700;
    border-radius: 6px;
}

/* CC Recipients */

.cc-list {
    list-style: none;
    display: grid;
    gap: 9px;
    margin-bottom: 18px;
}

.cc-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    font-size: 16px;
    line-height: 1.25;
    color: #6A6A6A;
}

.cc-list li span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.cc-remove {
    background: none;
    border: 0;
    color: #A3A3A3;
    cursor: pointer;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    padding: 0 3px;
}

.cc-remove:hover {
    color: #6A6A6A;
}

.cc-add {
    display: flex;
    align-items: center;
    gap: 18px;
}

.cc-add input {
    flex: 1;
    min-width: 0;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 16px;
    line-height: 1.35;
    color: #1F2937;
}

.cc-add input:focus {
    outline: none;
    border-color: #5A8CFC;
    box-shadow: 0 0 0 2px rgba(90, 140, 252, 0.2);
}

.btn-cc-add {
    min-width: 86px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 700;
}

.cc-empty {
    color: #6A6A6A;
    font-size: 15px;
}

.cc-form {
    display: block;
}

.sr-only {
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* Reply form actions */

.ticket-form-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid #E5E7EB;
    margin-top: 16px;
}

.ticket-form-actions .btn-primary {
    width: 93px;
    height: 32px;
    font-size: 14px;
    font-weight: 700;
    padding: 0;
}

/* Messages */

.message-card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 0;
    margin-bottom: 12px;
    align-items: stretch;
    overflow: hidden;
    min-width: 0;
}

.message-card .message-meta {
    padding: 20px 24px 20px 20px;
    border-right: 1px solid #E5E7EB;
}

.message-card .message-body {
    padding: 20px 20px 20px 24px;
}

.message-meta {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.message-avatar-user {
    background: #C8DA2F;
    color: #1D3261;
    font-size: 12px;
    font-weight: 700;
}

.message-avatar-staff {
    background: #1D3261;
}

.message-avatar-staff img {
    width: 22px;
    height: auto;
}

.message-author {
    font-size: 13px;
    color: #1F2937;
    font-weight: 500;
    line-height: 1.3;
}

.message-date {
    font-size: 12px;
    color: #6A6A6A;
    margin-top: 2px;
}

.message-body p {
    font-size: 14px;
    font-weight: 400;
    color: #6A6A6A;
    line-height: 1.55;
    margin-bottom: 12px;
    overflow-wrap: anywhere;
}

.message-body p:last-child {
    margin-bottom: 0;
}

.message-body-empty {
    grid-column: 1 / -1;
}

.ticket-attachment-list {
    list-style: none;
    display: grid;
    gap: 8px;
}

.ticket-attachment-list a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    color: #1D3261;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
}

.ticket-attachment-list a:hover {
    color: #5A8CFC;
    text-decoration: underline;
}

.ticket-attachment-list a span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.attachment-file-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    background-color: #5A8CFC;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z'/%3E%3Cpath d='M14 2v6h6'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z'/%3E%3Cpath d='M14 2v6h6'/%3E%3C/svg%3E") no-repeat center / contain;
}

.message-attachments {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #E5E7EB;
}

.message-attachments-title {
    color: #1D3261;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

@media (max-width: 1100px) {
    .ticket-detail-layout {
        grid-template-columns: 1fr;
    }

    .ticket-detail-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .ticket-detail-sidebar .info-card {
        margin-bottom: 0;
    }
}

@media (max-width: 760px) {
    .main-inner {
        padding: 20px 16px;
    }

    .ticket-detail-header {
        gap: 5px;
        margin-bottom: 22px;
    }

    .ticket-detail-header h1 {
        font-size: 20px;
        font-weight: 600;
    }

    .back-link {
        font-size: 12px;
    }

    .back-arrow {
        height: 11px;
        width: 11px;
    }

    .ticket-detail-layout,
    .ticket-detail-main {
        display: grid;
        gap: 18px;
    }

    .ticket-detail-sidebar {
        display: grid;
        gap: 18px;
        grid-template-columns: 1fr;
    }

    .ticket-detail-sidebar .info-card {
        margin-bottom: 0;
    }

    .ticket-detail-sidebar .info-card:first-child {
        min-height: 0;
        padding: 18px;
    }

    .ticket-detail-sidebar .info-card:first-child .info-card-title {
        margin-bottom: 12px;
    }

    .ticket-detail-sidebar .info-card:first-child .info-list {
        margin-bottom: 14px;
        padding-bottom: 16px;
        row-gap: 8px;
    }

    .ticket-detail-sidebar .info-card:first-child .btn-block {
        margin-top: 0;
    }

    .info-card {
        border-color: #E5E7EB;
        border-radius: 6px;
        box-shadow: none;
        margin-bottom: 0;
        padding: 18px;
    }

    .info-card-title {
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 14px;
    }

    .info-list {
        grid-template-columns: minmax(100px, 0.55fr) minmax(0, 1fr);
        column-gap: 14px;
        row-gap: 8px;
        padding-bottom: 16px;
    }

    .info-list dt,
    .info-list dd {
        font-size: 12px;
        line-height: 1.25;
    }

    .btn-block {
        border-radius: 3px;
        font-size: 12px;
        min-height: 26px;
        padding: 5px 0;
    }

    .cc-add {
        gap: 10px;
    }

    .cc-add input {
        font-size: 14px;
        padding: 9px 12px;
    }

    .btn-cc-add {
        min-width: 72px;
        padding: 9px 14px;
        font-size: 14px;
    }

    .cc-add .btn-cc-add {
        flex: 0 0 72px;
        min-height: 40px;
    }

    .cc-list {
        gap: 8px;
        margin-bottom: 10px;
    }

    .cc-list li {
        font-size: 12px;
        line-height: 1.3;
    }

    .cc-remove {
        font-size: 15px;
    }

    .ticket-form .field {
        margin-bottom: 12px;
    }

    .ticket-form label {
        font-size: 12px;
        margin-bottom: 7px;
    }

    .ticket-form textarea {
        height: 220px;
    }

    .ticket-form input[type="text"],
    .ticket-form select,
    .ticket-form textarea {
        font-size: 12px;
        padding: 9px 10px;
    }

    .btn-attach {
        width: 174px;
    }

    .attachment-list {
        display: none;
    }

    .attach-hint {
        font-size: 10px;
        line-height: 1.3;
        margin-top: 10px;
    }

    .ticket-form-actions {
        gap: 12px;
        margin-top: 16px;
        padding-top: 18px;
    }

    .ticket-form-actions .btn-primary {
        height: 26px;
        width: 74px;
    }

    .message-card {
        grid-template-columns: 1fr;
        margin-bottom: 0;
    }

    .message-card .message-meta {
        align-items: center;
        background: #F2F6FF;
        border-right: 0;
        border-bottom: 1px solid #E5E7EB;
        padding: 11px 18px;
    }

    .message-card .message-body {
        padding: 18px;
    }

    .message-avatar {
        height: 38px;
        width: 38px;
    }

    .message-author {
        font-size: 12px;
    }

    .message-date {
        font-size: 12px;
    }

    .message-body p {
        font-size: 12px;
        line-height: 1.25;
    }
}
