﻿
/* ─── Design Tokens ─── */
:root {
    /* Note: --job-chrome-height was removed when Index_Job switched to a flex column layout.
       Page chrome now uses flex:1 + height:100% throughout, no viewport-relative math required. */

    /* Colors */
    --color-nav: #1570EF;
    --color-nav-text: rgba(255, 255, 255, 0.65);
    --color-nav-active: #FFFFFF;
    --color-page-bg: #F0F0EE;
    --color-card-bg: #FFFFFF;
    --color-card-border: #E8E8EC;
    --color-input-bg: #FFFFFF;
    --color-input-border: #E2E4E8;
    --color-label: #6B7280;
    --color-text: #111111;
    --color-placeholder: #9CA3AF;
    --color-divider: #E2E4E8;
    --color-primary: #2563EB;
    --color-link: #2563EB;
    --color-row-border: #F0F0F0;
    --color-header-bg: #FAFAFA;
    /* Pipeline grid colors */
    --color-grid-empty: #EAEAEC;
    --color-purple: #7C3AED;
    --color-red: #DC2626;
    --color-amber: #F59E0B;
    --color-green: #16A34A;
    /* Dot colors */
    --color-dot-grey: #D1D5DB;
    --color-dot-red: #DC2626;
    --color-dot-amber: #F59E0B;
    --color-dot-green: #16A34A;
    /* Activity */
    --color-bubble-bg: #F3F4F6;
    --color-bubble-text: #4B5563;
    --color-avatar-blue-bg: #EFF6FF;
    --color-avatar-blue-fg: #2563EB;
    --color-avatar-amber-bg: #FEF3C7;
    --color-avatar-amber-fg: #D97706;
    --color-avatar-green-bg: #DCFCE7;
    --color-widget-background: #f9fafb;
    /* Tag */
    --color-tag-bg: #EFF6FF;
    --color-tag-text: #2563EB;
    /* Typography */
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-brand: 'DM Sans', system-ui, sans-serif;
    /* Radii */
    --radius-card: 12px;
    --radius-input: 8px;
    --radius-bar: 6px;
    --color-footer-bg: #FFFFFF;
    --color-divider: #E2E4E8;
    --form-width: 720px;
    --color-input-bg: #FFFFFF;
    --color-input-border: #E2E4E8;
}



/* ─── Reset ─── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, .k-body {
    font-family: var(--font-sans) !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    color: var(--color-text) !important;
    background: var(--color-page-bg) !important;
    -webkit-font-smoothing: antialiased !important;
    overflow: hidden;
    height:100vh !important;
/*    box-sizing:border-box;
    border:solid 3px red;*/
}

/* ─── Page Layout ─── */
.page {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 56px);
}

.k-loader-primary {
    color: var(--color-nav) !important;
}

/* ─── Nav ─── */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    padding: 0 24px;
    background: var(--color-nav);
    flex-shrink: 0;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-brand {
    font-family: var(--font-brand);
    font-size: 15px;
    font-weight: 700;
    color: var(--color-nav-active);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 16px;
}

.nav-link {
    font-size: 13px;
    color: var(--color-nav-text);
    text-decoration: none;
}

.nav-link--active {
    color: var(--color-nav-active);
    font-weight: 500;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-org {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.nav-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
}


/* ─── Icons ─── */
.icon {
    flex-shrink: 0;
}

.top-row, .top-row-left, .top-row-right {
    background-color: var(--color-nav);
}




.topline-item {
    width: 2.5em;
    height: 2em;
    float: left;
    margin-left: 0.75%;
    margin-top: 2px;
    cursor: pointer;
    font-size: 1.1em;
    color: #4fc8e7 !important;
    border: solid 1px transparent;
    text-align: center;
    padding-left: 6px;
    border-radius: 4px;
}

.topline-item-text {
    font-size: 13px;
    /*color: rgba(255,255,255,0.65);*/
    text-decoration: none;
    color: #4fc8e7 !important;
    cursor:pointer;
}

/*.topline-item-text {
    font-size: 13px; color: rgba(255,255,255,0.65); text-decoration: none;
}
*/
.topline-item-text .selected{
    font-size: 13px;
    color: white !important;
    text-decoration: none;
}


    .topline-item:hover {
        background: rgba(255,255,255,0.1);
        color: #fff;
        transition: .25s ease-in-out;
    }


.text-info {
    color: white!important;
    font-weight:bold;
}





/*.ava-hdr {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 1.5px solid rgba(78,205,228,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--hdr-cyan);
    cursor: pointer;
    flex-shrink: 0;
}*/

.ava-hdr {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
}


.org-sel {
    background: var(--color-primary) !important;
    background-position-x: 0% !important;
    background-position-y: 0% !important;
    background-repeat: repeat !important;
    background-image: none !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    color: #fff !important;
    border-radius: var(--radius-input) !important;
    padding: 5px 28px 5px 10px !important;
    /*font-size: 12px !important;*/
    font-family: var(--font) !important;
    cursor: pointer !important;
    outline: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%234ECDE4'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
}


.btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 8px 14px !important;
    border-radius: var(--radius-input) !important;
    font-family: var(--font-sans) !important;
    font-size: 13px !important;
    font-weight: 534 !important;
    cursor: pointer !important;
    border: none !important;
    transition: opacity 0.15s !important;
    line-height: 1.2 !important;
}

