/* Shared popup treatment, matching New conversation. Authentication cards retain their own dimensions. */
.bm-container:not(:has(.pama-auth-dialog)) { display:flex; align-items:center; justify-content:center; padding:20px; background:#37284e77; }
.bm-container > .blazored-modal-focus-trap { width:528px; max-width:100%; min-width:0; }
.bm-container:not(:has(.pama-auth-dialog)) .blazored-modal { box-sizing:border-box; width:100%; max-width:100%; max-height:calc(100dvh - 40px); overflow:auto; margin:auto; padding:24px; border:1px solid #eee7f7; border-radius:18px; background:#fff; color:#342752; box-shadow:0 20px 70px #31243e33; }
.blazored-modal .bm-header { align-items:center; gap:18px; margin:0 0 22px; padding:0; }
.blazored-modal .bm-title { color:#342752; font-size:23px; line-height:1.3; font-weight:600; margin:0; }
.blazored-modal .bm-close { flex-shrink:0; display:grid; place-items:center; width:30px; height:30px; padding:0; border:0; border-radius:50%; background:#f4eefb; color:#7e6698; font-size:22px; line-height:1; }
.blazored-modal .bm-close:hover { background:#e9ddf8; }
.blazored-modal .bm-content { min-width:0; }
.pama-dialog-form { font-size:14px; color:#342752; }
.pama-dialog-form fieldset { border:0; padding:0; margin:0; min-width:0; }
.pama-dialog-form label { display:flex; flex-direction:column; gap:7px; margin:0 0 16px; font-size:13px; min-width:0; }
.pama-dialog-form input,.pama-dialog-form select,.pama-dialog-form textarea { box-sizing:border-box; width:100%; min-width:0; padding:10px 12px; border:1px solid #e6dcf2; border-radius:9px; background:white; color:#342752; font:inherit; }
.pama-dialog-form textarea { resize:vertical; }
.pama-dialog-form small,.dialog-help { color:#9484a8; font-size:12px; line-height:1.6; }
.dialog-help { margin:0 0 18px; font-size:13px; }
.dialog-field-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.dialog-actions { display:flex; align-items:center; justify-content:flex-end; gap:10px; margin-top:22px; }
.dialog-actions button,.mobile-signon button { padding:10px 16px; border:1px solid #e6dcf2; border-radius:9px; color:#8455c3; background:white; font-size:13px; }
.dialog-actions button.primary,.mobile-signon button.primary { background:#a368ef; border-color:#a368ef; color:white; }
.dialog-error { color:#a33838; background:#fff0f0; border-radius:9px; padding:10px; font-size:13px; }
.pama-dialog-form :focus-visible { outline:2px solid #b58ae9; outline-offset:2px; }
.pama-dialog-form button:disabled { opacity:.5; cursor:wait; }
.mobile-signon-code { display:grid; place-items:center; width:280px; height:280px; max-width:100%; margin:24px auto; padding:12px; background:#faf7ff; border:1px solid #eee6f7; border-radius:16px; text-align:center; }
.mobile-signon-code img { display:block; max-width:100%; height:auto; border-radius:6px; }
.pama-menu { position:relative; font-size:13px; color:#342752; }
.pama-menu>summary { display:flex; align-items:center; gap:10px; cursor:pointer; list-style:none; min-height:38px; border-radius:9px; padding:4px 6px; }
.pama-menu>summary::-webkit-details-marker { display:none; }
.pama-menu>summary::marker { content:''; }
.pama-menu>summary:hover,.pama-menu[open]>summary { background:#f4eefb; }
.pama-menu .menu-chevron { width:16px; height:16px; flex:0 0 16px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; transition:transform .15s; }
.pama-menu[open] .menu-chevron { transform:rotate(180deg); }
.pama-menu .pama-menu-options { position:absolute; top:calc(100% + 8px); right:0; z-index:1300; padding:6px; width:228px; max-width:calc(100vw - 24px); border:1px solid #e9e1f3; border-radius:13px; background:white; box-shadow:0 10px 35px #31243e22; }
.pama-menu-options button { display:flex; justify-content:flex-start; width:100%; align-items:center; gap:10px; min-height:40px; padding:10px 12px; border:0; border-radius:8px; background:transparent; color:#342752; font-size:13px; text-align:left; }
.pama-menu-options button:hover,.pama-menu-options button.selected { background:#f4eefb; color:#8545d0; }
.pama-menu :focus-visible { outline:2px solid #a368ef; outline-offset:2px; }
.product-menu>summary { max-width:205px; background:#f4f0fb; padding:8px 12px; }
.product-current,.product-label { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.product-current { flex:1; }
.product-mark { display:grid; place-items:center; width:23px; height:23px; flex-shrink:0; border-radius:6px; background:#ebe2f8; color:#9460cc; font-weight:600; }
.product-menu .product-options { left:0; right:auto; width:260px; }
.product-list { max-height:min(320px,50dvh); overflow:auto; }
.menu-caption { margin:5px 12px 6px; font-size:11px; color:#9484a8; }
.menu-empty { margin:12px; font-size:12px; color:#9484a8; }
.menu-check { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:2; margin-left:auto; flex-shrink:0; }
.pama-menu-options .menu-add { border-top:1px solid #eee7f6; border-radius:0 0 8px 8px; margin-top:5px; padding-top:12px; color:#8545d0; }
@media(max-width:640px) { .product-menu>summary { max-width:145px; gap:6px; padding:6px 8px; font-size:12px; } .product-menu>summary>.product-mark { display:none; } .product-menu .product-options { width:min(250px,calc(100vw - 80px)); } }
@media(max-width:480px) { .bm-container:not(:has(.pama-auth-dialog)) { display:flex; padding:12px; } .blazored-modal { padding:20px; max-height:calc(100dvh - 24px); } .dialog-field-row { grid-template-columns:1fr; gap:0; } }

.dialog-icon-select { display:block; position:relative; }
.dialog-icon-select>img { position:absolute; left:12px; top:50%; transform:translateY(-50%); width:18px; height:18px; object-fit:contain; pointer-events:none; }
.pama-dialog-form .dialog-icon-select>select { padding-left:38px; }

/* Fixed positioning keeps this menu outside the horizontally scrolling nav. */
.pama-menu .ceremonies-options { position:fixed; right:auto; z-index:1300; }
.ceremonies-options a { display:flex; align-items:center; gap:10px; min-height:44px; padding:10px 12px; border-radius:8px; color:#342752; font-size:13px; text-decoration:none; }
.ceremonies-options a:hover,.ceremonies-options a.active { background:#f4eefb; color:#8545d0; }

/* Sprint dialogs keep the existing modal treatment with room for issue metadata and calendar. */
.bm-container:has(.sprint-issue-picker) > .blazored-modal-focus-trap { width:868px; }
.bm-container:has(.capacity-editor) > .blazored-modal-focus-trap { width:688px; }
.bm-container:has(.sprint-conference) > .blazored-modal-focus-trap { width:1028px; }

.bm-container:has(.enterprise-form,.enterprise-work-form) > .blazored-modal-focus-trap { width:640px; max-width:100%; }

.enterprise-notifications{position:relative}.enterprise-notifications>section{position:absolute;right:0;top:42px;width:min(420px,90vw);max-height:70vh;overflow:auto;z-index:1300;background:white;box-shadow:0 12px 38px #33235426}.enterprise-notifications article{padding:12px;border-bottom:1px solid #eee7fa}.enterprise-history-row{border-bottom:1px solid #eee7fa;padding:12px 0}.enterprise-history-row summary{cursor:pointer}.enterprise-history-row dl{display:grid;grid-template-columns:140px 1fr;gap:8px;margin:12px 0;font-size:12px}.enterprise-history-row dd{overflow-wrap:anywhere}

/* Explicit native select metrics and appearance prevent Safari's intrinsic popup height
   and internal padding from covering the optional leading icon. */
.pama-dialog-form select,.planning-editor select { -webkit-appearance:none; appearance:none; display:block; box-sizing:border-box; height:42px; min-height:42px; line-height:20px; padding:10px 36px 10px 12px; background-color:#fff; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237e6698' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-position:right 12px center; background-size:14px; background-repeat:no-repeat; }
.pama-dialog-form .dialog-icon-select>select { padding-left:40px; }
.enterprise-work-form { width:100%; color:#342752; font-size:13px; }
.enterprise-work-form label { display:block; margin:16px 0 7px; font-weight:600; }
.enterprise-work-form label:first-child { margin-top:0; }
.enterprise-work-form input:not([type=checkbox]),.enterprise-work-form textarea { display:block; box-sizing:border-box; width:100%; min-height:40px; margin-top:7px; padding:10px 12px; border:1px solid #e6dcf2; border-radius:9px; background:#fff; color:inherit; font:inherit; }
.enterprise-work-form p { font-size:12px; line-height:1.6; color:#9484a8; margin:8px 0 16px; }
.enterprise-work-form .enterprise-checkbox { display:flex; align-items:flex-start; gap:9px; font-weight:400; line-height:1.5; }
.enterprise-work-form .enterprise-checkbox input { flex:none; margin-top:3px; }
.enterprise-work-form footer { display:flex; justify-content:flex-end; gap:10px; margin-top:24px; padding-top:18px; border-top:1px solid #eee7f7; }
.enterprise-work-form .enterprise-lifecycle { margin-top:24px; padding:18px; border:1px solid #eee7f7; border-radius:9px; }
.enterprise-work-form [role=alert] { color:#a12239; }
.enterprise-work-form .pama-ai-select { margin-bottom:16px; }
.planning-create-dialog .planning-editor { padding:0; }
.planning-create-dialog .planning-section-heading { display:none; }
.planning-create-dialog .planning-editor label { display:block; margin:0 0 16px; font-size:13px; }
.planning-create-dialog .planning-editor input,.planning-create-dialog .planning-editor textarea { box-sizing:border-box; width:100%; min-height:40px; margin-top:7px; padding:10px 12px; border:1px solid #e6dcf2; border-radius:9px; background:#fff; font:inherit; }
.planning-create-dialog .pama-ai-select { margin-top:7px; }

.enterprise-work-form .enterprise-lifecycle h3{font-size:15px;margin:0 0 12px;}
