/**
 * Deal Room Document - LandLens Design Language
 * Matches verify-my-land-history styling with full-width layout
 */

/* ============================================
   Initial Hidden State for GSAP Animations
   ============================================ */
.ll-verify-page .ll-tracker-hero,
.ll-verify-page .ll-credits-info-bar,
.ll-verify-page .ll-section-divider,
.ll-verify-page .dr-doc-preview-card,
.ll-verify-page .dr-editor-card,
.ll-verify-page .dr-doc-panel,
.ll-verify-page .ll-empty-state {
    opacity: 0;
    visibility: hidden;
}

/* ============================================
   Back Link Override
   ============================================ */
.ll-verify-page .ll-back-link,
.ll-tracker-hero .ll-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.8) !important;
    text-decoration: none;
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
    background: transparent !important;
    border: none !important;
}

.ll-verify-page .ll-back-link:hover,
.ll-tracker-hero .ll-back-link:hover {
    color: white !important;
    text-decoration: underline;
    text-underline-offset: 3px;
    background: transparent !important;
    transform: none;
    box-shadow: none;
}

.ll-verify-page .ll-back-link svg,
.ll-tracker-hero .ll-back-link svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   Document Status Badge
   ============================================ */
.dr-doc-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.dr-doc-status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dr-doc-status-badge.drafting {
    background-color: #fff7ed;
    color: #c2410c;
}
.dr-doc-status-badge.drafting::before {
    background-color: #f97316;
}

.dr-doc-status-badge.review {
    background-color: #fef3c7;
    color: #92400e;
}
.dr-doc-status-badge.review::before {
    background-color: #f59e0b;
}

.dr-doc-status-badge.approved {
    background-color: #ecfdf5;
    color: #065f46;
}
.dr-doc-status-badge.approved::before {
    background-color: #10b981;
}

.dr-doc-status-badge.signing {
    background-color: #ede9fe;
    color: #5b21b6;
}
.dr-doc-status-badge.signing::before {
    background-color: #8b5cf6;
}

.dr-doc-status-badge.signed {
    background-color: #ecfdf5;
    color: #065f46;
}
.dr-doc-status-badge.signed::before {
    background-color: #10b981;
}

.dr-doc-status-badge.cancelled {
    background-color: #fef2f2;
    color: #991b1b;
}
.dr-doc-status-badge.cancelled::before {
    background-color: #ef4444;
}

.dr-doc-meta-text {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.875rem;
    color: rgba(26, 26, 28, 0.5);
}

/* ============================================
   Action Bar Button Styles
   ============================================ */
.ll-history-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: var(--color-secondary, #1a1a1c);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--color-stroke-2, #e5e5e5);
    transition: all 0.3s ease;
    cursor: pointer;
}

