/*
Stanza Law law office management software
Copyright 2024 CanCan Systems, Inc.
*/

#login-screen {
	position:relative;
    max-width:30rem;
    top: 20vh;
    margin: auto;
    padding:1rem;
    border: var(--box-border);
    box-shadow: var(--shadow-lg);
    border-radius: .75rem;
    background-color:var(--content-background-color);
    text-align:center;
}

.login_background {
    width:100%;
    padding:.75rem .5rem;
    background-color:var(--content5-background-color);
    border:1px solid var(--gray-200);
    border-radius: var(--box-border-radius);
  }

/* Header: one row. The company name and the client search shrink first. */

#application-header{
    position: fixed; 
    top:0;
    left:0;
    right:0;
    height:var(--header-height);
    padding:0 .75rem;
    background-color: var(--header-company-name-background-color);  
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-900);
    z-index:20;
    display:flex; 
    align-items:center;
    gap:.75rem;
}

#header-company-logo {
    height:2.25rem;
    flex:none;
}
#header-company-name {
    flex:0 1 auto;
    min-width:0;
    width:auto;
    margin:0;
    padding:0;
    font-size:1.15rem;
    font-weight:600;
    color: var(--header-company-name-color);
    background:none;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

#header-menu-content {
    flex:1 1 auto;
    min-width:0;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:.25rem;
}

#header-search-case {
    flex:0 1 20rem;
    min-width:8rem;
    margin-right:auto;
    display:flex;
}
#header-search-case input {
    flex:1 1 auto;
    width:100%;
    min-width:0;
    margin:0;
    text-indent:1.6rem; /* room for the icon; padding would change the field's intrinsic width */
    border-radius:.5rem;
    /* Lucide search (from Feather, MIT), see legacy/common/icons/LICENSE-lucide.txt */
    background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21 21-4.34-4.34'/%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3C/svg%3E") .6rem center / 1rem no-repeat, var(--gray-50);
}
#header-search-case input:focus {
    background-color:#ffffff;
}

/* Kept for screen readers; the placeholder carries the hint visually. */
.visually-hidden {
    position:absolute !important;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0, 0, 0, 0);
    white-space:nowrap;
    border:0;
}

#header-nav {
    display:flex;
    align-items:center;
    gap:.125rem;
    flex:none;
}
.header-nav-item {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:2.375rem;
    height:2.375rem;
    border-radius:.5rem;
    color:var(--gray-500);
    cursor:pointer;
    transition: background-color .12s, color .12s;
}
.header-nav-item:hover {
    color:var(--brand-600);
    background-color:var(--gray-100);
}
/* The module on screen; common.js moves the mark */
.header-nav-item.header-nav-active {
    color:var(--brand-600);
    background-color:var(--brand-50);
    box-shadow:inset 0 -2px 0 var(--brand-600);
}
/* Lucide line icons from legacy/common/icons/lucide.svg */
.header-icon {
    width:1.25rem;
    height:1.25rem;
    fill:none;
    stroke:currentColor;
    stroke-width:2;
    stroke-linecap:round;
    stroke-linejoin:round;
    pointer-events:none;
}
.header-nav-assistant {
    color:var(--brand-600);
}
#header-user-unread-messages {
    min-width:1.5rem;
    font-size:.85rem;
    font-weight:600;
    color:var(--danger-600);
    cursor:pointer;
}    

.header-menu-image {
    height:1.75rem;
    border: 0;
    border-radius: .375rem;
    cursor: pointer;
}

#header-user {
    flex:none;
    margin-left:.5rem;
    padding-left:.75rem;
    border-left:1px solid var(--gray-200);
    font-size:.8rem;
    line-height:1.25;
    color:var(--gray-700);
    text-align:right;
    white-space:nowrap;
}
#header-user-name {
    font-weight:600;
    color:var(--gray-900);
}

/* Work area: fills the window below the header and scrolls. */

#stanzalaw-workarea {
	position: fixed;
	top:var(--header-height);
	left:0;
	right:0;
	bottom:0;
	overflow:auto;
	padding:.25rem .5rem;
    background:var(--site-background-color);
}

#desktop-content {
    display:flex;
    justify-content:center;
    width:100%;
    height:100%;
}

#desktop-checklist-content {
    width: 60%;
    padding:.5rem;
}
/* The section titles sit under floated pickers (Select user, Up to Date) */
#desktop-content h2 {
    clear:both;
}

#desktop-todo-list-content {
    width: 40%;
    padding:.5rem;
}
#mail-content {
    display:flex;
    justify-content:center;
    width:100%;
}

#mail-list {
    width: 100%;
    padding:.5rem;
}