.btn--secondary, .btn-secondary {
    background: transparent !important;
    border: 1px solid var(--color-input-border) !important;
    color: var(--color-label) !important;
    min-width: 90px;
}

.btn--primary , btn-primary{
    background: var(--color-primary) !important;
    color: #fff !important;
    font-weight: 600 !important;
    opacity: 1 !important;
    min-width: 90px;
}

.btn--danger {
    background: var(--color-red) !important;
    border: 1px solid var(--color-red) !important;
    color: white !important;
    min-width: 90px;
}

    .btn--primary:hover, .btn-primary:hover {
        background: var(--color-primary) !important;
        color: #fff !important;
        font-weight: 600 !important;
        opacity: 0.85 !important;
    }

.k-window {
    border-color: var(--color-page-bg) !important;
    background-color: var(--color-page-bg) !important;
    color: var(--color-text: #111111) !important;
    box-shadow: rgba(0, 0, 0, 0.28) 0px 16px 18px 0px, rgba(0, 0, 0, 0.12) 0px 4px 16px 0px !important;
    border-radius: 0 !important;
}

.k-window-content{
    padding:0px !important;
    overflow:auto !important;  
}
.no-border{
    border:none !important;
    border-radius:0 !important;
}
/* ── Modal Shell ── */
.n-modal {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(0,0,0,0.16);
    overflow: hidden;
    display: flex;
    flex-direction: column;
/*    height: fit-content !important;
    width: fit-content !important;
    margin-top: 12vh;*/
    display: flex;
}


.n-modal-icon {
    font-size: 19px;
    font-weight: 600;
    height: fit-content;
    float: left;
    text-align: left;
    box-sizing: border-box;
    display: flex;
    gap: 12px;
}

.n-modal-message {
    font-size: 19px;
    padding-top: 30px;
    font-weight: 600;
    height: fit-content;
 
    text-align: left;
    box-sizing: border-box;
    
    gap: 12px;
}

/* ── Modal Header ── */
.n-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px 20px;
    border-bottom: 1px solid #E2E4E8;
}

.n-modal-header-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.n-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    line-height: 22px;
}

.n-modal-subtitle {
    font-size: 13px;
    color: #9CA3AF;
}

.n-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #F3F4F6;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.n-modal-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px 20px;
    /*border-bottom: 1px solid #E2E4E8;*/
    padding-top: 12px;
}

.n-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px 24px;
    padding-left:24px;
    padding-right:24px;

}

    .n-modal-close:hover {
        background: #E5E7EB;
    }

    .n-modal-close svg {
        width: 14px;
        height: 14px;
    }

.k-input-inner:not(.k-input-inner-bigger-text) {
    text-overflow: initial !important;
    font-size: 14px !important;
}

.k-input-solid {
    border-color: transparent !important;
    color: #111827 !important;
    background-color: #F8F9FA !important;
    font-size: 14px !important;
}

.k-button-solid-base {
    border-color: transparent !important;
    color: #212529 !important;
    background-color: transparent !important;
}

.telerik-blazor.k-button.float-right.btn.btn--primary.k-button-solid.k-rounded-md.k-button-md.k-button-solid-base {
    background: var(--color-primary) !important;
    color: #fff !important;
    font-weight: 600 !important;
    opacity: 1 !important;
    min-width: 90px;
}
.telerik-window-background {
    width: 100%;
    float: left;
    height: calc(100vh - 51px);
    background-color: #f9fafb;
}

