/* ==========================================================================
   Circulars sent to employees (all_circulars.blade.php)
   Everything is scoped under .crc so it never leaks into other pages.
   Same tokens and components as the report pages.
   Logical properties (inline-start/end) keep RTL and LTR identical.
   ========================================================================== */

.crc {
    --crc-surface: #ffffff;
    --crc-surface-2: #f8fafc;
    --crc-border: #e5e9f2;
    --crc-ink: #0f172a;
    --crc-text: #334155;
    --crc-muted: #64748b;
    --crc-faint: #94a3b8;
    --crc-accent: #2563eb;
    --crc-accent-hover: #1d4ed8;
    --crc-accent-soft: #eff4ff;
    --crc-success: #16a34a;
    --crc-success-soft: #ecfdf3;
    --crc-danger: #dc2626;
    --crc-danger-soft: #fef2f2;
    --crc-violet: #7c3aed;
    --crc-violet-soft: #f5f3ff;
    --crc-radius: 14px;
    --crc-radius-sm: 10px;
    --crc-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px rgba(15, 23, 42, .04);

    max-width: 1300px;
    margin: 0 auto;
    padding: 8px 20px 40px;
    color: var(--crc-text);
    font-size: 14px;
    line-height: 1.6;
}

.crc *,
.crc *::before,
.crc *::after { box-sizing: border-box; }

.crc a { text-decoration: none; }
.crc a:hover, .crc a:focus { text-decoration: none; }
.crc button { font-family: inherit; }
.crc [hidden] { display: none !important; }

/* --- Header ------------------------------------------------------------- */

.crc-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    margin-bottom: 20px;
}

.crc-header-main { display: flex; align-items: flex-start; gap: 16px; }

.crc-header-icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--crc-accent-soft);
    color: var(--crc-accent);
    font-size: 20px;
}

.crc-title { margin: 0 0 4px; font-size: 24px; line-height: 1.35; font-weight: 700; color: var(--crc-ink); }
.crc-subtitle { margin: 0; color: var(--crc-muted); font-size: 13.5px; }

.crc-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* --- Buttons ------------------------------------------------------------ */

.crc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: var(--crc-radius-sm);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}

.crc-btn[disabled] { opacity: .6; cursor: not-allowed; }
.crc-btn.is-loading i { animation: crc-spin 1s linear infinite; }
@keyframes crc-spin { to { transform: rotate(360deg); } }

.crc-btn-primary { background: var(--crc-accent); color: #fff; }
.crc-btn-primary:hover, .crc-btn-primary:focus { background: var(--crc-accent-hover); color: #fff; }

.crc-btn-ghost { background: var(--crc-surface); border-color: var(--crc-border); color: var(--crc-text); }
.crc-btn-ghost:hover:not([disabled]) { background: var(--crc-surface-2); border-color: #cbd5e1; color: var(--crc-ink); }

.crc-btn-danger-soft { background: var(--crc-danger-soft); border-color: #fecaca; color: var(--crc-danger); }
.crc-btn-danger-soft:hover:not([disabled]) { background: var(--crc-danger); border-color: var(--crc-danger); color: #fff; }

/* --- Cards / tiles ------------------------------------------------------- */

.crc-card {
    background: var(--crc-surface);
    border: 1px solid var(--crc-border);
    border-radius: var(--crc-radius);
    box-shadow: var(--crc-shadow);
    margin-bottom: 18px;
}

.crc-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* all tiles on one row while they fit */
    gap: 12px;
    padding: 18px 20px 0;
}

.crc-tile {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--crc-border);
    border-radius: 12px;
    background: var(--crc-surface);
}

.crc-tile-icon {
    flex: 0 0 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: var(--tile-soft);
    color: var(--tile-color);
    font-size: 17px;
}

.crc-tile-num {
    display: block;
    color: var(--crc-ink);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    direction: ltr;
    unicode-bidi: isolate;
    text-align: start;
}

.crc-tile-num.is-small { font-size: 16px; }
.crc-tile-lbl { display: block; color: var(--crc-muted); font-size: 12.5px; }

.crc-tile.t-blue   { --tile-color: var(--crc-accent);  --tile-soft: var(--crc-accent-soft); }
.crc-tile.t-green  { --tile-color: var(--crc-success); --tile-soft: var(--crc-success-soft); }
.crc-tile.t-violet { --tile-color: var(--crc-violet);  --tile-soft: var(--crc-violet-soft); }

/* --- States ------------------------------------------------------------- */

.crc-state { padding: 56px 20px; text-align: center; color: var(--crc-muted); }

.crc-state-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: var(--crc-accent-soft);
    color: var(--crc-accent);
    font-size: 22px;
}

.crc-state-title { margin: 0 0 6px; color: var(--crc-ink); font-size: 16px; font-weight: 700; }
.crc-state p { margin: 0 0 16px; }

/* --- DataTables chrome --------------------------------------------------- */

.crc-table-wrap { padding: 0 20px 18px; }

.crc .crc-dt-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    margin: 16px 0 14px;
}

.crc .dataTables_wrapper .dt-buttons { float: none; display: inline-flex; flex-wrap: wrap; gap: 8px; }

.crc .dataTables_wrapper .dt-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    height: 34px;
    padding: 0 14px;
    border: 1px solid var(--crc-border);
    border-radius: 9px;
    background: var(--crc-surface);
    background-image: none;
    box-shadow: none;
    color: var(--crc-text);
    font-size: 13px;
    line-height: 32px;
}

