@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@600;700&display=swap');

:root {
    --rdd-blue: #17306b;
    --rdd-blue-deep: #0b1840;
    --rdd-orange: #ef7d22;
    --rdd-orange-soft: #fff1e3;
    --rdd-rose: #d94f8d;
    --rdd-rose-soft: #fff0f7;
    --rdd-cream: #f7f1e8;
    --rdd-surface: rgba(255, 255, 255, 0.9);
    --rdd-border: rgba(23, 48, 107, 0.12);
    --rdd-border-strong: rgba(23, 48, 107, 0.22);
    --rdd-text: #1c2740;
    --rdd-muted: #61708c;
    --rdd-success: #2a7a4b;
    --rdd-danger: #b63f49;
    --rdd-shadow: 0 18px 48px rgba(17, 28, 61, 0.12);
    --rdd-shadow-soft: 0 10px 30px rgba(17, 28, 61, 0.08);
    --rdd-radius-lg: 26px;
    --rdd-radius-md: 18px;
    --rdd-radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--rdd-text);
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(239, 125, 34, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(217, 79, 141, 0.14), transparent 26%),
        linear-gradient(180deg, #fbf8f3 0%, #f4f7fb 48%, #edf2f9 100%);
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--rdd-blue-deep);
    font-family: 'Sora', 'Manrope', sans-serif;
    letter-spacing: -0.02em;
}

a {
    color: var(--rdd-blue);
    transition: color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

a:hover {
    color: var(--rdd-rose);
}

.container,
.dashboard-card,
.document-box,
.login-box,
.signup-box,
.form-container,
.content-body .card,
.admin-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.92));
    border: 1px solid var(--rdd-border);
    border-radius: var(--rdd-radius-lg);
    box-shadow: var(--rdd-shadow);
    backdrop-filter: blur(8px);
    overflow: hidden;
}

.container {
    width: min(1180px, calc(100% - 32px)) !important;
    max-width: 1180px;
    margin: 24px auto !important;
    padding: 28px !important;
}

.rdd-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 18px 28px;
    background: rgba(11, 24, 64, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 30px rgba(11, 24, 64, 0.24);
}

