/* ADMIN2 CONTENT CSS 20100107 */

/* GENERIC */

pre
{
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
}


/* CONTENT */

div.mainobject-window iframe
{
    border: 1px solid var(--a4-line);
}

div#maincontent div.content-translation div.block div.original
{
    background-color: var(--a4-soft);
    margin: 0.5em 0 0.5em 0;
    padding: 0.2em;
    border: 1px dashed var(--a4-line);
}

div.content-translation div.translation
{
    margin: 0.5em 0 0.5em 0;
}

div.notranslations li
{
    width: 20%;
}

table.list, table.special, table.list th, table.special th
{
    border-collapse: collapse;
}

table.list th, table.special th
{
    font-weight: var(--a4-weight-bold);
    height: 30px;
    border-bottom: 1px solid var(--a4-line);
    vertical-align: middle;
}

table.list label
{
font-weight:normal;
font-size:1em;
}

table.list th a
{
text-decoration:none;
}

table.list .sort-asc a
{
padding-right:1.5em;
background:url(../images/icons-sprite.png) no-repeat right -270px;
}

table.list .sort-desc a
{
padding-right:1.5em;
background:url(../images/icons-sprite.png) no-repeat right -250px;
}

table.special th
{
    border-top: 1px solid var(--a4-line);
}

table.list tr.bgdark, table.list tr.bgdark th
{
    background-color: var(--a4-soft);
}

div.content-navigation-childlist table.list th,
table.list th.icon, table.list td.icon, table.list th.class, table.list td.class, table.list th.checkbox, table.list td.checkbox
{
    width:1%;
}

div.content-navigation-childlist table.list th.name, div.content-edit table.list th.name
{
    width: auto;
}

table.list img
{
    vertical-align: middle;
}

table.list tr.object-cannot-remove td
{
    color: red;
}

table.list td.modifier, table.list td.modified, table.list td.class, div.content-edit table.list td.filesize
{
    white-space: nowrap;
}

div.list-thumbnails div.list-thumbnails-item
{
    border: 4px solid var(--a4-card);
    padding: 0.5em;
    vertical-align: middle;
    background-color: var(--a4-soft);
    width: 155px;
    height: 155px;
    float: left;
    text-align: center;
    position: relative;
}

div.list-thumbnails div.list-thumbnails-item:hover
{
    background-color: var(--a4-soft);
}

div.list-thumbnails-item div.controls
{
    position: absolute;
    bottom: 0;
    width: 155px;
    overflow-x: hidden;
}

div.list-thumbnails-item div.controls input, div.list-thumbnails-item div.controls img
{
    vertical-align: middle;
}

table tbody tr.ezasi-sort-drag-handler
{
    cursor: move;
}


/* DASHBOARD */

#ez-version
{
    font-weight: var(--a4-weight-bold);
}

/* GENERIC DIFF STYLES */

ins
{
    color: #008000;
    text-decoration: none;
    border-bottom: 1px solid #00b000;
}

del
{
    color: var(--a4-bad);
    text-decoration: line-through;
}

ins:hover, del:hover
{
    background-color: var(--a4-card);
}

ins:hover
{
    color: #006000;
    border-bottom-width: 0;
}

del:hover
{
    color: #852c25;
    text-decoration: none;
}

div.blockchanges ins, div.blockchanges del
{
    color: var(--a4-ink);
    padding-left: 0.5em;
    text-decoration: none;
    border-bottom-width: 0;
    display: block;
}

div.blockchanges ins
{
    border-left: 0.5em solid #008000;
}

div.blockchanges del
{
    border-left: 0.5em solid #d98078;
}

div.previous ins
{
    display: none;
}

div.previous del
{
    color: var(--a4-ink);
    background-color: #ffff00;
    border-bottom-width: 0;
    text-decoration: none
}

div.latest del
{
    display: none;
}

div.latest ins
{
    color: var(--a4-ink);
    background-color: #ffff00;
    border-bottom-width: 0;
    text-decoration: none;
}

/* CLASS ATTRIBUTE GROUPING */

fieldset.ezcca-collapsible legend a
{
    text-decoration: none;
    padding-left: 20px;
}

fieldset.ezcca-collapsible.ezcca-collapsed
{
    border-width: 1px 0 0 0;
    height: 1em;
    background-color: var(--a4-card);
}

fieldset.ezcca-collapsible.ezcca-collapsed legend
{
    margin-left: 1px;
}

