@charset "utf-8";
/* CSS Document */

/* =========================================================
   LINGUOMARTINI ADMINISTRATION PANEL
   linguomartini-admin.css
   ========================================================= */


/* =========================================================
   GLOBAL ADMIN VARIABLES
   ========================================================= */

:root
{
    --admin-yellow: #F4A261;
    --admin-yellow-dark: #d8aa00;

    --admin-white: #ffffff;
    --admin-black: #111111;

    --admin-text: #333333;
    --admin-muted: #777777;

    --admin-light-bg: #f6f7f8;
    --admin-border: #dddddd;
    --admin-border-light: #e8e8e8;

    /* EXTENDED SIDEBAR */
    --admin-sidebar-width: 320px;

    --admin-radius: 10px;
    --admin-shadow: 0 3px 14px rgba(0, 0, 0, 0.08);
}


/* =========================================================
   GLOBAL RESET
   ========================================================= */

*
{
    box-sizing: border-box;
}


html
{
    scroll-behavior: smooth;
    border: 2px solid var(--admin-yellow);
}


body
{
    margin: 0;
    padding: 0;

    font-family: Arial, Helvetica, sans-serif;

    background: var(--admin-light-bg);
    color: var(--admin-text);

    min-height: 100vh;
}


button,
input,
textarea,
select
{
    font: inherit;
}


button
{
    cursor: pointer;
}


button:focus-visible
{
    outline: 2px solid var(--admin-yellow);
    outline-offset: 2px;
}


/* =========================================================
   ADMIN HEADER
   ========================================================= */

.admin-header
{
    width: 100%;
    min-height: 78px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 10px 24px;

    background: var(--admin-black);

    border-bottom: 6px solid var(--admin-yellow);

    position: sticky;
    top: 0;
    z-index: 1000;
}


/* =========================================================
   ADMIN BRAND
   ========================================================= */

.admin-brand
{
    display: flex;
    align-items: center;

    gap: 12px;

    min-width: 0;
}


.admin-brand img
{
    flex-shrink: 0;

    object-fit: contain;
}


.admin-brand-text
{
    display: flex;
    flex-direction: column;

    line-height: 1.15;
}


.admin-company-name
{
    font-size: 28px;

    font-weight: 800;

    color: var(--admin-white);

    letter-spacing: 0.02rem;
}


.admin-panel-label
{
    margin-top: 4px;

    font-size: 26px;

    font-weight: 800;

    letter-spacing: 0.12rem;

    color: var(--admin-muted);
}


/* =========================================================
   HEADER ACTIONS
   ========================================================= */

.admin-header-actions
{
    display: flex;
    align-items: center;
}


/* =========================================================
   MAIN ADMIN LAYOUT
   ========================================================= */

.admin-layout
{
    display: flex;

    width: 100%;

    min-height: calc(100vh - 78px);
}


/* =========================================================
   START OF HEADER DROPDOWN MENU
   ========================================================= */

.admin-header-menu
{
    position: relative;
}


.admin-header-dropdown
{
    display: none;

    position: absolute;

    top: 100%;
    left: 0;

    min-width: 180px;

    z-index: 1000;
}


.admin-header-menu.active
.admin-header-dropdown
{
    display: block;
}


.admin-header-button
{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;

    gap: 2px;

    border: 1px solid var(--admin-black);

    border-right: 1px solid var(--admin-white);

    background: var(--admin-black);

    color: var(--admin-white);

    padding: 6px 13px;

    border-radius: 0px;

    font-size: 13px;

    font-weight: 700;

    white-space: nowrap;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}


.admin-header-button:hover
{
    background: var(--admin-yellow);

    color: var(--admin-black);

    border-radius: 5px;
}


.header-dropdown-arrow
{
    display: inline-block;

    margin-left: 0;

    font-size: 18px;

    font-weight: 900;

    line-height: 1;

    white-space: nowrap;

    flex: 0 0 auto;

    transform: translateY(-1px);

    transition:
        transform 0.2s ease;
}


