/* Additions on top of the gstdb theme (atoll.taxsutra.com). */
/* The theme hides body overflow until its page loader finishes; there is no loader here. */
body { background: #fff; overflow: auto; }
.atoll-messages .alert { margin-bottom: .5rem; }

/* Header user menu: the logout entry is a form button. */
.gstDrop .dropdown-menu form { margin: 0; }
.gstDrop .dropdown-menu button.dropdown-item { cursor: pointer; }
#sidebar .footerMenu .logoutLink { color: inherit; }

/* Advanced search: date inputs styled like the theme's text inputs. */
.block-views-exposed-filter-blockrulings-listing-page-1 input[type="date"] {
  height: 32px; border-radius: 3px; border: solid 1px rgba(3, 12, 49, .3); padding: 0 10px; font-size: 13px; width: 100%;
}
.block-views-exposed-filter-blockrulings-listing-page-1 .select2-container { width: 100% !important; }
.block-views-exposed-filter-blockrulings-listing-page-1 .select2-container .select2-selection--single { height: 32px; border-color: rgba(3, 12, 49, .3); }
.block-views-exposed-filter-blockrulings-listing-page-1 .select2-container .select2-selection--single .select2-selection__rendered { line-height: 30px; font-size: 13px; }
.block-views-exposed-filter-blockrulings-listing-page-1 .select2-container .select2-selection--single .select2-selection__arrow { height: 30px; }
.block-views-exposed-filter-blockrulings-listing-page-1 .select2-container .select2-selection--multiple { min-height: 32px; border-color: rgba(3, 12, 49, .3); font-size: 13px; }
.noiFilterWrapper fieldset, .cogFilterWrapper fieldset { width: 100% !important; padding: 0 !important; }
#edit-reset { margin-left: 8px; }
.path-rulings-listing #edit-reset { margin: 10px 0 0; width: 100%; background: transparent; color: #fd7200; border: 1px solid #fd7200; }

/* Listing */
.view-rulings-listing .rulingListItem { width: 100%; }
.view-rulings-listing .expertArticleListingWrap h3 a { color: #222; }
.view-rulings-listing .nameOfExpert ul { list-style: none; padding: 0; margin: 0; }
.view-rulings-listing .nameOfExpert ul li { display: inline-block; margin-right: 12px; }

/* Rich text from the editor. */
.rich-text table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.rich-text td, .rich-text th { border: 1px solid #dee2e6; padding: .4rem; vertical-align: top; }
.rich-text img { max-width: 100%; height: auto; }

/* Home ads */
.atoll-ad-text h2 { font-size: 15px; font-weight: 700; margin: 8px 0 4px; color: #081b67; }
.atoll-ad-text p { font-size: 13px; color: #555; }

/* Basic pages */
.node--type-page .block-page-title-block .title { font-family: "Libre Franklin", sans-serif; font-weight: 700; font-size: 26px; color: #081b67; margin: 10px 0 20px; }

/* Staff content screen (Drupal /admin/content). */
.atoll-admin { padding: 10px 0 40px; }
.atoll-admin-title { font-family: "Libre Franklin", sans-serif; font-size: 24px; font-weight: 700; color: #081b67; border-left: 5px solid #081b67; padding-left: 8px; margin: 0; }
.atoll-admin-filters { background: #f3f4f8; border: 1px solid #cbd1eb; border-radius: 8px; padding: 16px 16px 0; margin-bottom: 16px; }
.atoll-admin label { font-size: 13px; font-weight: 600; color: #666; }
.atoll-admin-table { font-size: 14px; }
.atoll-admin-table thead th { background: #f3f4f8; border-bottom: 2px solid #cbd1eb; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.atoll-admin-table thead th a { color: #1f2b5e; }
.atoll-admin-table thead th.is-active a { color: #fd7200; }
.atoll-admin-table .title-cell a { color: #0a2595; }
.atoll-admin-table td { vertical-align: middle; }
.status-pill { display: inline-block; padding: 2px 10px; border-radius: 12px; background: #eee; color: #555; font-size: 12px; }
.status-pill.is-published { background: #e3f4e6; color: #1e7b34; }
.status-pill.is-expired { background: #fdecdc; color: #b45309; }
.status-pill.is-blocked { background: #fbe1e1; color: #b42318; }

/* ---- Rulings listing (after Advanced Search), as on atoll.taxsutra.com ---- */
.path-rulings-listing .searchResultBar { background: #e9ebef; border-radius: 4px; padding: 14px 20px; margin: 24px 0 20px; }
.path-rulings-listing .searchResultBar h1 { font-family: "Lato", sans-serif; font-size: 21px; font-weight: 600; color: #222; margin: 0; }
.path-rulings-listing #sidebar_first .block { width: 100%; max-width: 300px; background: #f3f4f8; border: 0; border-radius: 6px;
  box-shadow: 1px 1px 6px 0 rgba(0, 0, 0, .16); padding: 0 !important; margin: 0 0 30px; }
.path-rulings-listing .filterHead { padding: 18px 20px 14px; border-bottom: 3px solid #fff; }
.path-rulings-listing .filterHead .filterTitle { font-size: 18px; font-weight: 700; color: #1f2b5e; }
.path-rulings-listing .filterHead .resetAll { font-size: 16px; color: #0a63ff; }
.path-rulings-listing .filterHead .applyBtn { display: block; width: 100%; margin-top: 10px; padding: 7px 5px; background: #fff; color: #fd7200;
  border: 1px solid #fd7200; border-radius: 6px; font-size: 16px; font-weight: 600; }
.path-rulings-listing .filterHead .applyBtn:hover { background: #fd7200; color: #fff; }
.path-rulings-listing .gstListing .form-row { padding: 14px 20px 10px; margin: 0; }
.path-rulings-listing .gstListing .js-form-item,
.path-rulings-listing .gstListing #load-bench, .path-rulings-listing .gstListing #load-favour, .path-rulings-listing .gstListing #load-section,
.path-rulings-listing .gstListing .noiFilterWrapper, .path-rulings-listing .gstListing .cogFilterWrapper { width: 100% !important; padding: 0 !important; }
.path-rulings-listing .gstListing label { font-size: 15px; color: #222; font-weight: 400; margin-bottom: 8px; }
.path-rulings-listing .gstListing input[type="text"], .path-rulings-listing .gstListing input[type="date"],
.path-rulings-listing .gstListing select { height: 38px; border-radius: 3px; border: 1px solid rgba(3, 12, 49, .3); background-color: #fff; }
.path-rulings-listing .gstListing .select2-container .select2-selection--single { height: 38px; }
.path-rulings-listing .gstListing .select2-container .select2-selection--single .select2-selection__rendered { line-height: 36px; font-size: 15px; }
.path-rulings-listing .gstListing .select2-container .select2-selection--single .select2-selection__arrow { height: 36px; }

.view-rulings-listing .rulingListItem { position: relative; margin: 0 0 36px; padding-right: 50px; }
.view-rulings-listing .expertArticleListingWrap { margin: 0; }
.view-rulings-listing .articleTag { display: inline-block; background: #081b67; color: #fff; font-size: 12px; font-weight: 700;
  border-radius: 12px; padding: 3px 14px; margin-bottom: 8px; }
.view-rulings-listing .expertArticleListingWrap h3 { font-size: 20px; font-weight: 700; margin: 0 0 10px; line-height: 1.3; }
.view-rulings-listing .expertArticleListingWrap h3 a { color: #222; }
.view-rulings-listing .articleDate { font-size: 15px; color: #555; margin-bottom: 8px; }
.view-rulings-listing ul.rulingMeta { display: inline-flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 8px 18px 8px 12px; background: #f3f4f8; font-size: 15px; color: #222; }
.view-rulings-listing ul.rulingMeta li { margin-right: 32px; }
.view-rulings-listing ul.rulingMeta li:last-child { margin-right: 0; }
.view-rulings-listing ul.rulingMeta li::before { content: "\2022"; margin-right: 6px; }
.view-rulings-listing .staffEdit { position: absolute; top: 0; right: 0; width: 30px; height: 30px; border: 1px solid #ccc; border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16'%3E%3Cpath fill='%23777' d='M12.1 1.2a1.5 1.5 0 0 1 2.1 0l.6.6a1.5 1.5 0 0 1 0 2.1l-9.3 9.3-3.4.9.9-3.4 9.1-9.5z'/%3E%3C/svg%3E") center no-repeat; }
.view-rulings-listing .load-more-wrap { margin: 10px 0 40px; }
.view-rulings-listing .showMore { font-size: 17px; font-weight: 700; color: #0a63ff; }
.view-rulings-listing .showMore::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 8px; border: solid #0a63ff;
  border-width: 0 2px 2px 0; transform: rotate(45deg); position: relative; top: -3px; }
@media (max-width: 767px) {
  .path-rulings-listing #sidebar_first .block { max-width: none; }
  .view-rulings-listing ul.rulingMeta { display: block; }
}

/* ---- Ruling detail page ---- */
.node--type-ruling .staffTabs { margin: 30px 0 30px; }
.node--type-ruling .staffTabs .nav-link { color: #0a63ff; font-size: 16px; }
.node--type-ruling .staffTabs .nav-link.active { color: #222; }
.rulingDetailCard { max-width: 922px; margin: 40px auto 80px; background: #fff; padding: 40px 55px 50px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, .12); }
.staffTabs + .rulingDetailCard { margin-top: 0; }
.rulingDetailCard hr { border-top: 1px solid #e3e3e3; margin: 22px 0; }
.rulingDetailCard .detailTitle { font-family: "Lato", sans-serif; font-size: 21px; font-weight: 700; color: #1f2b5e; margin: 0 0 8px; }
.rulingDetailCard .detailDate { font-size: 15px; color: #555; }
.rulingDetailCard .detailParties { font-family: "Lato", sans-serif; font-size: 17px; font-weight: 700; color: #1f2b5e; margin: 0 0 16px; line-height: 1.4; }
.rulingDetailCard .downloadBtn { display: inline-flex; align-items: center; gap: 10px; padding: 8px 20px; font-size: 14px; font-weight: 600; border-radius: 4px; }
.rulingDetailCard .detailHeading { font-family: "Lato", sans-serif; font-size: 18px; font-weight: 700; color: #1f2b5e; margin: 24px 0 10px; }
.rulingDetailCard .caseRow { display: flex; font-size: 15px; line-height: 1.45; margin-bottom: 8px; color: #222; }
.rulingDetailCard .caseRow > strong { flex: 0 0 58%; padding-right: 16px; }
.rulingDetailCard .caseRow > div { flex: 1; }
.rulingDetailCard .rulingCopyHead { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.rulingDetailCard .rulingCopyHead .detailHeading { margin: 0; }
.rulingDetailCard .ruling-copy { margin-top: 14px; font-size: 15px; line-height: 1.55; text-align: justify; color: #222; }
@media (max-width: 767px) {
  .rulingDetailCard { padding: 24px 18px; margin-top: 20px; }
  .rulingDetailCard .caseRow { display: block; }
  .rulingDetailCard .rulingCopyHead { display: block; }
  .rulingDetailCard .rulingCopyHead .btn { margin-top: 10px; }
}

/* Drupal CKEditor alignment classes in imported text. */
.text-align-center { text-align: center; } .text-align-right { text-align: right; } .text-align-justify { text-align: justify; }
/* The theme hides native checkboxes (it draws its own); show them in the staff tables. */
.atoll-admin-table input[type="checkbox"] { opacity: 1; width: 16px; height: 16px; cursor: pointer; vertical-align: middle; }
.atoll-admin-table thead th { color: #1f2b5e; }

/* Footer, as on atoll.taxsutra.com */
.site-footer { background: #030c31; color: #fff; }
.site-footer .footer-links { text-align: center; }
.site-footer .footer-links span { display: inline-block; font-size: 15px; font-weight: 600; margin: 0 18px; }
.site-footer .footer-links a { color: #fff; font-family: "Libre Franklin", "Lato", sans-serif; }
.site-footer .footer-links a:hover { color: #fd7200; text-decoration: none; }
.site-footer .site-footer__bottom .content { text-align: center; color: #fff; }
.site-footer .footer-copyright { color: #fff; font-family: "Libre Franklin", "Lato", sans-serif; }
@media (max-width: 767px) { .site-footer .footer-links span { display: block; margin: 0 0 14px; } }

/* ---- Home: space between the search panel and the footer ---- */
.path-frontpage .contentWrapper > .container.pl-0 { margin-bottom: 60px; }

/* ---- My account: Profile / My Subscription (as on atoll.taxsutra.com) ---- */
.accountLayout { padding: 32px 0 80px; }
.accountNav aside a { display: block; padding: 18px 40px; margin-bottom: 8px; border-radius: 8px; font-size: 18px; font-weight: 700;
  color: #081b67; }
.accountNav aside a:hover { text-decoration: none; background: #f7f8fb; }
.accountNav aside a.active { background: #f3f4f8; }
.accountCard { border: 1px solid #ddd; border-radius: 8px; padding: 48px 70px; background: #fff; }
.accountCard .accountRow { align-items: center; margin-bottom: 14px; }
.accountCard .accountRow .col-form-label, .accountCard .subLabel { font-size: 18px; color: #555; }
.accountCard .form-control { height: 42px; border: 1px solid #c5c5c5; border-radius: 3px; font-size: 16px; }
.accountCard .form-control:disabled { background: #e9eaee; }
.accountCard .accountBtn { margin-top: 8px; padding: 10px 40px; background: #fff; color: #081b67; border: 2px solid #081b67;
  border-radius: 6px; font-size: 18px; font-weight: 700; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.accountCard .accountBtn:hover { background: #081b67; color: #fff; }
.accountCard .accountDivider { margin: 26px 0 40px; border-top: 1px solid #ddd; }
.accountCard .accountSubHead { font-size: 18px; color: #555; margin-bottom: 26px; }
.accountCard .passwordForm .form-group { max-width: 420px; }
.accountCard .passwordForm label { font-size: 16px; font-weight: 700; color: #555; }
@media (max-width: 767px) {
  .accountCard { padding: 24px 18px; }
  .accountNav aside { display: flex; gap: 8px; margin-bottom: 16px; }
  .accountNav aside a { padding: 10px 16px; font-size: 15px; margin: 0; }
}

/* Home banner (Homepage ads, slot "Banner") */
.homeBanner a { display: block; }
.homeBanner .carousel-indicators { bottom: -6px; }
.homeBanner .carousel-indicators li { background-color: #081b67; }
.homeBanner .bannerText { display: block; padding: 60px 20px; text-align: center; font-size: 26px; font-weight: 700; color: #081b67; background: #f3f4f8; border-radius: 8px; }

/* ---- Subscribe: Register -> Billing -> Payment (theme markup from atoll.taxsutra.com) ---- */
.path-checkout, .page-user-register { background: #f3f4f8; }
.path-checkout .site-footer, .page-user-register .site-footer { margin-top: 0; }
.checkoutPanel { display: flex !important; align-items: stretch; background: #fff; margin-bottom: 60px !important; }
.page-user-register .checkoutPanel .views-element-container,
.path-billing-details .checkoutPanel .views-element-container { float: none; flex: 0 0 320px; height: auto; min-height: 560px; }
.page-user-register .checkoutPanel .commonBox,
.path-billing-details .checkoutPanel .commonBox { float: none; flex: 1 1 auto; height: auto; padding: 42px 50px 24px; }
.checkoutPanel .commonBox fieldset.form-group { margin-bottom: 14px; }
.checkoutPanel .commonBox label { font-size: 15px; font-weight: 600; color: #555; margin-bottom: 4px; }
.checkoutPanel .commonBox .form-control { height: 40px; border-radius: 3px; }
.checkoutPanel .commonBox .form-control:disabled { background: #e9eaee; }
.checkoutPanel .commonBox label.form-required::after { content: " *"; color: #d0021b; }
.checkoutPanel .commonBox label.error { display: block; color: #d0021b; font-weight: 400; font-size: 13px; margin: 4px 0 0; }
.checkoutPanel .commonBox .form-control.error { border-color: #d0021b; }
.checkoutPanel .commonBox .btn-primary { min-height: 44px; font-weight: 700; font-size: 17px !important; }
.page-user-register .checkoutPanel .commonBox .btn-primary { width: 100%; }
.path-billing-details .checkoutPanel .commonBox .btn-primary { float: right; padding: 8px 36px; }
.checkoutPanel .gstCheck { margin: 18px 0 10px; }
.checkoutPanel .gstCheck .custom-control-label { font-size: 16px; font-weight: 600; color: #222; padding-top: 2px; }
.checkoutPanel .taxSutraTextWrapper { margin-top: 10px; font-size: 14px; }
@media (max-width: 767px) {
  .checkoutPanel { display: block !important; }
  .page-user-register .checkoutPanel .views-element-container,
  .path-billing-details .checkoutPanel .views-element-container { min-height: 340px; }
  .page-user-register .checkoutPanel .commonBox, .path-billing-details .checkoutPanel .commonBox { padding: 24px 18px; }
}
/* Step 3 - order summary */
.path-checkout .registerContentWrapper .col-lg-8 > .commonBox { background: #fff; border: 1px solid #ddd; padding: 48px 55px 40px; margin: 32px 0 80px; }
.path-checkout .orderRow { display: flex; justify-content: space-between; font-size: 17px; margin-bottom: 8px; }
.path-checkout .orderRow .orderPrice { font-weight: 600; }
.path-checkout .orderRow .validity { font-size: 15px; color: #666; }
.path-checkout .payForm .btn-primary { min-width: 230px; padding: 10px 30px; font-weight: 700; font-size: 16px; }
.path-checkout .orderRow.mobileOrderRow { text-align: left; margin-top: 0; }
.path-checkout .button-user { display: inline-block; padding-left: 20px; }
.paymentFailed { margin-top: 32px; border: 1px solid #f1c3c3; border-left: 6px solid #c0392b; background: #fff; padding: 16px 22px; }
.paymentFailed h3 { font-size: 18px; color: #c0392b; margin: 0 0 6px; font-weight: 700; }
.paymentFailed + .commonBox { margin-top: 16px !important; }
.page-checkout-complete .mainSection { height: auto; min-height: 60vh; padding: 60px 15px; }
.page-checkout-complete .imageWrapper p { width: auto; max-width: 460px; margin-left: auto; margin-right: auto; }
.page-checkout-complete .paidDetails { color: #555; }
/* My Subscription */
.subscribeBox { margin-top: 18px; padding: 18px 22px; background: #f3f4f8; border-radius: 8px; }
.orderHistory { font-size: 14px; }
.orderHistory th { color: #1f2b5e; font-size: 12px; text-transform: uppercase; }
.checkoutPanel .consentText { font-size: 12px; color: #666; margin: 6px 0 0; text-align: center; }

/* Validation messages: the theme positions them absolutely (they overlapped the next field). Keep them in flow. */
.registerLoginWrapper .commonBox fieldset.form-group { position: relative; margin-bottom: 16px; }
.registerLoginWrapper .commonBox label.error,
.checkoutPanel .commonBox label.error {
  position: static; display: block; margin: 5px 0 0; padding: 0; text-align: left;
  font-size: 12.5px; line-height: 1.35; font-weight: 400; color: #bc4232;
}
.registerLoginWrapper .commonBox .form-control.error,
.registerLoginWrapper .commonBox .form-control.is-invalid { border-color: #bc4232; background-image: none; padding-right: 12px; }
.registerLoginWrapper .commonBox .gstCheck label.error { margin-left: 0; }

/* Status / error messages (Drupal look: white box, coloured bar, icon). */
.atoll-messages .alert { display: flex; align-items: center; gap: 12px; background: #fff; color: #222; border: 1px solid #e4b9b9;
  border-left: 8px solid #c0392b; border-radius: 3px; padding: 16px 48px 16px 18px; font-size: 16px; }
.atoll-messages .alert::before { content: ""; flex: 0 0 26px; height: 24px; background-repeat: no-repeat; background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c0392b' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 3 2 21h20z'/%3E%3Cpath d='M12 10v5M12 18v.5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.atoll-messages .alert-success, .atoll-messages .alert-info { border-color: #cfe3d3; border-left-color: #2e7d32; }
.atoll-messages .alert-success::before, .atoll-messages .alert-info::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e7d32' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12 3 3 5-6'/%3E%3C/svg%3E"); }
.atoll-messages .alert-warning { border-color: #f0d9b5; border-left-color: #fd7200; }
.atoll-messages .alert .close { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 26px; padding: 0; }
.path-checkout .atoll-messages, .page-user-register .atoll-messages { margin-top: 24px; }

/* "You need to be subscribed" screen (ruling details without a subscription) and My Subscription. */
.subscribeRequiredPage { max-width: 760px; padding: 8px 0 40px; }
.subscribeRequired .subscribeRequiredText { font-size: 18px; font-weight: 600; color: #222; border-left: 6px solid #fd7200;
  background: #fff8f1; padding: 14px 18px; margin: 0 0 20px; }
.subscribeRequired .subscribeContact { font-size: 15px; line-height: 1.6; }
.subscribeRequired .subscribeContact img { max-width: 100%; height: auto; }

/* ---- Advanced Search: type-ahead suggestions on the name fields ---- */
.gstListing fieldset.form-type-textfield { position: relative; }
.ac-menu { position: absolute; z-index: 60; left: 0; right: 0; top: 100%; margin: 2px 0 0; padding: 4px 0; list-style: none;
  max-height: 280px; overflow-y: auto; background: #fff; border: 1px solid rgba(3, 12, 49, .2); border-radius: 4px;
  box-shadow: 0 8px 24px rgba(3, 12, 49, .14); }
.ac-menu[hidden] { display: none; }
.ac-menu li { padding: 7px 12px; font-size: 13px; line-height: 1.35; color: #222; cursor: pointer; }
.ac-menu li strong { font-weight: 700; color: #081b67; }
.ac-menu li:hover, .ac-menu li.is-active { background: #eef4fb; }

/* ---- Advanced Search: Parent > Child > Grandchild pop-up (Nature of Issues, Classification of Goods) ---- */
.tree-picker .tree-picker-summary { display: block; width: 100%; height: 32px; padding: 0 30px 0 10px; text-align: left; font-size: 13px;
  color: #444; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%23888' d='M0 0h10L5 6z'/%3E%3C/svg%3E") no-repeat right 11px center;
  border: 1px solid rgba(3, 12, 49, .3); border-radius: 4px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.path-rulings-listing .tree-picker .tree-picker-summary { height: 38px; font-size: 15px; }
.tree-picker .tree-picker-summary:focus { outline: 2px solid #3892d2; outline-offset: 1px; }
.tree-picker-backdrop { position: fixed; inset: 0; z-index: 1040; background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.tree-picker-panel { position: fixed; z-index: 1050; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(640px, calc(100vw - 32px));
  max-height: min(86vh, 760px); display: flex; flex-direction: column; background: #fff; border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3); padding: 22px 24px 18px; text-align: left; }
.tree-picker-backdrop[hidden], .tree-picker-panel[hidden] { display: none; }
body.tree-picker-open { overflow: hidden; }
.tree-picker-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tree-picker-head h3 { margin: 0; font-size: 17px; font-weight: 700; color: #030c31; }
.tree-picker-close { border: 0; background: none; font-size: 28px; line-height: 20px; color: #030c31; padding: 0 2px; cursor: pointer; }
.tree-picker-search { margin-top: 16px; width: 100%; height: 36px; padding: 0 34px 0 10px; font-size: 14px; color: #444;
  border: 1px solid rgba(3, 12, 49, .3); border-radius: 4px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 15 15'%3E%3Cpath fill='%230A2595' d='M6.5 1a5.5 5.5 0 0 1 4.38 8.83l3.4 3.4-.98.98-3.4-3.4A5.5 5.5 0 1 1 6.5 1zm0 1.5a4 4 0 1 0 0 8 4 4 0 0 0 0-8z'/%3E%3C/svg%3E") no-repeat right 10px center; }
.tree-picker-hint { display: block; margin: 6px 0 12px; font-size: 11px; font-weight: 700; color: #8d8d94; }
.tree-picker-list, .tree-picker-list ul { list-style: none; margin: 0; padding: 0; }
.tree-picker-list { flex: 1 1 auto; overflow-y: auto; padding-right: 6px; border-top: 1px solid #eee; padding-top: 10px; }
.tree-picker-list ul { padding-left: 28px; }
.tree-picker-list li[hidden], .tree-picker-list ul[hidden] { display: none; }
.tree-picker-list .tree-row { display: flex; align-items: flex-start; gap: 8px; padding: 5px 0; }
.tree-picker-list .tree-row label { margin: 0; font-size: 14px; line-height: 20px; color: #444; cursor: pointer; }
.tree-picker-list .depth-0 > .tree-row label { font-weight: 600; color: #222; }
/* The theme hides native checkboxes (opacity:0) for its own label styling; these are real ones. */
.tree-picker-list input[type="checkbox"] { flex: 0 0 auto; width: 17px; height: 17px; margin: 2px 0 0; opacity: 1; filter: none; accent-color: #3892d2; cursor: pointer; }
.tree-picker-list .tree-toggle, .tree-picker-list .tree-toggle-spacer { flex: 0 0 20px; width: 20px; height: 20px; }
.tree-picker-list .tree-toggle { position: relative; border: 1px solid #e6e6eb; border-radius: 4px; background: #f3f4f8; padding: 0; cursor: pointer; }
.tree-picker-list .tree-toggle::before, .tree-picker-list .tree-toggle::after { content: ""; position: absolute; left: 50%; top: 50%;
  background: #0a2595; transform: translate(-50%, -50%); }
.tree-picker-list .tree-toggle::before { width: 10px; height: 2px; }
.tree-picker-list .tree-toggle::after { width: 2px; height: 10px; }
.tree-picker-list .tree-toggle[aria-expanded="true"]::after { display: none; }
.tree-picker-empty { margin: 12px 0 0; font-size: 13px; color: #8d8d94; }
.tree-picker-empty[hidden] { display: none; }
.tree-picker-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #eee; }
.tree-picker-clear { border: 0; background: none; color: #0a63ff; font-size: 13px; padding: 0; cursor: pointer; }
.tree-picker-done { min-width: 160px; height: 36px; border-radius: 6px; border: 1px solid #fd7200; background: #fd7200; color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; }
.tree-picker-done:hover { background: #e56700; }
@media (max-width: 575px) {
  .tree-picker-panel { top: auto; bottom: 0; left: 0; transform: none; width: 100%; max-height: 92vh; border-radius: 12px 12px 0 0; padding: 18px 16px 14px; }
}
/* With the full list the pop-up is a full-height flex column: only the list may shrink/scroll, never the search box. */
.tree-picker-panel > * { flex-shrink: 0; }
.tree-picker-panel > .tree-picker-list { flex: 1 1 auto; min-height: 0; }
.tree-picker-panel .tree-picker-search { box-sizing: border-box; height: 40px; min-height: 40px; line-height: normal; padding: 0 36px 0 12px; font-size: 15px; -webkit-appearance: none; appearance: none; }
.tree-picker-panel .tree-picker-search::-webkit-search-cancel-button { margin-right: 4px; }