fieldset.ezcca-collapsible legend a
{
    /* minus in a box: the group is open */
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' shape-rendering='crispEdges'%3E%3Crect x='1' y='1' width='12' height='12' fill='%23fff'/%3E%3Cpath d='M1 0h12v1H1zM1 13h12v1H1zM0 1h1v12H0zM13 1h1v12h-1z' fill='%23c1c1c1'/%3E%3Crect x='3' y='6' width='8' height='2' fill='%236d6d6d'/%3E%3C/svg%3E") no-repeat 0 0;
}

fieldset.ezcca-collapsible.ezcca-collapsed legend a
{
    /* plus in a box: the group is collapsed */
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' shape-rendering='crispEdges'%3E%3Crect x='1' y='1' width='12' height='12' fill='%23fff'/%3E%3Cpath d='M1 0h12v1H1zM1 13h12v1H1zM0 1h1v12H0zM13 1h1v12h-1z' fill='%23c1c1c1'/%3E%3Crect x='3' y='6' width='8' height='2' fill='%236d6d6d'/%3E%3Crect x='6' y='3' width='2' height='8' fill='%236d6d6d'/%3E%3C/svg%3E") no-repeat 0 0;
}

/* OBJECTRELATIONLIST */

.ezcca-edit-datatype-ezobjectrelationlist h4, .ezcca-edit-datatype-ezobjectrelation h4
{
    padding-bottom:2px;
    border-bottom: 1px solid var(--a4-line);
    margin-bottom:1em;
    color: var(--a4-ink);
    font-size:1.1em;
}

/* Sortable column headings.

   Shared by the rss list and the locations tab of an item, both of which sort
   in the database because they are shown a page at a time. The heading keeps
   the ordinary heading colour - the column being sorted is marked by the bold
   label and the arrow, not by repainting the cell. */
table.list th.sortable { cursor: pointer; white-space: nowrap; }
table.list th.sortable a.sort-link { display: block; text-decoration: none; color: inherit; }
table.list th.sortable:hover a.sort-link { text-decoration: underline; }
table.list th.sorted a.sort-link { font-weight: var(--a4-weight-bold); }
/* The arrow is the heading's own colour, a little dimmed: a fixed grey could not
   be seen on the dark heading bar of the admin3 design. */
.sort-arrow { display: inline-block; width: 1em; font-size: .8em; color: inherit; opacity: .85; }

/* The role list's id column: a number, read against the name beside it. */
table.list td.role-id { text-align: right; color: var(--a4-muted); white-space: nowrap; }

/* PACKAGE VIEW (package/view/full)

   Everything below is scoped to .package-view-full: the package's header badges, its metadata,
   the install/export actions and the package contents browser (filter, file list, viewed file,
   pager). Colours are the admin's own: the list heading grey, the default button's green, the
   top menu's highlight for the file being viewed. */