.crc .dataTables_wrapper .dt-button:hover:not(.disabled) {
    background: var(--crc-surface-2);
    background-image: none;
    border-color: #cbd5e1;
    color: var(--crc-ink);
}

.crc .dataTables_wrapper .dt-button i { color: var(--crc-muted); }

.crc .dataTables_wrapper .dataTables_filter { float: none; margin: 0; color: var(--crc-muted); font-size: 13px; }

.crc .dataTables_wrapper .dataTables_filter input {
    height: 34px;
    width: 240px;
    margin-inline-start: 8px;
    padding: 0 12px;
    border: 1px solid var(--crc-border);
    border-radius: 9px;
    background: var(--crc-surface);
}

.crc .dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--crc-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
    outline: none;
}

.crc .crc-dt-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
}

.crc .dataTables_wrapper .dataTables_info { padding: 0; color: var(--crc-muted); font-size: 13px; }
.crc .dataTables_wrapper .dataTables_paginate { float: none; padding: 0; }

.crc .dataTables_wrapper .dataTables_paginate .paginate_button {
    min-width: 34px;
    margin: 0 2px;
    padding: 5px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--crc-text) !important;
    background: none;
}

.crc .dataTables_wrapper .dataTables_paginate .paginate_button:hover { border-color: var(--crc-border); background: var(--crc-surface-2); }

.crc .dataTables_wrapper .dataTables_paginate .paginate_button.current,
.crc .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    border-color: var(--crc-accent);
    background: var(--crc-accent);
    color: #fff !important;
}

.crc .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.crc .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    border-color: transparent;
    background: none;
    color: var(--crc-faint) !important;
}

.crc .dataTables_wrapper .dataTables_processing {
    border: 1px solid var(--crc-border);
    border-radius: var(--crc-radius-sm);
    background: var(--crc-surface);
    box-shadow: var(--crc-shadow);
    color: var(--crc-muted);
}

.crc-scroll {
    max-height: 70vh;
    overflow: auto;
    border: 1px solid var(--crc-border);
    border-radius: 12px;
}

/* --- Table -------------------------------------------------------------- */

.crc table.crc-table {
    width: 100% !important;
    margin: 0 !important;
    border-collapse: separate;
    border-spacing: 0;
    border: 0;
}

.crc table.crc-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 11px 12px;
    padding-inline-end: 24px;
    border: 0;
    border-bottom: 1px solid var(--crc-border);
    background-color: var(--crc-surface-2);
    color: var(--crc-muted);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
    white-space: normal; /* long titles wrap instead of pushing the table off the page */
    vertical-align: middle;
    text-align: start;
}

.crc table.crc-table thead th:first-child { width: 44px; }

.crc table.crc-table thead .sorting,
.crc table.crc-table thead .sorting_asc,
.crc table.crc-table thead .sorting_desc { background-position: right 6px center; }

[dir="rtl"] .crc table.crc-table thead .sorting,
[dir="rtl"] .crc table.crc-table thead .sorting_asc,
[dir="rtl"] .crc table.crc-table thead .sorting_desc { background-position: left 6px center; }

.crc table.crc-table tbody td {
    padding: 12px;
    border: 0;
    border-bottom: 1px solid var(--crc-border);
    background: var(--crc-surface);
    color: var(--crc-text);
    vertical-align: middle;
    text-align: start;
}