.admin-header-menu.active
.header-dropdown-arrow
{
    transform:
        translateY(-1px)
        rotate(180deg);
}


/* =========================================================
   END OF HEADER DROPDOWN MENU
   ========================================================= */



/* START OF STAFF NESTED DROPDOWN STYLING */

.admin-staff-menu > .admin-header-dropdown {
    left: auto;
    right: 0;
    min-width: 150px;
    width: max-content;
    z-index: 1000;
}

.admin-header-submenu {
    position: relative;
    width: 100%;
}

.admin-header-submenu-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    cursor: pointer;
    white-space: nowrap;
}

.admin-submenu-arrow {
    display: inline-block;
    flex: 0 0 auto;
    margin-left: 8px;
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
    transition: transform .2s ease;
}

.admin-header-submenu.active > .admin-header-submenu-button > .admin-submenu-arrow {
    transform: rotate(90deg);
}

.admin-header-submenu-dropdown {
    display: none;
    position: absolute;
    top: 0;
    right: 100%;
    left: auto;
    min-width: 130px;
    width: max-content;
    box-sizing: border-box;
    z-index: 1001;
    background: var(--admin-black);
    border: 1px solid var(--admin-white);
    box-shadow: 0 4px 8px rgba(0, 0, 0, .2);
}

.admin-header-submenu.active > .admin-header-submenu-dropdown {
    display: block;
}

.admin-header-submenu-dropdown > button {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    white-space: nowrap;
}

/* END OF STAFF NESTED DROPDOWN STYLING */




/* =========================================================
   SIDEBAR
   ========================================================= */

.admin-sidebar
{
    width: var(--admin-sidebar-width);

    flex: 0 0 var(--admin-sidebar-width);

    background: var(--admin-white);

    border-right: 1px solid var(--admin-border);

    padding: 18px 14px 20px;

    overflow-y: auto;

    position: sticky;

    top: 78px;

    height: calc(100vh - 78px);
}


.sidebar-title
{
    text-align: center;

    font-size: 18px;

    font-weight: 900;

    letter-spacing: 0.12rem;

    color: var(--admin-black);

    padding: 5px 4px 14px;

    border-bottom: 1px solid var(--admin-border);
}


/* =========================================================
   FOUR LEADING GROUPS
   2 × 2 HYBRID NAVIGATION
   ========================================================= */

.sidebar-primary-groups
{
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 8px;

    padding: 14px 0;

    border-bottom: 1px solid var(--admin-border);
}


/* =========================================================
   PRIMARY SIDEBAR ITEMS
   ========================================================= */

.sidebar-group-button
{
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 6px;

    border: 1px solid var(--admin-border);

    background: var(--admin-light-bg);

    color: var(--admin-black);

    min-height: 48px;

    padding: 8px 9px;

    border-radius: 7px;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 0.025rem;

    line-height: 1.25;

    text-align: left;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.15s ease;
}


.sidebar-group-button:hover
{
    background: var(--admin-yellow);

    border-color: var(--admin-yellow);

    transform: translateY(-1px);
}


.sidebar-group-button.active
{
    background: var(--admin-yellow);

    border-color: var(--admin-yellow);

    color: var(--admin-black);
}


.sidebar-arrow
{
    font-size: 20px;

    font-weight: 900;

    margin-left: 8px;

    line-height: 1;

    transition:
        transform 0.2s ease;
}


.sidebar-group-button.active .sidebar-arrow
{
    transform: rotate(180deg);
}


/* =========================================================
   SUBNAVIGATION
   ========================================================= */

.sidebar-subnavigation
{
    width: 100%;
}


.sidebar-submenu
{
    display: none;

    margin: 4px 0;

    padding: 7px;

    border: 1px solid var(--admin-border-light);

    border-radius: 7px;

    background: #f2f3f4;
}


.sidebar-submenu.active
{
    display: block;
}


/* =========================================================
   DROPDOWN / SUBMENU ITEMS
   ========================================================= */

