.fancy-groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.fancy-group-card {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.fancy-group-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.04);
    border-color: #cbd5e1;
}

.fancy-card-color-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    z-index: 1;
}

.fancy-card-header {
    padding: 1.5rem 1.5rem 1rem 2rem;
    position: relative;
    z-index: 2;
    flex: 1;
}

.fancy-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.fancy-title-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.fancy-icon-container {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.fancy-title-content h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.01em;
}

.fancy-role-badge {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid #e2e8f0;
}

.fancy-metadata {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.fancy-description {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fancy-card-footer {
    padding: 1rem 1.5rem 1rem 2rem;
    background: rgba(248, 250, 252, 0.8);
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.fancy-stat {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.fancy-stat-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
}

.fancy-stat-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.fancy-btn {
    background: white;
    border: 1px solid #e2e8f0;
    color: #334155;
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.fancy-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.fancy-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px dashed #cbd5e1;
    margin-top: 2rem;
}

.fancy-empty-state p {
    color: #64748b;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.mygroups-primary-btn,
.mygroups-secondary-btn,
.mygroups-danger-btn {
    border: 0;
    border-radius: 8px;
    min-height: 40px;
    padding: 0 1rem;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.mygroups-primary-btn {
    color: #ffffff;
    background: linear-gradient(135deg, #317a9b, #1f7a5a);
    box-shadow: 0 10px 22px rgba(49, 122, 155, 0.24);
}

.mygroups-primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(31, 122, 90, 0.26);
}

.mygroups-secondary-btn {
    color: #334155;
    background: #ffffff;
    border: 1px solid #d7dee8;
}

.mygroups-secondary-btn:hover {
    background: #f8fafc;
    border-color: #b8c4d3;
}

.mygroups-danger-btn {
    color: #b42318;
    background: #fff5f4;
    border: 1px solid #f3b4ad;
}

.mygroups-danger-btn:hover {
    background: #fee4e2;
    border-color: #fda29b;
    transform: translateY(-1px);
}

.mygroups-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2500;
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.mygroups-modal {
    width: min(520px, 100%);
    max-height: min(760px, calc(100vh - 3rem));
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.32);
    animation: mygroupsModalIn 0.24s ease-out;
}

@keyframes mygroupsModalIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.mygroups-modal-header {
    padding: 1.25rem 1.35rem;
    background:
        linear-gradient(135deg, rgba(49, 122, 155, 0.1), rgba(31, 122, 90, 0.08)),
        #ffffff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.mygroups-modal-title {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    min-width: 0;
}

.mygroups-modal-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    color: #317a9b;
    background: #ffffff;
    border: 1px solid rgba(49, 122, 155, 0.16);
    box-shadow: 0 8px 20px rgba(49, 122, 155, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.mygroups-modal-title h2 {
    margin: 0;
    color: #0f172a;
    font-size: 1.35rem;
    line-height: 1.2;
    font-weight: 850;
}

.mygroups-modal-title p {
    margin: 0.25rem 0 0;
    color: #64748b;
    font-size: 0.86rem;
    line-height: 1.4;
}

.mygroups-close-btn {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    color: #475569;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    flex: 0 0 auto;
}

.mygroups-close-btn:hover {
    background: #ffffff;
    color: #0f172a;
    transform: translateY(-1px);
}

.mygroups-modal-form {
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.mygroups-modal-body {
    padding: 1.35rem;
    display: grid;
    gap: 1rem;
    overflow-y: auto;
}

.mygroups-field {
    display: grid;
    gap: 0.45rem;
}

.mygroups-field label {
    color: #334155;
    font-size: 0.8rem;
    font-weight: 800;
}

.mygroups-control {
    width: 100%;
    min-width: 0;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    color: #0f172a;
    font: inherit;
    font-size: 0.93rem;
    padding: 0.78rem 0.9rem;
    outline: none;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.mygroups-control::placeholder {
    color: #94a3b8;
}

.mygroups-control:focus {
    background: #ffffff;
    border-color: #317a9b;
    box-shadow: 0 0 0 4px rgba(49, 122, 155, 0.14);
}

.mygroups-select {
    cursor: pointer;
}

.mygroups-textarea {
    min-height: 104px;
    resize: vertical;
}

.mygroups-modal-footer {
    padding: 1rem 1.35rem 1.25rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.65rem;
}

.mygroups-footer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
}

@media (max-width: 560px) {
    .mygroups-modal-overlay {
        padding: 0.75rem;
    }

    .mygroups-modal-header,
    .mygroups-modal-body,
    .mygroups-modal-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .mygroups-modal-title h2 {
        font-size: 1.12rem;
    }

    .mygroups-modal-footer {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .mygroups-footer-actions {
        flex-direction: column-reverse;
    }

    .mygroups-modal-footer .mygroups-primary-btn,
    .mygroups-modal-footer .mygroups-secondary-btn,
    .mygroups-modal-footer .mygroups-danger-btn {
        width: 100%;
    }
}

.mobile-mygroups-view {
    width: 100%;
    min-width: 0;
    padding: 0 !important;
    background: transparent !important;
}

.mobile-mygroups-view .members-main-content {
    width: 100%;
    min-width: 0;
    padding: 0 !important;
}

.mobile-mygroups-view .members-view-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0 0 0.75rem;
    padding: 0.2rem 0.05rem 0.1rem;
}

.mobile-mygroups-view .view-title {
    min-width: 0;
    gap: 0.45rem;
}

.mobile-mygroups-view .view-title svg,
.mobile-mygroups-view .mobile-mygroups-count {
    display: none !important;
}

.mobile-mygroups-view .view-title h1 {
    margin: 0;
    color: #172033;
    font-size: 1.15rem;
    line-height: 1.2;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.mobile-mygroups-view .header-right {
    flex: 0 0 auto;
}

.mobile-mygroups-view .header-right .mygroups-primary-btn {
    min-height: 38px;
    border-radius: 8px;
    padding: 0.45rem 0.65rem;
    font-size: 0.75rem;
}

.mobile-mygroups-view .premium-toolbar {
    padding: 0 0 0.75rem !important;
    margin: 0 !important;
    overflow-x: auto;
    scrollbar-width: none;
}

.mobile-mygroups-view .premium-toolbar::-webkit-scrollbar {
    display: none;
}

.mobile-mygroups-view .toolbar-left,
.mobile-mygroups-view .tab-group-modern {
    min-width: 0;
}

.mobile-mygroups-view .tab-group-modern {
    display: inline-flex;
    gap: 0.45rem;
    border: 0;
    background: transparent;
}

.mobile-mygroups-view .modern-tab-btn {
    flex: 0 0 auto;
    min-height: 34px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #ffffff;
    color: #475569;
    padding: 0.38rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 850;
    white-space: nowrap;
}

.mobile-mygroups-view .modern-tab-btn.active {
    border-color: #90c7dc;
    background: #e7f2f7;
    color: #174f68;
}

.mobile-mygroups-view .fancy-groups-grid {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 0;
}

.mobile-mygroups-view .fancy-group-card {
    min-width: 0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.mobile-mygroups-view .fancy-group-card:hover {
    transform: none;
}

.mobile-mygroups-view .fancy-card-color-bar {
    width: 4px;
}

.mobile-mygroups-view .fancy-card-header {
    padding: 0.85rem 0.85rem 0.65rem 1rem;
}

.mobile-mygroups-view .fancy-title-row {
    gap: 0.65rem;
}

.mobile-mygroups-view .fancy-title-content {
    min-width: 0;
    gap: 0.55rem;
}

.mobile-mygroups-view .fancy-icon-container {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    font-size: 1rem;
}

.mobile-mygroups-view .fancy-title-content h3 {
    min-width: 0;
    font-size: 0.98rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.mobile-mygroups-view .fancy-role-badge {
    max-width: 38%;
    padding: 0.22rem 0.45rem;
    font-size: 0.62rem;
    line-height: 1.25;
    text-align: center;
    overflow-wrap: anywhere;
}

.mobile-mygroups-view .fancy-metadata {
    margin-bottom: 0.4rem;
    font-size: 0.68rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.mobile-mygroups-view .fancy-description {
    font-size: 0.8rem;
    line-height: 1.45;
}

.mobile-mygroups-view .fancy-card-footer {
    align-items: stretch;
    gap: 0.65rem;
    padding: 0.7rem 0.85rem 0.8rem 1rem;
}

.mobile-mygroups-view .fancy-card-footer > div:last-child {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.45rem !important;
    min-width: 0;
}

.mobile-mygroups-view .fancy-stat {
    flex: 0 0 auto;
}

.mobile-mygroups-view .fancy-stat-value {
    font-size: 1.05rem;
}

.mobile-mygroups-view .fancy-stat-label {
    font-size: 0.68rem;
}

.mobile-mygroups-view .fancy-btn {
    width: 100%;
    min-height: 36px;
    border-radius: 8px;
    padding: 0.45rem 0.65rem;
    font-size: 0.76rem;
    white-space: normal;
}

.mobile-mygroups-view .fancy-empty-state {
    margin-top: 0.75rem;
    padding: 1.25rem;
    border-radius: 8px;
    background: #ffffff;
}

.mobile-mygroups-view .mygroups-modal-overlay {
    align-items: flex-end;
    padding: 0.75rem;
    z-index: 7000;
}

.mobile-mygroups-view .mygroups-modal {
    width: 100%;
    max-height: calc(100vh - 1.5rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    border-radius: 16px 16px 8px 8px;
}

.mobile-mygroups-view .mygroups-modal-body {
    padding: 1rem;
}

.mobile-mygroups-view .mygroups-control {
    font-size: 16px;
}

.mobile-mygroups-view .mygroups-modal-footer {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
}
/*!
 * Quill Editor v1.3.7
 * https://quilljs.com/
 * Copyright (c) 2014, Jason Chen
 * Copyright (c) 2013, salesforce.com
 */
.ql-container {
  box-sizing: border-box;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 13px;
  height: 100%;
  margin: 0px;
  position: relative;
}
.ql-container.ql-disabled .ql-tooltip {
  visibility: hidden;
}
.ql-container.ql-disabled .ql-editor ul[data-checked] > li::before {
  pointer-events: none;
}
.ql-clipboard {
  left: -100000px;
  height: 1px;
  overflow-y: hidden;
  position: absolute;
  top: 50%;
}
.ql-clipboard p {
  margin: 0;
  padding: 0;
}
.ql-editor {
  box-sizing: border-box;
  line-height: 1.42;
  height: 100%;
  outline: none;
  overflow-y: auto;
  padding: 12px 15px;
  tab-size: 4;
  -moz-tab-size: 4;
  text-align: left;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.ql-editor > * {
  cursor: text;
}
.ql-editor p,
.ql-editor ol,
.ql-editor ul,
.ql-editor pre,
.ql-editor blockquote,
.ql-editor h1,
.ql-editor h2,
.ql-editor h3,
.ql-editor h4,
.ql-editor h5,
.ql-editor h6 {
  margin: 0;
  padding: 0;
  counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;
}
.ql-editor ol,
.ql-editor ul {
  padding-left: 1.5em;
}
.ql-editor ol > li,
.ql-editor ul > li {
  list-style-type: none;
}
.ql-editor ul > li::before {
  content: '\2022';
}
.ql-editor ul[data-checked=true],
.ql-editor ul[data-checked=false] {
  pointer-events: none;
}
.ql-editor ul[data-checked=true] > li *,
.ql-editor ul[data-checked=false] > li * {
  pointer-events: all;
}
.ql-editor ul[data-checked=true] > li::before,
.ql-editor ul[data-checked=false] > li::before {
  color: #777;
  cursor: pointer;
  pointer-events: all;
}
.ql-editor ul[data-checked=true] > li::before {
  content: '\2611';
}
.ql-editor ul[data-checked=false] > li::before {
  content: '\2610';
}
.ql-editor li::before {
  display: inline-block;
  white-space: nowrap;
  width: 1.2em;
}
.ql-editor li:not(.ql-direction-rtl)::before {
  margin-left: -1.5em;
  margin-right: 0.3em;
  text-align: right;
}
.ql-editor li.ql-direction-rtl::before {
  margin-left: 0.3em;
  margin-right: -1.5em;
}
.ql-editor ol li:not(.ql-direction-rtl),
.ql-editor ul li:not(.ql-direction-rtl) {
  padding-left: 1.5em;
}
.ql-editor ol li.ql-direction-rtl,
.ql-editor ul li.ql-direction-rtl {
  padding-right: 1.5em;
}
.ql-editor ol li {
  counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;
  counter-increment: list-0;
}
.ql-editor ol li:before {
  content: counter(list-0, decimal) '. ';
}
.ql-editor ol li.ql-indent-1 {
  counter-increment: list-1;
}
.ql-editor ol li.ql-indent-1:before {
  content: counter(list-1, lower-alpha) '. ';
}
.ql-editor ol li.ql-indent-1 {
  counter-reset: list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;
}
.ql-editor ol li.ql-indent-2 {
  counter-increment: list-2;
}
.ql-editor ol li.ql-indent-2:before {
  content: counter(list-2, lower-roman) '. ';
}
.ql-editor ol li.ql-indent-2 {
  counter-reset: list-3 list-4 list-5 list-6 list-7 list-8 list-9;
}
.ql-editor ol li.ql-indent-3 {
  counter-increment: list-3;
}
.ql-editor ol li.ql-indent-3:before {
  content: counter(list-3, decimal) '. ';
}
.ql-editor ol li.ql-indent-3 {
  counter-reset: list-4 list-5 list-6 list-7 list-8 list-9;
}
.ql-editor ol li.ql-indent-4 {
  counter-increment: list-4;
}
.ql-editor ol li.ql-indent-4:before {
  content: counter(list-4, lower-alpha) '. ';
}
.ql-editor ol li.ql-indent-4 {
  counter-reset: list-5 list-6 list-7 list-8 list-9;
}
.ql-editor ol li.ql-indent-5 {
  counter-increment: list-5;
}
.ql-editor ol li.ql-indent-5:before {
  content: counter(list-5, lower-roman) '. ';
}
.ql-editor ol li.ql-indent-5 {
  counter-reset: list-6 list-7 list-8 list-9;
}
.ql-editor ol li.ql-indent-6 {
  counter-increment: list-6;
}
.ql-editor ol li.ql-indent-6:before {
  content: counter(list-6, decimal) '. ';
}
.ql-editor ol li.ql-indent-6 {
  counter-reset: list-7 list-8 list-9;
}
.ql-editor ol li.ql-indent-7 {
  counter-increment: list-7;
}
.ql-editor ol li.ql-indent-7:before {
  content: counter(list-7, lower-alpha) '. ';
}
.ql-editor ol li.ql-indent-7 {
  counter-reset: list-8 list-9;
}
.ql-editor ol li.ql-indent-8 {
  counter-increment: list-8;
}
.ql-editor ol li.ql-indent-8:before {
  content: counter(list-8, lower-roman) '. ';
}
.ql-editor ol li.ql-indent-8 {
  counter-reset: list-9;
}
.ql-editor ol li.ql-indent-9 {
  counter-increment: list-9;
}
.ql-editor ol li.ql-indent-9:before {
  content: counter(list-9, decimal) '. ';
}
.ql-editor .ql-indent-1:not(.ql-direction-rtl) {
  padding-left: 3em;
}
.ql-editor li.ql-indent-1:not(.ql-direction-rtl) {
  padding-left: 4.5em;
}
.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right {
  padding-right: 3em;
}
.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right {
  padding-right: 4.5em;
}
.ql-editor .ql-indent-2:not(.ql-direction-rtl) {
  padding-left: 6em;
}
.ql-editor li.ql-indent-2:not(.ql-direction-rtl) {
  padding-left: 7.5em;
}
.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right {
  padding-right: 6em;
}
.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right {
  padding-right: 7.5em;
}
.ql-editor .ql-indent-3:not(.ql-direction-rtl) {
  padding-left: 9em;
}
.ql-editor li.ql-indent-3:not(.ql-direction-rtl) {
  padding-left: 10.5em;
}
.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right {
  padding-right: 9em;
}
.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right {
  padding-right: 10.5em;
}
.ql-editor .ql-indent-4:not(.ql-direction-rtl) {
  padding-left: 12em;
}
.ql-editor li.ql-indent-4:not(.ql-direction-rtl) {
  padding-left: 13.5em;
}
.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right {
  padding-right: 12em;
}
.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right {
  padding-right: 13.5em;
}
.ql-editor .ql-indent-5:not(.ql-direction-rtl) {
  padding-left: 15em;
}
.ql-editor li.ql-indent-5:not(.ql-direction-rtl) {
  padding-left: 16.5em;
}
.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right {
  padding-right: 15em;
}
.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right {
  padding-right: 16.5em;
}
.ql-editor .ql-indent-6:not(.ql-direction-rtl) {
  padding-left: 18em;
}
.ql-editor li.ql-indent-6:not(.ql-direction-rtl) {
  padding-left: 19.5em;
}
.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right {
  padding-right: 18em;
}
.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right {
  padding-right: 19.5em;
}
.ql-editor .ql-indent-7:not(.ql-direction-rtl) {
  padding-left: 21em;
}
.ql-editor li.ql-indent-7:not(.ql-direction-rtl) {
  padding-left: 22.5em;
}
.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right {
  padding-right: 21em;
}
.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right {
  padding-right: 22.5em;
}
.ql-editor .ql-indent-8:not(.ql-direction-rtl) {
  padding-left: 24em;
}
.ql-editor li.ql-indent-8:not(.ql-direction-rtl) {
  padding-left: 25.5em;
}
.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right {
  padding-right: 24em;
}
.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right {
  padding-right: 25.5em;
}
.ql-editor .ql-indent-9:not(.ql-direction-rtl) {
  padding-left: 27em;
}
.ql-editor li.ql-indent-9:not(.ql-direction-rtl) {
  padding-left: 28.5em;
}
.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right {
  padding-right: 27em;
}
.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right {
  padding-right: 28.5em;
}
.ql-editor .ql-video {
  display: block;
  max-width: 100%;
}
.ql-editor .ql-video.ql-align-center {
  margin: 0 auto;
}
.ql-editor .ql-video.ql-align-right {
  margin: 0 0 0 auto;
}
.ql-editor .ql-bg-black {
  background-color: #000;
}
.ql-editor .ql-bg-red {
  background-color: #e60000;
}
.ql-editor .ql-bg-orange {
  background-color: #f90;
}
.ql-editor .ql-bg-yellow {
  background-color: #ff0;
}
.ql-editor .ql-bg-green {
  background-color: #008a00;
}
.ql-editor .ql-bg-blue {
  background-color: #06c;
}
.ql-editor .ql-bg-purple {
  background-color: #93f;
}
.ql-editor .ql-color-white {
  color: #fff;
}
.ql-editor .ql-color-red {
  color: #e60000;
}
.ql-editor .ql-color-orange {
  color: #f90;
}
.ql-editor .ql-color-yellow {
  color: #ff0;
}
.ql-editor .ql-color-green {
  color: #008a00;
}
.ql-editor .ql-color-blue {
  color: #06c;
}
.ql-editor .ql-color-purple {
  color: #93f;
}
.ql-editor .ql-font-serif {
  font-family: Georgia, Times New Roman, serif;
}
.ql-editor .ql-font-monospace {
  font-family: Monaco, Courier New, monospace;
}
.ql-editor .ql-size-small {
  font-size: 0.75em;
}
.ql-editor .ql-size-large {
  font-size: 1.5em;
}
.ql-editor .ql-size-huge {
  font-size: 2.5em;
}
.ql-editor .ql-direction-rtl {
  direction: rtl;
  text-align: inherit;
}
.ql-editor .ql-align-center {
  text-align: center;
}
.ql-editor .ql-align-justify {
  text-align: justify;
}
.ql-editor .ql-align-right {
  text-align: right;
}
.ql-editor.ql-blank::before {
  color: rgba(0,0,0,0.6);
  content: attr(data-placeholder);
  font-style: italic;
  left: 15px;
  pointer-events: none;
  position: absolute;
  right: 15px;
}
.ql-snow.ql-toolbar:after,
.ql-snow .ql-toolbar:after {
  clear: both;
  content: '';
  display: table;
}
.ql-snow.ql-toolbar button,
.ql-snow .ql-toolbar button {
  background: none;
  border: none;
  cursor: pointer;
  display: inline-block;
  float: left;
  height: 24px;
  padding: 3px 5px;
  width: 28px;
}
.ql-snow.ql-toolbar button svg,
.ql-snow .ql-toolbar button svg {
  float: left;
  height: 100%;
}
.ql-snow.ql-toolbar button:active:hover,
.ql-snow .ql-toolbar button:active:hover {
  outline: none;
}
.ql-snow.ql-toolbar input.ql-image[type=file],
.ql-snow .ql-toolbar input.ql-image[type=file] {
  display: none;
}
.ql-snow.ql-toolbar button:hover,
.ql-snow .ql-toolbar button:hover,
.ql-snow.ql-toolbar button:focus,
.ql-snow .ql-toolbar button:focus,
.ql-snow.ql-toolbar button.ql-active,
.ql-snow .ql-toolbar button.ql-active,
.ql-snow.ql-toolbar .ql-picker-label:hover,
.ql-snow .ql-toolbar .ql-picker-label:hover,
.ql-snow.ql-toolbar .ql-picker-label.ql-active,
.ql-snow .ql-toolbar .ql-picker-label.ql-active,
.ql-snow.ql-toolbar .ql-picker-item:hover,
.ql-snow .ql-toolbar .ql-picker-item:hover,
.ql-snow.ql-toolbar .ql-picker-item.ql-selected,
.ql-snow .ql-toolbar .ql-picker-item.ql-selected {
  color: #06c;
}
.ql-snow.ql-toolbar button:hover .ql-fill,
.ql-snow .ql-toolbar button:hover .ql-fill,
.ql-snow.ql-toolbar button:focus .ql-fill,
.ql-snow .ql-toolbar button:focus .ql-fill,
.ql-snow.ql-toolbar button.ql-active .ql-fill,
.ql-snow .ql-toolbar button.ql-active .ql-fill,
.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,
.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,
.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,
.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,
.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,
.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,
.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,
.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,
.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,
.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,
.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,
.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,
.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,
.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,
.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,
.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,
.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,
.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,
.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,
.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,
.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,
.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill {
  fill: #06c;
}
.ql-snow.ql-toolbar button:hover .ql-stroke,
.ql-snow .ql-toolbar button:hover .ql-stroke,
.ql-snow.ql-toolbar button:focus .ql-stroke,
.ql-snow .ql-toolbar button:focus .ql-stroke,
.ql-snow.ql-toolbar button.ql-active .ql-stroke,
.ql-snow .ql-toolbar button.ql-active .ql-stroke,
.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,
.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,
.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,
.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,
.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,
.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,
.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,
.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,
.ql-snow.ql-toolbar button:hover .ql-stroke-miter,
.ql-snow .ql-toolbar button:hover .ql-stroke-miter,
.ql-snow.ql-toolbar button:focus .ql-stroke-miter,
.ql-snow .ql-toolbar button:focus .ql-stroke-miter,
.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,
.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,
.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,
.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,
.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,
.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,
.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,
.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,
.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,
.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter {
  stroke: #06c;
}
@media (pointer: coarse) {
  .ql-snow.ql-toolbar button:hover:not(.ql-active),
  .ql-snow .ql-toolbar button:hover:not(.ql-active) {
    color: #444;
  }
  .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,
  .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,
  .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,
  .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill {
    fill: #444;
  }
  .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,
  .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,
  .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,
  .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter {
    stroke: #444;
  }
}
.ql-snow {
  box-sizing: border-box;
}
.ql-snow * {
  box-sizing: border-box;
}
.ql-snow .ql-hidden {
  display: none;
}
.ql-snow .ql-out-bottom,
.ql-snow .ql-out-top {
  visibility: hidden;
}
.ql-snow .ql-tooltip {
  position: absolute;
  transform: translateY(10px);
}
.ql-snow .ql-tooltip a {
  cursor: pointer;
  text-decoration: none;
}
.ql-snow .ql-tooltip.ql-flip {
  transform: translateY(-10px);
}
.ql-snow .ql-formats {
  display: inline-block;
  vertical-align: middle;
}
.ql-snow .ql-formats:after {
  clear: both;
  content: '';
  display: table;
}
.ql-snow .ql-stroke {
  fill: none;
  stroke: #444;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}
.ql-snow .ql-stroke-miter {
  fill: none;
  stroke: #444;
  stroke-miterlimit: 10;
  stroke-width: 2;
}
.ql-snow .ql-fill,
.ql-snow .ql-stroke.ql-fill {
  fill: #444;
}
.ql-snow .ql-empty {
  fill: none;
}
.ql-snow .ql-even {
  fill-rule: evenodd;
}
.ql-snow .ql-thin,
.ql-snow .ql-stroke.ql-thin {
  stroke-width: 1;
}
.ql-snow .ql-transparent {
  opacity: 0.4;
}
.ql-snow .ql-direction svg:last-child {
  display: none;
}
.ql-snow .ql-direction.ql-active svg:last-child {
  display: inline;
}
.ql-snow .ql-direction.ql-active svg:first-child {
  display: none;
}
.ql-snow .ql-editor h1 {
  font-size: 2em;
}
.ql-snow .ql-editor h2 {
  font-size: 1.5em;
}
.ql-snow .ql-editor h3 {
  font-size: 1.17em;
}
.ql-snow .ql-editor h4 {
  font-size: 1em;
}
.ql-snow .ql-editor h5 {
  font-size: 0.83em;
}
.ql-snow .ql-editor h6 {
  font-size: 0.67em;
}
.ql-snow .ql-editor a {
  text-decoration: underline;
}
.ql-snow .ql-editor blockquote {
  border-left: 4px solid #ccc;
  margin-bottom: 5px;
  margin-top: 5px;
  padding-left: 16px;
}
.ql-snow .ql-editor code,
.ql-snow .ql-editor pre {
  background-color: #f0f0f0;
  border-radius: 3px;
}
.ql-snow .ql-editor pre {
  white-space: pre-wrap;
  margin-bottom: 5px;
  margin-top: 5px;
  padding: 5px 10px;
}
.ql-snow .ql-editor code {
  font-size: 85%;
  padding: 2px 4px;
}
.ql-snow .ql-editor pre.ql-syntax {
  background-color: #23241f;
  color: #f8f8f2;
  overflow: visible;
}
.ql-snow .ql-editor img {
  max-width: 100%;
}
.ql-snow .ql-picker {
  color: #444;
  display: inline-block;
  float: left;
  font-size: 14px;
  font-weight: 500;
  height: 24px;
  position: relative;
  vertical-align: middle;
}
.ql-snow .ql-picker-label {
  cursor: pointer;
  display: inline-block;
  height: 100%;
  padding-left: 8px;
  padding-right: 2px;
  position: relative;
  width: 100%;
}
.ql-snow .ql-picker-label::before {
  display: inline-block;
  line-height: 22px;
}
.ql-snow .ql-picker-options {
  background-color: #fff;
  display: none;
  min-width: 100%;
  padding: 4px 8px;
  position: absolute;
  white-space: nowrap;
}
.ql-snow .ql-picker-options .ql-picker-item {
  cursor: pointer;
  display: block;
  padding-bottom: 5px;
  padding-top: 5px;
}
.ql-snow .ql-picker.ql-expanded .ql-picker-label {
  color: #ccc;
  z-index: 2;
}
.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill {
  fill: #ccc;
}
.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke {
  stroke: #ccc;
}
.ql-snow .ql-picker.ql-expanded .ql-picker-options {
  display: block;
  margin-top: -1px;
  top: 100%;
  z-index: 1;
}
.ql-snow .ql-color-picker,
.ql-snow .ql-icon-picker {
  width: 28px;
}
.ql-snow .ql-color-picker .ql-picker-label,
.ql-snow .ql-icon-picker .ql-picker-label {
  padding: 2px 4px;
}
.ql-snow .ql-color-picker .ql-picker-label svg,
.ql-snow .ql-icon-picker .ql-picker-label svg {
  right: 4px;
}
.ql-snow .ql-icon-picker .ql-picker-options {
  padding: 4px 0px;
}
.ql-snow .ql-icon-picker .ql-picker-item {
  height: 24px;
  width: 24px;
  padding: 2px 4px;
}
.ql-snow .ql-color-picker .ql-picker-options {
  padding: 3px 5px;
  width: 152px;
}
.ql-snow .ql-color-picker .ql-picker-item {
  border: 1px solid transparent;
  float: left;
  height: 16px;
  margin: 2px;
  padding: 0px;
  width: 16px;
}
.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg {
  position: absolute;
  margin-top: -9px;
  right: 0;
  top: 50%;
  width: 18px;
}
.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=''])::before,
.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=''])::before,
.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=''])::before,
.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=''])::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=''])::before,
.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=''])::before {
  content: attr(data-label);
}
.ql-snow .ql-picker.ql-header {
  width: 98px;
}
.ql-snow .ql-picker.ql-header .ql-picker-label::before,
.ql-snow .ql-picker.ql-header .ql-picker-item::before {
  content: 'Normal';
}
.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]::before,
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]::before {
  content: 'Heading 1';
}
.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]::before,
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]::before {
  content: 'Heading 2';
}
.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]::before,
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]::before {
  content: 'Heading 3';
}
.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]::before,
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]::before {
  content: 'Heading 4';
}
.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]::before,
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]::before {
  content: 'Heading 5';
}
.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]::before,
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]::before {
  content: 'Heading 6';
}
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]::before {
  font-size: 2em;
}
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]::before {
  font-size: 1.5em;
}
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]::before {
  font-size: 1.17em;
}
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]::before {
  font-size: 1em;
}
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]::before {
  font-size: 0.83em;
}
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]::before {
  font-size: 0.67em;
}
.ql-snow .ql-picker.ql-font {
  width: 108px;
}
.ql-snow .ql-picker.ql-font .ql-picker-label::before,
.ql-snow .ql-picker.ql-font .ql-picker-item::before {
  content: 'Sans Serif';
}
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before {
  content: 'Serif';
}
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before {
  content: 'Monospace';
}
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before {
  font-family: Georgia, Times New Roman, serif;
}
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before {
  font-family: Monaco, Courier New, monospace;
}
.ql-snow .ql-picker.ql-size {
  width: 98px;
}
.ql-snow .ql-picker.ql-size .ql-picker-label::before,
.ql-snow .ql-picker.ql-size .ql-picker-item::before {
  content: 'Normal';
}
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]::before,
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before {
  content: 'Small';
}
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]::before,
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before {
  content: 'Large';
}
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]::before,
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before {
  content: 'Huge';
}
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before {
  font-size: 10px;
}
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before {
  font-size: 18px;
}
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before {
  font-size: 32px;
}
.ql-snow .ql-color-picker.ql-background .ql-picker-item {
  background-color: #fff;
}
.ql-snow .ql-color-picker.ql-color .ql-picker-item {
  background-color: #000;
}
.ql-toolbar.ql-snow {
  border: 1px solid #ccc;
  box-sizing: border-box;
  font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
  padding: 8px;
}
.ql-toolbar.ql-snow .ql-formats {
  margin-right: 15px;
}
.ql-toolbar.ql-snow .ql-picker-label {
  border: 1px solid transparent;
}
.ql-toolbar.ql-snow .ql-picker-options {
  border: 1px solid transparent;
  box-shadow: rgba(0,0,0,0.2) 0 2px 8px;
}
.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label {
  border-color: #ccc;
}
.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options {
  border-color: #ccc;
}
.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,
.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover {
  border-color: #000;
}
.ql-toolbar.ql-snow + .ql-container.ql-snow {
  border-top: 0px;
}
.ql-snow .ql-tooltip {
  background-color: #fff;
  border: 1px solid #ccc;
  box-shadow: 0px 0px 5px #ddd;
  color: #444;
  padding: 5px 12px;
  white-space: nowrap;
}
.ql-snow .ql-tooltip::before {
  content: "Visit URL:";
  line-height: 26px;
  margin-right: 8px;
}
.ql-snow .ql-tooltip input[type=text] {
  display: none;
  border: 1px solid #ccc;
  font-size: 13px;
  height: 26px;
  margin: 0px;
  padding: 3px 5px;
  width: 170px;
}
.ql-snow .ql-tooltip a.ql-preview {
  display: inline-block;
  max-width: 200px;
  overflow-x: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}
