/* Account box — the header's account menu (Views/Shared/_MDC_Menu.cshtml).
   Palette matches the portal dashboard: espresso, brass, stone. */
.mdc-simple-menu.acct-box { min-width: min(380px, calc(100vw - 16px)); max-width: calc(100vw - 16px); padding: 0; border-radius: 0; }
.acct-box .mdc-simple-menu__items { display: grid; grid-template-columns: 1fr 1fr; padding: 0; }

.acct-box .acct-head { grid-column: 1 / -1; display: flex; gap: 14px; align-items: flex-start;
  background: #2b2622; color: #e9e3da; padding: 18px 20px 16px; list-style: none; }
.acct-box .acct-initials { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid #c9ab7c;
  color: #c9ab7c; display: flex; align-items: center; justify-content: center;
  font-family: "MillerDisplay-Roman", Georgia, serif; font-size: 16px; letter-spacing: .04em; }
.acct-box .acct-who { display: flex; flex-direction: column; min-width: 0; }
.acct-box .acct-name { font-family: "MillerDisplay-Roman", Georgia, serif; font-size: 19px; line-height: 1.2; color: #fff; overflow-wrap: anywhere; white-space: normal;
  text-transform: none; letter-spacing: 0; }
.acct-box .acct-line { font-size: 12px; color: #b9b0a4; margin-top: 3px; text-transform: none; letter-spacing: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-box .acct-tags { display: flex; gap: 8px; margin-top: 9px; }
.acct-box .acct-role, .acct-box .acct-acct { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 7px; }
.acct-box .acct-role { background: #9c7a4b; color: #fff; }
.acct-box .acct-acct { border: 1px solid #6b5f53; color: #d9d1c5; }

.acct-box .acct-link.mdc-list-item { height: auto; padding: 0; border-bottom: 1px solid #e7e2da; }
/* the head is child 1, so the left column is the even children */
.acct-box .acct-link:nth-child(even) { border-right: 1px solid #e7e2da; }
.acct-box .acct-link a { display: block; width: 100%; padding: 13px 20px; white-space: normal; line-height: 1.3; color: #2b2622; text-decoration: none; }
.acct-box .acct-link:hover, .acct-box .acct-link:focus { background: #f6f2ec; }
.acct-box .acct-link:hover a, .acct-box .acct-link:focus a { color: #9c7a4b; }

.acct-box .acct-foot { grid-column: 1 / -1; display: flex; gap: 18px; align-items: center; padding: 13px 20px; list-style: none; }
.acct-box .acct-foot a { color: #6b6259; text-decoration: none; font-size: .92em; }
.acct-box .acct-foot a:hover { color: #9c7a4b; }
.acct-box .acct-foot .acct-signout { margin-left: auto; color: #8a3a34; }

/* Phones: MDC anchors the menu to the icon, which pushes a wide box off the
   left edge. Pin it as a full-width sheet under the header instead (the
   !important beats MDC's inline left/right/top). */
@media (max-width: 640px) {
  .mdc-simple-menu.acct-box { position: fixed !important; top: 58px !important; left: 8px !important; right: 8px !important;
    width: auto; min-width: 0; max-width: none; max-height: calc(100vh - 70px); overflow-y: auto;
    transform-origin: top right !important; box-shadow: 0 10px 30px rgba(43, 38, 34, .25); }
  .acct-box .acct-head { padding: 16px; gap: 12px; }
  .acct-box .acct-name { font-size: 17px; }
  .acct-box .acct-link a { padding: 14px 16px; }
  .acct-box .acct-foot { padding: 14px 16px; gap: 16px; flex-wrap: wrap; }
}