.rdd-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rdd-brand a {
    color: #ffffff;
    text-decoration: none;
    font-family: 'Sora', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.rdd-brand span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.88rem;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn,
button,
input[type="submit"],
input[type="button"],
.logout,
.logout-btn,
.btn-login,
.btn-signin,
.btn-signup,
.btn-draft,
.btn-start,
.btn-logout,
.service-link,
.dataTables_wrapper .paginate_button {
    border-radius: 999px !important;
    border: 0;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.logout:hover,
.logout-btn:hover,
.btn-login:hover,
.btn-signin:hover,
.btn-signup:hover,
.btn-draft:hover,
.btn-start:hover,
.btn-logout:hover,
.service-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(23, 48, 107, 0.14);
}

button,
input[type="submit"],
input[type="button"],
.btn-login,
.btn-signin,
.btn-signup,
.btn-draft,
.btn-start,
.btn-logout,
.logout,
.logout-btn {
    padding: 12px 20px;
}

.btn-draft,
.btn-primary,
.btn-signin,
.btn-signup {
    background: linear-gradient(135deg, var(--rdd-blue) 0%, #264da2 100%) !important;
    color: #ffffff !important;
}

.btn-start,
input[name="next"],
input[name="submit"],
input[name="submitSeller"],
input[name="submitApproval"],
input[name="submitProperty"],
input[name="submitWitness"],
input[name="submitBank"],
input[name="submitPropertyHistory"] {
    background: linear-gradient(135deg, var(--rdd-orange) 0%, #f39f46 100%) !important;
    color: #ffffff !important;
}

.btn-warning,
input[name="complete"],
input[name="completeDraft"] {
    background: linear-gradient(135deg, #f3aa2a 0%, #f27a22 100%) !important;
    color: #ffffff !important;
}

.btn-logout,
.logout,
.logout-btn,
.btn-danger {
    background: linear-gradient(135deg, #cf475c 0%, #a92d42 100%) !important;
    color: #ffffff !important;
}

input[name="next"],
input[name="complete"],
input[name="submit"],
input[name="submitSeller"],
input[name="submitApproval"],
input[name="submitProperty"],
input[name="submitWitness"],
input[name="submitBank"],
input[name="submitPropertyHistory"] {
    width: clamp(180px, 20%, 260px) !important;
    min-height: 46px;
}

input[name="completeDraft"] {
    width: 100% !important;
    min-height: 62px;
}

label,
.form-label,
.input-box label {
    color: var(--rdd-blue-deep);
    font-weight: 700 !important;
    margin-bottom: 8px;
}

input[type="text"],
input[type="number"],
input[type="password"],
input[type="date"],
select,
textarea,
.form-control,
.form-select {
    width: 100%;
    border: 1px solid rgba(23, 48, 107, 0.15) !important;
    border-radius: 4px !important;
    background: rgba(255, 255, 255, 0.94) !important;
    color: var(--rdd-text);
    min-height: 44px;
    padding: 10px 12px !important;
    font-size: 1rem;
    line-height: 1.4;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus,
.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: rgba(239, 125, 34, 0.6) !important;
    box-shadow: 0 0 0 4px rgba(239, 125, 34, 0.12) !important;
}

textarea {
    min-height: 120px;
    resize: both;
    overflow: auto;
}

table {
    width: 100%;
    border-collapse: separate !important;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--rdd-shadow-soft);
}

/* Option A (structured) / Option B (plain text) entry sections used on pages with a dual-entry form */
.option-section {
    padding: 6px 0;
}

.option-divider {
    border: none;
    border-top: 2px dashed rgba(23, 48, 107, 0.25);
    margin: 22px 0;
}

.option-b-textarea {
    width: 100%;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    font-family: 'DVOT Surekh', sans-serif;
    font-size: 1.3rem;
    line-height: 1.7;
}

table th,
table td {
    border: 0 !important;
    border-bottom: 1px solid rgba(23, 48, 107, 0.08) !important;
    padding: 14px 12px !important;
    vertical-align: middle;
}

table th,
table.dataTable thead th,
table.dataTable thead td {
    background: linear-gradient(135deg, var(--rdd-blue-deep) 0%, var(--rdd-blue) 100%) !important;
    color: #ffffff !important;
    text-align: center;
    font-size: 0.95rem;
}

table tbody tr:nth-child(even) {
    background: rgba(247, 241, 232, 0.38);
}

table tbody tr:hover {
    background: rgba(239, 125, 34, 0.08);
}

.row-incomplete {
    background: rgba(207, 71, 92, 0.1) !important;
}

.breadcrumb {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    list-style: none;
    padding: 14px;
    margin: 0 0 24px;
    border-radius: 20px;
    background: rgba(23, 48, 107, 0.06);
    border: 1px solid rgba(23, 48, 107, 0.08);
}

.breadcrumb li {
    padding: 0;
    cursor: default;
}

.breadcrumb li a {
    display: block;
    padding: 12px 16px;
    border-radius: 999px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.76);
    color: var(--rdd-blue);
    font-weight: 700;
}

.breadcrumb li.active a,
.breadcrumb li.active {
    background: transparent;
    color: inherit;
}

.breadcrumb li.active a {
    background: linear-gradient(135deg, var(--rdd-orange) 0%, #f3aa2a 100%);
    color: #ffffff;
    box-shadow: 0 10px 18px rgba(239, 125, 34, 0.22);
}

.navigation {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.left-panel,
.sidebar {
    background:
        linear-gradient(180deg, rgba(11, 24, 64, 0.96) 0%, rgba(23, 48, 107, 0.96) 46%, rgba(217, 79, 141, 0.88) 100%) !important;
    color: #ffffff;
    box-shadow: 18px 0 42px rgba(11, 24, 64, 0.16);
}

.left-panel img,
.sidebar img {
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.22));
}

.left-panel p,
.sidebar p,
.sidebar h4,
.sidebar-header {
    color: #ffffff !important;
}

.right-panel,
.main-wrapper,
.main-content,
.content-body {
    background: transparent !important;
}

.right-panel {
    width: min(100%, calc(100vw - 220px));
}

.left-panel form {
    width: 100%;
}

.left-panel form button,
.left-panel .btn-draft,
.left-panel .btn-start {
    width: 100%;
}

.dataTables_wrapper,
.table-responsive-shell {
    width: 100%;
    overflow-x: auto;
}

.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    margin-top: 12px;
}

.login-box,
.signup-box {
    width: min(440px, calc(100% - 28px)) !important;
    padding: 36px !important;
    text-align: left !important;
}

.login-box h2,
.signup-box h2 {
    margin-bottom: 24px;
    text-align: center;
}

.btn-login {
    display: block;
    width: fit-content;
    margin: 0 auto 22px;
    background: linear-gradient(135deg, var(--rdd-orange) 0%, #f3aa2a 100%) !important;
    color: #ffffff !important;
}

.extra-links {
    margin-top: 18px !important;
    text-align: center;
    color: var(--rdd-muted);
}

.error-banner,
.error-message,
.alert {
    border-radius: 16px !important;
    padding: 14px 16px !important;
}

.dashboard-card {
    padding: 28px !important;
}

.dashboard-header {
    margin-bottom: 24px !important;
}

.filter-box {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(23, 48, 107, 0.05);
}

.document-box {
    padding: 28px !important;
    margin-bottom: 28px;
}

.document-box h2 {
    margin-bottom: 20px;
}

.custom-banner {
    background: linear-gradient(135deg, var(--rdd-orange) 0%, #f3aa2a 100%) !important;
    box-shadow: 0 18px 30px rgba(239, 125, 34, 0.2);
}

.service-link {
    padding: 18px 14px !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 253, 0.94)) !important;
    border: 1px solid var(--rdd-border) !important;
    border-radius: 18px !important;
    box-shadow: var(--rdd-shadow-soft);
}

.service-link:hover {
    background: linear-gradient(135deg, var(--rdd-orange) 0%, #f09b40 100%) !important;
    color: #ffffff !important;
}

.stat-card {
    border-radius: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff;
    box-shadow: none !important;
}

.stat-card h5,
.stat-card p {
    color: #ffffff !important;
}

.benefit-item {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(247, 241, 232, 0.62);
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border-radius: 999px !important;
    padding: 8px 14px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: linear-gradient(135deg, var(--rdd-blue) 0%, #264da2 100%) !important;
    color: #ffffff !important;
    border: 0 !important;
}

.topbar,
.top-bar {
    background: rgba(11, 24, 64, 0.92) !important;
    color: #ffffff;
    box-shadow: 0 14px 32px rgba(11, 24, 64, 0.12);
}

.topbar a,
.top-bar a {
    color: #ffffff;
}

.form-footer {
    border-radius: 24px;
    box-shadow: var(--rdd-shadow-soft);
}

.link-container .link {
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--rdd-shadow-soft);
}

@media (max-width: 991px) {
    body {
        flex-direction: column !important;
        height: auto !important;
    }

    .rdd-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px 18px;
    }

    .container {
        width: min(100%, calc(100% - 20px)) !important;
        padding: 20px !important;
    }

    .user-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .user-actions .btn,
    .user-actions a {
        width: auto;
    }

    .left-panel,
    .sidebar {
        width: 100% !important;
        min-height: auto !important;
        height: auto !important;
        position: relative !important;
    }

    .app-wrapper {
        display: flex !important;
        flex-direction: column !important;
        min-height: auto !important;
    }

    .left-panel {
        padding: 24px 18px !important;
        gap: 10px;
    }

    .main-wrapper,
    .main-content {
        margin-left: 0 !important;
    }

    .right-panel,
    body {
        min-height: auto;
    }

    .right-panel {
        width: 100%;
        padding: 16px !important;
    }

    .dashboard-header,
    .filter-box,
    .topbar,
    .top-bar,
    .form-footer {
        flex-direction: column;
        align-items: stretch !important;
        gap: 14px;
    }

    .filter-box {
        justify-content: flex-start !important;
        width: 100%;
    }

    .filter-box .form-select,
    .filter-box select {
        width: 100% !important;
    }

    .login-box,
    .signup-box {
        padding: 28px !important;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    table td,
    table th {
        min-width: 140px;
    }

    .dataTables_wrapper table td,
    .dataTables_wrapper table th {
        min-width: 120px;
    }

    #documentsTable td,
    #documentsTable th {
        min-width: 160px;
    }

    .row > .col,
    .row > [class*="col-"] {
        margin-bottom: 12px;
    }

    .document-box,
    .dashboard-card,
    .content-body .card {
        padding: 20px !important;
    }
}

@media (max-width: 767px) {
    body {
        padding: 0;
        flex-direction: column !important;
        height: auto !important;
    }

    .left-panel,
    .right-panel {
        width: 100% !important;
    }

    .left-panel {
        min-height: auto !important;
    }

    .sidebar {
        width: 100% !important;
        height: auto !important;
        position: relative !important;
    }

    .app-wrapper {
        display: flex !important;
        flex-direction: column !important;
        min-height: auto !important;
    }

    .left-panel p {
        text-align: center;
    }

    .rdd-header {
        padding: 14px 14px;
    }

    .rdd-brand a {
        font-size: 1rem;
    }

    .rdd-brand span {
        font-size: 0.8rem;
    }

    .user-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .user-actions a,
    .user-actions .btn {
        width: 100%;
        text-align: center;
    }

    .container,
    .document-box,
    .dashboard-card,
    .form-container,
    .login-box,
    .signup-box {
        border-radius: 20px !important;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    table td,
    table th {
        min-width: 150px;
    }

    input[name="next"],
    input[name="complete"],
    input[name="submit"],
    input[name="submitSeller"],
    input[name="submitApproval"],
    input[name="submitProperty"],
    input[name="submitWitness"],
    input[name="submitBank"],
    input[name="submitPropertyHistory"] {
        width: 100% !important;
    }

    .navigation {
        flex-direction: column;
    }

    .breadcrumb {
        padding: 10px;
    }

    .breadcrumb li,
    .breadcrumb li a {
        width: 100%;
    }

    .login-box,
    .signup-box {
        width: min(100%, calc(100% - 18px)) !important;
        padding: 22px !important;
    }
}

/* Shared layout safeguards for pages that still contain legacy inline styles. */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

img,
video,
iframe {
    max-width: 100%;
}

.container {
    width: calc(100% - 32px) !important;
    max-width: 1400px !important;
}

.multi-data-page .container {
    width: min(1400px, calc(100% - 32px)) !important;
}

.multi-data-page .container + .container {
    margin-top: 16px !important;
}

.multi-data-page .navigation input[type="submit"] {
    width: auto !important;
    min-width: 150px;
}

.property-history {
    width: 100%;
}

.property-history .property-history-entry {
    width: 100%;
    min-height: 150px;
    font-size: 1rem;
    line-height: 1.55;
}

.property-history .property-history-table {
    overflow-x: auto;
    margin-bottom: 20px;
}

.property-history .property-history-table table {
    min-width: 720px;
}

.draft-sharing-panel {
    margin-top: 24px;
    padding: 18px;
    border: 1px solid var(--rdd-border);
    border-radius: 6px;
    background: rgba(247, 241, 232, 0.55);
}

.draft-editor-page {
    max-width: 1180px !important;
}

.text-ulekh-block {
    margin: 0 !important;
    padding: 0 !important;
    white-space: pre-wrap;
    line-height: 1.7;
}

.seller-details-block,
.seller-details-table {
    margin: 0 !important;
    padding: 0 !important;
}

.seller-details-table td {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.draft-editor-page .success-banner {
    margin-bottom: 20px;
    padding: 13px 16px;
    border: 1px solid rgba(42, 122, 75, 0.2);
    border-radius: 6px;
    background: rgba(42, 122, 75, 0.1);
    color: var(--rdd-success);
    font-weight: 800;
}

.draft-editor-heading,
.document-library-heading,
.section-heading,
.draft-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.draft-editor-heading {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--rdd-border);
}

.draft-editor-heading h1,
.document-library-heading h2 {
    margin: 4px 0 8px;
}

.draft-editor-heading p:not(.eyebrow),
.document-library-note,
.draft-form-actions p {
    margin: 0;
    color: var(--rdd-muted);
}

.eyebrow {
    margin: 0;
    color: var(--rdd-orange);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.draft-status,
.document-library-note,
.section-heading > span {
    padding: 7px 11px;
    border: 1px solid rgba(239, 125, 34, 0.25);
    border-radius: 999px;
    background: var(--rdd-orange-soft);
    color: #a95112;
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.draft-form-section {
    margin-top: 26px;
    padding: 22px;
    border: 1px solid var(--rdd-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.65);
}

.section-heading {
    margin-bottom: 18px;
}

.section-heading h2 {
    margin: 0;
    font-size: 1.15rem;
}

.draft-meta-grid,
.draft-text-grid {
    display: grid;
    gap: 18px;
}

.draft-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.draft-text-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.draft-text-field-wide {
    grid-column: 1 / -1;
}

.draft-field label {
    display: block;
    margin-bottom: 7px;
    color: var(--rdd-blue-deep);
    font-size: 0.88rem;
    font-weight: 800 !important;
}

.draft-field textarea {
    min-height: 150px;
    resize: both;
    max-width: 100%;
    overflow: auto;
    line-height: 1.55;
}

.draft-form-actions {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--rdd-border);
}

.draft-form-actions input[type="submit"] {
    width: auto !important;
    min-width: 150px;
    min-height: 46px;
}

.document-library {
    width: min(1180px, calc(100% - 32px));
    margin: 24px auto;
    padding: 28px;
    border: 1px solid var(--rdd-border);
    border-radius: var(--rdd-radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.92));
    box-shadow: var(--rdd-shadow);
}

.document-table-shell {
    margin-top: 22px;
    overflow-x: auto;
}

.document-library-table {
    min-width: 720px;
}

.document-library-table th,
.document-library-table td {
    text-align: left;
}

.document-library-table th:nth-child(1) {
    width: 18%;
}

.document-library-table th:nth-child(2) {
    width: 25%;
}

.document-library-table th:nth-child(3) {
    width: 37%;
}

.document-block-preview {
    max-width: 420px;
    color: var(--rdd-muted);
    font-size: 0.86rem;
}

.document-block-preview span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.document-actions {
    white-space: nowrap;
}

.document-actions .btn,
.document-delete-link {
    display: inline-block;
    margin: 3px 5px 3px 0;
    padding: 8px 11px;
    font-size: 0.78rem;
    text-decoration: none;
}

.document-share-cell {
    min-width: 220px;
    vertical-align: top !important;
}

.share-summary {
    display: inline-block;
    padding: 8px 11px;
    border-radius: 4px;
    background: var(--rdd-orange-soft);
    color: #a95112;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 800;
}

.saved-draft-share-form {
    display: grid;
    gap: 8px;
    min-width: 205px;
    margin-top: 10px;
    padding: 12px;
    border: 1px solid var(--rdd-border);
    border-radius: 6px;
    background: #ffffff;
    white-space: normal;
}

.saved-draft-share-form label {
    margin: 0;
    font-size: 0.78rem;
}

.saved-draft-share-form select {
    min-height: 38px;
    padding: 7px 9px !important;
    font-size: 0.82rem;
}

.share-user-option {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-weight: 600 !important;
    line-height: 1.3;
}

.share-user-option input[type="checkbox"] {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin-top: 1px;
    accent-color: var(--rdd-orange);
}

.saved-draft-share-form button {
    width: 100%;
    padding: 9px 10px;
    font-size: 0.78rem;
}

.document-delete-link {
    color: var(--rdd-danger);
}

.shared-draft-badge {
    display: inline-block;
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--rdd-rose-soft);
    color: var(--rdd-rose);
    font-size: 0.78rem;
    font-weight: 800;
}

.empty-document-state {
    padding: 34px !important;
    color: var(--rdd-muted);
    text-align: center !important;
}

.draft-sharing-panel p {
    color: var(--rdd-muted);
}

.shared-users-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px 16px;
    margin-top: 14px;
}

.shared-users-list label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-weight: 600 !important;
}

.shared-users-list input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--rdd-orange);
}

@media (max-width: 767px) {
    body {
        height: auto !important;
        min-height: 100vh;
    }

    .container,
    .multi-data-page .container {
        width: calc(100% - 20px) !important;
        max-width: none !important;
        margin: 12px auto !important;
        padding: 16px !important;
    }

    .multi-data-page .container {
        overflow: visible;
    }

    .multi-data-page .navigation input[type="submit"] {
        width: 100% !important;
    }

    input,
    select,
    textarea,
    button {
        max-width: 100%;
    }

    .property-history h2,
    .property-history h3 {
        float: none !important;
        line-height: 1.3;
    }

    .property-history .property-history-table {
        margin-right: -4px;
        margin-left: -4px;
    }

    .draft-editor-heading,
    .document-library-heading,
    .draft-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .draft-form-section,
    .document-library {
        padding: 16px;
    }

    .draft-meta-grid,
    .draft-text-grid {
        grid-template-columns: 1fr;
    }

    .draft-status,
    .document-library-note {
        align-self: flex-start;
    }

    .draft-form-actions input[type="submit"] {
        width: 100% !important;
    }
}