.crc table.crc-table tbody tr:last-child td { border-bottom: 0; }
.crc table.crc-table tbody tr:hover td { background: #f8faff; }
.crc table.crc-table tbody td:first-child { color: var(--crc-faint); font-size: 12.5px; }

.crc table.crc-table td.dataTables_empty { padding: 40px 14px; color: var(--crc-muted); text-align: center; }

/* Message: title + one-line preview */
.crc-msg { display: flex; align-items: flex-start; gap: 12px; min-width: 260px; }

.crc-msg-icon {
    flex: 0 0 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--crc-accent-soft);
    color: var(--crc-accent);
    font-size: 14px;
}

.crc-msg-main { min-width: 0; max-width: 620px; line-height: 1.45; }
.crc-msg-main a { color: var(--crc-ink); font-weight: 700; }
.crc-msg-main a:hover { color: var(--crc-accent); }

.crc-msg-text {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 2px;
    color: var(--crc-muted);
    font-size: 12.5px;
}

.crc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

.crc-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--crc-surface-2);
    border: 1px solid var(--crc-border);
    color: var(--crc-muted);
    font-size: 11.5px;
}

.crc-date { display: flex; flex-direction: column; line-height: 1.35; white-space: nowrap; direction: ltr; align-items: flex-start; }
[dir="rtl"] .crc-date { align-items: flex-end; }
.crc-date b { color: var(--crc-ink); font-weight: 600; }
.crc-date small { color: var(--crc-muted); font-size: 12px; }

.crc-count {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 3px 12px;
    border-radius: 999px;
    background: var(--crc-success-soft);
    color: var(--crc-success);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* Row actions */
.crc-row-actions { display: inline-flex; gap: 6px; white-space: nowrap; }

.crc-icon-btn {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 14px;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}

.crc-icon-btn.is-view { background: var(--crc-accent-soft); color: var(--crc-accent); }
.crc-icon-btn.is-view:hover { background: var(--crc-accent); color: #fff; }
.crc-icon-btn.is-delete { background: var(--crc-danger-soft); border-color: #fecaca; color: var(--crc-danger); }
.crc-icon-btn.is-delete:hover { background: var(--crc-danger); border-color: var(--crc-danger); color: #fff; }

/* --- Small screens ------------------------------------------------------ */

@media (max-width: 767px) {
    .crc { padding-inline: 12px; }
    .crc-header-icon { display: none; }
    .crc-title { font-size: 20px; }
    .crc-actions, .crc-actions .crc-btn { width: 100%; }
    .crc-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-inline: 14px; }
    .crc-tile { padding: 10px; }
    .crc-tile-icon { display: none; }
    .crc-tile-num { font-size: 18px; }
    .crc-tile-num.is-small { font-size: 12px; }
    .crc-table-wrap { padding-inline: 14px; }
    .crc .dataTables_wrapper .dataTables_filter input { width: 100%; margin-inline-start: 0; }
    .crc-scroll { max-height: none; }
}

/* ==========================================================================
   Circular details (circ_details.blade.php), same .crc wrapper
   ========================================================================== */

.crc-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    color: var(--crc-muted);
    font-size: 13px;
    font-weight: 600;
}

.crc-back:hover { color: var(--crc-accent); }
[dir="rtl"] .crc-back i { transform: scaleX(-1); }

/* The message itself */
.crc-message { padding: 20px 22px; }

.crc-message-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    margin-bottom: 12px;
}

.crc-message-title { margin: 0; color: var(--crc-ink); font-size: 18px; font-weight: 700; }

.crc-message-body {
    padding: 14px 16px;
    border: 1px solid var(--crc-border);
    border-radius: 12px;
    background: var(--crc-surface-2);
    color: var(--crc-text);
    font-size: 14px;
    line-height: 1.9;
    white-space: pre-line;   /* keep the line breaks the admin typed */
    overflow-wrap: anywhere;
}

.crc-message .crc-tags { margin-top: 12px; }

.crc-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--crc-surface-2);
    border: 1px solid var(--crc-border);
    color: var(--crc-muted);
    font-size: 12.5px;
}

.crc-meta-chip i { color: var(--crc-accent); }
.crc-meta-chip b { color: var(--crc-ink); font-weight: 600; direction: ltr; unicode-bidi: isolate; }

.crc-tiles.is-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.crc-tile.t-amber { --tile-color: #d97706; --tile-soft: #fffbeb; }

.crc-tile-sub { display: block; color: var(--crc-faint); font-size: 11.5px; direction: ltr; unicode-bidi: isolate; text-align: start; }

/* Recipient cell */
.crc-emp { display: inline-flex; align-items: center; gap: 10px; min-width: 180px; }

.crc-emp::before {
    content: attr(data-initials);
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--crc-accent-soft);
    color: var(--crc-accent);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.crc-emp-main { line-height: 1.35; }
.crc-emp-main a { color: var(--crc-ink); font-weight: 700; }
.crc-emp-main a:hover { color: var(--crc-accent); }
.crc-emp-main small { display: block; color: var(--crc-muted); font-size: 12px; }

/* Read status */
.crc-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
}