.ql-snow .ql-tooltip a.ql-action::after {
  border-right: 1px solid #ccc;
  content: 'Edit';
  margin-left: 16px;
  padding-right: 8px;
}
.ql-snow .ql-tooltip a.ql-remove::before {
  content: 'Remove';
  margin-left: 8px;
}
.ql-snow .ql-tooltip a {
  line-height: 26px;
}
.ql-snow .ql-tooltip.ql-editing a.ql-preview,
.ql-snow .ql-tooltip.ql-editing a.ql-remove {
  display: none;
}
.ql-snow .ql-tooltip.ql-editing input[type=text] {
  display: inline-block;
}
.ql-snow .ql-tooltip.ql-editing a.ql-action::after {
  border-right: 0px;
  content: 'Save';
  padding-right: 0px;
}
.ql-snow .ql-tooltip[data-mode=link]::before {
  content: "Enter link:";
}
.ql-snow .ql-tooltip[data-mode=formula]::before {
  content: "Enter formula:";
}
.ql-snow .ql-tooltip[data-mode=video]::before {
  content: "Enter video:";
}
.ql-snow a {
  color: #06c;
}
.ql-container.ql-snow {
  border: 1px solid #ccc;
}
.offering-report-container {
    padding: 2rem;
    animation: fadeIn 0.5s ease-out;
}

.report-filter-bar {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    position: relative;
    overflow: visible;
}

/* Glassmorphism effect for the filter bar */
.report-filter-bar::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #6366f1, #a855f7, #ec4899);
    z-index: -1;
    border-radius: 14px;
    opacity: 0.1;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-group label {
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
    font-size: 0.9rem;
}

.report-select, .report-input {
    padding: 0.6rem 0.8rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #1e293b;
    transition: all 0.2s;
    background: #f8fafc;
}

.report-select:focus, .report-input:focus {
    outline: none;
    border-color: #6366f1;
    background: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.date-separator {
    color: #94a3b8;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #475569;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: #6366f1;
    cursor: pointer;
}

.report-btn {
    background: #1e293b;
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.report-btn:hover {
    background: #0f172a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.excel-btn, .print-btn {
    background: white;
    color: #475569;
    border: 1px solid #cbd5e1;
    padding: 0.6rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.excel-btn:hover, .print-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #1e293b;
    transform: translateY(-1px);
}

.excel-btn {
    color: #166534; /* Green for Excel */
    border-color: #bbf7d0;
}

.excel-btn:hover {
    background: #f0fdf4;
    border-color: #86efac;
}

/* Result Section */
.report-result-section {
    margin-top: 3rem;
    animation: slideUp 0.6s ease-out;
}

.result-header {
    border-bottom: 2px solid #334155;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.result-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.date-header {
    font-size: 1.1rem;
    font-weight: 600;
    color: #475569;
    margin: 1.5rem 0 1rem 0;
    padding-left: 0.5rem;
    border-left: 4px solid #6366f1;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.report-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.report-table td {
    padding: 1rem;
    font-size: 0.95rem;
    color: #334155;
    border-bottom: 1px dashed #e2e8f0;
}

.report-table tr:last-child td {
    border-bottom: none;
}

.total-row {
    background: #f8fafc;
    font-weight: 700;
}

.total-row td {
    border-top: 2px solid #e2e8f0;
    color: #0f172a;
}

.amount-cell {
    text-align: right;
    font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
}

.codes-cell {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.4;
    max-width: 400px;
}

.no-results {
    text-align: center;
    padding: 4rem;
    background: #f8fafc;
    border-radius: 12px;
    color: #94a3b8;
    border: 2px dashed #e2e8f0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media print {
    .report-filter-bar, .home-header, .sidebar {
        display: none !important;
    }
    .offering-report-container {
        padding: 0;
    }
}

/* PDF Dropdown Styles */
.pdf-dropdown-container {
    position: relative;
    display: inline-block;
}

.pdf-options-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 180px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.pdf-options-menu button {
    background: transparent;
    border: none;
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.9rem;
    color: #334155;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.pdf-options-menu button:hover {
    background: #f1f5f9;
    color: #6366f1;
}
:root {
    --primary-blue: #317A9B;
    --primary-blue-hover: #266481;
    --bg-color: #FAFAFA;
    --text-dark: #202020;
    --text-medium: #555555;
    --text-light: #888888;
    --input-bg: #F3F3F1;
    --badge-bg: #DDD2FA;
    --badge-text: #5A40A2;
    --border-color: #E0E0E0;
    --white: #FFFFFF;
    --primary-green: #34A853;
    --primary-green-light: #E7F5E9;
    
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-dark);
    height: 100vh;
    overflow: hidden;
    line-height: 1.5;
}

#root {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Header */
.header {
    background-color: var(--primary-blue);
    padding: 0.8rem 2rem;
    color: var(--white);
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex-shrink: 0;
    z-index: 10;
}

.header-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Main Layout */
.main-content {
    flex: 1;
    display: flex;
    padding: 3rem 2rem;
    overflow-y: auto;
}

.login-container {
    margin: auto;
    display: flex;
    width: 100%;
    max-width: 1000px;
    min-height: 600px;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Left Panel */
.left-panel {
    flex: 1;
    position: relative;
    background:
        linear-gradient(150deg, rgba(11, 63, 91, 0.92), rgba(28, 120, 153, 0.86)),
        radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.16), transparent 34%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        #1f6f8d;
    background-size: auto, auto, 52px 52px, 52px 52px, auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    padding: 3rem;
    text-align: center;
    overflow: hidden;
}

.left-panel::before,
.left-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.left-panel::before {
    background:
        linear-gradient(122deg, transparent 0 34%, rgba(255,255,255,0.12) 34% 35%, transparent 35% 100%),
        linear-gradient(58deg, transparent 0 42%, rgba(255,255,255,0.10) 42% 43%, transparent 43% 100%),
        linear-gradient(180deg, transparent 0 46%, rgba(255,255,255,0.11) 46% 47%, transparent 47% 100%);
    opacity: 0.65;
}

.left-panel::after {
    inset: auto 0 0;
    height: 42%;
    background:
        repeating-linear-gradient(90deg, rgba(255,255,255,0.14) 0 2px, transparent 2px 28px),
        linear-gradient(180deg, transparent, rgba(6, 43, 65, 0.34));
    opacity: 0.38;
}

.left-panel-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.church-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
}

