:root {
    --bg-0: #06111d;
    --bg-1: #081a29;
    --bg-2: #0c2235;
    --panel: rgba(13, 32, 51, 0.88);
    --panel-strong: #11293f;
    --border: rgba(136, 170, 191, 0.16);
    --text: #e7f2f8;
    --muted: #8ea7ba;
    --accent: #2ed9c3;
    --accent-2: #3aa9ff;
    --success: #57d37d;
    --warning: #f4c06a;
    --danger: #ff6b6b;
    --shadow: 0 26px 50px rgba(0, 0, 0, 0.32);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background:
        radial-gradient(circle at top right, rgba(46, 217, 195, 0.14), transparent 30%),
        radial-gradient(circle at bottom left, rgba(58, 169, 255, 0.13), transparent 25%),
        linear-gradient(160deg, var(--bg-0) 0%, var(--bg-1) 46%, var(--bg-2) 100%);
    color: var(--text);
    direction: rtl;
    text-align: right;
}

body.theme-light {
    --bg-0: #eef5f7;
    --bg-1: #f7fbfc;
    --bg-2: #dfeff2;
    --panel: rgba(255, 255, 255, 0.92);
    --panel-strong: #ffffff;
    --border: rgba(11, 34, 53, 0.12);
    --text: #102335;
    --muted: #607589;
    background: linear-gradient(160deg, var(--bg-0), var(--bg-1));
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.shell {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    min-height: 100vh;
    transition: grid-template-columns 0.24s ease;
}

.sidebar {
    padding: 28px 24px;
    background: linear-gradient(180deg, rgba(8, 24, 39, 0.98), rgba(5, 13, 22, 0.98));
    border-left: 1px solid var(--border);
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 22px;
    overflow-y: auto;
    overscroll-behavior: contain;
    transition: transform 0.24s ease, opacity 0.24s ease;
    z-index: 40;
}

.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(46, 217, 195, 0.28);
    border-radius: 99px;
}

.sidebar-floating-toggle {
    position: fixed;
    top: 18px;
    right: 248px;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(46, 217, 195, 0.35);
    border-radius: 15px;
    background: rgba(6, 17, 29, 0.88);
    color: var(--text);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(12px);
    cursor: pointer;
    transition: right 0.24s ease, transform 0.2s ease, background 0.2s ease;
}

.sidebar-floating-toggle:hover {
    transform: translateY(-1px);
    background: rgba(9, 30, 48, 0.94);
}

.sidebar-burger {
    display: none;
    gap: 5px;
}

.sidebar-burger span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.sidebar-x {
    display: block;
    font-size: 1.65rem;
    line-height: 1;
    transform: translateY(-1px);
}

body.sidebar-collapsed .shell {
    grid-template-columns: 0 minmax(0, 1fr);
}

body.sidebar-collapsed .sidebar-floating-toggle {
    right: 18px;
}

body.sidebar-collapsed .sidebar-burger {
    display: grid;
}

body.sidebar-collapsed .sidebar-x {
    display: none;
}

body.sidebar-collapsed .sidebar {
    transform: translateX(110%);
    opacity: 0;
    pointer-events: none;
}

.brand {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #03131c;
    font-weight: 800;
    box-shadow: 0 18px 30px rgba(46, 217, 195, 0.25);
}

.brand-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
}

.brand-subtitle {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.nav {
    display: grid;
    gap: 10px;
}

.nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    color: var(--text);
    background: transparent;
    border: 1px solid transparent;
    transition: 0.2s ease;
}

.nav a:hover,
.nav a.active {
    background: rgba(46, 217, 195, 0.12);
    border-color: rgba(46, 217, 195, 0.22);
    transform: translateX(-2px);
}

.sidebar-card {
    margin-top: auto;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(16, 41, 62, 0.9), rgba(10, 26, 42, 0.9));
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.content {
    padding: 28px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.topbar h1 {
    margin: 0;
    font-size: 1.6rem;
    line-height: 1.4;
}

.topbar p {
    margin: 6px 0 0;
    color: var(--muted);
}

.topbar-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.dashboard-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 22px;
    margin-bottom: 24px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(46, 217, 195, 0.13), rgba(58, 169, 255, 0.08));
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.dashboard-hero h2,
.dashboard-hero p {
    margin: 0;
}

.dashboard-hero p {
    margin-top: 6px;
    color: var(--muted);
}