.sidebar-subitem
{
    width: 100%;

    display: block;

    border: 1px solid var(--admin-border-light);

    border-bottom: 1px solid var(--admin-border-light);

    background: var(--admin-white);

    color: var(--admin-text);

    text-align: left;

    margin: 2px 0;

    padding: 8px 10px 8px 17px;

    font-size: 12px;

    line-height: 1.3;

    border-radius: 5px;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        padding-left 0.2s ease;
}


.sidebar-subitem:last-child
{
    border-bottom: 1px solid var(--admin-border-light);
}


.sidebar-subitem:hover
{
    background: var(--admin-yellow);

    color: var(--admin-black);

    padding-left: 21px;
}


.sidebar-subitem.active
{
    background: var(--admin-yellow);

    color: var(--admin-black);

    font-weight: 700;

    padding-left: 21px;
}


/* =========================================================
   LOWER GROUPS
   ========================================================= */

.sidebar-lower-groups
{
    padding-top: 12px;
}


.sidebar-lower-groups > .sidebar-group-button
{
    margin-bottom: 5px;
}


.sidebar-lower-groups .sidebar-submenu
{
    margin-bottom: 7px;
}


/* =========================================================
   LOGOUT
   ========================================================= */

.sidebar-logout-container
{
    margin-top: 15px;

    padding-top: 12px;

    border-top: 1px solid var(--admin-border);
}


.sidebar-logout-button
{
    width: 100%;

    border: 1px solid var(--admin-border);

    background: var(--admin-white);

    color: var(--admin-black);

    padding: 10px 12px;

    border-radius: 7px;

    font-size: 12px;

    font-weight: 800;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}


.sidebar-logout-button:hover
{
    background: var(--admin-yellow);

    border-color: var(--admin-yellow);
}


/* =========================================================
   MAIN CONTENT AREA
   ========================================================= */

.admin-main-content
{
    flex: 1;

    min-width: 0;

    padding: 30px;

    background: var(--admin-light-bg);
}


/* =========================================================
   ADMIN VIEW
   ========================================================= */

.admin-view
{
    width: 100%;
}


.admin-view[hidden]
{
    display: none !important;
}


/* =========================================================
   HOME INTRODUCTION
   ========================================================= */

.admin-home-introduction
{
    text-align: center;

    max-width: 900px;

    margin: 0 auto 30px;
}


.admin-home-introduction h1
{
    margin: 0;

    color: var(--admin-black);

    font-size: clamp(18px, 2vw, 22px);

    font-weight: 900;

    letter-spacing: 0.025rem;
}


.admin-home-introduction p
{
    margin: 12px auto 0;

    max-width: 720px;

    color: var(--admin-muted);

    font-size: 15px;

    line-height: 1.6;
}


/* =========================================================
   DASHBOARD STATISTICS
   ========================================================= */

.dashboard-statistics
{
    width: 100%;

    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 16px;

    margin-bottom: 30px;
}


.dashboard-stat-card
{
    background: var(--admin-white);

    border: 4px solid var(--admin-yellow);

    border-radius: var(--admin-radius);

    min-height: 145px;

    padding: 20px 14px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    text-align: center;

    box-shadow: var(--admin-shadow);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.dashboard-stat-card:hover
{
    transform: translateY(-3px);

    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.11);
}


.dashboard-stat-number
{
    color: var(--admin-black);

    font-size: clamp(28px, 3vw, 40px);

    font-weight: 900;

    line-height: 1;
}


.dashboard-stat-label
{
    margin-top: 12px;

    color: var(--admin-muted);

    font-size: 12px;

    font-weight: 900;

    letter-spacing: 0.08rem;

    line-height: 1.35;
}


/* =========================================================
   DASHBOARD SECTION HEADINGS
   ========================================================= */

.dashboard-section-heading
{
    display: inline-block;

    margin-bottom: 15px;

    color: var(--admin-black);

    font-size: 13px;

    font-weight: 900;

    letter-spacing: 0.12rem;

    text-transform: uppercase;
}


/* =========================================================
   ATTENTION REQUIRED
   ========================================================= */