.panel-logo {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.panel-divider {
    width: 40px;
    height: 2px;
    background-color: rgba(255,255,255,0.5);
    margin-bottom: 1.5rem;
}

.panel-tagline {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.5;
    opacity: 0.9;
}

/* Right Panel */
.right-panel {
    flex: 1;
    padding: 4rem 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.badge {
    align-self: flex-start;
    background-color: var(--badge-bg);
    color: var(--badge-text);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2rem;
    white-space: nowrap;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
}

.forgot-password {
    font-size: 0.8rem;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.forgot-password:hover {
    opacity: 0.8;
}

.form-input {
    background-color: var(--input-bg);
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 1rem 1.2rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-dark);
    transition: border-color 0.2s, background-color 0.2s;
    outline: none;
    width: 100%;
    min-width: 0;
}

.form-input::placeholder {
    color: var(--text-light);
}

.form-input:focus {
    border-color: var(--primary-blue);
    background-color: var(--white);
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 2.5rem;
    cursor: pointer;
}

.checkbox-input {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    margin-right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.checkbox-input:checked {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.checkbox-input:checked::after {
    content: '';
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

.checkbox-label {
    font-size: 0.9rem;
    color: var(--text-medium);
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.submit-btn {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 30px;
    padding: 1.2rem;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(49, 122, 155, 0.4);
    transition: all 0.2s ease;
    width: 100%;
}

.submit-btn:hover {
    background-color: var(--primary-blue-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(49, 122, 155, 0.5);
}

.signup-prompt {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.95rem;
    color: var(--text-medium);
    position: relative;
    white-space: nowrap;
}

.signup-prompt::before {
    content: '';
    position: absolute;
    top: -1.5rem;
    left: 10%;
    right: 10%;
    height: 1px;
    background-color: var(--border-color);
}

.signup-link {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.signup-link:hover {
    opacity: 0.8;
}

/* Footer */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 3rem;
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-medium);
    flex-shrink: 0;
    z-index: 10;
}

/* Church Org Chart */
.church-org-container {
    padding: 1rem 2rem;
    max-width: 100%;
    margin: 0 auto;
}

.org-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.org-header h2 {
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-serif);
}

.add-root-btn {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(49, 122, 155, 0.2);
}

.add-root-btn:hover {
    background-color: var(--primary-blue-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(49, 122, 155, 0.3);
}

.org-tree {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.org-node-container {
    position: relative;
}

.org-node {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #F8F9FA;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 0.85rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    position: relative;
    z-index: 2;
    min-width: 400px;
    width: auto;
    display: inline-flex;
}

.org-node:hover, .org-node.active {
    border-color: var(--primary-blue);
    background: #F8FBFE;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(49, 122, 155, 0.08);
    z-index: 100;
}

.org-node.level-0 {
    background: linear-gradient(to right, #EBF3F7, #F8F9FA);
    border-left: 4px solid var(--primary-blue);
}

.org-node.level-1 {
    background: linear-gradient(to right, #F1F4F6, #F8F9FA);
    border-left: 3px solid #6BA4C0;
}

.node-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.expand-btn {
    background: white;
    border: 1px solid var(--border-color);
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    color: var(--primary-blue);
    transition: all 0.2s;
    flex-shrink: 0;
}

.expand-btn:hover {
    background-color: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.node-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.node-title-area {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.node-name {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.05rem;
}

.dept-icon {
    color: var(--primary-blue);
    opacity: 0.8;
}

.member-summary {
    display: flex;
    align-items: center;
}

.member-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.member-chip.mini {
    background-color: #F3F6F8;
    color: var(--text-medium);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    border: 1px solid #E8EFF3;
    transition: all 0.2s;
}

.member-chip.mini:hover {
    background-color: #EBF2F7;
    border-color: #DDE7EF;
}

.member-role-prefix {
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 0.7rem;
    text-transform: uppercase;
}

.more-members-btn {
    background: #F0F7FA;
    border: 1px solid #DDEAF1;
    color: var(--primary-blue);
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.more-members-btn:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.no-members-text {
    font-size: 0.75rem;
    color: var(--text-light);
    font-style: italic;
}

.node-children {
    position: relative;
    margin-left: 2.5rem;
    padding-top: 0.25rem;
}

/* Base Guideline Styles */
.node-children::before {
    content: '';
    position: absolute;
    top: 0;
    left: -1.25rem;
    bottom: 1.25rem;
    width: 2px;
    z-index: 1;
}

.org-node-container {
    position: relative;
}

.org-node-container::after {
    content: '';
    position: absolute;
    top: 1.25rem;
    left: -1.25rem;
    width: 1.25rem;
    height: 2px;
    z-index: 1;
}

/* Root nodes don't have lines to parents */
.org-tree > .org-node-container::after {
    display: none;
}

/* Colored Guidelines by Level */
/* Level 0 children lines (connected to Level 0) */
.org-node-container.level-0 > .node-children::before,
.org-node-container.level-1::after {
    background-color: var(--primary-blue);
    opacity: 0.6;
}

/* Level 1 children lines (connected to Level 1) */
.org-node-container.level-1 > .node-children::before,
.org-node-container.level-2::after {
    background-color: #34A853; /* Green */
    opacity: 0.6;
}

/* Level 2 children lines (connected to Level 2) */
.org-node-container.level-2 > .node-children::before,
.org-node-container.level-3::after {
    background-color: #F57C00; /* Orange */
    opacity: 0.6;
}

/* Level 3+ children lines */
.org-node-container.level-3 > .node-children::before,
.org-node-container.level-4::after,
.org-node-container.level-4 > .node-children::before,
.org-node-container.level-5::after {
    background-color: #7B1FA2; /* Purple */
    opacity: 0.6;
}

.org-tree > .org-node-container > .org-node {
    margin-left: 0;
}

/* Header & Controls */
.org-sticky-header {
    position: sticky;
    top: 0;
    background-color: var(--bg-color);
    padding: 1.5rem 0 1rem 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}

.org-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.org-search-bar {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.org-search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.tree-actions {
    display: flex;
    gap: 0.5rem;
}

.tree-action-btn {
    background: white;
    border: 1px solid var(--border-color);
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-medium);
    cursor: pointer;
    transition: all 0.2s;
}

.tree-action-btn:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background-color: #F8FBFE;
}

/* Modal Enhancements */
.member-manager-modal {
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.25);
}

.modal-header h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--text-dark);
}

.member-assign-form {
    background: #F8F9FA;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid #EEE;
}

.members-table th {
    background: #FDFDFD;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    color: var(--text-light);
    font-size: 0.75rem;
}

.members-table tr:hover {
    background-color: #F9FBFC;
}

.reg-pill {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Fancy Modal Overlay (Centered) */
.member-manager-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 2rem;
}

/* Fancy Modal Dialog */
.member-manager-modal {
    background: white;
    width: 850px;
    max-width: 95%;
    max-height: 90vh;
    border-radius: 24px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalScaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes modalScaleIn {
    from { transform: scale(0.9) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-header {
    padding: 1.75rem 2rem;
    background: linear-gradient(to right, #F8FAFC, #FFFFFF);
    border-bottom: 1px solid #F1F5F9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: #1E293B;
}

.close-modal-btn {
    background: #F1F5F9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #64748B;
    cursor: pointer;
    transition: all 0.2s;
}

.close-modal-btn:hover {
    background: #E2E8F0;
    color: #1E293B;
    transform: rotate(90deg);
}

.modal-body.scrollable {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    background: #FFFFFF;
}

.member-assign-form {
    background: #F8FAFC;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.modal-search {
    margin-bottom: 1.5rem;
}

.modal-search input {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.2s;
    background: #FDFDFD;
}

.modal-search input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(49, 122, 155, 0.1);
    outline: none;
}

.members-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
}

.members-table th {
    padding: 1rem;
    text-align: left;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748B;
    font-weight: 700;
}

.members-table tr td {
    padding: 1.25rem 1rem;
    background: #FFFFFF;
    border-top: 1px solid #F1F5F9;
    border-bottom: 1px solid #F1F5F9;
    transition: all 0.2s;
}

.members-table tr td:first-child {
    border-left: 1px solid #F1F5F9;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.members-table tr td:last-child {
    border-right: 1px solid #F1F5F9;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.members-table tr:hover td {
    background: #F8FAFC;
    border-color: #E2E8F0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.member-action-btn.delete {
    background: #FFF1F0;
    color: #E53935;
    border: 1px solid #FFA39E;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.member-action-btn.delete:hover {
    background: #E53935;
    color: white;
    border-color: #E53935;
}

/* Autocomplete Dropdown Styles */
.autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border: 1px solid #E2E8F0;
    z-index: 2100;
    max-height: 300px;
    overflow-y: auto;
    animation: fadeInScale 0.2s ease-out;
}

.autocomplete-item {
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.autocomplete-item:hover {
    background: #F8FAFC;
    color: var(--primary-blue);
}

.autocomplete-item:not(:last-child) {
    border-bottom: 1px solid #F1F5F9;
}

.member-name-result {
    font-weight: 600;
    font-size: 0.9rem;
}

.member-id-result {
    font-size: 0.75rem;
    color: #94A3B8;
    background: #F1F5F9;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}

.node-actions-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.expand-spacer {
    width: 24px;
    flex: 0 0 24px;
}


.menu-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    transition: all 0.2s;
}

.menu-toggle-btn:hover {
    background-color: #E8E8E8;
    color: var(--text-dark);
}

.node-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid var(--border-color);
    width: 180px;
    padding: 0.5rem;
    z-index: 1200;
    animation: fadeInScale 0.2s ease-out;
}

.node-menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
}

.node-menu-item:hover {
    background-color: #F5F5F5;
}

.node-menu-item svg {
    color: var(--text-medium);
}

.node-menu-item:hover svg {
    color: var(--primary-blue);
}

.node-menu-item.delete {
    color: #E53935;
}

.node-menu-item.delete:hover {
    background-color: #FEECEB;
}

.node-menu-item.delete svg {
    color: #E53935;
}

.menu-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 0.4rem 0;
}

.mobile-dept-tree.church-org-container {
    padding: 0;
    max-width: 100%;
}

.mobile-dept-tree .org-sticky-header {
    position: static;
    padding: 0 0 0.65rem;
    margin-bottom: 0.65rem;
    background: transparent;
    border-bottom: 0;
}

.mobile-dept-tree .org-header {
    align-items: stretch;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.65rem;
}

.mobile-dept-tree .org-header h2 {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    line-height: 1.25;
}

.mobile-dept-tree .org-header-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.45rem;
}

.mobile-dept-tree .add-root-btn,
.mobile-dept-tree .move-here-btn,
.mobile-dept-tree .cancel-move-btn {
    min-height: 36px;
    border-radius: 8px;
    padding: 0.45rem 0.65rem;
    font-size: 0.78rem;
    white-space: normal;
}

.mobile-dept-tree .org-controls {
    margin-top: 0;
}

.mobile-dept-tree .tree-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
}

.mobile-dept-tree .tree-action-btn {
    min-height: 34px;
    padding: 0.4rem 0.55rem;
    font-size: 0.78rem;
}

.mobile-dept-tree .org-tree {
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.mobile-dept-tree .org-node-container {
    width: 100%;
}

.mobile-dept-tree .org-node {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.65rem 0.7rem;
    margin-bottom: 0.45rem;
    border: 1px solid #dbe3ea;
    border-left-width: 4px;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.mobile-dept-tree .org-node:hover,
.mobile-dept-tree .org-node.active {
    transform: none;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
}

.mobile-dept-tree .node-main {
    min-width: 0;
    align-items: flex-start;
    gap: 0.55rem;
}

.mobile-dept-tree .expand-btn,
.mobile-dept-tree .expand-spacer {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    border-radius: 8px;
}

.mobile-dept-tree .node-content {
    min-width: 0;
    gap: 0.35rem;
}

.mobile-dept-tree .node-title-area {
    min-width: 0;
    gap: 0.4rem;
}

.mobile-dept-tree .dept-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

.mobile-dept-tree .node-name {
    min-width: 0;
    font-size: 0.92rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.mobile-dept-tree .member-summary,
.mobile-dept-tree .member-chips {
    min-width: 0;
    width: 100%;
}

.mobile-dept-tree .member-chips {
    gap: 0.25rem;
}

.mobile-dept-tree .member-chip.mini,
.mobile-dept-tree .more-members-btn {
    max-width: 100%;
    min-height: 24px;
    border-radius: 6px;
    padding: 0.16rem 0.42rem;
    font-size: 0.68rem;
    line-height: 1.25;
}

.mobile-dept-tree .member-chip.mini span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-dept-tree .member-role-prefix {
    font-size: 0.62rem;
}

.mobile-dept-tree .no-members-text {
    font-size: 0.72rem;
}

.mobile-dept-tree .node-actions-container {
    flex: 0 0 auto;
}

.mobile-dept-tree .menu-toggle-btn {
    width: 32px;
    height: 32px;
    padding: 0.35rem;
    background: #f8fafc;
    border: 1px solid #dbe3ea;
    border-radius: 8px;
}

.mobile-dept-tree .node-menu-dropdown {
    right: 0;
    width: min(210px, calc(100vw - 2rem));
    border-radius: 8px;
}

.mobile-dept-tree .node-menu-item {
    min-height: 38px;
    padding: 0.55rem 0.7rem;
    font-size: 0.8rem;
}

.mobile-dept-tree .node-children {
    margin-left: 0.95rem;
    padding-left: 0.55rem;
    padding-top: 0;
    border-left: 2px solid #dbeafe;
}

.mobile-dept-tree .node-children::before,
.mobile-dept-tree .org-node-container::after {
    display: none;
}

.mobile-dept-tree .member-manager-overlay {
    align-items: flex-end;
    padding: 0.75rem;
}

.mobile-dept-tree .member-manager-modal {
    width: 100% !important;
    max-width: 100% !important;
    max-height: calc(100vh - 1.5rem - var(--mobile-safe-top) - var(--mobile-safe-bottom));
    border-radius: 16px 16px 8px 8px;
}

.mobile-church-page {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    min-width: 0;
}

.mobile-church-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem;
    border: 1px solid #dbe3ea;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.mobile-church-hero div {
    min-width: 0;
}

.mobile-church-hero p,
.mobile-church-sheet-header p {
    margin: 0 0 0.15rem;
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 850;
    text-transform: uppercase;
}

.mobile-church-hero h1,
.mobile-church-sheet-header h2 {
    margin: 0;
    color: #172033;
    font-family: var(--font-sans);
    font-size: 1.15rem;
    line-height: 1.2;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.mobile-church-add {
    flex: 0 0 auto;
    min-height: 40px;
    max-width: 46%;
    border: 0;
    border-radius: 8px;
    background: #174f68;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 0.7rem;
    font: inherit;
    font-size: 0.78rem;
    line-height: 1.15;
    font-weight: 850;
    cursor: pointer;
}

.mobile-church-add span {
    font-size: 1rem;
    line-height: 1;
}

.mobile-church-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

.mobile-church-stats div {
    min-width: 0;
    border: 1px solid #dbe3ea;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.65rem 0.55rem;
    text-align: center;
}

.mobile-church-stats strong {
    display: block;
    color: #174f68;
    font-size: 1.05rem;
    line-height: 1.1;
    font-weight: 900;
}

.mobile-church-stats span {
    display: block;
    margin-top: 0.22rem;
    color: #64748b;
    font-size: 0.68rem;
    line-height: 1.2;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.mobile-church-tools,
.mobile-church-dept-actions {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.mobile-church-tools::-webkit-scrollbar,
.mobile-church-dept-actions::-webkit-scrollbar {
    display: none;
}

.mobile-church-tools button,
.mobile-church-dept-actions button {
    flex: 0 0 auto;
    min-height: 34px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #ffffff;
    color: #475569;
    padding: 0.38rem 0.68rem;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 850;
    white-space: nowrap;
    cursor: pointer;
}

.mobile-church-tools button.primary,
.mobile-church-dept-actions button.primary {
    background: #e7f2f7;
    border-color: #90c7dc;
    color: #174f68;
}

.mobile-church-tools button.danger {
    background: #fff7f7;
    border-color: #fecaca;
    color: #b42318;
}

.mobile-church-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.mobile-church-dept {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
}

.mobile-church-dept-card {
    width: 100%;
    min-width: 0;
    border: 1px solid #dbe3ea;
    border-radius: 8px;
    background: #ffffff;
    color: #172033;
    display: grid;
    grid-template-columns: 5px minmax(0, 1fr) 28px;
    align-items: stretch;
    gap: 0.65rem;
    padding: 0.75rem;
    text-align: left;
    font: inherit;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
    cursor: pointer;
}

.mobile-church-dept-rail {
    width: 5px;
    border-radius: 999px;
    background: #317A9B;
}

.mobile-church-dept.level-1 .mobile-church-dept-rail {
    background: #34A853;
}

.mobile-church-dept.level-2 .mobile-church-dept-rail {
    background: #F57C00;
}

.mobile-church-dept.level-3 .mobile-church-dept-rail,
.mobile-church-dept.level-4 .mobile-church-dept-rail {
    background: #7B1FA2;
}

.mobile-church-dept-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.38rem;
}

.mobile-church-dept-top,
.mobile-church-dept-meta,
.mobile-church-member-strip {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.mobile-church-dept-top {
    justify-content: space-between;
}

.mobile-church-dept-name {
    min-width: 0;
    color: #0f172a;
    font-size: 0.98rem;
    line-height: 1.25;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.mobile-church-dept-count {
    flex: 0 0 auto;
    min-width: 26px;
    height: 26px;
    border-radius: 999px;
    background: #e7f2f7;
    color: #174f68;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.4rem;
    font-size: 0.72rem;
    font-weight: 900;
}

.mobile-church-dept-meta {
    flex-wrap: wrap;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 780;
}

.mobile-church-dept-meta span {
    overflow-wrap: anywhere;
}

.mobile-church-member-strip {
    flex-wrap: wrap;
}

.mobile-church-member-pill,
.mobile-church-member-more,
.mobile-church-member-empty {
    min-width: 0;
    max-width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.16rem 0.5rem;
    font-size: 0.68rem;
    line-height: 1.35;
    font-weight: 800;
}

.mobile-church-member-pill {
    overflow: hidden;
    overflow-wrap: anywhere;
    white-space: normal;
}

.mobile-church-member-pill strong {
    flex: 0 0 auto;
    color: #174f68;
    font-size: 0.64rem;
}

.mobile-church-member-more {
    color: #174f68;
    background: #e7f2f7;
    border-color: #c6e5f1;
}

.mobile-church-member-empty {
    color: #94a3b8;
    font-style: italic;
}

.mobile-church-expand {
    align-self: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 900;
    transition: transform 0.18s ease;
}

.mobile-church-expand.open {
    transform: rotate(180deg);
}

.mobile-church-children {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-left: 0.55rem;
    padding-left: 0.65rem;
    border-left: 2px solid #dbeafe;
}

.mobile-church-sheet-overlay {
    position: fixed;
    inset: 0;
    z-index: 7000;
    display: flex;
    align-items: flex-end;
    padding: 0.75rem;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(6px);
}

.mobile-church-sheet {
    width: 100%;
    max-height: calc(86vh - var(--mobile-safe-bottom));
    border-radius: 16px 16px 8px 8px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 -18px 38px rgba(15, 23, 42, 0.24);
}

.mobile-church-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.mobile-church-sheet-header div {
    min-width: 0;
}

.mobile-church-sheet-header button {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: #f1f5f9;
    color: #475569;
    font-size: 1.25rem;
    line-height: 1;
}

.mobile-church-member-list {
    min-height: 0;
    overflow-y: auto;
    padding: 0.75rem;
    padding-bottom: calc(0.75rem + var(--mobile-safe-bottom));
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-church-member-row {
    min-width: 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fbfdff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.7rem;
}

.mobile-church-member-row span {
    min-width: 0;
    color: #172033;
    font-size: 0.9rem;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.mobile-church-member-row strong {
    flex: 0 0 auto;
    max-width: 45%;
    border-radius: 999px;
    background: #e7f2f7;
    color: #174f68;
    padding: 0.2rem 0.5rem;
    font-size: 0.68rem;
    font-weight: 850;
    text-align: center;
    overflow-wrap: anywhere;
}

.mobile-church-member-empty-state {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #64748b;
    padding: 1rem;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 750;
}

.church-mobile-card-list {
    display: none;
}

@media (max-width: 768px) {
    .church-list-responsive {
        width: 100%;
        min-width: 0;
        padding: 0 !important;
    }

    .mobile-app-main .church-list-responsive {
        padding: 0 !important;
    }

    .church-list-responsive > div:first-child {
        align-items: center !important;
        gap: 0.75rem !important;
        margin-bottom: 0.9rem !important;
    }

    .church-list-responsive > div:first-child h2 {
        min-width: 0;
        margin: 0;
        font-size: 1.35rem;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .church-list-table-panel {
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    .church-list-table-panel > table {
        display: none;
    }

    .church-mobile-card-list {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .church-mobile-card {
        width: 100%;
        min-width: 0;
        border: 1px solid #dbe3ea;
        border-left: 4px solid #317A9B;
        border-radius: 8px;
        background: #ffffff;
        padding: 0.9rem;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
    }

    .church-mobile-card-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0.75rem;
        min-width: 0;
        margin-bottom: 0.8rem;
    }

    .church-mobile-card-head div {
        min-width: 0;
    }

    .church-mobile-card h3 {
        margin: 0;
        color: #0f172a;
        font-size: 1rem;
        line-height: 1.3;
        font-weight: 900;
        overflow-wrap: anywhere;
    }

    .church-mobile-card p {
        margin: 0.22rem 0 0;
        color: #64748b;
        font-size: 0.82rem;
        line-height: 1.35;
        font-weight: 650;
        overflow-wrap: anywhere;
    }

    .church-mobile-icon-btn {
        flex: 0 0 auto;
        width: 38px;
        height: 38px;
        border: 0;
        border-radius: 8px;
        background: #174f68;
        color: #ffffff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 8px 18px rgba(23, 79, 104, 0.2);
    }

    .church-mobile-fields {
        display: grid;
        gap: 0.55rem;
        margin: 0;
    }

    .church-mobile-fields div {
        min-width: 0;
        display: grid;
        grid-template-columns: minmax(82px, 0.42fr) minmax(0, 1fr);
        gap: 0.65rem;
        align-items: start;
        padding: 0.58rem 0;
        border-top: 1px solid #eef2f7;
    }

    .church-mobile-fields dt {
        color: #64748b;
        font-size: 0.74rem;
        font-weight: 850;
    }

    .church-mobile-fields dd {
        min-width: 0;
        margin: 0;
        color: #172033;
        font-size: 0.86rem;
        line-height: 1.35;
        font-weight: 720;
        overflow-wrap: anywhere;
    }

    .church-mobile-fields dd small {
        display: block;
        margin-top: 0.18rem;
        color: #64748b;
        font-size: 0.78rem;
        line-height: 1.3;
    }

    .church-mobile-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.45rem;
        margin-top: 0.85rem;
    }

    .church-mobile-actions button,
    .church-mobile-primary {
        min-width: 0;
        min-height: 38px;
        border: 1px solid #90c7dc;
        border-radius: 8px;
        background: #e7f2f7;
        color: #174f68;
        padding: 0.45rem 0.5rem;
        font: inherit;
        font-size: 0.74rem;
        line-height: 1.15;
        font-weight: 850;
        cursor: pointer;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .church-mobile-primary {
        width: 100%;
        margin-top: 0.85rem;
        background: #174f68;
        border-color: #174f68;
        color: #ffffff;
    }

    .church-mobile-embedded-panel {
        width: 100%;
        min-width: 0;
        overflow-x: auto;
        border: 1px solid #dbe3ea;
        border-radius: 8px;
        background: #ffffff;
        padding: 0.75rem;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
    }

    .church-mobile-empty {
        border: 1px solid #dbe3ea;
        border-radius: 8px;
        background: #ffffff;
        color: #64748b;
        padding: 1.25rem;
        text-align: center;
        font-size: 0.9rem;
        font-weight: 750;
    }
}


.footer-left {
    display: flex;
    align-items: center;
}

.footer-logo {
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 1rem;
    margin-right: 0.75rem;
}

.footer-divider {
    color: var(--border-color);
    margin-right: 0.75rem;
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
}

.footer-link {
    color: var(--text-medium);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--text-dark);
}

/* Responsive */
@media (max-width: 900px) {
    .login-container {
        flex-direction: column;
        max-width: 500px;
    }
    
    .left-panel {
        padding: 4rem 2rem;
    }
    
    .right-panel {
        padding: 3rem 2rem;
    }
    
    .footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Home Layout */
.home-layout {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
    background-color: #F9F8F6;
}

.home-body {
    display: flex;
    flex: 1;
    width: 100%;
    overflow: hidden;
}

/* Home Header */
.home-header {
    background-color: var(--white);
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    border-bottom: 1px solid #EDEDED;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.home-header-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
    position: relative;
    z-index: 2;
}

.home-section-menu-container {
    position: relative;
    display: none;
    align-items: center;
    flex: 0 0 auto;
}

.home-section-menu-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #d8e2e8;
    border-radius: 8px;
    background: #ffffff;
    color: #1f5f7d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.home-section-menu-btn:hover,
.home-section-menu-btn.active {
    background: #eef8fc;
    border-color: #9fd4e6;
    box-shadow: 0 8px 18px rgba(49, 122, 155, 0.12);
}

.home-section-menu-btn svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
}

.home-section-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 220px;
    padding: 0.45rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
    z-index: 1200;
    animation: fadeInScale 0.18s ease-out;
}

.home-section-dropdown-item {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.8rem;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-dark);
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0;
    text-align: left;
    transition: background-color 0.16s ease, color 0.16s ease;
}

.home-section-dropdown-item:hover {
    background: #f3f7f9;
}

.home-section-dropdown-item.active {
    background: #e9f6fb;
    color: var(--primary-blue);
}

.home-section-dropdown-item svg {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-logo-text {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    font-style: italic;
}

.home-nav {
    margin-left: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.home-nav-link {
    text-decoration: none;
    color: var(--text-medium);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.home-nav-link.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

@media (max-width: 768px) {
    .home-section-menu-container {
        display: flex;
    }

    .home-nav {
        display: none;
    }
}

.home-header-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex: 1;
    justify-content: flex-end;
    min-width: 0;
    position: relative;
    z-index: 2;
}

.home-header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    max-width: min(360px, 30vw);
    z-index: 3;
    pointer-events: none;
}

.home-current-church {
    max-width: 100%;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0.85rem 0.35rem 0.45rem;
    color: #0f3d56;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0;
    background: linear-gradient(180deg, #f8fcff 0%, #eaf6fb 100%);
    border: 1px solid #c7e6f2;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(49, 122, 155, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    overflow: hidden;
    pointer-events: auto;
}

.home-current-church-link {
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.home-current-church-link:hover {
    transform: translateY(-1px);
    border-color: #8ccde4;
    box-shadow: 0 12px 26px rgba(49, 122, 155, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.home-current-church-icon {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: #317A9B;
    color: #ffffff;
}

.home-current-church-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-bar {
    background-color: #F0F0F0;
    border-radius: 20px;
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    width: 280px;
    transition: width 0.3s;
}

.search-bar:focus-within {
    width: 320px;
    background-color: #E8E8E8;
}

.search-icon {
    width: 18px;
    height: 18px;
    margin-right: 0.5rem;
}

.search-bar input {
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
    font-size: 0.9rem;
}

.header-icon-btn {
    cursor: pointer;
    display: flex;
    align-items: center;
    opacity: 0.7;
}

.notification-icon-btn.has-unread {
    opacity: 1;
}

.notification-unread-badge {
    position: absolute;
    top: -5px;
    right: -7px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    border: 2px solid #fff;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(220, 38, 38, 0.28);
}

.notification-balloon {
    position: fixed;
    top: 72px;
    right: 24px;
    width: min(320px, calc(100vw - 32px));
    z-index: 1400;
    background: #fff;
    border: 1px solid #fecaca;
    border-left: 4px solid #dc2626;
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
    padding: 12px 14px;
    animation: notificationBalloonIn 0.22s ease-out;
}

.notification-balloon-title {
    color: #991b1b;
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.notification-balloon-message {
    color: #334155;
    font-size: 0.82rem;
    line-height: 1.35;
    max-height: 2.8em;
    overflow: hidden;
}

@keyframes notificationBalloonIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-avatar-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
}

.user-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-profile-container {
    position: relative;
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
    width: 180px;
    padding: 0.5rem;
    z-index: 1100;
    animation: fadeInScale 0.2s ease-out;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95) translateY(-10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.dropdown-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: #F5F5F5;
}

.dropdown-item.logout {
    color: #E53935;
}

.dropdown-item.logout:hover {
    background-color: #FEECEB;
}

.dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 0.5rem 0;
}
.sidebar {
    width: 260px;
    background-color: #F9F8F6;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: all 0.3s ease;
    height: 100%;
}

.sidebar.collapsed {
    width: 64px;
    padding: 2rem 0;
    align-items: center;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-dark);
    font-weight: 600;
    min-height: 48px;
    padding: 0 1.5rem;
    margin-bottom: 1.5rem;
}

.collapsed .sidebar-header {
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0 auto 2rem auto;
    border-radius: 50%;
}

.sidebar-toggle {
    margin-left: auto;
    background: transparent;
    border: none;
    cursor: pointer;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    overflow-y: auto;
    padding: 0 1rem 1rem 1.5rem;
}

/* Premium Sidebar Scrollbar */
.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: #E0E0E0;
    border-radius: 10px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: #D0D0D0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    text-decoration: none;
    color: var(--text-medium);
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
}

.collapsed .sidebar-link {
    padding: 0.8rem;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    margin: 0 auto;
}

.sidebar-link.active {
    background-color: #E8F0F5;
    color: var(--primary-blue);
}

.sidebar-link:hover:not(.active) {
    background-color: #F0F0F0;
}

/* Sidebar Sub-menus */
.sidebar-menu-group {
    display: flex;
    flex-direction: column;
}

.group-header {
    justify-content: flex-start;
}

.chevron {
    margin-left: auto;
    transition: transform 0.3s ease;
    opacity: 0.5;
}

.sidebar-menu-group.expanded .chevron {
    transform: rotate(180deg);
}

.sidebar-submenu {
    display: flex;
    flex-direction: column;
    padding-left: 2.5rem;
    margin-top: 0.25rem;
    gap: 0.25rem;
}

.submenu-link {
    font-size: 0.85rem;
    color: var(--text-medium);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.submenu-link:hover {
    background-color: #F5F5F5;
    color: var(--primary-blue);
}

.submenu-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    padding: 0.75rem 0.75rem 0.25rem;
    letter-spacing: 0.05rem;
    cursor: default;
}

.submenu-link.active {
    background-color: #E8F0F5;
    color: var(--primary-blue);
    font-weight: 600;
}

/* Feed */
.home-main {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
}

/* Manual */
.manual-page {
    width: 100%;
    padding: 2rem 2.5rem 3rem;
    color: var(--text-dark);
}

.manual-hero {
    background: linear-gradient(135deg, #E9F4F7 0%, #F7FAF8 55%, #FFF8ED 100%);
    border-bottom: 1px solid #DCE9EE;
    padding: 2.5rem;
    margin: -2rem -2.5rem 2rem;
}

.manual-hero > div {
    max-width: 880px;
}

.manual-eyebrow {
    color: var(--primary-blue);
    font-size: 0.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.manual-hero h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.manual-hero p:last-child {
    color: var(--text-medium);
    font-size: 1rem;
    max-width: 720px;
}

.manual-section {
    max-width: 1120px;
    margin: 0 auto 2rem;
}

.manual-section-header {
    margin-bottom: 1rem;
}

.manual-section-header h2,
.manual-note-band h2 {
    font-size: 1.35rem;
    margin-bottom: 0.35rem;
}

.manual-section-header p {
    color: var(--text-medium);
}

.manual-steps,
.manual-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.manual-step,
.manual-feature {
    background: var(--white);
    border: 1px solid #E8ECEF;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.manual-step h3,
.manual-feature h3 {
    color: #1E5368;
    font-size: 1rem;
    margin-bottom: 0.6rem;
}

.manual-step p,
.manual-feature li,
.manual-note-band li {
    color: var(--text-medium);
    line-height: 1.7;
}

.manual-feature ul,
.manual-note-band ul {
    padding-left: 1.15rem;
}

.manual-feature li + li,
.manual-note-band li + li {
    margin-top: 0.4rem;
}

.manual-note-band {
    background: #F3F8F6;
    border: 1px solid #DCEBE5;
    border-radius: 8px;
    padding: 1.5rem;
}

@media (max-width: 700px) {
    .manual-page {
        padding: 1.25rem;
    }

    .manual-hero {
        margin: -1.25rem -1.25rem 1.5rem;
        padding: 1.75rem 1.25rem;
    }
}

.manual-page.editable {
    flex: 1;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 0;
    min-height: 0;
    padding: 0;
    background: #F6F7F8;
}

.manual-list-panel {
    border-right: 1px solid #E2E8F0;
    background: #FFFFFF;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.manual-list-header {
    padding: 1.25rem;
    border-bottom: 1px solid #EEF2F6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.manual-list-header h1 {
    font-size: 1.2rem;
    line-height: 1.2;
}

.manual-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #D8E2EA;
    background: #FFFFFF;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.manual-icon-btn:hover {
    background: #EEF7FA;
    border-color: #B9D5E1;
}

.manual-title-list {
    overflow-y: auto;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.manual-title-item {
    width: 100%;
    min-height: 44px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #334155;
    font: inherit;
    font-weight: 600;
    text-align: left;
    padding: 0.65rem 0.8rem;
    cursor: pointer;
    overflow-wrap: anywhere;
}

.manual-title-item:hover {
    background: #F4F7F9;
}

.manual-title-item.active {
    background: #E8F0F5;
    border-color: #D1E2EA;
    color: var(--primary-blue);
}

.manual-empty {
    color: #64748B;
    font-size: 0.9rem;
    line-height: 1.6;
    padding: 1rem 0.5rem;
}

.manual-editor-panel {
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.manual-editor-toolbar {
    min-height: 72px;
    background: #FFFFFF;
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
}

.manual-title-input {
    flex: 1;
    min-width: 0;
    border: 1px solid #D8E2EA;
    border-radius: 8px;
    padding: 0.75rem 0.9rem;
    font: inherit;
    font-weight: 700;
    color: #0F172A;
    outline: none;
}

.manual-title-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(49, 122, 155, 0.12);
}

.manual-readonly-title {
    flex: 1;
    min-width: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #0F172A;
    font: inherit;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.25;
    text-align: left;
    padding: 0.6rem 0.75rem;
    cursor: text;
    overflow-wrap: anywhere;
}

.manual-readonly-title:hover,
.manual-readonly-title:focus {
    background: #F8FAFC;
    border-color: #D8E2EA;
    outline: none;
}

.manual-readonly-title.empty {
    color: #94A3B8;
    font-weight: 700;
}

.manual-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.manual-primary-btn,
.manual-secondary-btn {
    border: none;
    border-radius: 8px;
    min-height: 40px;
    padding: 0 1rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.manual-primary-btn {
    background: var(--primary-blue);
    color: #FFFFFF;
}

.manual-primary-btn:disabled,
.manual-secondary-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.manual-secondary-btn {
    background: #F1F5F9;
    color: #334155;
}

.manual-secondary-btn.danger {
    color: #B42318;
    background: #FFF1F0;
}

.manual-error {
    margin: 1rem 1.25rem 0;
    padding: 0.75rem 1rem;
    border: 1px solid #FFD1CC;
    background: #FFF7F5;
    color: #B42318;
    border-radius: 8px;
    font-size: 0.9rem;
}

.manual-editor-shell {
    flex: 1;
    min-height: 0;
    padding: 1.25rem;
}

.manual-editor-shell .quill {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    overflow: hidden;
}

.manual-editor-shell .ql-toolbar.ql-snow {
    border: none;
    border-bottom: 1px solid #E2E8F0;
    background: #FFFFFF;
}

.manual-editor-shell .ql-container.ql-snow {
    flex: 1;
    min-height: 360px;
    border: none;
    font-family: inherit;
}

.manual-editor-shell .ql-editor {
    font-size: 1rem;
    line-height: 1.75;
    color: #1E293B;
    padding: 1.5rem;
}

.manual-editor-shell .ql-editor img,
.manual-readonly-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem 0;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
}

.manual-readonly-content {
    min-height: 420px;
    height: 100%;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    color: #1E293B;
    cursor: text;
    padding: 1.5rem;
    line-height: 1.75;
    overflow-y: auto;
}

.manual-readonly-content:hover,
.manual-readonly-content:focus {
    border-color: #B9D5E1;
    box-shadow: 0 0 0 3px rgba(49, 122, 155, 0.08);
    outline: none;
}

.manual-readonly-content.empty {
    color: #94A3B8;
}

.manual-readonly-content h1,
.manual-readonly-content h2,
.manual-readonly-content h3 {
    margin: 0.75rem 0 0.5rem;
    color: #0F172A;
    line-height: 1.25;
}

.manual-readonly-content p {
    margin-bottom: 0.8rem;
}

.manual-readonly-content ul,
.manual-readonly-content ol {
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
}

@media (max-width: 850px) {
    .manual-page.editable {
        grid-template-columns: 1fr;
    }

    .manual-list-panel {
        max-height: 260px;
        border-right: none;
        border-bottom: 1px solid #E2E8F0;
    }

    .manual-editor-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .manual-actions {
        justify-content: flex-end;
    }
}

.feed-container {
    width: 100%;
    max-width: 680px;
    margin: 2rem auto;
    position: relative;
}

.post-composer {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.composer-top {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.user-avatar-medium {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.user-avatar-medium img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.composer-top input {
    flex: 1;
    background-color: #F7F7F7;
    border: none;
    border-radius: 25px;
    padding: 0 1.5rem;
    outline: none;
    font-size: 0.95rem;
}

.composer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.composer-actions {
    display: flex;
    gap: 1.5rem;
}

.composer-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    color: var(--text-medium);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
}

.post-submit-btn {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 20px;
    padding: 0.6rem 1.8rem;
    font-weight: 600;
    cursor: pointer;
}

.feed-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-pill {
    background-color: #E8E8E8;
    border: none;
    border-radius: 20px;
    padding: 0.4rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-medium);
    cursor: pointer;
}

.filter-pill.active {
    background-color: var(--primary-blue);
    color: var(--white);
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.post-author-info {
    display: flex;
    gap: 0.75rem;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 700;
    color: var(--text-dark);
}

.post-meta {
    font-size: 0.8rem;
    color: var(--text-light);
}

.post-badge {
    background-color: #EEE;
    color: #666;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-left: auto;
    margin-right: 1rem;
}

.post-options-btn {
    background: transparent;
    border: none;
    cursor: pointer;
}

.post-content {
    margin-bottom: 1.5rem;
}

.post-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.post-text {
    line-height: 1.6;
    color: #333;
}

.post-image {
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    display: block;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #F0F0F0;
}

.post-stats {
    display: flex;
    gap: 1.5rem;
}

.post-stat-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    border: none;
    color: var(--text-medium);
    font-size: 0.9rem;
    cursor: pointer;
}

.post-actions-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.post-action-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    border: none;
    color: var(--text-medium);
    font-size: 0.9rem;
    cursor: pointer;
}

.post-action-btn-icon {
    background: transparent;
    border: none;
    color: var(--text-medium);
    cursor: pointer;
}

.prayer-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.prayer-support-btn {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.add-message-link {
    font-size: 0.85rem;
    color: var(--text-light);
    cursor: pointer;
}

.fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    border: none;
    box-shadow: 0 4px 12px rgba(49, 122, 155, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
}

.lang-toggle-btn {
    background: transparent;
    border: 1px solid #DDD;
    border-radius: 15px;
    padding: 0.2rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.roles-container {
    padding: 1.5rem 2.5rem;
    max-width: 100%;
}

.roles-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.roles-header h2 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.subtitle {
    color: var(--text-light);
    font-size: 0.85rem;
}

.add-role-btn {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(49, 122, 155, 0.2);
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1200px) {
    .roles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .roles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .roles-grid {
        grid-template-columns: 1fr;
    }
}

.role-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.role-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.role-card-header {
    height: 60px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.role-icon {
    background: rgba(255,255,255,0.25);
    padding: 0.5rem;
    border-radius: 10px;
}

.role-icon svg {
    width: 20px;
    height: 20px;
}

.role-order-actions {
    display: flex;
    gap: 0.25rem;
}

.role-order-actions button {
    background: rgba(255,255,255,0.2);
    border: none;
    padding: 0.15rem;
    border-radius: 4px;
    cursor: pointer;
    color: white;
}

.role-card-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 60px;
}

.role-card-body h3 {
    font-size: 1.05rem;
    margin-bottom: 0;
    color: var(--text-dark);
    font-weight: 600;
}

.role-card-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid #F5F5F5;
    display: flex;
    gap: 0.75rem;
}

.role-card-footer button {
    flex: 1;
    padding: 0.4rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.edit-btn {
    background: #F0F7FF;
    color: var(--primary-blue);
    border: 1px solid rgba(49, 122, 155, 0.1);
}

.edit-btn:hover {
    background: #E1EFFF;
}

.delete-btn {
    background: #FFF0F0;
    color: #E53935;
    border: 1px solid rgba(229, 57, 53, 0.1);
}

.delete-btn:hover {
    background: #FEE2E2;
}

.disabled-card {
    border-color: #dfe1e6;
    background-color: #f8f9fa;
}

.disabled-card .role-card-header {
    filter: grayscale(1);
    opacity: 0.6;
}

.disabled-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff4d4f;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(255, 77, 79, 0.3);
    z-index: 2;
}

/* Fancy Toggle Switch */
.fancy-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    cursor: pointer;
    user-select: none;
}

.toggle-switch {
    position: relative;
    width: 36px;
    height: 20px;
    background-color: #ddd;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background-color: white;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

input[type="checkbox"]:checked + .toggle-switch {
    background-color: #ff4d4f;
}

input[type="checkbox"]:checked + .toggle-switch::after {
    left: 18px;
}

.toggle-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #666;
}

.disabled-card .toggle-label {
    color: #ff4d4f;
}

.role-card {
    position: relative;
}

.role-card-body h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #172B4D;
}

.members-view-container {
    display: flex;
    height: 100%;
    width: 100%;
    overflow: hidden;
    background-color: white;
}

.members-main-content {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: margin-right 0.3s ease;
}

.members-view-header {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.view-title {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.view-title h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #172B4D;
    margin: 0;
}

.count-badge {
    background-color: #F4F5F7;
    color: #5E6C84;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    width: fit-content;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.icon-btn {
    background: transparent;
    border: none;
    color: #42526E;
    padding: 0.4rem;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background-color: #F4F5F7;
}

.action-btn-secondary {
    background-color: #F4F5F7;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 3px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
}

.toolbar {
    padding: 0.5rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.toolbar-left {
    display: flex;
    gap: 0.5rem;
}

.mobile-members-view .members-view-header {
    padding: 0.2rem 0.05rem 0.55rem;
    align-items: center;
}

.mobile-members-view .view-title {
    min-width: 0;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.mobile-members-view .view-title h1 {
    font-size: 1.1rem;
    line-height: 1.2;
}

.mobile-members-view .mobile-member-count {
    flex: 0 0 auto;
    font-size: 0.7rem;
}

.mobile-members-view .toolbar {
    padding: 0 0 0.6rem;
}

.mobile-members-view .toolbar-left {
    flex-wrap: wrap;
}

.mobile-members-card-list {
    display: none;
}

.mobile-members-view .mobile-members-card-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-members-view.members-view-container {
    height: auto;
    min-height: 0;
    overflow: visible;
    background: transparent;
}

.mobile-members-view .members-main-content {
    min-width: 0;
    height: auto;
    overflow: visible;
}

.mobile-members-view .members-table-wrapper {
    padding: 0 0 0.2rem;
    max-height: none;
    overflow: visible;
}

.mobile-members-view .members-table-wrapper > .jira-table {
    display: none;
}

.mobile-members-view .premium-toolbar {
    align-items: stretch;
    gap: 0.55rem;
}

.mobile-members-view .modern-filter-group {
    min-width: 0;
}

.mobile-members-view .modern-filter-select {
    min-height: 38px;
    font-size: 16px;
}

.mobile-members-view .tool-btn {
    min-height: 38px;
    border-radius: 999px;
    white-space: nowrap;
}

.mobile-member-create-btn {
    min-height: 38px;
    border: 0;
    border-radius: 8px;
    background: #174f68;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.45rem 0.7rem;
    font: inherit;
    font-size: 0.78rem;
    line-height: 1.15;
    font-weight: 850;
    cursor: pointer;
}

.mobile-member-create-btn span {
    font-size: 1rem;
    line-height: 1;
}

.mobile-members-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-width: 0;
}

.mobile-members-group-header {
    width: 100%;
    min-height: 38px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    color: #172033;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.65rem;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 850;
    text-align: left;
}

.mobile-members-group-chevron {
    flex: 0 0 auto;
    color: #64748b;
    font-size: 0.72rem;
    transition: transform 0.18s ease;
}

.mobile-members-group-chevron.collapsed {
    transform: rotate(-90deg);
}

.mobile-members-group-name {
    min-width: 0;
    flex: 1;
    overflow-wrap: anywhere;
}

.mobile-members-group-count {
    flex: 0 0 auto;
    min-width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #e7f2f7;
    color: #174f68;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.42rem;
    font-size: 0.7rem;
    font-weight: 900;
}

.mobile-member-card {
    width: 100%;
    min-width: 0;
    border: 1px solid #dbe3ea;
    border-left: 4px solid #317A9B;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.85rem;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.mobile-member-card.is-disabled {
    border-left-color: #94a3b8;
    background: #fbfdff;
}

.mobile-member-card-top {
    min-width: 0;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.65rem;
}

.mobile-member-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #e7f2f7;
    color: #174f68;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 900;
}

.mobile-member-identity {
    min-width: 0;
}

.mobile-member-identity h2 {
    margin: 0;
    color: #0f172a;
    font-size: 1rem;
    line-height: 1.25;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.mobile-member-identity p {
    margin: 0.15rem 0 0;
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.25;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.mobile-member-status {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 0.2rem 0.5rem;
    font-size: 0.66rem;
    line-height: 1.2;
    font-weight: 900;
    text-transform: uppercase;
}

.mobile-member-status.active {
    background: #ecfdf5;
    color: #047857;
}

.mobile-member-status.disabled {
    background: #fef2f2;
    color: #b42318;
}

.mobile-member-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.7rem;
}

.mobile-member-tags span {
    max-width: 100%;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    padding: 0.18rem 0.5rem;
    font-size: 0.68rem;
    line-height: 1.35;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.mobile-member-tags span:first-child {
    background: #e7f2f7;
    color: #174f68;
}

.mobile-member-tags span.system {
    background: #e0f2fe;
    color: #0369a1;
}

.mobile-member-fields {
    display: grid;
    gap: 0.4rem;
    margin: 0.7rem 0 0;
}

.mobile-member-fields div {
    display: grid;
    grid-template-columns: minmax(86px, 0.42fr) minmax(0, 1fr);
    gap: 0.55rem;
    min-width: 0;
    padding-top: 0.45rem;
    border-top: 1px solid #eef2f7;
}

.mobile-member-fields dt {
    color: #64748b;
    font-size: 0.72rem;
    line-height: 1.25;
    font-weight: 850;
}

.mobile-member-fields dd {
    min-width: 0;
    margin: 0;
    color: #172033;
    font-size: 0.82rem;
    line-height: 1.35;
    font-weight: 720;
    overflow-wrap: anywhere;
}

.mobile-member-fields dd small {
    display: block;
    margin-top: 0.14rem;
    color: #94a3b8;
    font-size: 0.72rem;
    line-height: 1.3;
}

.mobile-member-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    margin-top: 0.75rem;
}

.mobile-member-actions button {
    min-width: 0;
    min-height: 38px;
    border: 1px solid #90c7dc;
    border-radius: 8px;
    background: #e7f2f7;
    color: #174f68;
    padding: 0.45rem 0.5rem;
    font: inherit;
    font-size: 0.74rem;
    line-height: 1.15;
    font-weight: 850;
    cursor: pointer;
    overflow-wrap: anywhere;
}

.mobile-members-empty {
    border: 1px solid #dbe3ea;
    border-radius: 8px;
    background: #ffffff;
    color: #64748b;
    padding: 1.25rem;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 750;
}

.create-btn {
    background-color: #0052CC;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 3px;
    font-weight: 500;
    cursor: pointer;
}

.tool-btn {
    background-color: #F4F5F7;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 3px;
    font-size: 0.85rem;
    color: #42526E;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    border: 1px solid transparent;
}

.tool-btn:hover {
    background-color: #EBECF0;
}

.tool-btn.active-group {
    background-color: #DEEBFF;
    color: #0747A6;
    border-color: #B3D4FF;
}

.active-pill {
    background-color: #0052CC;
    color: white;
    padding: 0.1rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #DFE1E6;
    border-radius: 3px;
    padding: 0.3rem 0.6rem;
    width: 250px;
    background: white;
}

.search-box input {
    border: none;
    outline: none;
    font-size: 0.85rem;
    width: 100%;
}

.members-table-wrapper {
    flex: 1;
    overflow: auto;
    padding: 0 1.5rem 1.5rem;
}

.jira-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #DFE1E6;
    background: white;
}

.jira-table th {
    background-color: #FAFBFC;
    border: 1px solid #DFE1E6;
    padding: 0.5rem;
    text-align: left;
    font-size: 0.75rem;
    color: #6B778C;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 2;
}

.jira-table td {
    border: 1px solid #DFE1E6;
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
    color: #172B4D;
}

.col-check-group { width: 44px; text-align: center; }
.col-summary { min-width: 150px; width: 150px; font-weight: 500; }
.col-reg-name { min-width: 180px; width: 180px; }
.col-address { min-width: 220px; }
.col-phone { width: 140px; }
.col-email { min-width: 200px; }
.col-status { width: 110px; }
.col-action { width: 90px; text-align: center; }

.status-pill {
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-active { background-color: #E3FCEF; color: #006644; }
.status-at-risk { background-color: #FFFAE6; color: #826330; }
.status-pending { background-color: #EAE6FF; color: #403294; }

.action-btns {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
}

.action-icon-btn {
    background: transparent;
    border: none;
    padding: 0.3rem;
    border-radius: 4px;
    cursor: pointer;
    color: #6B778C;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-icon-btn:hover {
    background-color: #F4F5F7;
}

.action-icon-btn.edit:hover { color: #0052CC; }
.action-icon-btn.delete:hover { color: #DE350B; }

/* Grouping & Side Panel */
.group-settings-panel {
    width: 300px;
    background: white;
    border-left: 1px solid #DFE1E6;
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0 5px rgba(0,0,0,0.05);
}

.panel-header {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #DFE1E6;
}

.panel-title-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #172B4D;
}

.close-panel-btn {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: #6B778C;
    cursor: pointer;
}

.panel-body {
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.group-select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #DFE1E6;
    border-radius: 3px;
    background-color: #FAFBFC;
}

.panel-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #172B4D;
}

.section-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #6B778C;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem;
    border-radius: 3px;
}

.order-item:hover {
    background-color: #F4F5F7;
}

.drag-handle { color: #C1C7D0; }
.item-name { font-size: 0.85rem; color: #0052CC; font-weight: 500; }

.group-header-row { background-color: #EBECF0; cursor: pointer; }
.group-header-row:hover { background-color: #DFE1E6; }

.group-header-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.2rem 0.5rem;
}

.expand-icon {
    font-size: 0.6rem;
    color: #6B778C;
    transition: transform 0.2s;
    width: 12px;
}

.expand-icon.collapsed { transform: rotate(-90deg); }

.group-name { font-weight: 600; font-size: 0.85rem; text-decoration: underline; }

.group-count {
    background-color: #DFE1E6;
    color: #42526E;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
}

.summary-text {
    font-size: 0.75rem;
    color: #6B778C;
    font-style: italic;
}

.group-header-row td {
    border-bottom: 2px solid #DFE1E6;
}

.group-header-row:hover .summary-text {
    color: #42526E;
}

.group-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: #6B778C;
    cursor: pointer;
    margin: 0 auto;
}

/* Permissions Feature Styles */
.permissions-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #F4F5F7;
    width: 100%;
}

.permissions-view-header {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    background-color: white;
    border-bottom: 1px solid #DFE1E6;
}

.permissions-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Roles List Panel */
.roles-list-panel {
    width: 260px;
    background-color: white;
    border-right: 1px solid #DFE1E6;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 0;
}

.panel-section-title {
    padding: 0 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #6B778C;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.roles-list {
    flex: 1;
    overflow-y: auto;
}

.role-item {
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    position: relative;
    transition: background 0.2s;
}

.role-item:hover {
    background-color: #F4F5F7;
}

.role-item.active {
    background-color: #EBF2FF;
    color: #0052CC;
    font-weight: 600;
}

.active-indicator {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: #0052CC;
}

.role-name-text {
    flex: 1;
    font-size: 0.9rem;
}

.delete-role-btn {
    opacity: 0;
    background: transparent;
    border: none;
    color: #6B778C;
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 3px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.role-item:hover .delete-role-btn {
    opacity: 1;
}

.delete-role-btn:hover {
    background-color: #FFEBE6;
    color: #DE350B;
}

.add-role-inline {
    margin: 1rem 1.5rem;
    padding: 0.5rem;
    background: transparent;
    border: 1px dashed #C1C7D0;
    color: #6B778C;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
}

/* Permissions Main Content Panel */
.permissions-content-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #F4F5F7;
    overflow: hidden;
}

.selected-role-header {
    padding: 1.5rem 2rem;
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #DFE1E6;
}

.role-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.role-avatar {
    width: 48px;
    height: 48px;
    background-color: #F4F5F7;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.selected-role-header h2 {
    font-size: 1.25rem;
    color: #172B4D;
    margin: 0;
}

.permission-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.permission-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #42526E;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.permission-filter-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.permission-filter-toggle .toggle-track {
    width: 38px;
    height: 22px;
    border-radius: 999px;
    background-color: #DFE1E6;
    padding: 2px;
    transition: background-color 0.2s;
}

.permission-filter-toggle .toggle-thumb {
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: white;
    box-shadow: 0 1px 3px rgba(9, 30, 66, 0.25);
    transition: transform 0.2s;
}

.permission-filter-toggle input:checked + .toggle-track {
    background-color: #36B37E;
}

.permission-filter-toggle input:checked + .toggle-track .toggle-thumb {
    transform: translateX(16px);
}

.save-permissions-btn {
    background-color: #0052CC;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

.permissions-scroll-area {
    padding: 2rem;
    overflow-y: auto;
}

.permission-category-group {
    margin-bottom: 2.5rem;
}

.category-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #42526E;
    margin-bottom: 1rem;
    border-bottom: 2px solid #DFE1E6;
    padding-bottom: 0.5rem;
}

.permission-items-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.permission-card {
    background-color: white;
    border: 1px solid #DFE1E6;
    border-radius: 6px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 100px;
}

.permission-card:hover {
    border-color: #4C9AFF;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.permission-card.enabled {
    border-color: #36B37E;
    background-color: #FAFFFC;
}

.permission-checkbox-group {
    display: flex;
    gap: 0.75rem;
    width: 100%;
}

/* My Notes */
.mynotes-container {
    display: grid;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    min-height: 100%;
    background: #F7F9FB;
    color: #172033;
}

.mynotes-sidebar {
    background: #FFFFFF;
    border-right: 1px solid #DDE5EC;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    min-width: 0;
    overflow: hidden;
}

.mynotes-main-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid #E4EAF0;
}

.mynotes-main-header h1,
.mynotes-welcome h1 {
    margin: 0;
    color: #172033;
    font-family: var(--font-sans);
    font-size: 1.25rem;
    line-height: 1.2;
}

.mynotes-main-header p,
.mynotes-welcome p {
    margin: 0.35rem 0 0;
    color: #6B778C;
    font-size: 0.9rem;
}

.mynotes-title-form,
.mynotes-detail-form {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #E4EAF0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mynotes-title-form-main {
    background: #FFFFFF;
}

.mynotes-title-form-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(160px, 220px) auto auto;
    gap: 0.55rem;
    align-items: center;
}

.mynotes-title-form label,
.mynotes-compose-header {
    color: #475569;
    font-size: 0.82rem;
    font-weight: 800;
}

.mynotes-title-form input,
.mynotes-title-form select,
.mynotes-title-filters select,
.mynotes-detail-form input {
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    min-height: 42px;
    padding: 0.65rem 0.75rem;
    font: inherit;
    color: #172033;
    background: #FFFFFF;
    outline: none;
}

.mynotes-title-form input:focus,
.mynotes-title-form select:focus,
.mynotes-title-filters select:focus {
    border-color: #317A9B;
    box-shadow: 0 0 0 3px rgba(49, 122, 155, 0.12);
}

.mynotes-title-filters {
    padding: 0.85rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.mynotes-sidebar-add-btn {
    width: auto;
}

.mynotes-title-back-link {
    width: fit-content;
    margin: 0.85rem 0.85rem 0;
    border: 0;
    background: transparent;
    color: #174F68;
    padding: 0.25rem 0;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 850;
    cursor: pointer;
}

.mynotes-title-back-link:hover {
    color: #123F54;
    text-decoration: underline;
}

.mynotes-editor-shell {
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    overflow: hidden;
    background: #FFFFFF;
}

.mynotes-editor-shell .ql-toolbar.ql-snow {
    border: none;
    border-bottom: 1px solid #E2E8F0;
    background: #FFFFFF;
}

.mynotes-editor-shell .ql-container.ql-snow {
    border: none;
    font: inherit;
}

.mynotes-editor-shell .ql-editor {
    min-height: 132px;
    font-size: 1rem;
    line-height: 1.5;
}

.mynotes-title-actions,
.mynotes-header-actions,
.mynotes-detail-form-footer,
.mynotes-detail-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mynotes-title-actions,
.mynotes-header-actions {
    justify-content: flex-end;
}

.mynotes-detail-form-footer {
    justify-content: flex-end;
    flex-wrap: wrap;
}

.mynotes-primary-btn,
.mynotes-secondary-btn,
.mynotes-danger-btn {
    border: 1px solid transparent;
    border-radius: 8px;
    min-height: 38px;
    padding: 0.55rem 0.9rem;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
}

.mynotes-primary-btn {
    background: #174F68;
    color: #FFFFFF;
}

.mynotes-secondary-btn {
    background: #FFFFFF;
    border-color: #CBD5E1;
    color: #334155;
}

.mynotes-danger-btn {
    background: #FFF7F7;
    border-color: #FECDD3;
    color: #BE123C;
}

.mynotes-primary-btn:hover {
    background: #123F54;
}

.mynotes-secondary-btn:hover {
    border-color: #94A3B8;
}

.mynotes-danger-btn:hover {
    background: #FFE4E6;
}

.mynotes-title-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0.65rem;
}

.mynotes-title-item {
    width: 100%;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #172033;
    padding: 0.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.45rem;
    align-items: center;
}

.mynotes-title-item:hover,
.mynotes-title-item.active {
    background: #EAF4F8;
    border-color: #BFD7E2;
}

.mynotes-title-select {
    min-width: 0;
    min-height: 48px;
    border: 0;
    background: transparent;
    color: inherit;
    padding: 0.2rem 0.25rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
    cursor: pointer;
}

.mynotes-title-select span {
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mynotes-title-select small,
.mynotes-detail-content small,
.mynotes-muted {
    color: #6B778C;
}

.mynotes-title-row-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.3rem;
}

.mynotes-title-row-actions button {
    min-height: 30px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    background: #FFFFFF;
    color: #334155;
    padding: 0.3rem 0.5rem;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 800;
    cursor: pointer;
}

.mynotes-title-row-actions button.danger {
    border-color: #FECDD3;
    color: #BE123C;
}

.mynotes-detail-date {
    color: #6B778C;
    font-size: 0.68rem;
    font-weight: 700;
    margin-left: auto;
    white-space: nowrap;
}

.mynotes-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.mynotes-detail-list {
    padding: 1.25rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.mynotes-detail-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: flex-start;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 1rem;
}

.mynotes-detail-content div {
    margin: 0 0 0.6rem;
    color: #172033;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.mynotes-detail-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.mynotes-detail-actions button {
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    background: #FFFFFF;
    color: #334155;
    min-height: 32px;
    padding: 0.38rem 0.58rem;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 750;
    cursor: pointer;
}

.mynotes-detail-actions button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.mynotes-detail-actions button.danger {
    border-color: #FECDD3;
    color: #BE123C;
}

.mynotes-empty,
.mynotes-empty-page,
.mynotes-welcome {
    color: #6B778C;
    text-align: center;
    padding: 3rem 1rem;
}

.mynotes-welcome {
    margin: auto;
}

.mynotes-back-btn {
    display: none;
    min-height: 38px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    background: #FFFFFF;
    color: #174F68;
    padding: 0.5rem 0.75rem;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 850;
    cursor: pointer;
}

@media (max-width: 900px) {
    .mynotes-container {
        grid-template-columns: 1fr;
        min-height: auto;
        background: transparent;
    }

    .mynotes-sidebar {
        min-height: auto;
        border-right: none;
        border: 1px solid #DDE5EC;
        border-radius: 8px;
    }

    .mynotes-title-list {
        max-height: 320px;
    }

    .mynotes-title-form-row {
        grid-template-columns: 1fr minmax(100px, 160px) auto auto;
    }

    .mynotes-title-form-row button {
        width: auto;
    }

    .mynotes-title-item {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .mynotes-title-row-actions {
        justify-content: flex-end;
    }

    .mynotes-main {
        margin-top: 0.75rem;
        overflow: visible;
    }

    .mynotes-main-header,
    .mynotes-detail-form,
    .mynotes-detail-list {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .mynotes-detail-item {
        grid-template-columns: minmax(0, 1fr);
    }

    .mynotes-detail-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

.mynotes-mobile {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 0 !important;
}

.mynotes-mobile .mynotes-sidebar,
.mynotes-mobile .mynotes-main {
    min-height: auto;
    width: 100%;
    min-width: 0;
}

.mynotes-mobile .mynotes-main {
    margin-top: 0;
}

.mynotes-mobile .mynotes-title-filters {
    padding: 0 0 0.75rem;
}

.mynotes-mobile .mynotes-sidebar-add-btn {
    width: 100%;
    min-height: 40px;
    border-radius: 8px;
}

.mynotes-mobile .mynotes-title-list {
    gap: 0.65rem;
    padding: 0;
}

.mynotes-mobile .mynotes-title-item {
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.mynotes-mobile .mynotes-title-select {
    min-width: 0;
    padding: 0.85rem;
}

.mynotes-mobile .mynotes-title-select span {
    font-size: 0.95rem;
    line-height: 1.25;
}

.mynotes-mobile .mynotes-title-row-actions {
    padding: 0 0.85rem 0.85rem;
    justify-content: flex-end;
    gap: 0.45rem;
}

.mynotes-mobile .mynotes-title-row-actions button {
    min-height: 34px;
    border-radius: 8px;
}

.mynotes-mobile .mynotes-main-header {
    flex-direction: row;
    align-items: center;
    border: 1px solid #DDE5EC;
    border-radius: 8px 8px 0 0;
    background: #FFFFFF;
    padding: 0.85rem;
    gap: 0.75rem;
}

.mynotes-mobile .mynotes-main-header h1 {
    font-size: 1.05rem;
    line-height: 1.22;
    overflow-wrap: anywhere;
}

.mynotes-mobile .mynotes-main-header p {
    font-size: 0.76rem;
}

.mynotes-mobile .mynotes-back-btn {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
}

.mynotes-mobile .mynotes-header-actions {
    justify-content: stretch;
}

.mynotes-mobile .mynotes-header-actions button,
.mynotes-mobile .mynotes-title-actions button {
    flex: 1;
    min-height: 38px;
    border-radius: 8px;
}

.mynotes-mobile .mynotes-detail-form {
    background: #FFFFFF;
    border-left: 1px solid #DDE5EC;
    border-right: 1px solid #DDE5EC;
    padding: 0.85rem;
}

.mynotes-mobile .mynotes-title-form {
    padding: 0.85rem;
    border-radius: 8px;
}

.mynotes-mobile .mynotes-title-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
}

.mynotes-mobile .mynotes-title-form input,
.mynotes-mobile .mynotes-title-form select {
    min-height: 40px;
    font-size: 16px;
}

.mynotes-mobile .mynotes-editor-shell .ql-toolbar.ql-snow {
    overflow-x: auto;
    white-space: nowrap;
    padding: 8px;
}

.mynotes-mobile .mynotes-editor-shell .ql-editor {
    min-height: 150px;
    font-size: 16px;
    padding: 12px;
}

.mynotes-mobile .mynotes-detail-list {
    padding: 0.75rem 0 0;
    overflow: visible;
    gap: 0.65rem;
}

.mynotes-mobile .mynotes-detail-item {
    padding: 0.85rem;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.mynotes-mobile .mynotes-detail-content div {
    font-size: 0.92rem;
    line-height: 1.55;
}

.mynotes-mobile .mynotes-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.mynotes-mobile .mynotes-detail-actions button {
    min-height: 34px;
    border-radius: 8px;
    padding: 0.4rem 0.65rem;
}

.mynotes-mobile .mynotes-detail-date {
    flex-basis: 100%;
    text-align: left;
    padding-top: 0.15rem;
}

.mynotes-mobile .mynotes-empty,
.mynotes-mobile .mynotes-empty-page {
    padding: 1.25rem;
    border-radius: 8px;
    background: #ffffff;
}
/* MyTask Workspace (Jira-like) */
.task-workspace {
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background-color: var(--white);
    min-height: 100%;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.task-title-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.task-title-group h1 {
    font-size: 1.5rem;
    font-weight: 500;
    color: #172B4D;
    margin: 0;
}

.star-btn {
    background: none;
    border: none;
    padding: 4px;
    color: #6B778C;
    cursor: pointer;
    border-radius: 3px;
    display: flex;
    align-items: center;
}

.star-btn:hover {
    background-color: #EBECF0;
    color: #172B4D;
}

.task-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn {
    background-color: #F4F5F7;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 3px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #42526E;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.action-btn:hover {
    background-color: #EBECF0;
}

.view-switch {
    display: flex;
    background-color: #F4F5F7;
    padding: 2px;
    border-radius: 3px;
}

.view-btn {
    background: none;
    border: none;
    padding: 4px 6px;
    border-radius: 2px;
    cursor: pointer;
    color: #42526E;
    display: flex;
    align-items: center;
}

.view-btn.active {
    background-color: var(--white);
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
    color: #0052CC;
}

/* Filters */
.task-filters {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.filter-tabs {
    display: flex;
    gap: 1.5rem;
    border-bottom: 2px solid #EBECF0;
}

.filter-tab {
    background: none;
    border: none;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: #42526E;
    cursor: pointer;
    position: relative;
    bottom: -2px;
}

.filter-tab.active {
    color: #0052CC;
    border-bottom: 2px solid #0052CC;
}

.filter-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--white);
    border: 2px solid #DFE1E6;
    border-radius: 3px;
    padding: 0.4rem 0.75rem;
    width: 250px;
}

.filter-search:focus-within {
    border-color: #4C9AFF;
}

.filter-search input {
    border: none;
    outline: none;
    font-size: 0.9rem;
    width: 100%;
}

.filter-dropdowns {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-drop {
    background: none;
    border: none;
    font-size: 0.9rem;
    color: #42526E;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 4px 8px;
    border-radius: 3px;
}

.filter-drop:hover {
    background-color: #EBECF0;
}

.filter-pill {
    background-color: #DEEBFF;
    color: #0052CC;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.filter-pill:hover {
    background-color: #B3D4FF;
}

.filter-divider {
    width: 1px;
    height: 16px;
    background-color: #C1C7D0;
    margin: 0 0.5rem;
}

.filter-action {
    background: none;
    border: none;
    font-size: 0.9rem;
    color: #0052CC;
    cursor: pointer;
    padding: 4px 8px;
}

.filter-action:hover {
    text-decoration: underline;
}

/* Table */
.task-table-container {
    border: 1px solid #EBECF0;
    border-radius: 3px;
    overflow-x: auto;
}

.task-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.task-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    background-color: #F4F5F7;
    color: #6B778C;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    border-bottom: 1px solid #EBECF0;
}

.task-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #EBECF0;
    color: #172B4D;
    vertical-align: middle;
}

.task-table tr:hover {
    background-color: #F4F5F7;
}

.col-check { width: 40px; }
.col-work { min-width: 300px; }
.col-status { width: 140px; }

.work-cell {
    white-space: nowrap;
}

.task-id {
    color: #6B778C;
    text-decoration: none;
    font-weight: 500;
}

.task-id:hover {
    text-decoration: underline;
    color: #0052CC;
}

.task-title {
    color: #0052CC;
    cursor: pointer;
}

.task-title:hover {
    text-decoration: underline;
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-avatar-placeholder {
    width: 24px;
    height: 24px;
    background-color: #EBECF0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6B778C;
}

.user-avatar-initials {
    width: 24px;
    height: 24px;
    background-color: #FF5630;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.priority-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #6B778C;
}

.priority-label.medium {
    color: #E2B203;
}

.status-dropdown {
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    cursor: pointer;
    text-transform: uppercase;
}

.status-parking {
    background-color: #EBECF0;
    color: #42526E;
}

.status-todo {
    background-color: #DEEBFF;
    color: #0052CC;
}

.status-dropdown.status-draft,
.mobile-request-status.status-draft {
    background-color: #f1f5f9;
    color: #475569;
}

.status-dropdown.status-awaiting,
.mobile-request-status.status-awaiting {
    background-color: #fff7ed;
    color: #c2410c;
}

.status-dropdown.status-pending,
.mobile-request-status.status-pending {
    background-color: #fffbeb;
    color: #b45309;
}

.status-dropdown.status-finalized,
.mobile-request-status.status-finalized {
    background-color: #eef2ff;
    color: #4338ca;
}

.status-dropdown.status-paid,
.mobile-request-status.status-paid {
    background-color: #ecfdf5;
    color: #047857;
}

.status-dropdown.status-paid-editing,
.mobile-request-status.status-paid-editing {
    background-color: #f5f3ff;
    color: #6d28d9;
}

.status-dropdown.status-declined,
.mobile-request-status.status-declined {
    background-color: #fef2f2;
    color: #b42318;
}

.status-dropdown.status-default,
.mobile-request-status.status-default {
    background-color: #f8fafc;
    color: #334155;
}

.date-cell {
    color: #6B778C;
    white-space: nowrap;
}

.actions-cell {
    text-align: right;
}

.row-more-btn {
    background: none;
    border: none;
    color: #6B778C;
    cursor: pointer;
    padding: 4px;
    border-radius: 3px;
}

.row-more-btn:hover {
    background-color: #DFE1E6;
}

.task-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: #6B778C;
    font-size: 0.85rem;
}

.refresh-btn {
    background: none;
    border: none;
    color: #6B778C;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.refresh-btn:hover {
    color: #172B4D;
}

.custom-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #C1C7D0;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.custom-checkbox.checked {
    background-color: #36B37E;
    border-color: #36B37E;
    color: white;
    font-size: 10px;
}

.perm-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: #172B4D;
    margin-bottom: 0.1rem;
    line-height: 1.2;
}

.perm-desc {
    font-size: 0.75rem;
    color: #6B778C;
    line-height: 1.3;
}

.status-label {
    align-self: flex-end;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    text-transform: uppercase;
    background-color: #F4F5F7;
    color: #42526E;
    margin-top: auto;
}

.enabled .status-label {
    background-color: #E3FCEF;
    color: #006644;
}

/* Offering Types Styles */
.offering-types-container {
    padding: 2rem;
    background-color: var(--white);
    min-height: 100%;
    flex: 1 0 auto;
    max-width: 100%;
    min-width: 0;
}

.offering-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #317A9B;
    margin-bottom: 1.5rem;
}

.offering-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.add-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 1px solid #aaa;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    color: #317A9B;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.add-btn:hover {
    background-color: #f0f7f9;
    border-color: #317A9B;
}

.offering-table-wrapper {
    overflow-x: auto;
    width: 100%;
}

.offering-table {
    width: 100%;
    min-width: 1100px;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.offering-table th {
    background-color: #E6F3F5;
    color: #333;
    font-weight: 500;
    padding: 0.8rem 1rem;
    border: 1px solid #D0E5E8;
    text-align: left;
}

.offering-table td {
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    color: #444;
}

.offering-table tr:hover {
    background-color: #f5fafd;
}

.text-center { text-align: center !important; }
.text-right { text-align: right !important; }

.status-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    margin-top: 4px;
}

.status-dot.active {
    background-color: #00A854;
}

.status-dot.disabled {
    background-color: #BDBDBD;
}

.actions-cell {
    text-align: center;
    vertical-align: middle;
}

.actions-cell > .icon-btn {
    display: inline-flex;
    margin: 0 3px;
}

.icon-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    border: 1px solid #ccc;
    border-radius: 2px;
    cursor: pointer;
    color: #317A9B;
    transition: all 0.2s;
}

.icon-btn:hover {
    background-color: #eee;
    border-color: #999;
}

/* Expense Setup Styles */
.table-select {
    width: 100%;
    padding: 0.4rem 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f5f5f5;
    font-size: 0.9rem;
    color: #333;
    cursor: pointer;
}

.order-select {
    width: 60px;
    margin: 0 auto;
    display: block;
}

.view-link {
    color: #317A9B;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.view-link:hover {
    text-decoration: underline;
}

.col-dept {
    min-width: 200px;
}

/* Dept Detail Styles */
.dept-detail-container {
    padding-top: 1rem;
}

.detail-header {
    border-bottom: 2px solid #333;
    padding-bottom: 0.5rem;
}

.main-back-btn {
    border: 1px solid #ccc;
    background-color: #f8f9fa;
    color: #0052CC;
}

.blue-text {
    color: #0052CC;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 0.5rem;
}

.add-btn.mini {
    padding: 0.2rem 0.6rem;
    font-size: 0.85rem;
}

.checkbox-label {
    font-size: 0.85rem;
    color: #333;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}

.header-options {
    display: flex;
    align-items: center;
}

.radio-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #317A9B;
}

/* Offering Entry Styles */
.red-title {
    color: #A31E22 !important;
}

.entry-view-header {
    border-bottom: 1px solid #ddd;
    margin-bottom: 1.5rem;
}

.header-actions-group {
    display: flex;
    gap: 0.5rem;
}

.lock-btn {
    color: #317A9B !important;
}

.floating-entry-card {
    background-color: var(--white);
    border: 3px solid #317A9B;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    margin-bottom: 2rem;
}

.entry-fields {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.entry-input, .entry-select {
    height: 36px;
    padding: 0 0.75rem;
    border: 1px solid #ccc;
    border-radius: 2px;
    font-size: 0.85rem;
    outline: none;
}

.entry-input:focus {
    border-color: #317A9B;
}

.date-input { width: 100px; }
.account-entry-date-input {
    width: 150px;
    min-width: 150px;
}
.account-entry-subtype-select {
    width: 150px;
    min-width: 150px;
}
.account-entry-date-column {
    min-width: 130px;
    white-space: nowrap;
}
.type-select { width: 100px; background-color: var(--white); }
.search-input { width: 150px; border-color: #317A9B; }
.offering-type-input { width: 120px; }
.amount-input { width: 80px; }
.check-input { width: 80px; }
.memo-input { flex: 1; }

.entry-search-btn {
    width: 36px;
    height: 36px;
    background-color: #f8f9fa;
    border: 1px solid #ccc;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #317A9B;
    cursor: pointer;
}

.entry-search-btn:hover {
    background-color: #eee;
}

.red-header {
    color: #A31E22 !important;
}

.icon-btn-more {
    background: none;
    border: 1px solid #ccc;
    border-radius: 2px;
    padding: 2px 4px;
    color: #317A9B;
    cursor: pointer;
}

.icon-btn-more:hover {
    background-color: #eee;
}

/* Report Filter Bar Styles */
.report-filter-bar {
    max-width: 1000px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.9rem;
    color: #333;
    white-space: nowrap;
}

.date-input-wide {
    width: 110px;
}

.date-separator {
    color: #666;
}

.group-select {
    width: 200px;
    min-height: 36px;
}

.name-search-input {
    width: 250px;
}

.year-input {
    width: 80px;
    background-color: #FEFFEA; /* Subtle yellow background from screenshot */
}

.wide-search-input {
    width: 320px;
}

.donation-input {
    width: 140px;
}

.excel-generate-btn {
    background-color: #317A9B;
    color: white;
    border: none;
    border-radius: 2px;
    padding: 0 1.5rem;
    height: 36px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-left: 1rem;
}

.excel-generate-btn:hover {
    background-color: #265E78;
}

/* Purple Theme for Education Dept */
.purple-title {
    color: #8E24AA !important;
}

.purple-text {
    color: #8E24AA !important;
}

.dept-select-small {
    width: 70px;
    background-color: var(--white);
}

/* Modern Member Filters */
.premium-toolbar {
    padding: 0.75rem 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #EBECF0;
}

.toolbar-divider {
    width: 1px;
    height: 24px;
    background-color: #DFE1E6;
    margin: 0 1rem;
}

.modern-filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.modern-filter-group:hover {
    background-color: #F4F5F7;
}

.filter-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #6B778C;
    text-transform: uppercase;
}

.modern-filter-select {
    border: none;
    background: transparent;
    font-size: 0.9rem;
    font-weight: 500;
    color: #172B4D;
    cursor: pointer;
    padding: 2px 4px;
    outline: none;
}

.premium-search {
    background-color: var(--white);
    border: 1px solid #DFE1E6;
    border-radius: 3px;
    padding: 0 0.75rem;
    height: 32px;
    transition: all 0.2s;
}

.premium-search:focus-within {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(0, 82, 204, 0.2);
}

.premium-search input {
    border: none;
    outline: none;
    font-size: 0.9rem;
    padding-left: 0.5rem;
    width: 200px;
}

/* Groups Styles */
.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.group-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid #EBECF0;
}

.group-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.group-card.disabled-card {
    opacity: 0.68;
    background: #F8FAFC;
}

.group-title-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.group-disabled-badge {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
    border-radius: 999px;
    padding: 0.1rem 0.45rem;
    font-size: 0.68rem;
    font-weight: 800;
}

.group-card-header {
    padding: 1.5rem;
    border-left: 4px solid #DFE1E6;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #F4F5F7;
}

.group-info h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    color: #172B4D;
}

.group-dept-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #6B778C;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

/* MyGroups Modern Tabs */
.tab-group-modern {
    display: flex;
    background-color: #F4F5F7;
    padding: 4px;
    border-radius: 8px;
    gap: 4px;
}

.modern-tab-btn {
    padding: 0.5rem 1.25rem;
    border: none;
    background: none;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6B778C;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.modern-tab-btn.active {
    background-color: var(--white);
    color: var(--primary-blue);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.title-with-type {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.type-tag {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 1rem;
}

.type-tag.department { background-color: #EAE6FF; }
.type-tag.group { background-color: #E3FCEF; }

.group-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #6B778C;
    line-height: 1.4;
}

.group-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.group-card-body {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.group-stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #172B4D;
}

.stat-label {
    font-size: 0.75rem;
    color: #6B778C;
    text-transform: uppercase;
}

.group-actions {
    display: flex;
    gap: 0.5rem;
}

.groups-include-disabled {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #334155;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
}

.groups-include-disabled input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-blue);
    cursor: pointer;
}

.icon-btn-box.disable:hover {
    background-color: #FFEBE6;
    color: #FF5630;
    border-color: #FF5630;
}

.icon-btn-box.enable:hover {
    background-color: #E3FCEF;
    color: #00875A;
    border-color: #36B37E;
}

.group-readonly-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: #172B4D;
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.group-members-readonly {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.group-member-readonly-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid #E8ECF0;
    border-radius: 8px;
    background: #FFFFFF;
}

.group-member-readonly-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.group-member-readonly-meta,
.group-members-empty {
    color: #6B778C;
    font-size: 0.8rem;
}

.group-members-empty {
    padding: 2rem 1rem;
    text-align: center;
    border: 1px dashed #CBD5E1;
    border-radius: 8px;
    background: #F8FAFC;
}

/* Group Detail Panel Styles */
.group-color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.panel-tabs {
    display: flex;
    border-bottom: 2px solid #EBECF0;
    margin-bottom: 1.5rem;
}

.panel-tabs .tab {
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6B778C;
    cursor: pointer;
}

.panel-tabs .tab.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

.member-list-mini {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.add-member-inline {
    display: flex;
    gap: 0.5rem;
}

.inline-add-input {
    flex: 1;
    height: 32px;
    padding: 0 0.75rem;
    border: 1px solid #DFE1E6;
    border-radius: 3px;
    font-size: 0.85rem;
}

.inline-add-btn {
    padding: 0 1rem;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 3px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.mini-members {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.mini-member-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 4px;
    background-color: #F4F5F7;
}

.member-avatar-small {
    width: 24px;
    height: 24px;
    background-color: #DFE1E6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.member-name-small {
    flex: 1;
    font-size: 0.9rem;
    color: #172B4D;
}

.remove-btn {
    background: none;
    border: none;
    color: #6B778C;
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
}

.remove-btn:hover {
    color: #FF5630;
}

.panel-section {
    margin-top: 2rem;
}

.security-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #172B4D;
}

.full-width {
    width: 100%;
}

/* ============================================================
   MY GROUPS – card grid
   ============================================================ */
.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
    padding: 1.5rem 0 0;
}
.group-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.15s;
    border: 1px solid #E8ECF0;
}
.group-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.12); transform: translateY(-2px); }
.group-card-header {
    padding: 1rem 1rem 0.75rem;
    border-left: 4px solid #0052CC;
}
.group-info .group-title-row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.title-with-type { display: flex; align-items: center; gap: 0.5rem; }
.title-with-type h3 { margin: 0; font-size: 1rem; font-weight: 700; color: #172B4D; }
.type-tag { font-size: 1.1rem; }
.user-role-badge { font-size: 0.7rem; font-weight: 600; padding: 2px 8px; border-radius: 20px; background: #E8ECF0; color: #344563; white-space: nowrap; }
.group-dept-label { font-size: 0.75rem; color: #5E6C84; margin: 0.3rem 0 0.4rem; }
.group-info p { margin: 0; font-size: 0.82rem; color: #6B778C; line-height: 1.5; }
.group-card-body { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1rem; background: #F7F8F9; border-top: 1px solid #E8ECF0; }
.group-stat { display: flex; flex-direction: column; }
.group-stat .stat-value { font-size: 1.2rem; font-weight: 700; color: #172B4D; }
.group-stat .stat-label { font-size: 0.72rem; color: #7A869A; }
.group-actions button { font-size: 0.78rem; }

/* shared tab / toolbar */
.tab-group-modern { display: flex; gap: 0.25rem; background: #F4F5F7; border-radius: 8px; padding: 3px; }
.modern-tab-btn {
    padding: 5px 14px; border: none; border-radius: 6px; font-size: 0.82rem; font-weight: 500;
    color: #5E6C84; background: transparent; cursor: pointer; transition: all 0.15s;
}
.modern-tab-btn.active { background: #fff; color: #0052CC; box-shadow: 0 1px 4px rgba(0,0,0,0.12); font-weight: 600; }
.modern-tab-btn:hover:not(.active) { color: #172B4D; background: rgba(255,255,255,0.6); }
.premium-search { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #DFE1E6; border-radius: 8px; padding: 5px 12px; }
.premium-search input { border: none; outline: none; font-size: 0.83rem; color: #172B4D; width: 200px; }
.premium-search svg { color: #7A869A; flex-shrink: 0; }
.count-badge { font-size: 0.72rem; font-weight: 600; padding: 2px 8px; border-radius: 20px; background: #DEEBFF; color: #0052CC; }
.action-btn-secondary.mini { padding: 4px 12px; font-size: 0.78rem; }
.action-btn-danger { background: #FFEBE6; color: #BF2600; border: 1px solid #FFBDAD; border-radius: 4px; padding: 4px 10px; font-size: 0.78rem; cursor: pointer; }
.action-btn-danger:hover { background: #FFBDAD; }

/* ============================================================
   GROUP DETAIL – fancy UI
   ============================================================ */
.gd-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #F4F5F7;
    position: relative;
}

/* ── Hero ── */
.gd-hero {
    position: relative;
    padding: 1.5rem 2rem 0;
    background: #fff;
    border-bottom: 1px solid #E8ECF0;
    flex-shrink: 0;
}
.gd-hero-bg {
    position: absolute; inset: 0; pointer-events: none; z-index: 0;
}
.gd-hero-content { position: relative; z-index: 1; }
.gd-back-btn {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 0.8rem; font-weight: 600; color: #5E6C84;
    background: none; border: none; cursor: pointer; padding: 4px 0; margin-bottom: 1rem;
    transition: color 0.15s;
}
.gd-back-btn:hover { color: #0052CC; }
.gd-hero-main { display: flex; gap: 1.25rem; align-items: flex-start; padding-bottom: 1.25rem; }
.gd-hero-icon {
    width: 64px; height: 64px; border-radius: 16px; border: 2px solid;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.gd-hero-text { flex: 1; }
.gd-hero-type-badge {
    display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em;
    text-transform: uppercase; padding: 2px 10px; border-radius: 20px; margin-bottom: 0.35rem;
}
.gd-hero-title { margin: 0 0 0.35rem; font-size: 1.5rem; font-weight: 800; color: #172B4D; }
.gd-hero-desc { margin: 0 0 0.6rem; font-size: 0.875rem; color: #6B778C; line-height: 1.5; }
.gd-hero-meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.8rem; color: #5E6C84; }
.gd-hero-meta strong { color: #172B4D; }

/* ── Tab Bar ── */
.gd-tab-bar {
    display: flex; gap: 0; background: #fff;
    border-bottom: 1px solid #E8ECF0; padding: 0 2rem; flex-shrink: 0;
}
.gd-tab {
    position: relative; display: flex; align-items: center; gap: 7px;
    padding: 0.85rem 1.1rem; font-size: 0.85rem; font-weight: 500; color: #6B778C;
    background: none; border: none; cursor: pointer; transition: color 0.15s; white-space: nowrap;
}
.gd-tab:hover { color: #172B4D; }
.gd-tab.active { color: var(--tab-color, #0052CC); font-weight: 700; }
.gd-tab-indicator {
    position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
    border-radius: 3px 3px 0 0; animation: slideIn 0.2s ease;
}
@keyframes slideIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ── Panel wrapper ── */
.gd-panel-wrapper { flex: 1; overflow-y: auto; padding: 1.5rem 2rem; }
.gd-panel { background: #fff; border-radius: 12px; border: 1px solid #E8ECF0; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }

/* ── Panel toolbar ── */
.gd-panel-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.85rem 1.25rem; border-bottom: 1px solid #F4F5F7; background: #FAFBFC;
}
.gd-panel-count { font-size: 0.8rem; color: #7A869A; font-weight: 500; }
.gd-btn-primary {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 7px 14px; border: none; border-radius: 7px;
    background: #0052CC; color: #fff; font-size: 0.82rem; font-weight: 600; cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}
.gd-btn-primary:hover { background: #003EA8; }
.gd-btn-primary:active { transform: scale(0.97); }

.gd-btn-secondary {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 7px 14px; border: 1px solid #DFE1E6; border-radius: 7px;
    background: #F4F5F7; color: #42526E; font-size: 0.82rem; font-weight: 600; cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}
.gd-btn-secondary:hover { background: #EBECF0; color: #172B4D; }
.gd-btn-secondary:active { transform: scale(0.97); }

/* ── Search ── */
.gd-search {
    display: flex; align-items: center; gap: 6px;
    background: #F4F5F7; border: 1px solid #DFE1E6; border-radius: 8px; padding: 5px 10px;
}
.gd-search input { border: none; outline: none; font-size: 0.82rem; color: #172B4D; background: transparent; width: 200px; }

/* ── Members ── */
.gd-member-list { }
.gd-member-row {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.9rem 1.25rem; border-bottom: 1px solid #F4F5F7; transition: background 0.1s;
}
.gd-member-row:last-child { border-bottom: none; }
.gd-member-row:hover { background: #F8F9FA; }
.gd-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: linear-gradient(135deg, #0052CC, #6554C0);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.gd-member-info { flex: 1; display: flex; flex-direction: column; }
.gd-member-name { font-size: 0.88rem; font-weight: 600; color: #172B4D; }
.gd-member-meta { font-size: 0.73rem; color: #7A869A; }
.gd-role-badge {
    font-size: 0.72rem; font-weight: 600; padding: 2px 9px;
    border-radius: 20px; background: #EAE6FF; color: #403294;
}
.gd-status-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.gd-row-actions { display: flex; gap: 4px; }
.gd-row-actions.centered { justify-content: center; margin-top: 0.5rem; }
.gd-btn-icon {
    width: 28px; height: 28px; border: none; border-radius: 6px;
    background: transparent; cursor: pointer; font-size: 0.88rem; display: flex; align-items: center; justify-content: center;
    transition: background 0.12s;
}
.gd-btn-icon:hover { background: #F4F5F7; }

/* ── Nets ── */
.gd-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; padding: 1.25rem; }
.gd-net-card {
    background: #F8F9FA; border: 1px solid #E8ECF0; border-radius: 10px;
    padding: 1.25rem 1rem; text-align: center; transition: box-shadow 0.15s;
}
.gd-net-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.08); }
.gd-net-icon { font-size: 1.8rem; margin-bottom: 0.5rem; }
.gd-net-name { font-size: 0.9rem; font-weight: 700; color: #172B4D; }
.gd-net-type { font-size: 0.73rem; color: #7A869A; margin: 2px 0; }
.gd-net-members { font-size: 0.78rem; font-weight: 600; color: #0052CC; margin-bottom: 0.5rem; }

/* ── Tasks ── */
.gd-task-list { }
.gd-task-row {
    display: flex; align-items: center; gap: 0.85rem;
    padding: 0.85rem 1.25rem; border-bottom: 1px solid #F4F5F7; transition: background 0.1s;
}
.gd-task-row:last-child { border-bottom: none; }
.gd-task-row:hover { background: #F8F9FA; }
.gd-task-row.done .gd-task-title { text-decoration: line-through; color: #97A0AF; }
.gd-task-checkbox {
    width: 18px; height: 18px; border-radius: 50%; border: 2px solid #DFE1E6; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; transition: all 0.15s;
}
.gd-task-info { flex: 1; display: flex; flex-direction: column; }
.gd-task-title { font-size: 0.88rem; font-weight: 600; color: #172B4D; }
.gd-task-due { font-size: 0.73rem; color: #7A869A; }
.gd-priority-badge, .gd-status-badge {
    font-size: 0.72rem; font-weight: 600; padding: 2px 9px;
    border-radius: 20px; white-space: nowrap;
}

/* ── Finance ── */
.gd-finance-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 1.25rem; }
.gd-finance-card {
    border-radius: 10px; padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: 0.25rem;
}
.gd-finance-card.income { background: #E3FCEF; border: 1px solid #ABF5D1; }
.gd-finance-card.expense { background: #FFEBE6; border: 1px solid #FFBDAD; }
.gd-finance-card.balance { background: #DEEBFF; border: 1px solid #B3D4FF; }
.gd-fc-label { font-size: 0.75rem; font-weight: 600; color: #5E6C84; text-transform: uppercase; letter-spacing: 0.04em; }
.gd-fc-amount { font-size: 1.4rem; font-weight: 800; color: #172B4D; }
.gd-finance-list { }
.gd-finance-row {
    display: flex; align-items: center; gap: 0.85rem;
    padding: 0.85rem 1.25rem; border-bottom: 1px solid #F4F5F7; transition: background 0.1s;
}
.gd-finance-row:last-child { border-bottom: none; }
.gd-finance-row:hover { background: #F8F9FA; }
.gd-finance-type-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.gd-finance-info { flex: 1; display: flex; flex-direction: column; }.gd-finance-desc { font-size: 0.88rem; font-weight: 600; color: #172B4D; }
.gd-finance-date { font-size: 0.73rem; color: #7A869A; }
.gd-finance-amount { font-size: 0.95rem; font-weight: 700; white-space: nowrap; }

/* ── Documents ── */
.gd-doc-list { }
.gd-doc-row {
    display: flex; align-items: center; gap: 0.85rem;
    padding: 0.85rem 1.25rem; border-bottom: 1px solid #F4F5F7; transition: background 0.1s;
}
.gd-doc-row:last-child { border-bottom: none; }
.gd-doc-row:hover { background: #F8F9FA; }
.gd-doc-icon { font-size: 1.4rem; flex-shrink: 0; }
.gd-doc-info { flex: 1; display: flex; flex-direction: column; }
.gd-doc-name { font-size: 0.88rem; font-weight: 600; color: #172B4D; }
.gd-doc-meta { font-size: 0.73rem; color: #7A869A; }

.mobile-group-detail {
    height: auto;
    min-height: 0;
    overflow: visible;
    background: transparent;
}

.mobile-group-detail .gd-hero {
    padding: 0.75rem;
    border: 1px solid #dbe3ea;
    border-radius: 8px;
    background: #ffffff;
}

.mobile-group-detail .gd-back-btn {
    min-height: 36px;
    margin-bottom: 0.45rem;
    padding: 0;
}

.mobile-group-detail .gd-hero-main {
    gap: 0.65rem;
    padding-bottom: 0;
}

.mobile-group-detail .gd-hero-icon {
    display: none;
}

.mobile-group-detail .gd-hero-text {
    min-width: 0;
}

.mobile-group-detail .gd-mobile-hero-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
}

.mobile-group-detail .gd-hero-type-badge {
    flex: 0 0 auto;
    margin-bottom: 0.25rem;
    font-size: 0.64rem;
    max-width: 42%;
    text-align: center;
    overflow-wrap: anywhere;
}

.mobile-group-detail .gd-hero-title {
    min-width: 0;
    margin-bottom: 0.25rem;
    font-size: 1.08rem;
    line-height: 1.22;
    overflow-wrap: anywhere;
}

.mobile-group-detail .gd-hero-desc {
    display: -webkit-box;
    margin-bottom: 0.35rem;
    overflow: hidden;
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.mobile-group-detail .gd-hero-meta {
    gap: 0.35rem;
    font-size: 0.7rem;
}

.mobile-group-detail .gd-hero-meta span {
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #f8fafc;
    padding: 0.22rem 0.45rem;
    overflow-wrap: anywhere;
}

.mobile-group-detail .gd-tab-bar {
    gap: 0.45rem;
    overflow-x: auto;
    margin: 0.75rem -0.75rem 0;
    padding: 0 0.75rem 0.1rem;
    border-bottom: 0;
    background: transparent;
    scrollbar-width: none;
}

.mobile-group-detail .gd-tab-bar::-webkit-scrollbar {
    display: none;
}

.mobile-group-detail .gd-tab {
    flex: 0 0 auto;
    min-height: 34px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #ffffff;
    padding: 0.38rem 0.7rem;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 850;
}

.mobile-group-detail .gd-tab svg {
    width: 15px;
    height: 15px;
}

.mobile-group-detail .gd-tab.active {
    border-color: #90c7dc;
    background: #e7f2f7;
    color: var(--tab-color, #174f68);
}

.mobile-group-detail .gd-tab-indicator {
    display: none;
}

.mobile-group-detail .gd-panel-wrapper {
    overflow: visible;
    padding: 0.75rem 0 0;
}

.mobile-group-detail .gd-panel {
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.mobile-group-detail .gd-panel-toolbar {
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
}

.mobile-group-detail .gd-panel-count {
    font-size: 0.74rem;
    white-space: nowrap;
}

.mobile-group-detail .gd-btn-primary,
.mobile-group-detail .gd-btn-secondary {
    min-height: 34px;
    border-radius: 8px;
    padding: 0.45rem 0.65rem;
    font-size: 0.76rem;
    white-space: normal;
}

.mobile-group-detail .gd-member-row,
.mobile-group-detail .gd-finance-row,
.mobile-group-detail .gd-doc-row,
.mobile-group-detail .gd-task-row {
    gap: 0.55rem;
    padding: 0.65rem 0.75rem;
}

.mobile-group-detail .gd-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.68rem;
}

.mobile-group-detail .gd-member-info,
.mobile-group-detail .gd-finance-info,
.mobile-group-detail .gd-doc-info,
.mobile-group-detail .gd-task-info {
    min-width: 0;
}

.mobile-group-detail .gd-member-name,
.mobile-group-detail .gd-finance-desc,
.mobile-group-detail .gd-doc-name,
.mobile-group-detail .gd-task-title {
    overflow-wrap: anywhere;
    font-size: 0.84rem;
    line-height: 1.25;
}

.mobile-group-detail .gd-member-meta,
.mobile-group-detail .gd-finance-date,
.mobile-group-detail .gd-doc-meta,
.mobile-group-detail .gd-task-due {
    overflow-wrap: anywhere;
    font-size: 0.68rem;
}

.mobile-group-detail .gd-role-badge,
.mobile-group-detail .gd-priority-badge,
.mobile-group-detail .gd-status-badge {
    max-width: 42%;
    text-align: center;
    font-size: 0.64rem;
    line-height: 1.2;
    white-space: normal;
}

.mobile-group-detail .gd-row-actions {
    flex: 0 0 auto;
    gap: 0.25rem;
}

.mobile-group-detail .gd-btn-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #f8fafc;
}

.mobile-group-detail .gd-article-list,
.mobile-group-detail .gd-finance-list,
.mobile-group-detail .gd-doc-list,
.mobile-group-detail .gd-member-list {
    display: flex;
    flex-direction: column;
}

.mobile-group-detail .gd-article-item {
    padding: 0.75rem !important;
    border-radius: 0;
}

.mobile-group-detail .gd-article-item h4 {
    font-size: 0.95rem !important;
    line-height: 1.28;
}

.mobile-group-detail .gd-article-item p,
.mobile-group-detail .gd-article-content {
    font-size: 0.86rem !important;
    line-height: 1.5 !important;
}

.mobile-group-detail .gd-article-editor-container,
.mobile-group-detail .gd-article-reader,
.mobile-group-detail .gd-nets-container {
    padding: 0 !important;
}

.mobile-group-detail .gd-article-reader {
    background: #ffffff;
    border: 1px solid #dbe3ea;
    border-radius: 8px;
    padding: 0.85rem !important;
}

.mobile-group-detail .gd-panel-header {
    flex-direction: column;
    align-items: stretch !important;
    gap: 0.65rem;
    margin-bottom: 0.75rem !important;
}

.mobile-group-detail .gd-panel-header > div {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.45rem !important;
}

.mobile-group-detail .gd-form-group input,
.mobile-group-detail .gd-form-group select,
.mobile-group-detail .gd-form-group textarea {
    max-width: 100%;
    font-size: 16px !important;
}

.mobile-group-detail .gd-finance-summary {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    padding: 0.75rem;
}

.mobile-group-detail .gd-finance-card {
    border-radius: 8px;
    padding: 0.75rem;
}

.mobile-group-detail .gd-fc-label {
    font-size: 0.68rem;
}

.mobile-group-detail .gd-fc-amount {
    font-size: 1.05rem;
}

.mobile-group-detail .gd-finance-amount {
    font-size: 0.86rem;
}

.mobile-group-detail .gd-doc-icon {
    font-size: 1.15rem;
}

/* ============================================================
   EXPENSE RESOLUTION (지출결의서)
   ============================================================ */
.expense-resolution-container {
    padding: 20px 30px;
    background-color: #fff;
    min-height: 100vh;
}

.er-header {
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.er-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: bold;
    color: #333;
}

.er-search-bar {
    border: 3px solid #3b5f75; /* Dark teal/blue border */
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 20px;
    background-color: #fbfdff; /* Very slight blue tint */
    display: inline-block;
}

.er-search-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.er-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    text-align: left;
}

.er-table thead th {
    background-color: #e2f1f0; /* Light teal header */
    padding: 8px 10px;
    font-weight: normal;
    color: #333;
    border-bottom: 1px solid #fff;
    white-space: nowrap;
}

.er-table th.th-id { width: 40px; text-align: center; }
.er-table th.th-date { position: relative; }
.er-table th.th-amount { text-align: right; }

.sort-icon {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 5px solid #ff8800; /* Orange triangle */
    margin-left: 6px;
    vertical-align: middle;
}

.er-table tbody td {
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
    color: #555;
}

.er-empty-state {
    text-align: center;
    padding: 30px !important;
    color: #777;
}

/* Fancy Modal Styles */
.premium-modal {
    width: 900px;
    max-width: 95vw;
    max-height: 90vh;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 25px 60px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
}

.modal-header-fancy {
    padding: 2rem;
    background: linear-gradient(to right, #f8fbff, #fff);
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.scrollable-fancy {
    padding: 2rem;
    overflow-y: auto;
    background: #fafafa;
    flex: 1;
}

.fancy-form {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1;
}

.form-section-fancy {

    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #eee;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-number {
    width: 28px;
    height: 28px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; font-weight: 700;
}

.section-header h3 {
    font-size: 1.1rem;
    color: #333;
    margin: 0 !important;
}

.fancy-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.fancy-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.fancy-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }

.fancy-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.fancy-input-group label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fancy-input-group input, 
.fancy-input-group select {
    padding: 0.85rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.2s;
    background: #fff;
    width: 100%; box-sizing: border-box;
}

.fancy-input-group input:focus, 
.fancy-input-group select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(49, 122, 155, 0.1);
    outline: none;
}

.member-card-fancy {
    background: #fcfdfe;
    border: 1px solid #eef2f7;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    position: relative;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #e0e6ed;
}

.member-index {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.remove-card-btn {
    background: #fff0f0;
    color: #e53935;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.add-member-btn-fancy {
    width: 100%;
    padding: 1rem;
    background: #fff;
    border: 2px dashed #317a9b;
    border-radius: 12px;
    color: #317a9b;
    font-weight: 600;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 0.75rem;
    transition: all 0.2s;
}

.add-member-btn-fancy:hover {
    background: #f0f7fa;
}

.modal-footer-fancy {
    padding: 1.5rem 2rem;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.cancel-btn-fancy {
    padding: 0.75rem 1.5rem;
    background: #f5f5f5;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
}

.submit-btn-fancy {
    padding: 0.75rem 2rem;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(49, 122, 155, 0.3);
}

.submit-btn-fancy:hover {
    background: var(--primary-blue-hover);
    transform: translateY(-1px);
}

/* Expense Request Form */
.private-info-badge {
    display: inline-block;
    padding: 2px 6px;
    font-size: 0.7rem;
    background-color: #ffebe6;
    color: #de350b;
    border-radius: 3px;
    font-weight: bold;
}

/* Search Input Clear Button */
.search-bar {
    position: relative !important;
    display: flex;
    align-items: center;
}

.search-bar input {
    padding-right: 2.25rem !important; /* prevent text overlapping with clear icon */
}

.search-clear-btn {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    width: 22px;
    height: 22px;
    z-index: 2;
}

.search-clear-btn:hover {
    background-color: #f1f5f9;
    color: #64748b;
}

.search-clear-btn svg {
    width: 14px;
    height: 14px;
}

/* Disabled Search Bar styling */
.search-bar.disabled {
    background-color: #f1f5f9 !important;
    cursor: not-allowed !important;
    border-color: #cbd5e1 !important;
    opacity: 0.7;
}

.search-bar.disabled input {
    background: transparent !important;
    cursor: not-allowed !important;
    color: #94a3b8 !important;
}

.search-bar.disabled .search-icon path {
    stroke: #94a3b8 !important;
}

/* Net layouts */
.mynet-feed-container,
.mynet-reader-view,
.gd-nets-container {
    width: 100%;
    min-width: min(100%, 320px);
    box-sizing: border-box;
}

.mynet-post-card,
.gd-article-item {
    min-width: min(100%, 320px);
    box-sizing: border-box;
    overflow-wrap: anywhere;
}

.mynet-full-content,
.mynet-post-card,
.gd-article-item h4 {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.threads-image-carousel {
    position: relative;
    width: 100%;
}

.threads-image-gallery {
    display: flex;
    gap: 10px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
    border: 0;
    border-radius: 0;
    background: transparent;
    margin: 0.25rem 0 1rem;
}

.threads-scroll-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #334155;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.18);
    cursor: pointer;
    transform: translateY(-50%);
}

.threads-scroll-arrow.left {
    left: 8px;
}

.threads-scroll-arrow.right {
    right: 8px;
}

.threads-scroll-arrow:hover {
    background: #ffffff;
    color: #0f172a;
}

.threads-image-gallery::-webkit-scrollbar {
    height: 8px;
}

.threads-image-gallery::-webkit-scrollbar-track {
    background: transparent;
}

.threads-image-gallery::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.threads-image-tile {
    position: relative;
    display: block;
    flex: 0 0 min(78%, 420px);
    min-width: 0;
    max-width: 420px;
    padding: 0;
    border: 1px solid #dbe3ea;
    border-radius: 14px;
    background: #f1f5f9;
    overflow: hidden;
    cursor: pointer;
    scroll-snap-align: start;
    max-height: 360px;
}

.threads-image-gallery .threads-image-tile:only-child {
    flex-basis: min(100%, 520px);
    max-width: 520px;
}

.threads-image-tile img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: cover;
    transition: transform 180ms ease;
}

.threads-image-tile:hover img {
    transform: scale(1.015);
}

.threads-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(15, 23, 42, 0.88);
}

.threads-image-lightbox img {
    max-width: min(100%, 1040px);
    max-height: 88vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

.threads-lightbox-close {
    position: fixed;
    top: 18px;
    right: 22px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
}

.app-dialog-overlay {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.54);
    backdrop-filter: blur(6px);
}

.app-dialog {
    width: min(92vw, 430px);
    border-radius: 10px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    background: #ffffff;
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.24);
    padding: 1.15rem;
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 0.9rem;
    animation: appDialogIn 160ms ease-out;
}

.app-dialog-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    background: #e0f2fe;
    color: #0369a1;
}

.app-dialog-warning .app-dialog-icon {
    background: #fef3c7;
    color: #92400e;
}

.app-dialog-danger .app-dialog-icon {
    background: #fee2e2;
    color: #b91c1c;
}

.app-dialog-success .app-dialog-icon {
    background: #dcfce7;
    color: #166534;
}

.app-dialog-content h2 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.25;
    color: #0f172a;
    font-weight: 750;
}

.app-dialog-content p {
    margin: 0.45rem 0 0;
    color: #475569;
    font-size: 0.93rem;
    line-height: 1.45;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.app-dialog-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    padding-top: 0.35rem;
}

.app-dialog-btn {
    min-width: 88px;
    min-height: 38px;
    border-radius: 8px;
    border: 1px solid transparent;
    padding: 0.45rem 0.95rem;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
}

.app-dialog-btn.primary {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.24);
}

.app-dialog-danger .app-dialog-btn.primary {
    background: #dc2626;
    box-shadow: 0 8px 18px rgba(220, 38, 38, 0.22);
}

.app-dialog-btn.secondary {
    background: #eef2ff;
    color: #334155;
    border-color: #dbe3ea;
}

.app-dialog-btn:hover {
    filter: brightness(0.98);
}

.field-error-target {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14) !important;
    background-color: #fff7f7 !important;
}

.field-error-message {
    margin-top: 6px;
    color: #b91c1c;
    font-size: 0.78rem;
    line-height: 1.35;
    font-weight: 650;
}

@keyframes appDialogIn {
    from {
        transform: translateY(8px) scale(0.98);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@media (max-width: 420px) {
    .mynet-feed-container,
    .mynet-reader-view {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    .mynet-post-card,
    .gd-article-item {
        min-width: 100%;
    }

    .threads-image-gallery {
        gap: 8px;
        padding-bottom: 8px;
    }

    .threads-scroll-arrow {
        width: 30px;
        height: 30px;
    }

    .threads-image-tile {
        flex-basis: 84%;
        max-height: 300px;
    }

    .threads-image-tile img {
        max-height: 300px;
    }

    .threads-image-lightbox {
        padding: 0.75rem;
    }
}

/* Installable My Space mobile app */
.mobile-app-shell {
    --mobile-safe-top: env(safe-area-inset-top, 0px);
    --mobile-safe-bottom: env(safe-area-inset-bottom, 0px);
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: #f6f8fb;
    color: #172033;
    overflow: hidden;
}

.mobile-app-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 64px;
    padding: calc(0.85rem + var(--mobile-safe-top)) 1rem 0.85rem;
    background: #ffffff;
    border-bottom: 1px solid #dbe3ea;
}

.mobile-app-header-left {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.mobile-main-menu-container {
    position: relative;
    flex: 0 0 auto;
}

.mobile-main-menu-button.active {
    color: #0f5f80;
    border-color: #8fcadd;
    background: #eef8fc;
}

.mobile-main-menu-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: min(240px, calc(100vw - 2rem));
    padding: 0.45rem;
    border: 1px solid #dbe3ea;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
    z-index: 1300;
    animation: fadeInScale 0.18s ease-out;
}

.mobile-main-menu-item {
    width: 100%;
    min-height: 44px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #172033;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.68rem 0.75rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 750;
    letter-spacing: 0;
    text-align: left;
    cursor: pointer;
}

.mobile-main-menu-item.active {
    color: #174f68;
    background: #eaf6fb;
}

.mobile-main-menu-item svg {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mobile-app-brand {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: #174f68;
    line-height: 1.1;
}

.mobile-app-user {
    margin-top: 0.2rem;
    max-width: 64vw;
    color: #64748b;
    font-size: 0.78rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-app-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.mobile-icon-button {
    width: 38px;
    height: 38px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #174f68;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
}

.mobile-icon-button svg,
.mobile-search svg,
.mobile-bottom-nav svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mobile-notification-button {
    position: relative;
}

.mobile-notification-button.has-unread {
    color: #b91c1c;
    border-color: #fecaca;
    background: #fff7f7;
}

.mobile-notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: #dc2626;
    color: #ffffff;
    border: 2px solid #ffffff;
    font-size: 0.62rem;
    line-height: 13px;
    font-weight: 850;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.28);
}

.mobile-profile-menu-container {
    position: relative;
}

.mobile-profile-button {
    width: 40px;
    height: 40px;
    border: 1px solid #dbe3ea;
    border-radius: 999px;
    background: #ffffff;
    padding: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mobile-profile-button img {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    display: block;
}

.mobile-profile-dropdown {
    right: 0;
    top: calc(100% + 8px);
    min-width: 185px;
    z-index: 7000;
}

.mobile-profile-dropdown .dropdown-item {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    font: inherit;
}

.mobile-search {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0.75rem 0.85rem 0;
    padding: 0.7rem 0.85rem;
    border: 1px solid #dbe3ea;
    border-radius: 8px;
    background: #ffffff;
    color: #64748b;
}

.mobile-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: #172033;
    font-size: 0.95rem;
}

.mobile-search button {
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 50%;
    background: #edf2f7;
    color: #64748b;
    font-weight: 800;
    cursor: pointer;
}

.mobile-section-tabs {
    flex-shrink: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
    padding: 0.55rem 0.75rem;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.mobile-section-tabs button {
    min-width: 0;
    min-height: 38px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.86rem;
    font-weight: 800;
    cursor: pointer;
}

.mobile-section-tabs button.active {
    background: #174f68;
    color: #ffffff;
    border-color: #174f68;
    box-shadow: 0 8px 18px rgba(23, 79, 104, 0.18);
}

.mobile-menu-nav {
    flex-shrink: 0;
    display: flex;
    gap: 0.45rem;
    padding: 0.55rem 0.75rem;
    overflow-x: auto;
    background: #f8fafc;
    border-bottom: 1px solid #dbe3ea;
    scrollbar-width: none;
}

.mobile-menu-nav::-webkit-scrollbar {
    display: none;
}

.mobile-menu-nav button {
    flex: 0 0 auto;
    min-height: 34px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #ffffff;
    color: #475569;
    padding: 0.4rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 750;
    white-space: nowrap;
    cursor: pointer;
}

.mobile-menu-nav button.active {
    background: #e7f2f7;
    color: #174f68;
    border-color: #90c7dc;
}

.mobile-app-main {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.75rem 0.75rem calc(5.4rem + var(--mobile-safe-bottom));
    -webkit-overflow-scrolling: touch;
}

.mobile-app-main > * {
    max-width: 100% !important;
}

.mobile-app-main .my-account-container {
    padding: 0.75rem !important;
    margin: 0 auto !important;
    max-width: 100% !important;
}

.mobile-app-main .my-account-container form > div,
.mobile-app-main .my-account-container form div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
}

.mobile-app-main .my-account-container form div[style*="display: flex"] {
    flex-wrap: wrap;
}

.mobile-mynet-feed,
.mobile-mynet-reader {
    width: 100%;
    min-width: 0;
}

.mobile-mynet-feed .mynet-feed-stack,
.mobile-mynet-feed .mynet-composer-card,
.mobile-mynet-feed .mynet-post-card,
.mobile-mynet-reader .mynet-reader-card,
.mobile-mynet-feed .mynet-empty-state {
    width: 100%;
    min-width: 0;
    border-radius: 8px !important;
    box-sizing: border-box;
}

.mobile-mynet-feed .mynet-composer-top {
    align-items: flex-start !important;
}

.mobile-mynet-feed .mynet-composer-top > div:first-child,
.mobile-mynet-reader .gd-avatar-circle {
    width: 36px !important;
    height: 36px !important;
    font-size: 0.82rem !important;
}

.mobile-mynet-feed .cute-quill {
    min-width: 0;
    margin-bottom: 0.75rem !important;
    border-radius: 10px !important;
}

.mobile-mynet-feed .cute-quill .ql-toolbar.ql-snow {
    overflow-x: auto;
    white-space: nowrap;
    padding: 8px !important;
}

.mobile-mynet-feed .cute-quill .ql-editor {
    min-height: 92px !important;
    padding: 12px !important;
    font-size: 16px !important;
}

.mobile-mynet-feed .mynet-composer-actions {
    flex-direction: column;
    align-items: stretch !important;
    gap: 0.75rem;
}

.mobile-mynet-feed .mynet-composer-actions > div {
    min-width: 0;
    flex-wrap: wrap;
}

.mobile-mynet-feed .mynet-composer-actions > div:last-child {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.5rem !important;
}

.mobile-mynet-feed .mynet-composer-actions button {
    min-height: 38px;
    border-radius: 8px !important;
    white-space: nowrap;
}

.mobile-mynet-feed .mynet-composer-actions select {
    max-width: 150px;
    font-size: 16px !important;
}

.mobile-mynet-feed .mynet-filter-row {
    justify-content: flex-start !important;
    gap: 0.5rem !important;
    overflow-x: auto;
    padding-bottom: 0.1rem;
    scrollbar-width: none;
}

.mobile-mynet-feed .mynet-filter-row::-webkit-scrollbar {
    display: none;
}

.mobile-mynet-feed .mynet-filter-row > * {
    flex: 0 0 auto;
}

.mobile-mynet-feed .filter-drop {
    min-height: 34px;
    border-radius: 999px !important;
    white-space: nowrap;
}

.mobile-mynet-feed .filter-drop + div {
    position: fixed !important;
    left: 0.75rem !important;
    right: 0.75rem !important;
    top: auto !important;
    bottom: calc(5.8rem + var(--mobile-safe-bottom)) !important;
    width: auto !important;
    max-height: 50vh;
    overflow-y: auto;
}

.mobile-mynet-feed .mynet-post-card {
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04) !important;
}

.mobile-mynet-feed .mynet-post-card > div:first-child,
.mobile-mynet-reader .mynet-reader-card > div:first-child {
    gap: 0.65rem !important;
}

.mobile-mynet-feed .mynet-post-card > div:first-child > div:first-child,
.mobile-mynet-reader .mynet-reader-card > div:first-child {
    min-width: 0;
}

.mobile-mynet-feed .mynet-post-card > div:first-child > div:first-child > div:last-child,
.mobile-mynet-reader .mynet-reader-card > div:first-child > div:last-child {
    min-width: 0;
}

.mobile-mynet-feed .mynet-post-card > div:first-child span,
.mobile-mynet-reader .mynet-reader-card > div:first-child span {
    overflow-wrap: anywhere;
}

.mobile-mynet-feed .mynet-post-card > div:first-child button {
    min-width: 34px;
    min-height: 34px;
}

.mobile-mynet-feed .mynet-post-card > div:first-child div[style*="position: absolute"] {
    right: 0 !important;
    min-width: 170px !important;
}

.mobile-mynet-feed .mynet-post-card img,
.mobile-mynet-reader .mynet-reader-card img {
    max-width: 100%;
}

.mobile-mynet-feed .mynet-post-card > div:nth-last-child(2),
.mobile-mynet-feed .mynet-post-card > div:last-child,
.mobile-mynet-reader .mynet-reader-card > div[style*="borderTop"] {
    flex-wrap: wrap;
    gap: 0.6rem !important;
}

.mobile-mynet-feed .mynet-post-card button,
.mobile-mynet-reader .mynet-reader-card button {
    min-height: 34px;
}

.mobile-mynet-feed .mynet-post-card form,
.mobile-mynet-reader .mynet-reader-card form {
    align-items: stretch;
}

.mobile-mynet-feed .mynet-post-card form input,
.mobile-mynet-reader .mynet-reader-card form input {
    min-width: 0;
    font-size: 16px !important;
}

.mobile-mynet-reader .gd-back-btn {
    width: 100%;
    min-height: 40px;
    margin: 0 0 0.75rem !important;
    padding: 0.5rem 0 !important;
}

.mobile-mynet-reader .mynet-full-content {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1.25rem !important;
}

.mobile-mynet-reader .mynet-reader-card > div:first-child {
    margin-bottom: 1.25rem !important;
    align-items: flex-start !important;
}

.mobile-mynet-reader .mynet-reader-card > div[style*="marginTop: '2.5rem'"] {
    margin-top: 1.25rem !important;
    padding-top: 1rem !important;
}

.mobile-mynet-reader .mynet-reader-card form {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
}

.mobile-mynet-reader .mynet-reader-card form > div:first-child {
    display: none !important;
}

.mobile-mynet-reader .mynet-reader-card form button[type="submit"] {
    border-radius: 8px !important;
    padding: 0.55rem 0.8rem !important;
}

.mobile-task-workspace {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-task-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.2rem 0.05rem 0.1rem;
}

.mobile-task-toolbar h1 {
    margin: 0;
    color: #172033;
    font-size: 1.15rem;
    line-height: 1.2;
    font-weight: 850;
}

.mobile-task-toolbar span {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 750;
}

.mobile-task-new {
    min-width: 44px;
    min-height: 40px;
    border: 0;
    border-radius: 8px;
    background: #174f68;
    color: #ffffff;
    padding: 0 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 850;
    cursor: pointer;
}

.mobile-task-new:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.mobile-task-new svg,
.mobile-task-card svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}

.mobile-task-filter-strip,
.mobile-task-filter-row {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    padding-bottom: 0.05rem;
    scrollbar-width: none;
}

.mobile-task-filter-strip::-webkit-scrollbar,
.mobile-task-filter-row::-webkit-scrollbar {
    display: none;
}

.mobile-task-filter-strip label,
.mobile-task-filter-strip button,
.mobile-task-filter-row button {
    flex: 0 0 auto;
    min-height: 34px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #ffffff;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.7rem;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}

.mobile-task-filter-strip label.active,
.mobile-task-filter-row button.active {
    background: #e7f2f7;
    border-color: #90c7dc;
    color: #174f68;
}

.mobile-task-filter-strip input {
    width: 14px;
    height: 14px;
    accent-color: #174f68;
}

.mobile-task-filter-strip button {
    color: #b42318;
    border-color: #fecaca;
}

.mobile-task-filter-panel {
    background: #ffffff;
    border: 1px solid #dbe3ea;
    border-radius: 8px;
    padding: 0.75rem;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.mobile-task-filter-panel input[type="text"] {
    width: 100%;
    min-height: 40px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.55rem 0.7rem;
    font: inherit;
    font-size: 0.88rem;
    outline: none;
}

.mobile-task-filter-panel label {
    min-height: 34px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #334155;
    font-size: 0.86rem;
    font-weight: 650;
}

.mobile-task-filter-panel input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #174f68;
}

.mobile-task-filter-panel p {
    color: #94a3b8;
    font-size: 0.82rem;
    text-align: center;
}

.mobile-task-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.mobile-task-card {
    width: 100%;
    min-width: 0;
    border: 1px solid #dbe3ea;
    border-left: 4px solid #317A9B;
    border-radius: 8px;
    background: #ffffff;
    color: #172033;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    text-align: left;
    font: inherit;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
    cursor: pointer;
}

.mobile-task-card.is-shared {
    border-left-color: #94a3b8;
    background: #fbfdff;
}

.mobile-task-card.is-done .mobile-task-title {
    color: #64748b;
    text-decoration: line-through;
}

.mobile-task-card-top,
.mobile-task-meta,
.mobile-task-card-bottom {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.mobile-task-card-top {
    flex-wrap: wrap;
}

.mobile-task-id,
.mobile-task-type,
.mobile-task-draft,
.mobile-task-meta span {
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    padding: 0.18rem 0.5rem;
    font-size: 0.68rem;
    font-weight: 850;
    line-height: 1.35;
    max-width: 100%;
}

.mobile-task-id {
    background: #e7f2f7;
    color: #174f68;
}

.mobile-task-draft {
    background: #fef3c7;
    color: #92400e;
}

.mobile-task-title {
    display: block;
    color: #0f172a;
    font-size: 0.98rem;
    font-weight: 850;
    line-height: 1.28;
    overflow-wrap: anywhere;
}

.mobile-task-meta {
    flex-wrap: wrap;
}

.mobile-task-card-bottom {
    justify-content: space-between;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 750;
}

.mobile-task-state {
    padding: 1.25rem;
    border: 1px solid #dbe3ea;
    border-radius: 8px;
    background: #ffffff;
    color: #64748b;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 650;
}

.mobile-task-detail {
    gap: 0.85rem !important;
    padding: 0 !important;
    background: transparent !important;
}

.mobile-task-detail > div:first-child {
    align-items: flex-start !important;
    flex-wrap: wrap !important;
    gap: 0.55rem !important;
    margin-bottom: 0 !important;
}

.mobile-task-detail > div:first-child > h1,
.mobile-task-detail > div:first-child > div[style*="flex: 1"] {
    flex-basis: 100% !important;
    order: 2;
}

.mobile-task-detail > div:first-child > div[style*="display: flex"][style*="gap: 8px"] {
    order: 3;
    flex-wrap: wrap !important;
    width: 100%;
}

.mobile-task-detail > div:first-child button {
    min-height: 38px !important;
    border-radius: 8px !important;
}

.mobile-task-detail > div:nth-child(2) {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.9rem !important;
    padding: 0.85rem !important;
    border-radius: 8px !important;
}

.mobile-task-detail > div:nth-child(2) > div {
    width: 100% !important;
    max-width: 100% !important;
}

.mobile-task-detail textarea,
.mobile-task-detail input,
.mobile-task-detail select {
    max-width: 100% !important;
    font-size: 16px !important;
}

.mobile-task-detail .mytask-description-editor .ql-toolbar.ql-snow {
    overflow-x: auto;
    white-space: nowrap;
}

.mobile-task-detail .mytask-description-editor .ql-container.ql-snow,
.mobile-task-detail .mytask-description-editor .ql-editor {
    min-height: 130px !important;
}

.mobile-task-detail div[style*="position: fixed"] > div[style*="width: 450px"] {
    width: calc(100vw - 1.5rem) !important;
    max-width: calc(100vw - 1.5rem) !important;
    max-height: 88vh !important;
    overflow-y: auto !important;
}

.mobile-request-workspace {
    padding: 0 !important;
    gap: 0.75rem !important;
    background: transparent !important;
}

.mobile-request-workspace > .task-header {
    margin: 0 !important;
    padding: 0.2rem 0.05rem 0.1rem !important;
}

.mobile-request-workspace .task-title-group h1 {
    margin: 0;
    color: #172033;
    font-size: 1.15rem;
    line-height: 1.2;
    font-weight: 850;
}

.mobile-request-workspace .task-title-group span {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 750;
}

.mobile-request-workspace > div:nth-child(2) {
    margin-bottom: 0.25rem !important;
}

.mobile-request-workspace .filter-tabs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
    margin: 0 !important;
    border: 0 !important;
}

.mobile-request-workspace .filter-tab {
    min-width: 0;
    min-height: 38px;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px 8px 0 0;
    background: #ffffff;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.6rem;
    font-size: 0.8rem;
    font-weight: 850;
    white-space: nowrap;
}

.mobile-request-workspace .filter-tab.active {
    background: #174f68;
    border-color: #174f68 !important;
    color: #ffffff;
}

.mobile-request-section {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.mobile-request-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.5rem;
}

.mobile-request-controls select {
    min-width: 0;
    min-height: 40px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #172033;
    padding: 0.5rem 0.65rem;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
}

.mobile-request-switch-row {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.mobile-request-switch-row::-webkit-scrollbar {
    display: none;
}

.mobile-request-switch-row label {
    flex: 0 0 auto;
    min-height: 34px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #ffffff;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.7rem;
    font-size: 0.76rem;
    font-weight: 800;
    white-space: nowrap;
}

.mobile-request-switch-row input {
    width: 14px;
    height: 14px;
    accent-color: #174f68;
}

.mobile-request-primary {
    width: 100%;
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    background: #174f68;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0 0.85rem;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 850;
}

.mobile-request-primary svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
}

.mobile-request-list,
.mobile-asset-reservation-list,
.mobile-asset-list,
.mobile-asset-history-list,
.mobile-asset-schedule-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.mobile-request-card,
.mobile-asset-reservation-card,
.mobile-asset-card,
.mobile-asset-history-card,
.mobile-asset-schedule-card {
    width: 100%;
    min-width: 0;
    border: 1px solid #dbe3ea;
    border-left: 4px solid #317A9B;
    border-radius: 8px;
    background: #ffffff;
    color: #172033;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    text-align: left;
    font: inherit;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.mobile-asset-card,
.mobile-asset-history-card,
.mobile-asset-schedule-card {
    overflow: hidden;
}

.mobile-request-card {
    cursor: pointer;
}

.mobile-request-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-width: 0;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 850;
}

.mobile-request-status,
.mobile-asset-status {
    flex: 0 0 auto;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    padding: 0.18rem 0.5rem;
    font-size: 0.68rem;
    font-weight: 850;
    line-height: 1.35;
}

.mobile-request-status.status-approved {
    background: #ecfdf5;
    color: #047857;
}

.mobile-request-status.status-pending {
    background: #fffbeb;
    color: #b45309;
}

.mobile-request-status.status-rejected {
    background: #fef2f2;
    color: #b42318;
}

.mobile-request-title {
    display: block;
    color: #0f172a;
    font-size: 0.98rem;
    font-weight: 850;
    line-height: 1.28;
    overflow-wrap: anywhere;
}

.mobile-asset-title {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #174f68;
    display: block;
    padding: 0;
    text-align: left;
    font: inherit;
    font-size: 1rem;
    font-weight: 850;
    line-height: 1.28;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.mobile-asset-alert {
    flex: 0 0 auto;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    padding: 0.18rem 0.5rem;
    font-size: 0.66rem;
    font-weight: 850;
    line-height: 1.35;
    text-transform: uppercase;
    cursor: pointer;
}

.mobile-request-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    min-width: 0;
}

.mobile-request-meta span {
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    padding: 0.18rem 0.5rem;
    font-size: 0.68rem;
    font-weight: 850;
    line-height: 1.35;
    max-width: 100%;
}

.mobile-request-state {
    padding: 1.25rem;
    border: 1px solid #dbe3ea;
    border-radius: 8px;
    background: #ffffff;
    color: #64748b;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 650;
}

.mobile-expense-resolution {
    padding: 0 !important;
    min-height: 0 !important;
    background: transparent !important;
}

.mobile-expense-resolution .task-header {
    margin: 0 0 0.75rem !important;
    padding: 0.2rem 0.05rem 0.1rem !important;
}

.mobile-expense-resolution .task-title-group h1 {
    margin: 0;
    color: #172033;
    font-size: 1.15rem;
    line-height: 1.2;
    font-weight: 850;
}

.mobile-expense-resolution .er-search-bar {
    display: block !important;
    margin: 0 0 0.75rem !important;
    padding: 0.75rem !important;
    border: 1px solid #dbe3ea !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05) !important;
}

.mobile-expense-resolution .er-search-inputs {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 0.5rem !important;
    align-items: stretch !important;
}

.mobile-expense-resolution .er-input-date {
    width: 100% !important;
}

.mobile-expense-resolution .er-search-inputs input[type="date"],
.mobile-expense-resolution .er-dept-btn,
.mobile-expense-resolution .er-search-btn {
    min-width: 0;
    min-height: 40px;
    border-radius: 8px !important;
    font-size: 16px !important;
}

.mobile-expense-resolution .er-dept-btn {
    grid-column: 1 / 3;
    justify-content: center;
    padding: 0.5rem 0.65rem !important;
    font-size: 0.82rem !important;
    font-weight: 800;
}

.mobile-expense-resolution .er-search-btn {
    width: 42px;
    padding: 0 !important;
}

.mobile-expense-filter-row {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    padding-top: 0.6rem;
    scrollbar-width: none;
}

.mobile-expense-filter-row::-webkit-scrollbar {
    display: none;
}

.mobile-expense-filter-row label {
    flex: 0 0 auto;
    min-height: 34px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #ffffff;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.7rem;
    font-size: 0.76rem;
    font-weight: 800;
    white-space: nowrap;
}

.mobile-expense-filter-row label.active {
    background: #e7f2f7;
    border-color: #90c7dc;
    color: #174f68;
}

.mobile-expense-filter-row input {
    width: 14px;
    height: 14px;
    accent-color: #174f68;
}

.mobile-expense-resolution .task-content {
    min-width: 0;
}

.mobile-expense-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.mobile-expense-card {
    width: 100%;
    min-width: 0;
    border: 1px solid #dbe3ea;
    border-left: 4px solid #317A9B;
    border-radius: 8px;
    background: #ffffff;
    color: #172033;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.mobile-expense-title {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #174f68;
    display: block;
    padding: 0;
    text-align: left;
    font: inherit;
    font-size: 0.98rem;
    font-weight: 850;
    line-height: 1.28;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.mobile-expense-amount {
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.2;
}

.mobile-expense-people {
    display: grid;
    gap: 0.2rem;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.mobile-expense-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

.mobile-expense-actions button {
    min-height: 36px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #174f68;
    padding: 0 0.75rem;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 850;
}

.mobile-asset-reservation-page {
    padding: 0 !important;
}

.mobile-assets-page,
.mobile-asset-history-page,
.mobile-asset-schedule-page {
    padding: 0 !important;
}

.mobile-asset-schedule-page .no-print > button {
    width: 100%;
    min-height: 40px;
    border-radius: 8px !important;
}

.mobile-asset-action-row {
    justify-content: stretch !important;
}

.mobile-asset-action-row button {
    width: 100%;
    min-height: 42px;
    border-radius: 8px !important;
    justify-content: center;
    background: #174f68 !important;
}

.mobile-asset-period {
    display: grid;
    gap: 0.2rem;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 750;
}

.mobile-asset-note {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.55rem;
    color: #475569;
    font-size: 0.8rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.mobile-asset-note.muted {
    color: #94a3b8;
    font-style: italic;
}

.mobile-asset-note strong {
    color: #174f68;
}

.mobile-asset-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

.mobile-asset-actions button {
    min-height: 36px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #174f68;
    padding: 0 0.75rem;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 850;
}

.mobile-asset-actions button.danger {
    border-color: #fecaca;
    background: #fff7f7;
    color: #b42318;
}

.mobile-asset-modal-overlay {
    align-items: flex-end !important;
    padding: 0.75rem !important;
    z-index: 7000 !important;
}

.mobile-asset-modal {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: calc(100vh - 1.5rem - var(--mobile-safe-top) - var(--mobile-safe-bottom)) !important;
    border-radius: 16px 16px 8px 8px !important;
    overflow: hidden !important;
}

.mobile-asset-modal form {
    min-height: 0 !important;
    overflow-y: auto !important;
    padding: 1rem !important;
    padding-bottom: calc(1rem + var(--mobile-safe-bottom)) !important;
    -webkit-overflow-scrolling: touch;
}

.mobile-asset-modal form > div {
    gap: 1rem !important;
}

.mobile-asset-modal form div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
}

.mobile-asset-modal form .mobile-asset-date-grid,
.mobile-asset-modal form .mobile-asset-request-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr) !important;
    gap: 0.65rem !important;
    padding: 0.75rem !important;
    border-radius: 10px !important;
}

.mobile-asset-modal form .mobile-asset-request-grid {
    padding: 0 !important;
    border-radius: 0 !important;
}

.mobile-asset-modal .mobile-asset-date-grid label,
.mobile-asset-modal .mobile-asset-request-grid label {
    margin-bottom: 0.25rem !important;
    font-size: 0.74rem !important;
    white-space: nowrap;
}

.mobile-asset-modal .mobile-asset-date-grid input,
.mobile-asset-modal .mobile-asset-request-grid input {
    min-height: 38px !important;
    padding: 0.45rem 0.5rem !important;
    border-radius: 8px !important;
    font-size: 14px !important;
}

.mobile-asset-modal input,
.mobile-asset-modal select,
.mobile-asset-modal textarea {
    max-width: 100% !important;
    font-size: 16px !important;
}

.mobile-asset-modal form button {
    min-height: 40px;
}

.mobile-asset-modal form > div:last-child[style*="justify-content"] {
    position: sticky !important;
    right: 0;
    bottom: calc(-1rem - var(--mobile-safe-bottom));
    z-index: 2;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 0.5rem !important;
    margin: 1rem -1rem calc(-1rem - var(--mobile-safe-bottom)) !important;
    padding: 0.75rem 1rem calc(0.75rem + var(--mobile-safe-bottom)) !important;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -8px 18px rgba(15, 23, 42, 0.08);
}

.mobile-asset-modal form > div:last-child[style*="justify-content"] button {
    width: 100%;
    min-width: 0;
    padding: 0.7rem 0.75rem !important;
    border-radius: 8px !important;
    white-space: normal;
}

.mobile-asset-history-modal form > div:last-child[style*="justify-content"],
.mobile-asset-history-modal form div[style*="justify-content: center"] {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 0.5rem !important;
}

.mobile-asset-history-modal form div[style*="gap: 0.75rem"] {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.mobile-asset-history-modal form button {
    min-width: 0;
    white-space: normal;
}

.mobile-offering-entry-page,
.mobile-finance-member-page {
    padding: 0 !important;
    min-width: 0;
    background: transparent !important;
}

.mobile-offering-entry-page .offering-header,
.mobile-finance-member-page .offering-header {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    margin: 0 0 0.75rem !important;
}

.mobile-offering-entry-page .offering-header h1,
.mobile-finance-member-page .offering-header h1 {
    min-width: 0;
    font-size: 1.12rem !important;
    line-height: 1.25 !important;
    overflow-wrap: anywhere;
}

.mobile-offering-entry-page .header-actions-group {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.mobile-offering-entry-page .header-actions-group button,
.mobile-finance-member-page .offering-header .add-btn {
    min-height: 38px;
    border-radius: 8px !important;
    padding: 0.5rem 0.65rem !important;
    font-size: 0.78rem !important;
    white-space: nowrap;
}

.mobile-offering-entry-page .entry-search-bar {
    margin: 0 0 0.75rem !important;
    padding: 0.75rem !important;
    border: 1px solid #dbe3ea !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05) !important;
}

.mobile-offering-entry-page .entry-search-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.55rem !important;
}

.mobile-offering-entry-page .entry-search-row > * {
    min-width: 0 !important;
    width: 100% !important;
}

.mobile-offering-entry-page .entry-search-row .entry-search-btn {
    width: 42px !important;
    padding: 0 !important;
}

.mobile-offering-entry-page .entry-input,
.mobile-offering-entry-page .entry-select,
.mobile-finance-member-page .modern-filter-select {
    min-height: 40px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
}

.mobile-offering-entry-list,
.mobile-finance-member-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.mobile-offering-entry-card,
.mobile-finance-member-card {
    width: 100%;
    min-width: 0;
    border: 1px solid #dbe3ea;
    border-radius: 8px;
    background: #ffffff;
    color: #172033;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.mobile-offering-entry-card.selected {
    border-color: #90c7dc;
    background: #f3fafc;
}

.mobile-offering-entry-card {
    border-left: 4px solid #317A9B;
}

.mobile-finance-member-card.disabled {
    opacity: 0.72;
}

.mobile-offering-entry-top,
.mobile-finance-member-top {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: flex-start;
}

.mobile-offering-entry-title,
.mobile-finance-member-name {
    color: #174f68;
    font-size: 0.98rem;
    font-weight: 850;
    line-height: 1.28;
    overflow-wrap: anywhere;
}

.mobile-finance-member-name-wrap {
    min-width: 0;
}

.mobile-finance-member-formal {
    margin-top: 0.15rem;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.mobile-offering-entry-amount {
    flex: 0 0 auto;
    font-size: 1.02rem;
    font-weight: 900;
    line-height: 1.2;
    text-align: right;
}

.mobile-offering-entry-meta,
.mobile-finance-member-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.35rem;
}

.mobile-offering-entry-meta span,
.mobile-finance-member-code,
.mobile-finance-member-updated {
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #f8fafc;
    color: #64748b;
    padding: 0.25rem 0.5rem;
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.mobile-finance-member-updated {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #9a3412;
}

.mobile-offering-entry-detail,
.mobile-finance-member-detail {
    display: grid;
    gap: 0.25rem;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 720;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.mobile-offering-entry-detail strong {
    color: #172033;
}

.mobile-offering-entry-actions,
.mobile-finance-member-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

.mobile-offering-entry-actions label,
.mobile-finance-member-future label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 36px;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 850;
}

.mobile-offering-entry-actions button,
.mobile-finance-member-actions button {
    min-height: 36px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #174f68;
    padding: 0 0.75rem;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 850;
}

.mobile-offering-entry-actions button.danger,
.mobile-finance-member-actions button.danger {
    border-color: #fecaca;
    background: #fff7f7;
    color: #b42318;
}

.mobile-finance-member-future {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(92px, 0.45fr);
    gap: 0.5rem;
    align-items: center;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.mobile-finance-member-future input[type="number"] {
    min-width: 0;
    width: 100%;
    min-height: 36px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.35rem 0.5rem;
    font-size: 16px;
}

.mobile-offering-entry-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem;
    border: 1px solid #dbe3ea;
    border-radius: 8px;
    background: #ffffff;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 850;
}

.mobile-offering-entry-empty,
.mobile-finance-member-empty {
    margin: 1rem auto;
    max-width: 420px;
    padding: 1.25rem;
    border: 1px solid #dbe3ea;
    border-radius: 8px;
    background: #ffffff;
    color: #475569;
    text-align: center;
}

.mobile-offering-entry-page .desktop-only-finance-table,
.mobile-finance-member-page .desktop-only-finance-table {
    display: none !important;
}

.mobile-finance-member-page > div:nth-of-type(2) {
    display: flex !important;
    gap: 0.5rem !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    padding: 0 0 0.75rem !important;
    margin-bottom: 0.1rem;
    scrollbar-width: none;
}

.mobile-finance-member-page > div:nth-of-type(2)::-webkit-scrollbar {
    display: none;
}

.mobile-finance-member-page > div:nth-of-type(2) > * {
    flex: 0 0 auto;
}

.mobile-finance-member-page > div:nth-of-type(2) .tree-action-btn {
    min-height: 40px;
    border-radius: 8px !important;
    padding: 0.5rem 0.75rem !important;
    white-space: nowrap;
}

.mobile-finance-member-page .finance-member-status {
    pointer-events: none;
}

.mobile-finance-member-page .member-manager-overlay {
    align-items: flex-end !important;
    padding: 0.75rem !important;
    z-index: 7000 !important;
}

.mobile-finance-member-page .member-manager-modal.premium-modal {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    max-height: calc(100vh - 1.5rem - var(--mobile-safe-top) - var(--mobile-safe-bottom)) !important;
    border-radius: 16px 16px 8px 8px !important;
    overflow: hidden !important;
}

.mobile-finance-member-page .member-manager-modal .modal-body {
    min-height: 0 !important;
    overflow-y: auto !important;
    padding: 1rem !important;
    -webkit-overflow-scrolling: touch;
}

.mobile-finance-member-page .member-manager-modal .modal-body[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
}

.mobile-finance-member-page .member-manager-modal .modal-body .form-group {
    grid-column: auto !important;
}

.mobile-finance-member-page .member-manager-modal .modal-body div[style*="display: flex"] {
    flex-wrap: wrap;
}

.mobile-finance-member-page .member-manager-modal .modal-footer {
    padding: 0.75rem 1rem calc(0.75rem + var(--mobile-safe-bottom)) !important;
}

.mobile-finance-member-page .member-manager-modal .modal-footer,
.mobile-finance-member-page .member-manager-modal .modal-footer > div {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.5rem !important;
    align-items: stretch !important;
}

.mobile-finance-member-page .member-manager-modal .modal-footer button {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    border-radius: 8px !important;
    white-space: normal;
}

.mobile-empty-state {
    margin: 1rem auto;
    max-width: 420px;
    padding: 1.25rem;
    border: 1px solid #dbe3ea;
    border-radius: 8px;
    background: #ffffff;
    color: #475569;
    text-align: center;
}

.mobile-empty-state h2 {
    margin: 0 0 0.4rem;
    color: #174f68;
    font-size: 1.05rem;
}

.mobile-empty-state p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
}

.mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5000;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(62px, 1fr);
    gap: 0;
    padding: 0.35rem 0.35rem calc(0.35rem + var(--mobile-safe-bottom));
    border-top: 1px solid #dbe3ea;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.08);
    overflow-x: auto;
    scrollbar-width: none;
}

.mobile-bottom-nav::-webkit-scrollbar {
    display: none;
}

.mobile-bottom-nav button {
    min-width: 62px;
    height: 54px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    cursor: pointer;
}

.mobile-bottom-nav button.active {
    background: #e7f2f7;
    color: #174f68;
}

.mobile-bottom-nav span {
    max-width: 58px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.66rem;
    font-weight: 750;
}
.expense-request-container {
    padding: 1rem;
    max-width: 1400px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #2c3e50;
    background-color: #f8fafc;
    min-height: 100vh;
}

.er-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.er-title-section {
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.er-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.55rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: white;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
}

.er-back-link:hover {
    border-color: #3b82f6;
    color: #2563eb;
    background: #eff6ff;
}

.er-subtitle {
    font-size: 0.7rem;
    font-weight: 700;
    color: #3b82f6;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.er-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: #1e293b;
}

.er-finance-section-label > span {
    display: none;
}

.er-korean-title {
    font-size: 0.85rem;
    color: #64748b;
}

.er-actions {
    display: flex;
    gap: 0.5rem;
}

.er-cancel-btn, .er-save-btn, .er-submit-btn {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

.er-cancel-btn {
    background: transparent;
    border: 1px solid #cbd5e1;
    color: #475569;
}

.er-save-btn {
    background: white;
    border: 1px solid #3b82f6;
    color: #3b82f6;
}

.er-submit-btn {
    background: #3b82f6;
    border: 1px solid #3b82f6;
    color: white;
}

.er-main-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Removed .er-top-row grid as sections are now stacked vertically */

.er-section {
    background: white;
    border-radius: 6px;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.er-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 1rem;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 0.5rem;
}

.er-form-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem 1rem;
}

.er-form-group.col-span-2 { grid-column: span 2; }
.er-form-group.col-span-3 { grid-column: span 3; }
.er-form-group.col-span-4 { grid-column: span 4; }

.er-form-group label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.25rem;
}

.er-form-group input,
.er-form-group select {
    width: 100%;
    padding: 0.4rem 0.5rem;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #1e293b;
    outline: none;
    transition: border-color 0.2s;
}

.er-form-group input:focus,
.er-form-group select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59,130,246,0.1);
}

.er-date-input {
    position: relative;
    display: flex;
    align-items: center;
}

.er-date-input svg {
    position: absolute;
    right: 0.5rem;
    color: #94a3b8;
    width: 14px;
    height: 14px;
}

.er-compact-approval {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
}

.er-approval-step {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    min-width: 200px;
    flex: 0 1 auto;
}

.er-approval-info {
    display: flex;
    flex-direction: column;
}

.er-approval-role {
    font-size: 0.75rem;
    font-weight: 600;
    color: #1e293b;
}

.er-approval-name {
    font-size: 0.7rem;
    color: #64748b;
}

.er-status-badge {
    font-size: 0.65rem;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-weight: 600;
}

.er-status-badge.approved { background: #dcfce7; color: #166534; }
.er-status-badge.pending { background: #dbeafe; color: #1e40af; }
.er-status-badge.waiting { background: #f1f5f9; color: #64748b; }

.er-table-wrapper {
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.er-details-table {
    width: 100%;
    border-collapse: collapse;
}

.er-details-table th {
    background: #f8fafc;
    text-align: left;
    padding: 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
}

.er-details-table td {
    padding: 0.4rem 0.5rem;
    font-size: 0.8rem;
    color: #1e293b;
    border-bottom: 1px solid #e2e8f0;
}

.er-details-table input,
.er-details-table select {
    width: 100%;
    min-height: 30px;
    padding: 0.28rem 0.45rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: #ffffff;
    font-size: 0.8rem;
    color: #0f172a;
    box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.04);
}

.er-details-table input:hover,
.er-details-table select:hover {
    border-color: #94a3b8;
}

.er-details-table input:focus,
.er-details-table select:focus,
.er-calculated-field:focus {
    border-color: #3b82f6;
    background: white;
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.16);
}

.er-num-cell {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.er-calculated-field {
    display: block;
    min-height: 30px;
    padding: 0.28rem 0.45rem;
    border: 1px solid #dbe3ea;
    border-radius: 4px;
    background: #f8fafc;
    color: #0f172a;
    line-height: 1.35;
}

.er-calculated-field.empty {
    background: #ffffff;
    color: transparent;
}

.er-grand-total-row td {
    background: #f8fafc;
    font-weight: 600;
    padding: 0.75rem 0.5rem;
}

.er-grand-total-amount {
    color: #0f172a;
    font-size: 1rem;
}

.er-add-row-btn {
    width: 100%;
    padding: 0.5rem;
    background: #f8fafc;
    border: none;
    border-top: 1px solid #e2e8f0;
    color: #3b82f6;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.er-add-row-btn:hover {
    background: #f1f5f9;
}

.er-bottom-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.er-memo-area {
    width: 100%;
    min-height: 80px;
    padding: 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 0.8rem;
    resize: vertical;
    font-family: inherit;
}

.er-upload-box {
    border: 1px dashed #cbd5e1;
    border-radius: 4px;
    padding: 1rem;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
}

.er-upload-box:hover {
    border-color: #3b82f6;
    background: #f0f9ff;
}

.er-upload-box.dragging {
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.2);
}

.er-upload-text {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
}

/* History Timeline */
.er-history-timeline {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.er-history-item {
    display: grid;
    grid-template-columns: 140px 90px 200px 1fr;
    gap: 1rem;
    align-items: baseline;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}
.er-history-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.er-history-time {
    font-size: 0.75rem;
    color: #64748b;
}
.er-history-action {
    font-size: 0.7rem;
    font-weight: 700;
}
.er-history-action.rejected { color: #e11d48; }
.er-history-action.approved { color: #16a34a; }
.er-history-action.submitted { color: #3b82f6; }
.er-history-user {
    font-size: 0.8rem;
    font-weight: 500;
    color: #334155;
}
.er-history-comment {
    font-size: 0.8rem;
    color: #475569;
    font-style: italic;
}
.er-attachment-select {
    width: 100%;
    padding: 0.25rem;
    border: 1px solid transparent;
    border-radius: 3px;
    font-size: 0.75rem;
    background-color: #f1f5f9;
    color: #475569;
}
.er-attachment-select:hover { border-color: #cbd5e1; }
.er-attachment-select:focus { border-color: #3b82f6; background: white; outline: none; }

/* Modal Dialog */
.er-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.er-modal-content {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.er-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}
.er-modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.er-modal-close {
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
}
.er-modal-close:hover { background: #f1f5f9; color: #1e293b; }
.er-history-btn {
    background: transparent;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
}
.er-history-btn:hover { background: #f8fafc; }

/* Preview Overlay */
.er-preview-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    cursor: zoom-out;
}

.er-preview-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: default;
}

.er-preview-image {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 4px solid white;
}

.er-preview-pdf {
    width: min(92vw, 980px);
    height: 86vh;
    background: white;
    border: 4px solid white;
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.er-preview-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
}

.er-preview-close:hover {
    color: #3b82f6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .er-form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .expense-request-container {
        padding: 0.5rem;
    }

    .er-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .er-actions {
        width: 100%;
        justify-content: space-between;
    }

    .er-actions button {
        flex: 1;
        text-align: center;
    }

    .er-form-grid {
        grid-template-columns: 1fr;
    }

    .er-form-group.col-span-2,
    .er-form-group.col-span-3,
    .er-form-group.col-span-4 {
        grid-column: span 1;
    }

    .er-table-wrapper {
        border: 0;
        overflow: visible;
    }

    .er-details-table {
        min-width: 0;
        border-collapse: separate;
        border-spacing: 0;
    }

    .er-details-table thead {
        display: none;
    }

    .er-details-table,
    .er-details-table tbody,
    .er-details-table tr,
    .er-details-table td {
        display: block;
        width: 100%;
    }

    .er-details-table tbody {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .er-details-table tr {
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        background: #ffffff;
        overflow: hidden;
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
    }

    .er-details-table td {
        display: grid;
        grid-template-columns: minmax(96px, 0.38fr) minmax(0, 1fr);
        align-items: center;
        gap: 0.75rem;
        min-height: 44px;
        padding: 0.55rem 0.65rem;
        border-bottom: 1px solid #edf2f7;
        text-align: left !important;
    }

    .er-details-table td::before {
        content: attr(data-label);
        color: #64748b;
        font-size: 0.72rem;
        font-weight: 750;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .er-details-table td:last-child {
        border-bottom: 0;
    }

    .er-details-table input,
    .er-details-table select,
    .er-calculated-field {
        min-height: 38px;
        font-size: 16px;
    }

    .er-details-table .er-num-cell input {
        text-align: left !important;
    }

    .er-delete-btn {
        justify-self: start;
        width: 38px;
        height: 38px;
    }

    .er-grand-total-row {
        box-shadow: none !important;
    }

    .er-grand-total-row td:first-child {
        display: none;
    }

    .er-grand-total-row td:last-child {
        display: grid;
        grid-template-columns: minmax(96px, 0.38fr) minmax(0, 1fr);
        background: #f8fafc;
        border-bottom: 0;
    }

    .er-add-row-btn {
        margin-top: 0.75rem;
        min-height: 42px;
        border: 1px solid #dbe3ea;
        border-radius: 8px;
    }

    .er-bottom-row {
        grid-template-columns: 1fr;
    }

    .er-modal-content {
        padding: 1rem;
        margin: 0.5rem;
        max-height: 90vh;
        overflow-y: auto;
    }

    .er-history-item {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .er-history-time, .er-history-action, .er-history-user {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .er-title-section {
        flex-direction: column;
        gap: 0.25rem;
    }

    .er-title {
        font-size: 1.25rem;
    }

    .er-section {
        padding: 0.75rem;
    }

    .er-preview-close {
        top: 10px;
        right: 10px;
        font-size: 2rem;
        background: rgba(0,0,0,0.5);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