/*line edit modal*/
/* ── line-modal Shell ── */
.line-modal {
    background: #fff;
    border-radius: 16px;
    width: 95%;
    box-shadow: 0 24px 48px rgba(0,0,0,0.16);
    box-shadow: 0 1px 12px rgba(0,0,0,0.16);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-left: calc(2.5%);
    margin-top: 1vh;
    padding: 15px;
}

/* ── line-modal Header ── */
.line-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px 20px;
    border-bottom: 1px solid #E2E4E8;
}

.line-modal-header-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.line-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    line-height: 22px;
}

.line-modal-subtitle {
    font-size: 13px;
    color: #9CA3AF;
}

.line-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #F3F4F6;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

    .line-modal-close:hover {
        background: #E5E7EB;
    }

    .line-modal-close svg {
        width: 14px;
        height: 14px;
    }


.form-control {
    min-height: 0px !important;
    display: flex !important;
    align-items: center !important;
    padding: 4px 14px !important;
    background: #f8f9fa !important;
    border: 1px solid #e2e4e8 !important;
    border-radius: var(--radius-input) !important;
    font-family: var(--font-sans) !important;
    color: var(--color-text) !important;
    outline: none !important;
    transition: 0 !important;
    font-size: 14px !important;
    font-weight: normal !important;
    line-height: normal !important;
    width: 100% !important;
    font-weight: normal !important;
    line-height: normal !important;
    min-height: 34px !important;
}

/* =================================================================
   Job Notes — Need-to-know strip, drawer, and modal
   ================================================================= */

/* --- Need to know strip --- */
.ntk-strip {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 24px;
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.06) 0%, rgba(21, 112, 239, 0.04) 100%);
    border-bottom: 1px solid #E5E7EB;
}

.ntk-strip-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-sans, Inter, sans-serif);
    font-size: 11px;
    font-weight: 600;
    color: #7C3AED;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.ntk-strip-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    flex-wrap: wrap;
}

.ntk-pill {
    font-family: var(--font-sans, Inter, sans-serif);
    font-size: 13px;
    font-weight: 500;
    color: #1A1A2E;
    padding: 3px 10px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
}

.ntk-strip-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.ntk-strip-source {
    font-family: var(--font-sans, Inter, sans-serif);
    font-size: 11px;
    color: #6B7280;
}

.ntk-strip-empty-hint {
    font-family: var(--font-sans, Inter, sans-serif);
    font-size: 12px;
    font-style: italic;
    color: #9CA3AF;
}

.ntk-strip-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    font-family: var(--font-sans, Inter, sans-serif);
    font-size: 12px;
    font-weight: 500;
    color: #1A1A2E;
    cursor: pointer;
}

.ntk-strip-toggle.is-active {
    background: #1A1A2E;
    border-color: #1A1A2E;
    color: #FFFFFF;
}

.ntk-strip-count {
    font-size: 11px;
    font-weight: 600;
    color: #FFFFFF;
    background: #1570EF;
    padding: 1px 6px;
    border-radius: 8px;
}

/* --- Job content layout shift when notes panel finishes opening ---
   The .is-notes-open class is applied by Index_Job.razor.cs ONLY after the panel has
   finished sliding in (NotesPanelArrived). At that point the panel already covers the
   right region, so we can hide rails / push middle instantly without visual jank. */
.job-content-wrap {
    padding-right: 0;
}
.job-content-wrap.is-notes-open {
    padding-right: 660px;   /* matches .notes-drawer width */
}
.job-content-wrap.is-notes-open .schedule-cards,
.job-content-wrap.is-notes-open .job-right-rail {
    display: none !important;
}

/* Bottom breathing room for the scrollable right rail.
   padding-bottom on scroll containers is ignored by Chromium when computing scrollHeight,
   so we add a pseudo-element that lives inside the content flow and is therefore counted. */
.job-right-rail::after {
    content: "";
    display: block;
    height: 24px;
    flex-shrink: 0;
}

.ntk-strip-toggle.is-active .ntk-strip-count {
    color: #1A1A2E;
    background: #FFFFFF;
}

