/*
Arch UI Access Deck Styles
Updated: 08/05/2025
*/

.mobile {
    display:none;
}

.access-deck {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 60px;
	max-height: 60px;
	padding: 10px 20px;
	background: #1c2833;
	color: white;
	border-bottom: 1px solid #7e8489;
}

.access-deck-left {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    height: 100%;
    max-height: 100%;
}

.app-identity {
    display: flex;
    gap: 5px;
    align-items: center;
}

.access-deck-left .brand {
	display: flex;
	align-items: center;
	height: 100%;
	max-height: 100%;
}

.access-deck-left .brand .logo {
	height: 100%;
	max-height: 100%;
}

.access-deck-left .brand .logo svg {
	display: block;
	height: 100%;
	max-height: 35px;
	max-width: 100%;
}

.access-deck-left .brand .logo-mobile {
	display: none;
	height: 100%;
	max-height: 100%;
}

.access-deck-left .brand .logo-mobile svg {
	display: block;
	height: 100%;
	max-height: 100%;
	fill: #66c000;
}

.access-deck-left .brand .logo svg #logo-start {
    fill: #ffffff;
}

.access-deck-left .brand .logo svg #logo-end {
    fill: #66c000;
}

.access-deck-left .brand .logo-mobile {
    display: none;
}

.access-deck-left .app-title {
    font-family: 'Roboto Medium', serif;
    font-size: 21px;
    color: #ccc;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    padding: 2px 7px;
}

.app {
    display: flex;
    border-radius: 5px;
    margin-left: 20px;
    align-items: center;
    padding: 3px 9px 5px 3px;
    background-color: #6d6d6d;
}

.app-header-title {
    margin-left: 5px;
    font-size: 22px;
}

.access-deck-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    width: 100%;
    gap: 12px;
}

.access-deck-right a {
  color: white;
  text-decoration: none;
}

.tray-toggle {
    height: 100%;
}

/*===== APPS MENU =====*/
.apps-toggle {
    background: none;
    border: none;
    font-size: 2.5rem;
    margin-right: 10px;
    color: white;
    cursor: pointer;
    user-select: none;
}

.apps-tray {
    position: absolute;
    top: 67px;
    right: 10px;
    background: #34495e;
    border-radius: 25px;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
    width: 320px;
    overflow: hidden;
}

.apps-tray.open {
    display: block;
}

.apps-menu-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 0px 10px 10px;
    height: 300px;
    max-width: 100%;
    overflow-y: scroll;
    scrollbar-width: thin;
    scrollbar-color: #7e8489 #3b4a5a;
}

.app-menu-header {
    background-color: #22303e;
    border-radius: 25px;
    padding: 10px;
}

.app-menu-footer {
    background-color: #22303e;
    border-radius: 25px;
    padding: 10px;
}

.apps-grid-menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 100%;
}

.apps-grid-menu .app-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #3b4a5a;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #ecf0f1;
    transition: background 0.3s;
}

.apps-grid-menu .app-link:hover {
    background: #2c3e50;
}

.apps-grid-menu .app-icon-small {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.apps-grid-menu .app-label {
    font-size: 0.85rem;
    text-align: center;
}

.app-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #ecf0f1;
}

.app-icon-small {
    font-size: 2rem;
    margin-bottom: 5px;
    text-decoration: none;
}

.app-label {
    font-size: 0.9rem;
    text-align: center;
}

/*===== ACCOUNT MENU TRAY =====*/
.account-tray {
    position: absolute;
    top: 67px;
    right: 10px;
    background: #34495e;
    border-radius: 25px;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
    width: 320px;
    overflow: hidden;
}
.account-tray.open {
    display: block;
}

.tray-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
	padding: 10px;
}

.tray-section {
	background-color: #22303e;
    border-radius: 25px;
    padding: 10px;
}

.account-pill {
    display: flex;
    align-items: center;
    background-color: #f1f3f4;
    border-radius: 5px;
    padding: 4px 5px;
    cursor: pointer;
    max-width: 240px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: background-color 0.2s ease;
}

.account-pill:hover {
    background-color: #e2e5e7;
}

.org-icon {
    height: 30px;
    margin-right: 8px;
    object-fit: cover;
}

.user-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 8px;
    object-fit: cover;
}

.tray-user-info {
    display: flex;
    align-items: center;
	justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}

.user-avatar {
	width: 60px;
	height: 60px;
}

.user-avatar img {
    width: 100%;
    background: #ccc;
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar svg {
    width: 100%;
}

.account-tray a {
    text-decoration: none;
}

.user-details {
    display: flex;
    flex-direction: column;
    font-size: 14px;
}

.user-name {
    font-weight: bold;
	font-size: 1.5em;
}

.org-name {
    color: #888;
    font-size: 1em;
}

.user-org-list {
    display: flex;
    flex-direction: column;
	background-color: #22303e;
    border-radius: 25px;
	overflow: hidden;
}

.org-list-item {
    display: flex;
    justify-content: space-between;
	padding: 10px;
	background-color: rgb(226 229 231 / 23%);
	cursor: pointer;
}

.org-list-item:not(:last-child) {
    border-bottom: 1px solid #888;
}

.tray-section-header {
	padding: 10px 20px;
}

.tray-menu,
.org-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.tray-menu li,
.org-list li {
    margin: 6px 0;
}

.tray-menu a,
.org-list a {
    text-decoration: none;
    color: #222;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logout-link {
    color: #d33;
    font-weight: bold;
}

@media (max-width: 480px) {
    .mobile {
        display: block;
    }
    .access-deck {
        flex-direction: row;
        height: auto;
        align-items: flex-start;
        gap: 8px;
        padding: 10px 10px;
    }
    .access-deck-left {
        gap: unset;
    }
    .access-deck-left .app-title {
        font-size: 22px;
    }
    .access-deck-left .brand .logo {
        display: none;
    }
    .access-deck-left .brand .logo-mobile {
        display: block;
    }
    .access-deck a {
        margin-left: 0;
        /*margin-right: 10px;*/
    }
}