.package-view-full .pvf-badges { margin: 0.25em 0 0.5em; display: flex; flex-wrap: wrap; gap: 0.35em; align-items: center; }
.package-view-full .pvf-badge { display: inline-block; padding: 0 0.5em; border: 1px solid var(--a4-line); border-radius: var(--a4-radius-s); background: var(--a4-soft); color: var(--a4-ink); font-size: 0.85em; line-height: 1.6; white-space: nowrap; }
.package-view-full .pvf-badge-version { font-weight: var(--a4-weight-bold); }
.package-view-full .pvf-badge-ok { background: #567975; border-color: #567975; color: var(--a4-on-accent); }
.package-view-full .pvf-badge-muted { color: var(--a4-muted); }
.package-view-full .pvf-badge-info { background: #e5eef4; border-color: #b9cfdd; color: #094564; }
.package-view-full .pvf-date { color: var(--a4-muted); font-size: 0.9em; }

.package-view-full .pvf-overview { display: flex; gap: 1.5em; align-items: flex-start; }
.package-view-full dl.pvf-meta { flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.35em 1.25em; margin: 0.5em 0 1em; }
.package-view-full dl.pvf-meta dt { margin: 0; font-weight: var(--a4-weight-bold); color: var(--a4-ink); }
.package-view-full dl.pvf-meta dd { margin: 0; overflow-wrap: anywhere; }
.package-view-full .pvf-filelist-link { margin-left: 0.75em; }
.package-view-full .pvf-licence-id { color: var(--a4-muted); white-space: nowrap; }
.package-view-full .pvf-thumbnail { flex: 0 0 auto; max-width: 30%; }
.package-view-full .pvf-thumbnail img { max-width: 100%; height: auto; border: 1px solid var(--a4-line); }

.package-view-full .pvf-changelog { border-top: 1px solid var(--a4-line); padding-top: 0.5em; }
.package-view-full .pvf-changelog h2,
.package-view-full .pvf-browser-head h2 { font-size: 1.15em; margin: 0.25em 0; }
.package-view-full .pvf-changelog-byline { margin: 0.25em 0 0; color: var(--a4-muted); }
.package-view-full .pvf-changelog ul { margin: 0.25em 0 0.75em 1.25em; }

.package-view-full .pvf-actions { display: flex; flex-wrap: wrap; gap: 0.5em; padding: 0.5em 0; margin: 0.5em 0 1em; border-top: 1px solid var(--a4-line); border-bottom: 1px solid var(--a4-line); }
.package-view-full .pvf-actions input { margin: 0; }
.package-view-full .pvf-noinstall { margin: 0.5em 0 1em; padding: 0.5em 0.75em; border-left: 3px solid #9aa4ad; background: var(--a4-soft); color: var(--a4-ink); overflow-wrap: anywhere; }
/* Compare: a link (package/compare only reads), drawn like the admin's input.button beside it */
.package-view-full a.pvf-button-link { display: inline-block; padding: 3px 6px; border: 1px solid var(--a4-line); border-radius: var(--a4-radius-s); background: var(--a4-card); color: var(--a4-ink); font-size: 1em; line-height: normal; text-decoration: none; font-family: Verdana, Arial, Helvetica, sans-serif; vertical-align: middle; transition: all var(--a4-duration-slow) ease; }
.package-view-full a.pvf-button-link:hover,
.package-view-full a.pvf-button-link:focus { background-color: rgba(0, 0, 0, 0.1); color: var(--a4-ink); }
.package-view-full a.pvf-button-link:focus-visible { outline: 2px solid #e27f15; outline-offset: 1px; }
.package-view-full input.pvf-button-danger { margin-left: auto; color: #a8321f; border-color: #e0b4ab; }
.package-view-full input.pvf-button-danger:hover { background: #fbeae6; }

.package-view-full .pvf-browser-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25em 1em; }
.package-view-full .pvf-count { color: var(--a4-muted); }

.package-view-full .pvf-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.5em 1em; margin: 0.5em 0 1em; padding: 0.6em 0.75em; background: var(--a4-soft); border: 1px solid var(--a4-line); border-radius: var(--a4-radius-s); }
.package-view-full .pvf-field { display: flex; flex-direction: column; gap: 0.2em; min-width: 0; }
.package-view-full .pvf-field label { font-weight: var(--a4-weight-bold); font-size: 0.9em; margin: 0; }
.package-view-full .pvf-field-search { flex: 1 1 14em; }
.package-view-full .pvf-field-search input { width: 100%; box-sizing: border-box; }
.package-view-full .pvf-field-submit { flex-direction: row; align-items: center; gap: 0.75em; }
.package-view-full .pvf-field-submit input { margin: 0; }

.package-view-full .pvf-scroll { max-width: 100%; overflow-x: auto; }
.package-view-full table.pvf-files { border-collapse: collapse; }
.package-view-full table.pvf-files .pvf-name { overflow-wrap: anywhere; }
.package-view-full .pvf-path { overflow-wrap: anywhere; }
.package-view-full table.pvf-files .pvf-col-size { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.package-view-full table.pvf-files .pvf-col-type,
.package-view-full table.pvf-files .pvf-col-actions { white-space: nowrap; }
.package-view-full table.pvf-files .pvf-col-actions { text-align: right; }
.package-view-full table.pvf-files .pvf-col-type,
.package-view-full table.pvf-files .pvf-col-size,
.package-view-full table.pvf-files .pvf-col-actions { width: 1%; }
.package-view-full table.list tr.pvf-current,
.package-view-full table.list tr.pvf-current:hover { background: #ffe9bd; box-shadow: inset 3px 0 0 #e27f15; }
.package-view-full .pvf-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.package-view-full .pvf-kind { display: inline-block; padding: 0 0.45em; border-radius: var(--a4-radius-s); font-size: 0.85em; line-height: 1.6; background: var(--a4-soft); color: var(--a4-ink); }
.package-view-full .pvf-kind-object { background: var(--a4-soft); color: #3c5653; }
.package-view-full .pvf-kind-class { background: #e5eef4; color: #094564; }
.package-view-full .pvf-kind-image { background: #fbeedd; color: #8a4b0b; }
.package-view-full .pvf-kind-package { background: var(--a4-head-bg); color: var(--a4-ink); }

.package-view-full a.pvf-link-button,
.package-view-full span.pvf-link-button { display: inline-block; padding: 0.1em 0.55em; border: 1px solid var(--a4-line); border-radius: var(--a4-radius-s); background: var(--a4-card); color: var(--a4-ink); text-decoration: none; line-height: 1.5; white-space: nowrap; }
.package-view-full a.pvf-link-button:hover,
.package-view-full a.pvf-link-button:focus { background: rgba(0, 0, 0, 0.1); }
.package-view-full span.pvf-disabled { color: var(--a4-muted); background: var(--a4-soft); }

.package-view-full .pvf-viewer { margin: 0 0 1em; border: 1px solid var(--a4-line); border-radius: var(--a4-radius-s); overflow: hidden; }
.package-view-full .pvf-viewer-head { display: flex; flex-wrap: wrap; gap: 0.5em 1em; align-items: center; justify-content: space-between; padding: 0.5em 0.75em; background: var(--a4-head-bg); color: var(--a4-ink); }
.package-view-full .pvf-viewer-title { min-width: 0; flex: 1 1 20em; }
.package-view-full .pvf-viewer-head .pvf-path { display: block; font-weight: var(--a4-weight-bold); color: var(--a4-ink); }
.package-view-full .pvf-viewer-meta { display: flex; gap: 0.75em; align-items: center; margin-top: 0.2em; }
.package-view-full .pvf-viewer-actions { display: flex; gap: 0.4em; }
.package-view-full .pvf-viewer-body { padding: 0.75em; }
/* soft wrap by default (long JSON and XML lines stay readable at any width); "No wrap" keeps the lines and scrolls inside the box */
.package-view-full pre.pvf-code { margin: 0; padding: 0.75em; max-height: 32em; max-width: 100%; box-sizing: border-box; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; font-size: 0.9em; line-height: 1.45; background: #f8f8f8; }
.package-view-full pre.pvf-code.pvf-nowrap { white-space: pre; overflow-wrap: normal; word-break: normal; }
.package-view-full .pvf-viewer-body { min-width: 0; }
.package-view-full table.pvf-object { border-collapse: collapse; }
.package-view-full table.pvf-object th { width: 9em; background: var(--a4-soft); color: var(--a4-ink); border-left: 0; font-weight: var(--a4-weight-bold); font-size: 1em; }
.package-view-full table.pvf-object th,
.package-view-full table.pvf-object td { padding: 0.4em 0.6em; line-height: 1.4; border-bottom: 1px solid var(--a4-line); }
.package-view-full h3.pvf-language { font-size: 1em; margin: 1em 0 0.35em; }
.package-view-full td.pvf-value { overflow-wrap: anywhere; min-width: 12em; }
.package-view-full .pvf-image { text-align: center; background: var(--a4-soft); padding: 0.75em; }
.package-view-full .pvf-image img { max-width: 100%; max-height: 32em; height: auto; }
.package-view-full .pvf-note { color: var(--a4-muted); margin: 0.5em 0 0; }

.package-view-full table.pvf-attributes td,
.package-view-full table.pvf-object td,
.package-view-full table.pvf-object th { vertical-align: top; }

/* The file list's path: the directory small and grey on a line of its own, above the file name,
   which is only broken inside when it does not fit on one line. */
.package-view-full table.pvf-files td { vertical-align: middle; }
.package-view-full table.pvf-files code { font-size: 0.95em; }
.package-view-full .pvf-dir { display: block; color: var(--a4-muted); font-size: 0.85em; line-height: 1.3; overflow-wrap: anywhere; }
.package-view-full .pvf-name { color: var(--a4-ink); }
.package-view-full a.pvf-link-button.pvf-active { background: #567975; border-color: #567975; color: var(--a4-on-accent); }
.package-view-full a.pvf-link-button.pvf-active:hover { background: #425c59; color: #ffe9bd; }

/* The pager, above the list (compact) and below it. */
.package-view-full .pvf-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4em 1em; }
.package-view-full .pvf-pager-top { margin: 0 0 0.4em; }
.package-view-full .pvf-pager-bottom { margin: 0.6em 0 0.25em; padding-top: 0.6em; border-top: 1px solid var(--a4-line); }
.package-view-full .pvf-pager-status { display: flex; flex-wrap: wrap; gap: 0.2em 0.75em; align-items: baseline; }
.package-view-full .pvf-pager-range { color: var(--a4-muted); }
.package-view-full .pvf-pager-links { display: flex; flex-wrap: wrap; gap: 0.35em; }

/* A phone: the file list's rows become two lines, the path on its own full width and the type,
   size and actions below it, so the path is never squeezed into a sliver. */
@media (max-width: 640px) {
    .package-view-full .pvf-overview { flex-direction: column; }
    .package-view-full .pvf-thumbnail { max-width: 100%; }
    .package-view-full dl.pvf-meta { grid-template-columns: 1fr; gap: 0 0; }
    .package-view-full dl.pvf-meta dd { margin-bottom: 0.5em; }
    .package-view-full input.pvf-button-danger { margin-left: 0; }
    .package-view-full .pvf-field,
    .package-view-full .pvf-field-search { flex: 1 1 100%; }
    .package-view-full .pvf-field select { width: 100%; }
    .package-view-full table.pvf-files thead { display: none; }
    .package-view-full table.pvf-files,
    .package-view-full table.pvf-files tbody { display: block; }
    .package-view-full table.pvf-files tr { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35em 0.75em; padding: 0.5em 0.4em; border-bottom: 1px solid var(--a4-line); }
    .package-view-full table.pvf-files td { display: block; padding: 0; width: auto; }
    .package-view-full table.pvf-files td.pvf-col-path { flex: 1 1 100%; }
    .package-view-full table.pvf-files td.pvf-col-actions { margin-left: auto; }
    .package-view-full .pvf-pager-top .pvf-pager-label { display: none; }
    .package-view-full .pvf-viewer-body { padding: 0.5em; }
    .package-view-full table.pvf-files td.pvf-col-type,
    .package-view-full table.pvf-files td.pvf-col-size,
    .package-view-full table.pvf-files td.pvf-col-actions { width: auto; }
    /* The object summary and its attributes: each row a label line over its value. */
    .package-view-full table.pvf-object,
    .package-view-full table.pvf-object tbody,
    .package-view-full table.pvf-object tr,
    .package-view-full table.pvf-object th,
    .package-view-full table.pvf-object td,
    .package-view-full table.pvf-attributes,
    .package-view-full table.pvf-attributes tbody,
    .package-view-full table.pvf-attributes tr { display: block; width: auto; }
    .package-view-full table.pvf-object th { padding-bottom: 0.1em; }
    .package-view-full table.pvf-object td { padding-top: 0; overflow-wrap: anywhere; }
    .package-view-full table.pvf-attributes thead { display: none; }
    .package-view-full table.pvf-attributes tr { display: flex; flex-wrap: wrap; gap: 0 0.75em; padding: 0.35em 0.4em; }
    .package-view-full table.pvf-attributes td { display: block; padding: 0; }
    .package-view-full table.pvf-attributes td:nth-child(2) { color: var(--a4-muted); }
    .package-view-full table.pvf-attributes td.pvf-value { flex: 1 1 100%; min-width: 0; }
}

/* No file on this page: a plain message in place of an empty table. */
.package-view-full .pvf-empty-state { margin: 0.25em 0 0.5em; padding: 1.5em 1em; text-align: center; color: var(--a4-muted); background: var(--a4-soft); border: 1px dashed var(--a4-line); border-radius: var(--a4-radius-s); }
.package-view-full .pvf-empty-state p { margin: 0.25em 0; }

/* Keyboard focus on the page's own link buttons and fields, in the admin's highlight colour. */
.package-view-full a.pvf-link-button:focus-visible,
.package-view-full .pvf-filter select:focus-visible,
.package-view-full .pvf-filter input:focus-visible,
.package-view-full .pvf-actions input:focus-visible { outline: 2px solid #e27f15; outline-offset: 1px; }

@media (max-width: 640px) {
    .package-view-full table.pvf-object th { background: none; color: var(--a4-muted); font-size: 0.9em; border: 0; }
    .package-view-full pre.pvf-code { font-size: 0.8em; padding: 0.5em; }
    .package-view-full table.pvf-object td { border-bottom: 1px solid var(--a4-line); }
}

/* The form token refusal (error/parts/formtoken.tpl); was an inline <style> in error/parts/formtoken_style.tpl.
   admin3 gives the links its own button colours in theme/rounded.css. */
div.formtoken-error{max-width:42rem;margin:1rem 0 2rem;padding:1rem 1.25rem 1.25rem;line-height:1.5}
div.formtoken-error h2{margin:0 0 .75rem}
div.formtoken-error p{margin:0 0 .5rem}
div.formtoken-error .formtoken-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1rem}
div.formtoken-error .formtoken-actions a{display:inline-block;padding:.3em .8em;border: 1px solid var(--a4-line);border-radius:var(--a4-radius-s);text-decoration:none;color: var(--a4-ink);background: var(--a4-card)}
div.formtoken-error .formtoken-actions a.formtoken-primary{background: #e6e6e6;border-color: var(--a4-line-strong);font-weight:var(--a4-weight-bold)}
div.formtoken-error .formtoken-actions a:hover,div.formtoken-error .formtoken-actions a:focus{border-color: #666;text-decoration:underline}