/* --- Drawer (right-side fixed panel) --- */
.notes-drawer {
    /* Absolute-positioned inside .job-content-wrap (which is position:relative).
       Fills the wrap's vertical bounds — no chrome math, no offset coordination. */
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 660px;
    background: #FFFFFF;
    border-left: 1px solid #E2E4E8;
    border-top: 1px solid #E2E4E8;
    box-shadow: -10px 0 28px rgba(15, 23, 42, 0.08), 0 -2px 8px rgba(15, 23, 42, 0.04);
    transform: translateX(100%);
    transition: transform 240ms ease;
    z-index: 50;
    display: flex;
    flex-direction: column;
    overflow: hidden;       /* outer hidden so the panel itself is the scroll boundary */
    pointer-events: none;   /* fully off-canvas: don't block clicks */
}

.notes-drawer.is-open {
    transform: translateX(0);
    pointer-events: auto;
}

.notes-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #F3F4F6;
    background: #FAFBFC;
    flex-shrink: 0;
    gap: 10px;
}

.notes-drawer-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.notes-drawer-add {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: 6px;
    background: #2563EB;
    border: none;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.notes-drawer-add:hover { opacity: 0.9; }

.notes-drawer-close {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: transparent;
    border: none;
    color: #6B7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.notes-drawer-close:hover { background: #F4F6F8; color: #1A1A2E; }

.notes-drawer-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-sans, Inter, sans-serif);
    font-size: 14px;
    font-weight: 600;
    color: #1A1A2E;
}

.notes-drawer-count {
    font-size: 11px;
    font-weight: 500;
    color: #6B7280;
    background: #F3F4F6;
    padding: 2px 7px;
    border-radius: 10px;
}

.notes-drawer-search {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    margin: 10px 14px;
    background: #F4F6F8;
    border-radius: 8px;
    border: 1px solid #E8E8EC;
    flex-shrink: 0;
}

.notes-drawer-search input {
    border: none;
    background: transparent;
    font-family: var(--font-sans, Inter, sans-serif);
    font-size: 12px;
    color: #1A1A2E;
    outline: none;
    width: 100%;
    flex: 1;
}

.notes-drawer-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
    overflow-x: visible;
}

.notes-empty {
    padding: 24px;
    text-align: center;
    color: #9CA3AF;
    font-family: var(--font-sans, Inter, sans-serif);
    font-size: 13px;
}

.notes-row {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid #F3F4F6;
    position: relative;
}

.notes-row.is-pinned {
    background: rgba(124, 58, 237, 0.03);
}

.notes-row-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: var(--font-sans, Inter, sans-serif);
    font-size: 11px;
    font-weight: 600;
}

.notes-row-body { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }

.notes-row-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans, Inter, sans-serif);
}

.notes-row-name { font-size: 13px; font-weight: 600; color: #1A1A2E; }
.notes-row-time { font-size: 11px; color: #9CA3AF; }
.notes-row-pinned {
    font-size: 10px;
    font-weight: 600;
    color: #7C3AED;
    background: rgba(124, 58, 237, 0.10);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
}

.notes-row-text {
    font-family: var(--font-sans, Inter, sans-serif);
    font-size: 13px;
    color: #1A1A2E;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.notes-row-action {
    flex-shrink: 0;
    width: 32px;
    align-self: flex-start;
    position: relative;
}

.notes-row-pin,
.notes-row-kebab {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6B7280;
    padding: 0;
}

.notes-row-pin:hover,
.notes-row-kebab:hover {
    background: #F4F6F8;
}

.notes-row-pin.is-pinned {
    background: rgba(124, 58, 237, 0.12);
    border-color: transparent;
    color: #7C3AED;
}

.notes-row-kebab {
    background: #F4F6F8;
    border-color: transparent;
    color: #1A1A2E;
}

.notes-row-menu {
    position: absolute;
    top: 36px;
    right: 14px;
    width: 200px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.14), 0 2px 6px rgba(0,0,0,0.06);
    padding: 5px;
    z-index: 10;
    display: flex;
    flex-direction: column;
}

.notes-row-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    width: 100%;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-family: var(--font-sans, Inter, sans-serif);
    font-size: 13px;
    color: #1A1A2E;
    cursor: pointer;
    text-align: left;
}
.notes-row-menu-item:hover { background: rgba(21, 112, 239, 0.06); }
.notes-row-menu-item.is-danger { color: #DC2626; }
.notes-row-menu-item.is-danger:hover { background: rgba(220, 38, 38, 0.06); }

.notes-row-menu-divider { height: 1px; background: #E5E7EB; margin: 4px 0; }

/* --- Add/Edit modal --- */
.notes-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid #E5E7EB;
}

.notes-modal-title {
    margin: 0;
    font-family: var(--font-sans, Inter, sans-serif);
    font-size: 15px;
    font-weight: 600;
    color: #1A1A2E;
}

.notes-modal-subtitle {
    font-family: var(--font-sans, Inter, sans-serif);
    font-size: 12px;
    color: #6B7280;
}

.notes-modal-close {
    cursor: pointer;
    font-size: 1.4em;
    color: #6B7280;
}

.notes-modal-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 22px;
    max-height: calc(100vh - 260px);
    overflow-y: auto;
}