.attention-required-section
{
    width: 100%;

    background: var(--admin-white);

    border: 1px solid var(--admin-border);

    border-radius: var(--admin-radius);

    padding: 20px;

    margin-bottom: 25px;

    box-shadow: var(--admin-shadow);
}


.attention-required-items
{
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 12px;
}


.attention-item
{
    border: 4px solid var(--admin-yellow);

    background: var(--admin-light-bg);

    color: var(--admin-text);

    border-radius: 7px;

    padding: 14px 12px;

    text-align: center;

    font-size: 12px;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}


.attention-item span
{
    font-size: 21px;

    font-weight: 900;

    color: var(--admin-black);

    margin-right: 5px;
}


.attention-item:hover
{
    background: var(--admin-yellow);

    border-color: var(--admin-yellow);
}


/* =========================================================
   TODAY AT LINGUOMARTINI
   ========================================================= */

.today-activity-section
{
    width: 100%;

    background: var(--admin-white);

    border: 1px solid var(--admin-border);

    border-radius: var(--admin-radius);

    padding: 20px;

    box-shadow: var(--admin-shadow);
}


.today-activity-list
{
    width: 100%;
}


.activity-entry
{
    display: grid;

    grid-template-columns: 70px 1fr;

    gap: 12px;

    align-items: center;

    padding: 11px 12px;

    margin-bottom: 10px;

    border: 4px solid var(--admin-yellow);

    border-radius: 7px;
}


.activity-entry:last-child
{
    margin-bottom: 0;
}


.activity-time
{
    color: var(--admin-muted);

    font-size: 12px;

    font-weight: 700;
}


.activity-description
{
    color: var(--admin-text);

    font-size: 13px;

    line-height: 1.4;
}


/* =========================================================
   DYNAMIC ADMIN WORKSPACE
   ========================================================= */

.dynamic-view-header
{
    background: var(--admin-white);

    border: 4px solid var(--admin-yellow);

    border-radius: var(--admin-radius);

    padding: 24px;

    margin-bottom: 20px;

    box-shadow: var(--admin-shadow);
}


.dynamic-view-header h1
{
    margin: 0;

    color: var(--admin-black);

    font-size: 18px;

    font-weight: 900;
}


.dynamic-view-header p
{
    margin: 8px 0 0;

    color: var(--admin-muted);

    font-size: 14px;

    line-height: 1.5;
}


.dynamic-view-content
{
    min-height: 300px;

    background: var(--admin-white);

    border: 4px solid var(--admin-yellow);

    border-radius: var(--admin-radius);

    padding: 25px;

    box-shadow: var(--admin-shadow);
}


/* =========================================================
   ADMIN TABLE FOUNDATION
   ========================================================= */

.admin-table-wrapper
{
    width: 100%;

    overflow-x: auto;
}


.admin-table
{
    width: 100%;

    border-collapse: collapse;

    min-width: 700px;
}


.admin-table th
{
    background: var(--admin-yellow);

    color: var(--admin-black);

    padding: 11px;

    text-align: left;

    font-size: 12px;

    font-weight: 900;

    letter-spacing: 0.04rem;
}


.admin-table td
{
    padding: 11px;

    border-bottom: 1px solid var(--admin-border-light);

    color: var(--admin-text);

    font-size: 12px;
}


.admin-table tr:hover td
{
    background: #fafafa;
}


/* =========================================================
   ADMIN BUTTON FOUNDATION
   ========================================================= */

.admin-action-button
{
    border: none;

    background: #F4A261;

    color: #ffff;

    padding: 8px 13px;
    
    margin-bottom: 10px;
    
    margin-top: 16px;

    border-radius: 6px;

    font-size: 14px;

    font-weight: 600;

    transition:
        background-color 0.2s ease,
        transform 0.15s ease;
}


.admin-action-button:hover
{
    background: #E9C46A;

    color: red;

    transform: translateY(-1px);
}


/*
|--------------------------------------------------------------------------
| START OF PERMISSION MATRIX SAVE BUTTON ACTIVITY
|--------------------------------------------------------------------------
*/