.dashboard-logo {
    width: 82px;
    max-height: 82px;
    object-fit: contain;
    border-radius: 18px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.card,
.stat-card,
.table-card,
.panel,
.auth-card,
.invoice-sheet {
    background: var(--panel);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.grid {
    display: grid;
    gap: 18px;
}

.stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 22px;
}

.stat-card {
    border-radius: var(--radius);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: "";
    position: absolute;
    inset: auto -20px -28px auto;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(46, 217, 195, 0.18), transparent 70%);
    pointer-events: none;
}

.stat-label {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.stat-note {
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.9rem;
}

.section {
    display: grid;
    gap: 22px;
    margin-bottom: 28px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.section-title h2,
.section-title h3 {
    margin: 0;
    font-size: 1.15rem;
}

.section-title span {
    color: var(--muted);
    font-size: 0.92rem;
}

.table-card {
    border-radius: var(--radius);
    overflow: hidden;
}

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

th,
td {
    padding: 15px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: top;
}

th {
    color: #cfe1eb;
    font-size: 0.88rem;
    background: rgba(8, 24, 39, 0.86);
}

td {
    color: #eef6fb;
}

tbody tr:hover {
    background: rgba(46, 217, 195, 0.04);
}

.muted {
    color: var(--muted);
}

.muted-small {
    color: var(--muted);
    font-size: 0.92rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.badge.success {
    background: rgba(87, 211, 125, 0.14);
    color: #8cf0aa;
    border-color: rgba(87, 211, 125, 0.22);
}

.badge.warning {
    background: rgba(244, 192, 106, 0.14);
    color: #ffd78a;
    border-color: rgba(244, 192, 106, 0.22);
}

.badge.danger {
    background: rgba(255, 107, 107, 0.14);
    color: #ff9a9a;
    border-color: rgba(255, 107, 107, 0.22);
}

.badge.info {
    background: rgba(58, 169, 255, 0.14);
    color: #9dd4ff;
    border-color: rgba(58, 169, 255, 0.22);
}

.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 14px;
    padding: 11px 16px;
    cursor: pointer;
    transition: 0.2s ease;
    font-weight: 700;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #04111b;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-danger {
    background: rgba(255, 107, 107, 0.12);
    color: #ffb3b3;
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.btn-link {
    background: transparent;
    color: var(--accent);
    padding-inline: 0;
}

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

.field {
    display: grid;
    gap: 8px;
}

.field label {
    font-size: 0.92rem;
    color: #d4e6f3;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 13px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    outline: none;
}

.field textarea {
    min-height: 110px;
    resize: vertical;
}

.field select option {
    background: #0b1c2d;
    color: var(--text);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: rgba(46, 217, 195, 0.45);
    box-shadow: 0 0 0 4px rgba(46, 217, 195, 0.08);
}

.alert {
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 18px;
    border: 1px solid transparent;
}

.alert-success {
    background: rgba(87, 211, 125, 0.12);
    border-color: rgba(87, 211, 125, 0.24);
    color: #c8f7d4;
}

.alert-error {
    background: rgba(255, 107, 107, 0.12);
    border-color: rgba(255, 107, 107, 0.24);
    color: #ffcbcb;
}

.page-card,
.auth-card {
    border-radius: 28px;
    overflow: hidden;
}

.auth-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px;
}

.auth-card {
    width: min(100%, 980px);
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    min-height: 620px;
}

.auth-visual {
    padding: 40px;
    background:
        radial-gradient(circle at top right, rgba(46, 217, 195, 0.26), transparent 32%),
        linear-gradient(160deg, #091a2b, #07131f 90%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth-visual h1 {
    font-size: 2.2rem;
    margin: 0;
    line-height: 1.2;
}

.auth-visual p {
    color: var(--muted);
    max-width: 44ch;
    line-height: 1.8;
}

.auth-form {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    background: rgba(8, 20, 33, 0.94);
}

.auth-form h2 {
    margin: 0;
    font-size: 1.5rem;
}

.auth-form .muted-small {
    margin-top: -6px;
}

.invoice-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 20px 60px;
}

.invoice-sheet {
    border-radius: 28px;
    overflow: hidden;
    background: rgba(10, 22, 35, 0.95);
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    padding: 28px 30px;
    background: linear-gradient(135deg, rgba(46, 217, 195, 0.18), rgba(58, 169, 255, 0.09));
    border-bottom: 1px solid var(--border);
}

.invoice-brand {
    display: grid;
    gap: 10px;
}

.invoice-brand h1,
.invoice-brand h2 {
    margin: 0;
}

.invoice-meta {
    display: grid;
    gap: 10px;
    text-align: left;
    direction: ltr;
}

.invoice-meta span,
.invoice-meta strong {
    direction: ltr;
}

.invoice-body {
    padding: 26px 30px 32px;
    display: grid;
    gap: 28px;
}

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

.summary-item {
    display: grid;
    gap: 9px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.summary-item span {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
}

.summary-item strong {
    display: block;
    margin-top: 0;
    font-size: 1.1rem;
    line-height: 1.65;
    word-break: break-word;
}

.footer-note {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.8;
}

.invoice-table {
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.table-grid {
    display: grid;
    gap: 18px;
}

.search-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
}

.search-bar input {
    flex: 1;
    min-width: 240px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.form-card,
.padded-card {
    padding: 22px;
    border-radius: var(--radius);
}

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

.form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.inner-title {
    margin: 24px 0 14px;
}

.form-table {
    border: 1px solid var(--border);
    box-shadow: none;
}

.form-table input,
.form-table select {
    width: 100%;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    outline: none;
}

.compact-form {
    margin-top: 16px;
}

.two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 22px;
}

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

.quick-card {
    display: block;
    transition: 0.2s ease;
}

.quick-card:hover {
    transform: translateY(-2px);
    border-color: rgba(46, 217, 195, 0.28);
}

.money-in {
    color: var(--success);
}

.money-out {
    color: var(--danger);
}

.settings-logo,
.print-logo {
    max-width: 150px;
    max-height: 80px;
    object-fit: contain;
    display: block;
    margin-top: 10px;
}

.print-company .print-logo,
.public-white .invoice-brand .print-logo {
    max-width: 190px;
    max-height: 112px;
    margin: 0 0 6px;
}

.inline-editor {
    margin-bottom: 8px;
}

.inline-editor summary {
    list-style: none;
}

.inline-editor summary::-webkit-details-marker {
    display: none;
}

.public-white {
    background: #fff !important;
    color: #172434;
}

.public-white .invoice-header,
.public-white .summary-item,
.public-white .table-card {
    background: #fff;
    color: #172434;
    border-color: #dbe5eb;
}

.public-white .invoice-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    justify-content: stretch;
    direction: ltr;
    align-items: flex-start;
}

.public-white .invoice-brand {
    grid-column: 1;
    justify-self: start;
    align-self: start;
    width: min(100%, 460px);
    margin-left: 0;
    margin-right: auto;
    direction: ltr;
    text-align: left;
    justify-items: left;
    align-items: start;
}

.public-white .invoice-meta {
    grid-column: 2;
    justify-self: end;
    direction: rtl;
    text-align: right;
    color: #172434;
}

.public-white .invoice-brand h1,
.public-white .invoice-brand .muted-small {
    width: 100%;
    direction: rtl;
    text-align: left;
}

.public-white th {
    background: #eef6f7;
    color: #0f2638;
}

.public-white td,
.public-white .muted,
.public-white .muted-small {
    color: #27384a;
}

.watermarked {
    position: relative;
    overflow: hidden;
}

.watermarked::before {
    content: var(--watermark-text);
    position: absolute;
    inset: 45% auto auto 50%;
    transform: translate(-50%, -50%) rotate(-24deg);
    font-size: clamp(2.4rem, 8vw, 6rem);
    font-weight: 900;
    color: rgba(14, 90, 102, 0.08);
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
}

.watermarked > * {
    position: relative;
    z-index: 1;
}

.print-page {
    min-height: 100vh;
    background: #eef3f6;
    padding: 28px;
    color: #172434;
}

.print-actions {
    max-width: 980px;
    margin: 0 auto 16px;
    display: flex;
    justify-content: flex-end;
}

.print-sheet {
    width: min(100%, 980px);
    margin: 0 auto;
    background: #fff;
    border: 1px solid #dbe5eb;
    border-radius: 18px;
    padding: 34px;
    box-shadow: 0 20px 60px rgba(20, 45, 65, 0.12);
    line-height: 1.85;
}

.print-header,
.print-client,
.print-totals {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 18px;
}

.print-header {
    direction: ltr;
    justify-content: stretch;
    justify-items: stretch;
    border-bottom: 2px solid #0b344f;
    padding-bottom: 26px;
    margin-bottom: 28px;
    align-items: start;
}

.print-company {
    grid-column: 1;
    direction: ltr;
    text-align: left;
    display: grid;
    justify-self: start;
    justify-items: left;
    align-items: start;
    width: 100%;
    max-width: 520px;
    margin-left: 0;
    margin-right: auto;
    gap: 8px;
}

.print-company h1 {
    font-size: 1.8rem;
}

.print-company p {
    font-size: 1.03rem;
    width: 100%;
    direction: rtl;
    text-align: left;
}

.print-company h1 {
    width: 100%;
    direction: rtl;
    text-align: left;
}

.print-header h1,
.print-header h2 {
    margin: 0 0 12px;
    color: #0b2235;
    line-height: 1.45;
}

.print-header p,
.print-meta span,
.print-client span,
.print-totals span {
    color: #5a6b7b;
    margin: 7px 0;
    line-height: 1.7;
}

.print-meta {
    display: grid;
    gap: 10px;
    text-align: right;
    direction: rtl;
    align-content: start;
}

.print-client {
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 28px;
    gap: 14px;
}

.print-client div,
.print-totals div,
.print-note,
.print-footer {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid #dbe5eb;
    border-radius: 14px;
    background: #fbfdfe;
}

.print-client span,
.print-totals span {
    display: block;
}

.print-client strong,
.print-totals strong {
    display: block;
    line-height: 1.75;
    word-break: break-word;
}

.print-table {
    margin: 24px 0;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid #dbe5eb;
}

.print-table th {
    background: #0b344f;
    color: #fff;
    padding: 14px 16px;
}

.print-table td {
    color: #172434;
    padding: 16px;
    line-height: 1.85;
}

.print-totals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 24px;
    gap: 14px;
}

.print-totals .grand {
    background: #e9fbf8;
    border-color: #82d8ce;
}

.print-note,
.print-footer {
    margin-top: 22px;
    line-height: 1.9;
}

.empty-state {
    padding: 26px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    color: var(--muted);
}

.public-layout {
    min-height: 100vh;
    padding: 24px;
}

.public-header {
    max-width: 1180px;
    margin: 0 auto 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    border-radius: 22px;
    background: rgba(8, 20, 33, 0.82);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.public-header strong {
    font-size: 1.05rem;
}

.public-header span {
    color: var(--muted);
    font-size: 0.92rem;
}

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

    .auth-card {
        grid-template-columns: 1fr;
    }
}

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

    body.sidebar-collapsed .shell {
        grid-template-columns: 1fr;
    }

    .two-column {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        right: 0;
        width: min(86vw, 320px);
        max-width: 320px;
        height: 100vh;
        border-left: 1px solid var(--border);
        border-bottom: 0;
    }

    .sidebar-floating-toggle {
        right: min(calc(86vw - 54px), 266px);
    }

    body.sidebar-collapsed .sidebar-floating-toggle {
        right: 18px;
    }

    .content {
        padding: 20px;
        padding-top: 76px;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    body:not(.sidebar-collapsed) .content {
        filter: blur(1px);
    }
}

@media (max-width: 680px) {
    .stats-grid,
    .summary-grid,
    .form-grid,
    .two-column,
    .quick-grid {
        grid-template-columns: 1fr;
    }

    .invoice-header,
    .public-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .invoice-meta {
        text-align: right;
        direction: rtl;
    }

    .print-header,
    .print-client,
    .print-totals {
        grid-template-columns: 1fr;
    }

    .print-meta {
        text-align: right;
    }

    .print-company,
    .print-company h1,
    .print-company p,
    .public-white .invoice-brand,
    .public-white .invoice-brand h1,
    .public-white .invoice-brand .muted-small {
        text-align: left;
        justify-self: start;
        justify-items: left;
    }

    .public-white .invoice-header {
        grid-template-columns: 1fr;
    }

    .public-white .invoice-meta {
        grid-column: 1;
        justify-self: start;
    }

    .auth-wrap {
        padding: 16px;
    }

    .auth-visual,
    .auth-form,
    .invoice-body,
    .invoice-header {
        padding: 22px;
    }

    th,
    td {
        padding: 12px 10px;
    }
}

@media print {
    body {
        background: #fff;
        color: #111;
    }

    .no-print,
    .sidebar,
    .topbar-actions,
    .public-header,
    .btn {
        display: none !important;
    }

    .invoice-sheet,
    .card,
    .table-card {
        box-shadow: none;
        background: #fff;
        border-color: #ddd;
    }

    .invoice-shell {
        padding: 0;
    }

    .invoice-body,
    .invoice-header {
        color: #111;
        background: #fff !important;
    }

    .print-page {
        padding: 0;
        background: #fff;
    }

    .print-sheet {
        width: 100%;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 18mm;
    }

    .print-header,
    .print-client,
    .print-totals {
        page-break-inside: avoid;
    }
}