.notes-modal-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notes-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1B2A3D, #2D4A6A);
    color: #FFFFFF;
    font-family: var(--font-sans, Inter, sans-serif);
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notes-author-name { font-family: var(--font-sans, Inter, sans-serif); font-size: 13px; font-weight: 600; color: #1A1A2E; }
.notes-author-time { font-family: var(--font-sans, Inter, sans-serif); font-size: 11px; color: #9CA3AF; }

.notes-modal-textarea {
    width: 100%;
    min-height: 140px;
    padding: 14px 16px;
    border: 1px solid #D1D5DB;
    border-radius: 10px;
    font-family: var(--font-sans, Inter, sans-serif);
    font-size: 14px;
    color: #1A1A2E;
    line-height: 1.5;
    resize: vertical;
    box-sizing: border-box;
}

.notes-modal-textarea:focus {
    outline: none;
    border-color: #1570EF;
    box-shadow: 0 0 0 3px rgba(21, 112, 239, 0.10);
}

.notes-pin-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(124, 58, 237, 0.04);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: 10px;
}

.notes-pin-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(124, 58, 237, 0.10);
    color: #7C3AED;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notes-pin-meta { flex: 1; }
.notes-pin-title { font-family: var(--font-sans, Inter, sans-serif); font-size: 13px; font-weight: 600; color: #1A1A2E; }
.notes-pin-desc  { font-family: var(--font-sans, Inter, sans-serif); font-size: 11px; color: #6B7280; }

.notes-pin-toggle { position: relative; display: inline-block; width: 36px; height: 20px; flex-shrink: 0; cursor: pointer; }
.notes-pin-toggle input { opacity: 0; width: 0; height: 0; }
.notes-pin-slider {
    position: absolute; inset: 0;
    background: #D1D5DB;
    border-radius: 12px;
    transition: 200ms;
    cursor: pointer;
}
.notes-pin-slider::before {
    content: ""; position: absolute;
    width: 16px; height: 16px;
    left: 2px; top: 2px;
    background: #FFFFFF;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.10);
    transition: 200ms;
}
.notes-pin-toggle input:checked + .notes-pin-slider { background: #7C3AED; }
.notes-pin-toggle input:checked + .notes-pin-slider::before { transform: translateX(16px); }

.notes-modal-error {
    padding: 10px 12px;
    background: rgba(220, 38, 38, 0.06);
    border: 1px solid rgba(220, 38, 38, 0.20);
    border-radius: 8px;
    color: #DC2626;
    font-family: var(--font-sans, Inter, sans-serif);
    font-size: 12px;
}

.notes-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 22px;
    border-top: 1px solid #E5E7EB;
    background: #FAFBFC;
}

.btn--text {
    background: transparent !important;
    border: none !important;
    color: var(--color-label) !important;
    cursor: pointer;
    font-family: var(--font-sans, Inter, sans-serif);
    font-size: 13px;
    font-weight: 500;
    padding: 9px 14px;
}
.btn--text:hover { color: #1A1A2E !important; }

.notes-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 8px;
    background: #FFFFFF;
    border: 1px solid #D1D5DB;
    color: #1A1A2E;
    font-family: var(--font-sans, Inter, sans-serif);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.notes-add-btn:hover { background: #F4F6F8; }
.notes-add-btn.is-active {
    background: #EFF6FF;
    border-color: #2563EB;
    color: #2563EB;
}
.notes-add-btn.is-active:hover { background: #DBEAFE; }