.admin-action-button.is-saving
{
    cursor: wait;
    opacity: 0.85;
}

.admin-action-button.is-saving::before
{
    content: "";

    display: inline-block;

    width: 12px;
    height: 12px;

    margin-right: 8px;

    border: 2px solid currentColor;
    border-right-color: transparent;

    border-radius: 50%;

    vertical-align: -2px;

    animation: lmPermissionSaveSpin 0.7s linear infinite;
}

@keyframes lmPermissionSaveSpin
{
    to
    {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce)
{
    .admin-action-button.is-saving::before
    {
        animation: none;
    }
}

/*
|--------------------------------------------------------------------------
| END OF PERMISSION MATRIX SAVE BUTTON ACTIVITY
|--------------------------------------------------------------------------
*/


/* =========================================================
   ADMIN FORM FOUNDATION
   ========================================================= */

.admin-form-group
{
    margin-bottom: 15px;
}


.admin-form-group label
{
    display: block;

    margin-bottom: 6px;

    color: var(--admin-black);

    font-size: 12px;

    font-weight: 800;
}


.admin-form-control
{
    width: 100%;

    border: 1px solid var(--admin-border);

    background: var(--admin-white);

    color: var(--admin-text);

    border-radius: 6px;

    padding: 10px 11px;

    font-size: 13px;
}


.admin-form-control:focus
{
    outline: none;

    border-color: var(--admin-yellow);
}


/* =========================================================
   ADMIN SIDEBAR — EXTENDED YELLOW VERSION
   ========================================================= */

.admin-sidebar
{
    width: var(--admin-sidebar-width);

    flex: 0 0 var(--admin-sidebar-width);

    background: var(--admin-yellow);

    border-right: 1px solid var(--admin-yellow-dark);

    padding: 18px 14px 20px;

    overflow-y: auto;

    position: sticky;

    top: 78px;

    height: calc(100vh - 78px);
}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 1100px)
{
    :root
    {
        --admin-sidebar-width: 250px;
    }


    .admin-main-content
    {
        padding: 24px;
    }


    .dashboard-statistics
    {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   RESPONSIVE — SMALL TABLET
   ========================================================= */

@media (max-width: 800px)
{
    .admin-header
    {
        padding: 10px 15px;
    }


    .admin-layout
    {
        display: block;
    }


    .admin-sidebar
    {
        width: 100%;

        height: auto;

        position: relative;

        top: auto;

        border-right: none;

        border-bottom: 1px solid var(--admin-border);

        overflow: visible;
    }


    .admin-main-content
    {
        padding: 20px 15px;
    }


    .sidebar-primary-groups
    {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }


    .sidebar-group-button
    {
        min-height: 55px;

        justify-content: center;

        text-align: center;
    }


    .sidebar-arrow
    {
        display: none;
    }
}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 600px)
{
    .admin-header
    {
        align-items: flex-start;

        gap: 12px;

        flex-direction: column;
    }


    .admin-header-actions
    {
        width: 100%;
    }


    .admin-brand-text
    {
        min-width: 0;
    }


    .admin-company-name
    {
        font-size: 23px;
    }


    .sidebar-primary-groups
    {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }


    .dashboard-statistics
    {
        grid-template-columns: 1fr;
    }


    .attention-required-items
    {
        grid-template-columns: 1fr;
    }


    .admin-home-introduction h1
    {
        font-size: 18px;
    }


    .admin-home-introduction p
    {
        font-size: 16px;
    }


    .dynamic-view-header h1
    {
        font-size: 18px;
    }


    .activity-entry
    {
        grid-template-columns: 55px 1fr;
    }
}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 400px)
{
    .admin-main-content
    {
        padding: 15px 10px;
    }


    .admin-sidebar
    {
        padding-left: 9px;

        padding-right: 9px;
    }


    .sidebar-primary-groups
    {
        gap: 5px;
    }


    .sidebar-group-button
    {
        padding: 7px 5px;

        font-size: 9px;
    }


    .dashboard-stat-card
    {
        min-height: 125px;
    }
}