.ll-history-btn:hover {
    background: var(--color-background-2, #fafafa);
    border-color: rgba(255, 103, 37, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.ll-history-btn svg {
    width: 18px;
    height: 18px;
}

.ll-add-credits-btn.dr-btn-purple,
.ll-add-credits-btn.dr-btn-orange {
    background: linear-gradient(135deg, #ff6725 0%, #ff8c42 100%);
}

.ll-add-credits-btn.dr-btn-purple:hover,
.ll-add-credits-btn.dr-btn-orange:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 103, 37, 0.4);
}

/* Base button - override styles from other CSS */
.ll-verify-page .ll-add-credits-btn,
.dr-modal-overlay .ll-add-credits-btn {
    background: linear-gradient(135deg, #ff6725 0%, #ff8c42 100%);
    color: white;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ll-verify-page .ll-add-credits-btn:hover,
.dr-modal-overlay .ll-add-credits-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 103, 37, 0.4);
}

/* ============================================
   Document Layout - Full Width
   ============================================ */
.dr-doc-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.5rem;
}

.dr-doc-main {
    min-width: 0;
}

.dr-doc-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ============================================
   Document Preview Card
   ============================================ */
.dr-doc-preview-card {
    background: var(--color-background-3, #fcfcfc);
    border: 1px solid var(--color-stroke-2, #e5e5e5);
    border-radius: 20px;
    overflow: hidden;
}

.dr-doc-content {
    padding: 2rem;
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--color-secondary, #1a1a1c);
}

.dr-doc-content h1,
.dr-doc-content h2,
.dr-doc-content h3,
.dr-doc-content h4 {
    font-family: 'Inter Tight', sans-serif;
    font-weight: 600;
    color: var(--color-secondary, #1a1a1c);
    margin: 1.5rem 0 0.75rem;
}

.dr-doc-content h1 { font-size: 1.5rem; }
.dr-doc-content h2 { font-size: 1.25rem; }
.dr-doc-content h3 { font-size: 1.125rem; }
.dr-doc-content h4 { font-size: 1rem; }

.dr-doc-content p {
    margin-bottom: 1rem;
}

.dr-doc-content ul,
.dr-doc-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.dr-doc-content li {
    margin-bottom: 0.5rem;
}

/* ============================================
   Editor Card
   ============================================ */
.dr-editor-card {
    background: var(--color-background-3, #fcfcfc);
    border: 1px solid var(--color-stroke-2, #e5e5e5);
    border-radius: 20px;
    overflow: hidden;
}

.dr-editor-card .ql-toolbar {
    border: none;
    border-bottom: 1px solid var(--color-stroke-2, #e5e5e5);
    background: var(--color-background-2, #fafafa);
    padding: 1rem;
    font-family: 'Inter Tight', sans-serif;
}

.dr-editor-card .ql-container {
    border: none;
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.9375rem;
}

.dr-editor-card .ql-editor {
    min-height: 500px;
    padding: 2rem;
    line-height: 1.7;
}

.dr-editor-card .ql-editor.ql-blank::before {
    font-style: normal;
    color: rgba(26, 26, 28, 0.35);
}

/* Quill Editor Customization */
#documentEditor {
    min-height: 450px;
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--color-secondary, #1a1a1c);
}

.ql-toolbar.ql-snow {
    border: none !important;
    border-bottom: 1px solid var(--color-stroke-2, #e5e5e5) !important;
    background: var(--color-background-2, #fafafa);
    padding: 0.875rem 1rem !important;
    font-family: 'Inter Tight', sans-serif;
}

.ql-toolbar.ql-snow .ql-picker-label,
.ql-toolbar.ql-snow button {
    color: rgba(26, 26, 28, 0.5);
}

.ql-toolbar.ql-snow button:hover,
.ql-toolbar.ql-snow button.ql-active,
.ql-toolbar.ql-snow .ql-picker-label:hover,
.ql-toolbar.ql-snow .ql-picker-label.ql-active {
    color: var(--color-primary-500, #ff6725);
}

.ql-container.ql-snow {
    border: none !important;
    font-family: inherit;
}

.ql-editor {
    padding: 2rem !important;
    min-height: 400px;
}

.ql-editor.ql-blank::before {
    font-style: normal;
    color: rgba(26, 26, 28, 0.35);
    left: 2rem;
    right: 2rem;
}

.ql-editor h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-secondary, #1a1a1c);
    font-family: 'Inter Tight', sans-serif;
}

.ql-editor h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-secondary, #1a1a1c);
    font-family: 'Inter Tight', sans-serif;
}

.ql-editor p {
    margin-bottom: 1rem;
}

.ql-editor blockquote {
border: 0;
padding: 0.75rem 1rem;
background: rgba(26, 26, 28, 0.035);
border-radius: 8px;
    margin: 1rem 0;
    color: rgba(26, 26, 28, 0.7);
    font-style: italic;
}

/* ============================================
   Sidebar Panels
   ============================================ */
.dr-doc-panel {
    background: var(--color-background-3, #fcfcfc);
    border: 1px solid var(--color-stroke-2, #e5e5e5);
    border-radius: 20px;
    overflow: hidden;
}

.dr-panel-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-stroke-2, #f3f4f6);
    background: var(--color-background-2, #fafafa);
}

.dr-panel-header svg {
    width: 18px;
    height: 18px;
    color: #ff6725;
    flex-shrink: 0;
}

.dr-panel-header h3 {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-secondary, #1a1a1c);
    margin: 0;
}

.dr-panel-content {
    padding: 1rem 1.25rem;
}

/* ============================================
   Approval List
   ============================================ */
.dr-approval-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dr-approval-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--color-background-2, #fafafa);
    border-radius: 12px;
}

.dr-approval-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6725 0%, #ff8952 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    flex-shrink: 0;
}

.dr-approval-info {
    flex: 1;
    min-width: 0;
}

.dr-approval-name {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-secondary, #1a1a1c);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dr-approval-role {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.75rem;
    color: rgba(26, 26, 28, 0.5);
}

.dr-approval-status {
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.dr-approval-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.dr-approval-status.approved {
    background: #ecfdf5;
    color: #065f46;
}

.dr-approval-status.rejected {
    background: #fef2f2;
    color: #991b1b;
}

/* ============================================
   Version History
   ============================================ */
.dr-version-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 300px;
    overflow-y: auto;
    margin-right: -1rem;
    padding-right: 1rem;
}

/* Custom scrollbar for version list */
.dr-version-list::-webkit-scrollbar {
    width: 6px;
}

.dr-version-list::-webkit-scrollbar-track {
    background: transparent;
}

.dr-version-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
}

.dr-version-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

.dr-version-item {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--color-background-2, #fafafa);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.dr-version-item.current {
    background: rgba(255, 103, 37, 0.06);
}

.dr-version-badge {
    padding: 0.25rem 0.5rem;
    background: white;
    border: 1px solid var(--color-stroke-2, #e5e5e5);
    border-radius: 6px;
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-secondary, #1a1a1c);
}

.dr-version-item.current .dr-version-badge {
    background: #ff6725;
    border-color: #ff6725;
    color: white;
}

.dr-version-info {
    flex: 1;
    min-width: 0;
}

.dr-version-author {
    display: block;
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-secondary, #1a1a1c);
}

.dr-version-time {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.75rem;
    color: rgba(26, 26, 28, 0.5);
}

.dr-version-summary {
    width: 100%;
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.75rem;
    color: rgba(26, 26, 28, 0.6);
    font-style: italic;
    padding-top: 0.25rem;
}

/* ============================================
   Document Info
   ============================================ */
.dr-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--color-stroke-2, #f3f4f6);
}

.dr-info-row:last-child {
    border-bottom: none;
}

.dr-info-label {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.8125rem;
    color: rgba(26, 26, 28, 0.5);
}

.dr-info-value {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-secondary, #1a1a1c);
}

/* ============================================
   Tips Panel
   ============================================ */
.dr-panel-tips {
    background: rgba(255, 103, 37, 0.04);
    border-color: rgba(255, 103, 37, 0.15);
}

.dr-tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dr-tips-list li {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.8125rem;
    color: rgba(26, 26, 28, 0.7);
    padding: 0.5rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.dr-tips-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.875rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ff6725;
}

.dr-tips-list li strong {
    color: var(--color-secondary, #1a1a1c);
    font-weight: 600;
}

/* ============================================
   Empty State
   ============================================ */
.dr-doc-preview-card .ll-empty-state {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    background: transparent;
    border: none;
    border-radius: 0;
    opacity: 1;
    visibility: visible;
}

.dr-doc-preview-card .ll-empty-icon {
    position: relative;
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(255, 103, 37, 0.15), rgba(255, 103, 37, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 8px rgba(255, 103, 37, 0.05);
}

.dr-doc-preview-card .ll-empty-icon svg {
    width: 2.25rem;
    height: 2.25rem;
    color: #ff6725;
}

.dr-doc-preview-card .ll-empty-state h3 {
    font-family: 'Inter Tight', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-secondary, #1a1a1c);
    margin: 0 0 0.5rem;
    text-align: center;
}

.dr-doc-preview-card .ll-empty-state p {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.875rem;
    color: rgba(26, 26, 28, 0.5);
    margin: 0 auto 1.5rem;
    text-align: center;
    max-width: 320px;
}

.dr-doc-preview-card .ll-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--color-primary-500, #ff6725);
    color: white;
    border-radius: 9999px;
    font-family: 'Inter Tight', sans-serif;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dr-doc-preview-card .ll-empty-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 103, 37, 0.3);
    color: white !important;
}

.dr-doc-preview-card .ll-empty-btn svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   Empty Text
   ============================================ */
.dr-empty-text {
    text-align: center;
    font-family: 'Inter Tight', sans-serif;
    color: rgba(26, 26, 28, 0.5);
    font-size: 0.875rem;
    padding: 1rem 0;
    margin: 0;
}

/* ============================================
   Save Status
   ============================================ */
.dr-save-status {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
}

.dr-save-status svg {
    width: 14px;
    height: 14px;
}

.dr-save-status.saved {
    color: #10b981;
}

.dr-save-status.saving {
    color: #f59e0b;
}

.dr-save-status.unsaved {
    color: #f59e0b;
}

/* ============================================
   Modal Styles
   ============================================ */
.dr-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000; /* Higher than sidebar (9999) */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.dr-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.dr-modal-content {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    max-height: min(600px, calc(100vh - 6rem));
    margin: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.dr-modal-overlay.active .dr-modal-content {
    transform: translateY(0);
}

.dr-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-stroke-2, #e5e5e5);
    flex-shrink: 0;
}

.dr-modal-header h3 {
    font-family: 'Inter Tight', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-secondary, #1a1a1c);
    margin: 0;
}

.dr-modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: rgba(26, 26, 28, 0.4);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dr-modal-close:hover {
    background: var(--color-background-2, #fafafa);
    color: var(--color-secondary, #1a1a1c);
}

.dr-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

/* Confirmation Modal Styles */
.dr-confirm-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(255, 103, 37, 0.15), rgba(255, 103, 37, 0.08));
}

.dr-confirm-icon svg {
    color: #ff6725;
}

.dr-confirm-icon-success {
    background: linear-gradient(145deg, rgba(255, 103, 37, 0.15), rgba(255, 103, 37, 0.08));
}

.dr-confirm-icon-success svg {
    color: #ff6725;
}

.dr-confirm-icon-error {
    background: linear-gradient(145deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.08));
}

.dr-confirm-icon-error svg {
    color: #ef4444;
}

.dr-confirm-text {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.9375rem;
    color: var(--color-secondary, #1a1a1c);
    text-align: center;
    margin: 0 0 0.5rem;
    line-height: 1.6;
}

.dr-confirm-subtext {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.8125rem;
    color: rgba(26, 26, 28, 0.5);
    text-align: center;
    margin: 0;
}

/* Success Button Override */
.ll-add-credits-btn.dr-btn-success {
    background: linear-gradient(135deg, #ff6725 0%, #ff8c42 100%);
}

.ll-add-credits-btn.dr-btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 103, 37, 0.4);
}

.dr-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--color-stroke-2, #e5e5e5);
    background: var(--color-background-2, #fafafa);
    border-radius: 0 0 20px 20px;
    flex-shrink: 0;
}

/* ============================================
   Form Controls
   ============================================ */
.dr-form-group {
    margin-bottom: 1rem;
}

.dr-form-group:last-child {
    margin-bottom: 0;
}

.dr-form-group label {
    display: block;
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-secondary, #1a1a1c);
    margin-bottom: 0.5rem;
}

.dr-form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.9375rem;
    color: var(--color-secondary, #1a1a1c);
    background: white;
    border: 1px solid var(--color-stroke-2, #e5e5e5);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.dr-form-control:focus {
    outline: none;
    border-color: #ff6725;
    box-shadow: 0 0 0 3px rgba(255, 103, 37, 0.1);
}

.dr-form-control::placeholder {
    color: rgba(26, 26, 28, 0.35);
}

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

/* ============================================
   Section Divider Override
   ============================================ */
.ll-verify-page .ll-section-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ll-verify-page .ll-section-divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(26, 26, 28, 0.08), transparent);
}

.ll-verify-page .ll-section-divider-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 103, 37, 0.06);
    border-radius: 9999px;
    color: #ff6725;
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.ll-verify-page .ll-section-divider-label svg {
    width: 1rem;
    height: 1rem;
}

/* ============================================
   Fullscreen Editor
   ============================================ */
.dr-editor-toolbar-actions {
    display: flex;
    justify-content: flex-end;
    padding: 0.75rem 1rem;
    background: var(--color-background-2, #fafafa);
    border-bottom: 1px solid var(--color-stroke-2, #e5e5e5);
}

.dr-fullscreen-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    color: var(--color-secondary, #1a1a1c);
    border: 1px solid var(--color-stroke-2, #e5e5e5);
    border-radius: 9999px;
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: var(--ll-cur-pointer, pointer);
    transition: all 0.25s ease;
}

.dr-fullscreen-btn:hover {
    background: var(--color-background-2, #fafafa);
    border-color: rgba(255, 103, 37, 0.3);
    color: #ff6725;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.dr-fullscreen-btn svg {
    width: 16px;
    height: 16px;
}

.dr-fullscreen-btn .fullscreen-text {
    font-size: 0.8125rem;
}

/* Fullscreen State */
.dr-editor-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dr-editor-card.fullscreen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    background: white;
    animation: fullscreenFadeIn 0.3s ease;
}

@keyframes fullscreenFadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.dr-editor-card.fullscreen .dr-editor-toolbar-actions {
    flex-shrink: 0;
}

.dr-editor-card.fullscreen .ql-toolbar {
    flex-shrink: 0;
}

.dr-editor-card.fullscreen .ql-container {
    flex: 1;
    overflow-y: auto;
}

.dr-editor-card.fullscreen .ql-editor {
    min-height: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 2.5rem !important;
}

/* Hide body scroll, sidebar, and topbar when fullscreen is active */
body.editor-fullscreen-active {
    overflow: hidden;
}

body.editor-fullscreen-active .ll-sidebar,
body.editor-fullscreen-active .ll-topbar {
    display: none !important;
}

body.editor-fullscreen-active .ll-main-content {
    margin-left: 0 !important;
    padding: 0 !important;
    max-width: 100vw !important;
}

/* Fullscreen button styling when active */
.dr-editor-card.fullscreen .dr-fullscreen-btn {
    background: rgba(255, 103, 37, 0.1);
    border-color: rgba(255, 103, 37, 0.3);
    color: #ff6725;
}

.dr-editor-card.fullscreen .dr-fullscreen-btn:hover {
    background: #ff6725;
    color: white;
    border-color: #ff6725;
}

/* ============================================
   Custom Pointer Cursor for Interactive Elements
   ============================================ */
.ll-history-btn,
.ll-add-credits-btn,
.ll-back-link,
.ll-empty-btn,
.dr-modal-close,
.dr-version-item,
.dr-approval-item,
.dr-fullscreen-btn,
.dr-doc-status-badge,
.ll-tracker-badge,
.ll-section-divider-label,
.ql-toolbar button,
.ql-toolbar .ql-picker-label,
.ql-toolbar .ql-picker-options .ql-picker-item,
[data-dismiss="modal"],
button,
a {
    cursor: var(--ll-cur-pointer, pointer);
}

/* Form inputs use text cursor */
.dr-form-control,
.ql-editor,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
textarea {
    cursor: var(--ll-cur-text, text);
}

/* Disabled elements */
button:disabled,
.ll-history-btn:disabled,
.ll-add-credits-btn:disabled {
    cursor: not-allowed;
}

/* ============================================
   Spin Animation
   ============================================ */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spin {
    animation: spin 1s linear infinite;
}

/* ============================================
   Export/Import Dropdown
   ============================================ */
.dr-export-dropdown {
    position: relative;
    display: inline-block;
}

.dr-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    min-width: 180px;
    background: white;
    border: 1px solid var(--color-stroke-2, #e5e5e5);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    padding: 0.5rem;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
}

.dr-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dr-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.625rem 0.875rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-secondary, #1a1a1c);
    text-align: left;
    cursor: var(--ll-cur-pointer, pointer);
    transition: all 0.2s ease;
}

.dr-dropdown-item:hover {
    background: rgba(255, 103, 37, 0.08);
    color: #ff6725;
}

.dr-dropdown-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ============================================
   Loose Ends Modal Styles
   ============================================ */
.dr-modal-large {
    max-width: 640px;
}

.dr-modal-header-centered {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
    padding: 1.5rem 1.5rem 1.25rem;
    position: relative;
}

.dr-modal-header-centered .dr-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.dr-modal-header-centered h3 {
    margin-top: 0.5rem;
}

.dr-modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(255, 103, 37, 0.15), rgba(255, 103, 37, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.dr-modal-icon svg {
    width: 28px;
    height: 28px;
    color: #ff6725;
}

.dr-modal-subtitle {
    color: rgba(26, 26, 28, 0.5);
    font-size: 0.875rem;
    font-family: 'Inter Tight', sans-serif;
    margin: 0;
}

.dr-modal-body-scroll {
    max-height: 400px;
    overflow-y: auto;
}

/* Loose Ends Categories */
.dr-le-category {
    margin-bottom: 1.5rem;
}

.dr-le-category:last-child {
    margin-bottom: 0;
}

.dr-le-category-title {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #ff6725;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 0.875rem;
    padding-bottom: 0.625rem;
    border-bottom: 1px solid var(--color-stroke-2, #e5e5e5);
}

.dr-le-questions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dr-le-question {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dr-le-label {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-secondary, #1a1a1c);
    line-height: 1.4;
}

.dr-le-label .required {
    color: #ef4444;
    font-weight: 600;
}

.dr-form-control.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Loading State */
.dr-loading-state {
    text-align: center;
    padding: 3rem 1.5rem;
}

.dr-loading-state p {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.9375rem;
    color: rgba(26, 26, 28, 0.6);
    margin: 1rem 0 0;
}

.dr-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f4f6;
    border-top-color: #ff6725;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

.dr-spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* ============================================
   Signature Modal Styles
   ============================================ */
.dr-modal-icon-purple,
.dr-modal-icon-orange {
    background: linear-gradient(145deg, rgba(255, 103, 37, 0.15), rgba(255, 103, 37, 0.05));
}

.dr-modal-icon-purple svg,
.dr-modal-icon-orange svg {
    color: #ff6725;
}

.dr-sig-info-box {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    background: #fff8f5;
    border: 1px solid rgba(255, 103, 37, 0.15);
    border-radius: 12px;
    margin-bottom: 20px;
}

.dr-sig-info-box svg {
    width: 20px;
    height: 20px;
    color: #ff6725;
    flex-shrink: 0;
    margin-top: 2px;
}

.dr-sig-info-box p {
    font-family: 'Inter Tight', sans-serif;
    font-size: 13px;
    color: #c2410c;
    line-height: 1.5;
    margin: 0;
}

.dr-sig-party-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.dr-sig-party-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    cursor: var(--ll-cur-pointer, pointer);
    transition: all 0.2s ease;
}

.dr-sig-party-item:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.dr-sig-party-item:has(.dr-sig-checkbox:checked) {
    background: #fff8f5;
    border-color: #ff6725;
}

.dr-sig-checkbox {
    width: 20px;
    height: 20px;
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background: white;
    cursor: var(--ll-cur-pointer, pointer);
    flex-shrink: 0;
    position: relative;
    transition: all 0.15s ease;
}

.dr-sig-checkbox:checked {
    background: #ff6725;
    border-color: #ff6725;
}

.dr-sig-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.dr-sig-party-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.dr-sig-party-name {
    font-family: 'Inter Tight', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dr-sig-party-role {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.75rem;
    color: #6b7280;
}

.dr-sig-party-phone {
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 0.8125rem;
    color: #6b7280;
    flex-shrink: 0;
}

.dr-sig-cost {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #fff8f5;
    border: 1px solid rgba(255, 103, 37, 0.15);
    border-radius: 12px;
}

.dr-sig-cost-label {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.875rem;
    color: #9a3412;
}

.dr-sig-cost-value {
    font-family: 'Inter Tight', sans-serif;
    font-weight: 600;
    color: #ff6725;
}

.dr-credits-warning {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    margin-top: 8px;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border: 1px solid #fca5a5;
    border-radius: 10px;
}

.dr-credits-warning svg {
    flex-shrink: 0;
    color: #dc2626;
}

.dr-credits-warning span {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.8125rem;
    color: #991b1b;
    line-height: 1.4;
}

.dr-credits-warning a {
    color: #ff6725;
    font-weight: 600;
    text-decoration: none;
}

.dr-credits-warning a:hover {
    text-decoration: underline;
}

/* ============================================
   Signature Status Panel
   ============================================ */
.dr-panel-signature {
    background: rgba(255, 103, 37, 0.04);
    border-color: rgba(255, 103, 37, 0.15);
}

.dr-panel-signature .dr-panel-header svg {
    color: #ff6725;
}

.dr-signature-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dr-signature-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}

.dr-signature-item:last-child {
    border-bottom: none;
}

.dr-sig-item-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.dr-sig-item-name {
    font-family: 'Inter Tight', sans-serif;
    font-weight: 500;
    font-size: 0.8125rem;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dr-sig-item-role {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.6875rem;
    color: #6b7280;
}

.dr-sig-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.dr-sig-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.6875rem;
    font-weight: 500;
}

.dr-sig-status-badge svg {
    width: 12px;
    height: 12px;
}

.dr-sig-pending {
    background: #fef3c7;
    color: #92400e;
}

.dr-sig-sent {
    background: #dbeafe;
    color: #1d4ed8;
}

.dr-sig-viewed {
    background: #e0e7ff;
    color: #4338ca;
}

.dr-sig-signed {
    background: #d1fae5;
    color: #047857;
}

.dr-sig-declined {
    background: #fee2e2;
    color: #b91c1c;
}

.dr-badge-warning {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.dr-sig-warning-banner {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    color: #9a3412;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.dr-sig-warning-banner svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: #ea580c;
}

.dr-sig-warning-banner strong {
    display: block;
    font-size: 0.8125rem;
    margin-bottom: 2px;
}

.dr-sig-warning-banner p {
    margin: 0;
    font-size: 0.75rem;
    color: #b45309;
}

.dr-sig-expired {
    background: #f3f4f6;
    color: #6b7280;
}

.dr-sig-waiting-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.6875rem;
    font-weight: 500;
    background: #fef9c3;
    color: #854d0e;
    white-space: nowrap;
}

.dr-sig-waiting-badge svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.dr-sig-item-time {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.625rem;
    color: #9ca3af;
}

.dr-sig-item-aadhaar {
    font-family: 'SF Mono', 'Monaco', monospace;
    font-size: 0.625rem;
    color: #9ca3af;
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Identity verification styles */
.dr-identity-warning {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 10px;
    margin: 8px 0 12px;
}

.dr-identity-warning svg {
    width: 18px;
    height: 18px;
    color: #dc2626;
    flex-shrink: 0;
    margin-top: 1px;
}

.dr-identity-warning-text {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.75rem;
    color: #b91c1c;
    line-height: 1.5;
}

.dr-identity-warning-text strong {
    font-weight: 600;
}

.dr-identity-warning-text small {
    opacity: 0.8;
}

.dr-identity-verified {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.6875rem;
    color: #059669;
    margin: 4px 0 8px;
    padding-left: 2px;
}

.dr-identity-verified svg {
    width: 14px;
    height: 14px;
}

.dr-signed-actions {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.dr-download-signed-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 12px;
    font-family: 'Inter Tight', sans-serif;
    font-weight: 500;
    font-size: 0.8125rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: var(--ll-cur-pointer, pointer);
}

.dr-download-signed-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    color: white;
}

.dr-download-signed-btn svg {
    width: 16px;
    height: 16px;
}

.dr-empty-signatures {
    text-align: center;
    padding: 20px 0;
}

.dr-empty-signatures p {
    font-family: 'Inter Tight', sans-serif;
    color: #6b7280;
    font-size: 0.8125rem;
    margin: 0;
}

/* ============================================
   Identity Verification Details (PDF Certificate)
   ============================================ */
.dr-sig-identity-details {
    background: #f8fafc;
    border-radius: 8px;
    padding: 10px 12px;
    margin: 8px 0 4px;
}

.dr-sig-identity-details.dr-verified {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

.dr-sig-identity-details.dr-mismatch {
    background: linear-gradient(135deg, #fef2f2 0%, #fff5f5 100%);
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.dr-sig-identity-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}

.dr-sig-identity-row:first-child {
    padding-top: 0;
}

.dr-sig-identity-row:last-child {
    padding-bottom: 0;
}

.dr-sig-identity-label {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.625rem;
    color: #94a3b8;
    min-width: 75px;
}

.dr-sig-identity-value {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.6875rem;
    color: #334155;
    font-weight: 500;
}

.dr-sig-identity-verified {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.6875rem;
    color: #16a34a;
    font-weight: 500;
    background: rgba(22, 163, 74, 0.1);
    padding: 2px 8px;
    border-radius: 20px;
}

.dr-sig-identity-verified svg {
    width: 11px;
    height: 11px;
}

.dr-sig-match-score {
    font-weight: 400;
    font-size: 0.5625rem;
    color: #16a34a;
    opacity: 0.8;
}

.dr-sig-identity-mismatch {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.6875rem;
    color: #dc2626;
    font-weight: 500;
    background: rgba(239, 68, 68, 0.1);
    padding: 2px 8px;
    border-radius: 20px;
}

.dr-sig-identity-mismatch svg {
    width: 11px;
    height: 11px;
}

.dr-sig-mismatch-reason {
    display: none;
}

/* Mismatch Alert Box */
.dr-sig-mismatch-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
    padding: 10px 12px;
    background: linear-gradient(135deg, #fef2f2 0%, #fff5f5 100%);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
}

.dr-sig-mismatch-alert svg {
    width: 16px;
    height: 16px;
    color: #ef4444;
    flex-shrink: 0;
    margin-top: 1px;
}

.dr-sig-mismatch-alert-content {
    flex: 1;
}

.dr-sig-mismatch-alert-title {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #dc2626;
    margin-bottom: 2px;
}

.dr-sig-mismatch-alert-text {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.625rem;
    color: #b91c1c;
    line-height: 1.5;
}

.dr-sig-mismatch-alert-expected {
    display: flex;
    gap: 16px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e4e1de;
}

.dr-sig-mismatch-alert-item {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.dr-sig-mismatch-alert-item-label {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.5625rem;
    color: #f87171;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.dr-sig-mismatch-alert-item-value {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.6875rem;
    color: #dc2626;
    font-weight: 500;
}

.dr-sig-identity-pending {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.625rem;
    color: #94a3b8;
    font-style: italic;
}


/* Verify Signatures Button */
.dr-verify-sigs-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-family: 'Inter Tight', sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dr-verify-sigs-btn:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.dr-verify-sigs-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.dr-verify-sigs-btn svg {
    width: 14px;
    height: 14px;
}

.dr-verify-sigs-btn.dr-verifying {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.dr-verify-sigs-btn .dr-spinner-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================
   Sign Now Button
   ============================================ */
.dr-sign-now-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #ff6725, #e55a1f);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Inter Tight', sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    cursor: var(--ll-cur-pointer, pointer);
    transition: all 0.2s ease;
}

.dr-sign-now-btn:hover {
    background: linear-gradient(135deg, #e55a1f, #d14e15);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 103, 37, 0.3);
}

.dr-sign-now-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.dr-sign-now-btn svg {
    width: 14px;
    height: 14px;
}

/* ============================================
   Embedded Signing Modal
   ============================================ */
.dr-modal-signing {
    width: 95%;
    max-width: 900px;
    height: 90vh;
    max-height: 800px;
    display: flex;
    flex-direction: column;
}

.dr-modal-signing .dr-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.dr-signing-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dr-signing-header-left h3 {
    margin: 0;
    font-size: 1.125rem;
}

.dr-signing-header-left .dr-modal-subtitle {
    margin: 4px 0 0 0;
    font-size: 0.8125rem;
    color: #6b7280;
}

.dr-modal-icon-orange {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(255, 103, 37, 0.15), rgba(255, 103, 37, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dr-modal-icon-orange svg {
    width: 24px;
    height: 24px;
    color: #ff6725;
}

.dr-signing-body {
    flex: 1;
    padding: 0;
    overflow: hidden;
    position: relative;
    min-height: 400px;
}

.dr-signing-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: #f9fafb;
}

.dr-signing-loading p {
    font-family: 'Inter Tight', sans-serif;
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
}

.dr-signing-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.dr-signing-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.dr-signing-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #6b7280;
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.75rem;
}

.dr-signing-info svg {
    color: #10b981;
    flex-shrink: 0;
}

/* ============================================
   Responsive Styles
   ============================================ */
@media (max-width: 1024px) {
    .dr-doc-layout {
        grid-template-columns: 1fr;
    }

    .dr-doc-sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 900px) {
    .ll-credits-info-bar {
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
    }

    .ll-credits-info-right {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    /* Compact buttons — hide text, keep icons */
    .ll-credits-info-right .ll-history-btn,
    .ll-credits-info-right .ll-add-credits-btn {
        padding: 0.5rem 0.625rem;
        font-size: 0.75rem;
        gap: 0.375rem;
    }

    .ll-credits-info-right .ll-history-btn svg,
    .ll-credits-info-right .ll-add-credits-btn svg {
        width: 16px;
        height: 16px;
    }

    .dr-doc-meta-text {
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {
    .ll-credits-info-bar {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .ll-credits-info-right {
        width: 100%;
        flex-wrap: wrap;
    }

    .ll-tracker-hero-content {
        flex-direction: column;
        text-align: center;
    }

    .ll-tracker-hero-left {
        text-align: center;
    }

    .ll-tracker-stats {
        justify-content: center;
    }

    .dr-doc-sidebar {
        grid-template-columns: 1fr;
    }

    /* Fullscreen button on mobile */
    .dr-fullscreen-btn .fullscreen-text {
        display: none;
    }

    .dr-fullscreen-btn {
        padding: 0.5rem;
    }

    /* Fullscreen editor on mobile */
    .dr-editor-card.fullscreen .ql-editor {
        padding: 1.5rem !important;
    }
}

@media (max-width: 600px) {
    .ll-credits-info-right .ll-history-btn span:not(.btn-loader),
    .ll-credits-info-right .ll-add-credits-btn span:not(.btn-loader) {
        display: none;
    }

    .ll-credits-info-right .dr-export-dropdown .ll-history-btn span {
        display: none;
    }

    /* Icon-only buttons */
    .ll-credits-info-right .ll-history-btn,
    .ll-credits-info-right .ll-add-credits-btn {
        padding: 0.5rem;
    }

    .ll-credits-info-left {
        width: 100%;
    }

    .ll-tracker-hero h1 {
        font-size: 1.25rem;
    }

    .ll-tracker-hero p {
        font-size: 0.8125rem;
    }
}

/* ============================================
   E-Stamping Section
   ============================================ */
/* Signing Methods Section */
.dr-sig-methods-section {
    margin-top: 16px;
    padding: 14px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.dr-sig-methods-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
}

.dr-sig-methods-header svg {
    color: #6b7280;
}

.dr-sig-methods-default {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.dr-sig-method-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.dr-sig-method-aadhaar {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
}

.dr-sig-method-dsc {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #047857;
}

.dr-sig-method-sms {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}

.dr-sig-methods-default-label {
    font-size: 0.6875rem;
    color: #9ca3af;
    font-style: italic;
}

.dr-sig-sms-toggle {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dr-sig-sms-toggle:hover {
    border-color: #d1d5db;
}

.dr-sig-sms-toggle:has(.dr-sig-sms-checkbox:checked) {
    background: #fffbeb;
    border-color: #f59e0b;
}

.dr-sig-sms-checkbox {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid #f59e0b;
    border-radius: 4px;
    background: white;
    position: relative;
    flex-shrink: 0;
}

.dr-sig-sms-checkbox:checked {
    background: #f59e0b;
    border-color: #f59e0b;
}

.dr-sig-sms-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.dr-sig-sms-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dr-sig-sms-title {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #374151;
}

.dr-sig-sms-warning {
    font-size: 0.6875rem;
    color: #d97706;
}

.dr-estamp-section {
    margin: 20px 0;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.dr-estamp-toggle {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border: 1px solid #fdba74;
    border-radius: 12px;
    cursor: var(--ll-cur-pointer, pointer);
    transition: all 0.2s ease;
}

.dr-estamp-toggle:hover {
    border-color: #fb923c;
    box-shadow: 0 2px 8px rgba(255, 103, 37, 0.15);
}

.dr-estamp-toggle:has(.dr-estamp-checkbox:checked) {
    background: linear-gradient(135deg, #ffedd5, #fed7aa);
    border-color: #ff6725;
}

.dr-estamp-checkbox {
    width: 18px;
    height: 18px;
    cursor: inherit;
    margin-top: 2px;
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid #ff6725;
    border-radius: 4px;
    background: white;
    position: relative;
    flex-shrink: 0;
}

.dr-estamp-checkbox:checked {
    background: #ff6725;
    border-color: #ff6725;
}

.dr-estamp-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.dr-estamp-toggle-content {
    flex: 1;
}

.dr-estamp-toggle-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    color: #9a3412;
}

.dr-estamp-toggle-title svg {
    color: #ff6725;
}

.dr-estamp-toggle-desc {
    display: block;
    font-size: 0.75rem;
    color: #4b5563;
    margin-top: 2px;
}

.dr-estamp-fields {
    margin-top: 16px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 12px;
}

.dr-estamp-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.dr-estamp-row:last-child {
    margin-bottom: 0;
}

.dr-estamp-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dr-estamp-field-full {
    width: 100%;
}

.dr-estamp-field label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #374151;
}

.dr-estamp-field .dr-form-control {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: 'Inter Tight', sans-serif;
    background: white;
    transition: all 0.2s ease;
}

.dr-estamp-field .dr-form-control:focus {
    outline: none;
    border-color: #ff6725;
    box-shadow: 0 0 0 3px rgba(255, 103, 37, 0.1);
}

.dr-estamp-estimate {
    margin-top: 16px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #fefce8, #fef9c3);
    border: 1px solid #fde047;
    border-radius: 10px;
}

.dr-estamp-estimate-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
    color: #713f12;
    padding: 4px 0;
}

.dr-estamp-estimate-row.dr-estamp-total {
    font-weight: 600;
    font-size: 0.9375rem;
    border-top: 1px dashed #d9d6d3;
    margin-top: 8px;
    padding-top: 8px;
}

.dr-estamp-note {
    font-size: 0.6875rem;
    color: #92400e;
    margin: 8px 0 0;
    font-style: italic;
}

.dr-estamp-optional-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #e5e7eb;
    color: #6b7280;
    font-size: 0.625rem;
    font-weight: 500;
    border-radius: 10px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dr-estamp-field-hint {
    font-size: 0.6875rem;
    color: #9ca3af;
    margin-top: 4px;
}

.dr-estamp-suggestion {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #93c5fd;
    border-radius: 10px;
    padding: 12px 16px;
    margin-top: 12px;
}

.dr-estamp-suggestion-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1d4ed8;
    margin-bottom: 8px;
}

.dr-estamp-suggestion-header svg {
    color: #3b82f6;
}

.dr-estamp-suggestion-content {
    padding-left: 24px;
}

.dr-estamp-suggestion-row {
    font-size: 0.75rem;
    color: #4b5563;
    margin-bottom: 6px;
}

.dr-estamp-suggestion-amount {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
}

.dr-estamp-suggestion-amount strong {
    font-size: 1.125rem;
    color: #1d4ed8;
}

.dr-estamp-use-suggested-btn {
    padding: 4px 12px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: var(--ll-cur-pointer, pointer);
    transition: all 0.2s ease;
}

.dr-estamp-use-suggested-btn:hover {
    background: #2563eb;
}

/* Suggested stamp duty: one row per TNREGINET deed row the document could be */
.dr-estamp-suggestion-lead {
    font-size: 0.75rem;
    color: #4b5563;
    margin: 0 0 8px;
}

.dr-estamp-suggestion-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dr-estamp-suggestion-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #bfdbfe;
    border-radius: 8px;
}

.dr-estamp-suggestion-option-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.dr-estamp-suggestion-option-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1e3a8a;
}

.dr-estamp-suggestion-option-rule {
    font-size: 0.6875rem;
    color: #6b7280;
}

.dr-estamp-suggestion-option .dr-estamp-suggestion-amount {
    flex-shrink: 0;
}

.dr-estamp-suggestion-need {
    font-size: 0.6875rem;
    color: #6b7280;
    text-align: right;
}

.dr-estamp-field-wide {
    grid-column: 1 / -1;
}

.dr-estamp-suggestion-options:empty,
.dr-estamp-suggestion-source:empty {
    display: none;
}

.dr-estamp-suggestion-source {
    font-size: 0.6875rem;
    color: #6b7280;
    margin: 8px 0 0;
}

@media (max-width: 600px) {
    .dr-estamp-suggestion-content {
        padding-left: 0;
    }

    .dr-estamp-suggestion-option {
        flex-direction: column;
        align-items: flex-start;
    }
}

.dr-estamp-final-input {
    font-size: 1rem !important;
    font-weight: 500;
    padding: 10px 14px !important;
    border: 2px solid #22c55e !important;
    background: #f0fdf4 !important;
}

.dr-estamp-final-input:focus {
    border-color: #16a34a !important;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15) !important;
}

.dr-estamp-credit-cost {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #fefce8, #fef9c3);
    border: 1px solid #fbbf24;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #92400e;
}

.dr-estamp-credit-cost svg {
    flex-shrink: 0;
    color: #d97706;
}

.dr-estamp-credit-cost strong {
    color: #b45309;
}

.dr-estamp-credit-detail {
    font-size: 0.7rem;
    color: #a16207;
}

/* E-Stamp Party Addresses */
.dr-estamp-addresses {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #e5e7eb;
}

.dr-estamp-addresses-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
}

.dr-estamp-addresses-header svg {
    color: #ff6725;
}

.dr-estamp-addresses-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dr-estamp-address-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dr-estamp-address-item label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
}

/* Structured Address Fields */
.dr-estamp-address-party-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.dr-estamp-address-fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dr-estamp-address-row {
    display: flex;
    gap: 8px;
}

.dr-estamp-address-row-split {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 8px;
}

.dr-party-address-street,
.dr-party-address-city,
.dr-party-address-pincode {
    font-size: 0.8125rem !important;
    padding: 10px 12px !important;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s;
}

.dr-party-address-street:focus,
.dr-party-address-city:focus,
.dr-party-address-pincode:focus {
    border-color: #ff6725;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 103, 37, 0.1);
}

.dr-party-address-pincode {
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    letter-spacing: 0.05em;
}

.dr-estamp-address-item {
    padding: 12px;
    background: #f9fafb;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.dr-estamp-info-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.dr-estamp-info-box svg {
    color: #6b7280;
    flex-shrink: 0;
    margin-top: 1px;
}

.dr-estamp-info-box p {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

.dr-required {
    color: #ef4444;
}

@media (max-width: 640px) {
    .dr-estamp-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   NiceSelect for E-Stamping Dropdowns
   ============================================ */
.dr-estamp-field .svf-trigger {
    height: auto;
    padding: 8px 12px;
    border-color: #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: 'Inter Tight', sans-serif;
    line-height: 1.4;
}

.dr-estamp-field .nice-select {
    width: 100%;
    padding: 8px 12px;
    padding-right: 30px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: 'Inter Tight', sans-serif;
    background: white;
    line-height: 1.4;
    height: auto;
    transition: all 0.2s ease;
    cursor: pointer;
}

.dr-estamp-field .nice-select:hover {
    border-color: #9ca3af;
}

.dr-estamp-field .nice-select.open,
.dr-estamp-field .nice-select:focus {
    border-color: #ff6725;
    box-shadow: 0 0 0 3px rgba(255, 103, 37, 0.1);
}

.dr-estamp-field .nice-select:after {
    right: 12px;
    border-bottom: 2px solid #6b7280;
    border-right: 2px solid #6b7280;
    width: 7px;
    height: 7px;
    margin-top: -5px;
}

.dr-estamp-field .nice-select .current {
    color: #1f2937;
    font-weight: 400;
}

.dr-estamp-field .nice-select .list {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
}

.dr-estamp-field .nice-select .option {
    padding: 10px 14px;
    font-size: 0.875rem;
    font-family: 'Inter Tight', sans-serif;
    color: #374151;
    min-height: auto;
    line-height: 1.4;
    transition: all 0.15s ease;
    cursor: pointer;
}

.dr-estamp-field .nice-select .option:hover {
    background: #fff7ed;
    color: #ea580c;
}

.dr-estamp-field .nice-select .option.selected {
    background: #fff7ed;
    color: #ea580c;
    font-weight: 500;
}

.dr-estamp-field .nice-select .option.focus {
    background: #fff7ed;
}

/* E-Stamp Details Panel */
.dr-estamp-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dr-estamp-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
}

.dr-estamp-detail-row:last-child {
    border-bottom: none;
}

.dr-estamp-detail-label {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.6875rem;
    color: #94a3b8;
    font-weight: 500;
}

.dr-estamp-detail-value {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.75rem;
    color: #334155;
    font-weight: 600;
}

.dr-estamp-detail-badge {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.625rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.dr-estamp-detail-badge.dr-estamp-purchased {
    background: #ecfdf5;
    color: #059669;
}

.dr-estamp-detail-badge.dr-estamp-applied {
    background: #eff6ff;
    color: #2563eb;
}

.dr-estamp-detail-badge.dr-estamp-pending {
    background: #fffbeb;
    color: #d97706;
}

.dr-estamp-detail-badge.dr-estamp-failed {
    background: #fef2f2;
    color: #dc2626;
}

.dr-estamp-download-cert {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: #ea580c;
    text-decoration: none;
    padding: 6px 12px;
    border: 1px solid #fed7aa;
    border-radius: 6px;
    transition: all 0.2s;
}

.dr-estamp-download-cert:hover {
    background: #fff7ed;
    border-color: #ea580c;
}

.dr-estamp-detail-note {
    margin-top: 8px;
    padding: 8px 12px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 6px;
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.7rem;
    color: #92400e;
    line-height: 1.4;
}
