Index: trunk/prototype/modules/calendar/css/layout.css
===================================================================
--- trunk/prototype/modules/calendar/css/layout.css	(revision 6944)
+++ trunk/prototype/modules/calendar/css/layout.css	(revision 6996)
@@ -217,13 +217,21 @@
 /* -- event details styles -- */
 
-.new-event-win.active {
+.new-event-win.active, .new-task-win.active {
 	 width:700px;height:510px;text-align:left;
 }
 
-.new-event-win > .content.ui-tabs.ui-widget-content {
+.new-event-win > .content.ui-tabs.ui-widget-content, .new-task-win > .content.ui-tabs.ui-widget-content {
 	border: none;
 }
 
-.new-event-win ul.attendee-permissions-list, li.attendee-permissions-list{text-align: left;}
+.new-event-win ul.attendee-permissions-list, li.attendee-permissions-list, .new-task-win ul.attendee-permissions-list{text-align: left;}
+.new-activity-win.active {
+	 width:700px;height:510px;text-align:left;
+}
+
+.new-activity-win > .content.ui-tabs.ui-widget-content {
+	border: none;
+}
+.new-activity-win ul.attendee-permissions-list, li.attendee-permissions-list{text-align: left;}
 
 li.attendee-permissions-list input{width: 20px !important; margin: 3px 0 0 0 !important;}
@@ -234,38 +242,93 @@
 p.request-update label{width: 150px !important;}
 
-.new-event-win .menu-addevent {
+.new-event-win .menu-addevent, .new-task-win .menu-addevent {
 	text-align: right;
 }
 
-fieldset.block-add-attendee .add-attendee-search { max-width: 250px; margin: 5px;}
-fieldset.block-add-attendee .add-attendee-search input { max-width: 220px; width: 220px; padding: 0 0 0 7px;}
-fieldset.block-add-attendee .search-result-list { width: 255px; max-height: 215px; overflow: auto;}
-fieldset.block-add-attendee .search-result-list .ui-widget-content { border: none;}
-fieldset.block-add-attendee .search-result-list .empty { margin-left: 5px; }
+.new-event-win fieldset.block-add-attendee .add-attendee-search { max-width: 250px; margin: 5px;}
+.new-task-win fieldset.block-add-attendee .add-attendee-search { max-width: 323px; margin: 5px;}
+
+.new-event-win fieldset.block-add-attendee .add-attendee-search input { max-width: 220px; width: 220px; padding: 0 0 0 7px;}
+.new-task-win fieldset.block-add-attendee .add-attendee-search input { max-width: 290px; width: 290px; padding: 0 0 0 7px;}
+
+.new-activity-win .menu-addevent { 	text-align: right; }
+fieldset.block-add-attendee .add-attendee-search, fieldset.block-add-activity .add-activity-search { max-width: 250px; margin: 5px;}
+fieldset.block-add-attendee .add-attendee-search input, fieldset.block-add-activity .add-activity-search input { max-width: 220px; width: 220px; padding: 0 0 0 7px;}
+fieldset.block-add-attendee .search-result-list, fieldset.block-add-activity .search-result-list { width: 255px; max-height: 215px; overflow: auto;}
+fieldset.block-add-attendee .search-result-list .ui-widget-content, fieldset.block-add-activity .search-result-list .ui-widget-content { border: none;}
+fieldset.block-add-attendee .search-result-list .empty, fieldset.block-add-activity .search-result-list .empty { margin-left: 5px; }
 fieldset.block-add-user .add-user-search {max-width: 235px;}
 fieldset.block-add-user .search-result-list {max-width: 245px;} 
-fieldset.block-add-user .search-result-list .ui-widget-content {/*max-width: 245px;*/}
-
-.block-attendee-list, .block-add-attendee { float:left;}
+
+fieldset.block-add-user .search-result-list .ui-widget-content, fieldset.block-add-user .search-result-list .ui-widget-content {max-width: 245px;}
+
+#calendar_addactivity_details8 .block-attendee-list, #calendar_addactivity_details8 .block-activity-list { width:430px; margin-right: 5px; }
+
+.block-activity-list, .block-activity-group-select{width: 405px}
+.block-add-activity.search{width: 298px}
+
+.block-attendee-list, .block-activity-list, .block-add-activity, .block-activity-group-select { float:left;}
 .block-attendee-list { width:400px; margin-right: 5px; }
-.block-add-attendee { width:260px; margin-right: 5px; }
-.block-attendee-list dd, .block-add-attendee dd { border: 1px solid #BFBFBF; }
-.block-attendee-list dt, .block-add-attendee dt { background-color:#FFF; margin: 5px 0 -6px 5px; font-weight: bold; display: table;  position: relative;}
+.new-event-win .block-add-attendee { width:260px; margin-right: 5px; }
+.new-task-win .block-add-attendee { width:335px; margin-right: 5px; }
+.block-attendee-list dd, .block-add-attendee dd, .block-activity-list dd, .block-add-activity dd, .block-activity-group-select dd { border: 1px solid #BFBFBF; }
+.block-attendee-list dt, .block-add-attendee dt,.block-activity-list dt, .block-add-activity dt, .block-activity-group-select dt { background-color:#FFF; margin: 5px 0 -6px 5px; font-weight: bold; display: table;  position: relative; display: table;}
 .block-attendee-list dd.attendee-list { height: 196px; }
-.block-attendee-list dd.attendee-list ul { max-height: 186px; overflow: auto; margin-top: 10px;}
-.block-attendee-list dd.attendee-list-add {border-top:none !important; border:1px solid #BFBFBF;}
-.block-attendee-list dd.attendee-list-add fieldset.add-attendee-input { border:none !important; margin: 0; padding: 0 }
-.block-attendee-list dd.attendee-list-brief { border:none !important; margin: 5px 0; color:#777; }
-
-dl.block-add-attendee {
+.block-attendee-list dd.attendee-list ul, .block-activity-list dd.task-activity-list ul { max-height: 186px; overflow: auto; margin-top: 10px;}
+.block-attendee-list dd.attendee-list-add, .block-activity-list dd.activity-list-add {border-top:none !important; border:1px solid #BFBFBF;}
+.block-attendee-list dd.attendee-list-add fieldset.add-attendee-input, .block-activity-list dd.activity-list-add fieldset.add-activity-input { border:none !important; margin: 0; padding: 0 }
+.block-attendee-list dd.attendee-list-brief, .block-activity-list dd.activity-list-brief { border:none !important; margin: 5px 0; color:#777; }
+#calendar_addactivity_details8 .block-attendee-list, #calendar_addactivity_details8 .block-activity-list { width:430px; margin-right: 5px; }
+
+/* Pesquisa de tarefas */
+.block-activity-group-select dd.task-activity-list { height: 181px; }
+.block-activity-group-select dd.group-select { height: 40px; }
+
+fieldset.block-add-activity ul.search-result-list li{ width: 9999px; }
+fieldset.block-add-activity ul.search-result-list{width: 290px;}
+
+fieldset.block-add-activity fieldset.add-activity-search{max-width: 320px; width: 282px}
+fieldset.block-add-activity fieldset.add-activity-search input{max-width: 260px; width: 245px;}
+
+.block-activity-group-select dd.group-select select{margin: 12px 8px;}
+.block-activity-group-select dd.task-activity-list{padding: 10px 5px}
+
+/** Pesquisa de tarefas **/
+
+select.group-addactivity-details-txt-timezone{width: 175px;}
+
+
+dl.block-add-attendee, dl.block-add-activity {
 	float: right;
 	display: block;
 }
 
-dl.block-add-attendee dd.add-attendee {
+dl.block-add-activity dd.add-activity{
+    width: 295px;
+    min-height: 254px;
+    display: block;
+}
+
+.new-event-win dl.block-add-attendee dd.add-attendee{
 	width: 260px;
 	min-height: 260px;
 	display: block;
 }
+
+.new-task-win dl.block-add-attendee dd.add-attendee {
+	width: 343px;
+	min-height: 260px;
+	display: block;
+}
+
+.new-activity-win dl.block-activity-group-select li.task{overflow: hidden; position: relative;}
+.new-activity-win dl.block-activity-group-select ul{overflow: hidden;}
+
+#calendar_addactivity_details8 dl.block-add-attendee dd.add-attendee ,#calendar_addactivity_details8 dl.block-add-activity dd.add-activity {
+	width: 260px;
+	min-height: 292px;
+	display: block;
+}
+
 
 ul.attendees-count {clear:left; float:left;}
@@ -280,6 +343,7 @@
 .attendees-list .me .add-attendee-options-read { max-height: 16px; height:16px;  max-width: 16px; width:16px; display: inline; padding: 0; margin: 0 0 5px 0;}
 
-.attendees-list .me .add-attendee-options-button {position: absolute; top: 171px;}
+.attendees-list .me .add-attendee-options-button {top: 4px;}
 .attendees-list .hover-attendee { background-color: #DFEFFC;}
+.task-activity-list .hover-activity { background: #DFEFFC;}
 /*
 .attendees-list .attendee-options-button-edit { position: absolute; top:0; right:25px;}
@@ -288,6 +352,6 @@
 */
 
-.attendee-options{ position: absolute; top: 0; left: 287px; background-color: white; z-index: 100; width: 90px; background-color: #FFF;	padding: 0 20px 0 3px; text-align: right;}
-.attendees-list .not-attendee { height:16px; }
+.attendee-options, .activity-options{ position: absolute; top: 0; left: 287px; background-color: white; z-index: 100; width: 90px; background-color: #FFF;	padding: 0 20px 0 3px; text-align: right;}
+.attendees-list .not-attendee, .activitys-list .not-activity { height:16px; }
 
 .list-delegates{margin: 0 0 0 25px;}
@@ -296,5 +360,5 @@
 
 .attendees-list .me .add-attendee-search input { max-width: 125px; }
-.attendees-list li.organizer, .attendees-list li.me-delegated  {margin-bottom: 3px;}
+.attendees-list li.organizer, .attendees-list li.me-delegated, .activitys-list li.organizer {margin-bottom: 3px;}
 .attendees-list .organizer .button.swap {
 	float: right;
@@ -338,4 +402,19 @@
 }
 dd.attendee-list ul.attendee-list li label[title=''] { display:none }
+dd.task-activity-list ul.task-activity-list li {
+    overflow: hidden;
+	position: relative;
+}
+
+
+dd.task-activity-list ul.task-activity-list li label.name,
+dd.task-activity-list ul.task-activity-list li label.mail {
+	width: 99999px;
+	min-width: 99999px;
+}
+
+ ul.task-activity-list li label.name{display: table-cell;}
+
+dd.task-activity-list ul.task-activity-list li label[title=''] { display:none }
 /*
 dd.attendee-list ul.attendee-list li .button.close {
@@ -404,5 +483,5 @@
 /* -- calendar list styles -- */
 
-.my-calendars .button.new {
+.my-calendars .button.new, .my-groups-task .button.new{
   float:right;
   width: 15px;
@@ -410,5 +489,5 @@
 }
 
-.my-calendars .status-list {
+.my-calendars .status-list, .my-groups-task  .status-list {
 	display: inline-block;
 	margin: 0px 0pc -4px -5px;
@@ -416,9 +495,9 @@
 }
 
-.my-calendars .list-calendars-item, .signed-calendars .list-calendars-item{
+.my-calendars .list-calendars-item, .signed-calendars .list-calendars-item, .my-groups-task .list-calendars-item{
 	position: relative; 
 	overflow: hidden;
 }
-.my-calendars .list-calendars-item div, .signed-calendars .list-calendars-item div{
+.my-calendars .list-calendars-item div, .signed-calendars .list-calendars-item div, .my-groups-task .list-calendars-item div{
 	overflow:hidden; 
 	width:6000px; 
@@ -426,5 +505,5 @@
 }
 
-.my-calendars .cal-list-options-btn, .signed-calendars .cal-list-options-btn {
+.my-calendars .cal-list-options-btn, .signed-calendars .cal-list-options-btn, .my-groups-task .cal-list-options-btn {
 	position: absolute;
 	top: 2px;
@@ -714,5 +793,6 @@
 
 .button.add.button-add-attachment{margin: -9px 0 0 8px;}
-.button.btn-danger.delete{margin: 0 0 0 0;}
+.button.btn-success.fileinput-button{width: 85px;}
+.button.btn-danger.delete{margin: 0 0 0 0; min-width: 143px;}
 
 .button.upload{top: 4px;}
@@ -729,4 +809,5 @@
 .lbl-archive-nome{width:40px !important;}
 .row.fileupload-buttonbar{margin-top: -14px; padding: 0.2em 0.7em;}
+.row.fileupload-buttonbar-task{margin-top: 0; padding: 0.2em 0.7em;}
 
 .archive-nome{width: 73px;}
@@ -745,18 +826,18 @@
 /* -- alarm dysplay -- */
 
-.new-event-alarm{
+.new-event-alarm, .new-task-alarm{
 	margin: 5px;	
 	font: bold;
 }
 
-.title-event-alarm{
+.title-event-alarm, .title-task-alarm{
 	margin: 5px;
 }
 
-.description-event-alarm{
+.description-event-alarm, .description-task-alarm{
 	margin: 5px;
 }
 
-.inicialize-event-alarm{
+.inicialize-event-alarm, .inicialize-task-alarm{
 	margin: 5px;
 }
@@ -861,7 +942,12 @@
 .ui-dialog .ui-button-text-only .ui-button-text { padding: 0.4em 1em; }
 
-.new-event-win fieldset { border: none;	margin: 0; padding: 0; }
-.new-event-win fieldset.tab-level2 { padding: 0px 5px; }
-.new-event-win fieldset fieldset, .new-event-win fieldset.tab-level2 fieldset { padding: 5px 0; }
+.new-event-win fieldset, .new-task-win fieldset { border: none;	margin: 0; padding: 0; }
+.new-event-win fieldset.tab-level2, .new-task-win fieldset.tab-level2 { padding: 0px 5px; }
+.new-event-win fieldset fieldset, .new-task-win fieldset.tab-level2 fieldset,
+.new-task-win fieldset fieldset, .new-task-win fieldset.tab-level2 fieldset{ padding: 5px 0; }
+
+.new-activity-win fieldset { border: none;	margin: 0; padding: 0; }
+.new-activity-win fieldset.tab-level2 { padding: 0px 5px; }
+.new-activity-win fieldset fieldset, .new-activity-win fieldset.tab-level2 fieldset { padding: 5px 0; }
 
 .hidden {
@@ -904,7 +990,15 @@
 }
 
+.new-event-win form.form-addevent { padding: 9px; }
+
+.new-activity-win div.div-addtask { padding: 0; width: 774px; border: 0;}
+.new-activity-win div.div-addactivity { padding: 0; width: 734px; border: 0;}
+.new-activity-win form.form-addevent { padding: 9px; }
 .ui-dialog .ui-dialog-content { padding: 0; }
-.new-event-win div.div-addevent { padding: 0; width: 700px; border: 0;}
-.new-event-win form.form-addevent { padding: 9px; }
+.new-event-win div.div-addevent{ padding: 0; width: 700px; border: 0;}
+.new-task-win div.div-addtask { padding: 0; width: 774px; border: 0;}
+.new-event-win form.form-addevent, .new-task-win form.form-addtask { padding: 9px; }
+.new-activity-win div.div-addevent { padding: 0; width: 700px; border: 0;}
+.new-activity-win form.form-addevent { padding: 9px; }
 
 .expresso-calendar-container input[type="text"] { height: 18px; }
@@ -929,5 +1023,5 @@
 
 .expresso-calendar-container input.h1,
-.new-event-win input.h1 {
+.new-event-win input.h1, .new-task-win input.h1, .new-activity-win input.h1 {
 	font-size: 150%;
 	font-weight: bold;
@@ -936,5 +1030,5 @@
 }
 
-.new-event-win textarea {
+.new-event-win textarea, .new-task-win textarea, .new-activity-win textarea {
 	width:600px;
 	height: 210px;
@@ -945,6 +1039,8 @@
 span.input-group { display: block; }
 /*p.input-group label { vertical-align: top; }*/
-.new-event-win p.input-group label { display: inline-block; width: 65px;}
-.new-event-win p.input-group label.input-group { display: inline-block; width: 110px; font-weight: bold;}
+.new-event-win p.input-group label, .new-task-win p.input-group label { display: inline-block; width: 65px;}
+.new-event-win p.input-group label.input-group, .new-task-win p.input-group label.input-group { display: inline-block; width: 110px; font-weight: bold;}
+.new-activity-win p.input-group label { display: inline-block; width: 65px;}
+.new-activity-win p.input-group label.input-group { display: inline-block; width: 110px; font-weight: bold;}
 
 input.number {text-align: right}
@@ -966,5 +1062,9 @@
 .new-event-win fieldset.event-repeat-container label, 
 .new-event-win p.input-group.event-repeat-weekly label, 
-.new-event-win p.input-group.event-repeat-monthly label {
+.new-event-win p.input-group.event-repeat-monthly label,
+.new-task-win fieldset.task-repeat-container label, 
+.new-task-win p.input-group.task-repeat-weekly label, 
+.new-task-win p.input-group.task-repeat-monthly label
+{
 	width: auto; 
 }
@@ -973,10 +1073,31 @@
 .new-event-win fieldset.search-field,
 .new-event-win fieldset.block-add-attendee-permissions,
-.new-event-win fieldset.block-attendee-list {
+.new-event-win fieldset.block-attendee-list,
+.new-task-win fieldset.input-field-rounded,
+.new-task-win fieldset.search-field,
+.new-task-win fieldset.block-add-attendee-permissions,
+.new-task-win fieldset.block-attendee-list
+{
 	border:1px solid #CFCFCF;
 }
 
-.new-event-win fieldset.block-attendee-list { width: 300px; max-height:180px; padding: 5px; float: left;}
-.new-event-win fieldset.block-attendee-list ul {  height:160px; overflow: auto;}
+.new-event-win fieldset.block-attendee-list, .new-task-win fieldset.block-attendee-list { width: 300px; max-height:180px; padding: 5px; float: left;}
+.new-event-win fieldset.block-attendee-list ul, .new-task-win fieldset.block-attendee-list ul {  height:160px; overflow: auto;}
+/**/
+.new-activity-win fieldset.event-repeat-container label, 
+.new-activity-win p.input-group.event-repeat-weekly label, 
+.new-activity-win p.input-group.event-repeat-monthly label {
+	width: auto; 
+}
+
+.new-activity-win fieldset.input-field-rounded,
+.new-activity-win fieldset.search-field,
+.new-activity-win fieldset.block-add-attendee-permissions,
+.new-activity-win fieldset.block-attendee-list {
+	border:1px solid #CFCFCF;
+}
+
+.new-activity-win fieldset.block-attendee-list { width: 300px; max-height:180px; padding: 5px; float: left;}
+.new-activity-win fieldset.block-attendee-list ul {  height:160px; overflow: auto;}
 
 
@@ -1148,9 +1269,4 @@
 }
 
-.events-list-win table img {
-  width: 12px;
-  height: 12px;
-  padding: 0 2px;
-}
 
 .events-list-win table span { font-size:12px; }