/* =========================================================
   ADMIN FOOTER
   ========================================================= */

.admin-footer
{
    width: 100%;

    background: var(--admin-black);

    color: var(--admin-white);

    padding: 30px 30px;

    text-align: center;

    font-size: 11px;

    letter-spacing: 1px;

    font-weight: 600;

    border-top: 4px solid var(--admin-yellow);
}


.admin-footer-content
{
    line-height: 1.4;
}


/* =========================================================
   END OF ADMIN FOOTER
   ========================================================= */
   
   /*
|--------------------------------------------------------------------------
| START OF PERMISSION MATRIX TABLE WIDTH ADJUSTMENT
|--------------------------------------------------------------------------
*/

/* Make the table use the available horizontal space. */
.lm-permission-matrix-table
{
    width: 100%;
    table-layout: fixed;
}

/* Reduce the first column: Permission. */
.lm-permission-matrix-table th:first-child,
.lm-permission-matrix-table td:first-child
{
    width: 37%;
    overflow-wrap: anywhere;
    word-break: normal;
}

/* Distribute the remaining width among the three staff-role columns. */
.lm-permission-matrix-table th:not(:first-child),
.lm-permission-matrix-table td:not(:first-child)
{
    width: 21.6667%;
    text-align: center;
    vertical-align: middle;
}

/* Allow permission names and descriptions to wrap neatly. */
.lm-permission-matrix-table
.lm-permission-matrix-permission
{
    overflow-wrap: anywhere;
}

/* Keep role headings readable within their columns. */
.lm-permission-matrix-table
.lm-permission-matrix-role-heading
{
    overflow-wrap: anywhere;
}

/*
|--------------------------------------------------------------------------
| END OF PERMISSION MATRIX TABLE WIDTH ADJUSTMENT
|--------------------------------------------------------------------------
*/

/*
|--------------------------------------------------------------------------
| START OF PERMISSION MATRIX ROW NUMBERING
|--------------------------------------------------------------------------
*/

.lm-permission-matrix-table tbody
{
    counter-reset: permission-row;
}

.lm-permission-matrix-table tbody tr
{
    counter-increment: permission-row;
}

.lm-permission-matrix-table tbody td:first-child::before
{
    content: counter(permission-row) ". ";
    font-weight: 600;
}

/*
|--------------------------------------------------------------------------
| END OF PERMISSION MATRIX ROW NUMBERING
|--------------------------------------------------------------------------
*/

/* =========================================================
   START OF PERMISSION MATRIX PRINT LAYOUT
========================================================= */

/*
|--------------------------------------------------------------------------
| START OF PERMISSION MATRIX PAGE MARGINS
|--------------------------------------------------------------------------
*/

@page {
    size: A4 portrait;
    margin: 0.2in;
}

/*
|--------------------------------------------------------------------------
| END OF PERMISSION MATRIX PAGE MARGINS
|--------------------------------------------------------------------------
*/


/* =========================================================
   PRINT DOCUMENT
========================================================= */

.lm-permission-print-document
{
    width: 100%;
    margin: 0 auto;
    padding: 0;

    color: #222;
    background: #fff;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.15;
}


/* =========================================================
   COMPANY HEADER
========================================================= */

.lm-permission-print-header
{
    display: flex;
    align-items: center;
    gap: 12px;

    padding-bottom: 8px;
    margin-bottom: 8px;

    border-bottom: 1px solid #aaa;
}

.lm-permission-print-logo
{
    width: 25mm;
    height: 25mm;

    flex: 0 0 25mm;

    object-fit: contain;
}

.lm-permission-print-company
{
    flex: 1;
    min-width: 0;
    text-align: center;
}

.lm-permission-print-company-name
{
    margin: 0 0 3px;

    font-size: 20px;
    font-weight: 700;
}

.lm-permission-print-motto
{
    margin-bottom: 4px;
    font-size: 12px;
    font-style: italic;
}

.lm-permission-print-contact
{
    font-size: 10px;
    line-height: 1.35;
}