.crc-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.crc-status.is-read   { background: var(--crc-success-soft); color: var(--crc-success); }
.crc-status.is-unread { background: var(--crc-surface-2); color: var(--crc-muted); border: 1px solid var(--crc-border); }
.crc-status-time { display: block; margin-top: 3px; white-space: nowrap; color: var(--crc-muted); font-size: 12px; direction: ltr; unicode-bidi: isolate; text-align: start; }

/* Reply bubble */
.crc-reply {
    position: relative;
    display: inline-block;
    max-width: 360px;
    padding: 7px 12px;
    border-radius: 12px;
    border-start-start-radius: 4px;
    background: var(--crc-accent-soft);
    color: #1e3a8a;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.crc-none { color: #cbd5e1; }

/* Location */
.crc-yes, .crc-no { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 12px; }
.crc-yes { background: var(--crc-success-soft); color: var(--crc-success); }
.crc-no  { background: var(--crc-danger-soft);  color: var(--crc-danger); }

.crc-map {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 3px 10px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: var(--crc-accent-soft);
    color: var(--crc-accent);
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
}

.crc-map:hover { background: var(--crc-accent); border-color: var(--crc-accent); color: #fff; }
.crc-map span { direction: ltr; unicode-bidi: isolate; }

.crc-help { color: var(--crc-faint); cursor: pointer; font-size: 13px; margin-inline-start: 4px; }
.crc-help:hover { color: var(--crc-accent); }

@media (max-width: 767px) {
    .crc-message { padding: 16px 14px; }
    .crc-tiles.is-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================================================
   Employee location requests (all_determine_location_requests.blade.php),
   same .crc wrapper and cells as the circular details page
   ========================================================================== */

button.crc-tile { width: 100%; text-align: start; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
button.crc-tile:hover { border-color: #cbd5e1; box-shadow: var(--crc-shadow); }
button.crc-tile.is-active,
button.crc-tile.is-active:hover { border-color: var(--tile-color); box-shadow: 0 0 0 3px var(--tile-soft); }
button.crc-tile:focus { outline: none; }
button.crc-tile:focus-visible { outline: 2px solid var(--crc-accent); outline-offset: 2px; }
.crc-tile.t-red { --tile-color: var(--crc-danger); --tile-soft: var(--crc-danger-soft); }

.crc-loc { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }

.crc-fake {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--crc-danger-soft);
    color: var(--crc-danger);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.crc-accuracy { color: var(--crc-muted); font-size: 11.5px; direction: ltr; unicode-bidi: isolate; }

/* status stripe on the first cell */
.crc table.crc-table tbody td:first-child { box-shadow: inset 3px 0 0 var(--row-status, transparent); }
[dir="rtl"] .crc table.crc-table tbody td:first-child { box-shadow: inset -3px 0 0 var(--row-status, transparent); }
.crc table.crc-table tr.st-received { --row-status: var(--crc-success); }
.crc table.crc-table tr.st-pending  { --row-status: #d97706; }
.crc table.crc-table tr.st-fake     { --row-status: var(--crc-danger); }
.crc table.crc-table tr.st-fake td  { background: #fffafa; }

/* ==========================================================================
   Send circular (send_circular.blade.php), same .crc wrapper
   ========================================================================== */

.crc-compose {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 22px;
    padding: 20px 22px;
}

.crc-fields { display: grid; gap: 14px; align-content: start; }
.crc-field { display: flex; flex-direction: column; gap: 6px; }

.crc-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.crc-label { margin: 0; color: var(--crc-muted); font-size: 12.5px; font-weight: 600; }
.crc-counter { color: var(--crc-faint); font-size: 11.5px; direction: ltr; unicode-bidi: isolate; }

.crc .crc-input {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--crc-border);
    border-radius: var(--crc-radius-sm);
    background: var(--crc-surface);
    box-shadow: none;
    color: var(--crc-ink);
    font-size: 14px;
}

.crc textarea.crc-input { height: auto; min-height: 140px; padding: 12px 14px; line-height: 1.8; resize: vertical; }
.crc .crc-input:focus { border-color: var(--crc-accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); outline: none; }
.crc .crc-input.is-invalid { border-color: #fca5a5; box-shadow: 0 0 0 3px var(--crc-danger-soft); }

/* options as switch cards */
.crc-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.crc-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 11px 14px;
    border: 1px solid var(--crc-border);
    border-radius: 12px;
    background: var(--crc-surface);
    font-weight: normal;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.crc-option:hover { border-color: #cbd5e1; }
.crc-option.is-on { border-color: #bfdbfe; background: var(--crc-accent-soft); }
.crc-option-text { display: flex; align-items: center; gap: 10px; color: var(--crc-ink); font-size: 13px; font-weight: 600; line-height: 1.5; }
.crc-option-text > i { width: 16px; text-align: center; color: var(--crc-accent); }

.crc-option input { position: absolute; opacity: 0; pointer-events: none; }

.crc-switch { position: relative; flex: 0 0 36px; width: 36px; height: 20px; border-radius: 999px; background: #cbd5e1; transition: background .15s; }
.crc-switch::after {
    content: "";
    position: absolute;
    top: 2px;
    inset-inline-start: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .25);
    transition: inset-inline-start .15s;
}
.crc-option input:checked ~ .crc-switch { background: var(--crc-accent); }
.crc-option input:checked ~ .crc-switch::after { inset-inline-start: 18px; }
.crc-option input:focus-visible ~ .crc-switch { outline: 2px solid var(--crc-accent); outline-offset: 2px; }

.crc-send-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.crc-send-row .crc-btn { height: 44px; padding: 0 22px; }
.crc-send-hint { color: var(--crc-muted); font-size: 12.5px; }
.crc-send-hint b { color: var(--crc-ink); }

/* phone notification preview */
.crc-preview { align-self: start; }
.crc-preview-label { margin: 0 0 8px; color: var(--crc-muted); font-size: 12.5px; font-weight: 600; }

.crc-phone {
    padding: 14px 12px 22px;
    border-radius: 28px;
    background: linear-gradient(160deg, #1e3a8a, #2563eb 60%, #60a5fa);
    box-shadow: inset 0 0 0 6px #0f172a, 0 12px 30px rgba(15, 23, 42, .18);
}

.crc-phone-notch { width: 70px; height: 6px; margin: 2px auto 16px; border-radius: 999px; background: rgba(255, 255, 255, .35); }

.crc-notif {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 6px 16px rgba(15, 23, 42, .18);
}

.crc-notif-app { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; color: var(--crc-muted); font-size: 11.5px; }
.crc-notif-app span:first-child { width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; background: var(--crc-accent); color: #fff; font-size: 10px; }
.crc-notif-title { color: var(--crc-ink); font-size: 14px; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.crc-notif-text {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 3px;
    color: var(--crc-text);
    font-size: 12.5px;
    line-height: 1.6;
    white-space: pre-line;
    overflow-wrap: anywhere;
}
.crc-notif .is-placeholder { color: var(--crc-faint); font-weight: 400; }

/* recipients toolbar */
.crc-recipients-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 16px;
    padding: 18px 20px 0;
}

.crc-recipients-title { margin: 0; color: var(--crc-ink); font-size: 16px; font-weight: 700; }
.crc-recipients-tools { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }

.crc .crc-select {
    height: 36px;
    min-width: 200px;
    padding: 0 10px;
    border: 1px solid var(--crc-border);
    border-radius: 9px;
    background-color: var(--crc-surface);
    color: var(--crc-ink);
}

.crc-selected-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--crc-accent-soft);
    color: var(--crc-accent);
    font-size: 13px;
    font-weight: 700;
}

.crc table.crc-table input[type="checkbox"] { width: 16px; height: 16px; margin: 0; accent-color: var(--crc-accent); cursor: pointer; vertical-align: middle; }
.crc table.crc-table tbody tr.is-selected td { background: #f5f8ff; }

.crc-email { display: inline-flex; align-items: center; gap: 6px; color: var(--crc-text); font-size: 13px; direction: ltr; unicode-bidi: isolate; }
.crc-unverified { color: var(--crc-danger); cursor: pointer; }

.crc-dept {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--crc-surface-2);
    border: 1px solid var(--crc-border);
    color: var(--crc-text);
    font-size: 12.5px;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .crc-compose { grid-template-columns: 1fr; }
    .crc-phone { max-width: 320px; } /* preview below the form, the fields come first */
}

@media (max-width: 767px) {
    .crc-compose { padding: 16px 14px; }
    .crc-options { grid-template-columns: 1fr; }
    .crc-send-row .crc-btn { width: 100%; }
    .crc-recipients-head { padding-inline: 14px; }
    .crc .crc-select { min-width: 0; width: 100%; }
    .crc-recipients-tools, .crc-recipients-tools > * { width: 100%; }
}