/* =========================================================
   DOCUMENT TITLE
========================================================= */

.lm-permission-print-title
{
    margin: 8px 0 10px;

    text-align: center;

    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.3px;
}


/* =========================================================
   PERMISSION TABLE
========================================================= */

.lm-permission-print-table
{
    width: 100%;

    border-collapse: collapse;
    table-layout: fixed;

    font-size: 14px;
    line-height: 1.1;
}

.lm-permission-print-table th,
.lm-permission-print-table td
{
    border: 0.5px solid #ccc;

    padding: 3px 4px;

    vertical-align: middle;

    overflow-wrap: break-word;
    word-wrap: break-word;
}

.lm-permission-print-table thead
{
    display: table-header-group;
}

.lm-permission-print-table tr
{
    break-inside: avoid;
    page-break-inside: avoid;
}

.lm-permission-print-table th
{
    text-align: center;
    font-weight: 700;
    background: #f4f4f4;
}

.lm-permission-print-table th:first-child
{
    width: 64%;
    text-align: left;
}

.lm-permission-print-table th:not(:first-child)
{
    width: 12%;
}

.lm-permission-print-permission
{
    text-align: left;
}

.lm-permission-print-name
{
    font-weight: 700;
}

.lm-permission-print-description
{
    font-weight: 400;
}

.lm-permission-print-assignment
{
    text-align: center;
    white-space: nowrap;
}

.lm-permission-print-box
{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    line-height: 1;
}


/* =========================================================
   ROLE SUMMARY
========================================================= */

.lm-permission-print-summary
{
    margin-top: 9px;
    padding-top: 5px;

    border-top: 1px solid #ccc;

    font-size: 11px;
    line-height: 1.35;
}

.lm-permission-print-summary-title
{
    margin-bottom: 3px;
    font-weight: 700;
}

.lm-permission-print-summary-item
{
    margin-bottom: 2px;
}


/* =========================================================
   APPROVAL AREA
========================================================= */

.lm-permission-print-approval
{
    margin-top: 12px;
    padding-top: 6px;

    border-top: 1px solid #aaa;

    text-align: center;

    font-size: 11px;
    line-height: 1.3;
}

.lm-permission-print-approval-title
{
    margin-bottom: 3px;
    font-weight: 700;
    text-transform: uppercase;
}

.lm-permission-print-authentication
{
    position: relative;

    width: 58mm;
    height: 20mm;

    margin: 0 auto;
}

.lm-permission-print-signature
{
    position: absolute;

    left: 50%;
    bottom: 1mm;

    transform: translateX(-50%);

    width: 43mm;
    max-height: 16mm;

    object-fit: contain;
    object-position: center bottom;

    z-index: 1;
}

.lm-permission-print-stamp
{
    position: absolute;

    right: 0;
    bottom: 0;

    width: 19mm;
    height: 19mm;

    object-fit: contain;

    opacity: 0.75;

    z-index: 2;
}

.lm-permission-print-director
{
    font-weight: 700;
}

.lm-permission-print-approval-date
{
    margin-top: 2px;
}


/* =========================================================
   DOCUMENT FOOTER
========================================================= */

.lm-permission-print-footer
{
    margin-top: 8px;
    padding-top: 5px;

    border-top: 1px solid #ccc;

    text-align: center;

    font-size: 9px;
    line-height: 1.3;
}

.lm-permission-print-barcode
{
    display: block;

    width: 13mm;
    height: 13mm;

    margin: 4px auto;

    object-fit: contain;
}

.lm-permission-print-copyright
{
    margin-top: 3px;
    font-size: 8px;
}


/* =========================================================
   PRINT-SPECIFIC RULES
========================================================= */

@media print
{
    .lm-permission-print-document
    {
        color: #222;
        background: #fff;
    }

    .print-container
    {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    .lm-permission-print-table th
    {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .lm-permission-print-table th,
    .lm-permission-print-table td
    {
        border-color: #ccc;
    }
}

/* =========================================================
   END OF PERMISSION MATRIX PRINT LAYOUT
========================================================= */

